[03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:51]accept exits with 8 [03:23:51]New connection [03:23:51]New thread 3067456868 created [03:23:51]Thread 3067313508 joined [03:23:51]Waiting for new connection... [03:23:51] Sock 8.Parse request [03:23:51]Sock 8.Check first char [03:23:51]Sock 8.First char is OK [03:23:51]request: POST /json_proto HTTP/1.0 [03:23:51]Method: POST [03:23:51]URL: /json_proto [03:23:51]Method is POST - this is cgi request [03:23:51]url: /json_proto [03:23:51]query_string will be loaded in cgi processing [03:23:51]execute_cgi json_proto POST (null) [03:23:51]execute_cgi path=json_proto method=POST [03:23:51]POST find Content-Length [03:23:51]Host: 172.17.50.3:8080 [03:23:51]Content-Length: 683 [03:23:51]Content-Type: application/json [03:23:51] [03:23:51]POST finish read [03:23:51]Found Content-Length = 683 [03:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885371", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:51]execute_script... [03:23: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)2885371", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:51]POST & json_proto [03:23:51]process_json_proto [03:23:51]json parsed OK: [03:23:51]protocol is kg_v1.0 [03:23:51]action value=close_receipt [03:23:51]process_action close_receipt [03:23:51]cmd_close_receipt [03:23:51]MH_GetDate [03:23:51]Write to MH i2c: F0 00 00 08 09 00 [03:23:51]Write i2c OK [03:23:51]MH_I2C_Read... [03:23:51]Read from MH i2c: F0 [03:23:51]MH_I2C_Read... [03:23:51]Read from MH i2c: F0 09 00 [03:23:51]MH_I2C_Read... [03:23:51]Read from MH i2c: F0 09 00 08 09 00 49 C9 15 67 6B 98 1E 66 1E [03:23:51]GetLastDocTimeStamp 1729479925 [03:23:51]current date 1729481033 [03:23:51]FM_GetShiftState [03:23:51]SAM_PROTO_GetShiftState [03:23:51]wFMCommunicate request_size=4 [03:23:51]MH_SAM_APDU [03:23:51]CAPDU: 80 13 01 00 [03:23:51]Write to MH i2c: E2 08 00 09 09 80 13 01 00 00 00 00 00 8F [03:23:51]Write i2c OK [03:23:51]MH_I2C_Read... [03:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:51]Read from MH i2c: E2 [03:23:51]MH_I2C_Read... [03:23:51]Read from MH i2c: E2 0E 00 [03:23:51]MH_I2C_Read... [03:23:51]Read from MH i2c: E2 0E 00 09 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BB [03:23:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:23:51]wFMCommunicate OK [03:23:51]SAM_PROTO_GetShiftState done [03:23:51]FM_GetShiftState done [03:23:51]opened in 1729469703 [03:23:51]opened+sec_in_day 1729556103 [03:23:51]quantity*price = 100015 [03:23:51]sum+1 = 100017 [03:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 24 21.10.2024 03:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69634 ФПД: 3006717614427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T032353&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69634&fm=3006717614427&tin=02508201610067®Number=0000000000156251&sum=100000 [03:23:52]StoreToDocumentArchive [03:23:52]shift 194 fd 69634 [03:23:52]save to /storage/0194/doc_00069634 [03:23:52]save last doc name /storage/0194/doc_00069634 to /storage/kkm_last_doc_name [03:23:52]save OK [03:23:52]Clear old archive folders... [03:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:23:52]tlvbuf is 00C360D0 [03:23:52]SAM_PROTO_ClearQueue [03:23:52]wFMCommunicate request_size=4 [03:23:52]MH_SAM_APDU [03:23:52]CAPDU: 80 09 00 00 [03:23:52]Write to MH i2c: E2 08 00 16 09 80 09 00 00 00 00 00 00 91 [03:23:52]Write i2c OK [03:23:52]MH_I2C_Read... [03:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:23:52]Read from MH i2c: E2 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 03 00 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [03:23:52]RAPDU: 90 00 [03:23:52]wFMCommunicate OK [03:23:52]SAM_PROTO_ClearQueue done [03:23:52]KKMCreateOFDPacket [03:23:52]OFDProtocolAddRootSTLVToBuf [03:23:52]FM_MakeSignedData [03:23:52]FM_MakeSignedData [03:23:52]SAM_PROTO_SignData [03:23:52]wFMCommunicate request_size=4 [03:23:52]MH_SAM_APDU [03:23:52]CAPDU: 80 0D 01 02 [03:23:52]Write to MH i2c: E2 08 00 17 09 80 0D 01 02 00 00 00 00 99 [03:23:52]Write i2c OK [03:23:52]MH_I2C_Read... [03:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:23:52]Read from MH i2c: E2 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 03 00 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [03:23:52]RAPDU: 90 00 [03:23:52]wFMCommunicate OK [03:23:52]wFMCommunicate request_size=255 [03:23:52]MH_SAM_APDU [03:23:52]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 49 C9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 10 01 00 35 04 06 00 02 [03:23:52]Write to MH i2c: E2 02 01 18 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 49 C9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 10 01 00 35 04 06 00 02 00 00 99 [03:23:52]Write i2c OK [03:23:52]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [03:23:53]RAPDU: 90 00 [03:23:53]wFMCommunicate OK [03:23:53]wFMCommunicate request_size=10 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 0D 02 02 05 BC 0E 55 D9 5B [03:23:53]Write to MH i2c: E2 0D 00 19 09 80 0D 02 02 05 00 BC 0E 55 D9 5B 00 00 F9 [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [03:23:53]RAPDU: 90 00 [03:23:53]wFMCommunicate OK [03:23:53]wFMCommunicate request_size=4 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 0D 03 02 [03:23:53]Write to MH i2c: E2 08 00 1A 09 80 0D 03 02 00 00 00 00 9E [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 0B 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 0B 00 1A 09 00 45 40 0D 4E 54 85 62 AC 90 00 66 [03:23:53]RAPDU: 45 40 0D 4E 54 85 62 AC 90 00 [03:23:53]wFMCommunicate OK [03:23:53]SAM_PROTO_SignData done [03:23:53]FM_MakeSignedData done [03:23:53]CreateOFDProtocolMessage [03:23:53]wFMCommunicate request_size=4 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 11 00 00 [03:23:53]Write to MH i2c: E2 08 00 1B 09 80 11 00 00 00 00 00 00 9E [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 17 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 17 00 1B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [03:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:23:53]wFMCommunicate OK [03:23:53]CreateOFDProtocolMessage done [03:23:53]OFDSenderStorePacket 69634 [03:23:53]StoreOFDPacket docnum=69634 [03:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 47 07 01 C0 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 49 C9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 10 01 00 35 04 06 00 02 BC 0E 55 D9 5B 45 40 0D 4E 54 85 62 AC [03:23:53]CheckFolder [03:23:53]dirname=/storage/ofd_packets [03:23:53]CheckFolder done [03:23:53]ProducePacketName [03:23:53]name=ofd_packets/00069634 [03:23:53]NVStorageSaveData ofd_packets/00069634 [03:23:53]File name is /storage/ofd_packets/00069634 [03:23:53]Write 301 bytes [03:23:53]NVStorageSaveData done [03:23:53]OFDSenderStorePacket done [03:23:53]KKMCreateOFDPacket done [03:23:53]NVStorageSaveData kkm_last_timestamp [03:23:53]File name is /storage/kkm_last_timestamp [03:23:53]Write 4 bytes [03:23:53]NVStorageSaveData done [03:23:53]ExternCall_PrintAddStr [03:23:53]wPrintStart [03:23:53]Write to MH i2c: 01 00 00 1C 09 25 [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: 01 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: 01 07 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [03:23:53]RasterBufferAndPrint [03:23:53]line Счет N : (1)2885371 [03:23:53]line ИНН: 02508201610067 [03:23:53]line Контрольно-Кассовый Чек [03:23:53]line ПРОДАЖА [03:23:53]line ТРК (МРК, ГНК) : 42 [03:23:53]line Товар: 2710124130 [03:23:53]line Аи-92-К-5 [03:23:53]line 14.950 * 66.90 [03:23:53]line = 1000.16 [03:23:53]line НДС 12% НСП 1% [03:23:53]line > о реализуемом товаре [03:23:53]line ОКРУГЛЕНИЕ: -0.16 [03:23:53]line ИТОГО: 1000.00 [03:23:53]line Внесено: 1000.00 [03:23:53]line СДАЧА: 0.00 [03:23:53]line НСП 1% : 8.85 [03:23:53]line НДС 12% : 106.21 [03:23:53]line Наличными: 1000.00 [03:23:53]line Безнал.: 0.00 [03:23:53]line Место: АЗС № 85 "Партнер Нефть" [03:23:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:23:53]line СНО: Общий режим [03:23:53]line Чек 24 21.10.2024 03:23 [03:23:53]line Смена: 194 ФФД: 1.0 [03:23:53]line ЗНМ: 0300000167 [03:23:53]line РНМ: 0000000000156251 [03:23:53]line Версия ККМ: v1.0 [03:23:53]line ФМ: 0000000000963346 [03:23:53]line ФД: 69634 [03:23:53]line ФПД: 3006717614427 [03:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T032353&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69634&fm=3006717614427&tin=02508201610067®Number=0000000000156251&sum=100000 [03:23:53]OFD Sender: Processing packet 69634 [packets to send 18, broken 17] [03:23:53]ProducePacketName [03:23:53]name=ofd_packets/00069634 [03:23:53]OFD Sender: To server: pG, [03:23:53]CommunicateWithHost lk.salyk.kg:30040 [03:23:53]ConnectInit lk.salyk.kg [03:23:53]written 0, free lines is 4095 [03:23:53]Connected sock=11 [03:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 47 07 01 C0 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 49 C9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 10 01 00 35 04 06 00 02 BC 0E 55 D9 5B 45 40 0D 4E 54 85 62 AC [03:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 82 25 47 00 DA 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 39 36 33 33 34 36 10 04 04 00 02 10 01 00 F4 03 04 00 EE 72 15 67 B6 04 01 00 00 5A BD 0D 4D 0D E9 6C 5C [03:23:54]CommunicateWithHost err = 0 [03:23:54]CheckOFDResponse [03:23:54]1017 (14) - 77093643461234 [03:23:54]1041 (16) - 0000000000963346 [03:23:54]1040 (4) - 69634 [03:23:54]1012 (4) - 20.10.2024 21:15 [03:23:54]1206 (1) - 0 [03:23:54]OFD Sender: Remove packet 69634 [03:23:54]ProducePacketName [03:23:54]name=ofd_packets/00069634 [03:23:54]NVStorageDeleteData [03:23:54]Write to MH i2c: 01 00 00 47 09 50 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 ED 0C 50 [03:23:54]RasterBufferAndPrint [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]written 0, free lines is 3315 [03:23:54]MH_Cut [03:23:54]Write to MH i2c: D1 01 00 4E 09 01 29 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 01 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 01 00 4E 09 00 28 [03:23:54]Write to MH i2c: 01 00 00 4F 09 58 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]OFD Sender: No OFD packet to send [03:23:54]*** Cut start [03:23:54]*** Partial cut [03:23:54]*** CUTSNS_PIN = 1 [03:23:54]*** CUTSNS_PIN = 0 [03:23:55]*** Brake cut motor [03:23:55]Read from MH i2c: 01 [03:23:55]MH_I2C_Read... [03:23:55]*** Stop cut motor [03:23:55]*** Cut end [03:23:55]Read from MH i2c: 01 07 00 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 FF 0F 6D [03:23:55]process_action close_receipt done [03:23:55]requested_data is exist [03:23:55]produce_requested_data [03:23:55]requested_item fm.sn is exist - process it [03:23:55]wFMCommunicate request_size=4 [03:23:55]MH_SAM_APDU [03:23:55]CAPDU: 80 11 00 00 [03:23:55]Write to MH i2c: E2 08 00 50 09 80 11 00 00 00 00 00 00 D3 [03:23:55]Write i2c OK [03:23:55]MH_I2C_Read... [03:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:55]Read from MH i2c: E2 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 17 00 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 17 00 50 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [03:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:23:55]wFMCommunicate OK [03:23:55]requested_item fd.num is exist - process it [03:23:55]SAM_PROTO_GetFieldsCounters [03:23:55]wFMCommunicate request_size=4 [03:23:55]MH_SAM_APDU [03:23:55]CAPDU: 80 13 00 00 [03:23:55]Write to MH i2c: E2 08 00 51 09 80 13 00 00 00 00 00 00 D6 [03:23:55]Write i2c OK [03:23:55]MH_I2C_Read... [03:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:23:55]Read from MH i2c: E2 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 62 00 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 62 00 51 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 10 01 00 0E 04 04 00 C2 00 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 0E [03:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 10 01 00 0E 04 04 00 C2 00 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:23:55]wFMCommunicate OK [03:23:55]SAM_PROTO_GetFieldsCounters done [03:23:55]requested_item shift.num is exist - process it [03:23:55]requested_item shift.opened is exist - process it [03:23:55]req_shift_opened [03:23:55]FM_GetShiftState [03:23:55]SAM_PROTO_GetShiftState [03:23:55]wFMCommunicate request_size=4 [03:23:55]MH_SAM_APDU [03:23:55]CAPDU: 80 13 01 00 [03:23:55]Write to MH i2c: E2 08 00 52 09 80 13 01 00 00 00 00 00 D8 [03:23:55]Write i2c OK [03:23:55]MH_I2C_Read... [03:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:55]Read from MH i2c: E2 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 0E 00 [03:23:55]MH_I2C_Read... [03:23:55]Read from MH i2c: E2 0E 00 52 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 04 [03:23:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:23:55]wFMCommunicate OK [03:23:55]SAM_PROTO_GetShiftState done [03:23:55]FM_GetShiftState done [03:23:55]req_shift_opened done [03:23:55]requested_item shift.open_date is exist - process it [03:23:55]req_shift_open_date [03:23:55]req_shift_open_date done [03:23:55]produce_requested_data done [03:23:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69634,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [03:23:55]process_action_free close_receipt [03:23:55]json_value_free [03:23:55]json_value_free done [03:23:55]process_json_proto returns [03:23:55]Send response to host [03:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69634,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [03:23:55]free response buf [03:23:55]execute_script done [03:23:55]execute_script returns [03:23:55]free content buf [03:23:55]Sock 8.Close socket [03:23:55]Sock 8.Thread stoped [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: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: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: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:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:05]accept exits with 9 [03:38:05]New connection [03:38:05]New thread 3067313508 created [03:38:05]Thread 3067456868 joined [03:38:05]Waiting for new connection... [03:38:05] Sock 9.Parse request [03:38:05]Sock 9.Check first char [03:38:05]Sock 9.First char is OK [03:38:05]request: POST /json_proto HTTP/1.0 [03:38:05]Method: POST [03:38:05]URL: /json_proto [03:38:05]Method is POST - this is cgi request [03:38:05]url: /json_proto [03:38:05]query_string will be loaded in cgi processing [03:38:05]execute_cgi json_proto POST (null) [03:38:05]execute_cgi path=json_proto method=POST [03:38:05]POST find Content-Length [03:38:05]Host: 172.17.50.3:8080 [03:38:05]Content-Length: 680 [03:38:05]Content-Type: application/json [03:38:05] [03:38:05]POST finish read [03:38:05]Found Content-Length = 680 [03:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 27.970, "sum" : 2131.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2131.00, "total" : 2131.00, "payments": [ { "type": 0, "sum" : 2131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:38:05]execute_script... [03:38: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)2885372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 27.970, "sum" : 2131.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2131.00, "total" : 2131.00, "payments": [ { "type": 0, "sum" : 2131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:38:05]POST & json_proto [03:38:05]process_json_proto [03:38:05]json parsed OK: [03:38:05]protocol is kg_v1.0 [03:38:05]action value=close_receipt [03:38:05]process_action close_receipt [03:38:05]cmd_close_receipt [03:38:05]MH_GetDate [03:38:05]Write to MH i2c: F0 00 00 53 09 4B [03:38:05]Write i2c OK [03:38:05]MH_I2C_Read... [03:38:05]Read from MH i2c: F0 [03:38:05]MH_I2C_Read... [03:38:05]Read from MH i2c: F0 09 00 [03:38:05]MH_I2C_Read... [03:38:05]Read from MH i2c: F0 09 00 53 09 00 9F CC 15 67 6B 98 1E 66 C2 [03:38:05]GetLastDocTimeStamp 1729481033 [03:38:05]current date 1729481887 [03:38:05]FM_GetShiftState [03:38:05]SAM_PROTO_GetShiftState [03:38:05]wFMCommunicate request_size=4 [03:38:05]MH_SAM_APDU [03:38:05]CAPDU: 80 13 01 00 [03:38:05]Write to MH i2c: E2 08 00 54 09 80 13 01 00 00 00 00 00 DA [03:38:05]Write i2c OK [03:38:05]MH_I2C_Read... [03:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:38:05]Read from MH i2c: E2 [03:38:05]MH_I2C_Read... [03:38:05]Read from MH i2c: E2 0E 00 [03:38:05]MH_I2C_Read... [03:38:05]Read from MH i2c: E2 0E 00 54 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 06 [03:38:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:38:05]wFMCommunicate OK [03:38:05]SAM_PROTO_GetShiftState done [03:38:05]FM_GetShiftState done [03:38:05]opened in 1729469703 [03:38:05]opened+sec_in_day 1729556103 [03:38:05]quantity*price = 213131 [03:38:05]sum+1 = 213132 [03:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2131.00 Внесено: 2131.00 СДАЧА: 0.00 НСП 1% : 18.86 НДС 12% : 226.33 Наличными: 2131.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 25 21.10.2024 03:38 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69635 ФПД: 220889405055191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T033807&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69635&fm=220889405055191&tin=02508201610067®Number=0000000000156251&sum=213100 [03:38:06]StoreToDocumentArchive [03:38:06]shift 194 fd 69635 [03:38:06]save to /storage/0194/doc_00069635 [03:38:06]save last doc name /storage/0194/doc_00069635 to /storage/kkm_last_doc_name [03:38:06]save OK [03:38:06]Clear old archive folders... [03:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:38:06]tlvbuf is 00C34A00 [03:38:06]SAM_PROTO_ClearQueue [03:38:06]wFMCommunicate request_size=4 [03:38:06]MH_SAM_APDU [03:38:06]CAPDU: 80 09 00 00 [03:38:06]Write to MH i2c: E2 08 00 61 09 80 09 00 00 00 00 00 00 DC [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:38:06]Read from MH i2c: E2 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [03:38:06]RAPDU: 90 00 [03:38:06]wFMCommunicate OK [03:38:06]SAM_PROTO_ClearQueue done [03:38:06]KKMCreateOFDPacket [03:38:06]OFDProtocolAddRootSTLVToBuf [03:38:06]FM_MakeSignedData [03:38:06]FM_MakeSignedData [03:38:06]SAM_PROTO_SignData [03:38:06]wFMCommunicate request_size=4 [03:38:06]MH_SAM_APDU [03:38:06]CAPDU: 80 0D 01 02 [03:38:06]Write to MH i2c: E2 08 00 62 09 80 0D 01 02 00 00 00 00 E4 [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:38:06]Read from MH i2c: E2 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [03:38:06]RAPDU: 90 00 [03:38:06]wFMCommunicate OK [03:38:06]wFMCommunicate request_size=255 [03:38:06]MH_SAM_APDU [03:38:06]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 58 00 00 00 00 07 04 06 00 6C 40 03 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 9F CC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 10 01 00 35 04 06 00 C8 E5 D2 85 [03:38:06]Write to MH i2c: E2 02 01 63 09 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 58 00 00 00 00 07 04 06 00 6C 40 03 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 9F CC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 10 01 00 35 04 06 00 C8 E5 D2 85 00 00 F7 [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:38:06]Read from MH i2c: E2 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [03:38:06]RAPDU: 90 00 [03:38:06]wFMCommunicate OK [03:38:06]wFMCommunicate request_size=7 [03:38:06]MH_SAM_APDU [03:38:06]CAPDU: 80 0D 02 02 02 E0 D7 [03:38:06]Write to MH i2c: E2 0A 00 64 09 80 0D 02 02 02 00 E0 D7 00 00 A2 [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:38:06]Read from MH i2c: E2 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [03:38:06]RAPDU: 90 00 [03:38:06]wFMCommunicate OK [03:38:06]wFMCommunicate request_size=4 [03:38:06]MH_SAM_APDU [03:38:06]CAPDU: 80 0D 03 02 [03:38:06]Write to MH i2c: E2 08 00 65 09 80 0D 03 02 00 00 00 00 E9 [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:38:06]Read from MH i2c: E2 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 0B 00 [03:38:06]MH_I2C_Read... [03:38:06]Read from MH i2c: E2 0B 00 65 09 00 BD E0 98 31 C9 96 A8 E2 90 00 39 [03:38:06]RAPDU: BD E0 98 31 C9 96 A8 E2 90 00 [03:38:06]wFMCommunicate OK [03:38:06]SAM_PROTO_SignData done [03:38:06]FM_MakeSignedData done [03:38:06]CreateOFDProtocolMessage [03:38:06]wFMCommunicate request_size=4 [03:38:06]MH_SAM_APDU [03:38:06]CAPDU: 80 11 00 00 [03:38:06]Write to MH i2c: E2 08 00 66 09 80 11 00 00 00 00 00 00 E9 [03:38:06]Write i2c OK [03:38:06]MH_I2C_Read... [03:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:38:07]Read from MH i2c: E2 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: E2 17 00 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: E2 17 00 66 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [03:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:38:07]wFMCommunicate OK [03:38:07]CreateOFDProtocolMessage done [03:38:07]OFDSenderStorePacket 69635 [03:38:07]StoreOFDPacket docnum=69635 [03:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 72 5B 04 01 59 21 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 58 00 00 00 00 07 04 06 00 6C 40 03 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 9F CC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 10 01 00 35 04 06 00 C8 E5 D2 85 E0 D7 BD E0 98 31 C9 96 A8 E2 [03:38:07]CheckFolder [03:38:07]dirname=/storage/ofd_packets [03:38:07]CheckFolder done [03:38:07]ProducePacketName [03:38:07]name=ofd_packets/00069635 [03:38:07]NVStorageSaveData ofd_packets/00069635 [03:38:07]File name is /storage/ofd_packets/00069635 [03:38:07]Write 298 bytes [03:38:07]NVStorageSaveData done [03:38:07]OFDSenderStorePacket done [03:38:07]KKMCreateOFDPacket done [03:38:07]NVStorageSaveData kkm_last_timestamp [03:38:07]File name is /storage/kkm_last_timestamp [03:38:07]Write 4 bytes [03:38:07]NVStorageSaveData done [03:38:07]ExternCall_PrintAddStr [03:38:07]wPrintStart [03:38:07]Write to MH i2c: 01 00 00 67 09 70 [03:38:07]Write i2c OK [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 07 00 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [03:38:07]RasterBufferAndPrint [03:38:07]line Счет N : (1)2885372 [03:38:07]line ИНН: 02508201610067 [03:38:07]line Контрольно-Кассовый Чек [03:38:07]line ПРОДАЖА [03:38:07]line ТРК (МРК, ГНК) : 51 [03:38:07]line Товар: 2710194210 [03:38:07]line ДТ-К-5 [03:38:07]line 27.970 * 76.20 [03:38:07]line = 2131.31 [03:38:07]line НДС 12% НСП 1% [03:38:07]line > о реализуемом товаре [03:38:07]line ОКРУГЛЕНИЕ: -0.31 [03:38:07]line ИТОГО: 2131.00 [03:38:07]line Внесено: 2131.00 [03:38:07]line СДАЧА: 0.00 [03:38:07]line НСП 1% : 18.86 [03:38:07]line НДС 12% : 226.33 [03:38:07]line Наличными: 2131.00 [03:38:07]line Безнал.: 0.00 [03:38:07]line Место: АЗС № 85 "Партнер Нефть" [03:38:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:38:07]line СНО: Общий режим [03:38:07]line Чек 25 21.10.2024 03:38 [03:38:07]line Смена: 194 ФФД: 1.0 [03:38:07]line ЗНМ: 0300000167 [03:38:07]line РНМ: 0000000000156251 [03:38:07]line Версия ККМ: v1.0 [03:38:07]line ФМ: 0000000000963346 [03:38:07]line ФД: 69635 [03:38:07]line ФПД: 220889405055191 [03:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T033807&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69635&fm=220889405055191&tin=02508201610067®Number=0000000000156251&sum=213100 [03:38:07]OFD Sender: Processing packet 69635 [packets to send 18, broken 17] [03:38:07]ProducePacketName [03:38:07]name=ofd_packets/00069635 [03:38:07]OFD Sender: To server: pG, [03:38:07]CommunicateWithHost lk.salyk.kg:30040 [03:38:07]ConnectInit lk.salyk.kg [03:38:07]written 0, free lines is 4095 [03:38:07]Connected sock=10 [03:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 72 5B 04 01 59 21 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 58 00 00 00 00 07 04 06 00 6C 40 03 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 9F CC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 10 01 00 35 04 06 00 C8 E5 D2 85 E0 D7 BD E0 98 31 C9 96 A8 E2 [03:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E9 87 47 00 77 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 39 36 33 33 34 36 10 04 04 00 03 10 01 00 F4 03 04 00 43 76 15 67 B6 04 01 00 00 F8 6C 39 DB AE 70 D4 CA [03:38:07]CommunicateWithHost err = 0 [03:38:07]CheckOFDResponse [03:38:07]1017 (14) - 77093643461234 [03:38:07]1041 (16) - 0000000000963346 [03:38:07]1040 (4) - 69635 [03:38:07]1012 (4) - 20.10.2024 21:29 [03:38:07]1206 (1) - 0 [03:38:07]OFD Sender: Remove packet 69635 [03:38:07]ProducePacketName [03:38:07]name=ofd_packets/00069635 [03:38:07]NVStorageDeleteData [03:38:07]Write to MH i2c: 01 00 00 92 09 9B [03:38:07]Write i2c OK [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 07 00 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 E0 0C 8E [03:38:07]RasterBufferAndPrint [03:38:07]line [03:38:07]line [03:38:07]line [03:38:07]line [03:38:07]line [03:38:07]written 0, free lines is 3302 [03:38:07]MH_Cut [03:38:07]Write to MH i2c: D1 01 00 99 09 01 74 [03:38:07]Write i2c OK [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: D1 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: D1 01 00 [03:38:07]MH_I2C_Read... [03:38:07]Read from MH i2c: D1 01 00 99 09 00 73 [03:38:07]Write to MH i2c: 01 00 00 9A 09 A3 [03:38:07]Write i2c OK [03:38:07]MH_I2C_Read... [03:38:08]OFD Sender: No OFD packet to send [03:38:08]*** Cut start [03:38:08]*** Partial cut [03:38:08]*** CUTSNS_PIN = 1 [03:38:08]*** CUTSNS_PIN = 0 [03:38:08]*** Brake cut motor [03:38:09]Read from MH i2c: 01 [03:38:09]MH_I2C_Read... [03:38:09]*** Stop cut motor [03:38:09]*** Cut end [03:38:09]Read from MH i2c: 01 07 00 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: 01 07 00 9A 09 00 00 00 00 00 FF 0F B8 [03:38:09]process_action close_receipt done [03:38:09]requested_data is exist [03:38:09]produce_requested_data [03:38:09]requested_item fm.sn is exist - process it [03:38:09]wFMCommunicate request_size=4 [03:38:09]MH_SAM_APDU [03:38:09]CAPDU: 80 11 00 00 [03:38:09]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [03:38:09]Write i2c OK [03:38:09]MH_I2C_Read... [03:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:38:09]Read from MH i2c: E2 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 17 00 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [03:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:38:09]wFMCommunicate OK [03:38:09]requested_item fd.num is exist - process it [03:38:09]SAM_PROTO_GetFieldsCounters [03:38:09]wFMCommunicate request_size=4 [03:38:09]MH_SAM_APDU [03:38:09]CAPDU: 80 13 00 00 [03:38:09]Write to MH i2c: E2 08 00 9C 09 80 13 00 00 00 00 00 00 21 [03:38:09]Write i2c OK [03:38:09]MH_I2C_Read... [03:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:38:09]Read from MH i2c: E2 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 62 00 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 62 00 9C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 10 01 00 0E 04 04 00 C2 00 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 5D [03:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 10 01 00 0E 04 04 00 C2 00 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:38:09]wFMCommunicate OK [03:38:09]SAM_PROTO_GetFieldsCounters done [03:38:09]requested_item shift.num is exist - process it [03:38:09]requested_item shift.opened is exist - process it [03:38:09]req_shift_opened [03:38:09]FM_GetShiftState [03:38:09]SAM_PROTO_GetShiftState [03:38:09]wFMCommunicate request_size=4 [03:38:09]MH_SAM_APDU [03:38:09]CAPDU: 80 13 01 00 [03:38:09]Write to MH i2c: E2 08 00 9D 09 80 13 01 00 00 00 00 00 23 [03:38:09]Write i2c OK [03:38:09]MH_I2C_Read... [03:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:38:09]Read from MH i2c: E2 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 0E 00 [03:38:09]MH_I2C_Read... [03:38:09]Read from MH i2c: E2 0E 00 9D 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [03:38:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:38:09]wFMCommunicate OK [03:38:09]SAM_PROTO_GetShiftState done [03:38:09]FM_GetShiftState done [03:38:09]req_shift_opened done [03:38:09]requested_item shift.open_date is exist - process it [03:38:09]req_shift_open_date [03:38:09]req_shift_open_date done [03:38:09]produce_requested_data done [03:38:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69635,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [03:38:09]process_action_free close_receipt [03:38:09]json_value_free [03:38:09]json_value_free done [03:38:09]process_json_proto returns [03:38:09]Send response to host [03:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69635,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [03:38:09]free response buf [03:38:09]execute_script done [03:38:09]execute_script returns [03:38:09]free content buf [03:38:09]Sock 9.Close socket [03:38:09]Sock 9.Thread stoped [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: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:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:46]accept exits with 8 [03:56:46]New connection [03:56:46]New thread 3067456868 created [03:56:46]Thread 3067313508 joined [03:56:46]Waiting for new connection... [03:56:46] Sock 8.Parse request [03:56:46]Sock 8.Check first char [03:56:46]Sock 8.First char is OK [03:56:46]request: POST /json_proto HTTP/1.0 [03:56:46]Method: POST [03:56:46]URL: /json_proto [03:56:46]Method is POST - this is cgi request [03:56:46]url: /json_proto [03:56:46]query_string will be loaded in cgi processing [03:56:46]execute_cgi json_proto POST (null) [03:56:46]execute_cgi path=json_proto method=POST [03:56:46]POST find Content-Length [03:56:46]Host: 172.17.50.3:8080 [03:56:46]Content-Length: 681 [03:56:46]Content-Type: application/json [03:56:46] [03:56:46]POST finish read [03:56:46]Found Content-Length = 681 [03:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.430, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:46]execute_script... [03:56: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)2885373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.430, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:46]POST & json_proto [03:56:46]process_json_proto [03:56:46]json parsed OK: [03:56:46]protocol is kg_v1.0 [03:56:46]action value=close_receipt [03:56:46]process_action close_receipt [03:56:46]cmd_close_receipt [03:56:46]MH_GetDate [03:56:46]Write to MH i2c: F0 00 00 9E 09 96 [03:56:46]Write i2c OK [03:56:46]MH_I2C_Read... [03:56:46]Read from MH i2c: F0 [03:56:46]MH_I2C_Read... [03:56:46]Read from MH i2c: F0 09 00 [03:56:46]MH_I2C_Read... [03:56:46]Read from MH i2c: F0 09 00 9E 09 00 00 D1 15 67 6B 98 1E 66 73 [03:56:46]GetLastDocTimeStamp 1729481887 [03:56:46]current date 1729483008 [03:56:46]FM_GetShiftState [03:56:46]SAM_PROTO_GetShiftState [03:56:46]wFMCommunicate request_size=4 [03:56:46]MH_SAM_APDU [03:56:46]CAPDU: 80 13 01 00 [03:56:46]Write to MH i2c: E2 08 00 9F 09 80 13 01 00 00 00 00 00 25 [03:56:46]Write i2c OK [03:56:46]MH_I2C_Read... [03:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:46]Read from MH i2c: E2 [03:56:46]MH_I2C_Read... [03:56:46]Read from MH i2c: E2 0E 00 [03:56:46]MH_I2C_Read... [03:56:46]Read from MH i2c: E2 0E 00 9F 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 51 [03:56:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:56:46]wFMCommunicate OK [03:56:46]SAM_PROTO_GetShiftState done [03:56:46]FM_GetShiftState done [03:56:46]opened in 1729469703 [03:56:46]opened+sec_in_day 1729556103 [03:56:46]quantity*price = 25012 [03:56:46]sum+1 = 25014 [03:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 26 21.10.2024 03:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69636 ФПД: 238836324960198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69636&fm=238836324960198&tin=02508201610067®Number=0000000000156251&sum=25000 [03:56:47]StoreToDocumentArchive [03:56:47]shift 194 fd 69636 [03:56:47]save to /storage/0194/doc_00069636 [03:56:47]save last doc name /storage/0194/doc_00069636 to /storage/kkm_last_doc_name [03:56:47]save OK [03:56:47]Clear old archive folders... [03:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:56:47]tlvbuf is 00C05110 [03:56:47]SAM_PROTO_ClearQueue [03:56:47]wFMCommunicate request_size=4 [03:56:47]MH_SAM_APDU [03:56:47]CAPDU: 80 09 00 00 [03:56:47]Write to MH i2c: E2 08 00 AC 09 80 09 00 00 00 00 00 00 27 [03:56:47]Write i2c OK [03:56:47]MH_I2C_Read... [03:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:47]Read from MH i2c: E2 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 AC 09 00 90 00 29 [03:56:47]RAPDU: 90 00 [03:56:47]wFMCommunicate OK [03:56:47]SAM_PROTO_ClearQueue done [03:56:47]KKMCreateOFDPacket [03:56:47]OFDProtocolAddRootSTLVToBuf [03:56:47]FM_MakeSignedData [03:56:47]FM_MakeSignedData [03:56:47]SAM_PROTO_SignData [03:56:47]wFMCommunicate request_size=4 [03:56:47]MH_SAM_APDU [03:56:47]CAPDU: 80 0D 01 02 [03:56:47]Write to MH i2c: E2 08 00 AD 09 80 0D 01 02 00 00 00 00 2F [03:56:47]Write i2c OK [03:56:47]MH_I2C_Read... [03:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:47]Read from MH i2c: E2 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [03:56:47]RAPDU: 90 00 [03:56:47]wFMCommunicate OK [03:56:47]wFMCommunicate request_size=255 [03:56:47]MH_SAM_APDU [03:56:47]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 33 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 D1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 10 01 00 35 04 06 00 D9 38 [03:56:47]Write to MH i2c: E2 02 01 AE 09 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 33 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 D1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 10 01 00 35 04 06 00 D9 38 00 00 17 [03:56:47]Write i2c OK [03:56:47]MH_I2C_Read... [03:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:47]Read from MH i2c: E2 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 [03:56:47]MH_I2C_Read... [03:56:47]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [03:56:47]RAPDU: 90 00 [03:56:47]wFMCommunicate OK [03:56:47]wFMCommunicate request_size=9 [03:56:47]MH_SAM_APDU [03:56:47]CAPDU: 80 0D 02 02 04 6A 4F 07 C6 [03:56:47]Write to MH i2c: E2 0C 00 AF 09 80 0D 02 02 04 00 6A 4F 07 C6 00 00 C0 [03:56:47]Write i2c OK [03:56:47]MH_I2C_Read... [03:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:48]Read from MH i2c: E2 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 03 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [03:56:48]RAPDU: 90 00 [03:56:48]wFMCommunicate OK [03:56:48]wFMCommunicate request_size=4 [03:56:48]MH_SAM_APDU [03:56:48]CAPDU: 80 0D 03 02 [03:56:48]Write to MH i2c: E2 08 00 B0 09 80 0D 03 02 00 00 00 00 34 [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:48]Read from MH i2c: E2 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 0B 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 0B 00 B0 09 00 03 2C F7 DF 08 D0 6B F0 90 00 6D [03:56:48]RAPDU: 03 2C F7 DF 08 D0 6B F0 90 00 [03:56:48]wFMCommunicate OK [03:56:48]SAM_PROTO_SignData done [03:56:48]FM_MakeSignedData done [03:56:48]CreateOFDProtocolMessage [03:56:48]wFMCommunicate request_size=4 [03:56:48]MH_SAM_APDU [03:56:48]CAPDU: 80 11 00 00 [03:56:48]Write to MH i2c: E2 08 00 B1 09 80 11 00 00 00 00 00 00 34 [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:48]Read from MH i2c: E2 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 17 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: E2 17 00 B1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [03:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:56:48]wFMCommunicate OK [03:56:48]CreateOFDProtocolMessage done [03:56:48]OFDSenderStorePacket 69636 [03:56:48]StoreOFDPacket docnum=69636 [03:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A0 F0 06 01 EE DE 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 33 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 D1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 10 01 00 35 04 06 00 D9 38 6A 4F 07 C6 03 2C F7 DF 08 D0 6B F0 [03:56:48]CheckFolder [03:56:48]dirname=/storage/ofd_packets [03:56:48]CheckFolder done [03:56:48]ProducePacketName [03:56:48]name=ofd_packets/00069636 [03:56:48]NVStorageSaveData ofd_packets/00069636 [03:56:48]File name is /storage/ofd_packets/00069636 [03:56:48]Write 300 bytes [03:56:48]NVStorageSaveData done [03:56:48]OFDSenderStorePacket done [03:56:48]KKMCreateOFDPacket done [03:56:48]NVStorageSaveData kkm_last_timestamp [03:56:48]File name is /storage/kkm_last_timestamp [03:56:48]Write 4 bytes [03:56:48]NVStorageSaveData done [03:56:48]ExternCall_PrintAddStr [03:56:48]wPrintStart [03:56:48]Write to MH i2c: 01 00 00 B2 09 BB [03:56:48]OFD Sender: Processing packet 69636 [packets to send 18, broken 17] [03:56:48]ProducePacketName [03:56:48]name=ofd_packets/00069636 [03:56:48]OFD Sender: To server: pG, [03:56:48]CommunicateWithHost lk.salyk.kg:30040 [03:56:48]ConnectInit lk.salyk.kg [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 07 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [03:56:48]RasterBufferAndPrint [03:56:48]line Счет N : (1)2885373 [03:56:48]line ИНН: 02508201610067 [03:56:48]line Контрольно-Кассовый Чек [03:56:48]line ПРОДАЖА [03:56:48]line ТРК (МРК, ГНК) : 71 [03:56:48]line Товар: 2711129700 [03:56:48]line ГАЗ-К-3 [03:56:48]line 6.430 * 38.90 [03:56:48]line = 250.13 [03:56:48]line НДС 12% НСП 1% [03:56:48]line > о реализуемом товаре [03:56:48]line ОКРУГЛЕНИЕ: -0.13 [03:56:48]line ИТОГО: 250.00 [03:56:48]line Внесено: 250.00 [03:56:48]line СДАЧА: 0.00 [03:56:48]line НСП 1% : 2.21 [03:56:48]line НДС 12% : 26.56 [03:56:48]line Наличными: 250.00 [03:56:48]line Безнал.: 0.00 [03:56:48]line Место: АЗС № 85 "Партнер Нефть" [03:56:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:56:48]line СНО: Общий режим [03:56:48]line Чек 26 21.10.2024 03:56 [03:56:48]line Смена: 194 ФФД: 1.0 [03:56:48]line ЗНМ: 0300000167 [03:56:48]line РНМ: 0000000000156251 [03:56:48]line Версия ККМ: v1.0 [03:56:48]line ФМ: 0000000000963346 [03:56:48]line ФД: 69636 [03:56:48]line ФПД: 238836324960198 [03:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T035648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69636&fm=238836324960198&tin=02508201610067®Number=0000000000156251&sum=25000 [03:56:48]Connected sock=10 [03:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A0 F0 06 01 EE DE 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 33 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 D1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 10 01 00 35 04 06 00 D9 38 6A 4F 07 C6 03 2C F7 DF 08 D0 6B F0 [03:56:48]written 0, free lines is 4095 [03:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 E8 47 00 C5 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 10 01 00 F4 03 04 00 A4 7A 15 67 B6 04 01 00 00 C7 05 85 6A 2E 0E C2 20 [03:56:48]CommunicateWithHost err = 0 [03:56:48]CheckOFDResponse [03:56:48]1017 (14) - 77093643461234 [03:56:48]1041 (16) - 0000000000963346 [03:56:48]1040 (4) - 69636 [03:56:48]1012 (4) - 20.10.2024 21:48 [03:56:48]1206 (1) - 0 [03:56:48]OFD Sender: Remove packet 69636 [03:56:48]ProducePacketName [03:56:48]name=ofd_packets/00069636 [03:56:48]NVStorageDeleteData [03:56:48]Write to MH i2c: 01 00 00 DD 09 E6 [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 07 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 EB 0C E4 [03:56:48]RasterBufferAndPrint [03:56:48]line [03:56:48]line [03:56:48]line [03:56:48]line [03:56:48]line [03:56:48]written 0, free lines is 3313 [03:56:48]MH_Cut [03:56:48]Write to MH i2c: D1 01 00 E4 09 01 BF [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: D1 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: D1 01 00 [03:56:48]MH_I2C_Read... [03:56:48]Read from MH i2c: D1 01 00 E4 09 00 BE [03:56:48]Write to MH i2c: 01 00 00 E5 09 EE [03:56:48]Write i2c OK [03:56:48]MH_I2C_Read... [03:56:49]OFD Sender: No OFD packet to send [03:56:49]*** Cut start [03:56:49]*** Partial cut [03:56:49]*** CUTSNS_PIN = 1 [03:56:49]*** CUTSNS_PIN = 0 [03:56:49]*** Brake cut motor [03:56:50]Read from MH i2c: 01 [03:56:50]MH_I2C_Read... [03:56:50]*** Stop cut motor [03:56:50]*** Cut end [03:56:50]Read from MH i2c: 01 07 00 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [03:56:50]process_action close_receipt done [03:56:50]requested_data is exist [03:56:50]produce_requested_data [03:56:50]requested_item fm.sn is exist - process it [03:56:50]wFMCommunicate request_size=4 [03:56:50]MH_SAM_APDU [03:56:50]CAPDU: 80 11 00 00 [03:56:50]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [03:56:50]Write i2c OK [03:56:50]MH_I2C_Read... [03:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:50]Read from MH i2c: E2 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 17 00 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [03:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:56:50]wFMCommunicate OK [03:56:50]requested_item fd.num is exist - process it [03:56:50]SAM_PROTO_GetFieldsCounters [03:56:50]wFMCommunicate request_size=4 [03:56:50]MH_SAM_APDU [03:56:50]CAPDU: 80 13 00 00 [03:56:50]Write to MH i2c: E2 08 00 E7 09 80 13 00 00 00 00 00 00 6C [03:56:50]Write i2c OK [03:56:50]MH_I2C_Read... [03:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:50]Read from MH i2c: E2 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 62 00 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 62 00 E7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 10 01 00 0E 04 04 00 C2 00 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 AC [03:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 10 01 00 0E 04 04 00 C2 00 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:56:50]wFMCommunicate OK [03:56:50]SAM_PROTO_GetFieldsCounters done [03:56:50]requested_item shift.num is exist - process it [03:56:50]requested_item shift.opened is exist - process it [03:56:50]req_shift_opened [03:56:50]FM_GetShiftState [03:56:50]SAM_PROTO_GetShiftState [03:56:50]wFMCommunicate request_size=4 [03:56:50]MH_SAM_APDU [03:56:50]CAPDU: 80 13 01 00 [03:56:50]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [03:56:50]Write i2c OK [03:56:50]MH_I2C_Read... [03:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:50]Read from MH i2c: E2 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 0E 00 [03:56:50]MH_I2C_Read... [03:56:50]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9A [03:56:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:56:50]wFMCommunicate OK [03:56:50]SAM_PROTO_GetShiftState done [03:56:50]FM_GetShiftState done [03:56:50]req_shift_opened done [03:56:50]requested_item shift.open_date is exist - process it [03:56:50]req_shift_open_date [03:56:50]req_shift_open_date done [03:56:50]produce_requested_data done [03:56:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69636,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [03:56:50]process_action_free close_receipt [03:56:50]json_value_free [03:56:50]json_value_free done [03:56:50]process_json_proto returns [03:56:50]Send response to host [03:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69636,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [03:56:50]free response buf [03:56:50]execute_script done [03:56:50]execute_script returns [03:56:50]free content buf [03:56:50]Sock 8.Close socket [03:56:50]Sock 8.Thread stoped [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]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: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: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]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:17:59]accept exits with 9 [04:17:59]New connection [04:17:59]New thread 3067313508 created [04:17:59]Thread 3067456868 joined [04:17:59]Waiting for new connection... [04:17:59] Sock 9.Parse request [04:17:59]Sock 9.Check first char [04:17:59]Sock 9.First char is OK [04:17:59]request: POST /json_proto HTTP/1.0 [04:17:59]Method: POST [04:17:59]URL: /json_proto [04:17:59]Method is POST - this is cgi request [04:17:59]url: /json_proto [04:17:59]query_string will be loaded in cgi processing [04:17:59]execute_cgi json_proto POST (null) [04:17:59]execute_cgi path=json_proto method=POST [04:17:59]POST find Content-Length [04:17:59]Host: 172.17.50.3:8080 [04:17:59]Content-Length: 686 [04:17:59]Content-Type: application/json [04:17:59] [04:17:59]POST finish read [04:17:59]Found Content-Length = 686 [04:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [04:17:59]execute_script... [04:17:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [04:17:59]POST & json_proto [04:17:59]process_json_proto [04:17:59]json parsed OK: [04:17:59]protocol is kg_v1.0 [04:17:59]action value=close_receipt [04:17:59]process_action close_receipt [04:17:59]cmd_close_receipt [04:17:59]MH_GetDate [04:17:59]Write to MH i2c: F0 00 00 E9 09 E1 [04:17:59]Write i2c OK [04:17:59]MH_I2C_Read... [04:17:59]Read from MH i2c: F0 [04:17:59]MH_I2C_Read... [04:17:59]Read from MH i2c: F0 09 00 [04:17:59]MH_I2C_Read... [04:17:59]Read from MH i2c: F0 09 00 E9 09 00 F9 D5 15 67 6B 98 1E 66 BB [04:17:59]GetLastDocTimeStamp 1729483008 [04:17:59]current date 1729484281 [04:17:59]FM_GetShiftState [04:17:59]SAM_PROTO_GetShiftState [04:17:59]wFMCommunicate request_size=4 [04:17:59]MH_SAM_APDU [04:17:59]CAPDU: 80 13 01 00 [04:17:59]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [04:17:59]Write i2c OK [04:17:59]MH_I2C_Read... [04:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:17:59]Read from MH i2c: E2 [04:17:59]MH_I2C_Read... [04:17:59]Read from MH i2c: E2 0E 00 [04:17:59]MH_I2C_Read... [04:17:59]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9C [04:17:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [04:17:59]wFMCommunicate OK [04:17:59]SAM_PROTO_GetShiftState done [04:17:59]FM_GetShiftState done [04:17:59]opened in 1729469703 [04:17:59]opened+sec_in_day 1729556103 [04:17:59]quantity*price = 100011 [04:17:59]sum+1 = 100013 [04:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 27 21.10.2024 04:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69637 ФПД: 186841462958635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041801&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69637&fm=186841462958635&tin=02508201610067®Number=0000000000156251&sum=100000 [04:18:00]StoreToDocumentArchive [04:18:00]shift 194 fd 69637 [04:18:00]save to /storage/0194/doc_00069637 [04:18:00]save last doc name /storage/0194/doc_00069637 to /storage/kkm_last_doc_name [04:18:00]save OK [04:18:00]Clear old archive folders... [04:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:18:00]tlvbuf is 00C44590 [04:18:00]SAM_PROTO_ClearQueue [04:18:00]wFMCommunicate request_size=4 [04:18:00]MH_SAM_APDU [04:18:00]CAPDU: 80 09 00 00 [04:18:00]Write to MH i2c: E2 08 00 F7 09 80 09 00 00 00 00 00 00 72 [04:18:00]Write i2c OK [04:18:00]MH_I2C_Read... [04:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:00]Read from MH i2c: E2 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 03 00 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [04:18:00]RAPDU: 90 00 [04:18:00]wFMCommunicate OK [04:18:00]SAM_PROTO_ClearQueue done [04:18:00]KKMCreateOFDPacket [04:18:00]OFDProtocolAddRootSTLVToBuf [04:18:00]FM_MakeSignedData [04:18:00]FM_MakeSignedData [04:18:00]SAM_PROTO_SignData [04:18:00]wFMCommunicate request_size=4 [04:18:00]MH_SAM_APDU [04:18:00]CAPDU: 80 0D 01 02 [04:18:00]Write to MH i2c: E2 08 00 F8 09 80 0D 01 02 00 00 00 00 7A [04:18:00]Write i2c OK [04:18:00]MH_I2C_Read... [04:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:00]Read from MH i2c: E2 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 03 00 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [04:18:00]RAPDU: 90 00 [04:18:00]wFMCommunicate OK [04:18:00]wFMCommunicate request_size=255 [04:18:00]MH_SAM_APDU [04:18:00]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F9 D5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 10 01 00 35 04 06 00 A9 EE [04:18:00]Write to MH i2c: E2 02 01 F9 09 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F9 D5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 10 01 00 35 04 06 00 A9 EE 00 00 B2 [04:18:00]Write i2c OK [04:18:00]MH_I2C_Read... [04:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:01]Read from MH i2c: E2 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 03 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [04:18:01]RAPDU: 90 00 [04:18:01]wFMCommunicate OK [04:18:01]wFMCommunicate request_size=9 [04:18:01]MH_SAM_APDU [04:18:01]CAPDU: 80 0D 02 02 04 6B 07 6A 2B [04:18:01]Write to MH i2c: E2 0C 00 FA 09 80 0D 02 02 04 00 6B 07 6A 2B 00 00 8C [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:01]Read from MH i2c: E2 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 03 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [04:18:01]RAPDU: 90 00 [04:18:01]wFMCommunicate OK [04:18:01]wFMCommunicate request_size=4 [04:18:01]MH_SAM_APDU [04:18:01]CAPDU: 80 0D 03 02 [04:18:01]Write to MH i2c: E2 08 00 FB 09 80 0D 03 02 00 00 00 00 7F [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:18:01]Read from MH i2c: E2 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 0B 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 0B 00 FB 09 00 A3 6B E4 8E 4F E9 DE 5B 90 00 71 [04:18:01]RAPDU: A3 6B E4 8E 4F E9 DE 5B 90 00 [04:18:01]wFMCommunicate OK [04:18:01]SAM_PROTO_SignData done [04:18:01]FM_MakeSignedData done [04:18:01]CreateOFDProtocolMessage [04:18:01]wFMCommunicate request_size=4 [04:18:01]MH_SAM_APDU [04:18:01]CAPDU: 80 11 00 00 [04:18:01]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:01]Read from MH i2c: E2 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 17 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [04:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:18:01]wFMCommunicate OK [04:18:01]CreateOFDProtocolMessage done [04:18:01]OFDSenderStorePacket 69637 [04:18:01]StoreOFDPacket docnum=69637 [04:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 06 7B 06 01 DB 6C 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F9 D5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 10 01 00 35 04 06 00 A9 EE 6B 07 6A 2B A3 6B E4 8E 4F E9 DE 5B [04:18:01]CheckFolder [04:18:01]dirname=/storage/ofd_packets [04:18:01]CheckFolder done [04:18:01]ProducePacketName [04:18:01]name=ofd_packets/00069637 [04:18:01]NVStorageSaveData ofd_packets/00069637 [04:18:01]File name is /storage/ofd_packets/00069637 [04:18:01]Write 300 bytes [04:18:01]NVStorageSaveData done [04:18:01]OFDSenderStorePacket done [04:18:01]KKMCreateOFDPacket done [04:18:01]NVStorageSaveData kkm_last_timestamp [04:18:01]File name is /storage/kkm_last_timestamp [04:18:01]Write 4 bytes [04:18:01]NVStorageSaveData done [04:18:01]ExternCall_PrintAddStr [04:18:01]wPrintStart [04:18:01]Write to MH i2c: 01 00 00 FD 09 06 [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 07 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [04:18:01]RasterBufferAndPrint [04:18:01]line Счет N : (1)2885374 [04:18:01]line ИНН: 02508201610067 [04:18:01]line Контрольно-Кассовый Чек [04:18:01]line ПРОДАЖА [04:18:01]line ТРК (МРК, ГНК) : 71 [04:18:01]line Товар: 2711129700 [04:18:01]line ГАЗ-К-3 [04:18:01]line 25.710 * 38.90 [04:18:01]line = 1000.12 [04:18:01]line НДС 12% НСП 1% [04:18:01]line > о реализуемом товаре [04:18:01]line ОКРУГЛЕНИЕ: -0.12 [04:18:01]line ИТОГО: 1000.00 [04:18:01]line Внесено: 1000.00 [04:18:01]line СДАЧА: 0.00 [04:18:01]line НСП 1% : 8.85 [04:18:01]line НДС 12% : 106.21 [04:18:01]line Наличными: 1000.00 [04:18:01]line Безнал.: 0.00 [04:18:01]line Место: АЗС № 85 "Партнер Нефть" [04:18:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:18:01]line СНО: Общий режим [04:18:01]line Чек 27 21.10.2024 04:18 [04:18:01]line Смена: 194 ФФД: 1.0 [04:18:01]line ЗНМ: 0300000167 [04:18:01]line РНМ: 0000000000156251 [04:18:01]line Версия ККМ: v1.0 [04:18:01]line ФМ: 0000000000963346 [04:18:01]line ФД: 69637 [04:18:01]line ФПД: 186841462958635 [04:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T041801&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69637&fm=186841462958635&tin=02508201610067®Number=0000000000156251&sum=100000 [04:18:01]OFD Sender: Processing packet 69637 [packets to send 18, broken 17] [04:18:01]ProducePacketName [04:18:01]name=ofd_packets/00069637 [04:18:01]OFD Sender: To server: pG, [04:18:01]CommunicateWithHost lk.salyk.kg:30040 [04:18:01]ConnectInit lk.salyk.kg [04:18:01]written 0, free lines is 4095 [04:18:01]Connected sock=10 [04:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 06 7B 06 01 DB 6C 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F9 D5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 10 01 00 35 04 06 00 A9 EE 6B 07 6A 2B A3 6B E4 8E 4F E9 DE 5B [04:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 69 85 47 00 F9 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 39 36 33 33 34 36 10 04 04 00 05 10 01 00 F4 03 04 00 9E 7F 15 67 B6 04 01 00 00 9B 0B 5F 29 5F 57 7A 60 [04:18:01]CommunicateWithHost err = 0 [04:18:01]CheckOFDResponse [04:18:01]1017 (14) - 77093643461234 [04:18:01]1041 (16) - 0000000000963346 [04:18:01]1040 (4) - 69637 [04:18:01]1012 (4) - 20.10.2024 22:09 [04:18:01]1206 (1) - 0 [04:18:01]OFD Sender: Remove packet 69637 [04:18:01]ProducePacketName [04:18:01]name=ofd_packets/00069637 [04:18:01]NVStorageDeleteData [04:18:01]Write to MH i2c: 01 00 00 28 0A 32 [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 07 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 EE 0C 33 [04:18:01]RasterBufferAndPrint [04:18:01]line [04:18:01]line [04:18:01]line [04:18:01]line [04:18:01]line [04:18:01]written 0, free lines is 3316 [04:18:01]MH_Cut [04:18:01]Write to MH i2c: D1 01 00 2F 0A 01 0B [04:18:01]Write i2c OK [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: D1 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: D1 01 00 [04:18:01]MH_I2C_Read... [04:18:01]Read from MH i2c: D1 01 00 2F 0A 00 0A [04:18:02]Write to MH i2c: 01 00 00 30 0A 3A [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]OFD Sender: No OFD packet to send [04:18:02]*** Cut start [04:18:02]*** Partial cut [04:18:02]*** CUTSNS_PIN = 1 [04:18:02]*** CUTSNS_PIN = 0 [04:18:02]*** Brake cut motor [04:18:03]Read from MH i2c: 01 [04:18:03]MH_I2C_Read... [04:18:03]*** Stop cut motor [04:18:03]*** Cut end [04:18:03]Read from MH i2c: 01 07 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [04:18:03]process_action close_receipt done [04:18:03]requested_data is exist [04:18:03]produce_requested_data [04:18:03]requested_item fm.sn is exist - process it [04:18:03]wFMCommunicate request_size=4 [04:18:03]MH_SAM_APDU [04:18:03]CAPDU: 80 11 00 00 [04:18:03]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:03]Read from MH i2c: E2 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 17 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [04:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:18:03]wFMCommunicate OK [04:18:03]requested_item fd.num is exist - process it [04:18:03]SAM_PROTO_GetFieldsCounters [04:18:03]wFMCommunicate request_size=4 [04:18:03]MH_SAM_APDU [04:18:03]CAPDU: 80 13 00 00 [04:18:03]Write to MH i2c: E2 08 00 32 0A 80 13 00 00 00 00 00 00 B8 [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:18:03]Read from MH i2c: E2 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 62 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 62 00 32 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 10 01 00 0E 04 04 00 C2 00 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 FC [04:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 10 01 00 0E 04 04 00 C2 00 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 [04:18:03]wFMCommunicate OK [04:18:03]SAM_PROTO_GetFieldsCounters done [04:18:03]requested_item shift.num is exist - process it [04:18:03]requested_item shift.opened is exist - process it [04:18:03]req_shift_opened [04:18:03]FM_GetShiftState [04:18:03]SAM_PROTO_GetShiftState [04:18:03]wFMCommunicate request_size=4 [04:18:03]MH_SAM_APDU [04:18:03]CAPDU: 80 13 01 00 [04:18:03]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:03]Read from MH i2c: E2 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 0E 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E6 [04:18:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [04:18:03]wFMCommunicate OK [04:18:03]SAM_PROTO_GetShiftState done [04:18:03]FM_GetShiftState done [04:18:03]req_shift_opened done [04:18:03]requested_item shift.open_date is exist - process it [04:18:03]req_shift_open_date [04:18:03]req_shift_open_date done [04:18:03]produce_requested_data done [04:18:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69637,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [04:18:03]process_action_free close_receipt [04:18:03]json_value_free [04:18:03]json_value_free done [04:18:03]process_json_proto returns [04:18:03]Send response to host [04:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69637,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [04:18:03]free response buf [04:18:03]execute_script done [04:18:03]execute_script returns [04:18:03]free content buf [04:18:03]Sock 9.Close socket [04:18:03]Sock 9.Thread stoped [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [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: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: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:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]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: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:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:17]accept exits with 8 [05:03:17]New connection [05:03:17]New thread 3067456868 created [05:03:17]Thread 3067313508 joined [05:03:17]Waiting for new connection... [05:03:17] Sock 8.Parse request [05:03:17]Sock 8.Check first char [05:03:17]Sock 8.First char is OK [05:03:17]request: POST /json_proto HTTP/1.0 [05:03:17]Method: POST [05:03:17]URL: /json_proto [05:03:17]Method is POST - this is cgi request [05:03:17]url: /json_proto [05:03:17]query_string will be loaded in cgi processing [05:03:17]execute_cgi json_proto POST (null) [05:03:17]execute_cgi path=json_proto method=POST [05:03:17]POST find Content-Length [05:03:17]Host: 172.17.50.3:8080 [05:03:17]Content-Length: 683 [05:03:17]Content-Type: application/json [05:03:17] [05:03:17]POST finish read [05:03:17]Found Content-Length = 683 [05:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885375", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:17]execute_script... [05:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885375", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:17]POST & json_proto [05:03:17]process_json_proto [05:03:17]json parsed OK: [05:03:17]protocol is kg_v1.0 [05:03:17]action value=close_receipt [05:03:17]process_action close_receipt [05:03:17]cmd_close_receipt [05:03:17]MH_GetDate [05:03:17]Write to MH i2c: F0 00 00 34 0A 2D [05:03:17]Write i2c OK [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 09 00 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 09 00 34 0A 00 97 E0 15 67 6B 98 1E 66 B0 [05:03:17]GetLastDocTimeStamp 1729484281 [05:03:17]current date 1729486999 [05:03:17]FM_GetShiftState [05:03:17]SAM_PROTO_GetShiftState [05:03:17]wFMCommunicate request_size=4 [05:03:17]MH_SAM_APDU [05:03:17]CAPDU: 80 13 01 00 [05:03:17]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [05:03:17]Write i2c OK [05:03:17]MH_I2C_Read... [05:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:17]Read from MH i2c: E2 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: E2 0E 00 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E8 [05:03:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [05:03:17]wFMCommunicate OK [05:03:17]SAM_PROTO_GetShiftState done [05:03:17]FM_GetShiftState done [05:03:17]opened in 1729469703 [05:03:17]opened+sec_in_day 1729556103 [05:03:17]quantity*price = 100015 [05:03:17]sum+1 = 100017 [05:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 28 21.10.2024 05:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69638 ФПД: 126873271907779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T050319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69638&fm=126873271907779&tin=02508201610067®Number=0000000000156251&sum=100000 [05:03:19]StoreToDocumentArchive [05:03:19]shift 194 fd 69638 [05:03:19]save to /storage/0194/doc_00069638 [05:03:19]save last doc name /storage/0194/doc_00069638 to /storage/kkm_last_doc_name [05:03:19]save OK [05:03:19]Clear old archive folders... [05:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:03:19]tlvbuf is 00C24E20 [05:03:19]SAM_PROTO_ClearQueue [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 09 00 00 [05:03:19]Write to MH i2c: E2 08 00 42 0A 80 09 00 00 00 00 00 00 BE [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]SAM_PROTO_ClearQueue done [05:03:19]KKMCreateOFDPacket [05:03:19]OFDProtocolAddRootSTLVToBuf [05:03:19]FM_MakeSignedData [05:03:19]FM_MakeSignedData [05:03:19]SAM_PROTO_SignData [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 0D 01 02 [05:03:19]Write to MH i2c: E2 08 00 43 0A 80 0D 01 02 00 00 00 00 C6 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]wFMCommunicate request_size=255 [05:03:19]MH_SAM_APDU [05:03:19]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 97 E0 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 10 01 00 35 04 06 00 73 [05:03:19]Write to MH i2c: E2 02 01 44 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 97 E0 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 10 01 00 35 04 06 00 73 00 00 A4 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]wFMCommunicate request_size=10 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 0D 02 02 05 63 FC 4D B5 C3 [05:03:19]Write to MH i2c: E2 0D 00 45 0A 80 0D 02 02 05 00 63 FC 4D B5 C3 00 00 F7 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 0D 03 02 [05:03:19]Write to MH i2c: E2 08 00 46 0A 80 0D 03 02 00 00 00 00 CB [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 0B 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 0B 00 46 0A 00 44 13 1E DD F6 88 73 78 90 00 87 [05:03:19]RAPDU: 44 13 1E DD F6 88 73 78 90 00 [05:03:19]wFMCommunicate OK [05:03:19]SAM_PROTO_SignData done [05:03:19]FM_MakeSignedData done [05:03:19]CreateOFDProtocolMessage [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 11 00 00 [05:03:19]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 17 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [05:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:03:19]wFMCommunicate OK [05:03:19]CreateOFDProtocolMessage done [05:03:19]OFDSenderStorePacket 69638 [05:03:19]StoreOFDPacket docnum=69638 [05:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 43 AC 07 01 44 47 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 97 E0 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 10 01 00 35 04 06 00 73 63 FC 4D B5 C3 44 13 1E DD F6 88 73 78 [05:03:19]CheckFolder [05:03:19]dirname=/storage/ofd_packets [05:03:19]CheckFolder done [05:03:19]ProducePacketName [05:03:19]name=ofd_packets/00069638 [05:03:19]NVStorageSaveData ofd_packets/00069638 [05:03:19]File name is /storage/ofd_packets/00069638 [05:03:19]Write 301 bytes [05:03:19]NVStorageSaveData done [05:03:19]OFDSenderStorePacket done [05:03:19]KKMCreateOFDPacket done [05:03:19]NVStorageSaveData kkm_last_timestamp [05:03:19]File name is /storage/kkm_last_timestamp [05:03:19]Write 4 bytes [05:03:19]NVStorageSaveData done [05:03:19]ExternCall_PrintAddStr [05:03:19]wPrintStart [05:03:19]Write to MH i2c: 01 00 00 48 0A 52 [05:03:19]OFD Sender: Processing packet 69638 [packets to send 18, broken 17] [05:03:19]ProducePacketName [05:03:19]name=ofd_packets/00069638 [05:03:19]OFD Sender: To server: pG, [05:03:19]CommunicateWithHost lk.salyk.kg:30040 [05:03:19]ConnectInit lk.salyk.kg [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 07 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 FF 0F 67 [05:03:19]RasterBufferAndPrint [05:03:19]line Счет N : (1)2885375 [05:03:19]line ИНН: 02508201610067 [05:03:19]line Контрольно-Кассовый Чек [05:03:19]line ПРОДАЖА [05:03:19]line ТРК (МРК, ГНК) : 42 [05:03:19]line Товар: 2710124130 [05:03:19]line Аи-92-К-5 [05:03:19]line 14.950 * 66.90 [05:03:19]line = 1000.16 [05:03:19]line НДС 12% НСП 1% [05:03:19]line > о реализуемом товаре [05:03:19]line ОКРУГЛЕНИЕ: -0.16 [05:03:19]line ИТОГО: 1000.00 [05:03:19]line Внесено: 1000.00 [05:03:19]line СДАЧА: 0.00 [05:03:19]line НСП 1% : 8.85 [05:03:19]line НДС 12% : 106.21 [05:03:19]line Наличными: 1000.00 [05:03:19]line Безнал.: 0.00 [05:03:19]line Место: АЗС № 85 "Партнер Нефть" [05:03:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:03:19]line СНО: Общий режим [05:03:19]line Чек 28 21.10.2024 05:03 [05:03:19]line Смена: 194 ФФД: 1.0 [05:03:19]line ЗНМ: 0300000167 [05:03:19]line РНМ: 0000000000156251 [05:03:19]line Версия ККМ: v1.0 [05:03:19]line ФМ: 0000000000963346 [05:03:19]line ФД: 69638 [05:03:19]line ФПД: 126873271907779 [05:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T050319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69638&fm=126873271907779&tin=02508201610067®Number=0000000000156251&sum=100000 [05:03:19]Connected sock=10 [05:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 43 AC 07 01 44 47 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 97 E0 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 10 01 00 35 04 06 00 73 63 FC 4D B5 C3 44 13 1E DD F6 88 73 78 [05:03:19]written 0, free lines is 4095 [05:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1C 56 47 00 5A 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 10 01 00 F4 03 04 00 3C 8A 15 67 B6 04 01 00 00 42 07 6A 0C AF A2 CA 0D [05:03:20]CommunicateWithHost err = 0 [05:03:20]CheckOFDResponse [05:03:20]1017 (14) - 77093643461234 [05:03:20]1041 (16) - 0000000000963346 [05:03:20]1040 (4) - 69638 [05:03:20]1012 (4) - 20.10.2024 22:54 [05:03:20]1206 (1) - 0 [05:03:20]OFD Sender: Remove packet 69638 [05:03:20]ProducePacketName [05:03:20]name=ofd_packets/00069638 [05:03:20]NVStorageDeleteData [05:03:20]Write to MH i2c: 01 00 00 73 0A 7D [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 07 00 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 F3 0C 83 [05:03:20]RasterBufferAndPrint [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]written 0, free lines is 3321 [05:03:20]MH_Cut [05:03:20]Write to MH i2c: D1 01 00 7A 0A 01 56 [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 01 00 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 01 00 7A 0A 00 55 [05:03:20]Write to MH i2c: 01 00 00 7B 0A 85 [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]OFD Sender: No OFD packet to send [05:03:21]*** Cut start [05:03:21]*** Partial cut [05:03:21]*** CUTSNS_PIN = 1 [05:03:21]*** CUTSNS_PIN = 0 [05:03:21]*** Brake cut motor [05:03:21]Read from MH i2c: 01 [05:03:21]MH_I2C_Read... [05:03:21]*** Stop cut motor [05:03:21]*** Cut end [05:03:21]Read from MH i2c: 01 07 00 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [05:03:21]process_action close_receipt done [05:03:21]requested_data is exist [05:03:21]produce_requested_data [05:03:21]requested_item fm.sn is exist - process it [05:03:21]wFMCommunicate request_size=4 [05:03:21]MH_SAM_APDU [05:03:21]CAPDU: 80 11 00 00 [05:03:21]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [05:03:21]Write i2c OK [05:03:21]MH_I2C_Read... [05:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:21]Read from MH i2c: E2 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 17 00 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [05:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:03:21]wFMCommunicate OK [05:03:21]requested_item fd.num is exist - process it [05:03:21]SAM_PROTO_GetFieldsCounters [05:03:21]wFMCommunicate request_size=4 [05:03:21]MH_SAM_APDU [05:03:21]CAPDU: 80 13 00 00 [05:03:21]Write to MH i2c: E2 08 00 7D 0A 80 13 00 00 00 00 00 00 03 [05:03:21]Write i2c OK [05:03:21]MH_I2C_Read... [05:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:21]Read from MH i2c: E2 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 62 00 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 62 00 7D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 10 01 00 0E 04 04 00 C2 00 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 4B [05:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 10 01 00 0E 04 04 00 C2 00 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 [05:03:21]wFMCommunicate OK [05:03:21]SAM_PROTO_GetFieldsCounters done [05:03:21]requested_item shift.num is exist - process it [05:03:21]requested_item shift.opened is exist - process it [05:03:21]req_shift_opened [05:03:21]FM_GetShiftState [05:03:21]SAM_PROTO_GetShiftState [05:03:21]wFMCommunicate request_size=4 [05:03:21]MH_SAM_APDU [05:03:21]CAPDU: 80 13 01 00 [05:03:21]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [05:03:21]Write i2c OK [05:03:21]MH_I2C_Read... [05:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:21]Read from MH i2c: E2 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 0E 00 [05:03:21]MH_I2C_Read... [05:03:21]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 31 [05:03:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [05:03:21]wFMCommunicate OK [05:03:21]SAM_PROTO_GetShiftState done [05:03:21]FM_GetShiftState done [05:03:21]req_shift_opened done [05:03:21]requested_item shift.open_date is exist - process it [05:03:21]req_shift_open_date [05:03:21]req_shift_open_date done [05:03:21]produce_requested_data done [05:03:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69638,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [05:03:21]process_action_free close_receipt [05:03:21]json_value_free [05:03:21]json_value_free done [05:03:21]process_json_proto returns [05:03:21]Send response to host [05:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69638,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [05:03:21]free response buf [05:03:21]execute_script done [05:03:21]execute_script returns [05:03:22]free content buf [05:03:22]Sock 8.Close socket [05:03:22]Sock 8.Thread stoped [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [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: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:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:00]accept exits with 9 [05:45:00]New connection [05:45:00]New thread 3067313508 created [05:45:00]Thread 3067456868 joined [05:45:00]Waiting for new connection... [05:45:00] Sock 9.Parse request [05:45:00]Sock 9.Check first char [05:45:00]Sock 9.First char is OK [05:45:00]request: POST /json_proto HTTP/1.0 [05:45:00]Method: POST [05:45:00]URL: /json_proto [05:45:00]Method is POST - this is cgi request [05:45:00]url: /json_proto [05:45:00]query_string will be loaded in cgi processing [05:45:00]execute_cgi json_proto POST (null) [05:45:00]execute_cgi path=json_proto method=POST [05:45:00]POST find Content-Length [05:45:00]Host: 172.17.50.3:8080 [05:45:00]Content-Length: 686 [05:45:00]Content-Type: application/json [05:45:00] [05:45:00]POST finish read [05:45:00]Found Content-Length = 686 [05:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:45:00]execute_script... [05:45: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)2885376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:45:00]POST & json_proto [05:45:00]process_json_proto [05:45:00]json parsed OK: [05:45:00]protocol is kg_v1.0 [05:45:00]action value=close_receipt [05:45:00]process_action close_receipt [05:45:00]cmd_close_receipt [05:45:00]MH_GetDate [05:45:00]Write to MH i2c: F0 00 00 7F 0A 78 [05:45:00]Write i2c OK [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: F0 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: F0 09 00 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: F0 09 00 7F 0A 00 5E EA 15 67 6B 98 1E 66 CC [05:45:00]GetLastDocTimeStamp 1729486999 [05:45:00]current date 1729489502 [05:45:00]FM_GetShiftState [05:45:00]SAM_PROTO_GetShiftState [05:45:00]wFMCommunicate request_size=4 [05:45:00]MH_SAM_APDU [05:45:00]CAPDU: 80 13 01 00 [05:45:00]Write to MH i2c: E2 08 00 80 0A 80 13 01 00 00 00 00 00 07 [05:45:00]Write i2c OK [05:45:00]MH_I2C_Read... [05:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:00]Read from MH i2c: E2 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: E2 0E 00 [05:45:00]MH_I2C_Read... [05:45:00]Read from MH i2c: E2 0E 00 80 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 33 [05:45:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [05:45:00]wFMCommunicate OK [05:45:00]SAM_PROTO_GetShiftState done [05:45:00]FM_GetShiftState done [05:45:00]opened in 1729469703 [05:45:00]opened+sec_in_day 1729556103 [05:45:00]quantity*price = 100011 [05:45:00]sum+1 = 100013 [05:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 29 21.10.2024 05:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69639 ФПД: 55003931636841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T054502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69639&fm=55003931636841&tin=02508201610067®Number=0000000000156251&sum=100000 [05:45:01]StoreToDocumentArchive [05:45:01]shift 194 fd 69639 [05:45:01]save to /storage/0194/doc_00069639 [05:45:01]save last doc name /storage/0194/doc_00069639 to /storage/kkm_last_doc_name [05:45:01]save OK [05:45:01]Clear old archive folders... [05:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:45:01]tlvbuf is 00C71A50 [05:45:01]SAM_PROTO_ClearQueue [05:45:01]wFMCommunicate request_size=4 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 09 00 00 [05:45:01]Write to MH i2c: E2 08 00 8D 0A 80 09 00 00 00 00 00 00 09 [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [05:45:01]RAPDU: 90 00 [05:45:01]wFMCommunicate OK [05:45:01]SAM_PROTO_ClearQueue done [05:45:01]KKMCreateOFDPacket [05:45:01]OFDProtocolAddRootSTLVToBuf [05:45:01]FM_MakeSignedData [05:45:01]FM_MakeSignedData [05:45:01]SAM_PROTO_SignData [05:45:01]wFMCommunicate request_size=4 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 0D 01 02 [05:45:01]Write to MH i2c: E2 08 00 8E 0A 80 0D 01 02 00 00 00 00 11 [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [05:45:01]RAPDU: 90 00 [05:45:01]wFMCommunicate OK [05:45:01]wFMCommunicate request_size=255 [05:45:01]MH_SAM_APDU [05:45:01]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E EA 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 10 01 00 35 04 06 00 32 06 [05:45:01]Write to MH i2c: E2 02 01 8F 0A 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E EA 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 10 01 00 35 04 06 00 32 06 00 00 68 [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:01]Read from MH i2c: E2 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 [05:45:01]MH_I2C_Read... [05:45:01]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [05:45:01]RAPDU: 90 00 [05:45:01]wFMCommunicate OK [05:45:01]wFMCommunicate request_size=9 [05:45:01]MH_SAM_APDU [05:45:01]CAPDU: 80 0D 02 02 04 99 CE 74 69 [05:45:01]Write to MH i2c: E2 0C 00 90 0A 80 0D 02 02 04 00 99 CE 74 69 00 00 60 [05:45:01]Write i2c OK [05:45:01]MH_I2C_Read... [05:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:02]Read from MH i2c: E2 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 03 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [05:45:02]RAPDU: 90 00 [05:45:02]wFMCommunicate OK [05:45:02]wFMCommunicate request_size=4 [05:45:02]MH_SAM_APDU [05:45:02]CAPDU: 80 0D 03 02 [05:45:02]Write to MH i2c: E2 08 00 91 0A 80 0D 03 02 00 00 00 00 16 [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:02]Read from MH i2c: E2 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 0B 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 0B 00 91 0A 00 A2 5C D5 11 2A 88 D8 26 90 00 AB [05:45:02]RAPDU: A2 5C D5 11 2A 88 D8 26 90 00 [05:45:02]wFMCommunicate OK [05:45:02]SAM_PROTO_SignData done [05:45:02]FM_MakeSignedData done [05:45:02]CreateOFDProtocolMessage [05:45:02]wFMCommunicate request_size=4 [05:45:02]MH_SAM_APDU [05:45:02]CAPDU: 80 11 00 00 [05:45:02]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:02]Read from MH i2c: E2 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 17 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [05:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:45:02]wFMCommunicate OK [05:45:02]CreateOFDProtocolMessage done [05:45:02]OFDSenderStorePacket 69639 [05:45:02]StoreOFDPacket docnum=69639 [05:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C7 F2 06 01 7D 60 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E EA 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 10 01 00 35 04 06 00 32 06 99 CE 74 69 A2 5C D5 11 2A 88 D8 26 [05:45:02]CheckFolder [05:45:02]dirname=/storage/ofd_packets [05:45:02]CheckFolder done [05:45:02]ProducePacketName [05:45:02]name=ofd_packets/00069639 [05:45:02]NVStorageSaveData ofd_packets/00069639 [05:45:02]File name is /storage/ofd_packets/00069639 [05:45:02]Write 300 bytes [05:45:02]NVStorageSaveData done [05:45:02]OFDSenderStorePacket done [05:45:02]KKMCreateOFDPacket done [05:45:02]NVStorageSaveData kkm_last_timestamp [05:45:02]File name is /storage/kkm_last_timestamp [05:45:02]Write 4 bytes [05:45:02]NVStorageSaveData done [05:45:02]ExternCall_PrintAddStr [05:45:02]wPrintStart [05:45:02]Write to MH i2c: 01 00 00 93 0A 9D [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 07 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 FF 0F B2 [05:45:02]RasterBufferAndPrint [05:45:02]line Счет N : (1)2885376 [05:45:02]line ИНН: 02508201610067 [05:45:02]line Контрольно-Кассовый Чек [05:45:02]line ПРОДАЖА [05:45:02]line ТРК (МРК, ГНК) : 71 [05:45:02]line Товар: 2711129700 [05:45:02]line ГАЗ-К-3 [05:45:02]line 25.710 * 38.90 [05:45:02]line = 1000.12 [05:45:02]line НДС 12% НСП 1% [05:45:02]line > о реализуемом товаре [05:45:02]line ОКРУГЛЕНИЕ: -0.12 [05:45:02]line ИТОГО: 1000.00 [05:45:02]line Внесено: 1000.00 [05:45:02]line СДАЧА: 0.00 [05:45:02]line НСП 1% : 8.85 [05:45:02]line НДС 12% : 106.21 [05:45:02]line Наличными: 1000.00 [05:45:02]line Безнал.: 0.00 [05:45:02]line Место: АЗС № 85 "Партнер Нефть" [05:45:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:45:02]line СНО: Общий режим [05:45:02]line Чек 29 21.10.2024 05:45 [05:45:02]line Смена: 194 ФФД: 1.0 [05:45:02]line ЗНМ: 0300000167 [05:45:02]line РНМ: 0000000000156251 [05:45:02]line Версия ККМ: v1.0 [05:45:02]line ФМ: 0000000000963346 [05:45:02]line ФД: 69639 [05:45:02]line ФПД: 55003931636841 [05:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T054502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69639&fm=55003931636841&tin=02508201610067®Number=0000000000156251&sum=100000 [05:45:02]OFD Sender: Processing packet 69639 [packets to send 18, broken 17] [05:45:02]ProducePacketName [05:45:02]name=ofd_packets/00069639 [05:45:02]OFD Sender: To server: pG, [05:45:02]CommunicateWithHost lk.salyk.kg:30040 [05:45:02]ConnectInit lk.salyk.kg [05:45:02]written 0, free lines is 4095 [05:45:02]Connected sock=10 [05:45:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C7 F2 06 01 7D 60 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E EA 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 10 01 00 35 04 06 00 32 06 99 CE 74 69 A2 5C D5 11 2A 88 D8 26 [05:45:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 14 47 00 CE 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 39 36 33 33 34 36 10 04 04 00 07 10 01 00 F4 03 04 00 03 94 15 67 B6 04 01 00 00 F8 D4 CD FC DA 4A E0 1A [05:45:02]CommunicateWithHost err = 0 [05:45:02]CheckOFDResponse [05:45:02]1017 (14) - 77093643461234 [05:45:02]1041 (16) - 0000000000963346 [05:45:02]1040 (4) - 69639 [05:45:02]1012 (4) - 20.10.2024 23:36 [05:45:02]1206 (1) - 0 [05:45:02]OFD Sender: Remove packet 69639 [05:45:02]ProducePacketName [05:45:02]name=ofd_packets/00069639 [05:45:02]NVStorageDeleteData [05:45:02]Write to MH i2c: 01 00 00 BE 0A C8 [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 07 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 E0 0C BB [05:45:02]RasterBufferAndPrint [05:45:02]line [05:45:02]line [05:45:02]line [05:45:02]line [05:45:02]line [05:45:02]written 0, free lines is 3305 [05:45:02]MH_Cut [05:45:02]Write to MH i2c: D1 01 00 C5 0A 01 A1 [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: D1 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: D1 01 00 [05:45:02]MH_I2C_Read... [05:45:02]Read from MH i2c: D1 01 00 C5 0A 00 A0 [05:45:02]Write to MH i2c: 01 00 00 C6 0A D0 [05:45:02]Write i2c OK [05:45:02]MH_I2C_Read... [05:45:03]OFD Sender: No OFD packet to send [05:45:03]*** Cut start [05:45:03]*** Partial cut [05:45:03]*** CUTSNS_PIN = 1 [05:45:03]*** CUTSNS_PIN = 0 [05:45:03]*** Brake cut motor [05:45:04]Read from MH i2c: 01 [05:45:04]MH_I2C_Read... [05:45:04]*** Stop cut motor [05:45:04]*** Cut end [05:45:04]Read from MH i2c: 01 07 00 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 FF 0F E5 [05:45:04]process_action close_receipt done [05:45:04]requested_data is exist [05:45:04]produce_requested_data [05:45:04]requested_item fm.sn is exist - process it [05:45:04]wFMCommunicate request_size=4 [05:45:04]MH_SAM_APDU [05:45:04]CAPDU: 80 11 00 00 [05:45:04]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [05:45:04]Write i2c OK [05:45:04]MH_I2C_Read... [05:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:04]Read from MH i2c: E2 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 17 00 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [05:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:45:04]wFMCommunicate OK [05:45:04]requested_item fd.num is exist - process it [05:45:04]SAM_PROTO_GetFieldsCounters [05:45:04]wFMCommunicate request_size=4 [05:45:04]MH_SAM_APDU [05:45:04]CAPDU: 80 13 00 00 [05:45:04]Write to MH i2c: E2 08 00 C8 0A 80 13 00 00 00 00 00 00 4E [05:45:04]Write i2c OK [05:45:04]MH_I2C_Read... [05:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:04]Read from MH i2c: E2 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 62 00 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 62 00 C8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 10 01 00 0E 04 04 00 C2 00 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 9A [05:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 10 01 00 0E 04 04 00 C2 00 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 [05:45:04]wFMCommunicate OK [05:45:04]SAM_PROTO_GetFieldsCounters done [05:45:04]requested_item shift.num is exist - process it [05:45:04]requested_item shift.opened is exist - process it [05:45:04]req_shift_opened [05:45:04]FM_GetShiftState [05:45:04]SAM_PROTO_GetShiftState [05:45:04]wFMCommunicate request_size=4 [05:45:04]MH_SAM_APDU [05:45:04]CAPDU: 80 13 01 00 [05:45:04]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [05:45:04]Write i2c OK [05:45:04]MH_I2C_Read... [05:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:04]Read from MH i2c: E2 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 0E 00 [05:45:04]MH_I2C_Read... [05:45:04]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7C [05:45:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [05:45:04]wFMCommunicate OK [05:45:04]SAM_PROTO_GetShiftState done [05:45:04]FM_GetShiftState done [05:45:04]req_shift_opened done [05:45:04]requested_item shift.open_date is exist - process it [05:45:04]req_shift_open_date [05:45:04]req_shift_open_date done [05:45:04]produce_requested_data done [05:45:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69639,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [05:45:04]process_action_free close_receipt [05:45:04]json_value_free [05:45:04]json_value_free done [05:45:04]process_json_proto returns [05:45:04]Send response to host [05:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69639,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [05:45:04]free response buf [05:45:04]execute_script done [05:45:04]execute_script returns [05:45:04]free content buf [05:45:04]Sock 9.Close socket [05:45:04]Sock 9.Thread stoped [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]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: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:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]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: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: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: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: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: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:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:16]accept exits with 8 [06:21:16]New connection [06:21:16]New thread 3067456868 created [06:21:16]Thread 3067313508 joined [06:21:16]Waiting for new connection... [06:21:16] Sock 8.Parse request [06:21:16]Sock 8.Check first char [06:21:16]Sock 8.First char is OK [06:21:16]request: POST /json_proto HTTP/1.0 [06:21:16]Method: POST [06:21:16]URL: /json_proto [06:21:16]Method is POST - this is cgi request [06:21:16]url: /json_proto [06:21:16]query_string will be loaded in cgi processing [06:21:16]execute_cgi json_proto POST (null) [06:21:16]execute_cgi path=json_proto method=POST [06:21:16]POST find Content-Length [06:21:16]Host: 172.17.50.3:8080 [06:21:16]Content-Length: 678 [06:21:16]Content-Type: application/json [06:21:16] [06:21:16]POST finish read [06:21:16]Found Content-Length = 678 [06:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:16]execute_script... [06:21: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)2885377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:16]POST & json_proto [06:21:16]process_json_proto [06:21:16]json parsed OK: [06:21:16]protocol is kg_v1.0 [06:21:16]action value=close_receipt [06:21:16]process_action close_receipt [06:21:16]cmd_close_receipt [06:21:16]MH_GetDate [06:21:16]Write to MH i2c: F0 00 00 CA 0A C3 [06:21:16]Write i2c OK [06:21:16]MH_I2C_Read... [06:21:16]Read from MH i2c: F0 [06:21:16]MH_I2C_Read... [06:21:16]Read from MH i2c: F0 09 00 [06:21:16]MH_I2C_Read... [06:21:16]Read from MH i2c: F0 09 00 CA 0A 00 DE F2 15 67 6B 98 1E 66 9F [06:21:16]GetLastDocTimeStamp 1729489502 [06:21:16]current date 1729491678 [06:21:16]FM_GetShiftState [06:21:16]SAM_PROTO_GetShiftState [06:21:16]wFMCommunicate request_size=4 [06:21:16]MH_SAM_APDU [06:21:16]CAPDU: 80 13 01 00 [06:21:16]Write to MH i2c: E2 08 00 CB 0A 80 13 01 00 00 00 00 00 52 [06:21:16]Write i2c OK [06:21:16]MH_I2C_Read... [06:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:16]Read from MH i2c: E2 [06:21:16]MH_I2C_Read... [06:21:16]Read from MH i2c: E2 0E 00 [06:21:16]MH_I2C_Read... [06:21:16]Read from MH i2c: E2 0E 00 CB 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7E [06:21:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:21:16]wFMCommunicate OK [06:21:16]SAM_PROTO_GetShiftState done [06:21:16]FM_GetShiftState done [06:21:16]opened in 1729469703 [06:21:16]opened+sec_in_day 1729556103 [06:21:16]quantity*price = 60009 [06:21:16]sum+1 = 60010 [06:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 30 21.10.2024 06:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69640 ФПД: 110946923010588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062118&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69640&fm=110946923010588&tin=02508201610067®Number=0000000000156251&sum=60000 [06:21:17]StoreToDocumentArchive [06:21:17]shift 194 fd 69640 [06:21:17]save to /storage/0194/doc_00069640 [06:21:17]save last doc name /storage/0194/doc_00069640 to /storage/kkm_last_doc_name [06:21:17]save OK [06:21:17]Clear old archive folders... [06:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:21:17]tlvbuf is 00C04A20 [06:21:17]SAM_PROTO_ClearQueue [06:21:17]wFMCommunicate request_size=4 [06:21:17]MH_SAM_APDU [06:21:17]CAPDU: 80 09 00 00 [06:21:17]Write to MH i2c: E2 08 00 D8 0A 80 09 00 00 00 00 00 00 54 [06:21:17]Write i2c OK [06:21:17]MH_I2C_Read... [06:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:17]Read from MH i2c: E2 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [06:21:17]RAPDU: 90 00 [06:21:17]wFMCommunicate OK [06:21:17]SAM_PROTO_ClearQueue done [06:21:17]KKMCreateOFDPacket [06:21:17]OFDProtocolAddRootSTLVToBuf [06:21:17]FM_MakeSignedData [06:21:17]FM_MakeSignedData [06:21:17]SAM_PROTO_SignData [06:21:17]wFMCommunicate request_size=4 [06:21:17]MH_SAM_APDU [06:21:17]CAPDU: 80 0D 01 02 [06:21:17]Write to MH i2c: E2 08 00 D9 0A 80 0D 01 02 00 00 00 00 5C [06:21:17]Write i2c OK [06:21:17]MH_I2C_Read... [06:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:17]Read from MH i2c: E2 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [06:21:17]RAPDU: 90 00 [06:21:17]wFMCommunicate OK [06:21:17]wFMCommunicate request_size=255 [06:21:17]MH_SAM_APDU [06:21:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE F2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 10 01 00 35 04 06 00 64 [06:21:17]Write to MH i2c: E2 02 01 DA 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE F2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 10 01 00 35 04 06 00 64 00 00 6B [06:21:17]Write i2c OK [06:21:17]MH_I2C_Read... [06:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:17]Read from MH i2c: E2 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [06:21:17]RAPDU: 90 00 [06:21:17]wFMCommunicate OK [06:21:17]wFMCommunicate request_size=10 [06:21:17]MH_SAM_APDU [06:21:17]CAPDU: 80 0D 02 02 05 E7 D7 EF 5A 1C [06:21:17]Write to MH i2c: E2 0D 00 DB 0A 80 0D 02 02 05 00 E7 D7 EF 5A 1C 00 00 8C [06:21:17]Write i2c OK [06:21:17]MH_I2C_Read... [06:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:17]Read from MH i2c: E2 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 [06:21:17]MH_I2C_Read... [06:21:17]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [06:21:17]RAPDU: 90 00 [06:21:17]wFMCommunicate OK [06:21:17]wFMCommunicate request_size=4 [06:21:17]MH_SAM_APDU [06:21:17]CAPDU: 80 0D 03 02 [06:21:17]Write to MH i2c: E2 08 00 DC 0A 80 0D 03 02 00 00 00 00 61 [06:21:17]Write i2c OK [06:21:17]MH_I2C_Read... [06:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:18]Read from MH i2c: E2 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: E2 0B 00 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: E2 0B 00 DC 0A 00 0D 76 14 CC 78 0B D2 C3 90 00 DD [06:21:18]RAPDU: 0D 76 14 CC 78 0B D2 C3 90 00 [06:21:18]wFMCommunicate OK [06:21:18]SAM_PROTO_SignData done [06:21:18]FM_MakeSignedData done [06:21:18]CreateOFDProtocolMessage [06:21:18]wFMCommunicate request_size=4 [06:21:18]MH_SAM_APDU [06:21:18]CAPDU: 80 11 00 00 [06:21:18]Write to MH i2c: E2 08 00 DD 0A 80 11 00 00 00 00 00 00 61 [06:21:18]Write i2c OK [06:21:18]MH_I2C_Read... [06:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:18]Read from MH i2c: E2 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: E2 17 00 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: E2 17 00 DD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [06:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:21:18]wFMCommunicate OK [06:21:18]CreateOFDProtocolMessage done [06:21:18]OFDSenderStorePacket 69640 [06:21:18]StoreOFDPacket docnum=69640 [06:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DE 31 07 01 E6 71 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE F2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 10 01 00 35 04 06 00 64 E7 D7 EF 5A 1C 0D 76 14 CC 78 0B D2 C3 [06:21:18]CheckFolder [06:21:18]dirname=/storage/ofd_packets [06:21:18]CheckFolder done [06:21:18]ProducePacketName [06:21:18]name=ofd_packets/00069640 [06:21:18]NVStorageSaveData ofd_packets/00069640 [06:21:18]File name is /storage/ofd_packets/00069640 [06:21:18]Write 301 bytes [06:21:18]NVStorageSaveData done [06:21:18]OFDSenderStorePacket done [06:21:18]KKMCreateOFDPacket done [06:21:18]NVStorageSaveData kkm_last_timestamp [06:21:18]File name is /storage/kkm_last_timestamp [06:21:18]Write 4 bytes [06:21:18]NVStorageSaveData done [06:21:18]OFD Sender: Processing packet 69640 [packets to send 18, broken 17] [06:21:18]ProducePacketName [06:21:18]name=ofd_packets/00069640 [06:21:18]OFD Sender: To server: pG, [06:21:18]CommunicateWithHost lk.salyk.kg:30040 [06:21:18]ConnectInit lk.salyk.kg [06:21:18]ExternCall_PrintAddStr [06:21:18]wPrintStart [06:21:18]Write to MH i2c: 01 00 00 DE 0A E8 [06:21:18]Write i2c OK [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 07 00 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 FF 0F FD [06:21:18]RasterBufferAndPrint [06:21:18]line Счет N : (1)2885377 [06:21:18]line ИНН: 02508201610067 [06:21:18]line Контрольно-Кассовый Чек [06:21:18]line ПРОДАЖА [06:21:18]line ТРК (МРК, ГНК) : 12 [06:21:18]line Товар: 2710124130 [06:21:18]line Аи-92-К-5 [06:21:18]line 8.970 * 66.90 [06:21:18]line = 600.09 [06:21:18]line НДС 12% НСП 1% [06:21:18]line > о реализуемом товаре [06:21:18]line ОКРУГЛЕНИЕ: -0.09 [06:21:18]line ИТОГО: 600.00 [06:21:18]line Внесено: 600.00 [06:21:18]line СДАЧА: 0.00 [06:21:18]line НСП 1% : 5.31 [06:21:18]line НДС 12% : 63.73 [06:21:18]line Наличными: 600.00 [06:21:18]line Безнал.: 0.00 [06:21:18]line Место: АЗС № 85 "Партнер Нефть" [06:21:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:21:18]line СНО: Общий режим [06:21:18]line Чек 30 21.10.2024 06:21 [06:21:18]line Смена: 194 ФФД: 1.0 [06:21:18]line ЗНМ: 0300000167 [06:21:18]line РНМ: 0000000000156251 [06:21:18]line Версия ККМ: v1.0 [06:21:18]line ФМ: 0000000000963346 [06:21:18]line ФД: 69640 [06:21:18]line ФПД: 110946923010588 [06:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062118&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69640&fm=110946923010588&tin=02508201610067®Number=0000000000156251&sum=60000 [06:21:18]Connected sock=11 [06:21:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DE 31 07 01 E6 71 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 DE F2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 10 01 00 35 04 06 00 64 E7 D7 EF 5A 1C 0D 76 14 CC 78 0B D2 C3 [06:21:18]written 0, free lines is 4095 [06:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 08 96 47 00 92 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 10 01 00 F4 03 04 00 83 9C 15 67 B6 04 01 00 00 A3 8A 35 99 64 CE 69 72 [06:21:18]CommunicateWithHost err = 0 [06:21:18]CheckOFDResponse [06:21:18]1017 (14) - 77093643461234 [06:21:18]1041 (16) - 0000000000963346 [06:21:18]1040 (4) - 69640 [06:21:18]1012 (4) - 21.10.2024 00:12 [06:21:18]1206 (1) - 0 [06:21:18]OFD Sender: Remove packet 69640 [06:21:18]ProducePacketName [06:21:18]name=ofd_packets/00069640 [06:21:18]NVStorageDeleteData [06:21:18]Write to MH i2c: 01 00 00 09 0B 14 [06:21:18]Write i2c OK [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 07 00 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 E4 0C 0B [06:21:18]RasterBufferAndPrint [06:21:18]line [06:21:18]line [06:21:18]line [06:21:18]line [06:21:18]line [06:21:18]written 0, free lines is 3305 [06:21:18]MH_Cut [06:21:18]Write to MH i2c: D1 01 00 10 0B 01 ED [06:21:18]Write i2c OK [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: D1 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: D1 01 00 [06:21:18]MH_I2C_Read... [06:21:18]Read from MH i2c: D1 01 00 10 0B 00 EC [06:21:18]Write to MH i2c: 01 00 00 11 0B 1C [06:21:18]Write i2c OK [06:21:18]MH_I2C_Read... [06:21:19]OFD Sender: No OFD packet to send [06:21:19]*** Cut start [06:21:19]*** Partial cut [06:21:19]*** CUTSNS_PIN = 1 [06:21:19]*** CUTSNS_PIN = 0 [06:21:19]*** Brake cut motor [06:21:20]Read from MH i2c: 01 [06:21:20]MH_I2C_Read... [06:21:20]*** Stop cut motor [06:21:20]*** Cut end [06:21:20]Read from MH i2c: 01 07 00 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 FF 0F 31 [06:21:20]process_action close_receipt done [06:21:20]requested_data is exist [06:21:20]produce_requested_data [06:21:20]requested_item fm.sn is exist - process it [06:21:20]wFMCommunicate request_size=4 [06:21:20]MH_SAM_APDU [06:21:20]CAPDU: 80 11 00 00 [06:21:20]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [06:21:20]Write i2c OK [06:21:20]MH_I2C_Read... [06:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:20]Read from MH i2c: E2 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 17 00 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [06:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:21:20]wFMCommunicate OK [06:21:20]requested_item fd.num is exist - process it [06:21:20]SAM_PROTO_GetFieldsCounters [06:21:20]wFMCommunicate request_size=4 [06:21:20]MH_SAM_APDU [06:21:20]CAPDU: 80 13 00 00 [06:21:20]Write to MH i2c: E2 08 00 13 0B 80 13 00 00 00 00 00 00 9A [06:21:20]Write i2c OK [06:21:20]MH_I2C_Read... [06:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:20]Read from MH i2c: E2 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 62 00 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 62 00 13 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 10 01 00 0E 04 04 00 C2 00 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 EA [06:21:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 10 01 00 0E 04 04 00 C2 00 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 [06:21:20]wFMCommunicate OK [06:21:20]SAM_PROTO_GetFieldsCounters done [06:21:20]requested_item shift.num is exist - process it [06:21:20]requested_item shift.opened is exist - process it [06:21:20]req_shift_opened [06:21:20]FM_GetShiftState [06:21:20]SAM_PROTO_GetShiftState [06:21:20]wFMCommunicate request_size=4 [06:21:20]MH_SAM_APDU [06:21:20]CAPDU: 80 13 01 00 [06:21:20]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [06:21:20]Write i2c OK [06:21:20]MH_I2C_Read... [06:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:20]Read from MH i2c: E2 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 0E 00 [06:21:20]MH_I2C_Read... [06:21:20]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C8 [06:21:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:21:20]wFMCommunicate OK [06:21:20]SAM_PROTO_GetShiftState done [06:21:20]FM_GetShiftState done [06:21:20]req_shift_opened done [06:21:20]requested_item shift.open_date is exist - process it [06:21:20]req_shift_open_date [06:21:20]req_shift_open_date done [06:21:20]produce_requested_data done [06:21:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69640,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [06:21:20]process_action_free close_receipt [06:21:20]json_value_free [06:21:20]json_value_free done [06:21:20]process_json_proto returns [06:21:20]Send response to host [06:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69640,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [06:21:20]free response buf [06:21:20]execute_script done [06:21:20]execute_script returns [06:21:20]free content buf [06:21:20]Sock 8.Close socket [06:21:20]Sock 8.Thread stoped [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:58]accept exits with 9 [06:34:58]New connection [06:34:58]New thread 3067313508 created [06:34:58]Thread 3067456868 joined [06:34:58]Waiting for new connection... [06:34:58] Sock 9.Parse request [06:34:58]Sock 9.Check first char [06:34:58]Sock 9.First char is OK [06:34:58]request: POST /json_proto HTTP/1.0 [06:34:58]Method: POST [06:34:58]URL: /json_proto [06:34:58]Method is POST - this is cgi request [06:34:58]url: /json_proto [06:34:58]query_string will be loaded in cgi processing [06:34:58]execute_cgi json_proto POST (null) [06:34:58]execute_cgi path=json_proto method=POST [06:34:58]POST find Content-Length [06:34:58]Host: 172.17.50.3:8080 [06:34:58]Content-Length: 686 [06:34:58]Content-Type: application/json [06:34:58] [06:34:58]POST finish read [06:34:58]Found Content-Length = 686 [06:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "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:34:58]execute_script... [06:34: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)2885378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "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:34:58]POST & json_proto [06:34:58]process_json_proto [06:34:58]json parsed OK: [06:34:58]protocol is kg_v1.0 [06:34:58]action value=close_receipt [06:34:58]process_action close_receipt [06:34:58]cmd_close_receipt [06:34:58]MH_GetDate [06:34:58]Write to MH i2c: F0 00 00 15 0B 0F [06:34:58]Write i2c OK [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 09 00 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 09 00 15 0B 00 15 F6 15 67 6B 98 1E 66 26 [06:34:58]GetLastDocTimeStamp 1729491678 [06:34:58]current date 1729492501 [06:34:58]FM_GetShiftState [06:34:58]SAM_PROTO_GetShiftState [06:34:58]wFMCommunicate request_size=4 [06:34:58]MH_SAM_APDU [06:34:58]CAPDU: 80 13 01 00 [06:34:58]Write to MH i2c: E2 08 00 16 0B 80 13 01 00 00 00 00 00 9E [06:34:58]Write i2c OK [06:34:58]MH_I2C_Read... [06:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:58]Read from MH i2c: E2 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: E2 0E 00 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: E2 0E 00 16 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [06:34:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:34:58]wFMCommunicate OK [06:34:58]SAM_PROTO_GetShiftState done [06:34:58]FM_GetShiftState done [06:34:58]opened in 1729469703 [06:34:58]opened+sec_in_day 1729556103 [06:34:58]quantity*price = 120006 [06:34:58]sum+1 = 120008 [06:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 31 21.10.2024 06:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69641 ФПД: 100119577984731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69641&fm=100119577984731&tin=02508201610067®Number=0000000000156251&sum=120000 [06:35:00]StoreToDocumentArchive [06:35:00]shift 194 fd 69641 [06:35:00]save to /storage/0194/doc_00069641 [06:35:00]save last doc name /storage/0194/doc_00069641 to /storage/kkm_last_doc_name [06:35:00]save OK [06:35:00]Clear old archive folders... [06:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:35:00]tlvbuf is 00C71690 [06:35:00]SAM_PROTO_ClearQueue [06:35:00]wFMCommunicate request_size=4 [06:35:00]MH_SAM_APDU [06:35:00]CAPDU: 80 09 00 00 [06:35:00]Write to MH i2c: E2 08 00 23 0B 80 09 00 00 00 00 00 00 A0 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [06:35:00]RAPDU: 90 00 [06:35:00]wFMCommunicate OK [06:35:00]SAM_PROTO_ClearQueue done [06:35:00]KKMCreateOFDPacket [06:35:00]OFDProtocolAddRootSTLVToBuf [06:35:00]FM_MakeSignedData [06:35:00]FM_MakeSignedData [06:35:00]SAM_PROTO_SignData [06:35:00]wFMCommunicate request_size=4 [06:35:00]MH_SAM_APDU [06:35:00]CAPDU: 80 0D 01 02 [06:35:00]Write to MH i2c: E2 08 00 24 0B 80 0D 01 02 00 00 00 00 A8 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [06:35:00]RAPDU: 90 00 [06:35:00]wFMCommunicate OK [06:35:00]wFMCommunicate request_size=255 [06:35:00]MH_SAM_APDU [06:35:00]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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 C8 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 1F 00 00 00 F4 03 04 00 15 F6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 10 01 00 35 04 06 00 5B 0E [06:35:00]Write to MH i2c: E2 02 01 25 0B 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 C8 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 1F 00 00 00 F4 03 04 00 15 F6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 10 01 00 35 04 06 00 5B 0E 00 00 69 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [06:35:00]RAPDU: 90 00 [06:35:00]wFMCommunicate OK [06:35:00]wFMCommunicate request_size=9 [06:35:00]MH_SAM_APDU [06:35:00]CAPDU: 80 0D 02 02 04 E7 E1 7E DB [06:35:00]Write to MH i2c: E2 0C 00 26 0B 80 0D 02 02 04 00 E7 E1 7E DB 00 00 D4 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [06:35:00]RAPDU: 90 00 [06:35:00]wFMCommunicate OK [06:35:00]wFMCommunicate request_size=4 [06:35:00]MH_SAM_APDU [06:35:00]CAPDU: 80 0D 03 02 [06:35:00]Write to MH i2c: E2 08 00 27 0B 80 0D 03 02 00 00 00 00 AD [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 0B 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 0B 00 27 0B 00 1D 25 0C 44 D4 AE 01 A2 90 00 65 [06:35:00]RAPDU: 1D 25 0C 44 D4 AE 01 A2 90 00 [06:35:00]wFMCommunicate OK [06:35:00]SAM_PROTO_SignData done [06:35:00]FM_MakeSignedData done [06:35:00]CreateOFDProtocolMessage [06:35:00]wFMCommunicate request_size=4 [06:35:00]MH_SAM_APDU [06:35:00]CAPDU: 80 11 00 00 [06:35:00]Write to MH i2c: E2 08 00 28 0B 80 11 00 00 00 00 00 00 AD [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:00]Read from MH i2c: E2 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 17 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: E2 17 00 28 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [06:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:35:00]wFMCommunicate OK [06:35:00]CreateOFDProtocolMessage done [06:35:00]OFDSenderStorePacket 69641 [06:35:00]StoreOFDPacket docnum=69641 [06:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 23 D0 06 01 44 A8 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 C8 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 1F 00 00 00 F4 03 04 00 15 F6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 10 01 00 35 04 06 00 5B 0E E7 E1 7E DB 1D 25 0C 44 D4 AE 01 A2 [06:35:00]CheckFolder [06:35:00]dirname=/storage/ofd_packets [06:35:00]CheckFolder done [06:35:00]ProducePacketName [06:35:00]name=ofd_packets/00069641 [06:35:00]NVStorageSaveData ofd_packets/00069641 [06:35:00]File name is /storage/ofd_packets/00069641 [06:35:00]Write 300 bytes [06:35:00]NVStorageSaveData done [06:35:00]OFDSenderStorePacket done [06:35:00]KKMCreateOFDPacket done [06:35:00]NVStorageSaveData kkm_last_timestamp [06:35:00]File name is /storage/kkm_last_timestamp [06:35:00]Write 4 bytes [06:35:00]NVStorageSaveData done [06:35:00]ExternCall_PrintAddStr [06:35:00]wPrintStart [06:35:00]Write to MH i2c: 01 00 00 29 0B 34 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 07 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 FF 0F 49 [06:35:00]RasterBufferAndPrint [06:35:00]line Счет N : (1)2885378 [06:35:00]line ИНН: 02508201610067 [06:35:00]line Контрольно-Кассовый Чек [06:35:00]line ПРОДАЖА [06:35:00]line ТРК (МРК, ГНК) : 71 [06:35:00]line Товар: 2711129700 [06:35:00]line ГАЗ-К-3 [06:35:00]line 30.850 * 38.90 [06:35:00]line = 1200.07 [06:35:00]line НДС 12% НСП 1% [06:35:00]line > о реализуемом товаре [06:35:00]line ОКРУГЛЕНИЕ: -0.07 [06:35:00]line ИТОГО: 1200.00 [06:35:00]line Внесено: 1200.00 [06:35:00]line СДАЧА: 0.00 [06:35:00]line НСП 1% : 10.62 [06:35:00]line НДС 12% : 127.44 [06:35:00]line Наличными: 1200.00 [06:35:00]line Безнал.: 0.00 [06:35:00]line Место: АЗС № 85 "Партнер Нефть" [06:35:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:35:00]line СНО: Общий режим [06:35:00]line Чек 31 21.10.2024 06:35 [06:35:00]line Смена: 194 ФФД: 1.0 [06:35:00]line ЗНМ: 0300000167 [06:35:00]line РНМ: 0000000000156251 [06:35:00]line Версия ККМ: v1.0 [06:35:00]line ФМ: 0000000000963346 [06:35:00]line ФД: 69641 [06:35:00]line ФПД: 100119577984731 [06:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69641&fm=100119577984731&tin=02508201610067®Number=0000000000156251&sum=120000 [06:35:00]OFD Sender: Processing packet 69641 [packets to send 18, broken 17] [06:35:00]ProducePacketName [06:35:00]name=ofd_packets/00069641 [06:35:00]OFD Sender: To server: pG, [06:35:00]CommunicateWithHost lk.salyk.kg:30040 [06:35:00]ConnectInit lk.salyk.kg [06:35:00]written 0, free lines is 4095 [06:35:00]Connected sock=10 [06:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 23 D0 06 01 44 A8 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 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 C8 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 1F 00 00 00 F4 03 04 00 15 F6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 10 01 00 35 04 06 00 5B 0E E7 E1 7E DB 1D 25 0C 44 D4 AE 01 A2 [06:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A1 1D 47 00 EF EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 10 01 00 F4 03 04 00 B9 9F 15 67 B6 04 01 00 00 A2 A6 E1 BD D9 D3 29 06 [06:35:01]CommunicateWithHost err = 0 [06:35:01]CheckOFDResponse [06:35:01]1017 (14) - 77093643461234 [06:35:01]1041 (16) - 0000000000963346 [06:35:01]1040 (4) - 69641 [06:35:01]1012 (4) - 21.10.2024 00:26 [06:35:01]1206 (1) - 0 [06:35:01]OFD Sender: Remove packet 69641 [06:35:01]ProducePacketName [06:35:01]name=ofd_packets/00069641 [06:35:01]NVStorageDeleteData [06:35:01]Write to MH i2c: 01 00 00 54 0B 5F [06:35:01]Write i2c OK [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: 01 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: 01 07 00 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 DD 0C 4F [06:35:01]RasterBufferAndPrint [06:35:01]line [06:35:01]line [06:35:01]line [06:35:01]line [06:35:01]line [06:35:01]written 0, free lines is 3299 [06:35:01]MH_Cut [06:35:01]Write to MH i2c: D1 01 00 5B 0B 01 38 [06:35:01]Write i2c OK [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: D1 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: D1 01 00 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: D1 01 00 5B 0B 00 37 [06:35:01]Write to MH i2c: 01 00 00 5C 0B 67 [06:35:01]Write i2c OK [06:35:01]MH_I2C_Read... [06:35:01]OFD Sender: No OFD packet to send [06:35:02]*** Cut start [06:35:02]*** Partial cut [06:35:02]*** CUTSNS_PIN = 1 [06:35:02]*** CUTSNS_PIN = 0 [06:35:02]*** Brake cut motor [06:35:02]Read from MH i2c: 01 [06:35:02]MH_I2C_Read... [06:35:02]*** Stop cut motor [06:35:02]*** Cut end [06:35:02]Read from MH i2c: 01 07 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 FF 0F 7C [06:35:02]process_action close_receipt done [06:35:02]requested_data is exist [06:35:02]produce_requested_data [06:35:02]requested_item fm.sn is exist - process it [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 11 00 00 [06:35:02]Write to MH i2c: E2 08 00 5D 0B 80 11 00 00 00 00 00 00 E2 [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 17 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 17 00 5D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [06:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:35:02]wFMCommunicate OK [06:35:02]requested_item fd.num is exist - process it [06:35:02]SAM_PROTO_GetFieldsCounters [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 13 00 00 [06:35:02]Write to MH i2c: E2 08 00 5E 0B 80 13 00 00 00 00 00 00 E5 [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 62 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 62 00 5E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 10 01 00 0E 04 04 00 C2 00 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 39 [06:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 10 01 00 0E 04 04 00 C2 00 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 [06:35:02]wFMCommunicate OK [06:35:02]SAM_PROTO_GetFieldsCounters done [06:35:02]requested_item shift.num is exist - process it [06:35:02]requested_item shift.opened is exist - process it [06:35:02]req_shift_opened [06:35:02]FM_GetShiftState [06:35:02]SAM_PROTO_GetShiftState [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 13 01 00 [06:35:02]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 0E 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [06:35:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:35:02]wFMCommunicate OK [06:35:02]SAM_PROTO_GetShiftState done [06:35:02]FM_GetShiftState done [06:35:02]req_shift_opened done [06:35:02]requested_item shift.open_date is exist - process it [06:35:02]req_shift_open_date [06:35:02]req_shift_open_date done [06:35:02]produce_requested_data done [06:35:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69641,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [06:35:02]process_action_free close_receipt [06:35:02]json_value_free [06:35:02]json_value_free done [06:35:02]process_json_proto returns [06:35:02]Send response to host [06:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69641,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [06:35:02]free response buf [06:35:02]execute_script done [06:35:02]execute_script returns [06:35:02]free content buf [06:35:02]Sock 9.Close socket [06:35:02]Sock 9.Thread stoped [06:35:06]OFD Sender: No OFD packet to send [06:35:11]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: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:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:39:57]accept exits with 8 [06:39:57]New connection [06:39:57]New thread 3067456868 created [06:39:57]Thread 3067313508 joined [06:39:57]Waiting for new connection... [06:39:57] Sock 8.Parse request [06:39:57]Sock 8.Check first char [06:39:57]Sock 8.First char is OK [06:39:57]request: POST /json_proto HTTP/1.0 [06:39:57]Method: POST [06:39:57]URL: /json_proto [06:39:57]Method is POST - this is cgi request [06:39:57]url: /json_proto [06:39:57]query_string will be loaded in cgi processing [06:39:57]execute_cgi json_proto POST (null) [06:39:57]execute_cgi path=json_proto method=POST [06:39:57]POST find Content-Length [06:39:57]Host: 172.17.50.3:8080 [06:39:57]Content-Length: 686 [06:39:57]Content-Type: application/json [06:39:57] [06:39:57]POST finish read [06:39:57]Found Content-Length = 686 [06:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.500, "sum" : 1575.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1575.00, "payments": [ { "type": 0, "sum" : 1575.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:57]execute_script... [06:39: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)2885379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 40.500, "sum" : 1575.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1575.00, "payments": [ { "type": 0, "sum" : 1575.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:57]POST & json_proto [06:39:57]process_json_proto [06:39:57]json parsed OK: [06:39:57]protocol is kg_v1.0 [06:39:57]action value=close_receipt [06:39:57]process_action close_receipt [06:39:57]cmd_close_receipt [06:39:57]MH_GetDate [06:39:57]Write to MH i2c: F0 00 00 60 0B 5A [06:39:57]Write i2c OK [06:39:57]MH_I2C_Read... [06:39:57]Read from MH i2c: F0 [06:39:57]MH_I2C_Read... [06:39:57]Read from MH i2c: F0 09 00 [06:39:57]MH_I2C_Read... [06:39:57]Read from MH i2c: F0 09 00 60 0B 00 3F F7 15 67 6B 98 1E 66 9C [06:39:57]GetLastDocTimeStamp 1729492501 [06:39:57]current date 1729492799 [06:39:57]FM_GetShiftState [06:39:57]SAM_PROTO_GetShiftState [06:39:57]wFMCommunicate request_size=4 [06:39:57]MH_SAM_APDU [06:39:57]CAPDU: 80 13 01 00 [06:39:57]Write to MH i2c: E2 08 00 61 0B 80 13 01 00 00 00 00 00 E9 [06:39:57]Write i2c OK [06:39:57]MH_I2C_Read... [06:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:57]Read from MH i2c: E2 [06:39:57]MH_I2C_Read... [06:39:57]Read from MH i2c: E2 0E 00 [06:39:57]MH_I2C_Read... [06:39:57]Read from MH i2c: E2 0E 00 61 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [06:39:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:39:57]wFMCommunicate OK [06:39:57]SAM_PROTO_GetShiftState done [06:39:57]FM_GetShiftState done [06:39:57]opened in 1729469703 [06:39:57]opened+sec_in_day 1729556103 [06:39:57]quantity*price = 157545 [06:39:57]sum+1 = 157546 [06:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1575.00 Внесено: 2500.00 СДАЧА: 925.00 НСП 1% : 13.94 НДС 12% : 167.30 Наличными: 1575.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 32 21.10.2024 06:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69642 ФПД: 136790208147830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063959&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69642&fm=136790208147830&tin=02508201610067®Number=0000000000156251&sum=157500 [06:39:58]StoreToDocumentArchive [06:39:58]shift 194 fd 69642 [06:39:58]save to /storage/0194/doc_00069642 [06:39:58]save last doc name /storage/0194/doc_00069642 to /storage/kkm_last_doc_name [06:39:58]save OK [06:39:58]Clear old archive folders... [06:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:39:58]tlvbuf is 00C1F450 [06:39:58]SAM_PROTO_ClearQueue [06:39:58]wFMCommunicate request_size=4 [06:39:58]MH_SAM_APDU [06:39:58]CAPDU: 80 09 00 00 [06:39:58]Write to MH i2c: E2 08 00 6E 0B 80 09 00 00 00 00 00 00 EB [06:39:58]Write i2c OK [06:39:58]MH_I2C_Read... [06:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:58]Read from MH i2c: E2 [06:39:58]MH_I2C_Read... [06:39:58]Read from MH i2c: E2 03 00 [06:39:58]MH_I2C_Read... [06:39:58]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [06:39:58]RAPDU: 90 00 [06:39:58]wFMCommunicate OK [06:39:58]SAM_PROTO_ClearQueue done [06:39:58]KKMCreateOFDPacket [06:39:58]OFDProtocolAddRootSTLVToBuf [06:39:58]FM_MakeSignedData [06:39:58]FM_MakeSignedData [06:39:58]SAM_PROTO_SignData [06:39:58]wFMCommunicate request_size=4 [06:39:58]MH_SAM_APDU [06:39:58]CAPDU: 80 0D 01 02 [06:39:58]Write to MH i2c: E2 08 00 6F 0B 80 0D 01 02 00 00 00 00 F3 [06:39:58]Write i2c OK [06:39:58]MH_I2C_Read... [06:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:58]Read from MH i2c: E2 [06:39:58]MH_I2C_Read... [06:39:58]Read from MH i2c: E2 03 00 [06:39:58]MH_I2C_Read... [06:39:58]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [06:39:58]RAPDU: 90 00 [06:39:58]wFMCommunicate OK [06:39:58]wFMCommunicate request_size=255 [06:39:58]MH_SAM_APDU [06:39:58]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 33 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 67 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 67 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 41 00 00 00 00 07 04 06 00 3C 67 02 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 3F F7 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 10 01 00 35 04 06 00 7C 68 [06:39:58]Write to MH i2c: E2 02 01 70 0B 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 33 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 67 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 67 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 41 00 00 00 00 07 04 06 00 3C 67 02 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 3F F7 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 10 01 00 35 04 06 00 7C 68 00 00 79 [06:39:58]Write i2c OK [06:39:58]MH_I2C_Read... [06:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:59]Read from MH i2c: E2 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 03 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [06:39:59]RAPDU: 90 00 [06:39:59]wFMCommunicate OK [06:39:59]wFMCommunicate request_size=9 [06:39:59]MH_SAM_APDU [06:39:59]CAPDU: 80 0D 02 02 04 F3 C3 F1 76 [06:39:59]Write to MH i2c: E2 0C 00 71 0B 80 0D 02 02 04 00 F3 C3 F1 76 00 00 1B [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 [06:39:59]MH_I2C_Read... [06:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:59]Read from MH i2c: E2 03 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [06:39:59]RAPDU: 90 00 [06:39:59]wFMCommunicate OK [06:39:59]wFMCommunicate request_size=4 [06:39:59]MH_SAM_APDU [06:39:59]CAPDU: 80 0D 03 02 [06:39:59]Write to MH i2c: E2 08 00 72 0B 80 0D 03 02 00 00 00 00 F8 [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:59]Read from MH i2c: E2 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 0B 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 0B 00 72 0B 00 91 63 72 FC 41 37 9B B6 90 00 24 [06:39:59]RAPDU: 91 63 72 FC 41 37 9B B6 90 00 [06:39:59]wFMCommunicate OK [06:39:59]SAM_PROTO_SignData done [06:39:59]FM_MakeSignedData done [06:39:59]CreateOFDProtocolMessage [06:39:59]wFMCommunicate request_size=4 [06:39:59]MH_SAM_APDU [06:39:59]CAPDU: 80 11 00 00 [06:39:59]Write to MH i2c: E2 08 00 73 0B 80 11 00 00 00 00 00 00 F8 [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:59]Read from MH i2c: E2 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 17 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: E2 17 00 73 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [06:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:39:59]wFMCommunicate OK [06:39:59]CreateOFDProtocolMessage done [06:39:59]OFDSenderStorePacket 69642 [06:39:59]StoreOFDPacket docnum=69642 [06:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 34 C1 06 01 0F 4A 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 33 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 67 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 67 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 41 00 00 00 00 07 04 06 00 3C 67 02 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 3F F7 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 10 01 00 35 04 06 00 7C 68 F3 C3 F1 76 91 63 72 FC 41 37 9B B6 [06:39:59]CheckFolder [06:39:59]dirname=/storage/ofd_packets [06:39:59]CheckFolder done [06:39:59]ProducePacketName [06:39:59]name=ofd_packets/00069642 [06:39:59]NVStorageSaveData ofd_packets/00069642 [06:39:59]File name is /storage/ofd_packets/00069642 [06:39:59]Write 300 bytes [06:39:59]NVStorageSaveData done [06:39:59]OFDSenderStorePacket done [06:39:59]KKMCreateOFDPacket done [06:39:59]NVStorageSaveData kkm_last_timestamp [06:39:59]File name is /storage/kkm_last_timestamp [06:39:59]Write 4 bytes [06:39:59]NVStorageSaveData done [06:39:59]ExternCall_PrintAddStr [06:39:59]wPrintStart [06:39:59]Write to MH i2c: 01 00 00 74 0B 7F [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 07 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 FF 0F 94 [06:39:59]RasterBufferAndPrint [06:39:59]line Счет N : (1)2885379 [06:39:59]line ИНН: 02508201610067 [06:39:59]line Контрольно-Кассовый Чек [06:39:59]line ПРОДАЖА [06:39:59]line ТРК (МРК, ГНК) : 71 [06:39:59]line Товар: 2711129700 [06:39:59]line ГАЗ-К-3 [06:39:59]line 40.500 * 38.90 [06:39:59]line = 1575.45 [06:39:59]line НДС 12% НСП 1% [06:39:59]line > о реализуемом товаре [06:39:59]line ОКРУГЛЕНИЕ: -0.45 [06:39:59]line ИТОГО: 1575.00 [06:39:59]line Внесено: 2500.00 [06:39:59]line СДАЧА: 925.00 [06:39:59]line НСП 1% : 13.94 [06:39:59]line НДС 12% : 167.30 [06:39:59]line Наличными: 1575.00 [06:39:59]line Безнал.: 0.00 [06:39:59]line Место: АЗС № 85 "Партнер Нефть" [06:39:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:39:59]line СНО: Общий режим [06:39:59]line Чек 32 21.10.2024 06:39 [06:39:59]line Смена: 194 ФФД: 1.0 [06:39:59]line ЗНМ: 0300000167 [06:39:59]line РНМ: 0000000000156251 [06:39:59]line Версия ККМ: v1.0 [06:39:59]line ФМ: 0000000000963346 [06:39:59]line ФД: 69642 [06:39:59]line ФПД: 136790208147830 [06:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T063959&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69642&fm=136790208147830&tin=02508201610067®Number=0000000000156251&sum=157500 [06:39:59]OFD Sender: Processing packet 69642 [packets to send 18, broken 17] [06:39:59]ProducePacketName [06:39:59]name=ofd_packets/00069642 [06:39:59]OFD Sender: To server: pG, [06:39:59]CommunicateWithHost lk.salyk.kg:30040 [06:39:59]ConnectInit lk.salyk.kg [06:39:59]written 0, free lines is 4095 [06:39:59]Connected sock=10 [06:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 34 C1 06 01 0F 4A 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 33 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 67 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 67 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 41 00 00 00 00 07 04 06 00 3C 67 02 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 3F F7 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 10 01 00 35 04 06 00 7C 68 F3 C3 F1 76 91 63 72 FC 41 37 9B B6 [06:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 AC 47 00 C5 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 39 36 33 33 34 36 10 04 04 00 0A 10 01 00 F4 03 04 00 E4 A0 15 67 B6 04 01 00 00 70 2E 73 FC 56 41 87 96 [06:39:59]CommunicateWithHost err = 0 [06:39:59]CheckOFDResponse [06:39:59]1017 (14) - 77093643461234 [06:39:59]1041 (16) - 0000000000963346 [06:39:59]1040 (4) - 69642 [06:39:59]1012 (4) - 21.10.2024 00:31 [06:39:59]1206 (1) - 0 [06:39:59]OFD Sender: Remove packet 69642 [06:39:59]ProducePacketName [06:39:59]name=ofd_packets/00069642 [06:39:59]NVStorageDeleteData [06:39:59]Write to MH i2c: 01 00 00 9F 0B AA [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 07 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FB 0C B8 [06:39:59]RasterBufferAndPrint [06:39:59]line [06:39:59]line [06:39:59]line [06:39:59]line [06:39:59]line [06:39:59]written 0, free lines is 3330 [06:39:59]MH_Cut [06:39:59]Write to MH i2c: D1 01 00 A6 0B 01 83 [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: D1 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: D1 01 00 [06:39:59]MH_I2C_Read... [06:39:59]Read from MH i2c: D1 01 00 A6 0B 00 82 [06:39:59]Write to MH i2c: 01 00 00 A7 0B B2 [06:39:59]Write i2c OK [06:39:59]MH_I2C_Read... [06:40:00]OFD Sender: No OFD packet to send [06:40:00]*** Cut start [06:40:00]*** Partial cut [06:40:00]*** CUTSNS_PIN = 1 [06:40:00]*** CUTSNS_PIN = 0 [06:40:00]*** Brake cut motor [06:40:01]Read from MH i2c: 01 [06:40:01]MH_I2C_Read... [06:40:01]*** Stop cut motor [06:40:01]*** Cut end [06:40:01]Read from MH i2c: 01 07 00 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: 01 07 00 A7 0B 00 00 00 00 00 FF 0F C7 [06:40:01]process_action close_receipt done [06:40:01]requested_data is exist [06:40:01]produce_requested_data [06:40:01]requested_item fm.sn is exist - process it [06:40:01]wFMCommunicate request_size=4 [06:40:01]MH_SAM_APDU [06:40:01]CAPDU: 80 11 00 00 [06:40:01]Write to MH i2c: E2 08 00 A8 0B 80 11 00 00 00 00 00 00 2D [06:40:01]Write i2c OK [06:40:01]MH_I2C_Read... [06:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:01]Read from MH i2c: E2 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 17 00 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 17 00 A8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [06:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:40:01]wFMCommunicate OK [06:40:01]requested_item fd.num is exist - process it [06:40:01]SAM_PROTO_GetFieldsCounters [06:40:01]wFMCommunicate request_size=4 [06:40:01]MH_SAM_APDU [06:40:01]CAPDU: 80 13 00 00 [06:40:01]Write to MH i2c: E2 08 00 A9 0B 80 13 00 00 00 00 00 00 30 [06:40:01]Write i2c OK [06:40:01]MH_I2C_Read... [06:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:01]Read from MH i2c: E2 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 62 00 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 62 00 A9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 10 01 00 0E 04 04 00 C2 00 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 88 [06:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 10 01 00 0E 04 04 00 C2 00 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 [06:40:01]wFMCommunicate OK [06:40:01]SAM_PROTO_GetFieldsCounters done [06:40:01]requested_item shift.num is exist - process it [06:40:01]requested_item shift.opened is exist - process it [06:40:01]req_shift_opened [06:40:01]FM_GetShiftState [06:40:01]SAM_PROTO_GetShiftState [06:40:01]wFMCommunicate request_size=4 [06:40:01]MH_SAM_APDU [06:40:01]CAPDU: 80 13 01 00 [06:40:01]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [06:40:01]Write i2c OK [06:40:01]MH_I2C_Read... [06:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:01]Read from MH i2c: E2 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 0E 00 [06:40:01]MH_I2C_Read... [06:40:01]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [06:40:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:40:01]wFMCommunicate OK [06:40:01]SAM_PROTO_GetShiftState done [06:40:01]FM_GetShiftState done [06:40:01]req_shift_opened done [06:40:01]requested_item shift.open_date is exist - process it [06:40:01]req_shift_open_date [06:40:01]req_shift_open_date done [06:40:01]produce_requested_data done [06:40:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69642,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [06:40:01]process_action_free close_receipt [06:40:01]json_value_free [06:40:01]json_value_free done [06:40:01]process_json_proto returns [06:40:01]Send response to host [06:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69642,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [06:40:01]free response buf [06:40:01]execute_script done [06:40:01]execute_script returns [06:40:01]free content buf [06:40:01]Sock 8.Close socket [06:40:01]Sock 8.Thread stoped [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [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: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: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:48:59]accept exits with 9 [06:48:59]New connection [06:48:59]New thread 3067313508 created [06:48:59]Thread 3067456868 joined [06:48:59]Waiting for new connection... [06:48:59] Sock 9.Parse request [06:48:59]Sock 9.Check first char [06:48:59]Sock 9.First char is OK [06:48:59]request: POST /json_proto HTTP/1.0 [06:48:59]Method: POST [06:48:59]URL: /json_proto [06:48:59]Method is POST - this is cgi request [06:48:59]url: /json_proto [06:48:59]query_string will be loaded in cgi processing [06:48:59]execute_cgi json_proto POST (null) [06:48:59]execute_cgi path=json_proto method=POST [06:48:59]POST find Content-Length [06:48:59]Host: 172.17.50.3:8080 [06:48:59]Content-Length: 684 [06:48:59]Content-Type: application/json [06:48:59] [06:48:59]POST finish read [06:48:59]Found Content-Length = 684 [06:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "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:48:59]execute_script... [06:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "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:48:59]POST & json_proto [06:48:59]process_json_proto [06:48:59]json parsed OK: [06:48:59]protocol is kg_v1.0 [06:48:59]action value=close_receipt [06:48:59]process_action close_receipt [06:48:59]cmd_close_receipt [06:48:59]MH_GetDate [06:48:59]Write to MH i2c: F0 00 00 AB 0B A5 [06:48:59]Write i2c OK [06:48:59]MH_I2C_Read... [06:48:59]Read from MH i2c: F0 [06:48:59]MH_I2C_Read... [06:48:59]Read from MH i2c: F0 09 00 [06:48:59]MH_I2C_Read... [06:48:59]Read from MH i2c: F0 09 00 AB 0B 00 5D F9 15 67 6B 98 1E 66 07 [06:48:59]GetLastDocTimeStamp 1729492799 [06:48:59]current date 1729493341 [06:48:59]FM_GetShiftState [06:48:59]SAM_PROTO_GetShiftState [06:48:59]wFMCommunicate request_size=4 [06:48:59]MH_SAM_APDU [06:48:59]CAPDU: 80 13 01 00 [06:48:59]Write to MH i2c: E2 08 00 AC 0B 80 13 01 00 00 00 00 00 34 [06:48:59]Write i2c OK [06:48:59]MH_I2C_Read... [06:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:59]Read from MH i2c: E2 [06:48:59]MH_I2C_Read... [06:48:59]Read from MH i2c: E2 0E 00 [06:48:59]MH_I2C_Read... [06:48:59]Read from MH i2c: E2 0E 00 AC 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [06:48:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:48:59]wFMCommunicate OK [06:48:59]SAM_PROTO_GetShiftState done [06:48:59]FM_GetShiftState done [06:48:59]opened in 1729469703 [06:48:59]opened+sec_in_day 1729556103 [06:48:59]quantity*price = 60061 [06:48:59]sum+1 = 60063 [06:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 33 21.10.2024 06:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69643 ФПД: 191311824105910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69643&fm=191311824105910&tin=02508201610067®Number=0000000000156251&sum=60000 [06:49:00]StoreToDocumentArchive [06:49:00]shift 194 fd 69643 [06:49:00]save to /storage/0194/doc_00069643 [06:49:00]save last doc name /storage/0194/doc_00069643 to /storage/kkm_last_doc_name [06:49:00]save OK [06:49:00]Clear old archive folders... [06:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:49:00]tlvbuf is 00C05AE0 [06:49:00]SAM_PROTO_ClearQueue [06:49:00]wFMCommunicate request_size=4 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 09 00 00 [06:49:00]Write to MH i2c: E2 08 00 B9 0B 80 09 00 00 00 00 00 00 36 [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [06:49:00]RAPDU: 90 00 [06:49:00]wFMCommunicate OK [06:49:00]SAM_PROTO_ClearQueue done [06:49:00]KKMCreateOFDPacket [06:49:00]OFDProtocolAddRootSTLVToBuf [06:49:00]FM_MakeSignedData [06:49:00]FM_MakeSignedData [06:49:00]SAM_PROTO_SignData [06:49:00]wFMCommunicate request_size=4 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 0D 01 02 [06:49:00]Write to MH i2c: E2 08 00 BA 0B 80 0D 01 02 00 00 00 00 3E [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [06:49:00]RAPDU: 90 00 [06:49:00]wFMCommunicate OK [06:49:00]wFMCommunicate request_size=255 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 5D F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 10 01 [06:49:00]Write to MH i2c: E2 02 01 BB 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 5D F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 10 01 00 00 7A [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [06:49:00]RAPDU: 90 00 [06:49:00]wFMCommunicate OK [06:49:00]wFMCommunicate request_size=16 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AD FF 41 51 31 B6 [06:49:00]Write to MH i2c: E2 13 00 BC 0B 80 0D 02 02 0B 00 00 35 04 06 00 AD FF 41 51 31 B6 00 00 BB [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [06:49:00]RAPDU: 90 00 [06:49:00]wFMCommunicate OK [06:49:00]wFMCommunicate request_size=4 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 0D 03 02 [06:49:00]Write to MH i2c: E2 08 00 BD 0B 80 0D 03 02 00 00 00 00 43 [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 0B 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 0B 00 BD 0B 00 4F CC 43 E0 A9 3E 38 50 90 00 F1 [06:49:00]RAPDU: 4F CC 43 E0 A9 3E 38 50 90 00 [06:49:00]wFMCommunicate OK [06:49:00]SAM_PROTO_SignData done [06:49:00]FM_MakeSignedData done [06:49:00]CreateOFDProtocolMessage [06:49:00]wFMCommunicate request_size=4 [06:49:00]MH_SAM_APDU [06:49:00]CAPDU: 80 11 00 00 [06:49:00]Write to MH i2c: E2 08 00 BE 0B 80 11 00 00 00 00 00 00 43 [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:00]Read from MH i2c: E2 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 17 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: E2 17 00 BE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [06:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:49:00]wFMCommunicate OK [06:49:00]CreateOFDProtocolMessage done [06:49:00]OFDSenderStorePacket 69643 [06:49:00]StoreOFDPacket docnum=69643 [06:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8B 74 0D 01 DC 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 5D F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 10 01 00 35 04 06 00 AD FF 41 51 31 B6 4F CC 43 E0 A9 3E 38 50 [06:49:00]CheckFolder [06:49:00]dirname=/storage/ofd_packets [06:49:00]CheckFolder done [06:49:00]ProducePacketName [06:49:00]name=ofd_packets/00069643 [06:49:00]NVStorageSaveData ofd_packets/00069643 [06:49:00]File name is /storage/ofd_packets/00069643 [06:49:00]Write 307 bytes [06:49:00]NVStorageSaveData done [06:49:00]OFDSenderStorePacket done [06:49:00]KKMCreateOFDPacket done [06:49:00]NVStorageSaveData kkm_last_timestamp [06:49:00]File name is /storage/kkm_last_timestamp [06:49:00]Write 4 bytes [06:49:00]NVStorageSaveData done [06:49:00]ExternCall_PrintAddStr [06:49:00]wPrintStart [06:49:00]Write to MH i2c: 01 00 00 BF 0B CA [06:49:00]Write i2c OK [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: 01 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: 01 07 00 [06:49:00]MH_I2C_Read... [06:49:00]Read from MH i2c: 01 07 00 BF 0B 00 00 00 00 00 FF 0F DF [06:49:00]RasterBufferAndPrint [06:49:00]line Счет N : (1)2885380 [06:49:00]line ИНН: 02508201610067 [06:49:00]line Контрольно-Кассовый Чек [06:49:00]line ПРОДАЖА [06:49:00]line ТРК (МРК, ГНК) : 41 [06:49:00]line Товар: 2710194240 [06:49:00]line D-ENERGY Дт-К-2 [06:49:00]line 7.780 * 77.20 [06:49:00]line = 600.62 [06:49:00]line НДС 12% НСП 1% [06:49:00]line > о реализуемом товаре [06:49:00]line ОКРУГЛЕНИЕ: -0.62 [06:49:00]line ИТОГО: 600.00 [06:49:00]line Внесено: 600.00 [06:49:00]line СДАЧА: 0.00 [06:49:00]line НСП 1% : 5.31 [06:49:00]line НДС 12% : 63.78 [06:49:00]line Наличными: 600.00 [06:49:00]line Безнал.: 0.00 [06:49:00]line Место: АЗС № 85 "Партнер Нефть" [06:49:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:49:00]line СНО: Общий режим [06:49:00]line Чек 33 21.10.2024 06:49 [06:49:00]line Смена: 194 ФФД: 1.0 [06:49:00]line ЗНМ: 0300000167 [06:49:00]line РНМ: 0000000000156251 [06:49:00]line Версия ККМ: v1.0 [06:49:00]line ФМ: 0000000000963346 [06:49:00]line ФД: 69643 [06:49:00]line ФПД: 191311824105910 [06:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69643&fm=191311824105910&tin=02508201610067®Number=0000000000156251&sum=60000 [06:49:01]OFD Sender: Processing packet 69643 [packets to send 18, broken 17] [06:49:01]ProducePacketName [06:49:01]name=ofd_packets/00069643 [06:49:01]OFD Sender: To server: pG, [06:49:01]CommunicateWithHost lk.salyk.kg:30040 [06:49:01]ConnectInit lk.salyk.kg [06:49:01]written 0, free lines is 4095 [06:49:01]Connected sock=10 [06:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8B 74 0D 01 DC 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 5D F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 10 01 00 35 04 06 00 AD FF 41 51 31 B6 4F CC 43 E0 A9 3E 38 50 [06:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F 45 47 00 22 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 10 01 00 F4 03 04 00 01 A3 15 67 B6 04 01 00 00 6F 6D BA EA DE 5C 76 09 [06:49:01]CommunicateWithHost err = 0 [06:49:01]CheckOFDResponse [06:49:01]1017 (14) - 77093643461234 [06:49:01]1041 (16) - 0000000000963346 [06:49:01]1040 (4) - 69643 [06:49:01]1012 (4) - 21.10.2024 00:40 [06:49:01]1206 (1) - 0 [06:49:01]OFD Sender: Remove packet 69643 [06:49:01]ProducePacketName [06:49:01]name=ofd_packets/00069643 [06:49:01]NVStorageDeleteData [06:49:01]Write to MH i2c: 01 00 00 EA 0B F5 [06:49:01]Write i2c OK [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: 01 [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: 01 07 00 [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 EE 0C F6 [06:49:01]RasterBufferAndPrint [06:49:01]line [06:49:01]line [06:49:01]line [06:49:01]line [06:49:01]line [06:49:01]written 0, free lines is 3316 [06:49:01]MH_Cut [06:49:01]Write to MH i2c: D1 01 00 F1 0B 01 CE [06:49:01]Write i2c OK [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: D1 [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: D1 01 00 [06:49:01]MH_I2C_Read... [06:49:01]Read from MH i2c: D1 01 00 F1 0B 00 CD [06:49:01]Write to MH i2c: 01 00 00 F2 0B FD [06:49:01]Write i2c OK [06:49:01]MH_I2C_Read... [06:49:01]OFD Sender: No OFD packet to send [06:49:02]*** Cut start [06:49:02]*** Partial cut [06:49:02]*** CUTSNS_PIN = 1 [06:49:02]*** CUTSNS_PIN = 0 [06:49:02]*** Brake cut motor [06:49:02]Read from MH i2c: 01 [06:49:02]MH_I2C_Read... [06:49:02]*** Stop cut motor [06:49:02]*** Cut end [06:49:02]Read from MH i2c: 01 07 00 [06:49:02]MH_I2C_Read... [06:49:02]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 FF 0F 12 [06:49:02]process_action close_receipt done [06:49:02]requested_data is exist [06:49:02]produce_requested_data [06:49:02]requested_item fm.sn is exist - process it [06:49:02]wFMCommunicate request_size=4 [06:49:02]MH_SAM_APDU [06:49:02]CAPDU: 80 11 00 00 [06:49:02]Write to MH i2c: E2 08 00 F3 0B 80 11 00 00 00 00 00 00 78 [06:49:02]Write i2c OK [06:49:02]MH_I2C_Read... [06:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:02]Read from MH i2c: E2 [06:49:02]MH_I2C_Read... [06:49:02]Read from MH i2c: E2 17 00 [06:49:02]MH_I2C_Read... [06:49:02]Read from MH i2c: E2 17 00 F3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [06:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:49:02]wFMCommunicate OK [06:49:02]requested_item fd.num is exist - process it [06:49:02]SAM_PROTO_GetFieldsCounters [06:49:02]wFMCommunicate request_size=4 [06:49:02]MH_SAM_APDU [06:49:02]CAPDU: 80 13 00 00 [06:49:02]Write to MH i2c: E2 08 00 F4 0B 80 13 00 00 00 00 00 00 7B [06:49:02]Write i2c OK [06:49:02]MH_I2C_Read... [06:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:03]Read from MH i2c: E2 [06:49:03]MH_I2C_Read... [06:49:03]Read from MH i2c: E2 62 00 [06:49:03]MH_I2C_Read... [06:49:03]Read from MH i2c: E2 62 00 F4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 10 01 00 0E 04 04 00 C2 00 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 D7 [06:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 10 01 00 0E 04 04 00 C2 00 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 [06:49:03]wFMCommunicate OK [06:49:03]SAM_PROTO_GetFieldsCounters done [06:49:03]requested_item shift.num is exist - process it [06:49:03]requested_item shift.opened is exist - process it [06:49:03]req_shift_opened [06:49:03]FM_GetShiftState [06:49:03]SAM_PROTO_GetShiftState [06:49:03]wFMCommunicate request_size=4 [06:49:03]MH_SAM_APDU [06:49:03]CAPDU: 80 13 01 00 [06:49:03]Write to MH i2c: E2 08 00 F5 0B 80 13 01 00 00 00 00 00 7D [06:49:03]Write i2c OK [06:49:03]MH_I2C_Read... [06:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:03]Read from MH i2c: E2 [06:49:03]MH_I2C_Read... [06:49:03]Read from MH i2c: E2 0E 00 [06:49:03]MH_I2C_Read... [06:49:03]Read from MH i2c: E2 0E 00 F5 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [06:49:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:49:03]wFMCommunicate OK [06:49:03]SAM_PROTO_GetShiftState done [06:49:03]FM_GetShiftState done [06:49:03]req_shift_opened done [06:49:03]requested_item shift.open_date is exist - process it [06:49:03]req_shift_open_date [06:49:03]req_shift_open_date done [06:49:03]produce_requested_data done [06:49:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69643,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [06:49:03]process_action_free close_receipt [06:49:03]json_value_free [06:49:03]json_value_free done [06:49:03]process_json_proto returns [06:49:03]Send response to host [06:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69643,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [06:49:03]free response buf [06:49:03]execute_script done [06:49:03]execute_script returns [06:49:03]free content buf [06:49:03]Sock 9.Close socket [06:49:03]Sock 9.Thread stoped [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [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]accept exits with 8 [06:51:36]New connection [06:51:36]New thread 3067456868 created [06:51:36]Thread 3067313508 joined [06:51:36]Waiting for new connection... [06:51:36] Sock 8.Parse request [06:51:36]Sock 8.Check first char [06:51:36]Sock 8.First char is OK [06:51:36]request: POST /json_proto HTTP/1.0 [06:51:36]Method: POST [06:51:36]URL: /json_proto [06:51:36]Method is POST - this is cgi request [06:51:36]url: /json_proto [06:51:36]query_string will be loaded in cgi processing [06:51:36]execute_cgi json_proto POST (null) [06:51:36]execute_cgi path=json_proto method=POST [06:51:36]POST find Content-Length [06:51:36]Host: 172.17.50.3:8080 [06:51:36]Content-Length: 683 [06:51:36]Content-Type: application/json [06:51:36] [06:51:36]POST finish read [06:51:36]Found Content-Length = 683 [06:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885381", "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" : 66.90, "quantity" : 32.890, "sum" : 2200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:36]execute_script... [06:51: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)2885381", "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" : 66.90, "quantity" : 32.890, "sum" : 2200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:36]POST & json_proto [06:51:36]process_json_proto [06:51:36]json parsed OK: [06:51:36]protocol is kg_v1.0 [06:51:36]action value=close_receipt [06:51:36]process_action close_receipt [06:51:36]cmd_close_receipt [06:51:36]MH_GetDate [06:51:36]Write to MH i2c: F0 00 00 F6 0B F0 [06:51:36]Write i2c OK [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: F0 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: F0 09 00 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: F0 09 00 F6 0B 00 FA F9 15 67 6B 98 1E 66 EF [06:51:36]GetLastDocTimeStamp 1729493341 [06:51:36]current date 1729493498 [06:51:36]FM_GetShiftState [06:51:36]SAM_PROTO_GetShiftState [06:51:36]wFMCommunicate request_size=4 [06:51:36]MH_SAM_APDU [06:51:36]CAPDU: 80 13 01 00 [06:51:36]Write to MH i2c: E2 08 00 F7 0B 80 13 01 00 00 00 00 00 7F [06:51:36]Write i2c OK [06:51:36]MH_I2C_Read... [06:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:36]Read from MH i2c: E2 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: E2 0E 00 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: E2 0E 00 F7 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [06:51:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:51:36]wFMCommunicate OK [06:51:36]SAM_PROTO_GetShiftState done [06:51:36]FM_GetShiftState done [06:51:36]opened in 1729469703 [06:51:36]opened+sec_in_day 1729556103 [06:51:36]quantity*price = 220034 [06:51:36]sum+1 = 220035 [06:51:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.66 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 34 21.10.2024 06:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69644 ФПД: 176365085541216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69644&fm=176365085541216&tin=02508201610067®Number=0000000000156251&sum=220000 [06:51:37]StoreToDocumentArchive [06:51:37]shift 194 fd 69644 [06:51:37]save to /storage/0194/doc_00069644 [06:51:37]save last doc name /storage/0194/doc_00069644 to /storage/kkm_last_doc_name [06:51:37]save OK [06:51:37]Clear old archive folders... [06:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:51:37]tlvbuf is 00C724D0 [06:51:37]SAM_PROTO_ClearQueue [06:51:37]wFMCommunicate request_size=4 [06:51:37]MH_SAM_APDU [06:51:37]CAPDU: 80 09 00 00 [06:51:37]Write to MH i2c: E2 08 00 04 0C 80 09 00 00 00 00 00 00 82 [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [06:51:37]RAPDU: 90 00 [06:51:37]wFMCommunicate OK [06:51:37]SAM_PROTO_ClearQueue done [06:51:37]KKMCreateOFDPacket [06:51:37]OFDProtocolAddRootSTLVToBuf [06:51:37]FM_MakeSignedData [06:51:37]FM_MakeSignedData [06:51:37]SAM_PROTO_SignData [06:51:37]wFMCommunicate request_size=4 [06:51:37]MH_SAM_APDU [06:51:37]CAPDU: 80 0D 01 02 [06:51:37]Write to MH i2c: E2 08 00 05 0C 80 0D 01 02 00 00 00 00 8A [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [06:51:37]RAPDU: 90 00 [06:51:37]wFMCommunicate OK [06:51:37]wFMCommunicate request_size=255 [06:51:37]MH_SAM_APDU [06:51:37]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 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 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 FA F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 10 01 00 35 04 06 00 A0 [06:51:37]Write to MH i2c: E2 02 01 06 0C 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 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 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 FA F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 10 01 00 35 04 06 00 A0 00 00 73 [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [06:51:37]RAPDU: 90 00 [06:51:37]wFMCommunicate OK [06:51:37]wFMCommunicate request_size=10 [06:51:37]MH_SAM_APDU [06:51:37]CAPDU: 80 0D 02 02 05 67 32 46 43 60 [06:51:37]Write to MH i2c: E2 0D 00 07 0C 80 0D 02 02 05 00 67 32 46 43 60 00 00 19 [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [06:51:37]RAPDU: 90 00 [06:51:37]wFMCommunicate OK [06:51:37]wFMCommunicate request_size=4 [06:51:37]MH_SAM_APDU [06:51:37]CAPDU: 80 0D 03 02 [06:51:37]Write to MH i2c: E2 08 00 08 0C 80 0D 03 02 00 00 00 00 8F [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 0B 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 0B 00 08 0C 00 4D B7 2C 93 23 C8 98 DF 90 00 B5 [06:51:37]RAPDU: 4D B7 2C 93 23 C8 98 DF 90 00 [06:51:37]wFMCommunicate OK [06:51:37]SAM_PROTO_SignData done [06:51:37]FM_MakeSignedData done [06:51:37]CreateOFDProtocolMessage [06:51:37]wFMCommunicate request_size=4 [06:51:37]MH_SAM_APDU [06:51:37]CAPDU: 80 11 00 00 [06:51:37]Write to MH i2c: E2 08 00 09 0C 80 11 00 00 00 00 00 00 8F [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:37]Read from MH i2c: E2 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 17 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: E2 17 00 09 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [06:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:51:37]wFMCommunicate OK [06:51:37]CreateOFDProtocolMessage done [06:51:37]OFDSenderStorePacket 69644 [06:51:37]StoreOFDPacket docnum=69644 [06:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 35 07 01 02 BC 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 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 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 FA F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 10 01 00 35 04 06 00 A0 67 32 46 43 60 4D B7 2C 93 23 C8 98 DF [06:51:37]CheckFolder [06:51:37]dirname=/storage/ofd_packets [06:51:37]CheckFolder done [06:51:37]ProducePacketName [06:51:37]name=ofd_packets/00069644 [06:51:37]NVStorageSaveData ofd_packets/00069644 [06:51:37]File name is /storage/ofd_packets/00069644 [06:51:37]Write 301 bytes [06:51:37]NVStorageSaveData done [06:51:37]OFDSenderStorePacket done [06:51:37]KKMCreateOFDPacket done [06:51:37]NVStorageSaveData kkm_last_timestamp [06:51:37]File name is /storage/kkm_last_timestamp [06:51:37]Write 4 bytes [06:51:37]NVStorageSaveData done [06:51:37]ExternCall_PrintAddStr [06:51:37]wPrintStart [06:51:37]Write to MH i2c: 01 00 00 0A 0C 16 [06:51:37]Write i2c OK [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: 01 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: 01 07 00 [06:51:37]MH_I2C_Read... [06:51:37]Read from MH i2c: 01 07 00 0A 0C 00 00 00 00 00 FF 0F 2B [06:51:37]RasterBufferAndPrint [06:51:37]line Счет N : (1)2885381 [06:51:37]line ИНН: 02508201610067 [06:51:37]line Контрольно-Кассовый Чек [06:51:37]line ПРОДАЖА [06:51:37]line ТРК (МРК, ГНК) : 32 [06:51:37]line Товар: 2710124130 [06:51:37]line Аи-92-К-5 [06:51:37]line 32.890 * 66.90 [06:51:37]line = 2200.34 [06:51:37]line НДС 12% НСП 1% [06:51:37]line > о реализуемом товаре [06:51:37]line ОКРУГЛЕНИЕ: -0.34 [06:51:37]line ИТОГО: 2200.00 [06:51:37]line Внесено: 2200.00 [06:51:37]line СДАЧА: 0.00 [06:51:37]line НСП 1% : 19.47 [06:51:37]line НДС 12% : 233.66 [06:51:37]line Наличными: 2200.00 [06:51:37]line Безнал.: 0.00 [06:51:37]line Место: АЗС № 85 "Партнер Нефть" [06:51:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:51:37]line СНО: Общий режим [06:51:37]line Чек 34 21.10.2024 06:51 [06:51:37]line Смена: 194 ФФД: 1.0 [06:51:37]line ЗНМ: 0300000167 [06:51:37]line РНМ: 0000000000156251 [06:51:37]line Версия ККМ: v1.0 [06:51:37]line ФМ: 0000000000963346 [06:51:37]line ФД: 69644 [06:51:37]line ФПД: 176365085541216 [06:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69644&fm=176365085541216&tin=02508201610067®Number=0000000000156251&sum=220000 [06:51:38]OFD Sender: Processing packet 69644 [packets to send 18, broken 17] [06:51:38]ProducePacketName [06:51:38]name=ofd_packets/00069644 [06:51:38]OFD Sender: To server: pG, [06:51:38]CommunicateWithHost lk.salyk.kg:30040 [06:51:38]ConnectInit lk.salyk.kg [06:51:38]written 0, free lines is 4095 [06:51:38]Connected sock=10 [06:51:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 35 07 01 02 BC 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 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 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 FA F9 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 10 01 00 35 04 06 00 A0 67 32 46 43 60 4D B7 2C 93 23 C8 98 DF [06:51:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F9 91 47 00 6F E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 10 01 00 F4 03 04 00 9F A3 15 67 B6 04 01 00 00 C3 27 F4 77 4A D2 D2 A6 [06:51:38]CommunicateWithHost err = 0 [06:51:38]CheckOFDResponse [06:51:38]1017 (14) - 77093643461234 [06:51:38]1041 (16) - 0000000000963346 [06:51:38]1040 (4) - 69644 [06:51:38]1012 (4) - 21.10.2024 00:43 [06:51:38]1206 (1) - 0 [06:51:38]OFD Sender: Remove packet 69644 [06:51:38]ProducePacketName [06:51:38]name=ofd_packets/00069644 [06:51:38]NVStorageDeleteData [06:51:38]Write to MH i2c: 01 00 00 35 0C 41 [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: 01 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: 01 07 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 EC 0C 40 [06:51:38]RasterBufferAndPrint [06:51:38]line [06:51:38]line [06:51:38]line [06:51:38]line [06:51:38]line [06:51:38]written 0, free lines is 3314 [06:51:38]MH_Cut [06:51:38]Write to MH i2c: D1 01 00 3C 0C 01 1A [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: D1 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: D1 01 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: D1 01 00 3C 0C 00 19 [06:51:38]Write to MH i2c: 01 00 00 3D 0C 49 [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:39]OFD Sender: No OFD packet to send [06:51:39]*** Cut start [06:51:39]*** Partial cut [06:51:39]*** CUTSNS_PIN = 1 [06:51:39]*** CUTSNS_PIN = 0 [06:51:39]*** Brake cut motor [06:51:40]Read from MH i2c: 01 [06:51:40]MH_I2C_Read... [06:51:40]*** Stop cut motor [06:51:40]*** Cut end [06:51:40]Read from MH i2c: 01 07 00 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: 01 07 00 3D 0C 00 00 00 00 00 FF 0F 5E [06:51:40]process_action close_receipt done [06:51:40]requested_data is exist [06:51:40]produce_requested_data [06:51:40]requested_item fm.sn is exist - process it [06:51:40]wFMCommunicate request_size=4 [06:51:40]MH_SAM_APDU [06:51:40]CAPDU: 80 11 00 00 [06:51:40]Write to MH i2c: E2 08 00 3E 0C 80 11 00 00 00 00 00 00 C4 [06:51:40]Write i2c OK [06:51:40]MH_I2C_Read... [06:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:40]Read from MH i2c: E2 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 17 00 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 17 00 3E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [06:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:51:40]wFMCommunicate OK [06:51:40]requested_item fd.num is exist - process it [06:51:40]SAM_PROTO_GetFieldsCounters [06:51:40]wFMCommunicate request_size=4 [06:51:40]MH_SAM_APDU [06:51:40]CAPDU: 80 13 00 00 [06:51:40]Write to MH i2c: E2 08 00 3F 0C 80 13 00 00 00 00 00 00 C7 [06:51:40]Write i2c OK [06:51:40]MH_I2C_Read... [06:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:40]Read from MH i2c: E2 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 62 00 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 62 00 3F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 10 01 00 0E 04 04 00 C2 00 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 27 [06:51:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 10 01 00 0E 04 04 00 C2 00 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 [06:51:40]wFMCommunicate OK [06:51:40]SAM_PROTO_GetFieldsCounters done [06:51:40]requested_item shift.num is exist - process it [06:51:40]requested_item shift.opened is exist - process it [06:51:40]req_shift_opened [06:51:40]FM_GetShiftState [06:51:40]SAM_PROTO_GetShiftState [06:51:40]wFMCommunicate request_size=4 [06:51:40]MH_SAM_APDU [06:51:40]CAPDU: 80 13 01 00 [06:51:40]Write to MH i2c: E2 08 00 40 0C 80 13 01 00 00 00 00 00 C9 [06:51:40]Write i2c OK [06:51:40]MH_I2C_Read... [06:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:40]Read from MH i2c: E2 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 0E 00 [06:51:40]MH_I2C_Read... [06:51:40]Read from MH i2c: E2 0E 00 40 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [06:51:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [06:51:40]wFMCommunicate OK [06:51:40]SAM_PROTO_GetShiftState done [06:51:40]FM_GetShiftState done [06:51:40]req_shift_opened done [06:51:40]requested_item shift.open_date is exist - process it [06:51:40]req_shift_open_date [06:51:40]req_shift_open_date done [06:51:40]produce_requested_data done [06:51:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69644,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [06:51:40]process_action_free close_receipt [06:51:40]json_value_free [06:51:40]json_value_free done [06:51:40]process_json_proto returns [06:51:40]Send response to host [06:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69644,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [06:51:40]free response buf [06:51:40]execute_script done [06:51:40]execute_script returns [06:51:40]free content buf [06:51:40]Sock 8.Close socket [06:51:40]Sock 8.Thread stoped [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:08]accept exits with 9 [07:01:08]New connection [07:01:08]New thread 3067313508 created [07:01:08]Thread 3067456868 joined [07:01:08]Waiting for new connection... [07:01:08] Sock 9.Parse request [07:01:08]Sock 9.Check first char [07:01:08]Sock 9.First char is OK [07:01:08]request: POST /json_proto HTTP/1.0 [07:01:08]Method: POST [07:01:08]URL: /json_proto [07:01:08]Method is POST - this is cgi request [07:01:08]url: /json_proto [07:01:08]query_string will be loaded in cgi processing [07:01:08]execute_cgi json_proto POST (null) [07:01:08]execute_cgi path=json_proto method=POST [07:01:08]POST find Content-Length [07:01:08]Host: 172.17.50.3:8080 [07:01:08]Content-Length: 679 [07:01:08]Content-Type: application/json [07:01:08] [07:01:08]POST finish read [07:01:08]Found Content-Length = 679 [07:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885382", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [07:01:08]execute_script... [07:01: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)2885382", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [07:01:08]POST & json_proto [07:01:08]process_json_proto [07:01:08]json parsed OK: [07:01:08]protocol is kg_v1.0 [07:01:08]action value=close_receipt [07:01:08]process_action close_receipt [07:01:08]cmd_close_receipt [07:01:08]MH_GetDate [07:01:08]Write to MH i2c: F0 00 00 41 0C 3C [07:01:08]Write i2c OK [07:01:08]MH_I2C_Read... [07:01:08]Read from MH i2c: F0 [07:01:08]MH_I2C_Read... [07:01:08]Read from MH i2c: F0 09 00 [07:01:08]MH_I2C_Read... [07:01:08]Read from MH i2c: F0 09 00 41 0C 00 36 FC 15 67 6B 98 1E 66 7A [07:01:08]GetLastDocTimeStamp 1729493498 [07:01:08]current date 1729494070 [07:01:08]FM_GetShiftState [07:01:08]SAM_PROTO_GetShiftState [07:01:08]wFMCommunicate request_size=4 [07:01:08]MH_SAM_APDU [07:01:08]CAPDU: 80 13 01 00 [07:01:08]Write to MH i2c: E2 08 00 42 0C 80 13 01 00 00 00 00 00 CB [07:01:08]Write i2c OK [07:01:08]MH_I2C_Read... [07:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:08]Read from MH i2c: E2 [07:01:08]MH_I2C_Read... [07:01:08]Read from MH i2c: E2 0E 00 [07:01:08]MH_I2C_Read... [07:01:08]Read from MH i2c: E2 0E 00 42 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [07:01:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:01:08]wFMCommunicate OK [07:01:08]SAM_PROTO_GetShiftState done [07:01:08]FM_GetShiftState done [07:01:08]opened in 1729469703 [07:01:08]opened+sec_in_day 1729556103 [07:01:08]quantity*price = 80012 [07:01:08]sum+1 = 80013 [07:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 35 21.10.2024 07:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69645 ФПД: 94949800065510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070110&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69645&fm=94949800065510&tin=02508201610067®Number=0000000000156251&sum=80000 [07:01:09]StoreToDocumentArchive [07:01:09]shift 194 fd 69645 [07:01:09]save to /storage/0194/doc_00069645 [07:01:09]save last doc name /storage/0194/doc_00069645 to /storage/kkm_last_doc_name [07:01:09]save OK [07:01:09]Clear old archive folders... [07:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:09]tlvbuf is 00C25D90 [07:01:09]SAM_PROTO_ClearQueue [07:01:09]wFMCommunicate request_size=4 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 09 00 00 [07:01:09]Write to MH i2c: E2 08 00 4F 0C 80 09 00 00 00 00 00 00 CD [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [07:01:09]RAPDU: 90 00 [07:01:09]wFMCommunicate OK [07:01:09]SAM_PROTO_ClearQueue done [07:01:09]KKMCreateOFDPacket [07:01:09]OFDProtocolAddRootSTLVToBuf [07:01:09]FM_MakeSignedData [07:01:09]FM_MakeSignedData [07:01:09]SAM_PROTO_SignData [07:01:09]wFMCommunicate request_size=4 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 0D 01 02 [07:01:09]Write to MH i2c: E2 08 00 50 0C 80 0D 01 02 00 00 00 00 D5 [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [07:01:09]RAPDU: 90 00 [07:01:09]wFMCommunicate OK [07:01:09]wFMCommunicate request_size=255 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 23 00 00 00 F4 03 04 00 36 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 10 01 00 35 04 06 00 56 [07:01:09]Write to MH i2c: E2 02 01 51 0C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 23 00 00 00 F4 03 04 00 36 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 10 01 00 35 04 06 00 56 00 00 51 [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]OFD Sender: No OFD packet to send [07:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [07:01:09]RAPDU: 90 00 [07:01:09]wFMCommunicate OK [07:01:09]wFMCommunicate request_size=10 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 0D 02 02 05 5B 39 1A B9 E6 [07:01:09]Write to MH i2c: E2 0D 00 52 0C 80 0D 02 02 05 00 5B 39 1A B9 E6 00 00 2F [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [07:01:09]RAPDU: 90 00 [07:01:09]wFMCommunicate OK [07:01:09]wFMCommunicate request_size=4 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 0D 03 02 [07:01:09]Write to MH i2c: E2 08 00 53 0C 80 0D 03 02 00 00 00 00 DA [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 0B 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 0B 00 53 0C 00 A3 BF E3 11 53 CE 37 51 90 00 DA [07:01:09]RAPDU: A3 BF E3 11 53 CE 37 51 90 00 [07:01:09]wFMCommunicate OK [07:01:09]SAM_PROTO_SignData done [07:01:09]FM_MakeSignedData done [07:01:09]CreateOFDProtocolMessage [07:01:09]wFMCommunicate request_size=4 [07:01:09]MH_SAM_APDU [07:01:09]CAPDU: 80 11 00 00 [07:01:09]Write to MH i2c: E2 08 00 54 0C 80 11 00 00 00 00 00 00 DA [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:09]Read from MH i2c: E2 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 17 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: E2 17 00 54 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [07:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:01:09]wFMCommunicate OK [07:01:09]CreateOFDProtocolMessage done [07:01:09]OFDSenderStorePacket 69645 [07:01:09]StoreOFDPacket docnum=69645 [07:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 D6 07 01 E3 88 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 23 00 00 00 F4 03 04 00 36 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 10 01 00 35 04 06 00 56 5B 39 1A B9 E6 A3 BF E3 11 53 CE 37 51 [07:01:09]CheckFolder [07:01:09]dirname=/storage/ofd_packets [07:01:09]CheckFolder done [07:01:09]ProducePacketName [07:01:09]name=ofd_packets/00069645 [07:01:09]NVStorageSaveData ofd_packets/00069645 [07:01:09]File name is /storage/ofd_packets/00069645 [07:01:09]Write 301 bytes [07:01:09]NVStorageSaveData done [07:01:09]OFDSenderStorePacket done [07:01:09]KKMCreateOFDPacket done [07:01:09]NVStorageSaveData kkm_last_timestamp [07:01:09]File name is /storage/kkm_last_timestamp [07:01:09]Write 4 bytes [07:01:09]NVStorageSaveData done [07:01:09]ExternCall_PrintAddStr [07:01:09]wPrintStart [07:01:09]Write to MH i2c: 01 00 00 55 0C 61 [07:01:09]Write i2c OK [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: 01 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: 01 07 00 [07:01:09]MH_I2C_Read... [07:01:09]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 FF 0F 76 [07:01:09]RasterBufferAndPrint [07:01:09]line Счет N : (1)2885382 [07:01:09]line ИНН: 02508201610067 [07:01:09]line Контрольно-Кассовый Чек [07:01:09]line ПРОДАЖА [07:01:09]line ТРК (МРК, ГНК) : 42 [07:01:09]line Товар: 2710124130 [07:01:09]line Аи-92-К-5 [07:01:09]line 11.960 * 66.90 [07:01:09]line = 800.12 [07:01:09]line НДС 12% НСП 1% [07:01:09]line > о реализуемом товаре [07:01:09]line ОКРУГЛЕНИЕ: -0.12 [07:01:09]line ИТОГО: 800.00 [07:01:09]line Внесено: 800.00 [07:01:09]line СДАЧА: 0.00 [07:01:09]line НСП 1% : 7.08 [07:01:09]line НДС 12% : 84.97 [07:01:09]line Наличными: 800.00 [07:01:09]line Безнал.: 0.00 [07:01:09]line Место: АЗС № 85 "Партнер Нефть" [07:01:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:01:09]line СНО: Общий режим [07:01:09]line Чек 35 21.10.2024 07:01 [07:01:09]line Смена: 194 ФФД: 1.0 [07:01:09]line ЗНМ: 0300000167 [07:01:09]line РНМ: 0000000000156251 [07:01:09]line Версия ККМ: v1.0 [07:01:09]line ФМ: 0000000000963346 [07:01:09]line ФД: 69645 [07:01:09]line ФПД: 94949800065510 [07:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070110&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69645&fm=94949800065510&tin=02508201610067®Number=0000000000156251&sum=80000 [07:01:10]OFD Sender: Processing packet 69645 [packets to send 18, broken 17] [07:01:10]ProducePacketName [07:01:10]name=ofd_packets/00069645 [07:01:10]OFD Sender: To server: pG, [07:01:10]CommunicateWithHost lk.salyk.kg:30040 [07:01:10]ConnectInit lk.salyk.kg [07:01:10]written 0, free lines is 4095 [07:01:10]Connected sock=10 [07:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 D6 07 01 E3 88 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 23 00 00 00 F4 03 04 00 36 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 10 01 00 35 04 06 00 56 5B 39 1A B9 E6 A3 BF E3 11 53 CE 37 51 [07:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 91 47 00 7F 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 39 36 33 33 34 36 10 04 04 00 0D 10 01 00 F4 03 04 00 DB A5 15 67 B6 04 01 00 00 1B 95 77 C3 88 AD FA FA [07:01:10]CommunicateWithHost err = 0 [07:01:10]CheckOFDResponse [07:01:10]1017 (14) - 77093643461234 [07:01:10]1041 (16) - 0000000000963346 [07:01:10]1040 (4) - 69645 [07:01:10]1012 (4) - 21.10.2024 00:52 [07:01:10]1206 (1) - 0 [07:01:10]OFD Sender: Remove packet 69645 [07:01:10]ProducePacketName [07:01:10]name=ofd_packets/00069645 [07:01:10]NVStorageDeleteData [07:01:10]Write to MH i2c: 01 00 00 80 0C 8C [07:01:10]Write i2c OK [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: 01 [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: 01 07 00 [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 E4 0C 83 [07:01:10]RasterBufferAndPrint [07:01:10]line [07:01:10]line [07:01:10]line [07:01:10]line [07:01:10]line [07:01:10]written 0, free lines is 3306 [07:01:10]MH_Cut [07:01:10]Write to MH i2c: D1 01 00 87 0C 01 65 [07:01:10]Write i2c OK [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: D1 [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: D1 01 00 [07:01:10]MH_I2C_Read... [07:01:10]Read from MH i2c: D1 01 00 87 0C 00 64 [07:01:10]Write to MH i2c: 01 00 00 88 0C 94 [07:01:10]Write i2c OK [07:01:10]MH_I2C_Read... [07:01:11]OFD Sender: No OFD packet to send [07:01:11]*** Cut start [07:01:11]*** Partial cut [07:01:11]*** CUTSNS_PIN = 1 [07:01:11]*** CUTSNS_PIN = 0 [07:01:11]*** Brake cut motor [07:01:12]Read from MH i2c: 01 [07:01:12]MH_I2C_Read... [07:01:12]*** Stop cut motor [07:01:12]*** Cut end [07:01:12]Read from MH i2c: 01 07 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 FF 0F A9 [07:01:12]process_action close_receipt done [07:01:12]requested_data is exist [07:01:12]produce_requested_data [07:01:12]requested_item fm.sn is exist - process it [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 11 00 00 [07:01:12]Write to MH i2c: E2 08 00 89 0C 80 11 00 00 00 00 00 00 0F [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 17 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 17 00 89 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [07:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:01:12]wFMCommunicate OK [07:01:12]requested_item fd.num is exist - process it [07:01:12]SAM_PROTO_GetFieldsCounters [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 13 00 00 [07:01:12]Write to MH i2c: E2 08 00 8A 0C 80 13 00 00 00 00 00 00 12 [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 62 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 62 00 8A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [07:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:12]wFMCommunicate OK [07:01:12]SAM_PROTO_GetFieldsCounters done [07:01:12]requested_item shift.num is exist - process it [07:01:12]requested_item shift.opened is exist - process it [07:01:12]req_shift_opened [07:01:12]FM_GetShiftState [07:01:12]SAM_PROTO_GetShiftState [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 13 01 00 [07:01:12]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [07:01:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:01:12]wFMCommunicate OK [07:01:12]SAM_PROTO_GetShiftState done [07:01:12]FM_GetShiftState done [07:01:12]req_shift_opened done [07:01:12]requested_item shift.open_date is exist - process it [07:01:12]req_shift_open_date [07:01:12]req_shift_open_date done [07:01:12]produce_requested_data done [07:01:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69645,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:01:12]process_action_free close_receipt [07:01:12]json_value_free [07:01:12]json_value_free done [07:01:12]process_json_proto returns [07:01:12]Send response to host [07:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69645,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:01:12]free response buf [07:01:12]execute_script done [07:01:12]execute_script returns [07:01:12]free content buf [07:01:12]Sock 9.Close socket [07:01:12]Sock 9.Thread stoped [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:07]accept exits with 8 [07:02:07]New connection [07:02:07]New thread 3067456868 created [07:02:07]Thread 3067313508 joined [07:02:07]Waiting for new connection... [07:02:07] Sock 8.Parse request [07:02:07]Sock 8.Check first char [07:02:07]Sock 8.First char is OK [07:02:07]request: POST /json_proto HTTP/1.0 [07:02:07]Method: POST [07:02:07]URL: /json_proto [07:02:07]Method is POST - this is cgi request [07:02:07]url: /json_proto [07:02:07]query_string will be loaded in cgi processing [07:02:07]execute_cgi json_proto POST (null) [07:02:07]execute_cgi path=json_proto method=POST [07:02:07]POST find Content-Length [07:02:07]Host: 172.17.50.3:8080 [07:02:07]Content-Length: 683 [07:02:07]Content-Type: application/json [07:02:07] [07:02:07]POST finish read [07:02:07]Found Content-Length = 683 [07:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:07]execute_script... [07:02: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)2885383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:07]POST & json_proto [07:02:07]process_json_proto [07:02:07]json parsed OK: [07:02:07]protocol is kg_v1.0 [07:02:07]action value=close_receipt [07:02:07]process_action close_receipt [07:02:07]cmd_close_receipt [07:02:07]MH_GetDate [07:02:07]Write to MH i2c: F0 00 00 8C 0C 87 [07:02:07]Write i2c OK [07:02:07]MH_I2C_Read... [07:02:07]Read from MH i2c: F0 [07:02:07]MH_I2C_Read... [07:02:07]Read from MH i2c: F0 09 00 [07:02:07]MH_I2C_Read... [07:02:07]Read from MH i2c: F0 09 00 8C 0C 00 71 FC 15 67 6B 98 1E 66 00 [07:02:07]GetLastDocTimeStamp 1729494070 [07:02:07]current date 1729494129 [07:02:07]FM_GetShiftState [07:02:07]SAM_PROTO_GetShiftState [07:02:07]wFMCommunicate request_size=4 [07:02:07]MH_SAM_APDU [07:02:07]CAPDU: 80 13 01 00 [07:02:07]Write to MH i2c: E2 08 00 8D 0C 80 13 01 00 00 00 00 00 16 [07:02:07]Write i2c OK [07:02:07]MH_I2C_Read... [07:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:07]Read from MH i2c: E2 [07:02:07]MH_I2C_Read... [07:02:07]Read from MH i2c: E2 0E 00 [07:02:07]MH_I2C_Read... [07:02:07]Read from MH i2c: E2 0E 00 8D 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [07:02:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:02:07]wFMCommunicate OK [07:02:07]SAM_PROTO_GetShiftState done [07:02:07]FM_GetShiftState done [07:02:07]opened in 1729469703 [07:02:07]opened+sec_in_day 1729556103 [07:02:07]quantity*price = 100015 [07:02:07]sum+1 = 100017 [07:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 36 21.10.2024 07:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69646 ФПД: 28821781266001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69646&fm=28821781266001&tin=02508201610067®Number=0000000000156251&sum=100000 [07:02:08]StoreToDocumentArchive [07:02:08]shift 194 fd 69646 [07:02:08]save to /storage/0194/doc_00069646 [07:02:08]save last doc name /storage/0194/doc_00069646 to /storage/kkm_last_doc_name [07:02:08]save OK [07:02:08]Clear old archive folders... [07:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:08]tlvbuf is 00C20270 [07:02:08]SAM_PROTO_ClearQueue [07:02:08]wFMCommunicate request_size=4 [07:02:08]MH_SAM_APDU [07:02:08]CAPDU: 80 09 00 00 [07:02:08]Write to MH i2c: E2 08 00 9A 0C 80 09 00 00 00 00 00 00 18 [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [07:02:08]RAPDU: 90 00 [07:02:08]wFMCommunicate OK [07:02:08]SAM_PROTO_ClearQueue done [07:02:08]KKMCreateOFDPacket [07:02:08]OFDProtocolAddRootSTLVToBuf [07:02:08]FM_MakeSignedData [07:02:08]FM_MakeSignedData [07:02:08]SAM_PROTO_SignData [07:02:08]wFMCommunicate request_size=4 [07:02:08]MH_SAM_APDU [07:02:08]CAPDU: 80 0D 01 02 [07:02:08]Write to MH i2c: E2 08 00 9B 0C 80 0D 01 02 00 00 00 00 20 [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 9B 0C 00 90 00 1B [07:02:08]RAPDU: 90 00 [07:02:08]wFMCommunicate OK [07:02:08]wFMCommunicate request_size=255 [07:02:08]MH_SAM_APDU [07:02: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 71 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 10 01 00 35 04 06 00 1A [07:02:08]Write to MH i2c: E2 02 01 9C 0C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 71 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 10 01 00 35 04 06 00 1A 00 00 AB [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 9C 0C 00 90 00 1C [07:02:08]RAPDU: 90 00 [07:02:08]wFMCommunicate OK [07:02:08]wFMCommunicate request_size=10 [07:02:08]MH_SAM_APDU [07:02:08]CAPDU: 80 0D 02 02 05 36 98 08 BE 51 [07:02:08]Write to MH i2c: E2 0D 00 9D 0C 80 0D 02 02 05 00 36 98 08 BE 51 00 00 12 [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [07:02:08]RAPDU: 90 00 [07:02:08]wFMCommunicate OK [07:02:08]wFMCommunicate request_size=4 [07:02:08]MH_SAM_APDU [07:02:08]CAPDU: 80 0D 03 02 [07:02:08]Write to MH i2c: E2 08 00 9E 0C 80 0D 03 02 00 00 00 00 25 [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 0B 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 0B 00 9E 0C 00 EA 39 B5 BC EC 30 89 A0 90 00 FF [07:02:08]RAPDU: EA 39 B5 BC EC 30 89 A0 90 00 [07:02:08]wFMCommunicate OK [07:02:08]SAM_PROTO_SignData done [07:02:08]FM_MakeSignedData done [07:02:08]CreateOFDProtocolMessage [07:02:08]wFMCommunicate request_size=4 [07:02:08]MH_SAM_APDU [07:02:08]CAPDU: 80 11 00 00 [07:02:08]Write to MH i2c: E2 08 00 9F 0C 80 11 00 00 00 00 00 00 25 [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:08]Read from MH i2c: E2 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 17 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: E2 17 00 9F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [07:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:02:08]wFMCommunicate OK [07:02:08]CreateOFDProtocolMessage done [07:02:08]OFDSenderStorePacket 69646 [07:02:08]StoreOFDPacket docnum=69646 [07:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 67 07 01 F9 B6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 71 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 10 01 00 35 04 06 00 1A 36 98 08 BE 51 EA 39 B5 BC EC 30 89 A0 [07:02:08]CheckFolder [07:02:08]dirname=/storage/ofd_packets [07:02:08]CheckFolder done [07:02:08]ProducePacketName [07:02:08]name=ofd_packets/00069646 [07:02:08]NVStorageSaveData ofd_packets/00069646 [07:02:08]File name is /storage/ofd_packets/00069646 [07:02:08]Write 301 bytes [07:02:08]NVStorageSaveData done [07:02:08]OFDSenderStorePacket done [07:02:08]KKMCreateOFDPacket done [07:02:08]NVStorageSaveData kkm_last_timestamp [07:02:08]File name is /storage/kkm_last_timestamp [07:02:08]Write 4 bytes [07:02:08]NVStorageSaveData done [07:02:08]ExternCall_PrintAddStr [07:02:08]OFD Sender: Processing packet 69646 [packets to send 18, broken 17] [07:02:08]ProducePacketName [07:02:08]name=ofd_packets/00069646 [07:02:08]OFD Sender: To server: pG, [07:02:08]CommunicateWithHost lk.salyk.kg:30040 [07:02:08]ConnectInit lk.salyk.kg [07:02:08]wPrintStart [07:02:08]Write to MH i2c: 01 00 00 A0 0C AC [07:02:08]Write i2c OK [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: 01 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: 01 07 00 [07:02:08]MH_I2C_Read... [07:02:08]Read from MH i2c: 01 07 00 A0 0C 00 00 00 00 00 FF 0F C1 [07:02:08]RasterBufferAndPrint [07:02:08]line Счет N : (1)2885383 [07:02:08]line ИНН: 02508201610067 [07:02:08]line Контрольно-Кассовый Чек [07:02:08]line ПРОДАЖА [07:02:08]line ТРК (МРК, ГНК) : 22 [07:02:08]line Товар: 2710124130 [07:02:08]line Аи-92-К-5 [07:02:08]line 14.950 * 66.90 [07:02:08]line = 1000.16 [07:02:08]line НДС 12% НСП 1% [07:02:08]line > о реализуемом товаре [07:02:08]line ОКРУГЛЕНИЕ: -0.16 [07:02:08]line ИТОГО: 1000.00 [07:02:08]line Внесено: 1000.00 [07:02:08]line СДАЧА: 0.00 [07:02:08]line НСП 1% : 8.85 [07:02:08]line НДС 12% : 106.21 [07:02:08]line Наличными: 1000.00 [07:02:08]line Безнал.: 0.00 [07:02:08]line Место: АЗС № 85 "Партнер Нефть" [07:02:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:02:08]line СНО: Общий режим [07:02:08]line Чек 36 21.10.2024 07:02 [07:02:08]line Смена: 194 ФФД: 1.0 [07:02:08]line ЗНМ: 0300000167 [07:02:09]line РНМ: 0000000000156251 [07:02:09]line Версия ККМ: v1.0 [07:02:09]line ФМ: 0000000000963346 [07:02:09]line ФД: 69646 [07:02:09]line ФПД: 28821781266001 [07:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69646&fm=28821781266001&tin=02508201610067®Number=0000000000156251&sum=100000 [07:02:09]Connected sock=10 [07:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 67 07 01 F9 B6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 71 FC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 10 01 00 35 04 06 00 1A 36 98 08 BE 51 EA 39 B5 BC EC 30 89 A0 [07:02:09]written 0, free lines is 4095 [07:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 37 F9 47 00 AB 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 10 01 00 F4 03 04 00 16 A6 15 67 B6 04 01 00 00 5C 2D 0A 2C 0F 8F E9 0E [07:02:09]CommunicateWithHost err = 0 [07:02:09]CheckOFDResponse [07:02:09]1017 (14) - 77093643461234 [07:02:09]1041 (16) - 0000000000963346 [07:02:09]1040 (4) - 69646 [07:02:09]1012 (4) - 21.10.2024 00:53 [07:02:09]1206 (1) - 0 [07:02:09]OFD Sender: Remove packet 69646 [07:02:09]ProducePacketName [07:02:09]name=ofd_packets/00069646 [07:02:09]NVStorageDeleteData [07:02:09]Write to MH i2c: 01 00 00 CB 0C D7 [07:02:09]Write i2c OK [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: 01 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: 01 07 00 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 ED 0C D7 [07:02:09]RasterBufferAndPrint [07:02:09]line [07:02:09]line [07:02:09]line [07:02:09]line [07:02:09]line [07:02:09]written 0, free lines is 3315 [07:02:09]MH_Cut [07:02:09]Write to MH i2c: D1 01 00 D2 0C 01 B0 [07:02:09]Write i2c OK [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: D1 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: D1 01 00 [07:02:09]MH_I2C_Read... [07:02:09]Read from MH i2c: D1 01 00 D2 0C 00 AF [07:02:09]Write to MH i2c: 01 00 00 D3 0C DF [07:02:09]Write i2c OK [07:02:09]MH_I2C_Read... [07:02:09]OFD Sender: No OFD packet to send [07:02:10]*** Cut start [07:02:10]*** Partial cut [07:02:10]*** CUTSNS_PIN = 1 [07:02:10]*** CUTSNS_PIN = 0 [07:02:10]*** Brake cut motor [07:02:11]Read from MH i2c: 01 [07:02:11]MH_I2C_Read... [07:02:11]*** Stop cut motor [07:02:11]*** Cut end [07:02:11]Read from MH i2c: 01 07 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: 01 07 00 D3 0C 00 00 00 00 00 FF 0F F4 [07:02:11]process_action close_receipt done [07:02:11]requested_data is exist [07:02:11]produce_requested_data [07:02:11]requested_item fm.sn is exist - process it [07:02:11]wFMCommunicate request_size=4 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 11 00 00 [07:02:11]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:11]Read from MH i2c: E2 17 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [07:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:02:11]wFMCommunicate OK [07:02:11]requested_item fd.num is exist - process it [07:02:11]SAM_PROTO_GetFieldsCounters [07:02:11]wFMCommunicate request_size=4 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 13 00 00 [07:02:11]Write to MH i2c: E2 08 00 D5 0C 80 13 00 00 00 00 00 00 5D [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 62 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 62 00 D5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 10 01 00 0E 04 04 00 C2 00 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 C5 [07:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 10 01 00 0E 04 04 00 C2 00 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 [07:02:11]wFMCommunicate OK [07:02:11]SAM_PROTO_GetFieldsCounters done [07:02:11]requested_item shift.num is exist - process it [07:02:11]requested_item shift.opened is exist - process it [07:02:11]req_shift_opened [07:02:11]FM_GetShiftState [07:02:11]SAM_PROTO_GetShiftState [07:02:11]wFMCommunicate request_size=4 [07:02:11]MH_SAM_APDU [07:02:11]CAPDU: 80 13 01 00 [07:02:11]Write to MH i2c: E2 08 00 D6 0C 80 13 01 00 00 00 00 00 5F [07:02:11]Write i2c OK [07:02:11]MH_I2C_Read... [07:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:11]Read from MH i2c: E2 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 0E 00 [07:02:11]MH_I2C_Read... [07:02:11]Read from MH i2c: E2 0E 00 D6 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [07:02:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:02:11]wFMCommunicate OK [07:02:11]SAM_PROTO_GetShiftState done [07:02:11]FM_GetShiftState done [07:02:11]req_shift_opened done [07:02:11]requested_item shift.open_date is exist - process it [07:02:11]req_shift_open_date [07:02:11]req_shift_open_date done [07:02:11]produce_requested_data done [07:02:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69646,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:02:11]process_action_free close_receipt [07:02:11]json_value_free [07:02:11]json_value_free done [07:02:11]process_json_proto returns [07:02:11]Send response to host [07:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69646,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:02:11]free response buf [07:02:11]execute_script done [07:02:11]execute_script returns [07:02:11]free content buf [07:02:11]Sock 8.Close socket [07:02:11]Sock 8.Thread stoped [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:32]accept exits with 9 [07:09:32]New connection [07:09:32]New thread 3067313508 created [07:09:32]Thread 3067456868 joined [07:09:32]Waiting for new connection... [07:09:32] Sock 9.Parse request [07:09:32]Sock 9.Check first char [07:09:32]Sock 9.First char is OK [07:09:32]request: POST /json_proto HTTP/1.0 [07:09:32]Method: POST [07:09:32]URL: /json_proto [07:09:32]Method is POST - this is cgi request [07:09:32]url: /json_proto [07:09:32]query_string will be loaded in cgi processing [07:09:32]execute_cgi json_proto POST (null) [07:09:32]execute_cgi path=json_proto method=POST [07:09:32]POST find Content-Length [07:09:32]Host: 172.17.50.3:8080 [07:09:32]Content-Length: 689 [07:09:32]Content-Type: application/json [07:09:32] [07:09:32]POST finish read [07:09:32]Found Content-Length = 689 [07:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:09:32]execute_script... [07:09: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)2885384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:09:32]POST & json_proto [07:09:32]process_json_proto [07:09:32]json parsed OK: [07:09:32]protocol is kg_v1.0 [07:09:32]action value=close_receipt [07:09:32]process_action close_receipt [07:09:32]cmd_close_receipt [07:09:32]MH_GetDate [07:09:32]Write to MH i2c: F0 00 00 D7 0C D2 [07:09:32]Write i2c OK [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: F0 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: F0 09 00 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: F0 09 00 D7 0C 00 2E FE 15 67 6B 98 1E 66 0A [07:09:32]GetLastDocTimeStamp 1729494129 [07:09:32]current date 1729494574 [07:09:32]FM_GetShiftState [07:09:32]SAM_PROTO_GetShiftState [07:09:32]wFMCommunicate request_size=4 [07:09:32]MH_SAM_APDU [07:09:32]CAPDU: 80 13 01 00 [07:09:32]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [07:09:32]Write i2c OK [07:09:32]MH_I2C_Read... [07:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:32]Read from MH i2c: E2 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 0E 00 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [07:09:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:09:32]wFMCommunicate OK [07:09:32]SAM_PROTO_GetShiftState done [07:09:32]FM_GetShiftState done [07:09:32]opened in 1729469703 [07:09:32]opened+sec_in_day 1729556103 [07:09:32]quantity*price = 150076 [07:09:32]sum+1 = 150078 [07:09:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 37 21.10.2024 07:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69647 ФПД: 54087030899870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69647&fm=54087030899870&tin=02508201610067®Number=0000000000156251&sum=150000 [07:09:33]StoreToDocumentArchive [07:09:33]shift 194 fd 69647 [07:09:33]save to /storage/0194/doc_00069647 [07:09:33]save last doc name /storage/0194/doc_00069647 to /storage/kkm_last_doc_name [07:09:33]save OK [07:09:33]Clear old archive folders... [07:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:09:33]tlvbuf is B6F559F0 [07:09:33]SAM_PROTO_ClearQueue [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 09 00 00 [07:09:33]Write to MH i2c: E2 08 00 E5 0C 80 09 00 00 00 00 00 00 63 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]SAM_PROTO_ClearQueue done [07:09:33]KKMCreateOFDPacket [07:09:33]OFDProtocolAddRootSTLVToBuf [07:09:33]FM_MakeSignedData [07:09:33]FM_MakeSignedData [07:09:33]SAM_PROTO_SignData [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 01 02 [07:09:33]Write to MH i2c: E2 08 00 E6 0C 80 0D 01 02 00 00 00 00 6B [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 E6 0C 00 90 00 66 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]wFMCommunicate request_size=255 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 2E FE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 10 01 [07:09:33]Write to MH i2c: E2 02 01 E7 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 2E FE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 10 01 00 00 BE [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]wFMCommunicate request_size=16 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 31 31 1E 43 84 9E [07:09:33]Write to MH i2c: E2 13 00 E8 0C 80 0D 02 02 0B 00 00 35 04 06 00 31 31 1E 43 84 9E 00 00 A8 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 03 02 [07:09:33]Write to MH i2c: E2 08 00 E9 0C 80 0D 03 02 00 00 00 00 70 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 0B 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 0B 00 E9 0C 00 F3 18 23 F5 BA 97 DC 7B 90 00 3C [07:09:33]RAPDU: F3 18 23 F5 BA 97 DC 7B 90 00 [07:09:33]wFMCommunicate OK [07:09:33]SAM_PROTO_SignData done [07:09:33]FM_MakeSignedData done [07:09:33]CreateOFDProtocolMessage [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 11 00 00 [07:09:33]Write to MH i2c: E2 08 00 EA 0C 80 11 00 00 00 00 00 00 70 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 17 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 17 00 EA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [07:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:09:33]wFMCommunicate OK [07:09:33]CreateOFDProtocolMessage done [07:09:33]OFDSenderStorePacket 69647 [07:09:33]StoreOFDPacket docnum=69647 [07:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E5 3D 0D 01 3E E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 2E FE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 10 01 00 35 04 06 00 31 31 1E 43 84 9E F3 18 23 F5 BA 97 DC 7B [07:09:33]CheckFolder [07:09:33]dirname=/storage/ofd_packets [07:09:33]CheckFolder done [07:09:33]ProducePacketName [07:09:33]name=ofd_packets/00069647 [07:09:33]NVStorageSaveData ofd_packets/00069647 [07:09:33]File name is /storage/ofd_packets/00069647 [07:09:33]Write 307 bytes [07:09:33]NVStorageSaveData done [07:09:33]OFDSenderStorePacket done [07:09:33]KKMCreateOFDPacket done [07:09:33]NVStorageSaveData kkm_last_timestamp [07:09:33]File name is /storage/kkm_last_timestamp [07:09:33]Write 4 bytes [07:09:33]NVStorageSaveData done [07:09:33]ExternCall_PrintAddStr [07:09:33]wPrintStart [07:09:33]Write to MH i2c: 01 00 00 EB 0C F7 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 FF 0F 0C [07:09:33]RasterBufferAndPrint [07:09:33]line Счет N : (1)2885384 [07:09:33]line ИНН: 02508201610067 [07:09:33]line Контрольно-Кассовый Чек [07:09:33]line ПРОДАЖА [07:09:33]line ТРК (МРК, ГНК) : 41 [07:09:33]line Товар: 2710194240 [07:09:33]line D-ENERGY Дт-К-2 [07:09:33]line 19.440 * 77.20 [07:09:33]line = 1500.77 [07:09:33]line НДС 12% НСП 1% [07:09:33]line > о реализуемом товаре [07:09:33]line ОКРУГЛЕНИЕ: -0.77 [07:09:33]line ИТОГО: 1500.00 [07:09:33]line Внесено: 1500.00 [07:09:33]line СДАЧА: 0.00 [07:09:33]line НСП 1% : 13.28 [07:09:33]line НДС 12% : 159.37 [07:09:33]line Наличными: 1500.00 [07:09:33]line Безнал.: 0.00 [07:09:33]line Место: АЗС № 85 "Партнер Нефть" [07:09:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:09:33]line СНО: Общий режим [07:09:33]line Чек 37 21.10.2024 07:09 [07:09:33]line Смена: 194 ФФД: 1.0 [07:09:33]line ЗНМ: 0300000167 [07:09:33]line РНМ: 0000000000156251 [07:09:34]line Версия ККМ: v1.0 [07:09:34]line ФМ: 0000000000963346 [07:09:34]line ФД: 69647 [07:09:34]line ФПД: 54087030899870 [07:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69647&fm=54087030899870&tin=02508201610067®Number=0000000000156251&sum=150000 [07:09:34]OFD Sender: Processing packet 69647 [packets to send 18, broken 17] [07:09:34]ProducePacketName [07:09:34]name=ofd_packets/00069647 [07:09:34]OFD Sender: To server: pG, [07:09:34]CommunicateWithHost lk.salyk.kg:30040 [07:09:34]ConnectInit lk.salyk.kg [07:09:34]written 0, free lines is 4095 [07:09:34]Connected sock=10 [07:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E5 3D 0D 01 3E E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 2E FE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 10 01 00 35 04 06 00 31 31 1E 43 84 9E F3 18 23 F5 BA 97 DC 7B [07:09:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A2 42 47 00 33 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 10 01 00 F4 03 04 00 D3 A7 15 67 B6 04 01 00 00 8C D6 28 66 B2 53 E1 9E [07:09:34]CommunicateWithHost err = 0 [07:09:34]CheckOFDResponse [07:09:34]1017 (14) - 77093643461234 [07:09:34]1041 (16) - 0000000000963346 [07:09:34]1040 (4) - 69647 [07:09:34]1012 (4) - 21.10.2024 01:01 [07:09:34]1206 (1) - 0 [07:09:34]OFD Sender: Remove packet 69647 [07:09:34]ProducePacketName [07:09:34]name=ofd_packets/00069647 [07:09:34]NVStorageDeleteData [07:09:34]Write to MH i2c: 01 00 00 16 0D 23 [07:09:34]Write i2c OK [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: 01 [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: 01 07 00 [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 F2 0C 28 [07:09:34]RasterBufferAndPrint [07:09:34]line [07:09:34]line [07:09:34]line [07:09:34]line [07:09:34]line [07:09:34]written 0, free lines is 3320 [07:09:34]MH_Cut [07:09:34]Write to MH i2c: D1 01 00 1D 0D 01 FC [07:09:34]Write i2c OK [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: D1 [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: D1 01 00 [07:09:34]MH_I2C_Read... [07:09:34]Read from MH i2c: D1 01 00 1D 0D 00 FB [07:09:34]Write to MH i2c: 01 00 00 1E 0D 2B [07:09:34]Write i2c OK [07:09:34]MH_I2C_Read... [07:09:34]OFD Sender: No OFD packet to send [07:09:35]*** Cut start [07:09:35]*** Partial cut [07:09:35]*** CUTSNS_PIN = 1 [07:09:35]*** CUTSNS_PIN = 0 [07:09:35]*** Brake cut motor [07:09:35]Read from MH i2c: 01 [07:09:35]MH_I2C_Read... [07:09:35]*** Stop cut motor [07:09:35]*** Cut end [07:09:35]Read from MH i2c: 01 07 00 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: 01 07 00 1E 0D 00 00 00 00 00 FF 0F 40 [07:09:35]process_action close_receipt done [07:09:35]requested_data is exist [07:09:35]produce_requested_data [07:09:35]requested_item fm.sn is exist - process it [07:09:35]wFMCommunicate request_size=4 [07:09:35]MH_SAM_APDU [07:09:35]CAPDU: 80 11 00 00 [07:09:35]Write to MH i2c: E2 08 00 1F 0D 80 11 00 00 00 00 00 00 A6 [07:09:35]Write i2c OK [07:09:35]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 17 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 17 00 1F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [07:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:09:36]wFMCommunicate OK [07:09:36]requested_item fd.num is exist - process it [07:09:36]SAM_PROTO_GetFieldsCounters [07:09:36]wFMCommunicate request_size=4 [07:09:36]MH_SAM_APDU [07:09:36]CAPDU: 80 13 00 00 [07:09:36]Write to MH i2c: E2 08 00 20 0D 80 13 00 00 00 00 00 00 A9 [07:09:36]Write i2c OK [07:09:36]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 62 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 62 00 20 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 10 01 00 0E 04 04 00 C2 00 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 15 [07:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 10 01 00 0E 04 04 00 C2 00 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 [07:09:36]wFMCommunicate OK [07:09:36]SAM_PROTO_GetFieldsCounters done [07:09:36]requested_item shift.num is exist - process it [07:09:36]requested_item shift.opened is exist - process it [07:09:36]req_shift_opened [07:09:36]FM_GetShiftState [07:09:36]SAM_PROTO_GetShiftState [07:09:36]wFMCommunicate request_size=4 [07:09:36]MH_SAM_APDU [07:09:36]CAPDU: 80 13 01 00 [07:09:36]Write to MH i2c: E2 08 00 21 0D 80 13 01 00 00 00 00 00 AB [07:09:36]Write i2c OK [07:09:36]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 0E 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 0E 00 21 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D7 [07:09:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:09:36]wFMCommunicate OK [07:09:36]SAM_PROTO_GetShiftState done [07:09:36]FM_GetShiftState done [07:09:36]req_shift_opened done [07:09:36]requested_item shift.open_date is exist - process it [07:09:36]req_shift_open_date [07:09:36]req_shift_open_date done [07:09:36]produce_requested_data done [07:09:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69647,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:09:36]process_action_free close_receipt [07:09:36]json_value_free [07:09:36]json_value_free done [07:09:36]process_json_proto returns [07:09:36]Send response to host [07:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69647,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:09:36]free response buf [07:09:36]execute_script done [07:09:36]execute_script returns [07:09:36]free content buf [07:09:36]Sock 9.Close socket [07:09:36]Sock 9.Thread stoped [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:33]accept exits with 8 [07:14:33]New connection [07:14:33]New thread 3067456868 created [07:14:33]Thread 3067313508 joined [07:14:33]Waiting for new connection... [07:14:33] Sock 8.Parse request [07:14:33]Sock 8.Check first char [07:14:33]Sock 8.First char is OK [07:14:33]request: POST /json_proto HTTP/1.0 [07:14:33]Method: POST [07:14:33]URL: /json_proto [07:14:33]Method is POST - this is cgi request [07:14:33]url: /json_proto [07:14:33]query_string will be loaded in cgi processing [07:14:33]execute_cgi json_proto POST (null) [07:14:33]execute_cgi path=json_proto method=POST [07:14:33]POST find Content-Length [07:14:33]Host: 172.17.50.3:8080 [07:14:33]Content-Length: 689 [07:14:33]Content-Type: application/json [07:14:33] [07:14:33]POST finish read [07:14:33]Found Content-Length = 689 [07:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [07:14:33]execute_script... [07:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [07:14:33]POST & json_proto [07:14:33]process_json_proto [07:14:33]json parsed OK: [07:14:33]protocol is kg_v1.0 [07:14:33]action value=close_receipt [07:14:33]process_action close_receipt [07:14:33]cmd_close_receipt [07:14:33]MH_GetDate [07:14:33]Write to MH i2c: F0 00 00 22 0D 1E [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 09 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 09 00 22 0D 00 5C FF 15 67 6B 98 1E 66 85 [07:14:33]GetLastDocTimeStamp 1729494574 [07:14:33]current date 1729494876 [07:14:33]FM_GetShiftState [07:14:33]SAM_PROTO_GetShiftState [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 13 01 00 [07:14:33]Write to MH i2c: E2 08 00 23 0D 80 13 01 00 00 00 00 00 AD [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:33]Read from MH i2c: E2 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 23 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [07:14:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:14:33]wFMCommunicate OK [07:14:33]SAM_PROTO_GetShiftState done [07:14:33]FM_GetShiftState done [07:14:33]opened in 1729469703 [07:14:33]opened+sec_in_day 1729556103 [07:14:33]quantity*price = 200025 [07:14:33]sum+1 = 200026 [07:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 38 21.10.2024 07:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69648 ФПД: 26720422120451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69648&fm=26720422120451&tin=02508201610067®Number=0000000000156251&sum=200000 [07:14:35]StoreToDocumentArchive [07:14:35]shift 194 fd 69648 [07:14:35]save to /storage/0194/doc_00069648 [07:14:35]save last doc name /storage/0194/doc_00069648 to /storage/kkm_last_doc_name [07:14:35]save OK [07:14:35]Clear old archive folders... [07:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:14:35]tlvbuf is B6FD3A10 [07:14:35]SAM_PROTO_ClearQueue [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 09 00 00 [07:14:35]Write to MH i2c: E2 08 00 30 0D 80 09 00 00 00 00 00 00 AF [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [07:14:35]RAPDU: 90 00 [07:14:35]wFMCommunicate OK [07:14:35]SAM_PROTO_ClearQueue done [07:14:35]KKMCreateOFDPacket [07:14:35]OFDProtocolAddRootSTLVToBuf [07:14:35]FM_MakeSignedData [07:14:35]FM_MakeSignedData [07:14:35]SAM_PROTO_SignData [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 0D 01 02 [07:14:35]Write to MH i2c: E2 08 00 31 0D 80 0D 01 02 00 00 00 00 B7 [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [07:14:35]RAPDU: 90 00 [07:14:35]wFMCommunicate OK [07:14:35]wFMCommunicate request_size=255 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 26 00 00 00 F4 03 04 00 5C FF 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 10 01 [07:14:35]Write to MH i2c: E2 02 01 32 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 26 00 00 00 F4 03 04 00 5C FF 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 10 01 00 00 2D [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]OFD Sender: No OFD packet to send [07:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [07:14:35]RAPDU: 90 00 [07:14:35]wFMCommunicate OK [07:14:35]wFMCommunicate request_size=16 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 4D 55 44 CC 03 [07:14:35]Write to MH i2c: E2 13 00 33 0D 80 0D 02 02 0B 00 00 35 04 06 00 18 4D 55 44 CC 03 00 00 DC [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [07:14:35]RAPDU: 90 00 [07:14:35]wFMCommunicate OK [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 0D 03 02 [07:14:35]Write to MH i2c: E2 08 00 34 0D 80 0D 03 02 00 00 00 00 BC [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 0B 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 0B 00 34 0D 00 FB 00 26 88 21 DF 13 FB 90 00 74 [07:14:35]RAPDU: FB 00 26 88 21 DF 13 FB 90 00 [07:14:35]wFMCommunicate OK [07:14:35]SAM_PROTO_SignData done [07:14:35]FM_MakeSignedData done [07:14:35]CreateOFDProtocolMessage [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 11 00 00 [07:14:35]Write to MH i2c: E2 08 00 35 0D 80 11 00 00 00 00 00 00 BC [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 17 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 17 00 35 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [07:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:14:35]wFMCommunicate OK [07:14:35]CreateOFDProtocolMessage done [07:14:35]OFDSenderStorePacket 69648 [07:14:35]StoreOFDPacket docnum=69648 [07:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3E 7F 0D 01 EA 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 26 00 00 00 F4 03 04 00 5C FF 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 10 01 00 35 04 06 00 18 4D 55 44 CC 03 FB 00 26 88 21 DF 13 FB [07:14:35]CheckFolder [07:14:35]dirname=/storage/ofd_packets [07:14:35]CheckFolder done [07:14:35]ProducePacketName [07:14:35]name=ofd_packets/00069648 [07:14:35]NVStorageSaveData ofd_packets/00069648 [07:14:35]File name is /storage/ofd_packets/00069648 [07:14:35]Write 307 bytes [07:14:35]NVStorageSaveData done [07:14:35]OFDSenderStorePacket done [07:14:35]KKMCreateOFDPacket done [07:14:35]NVStorageSaveData kkm_last_timestamp [07:14:35]File name is /storage/kkm_last_timestamp [07:14:35]Write 4 bytes [07:14:35]NVStorageSaveData done [07:14:35]ExternCall_PrintAddStr [07:14:35]wPrintStart [07:14:35]Write to MH i2c: 01 00 00 36 0D 43 [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 36 0D 00 00 00 00 00 FF 0F 58 [07:14:35]RasterBufferAndPrint [07:14:35]line Счет N : (1)2885385 [07:14:35]line ИНН: 02508201610067 [07:14:35]line Контрольно-Кассовый Чек [07:14:35]line ПРОДАЖА [07:14:35]line ТРК (МРК, ГНК) : 31 [07:14:35]line Товар: 2710194240 [07:14:35]line D-ENERGY Дт-К-2 [07:14:35]line 25.910 * 77.20 [07:14:35]line = 2000.25 [07:14:35]line НДС 12% НСП 1% [07:14:35]line > о реализуемом товаре [07:14:35]line ОКРУГЛЕНИЕ: -0.25 [07:14:35]line ИТОГО: 2000.00 [07:14:35]line Внесено: 2000.00 [07:14:35]line СДАЧА: 0.00 [07:14:35]line НСП 1% : 17.70 [07:14:35]line НДС 12% : 212.42 [07:14:35]line Наличными: 2000.00 [07:14:35]line Безнал.: 0.00 [07:14:35]line Место: АЗС № 85 "Партнер Нефть" [07:14:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:14:35]line СНО: Общий режим [07:14:35]line Чек 38 21.10.2024 07:14 [07:14:35]line Смена: 194 ФФД: 1.0 [07:14:35]line ЗНМ: 0300000167 [07:14:35]line РНМ: 0000000000156251 [07:14:35]line Версия ККМ: v1.0 [07:14:35]line ФМ: 0000000000963346 [07:14:35]line ФД: 69648 [07:14:35]line ФПД: 26720422120451 [07:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69648&fm=26720422120451&tin=02508201610067®Number=0000000000156251&sum=200000 [07:14:35]OFD Sender: Processing packet 69648 [packets to send 18, broken 17] [07:14:35]ProducePacketName [07:14:35]name=ofd_packets/00069648 [07:14:35]OFD Sender: To server: pG, [07:14:35]CommunicateWithHost lk.salyk.kg:30040 [07:14:35]ConnectInit lk.salyk.kg [07:14:35]written 0, free lines is 4095 [07:14:36]Connected sock=10 [07:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3E 7F 0D 01 EA 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 26 00 00 00 F4 03 04 00 5C FF 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 10 01 00 35 04 06 00 18 4D 55 44 CC 03 FB 00 26 88 21 DF 13 FB [07:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DC 5A 47 00 3A 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 39 36 33 33 34 36 10 04 04 00 10 10 01 00 F4 03 04 00 00 A9 15 67 B6 04 01 00 00 94 19 B4 51 A6 17 7C 65 [07:14:36]CommunicateWithHost err = 0 [07:14:36]CheckOFDResponse [07:14:36]1017 (14) - 77093643461234 [07:14:36]1041 (16) - 0000000000963346 [07:14:36]1040 (4) - 69648 [07:14:36]1012 (4) - 21.10.2024 01:06 [07:14:36]1206 (1) - 0 [07:14:36]OFD Sender: Remove packet 69648 [07:14:36]ProducePacketName [07:14:36]name=ofd_packets/00069648 [07:14:36]NVStorageDeleteData [07:14:36]Write to MH i2c: 01 00 00 61 0D 6E [07:14:36]Write i2c OK [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: 01 [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: 01 07 00 [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 ED 0C 6E [07:14:36]RasterBufferAndPrint [07:14:36]line [07:14:36]line [07:14:36]line [07:14:36]line [07:14:36]line [07:14:36]written 0, free lines is 3315 [07:14:36]MH_Cut [07:14:36]Write to MH i2c: D1 01 00 68 0D 01 47 [07:14:36]Write i2c OK [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: D1 [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: D1 01 00 [07:14:36]MH_I2C_Read... [07:14:36]Read from MH i2c: D1 01 00 68 0D 00 46 [07:14:36]Write to MH i2c: 01 00 00 69 0D 76 [07:14:36]Write i2c OK [07:14:36]MH_I2C_Read... [07:14:36]OFD Sender: No OFD packet to send [07:14:37]*** Cut start [07:14:37]*** Partial cut [07:14:37]*** CUTSNS_PIN = 1 [07:14:37]*** CUTSNS_PIN = 0 [07:14:37]*** Brake cut motor [07:14:37]Read from MH i2c: 01 [07:14:37]MH_I2C_Read... [07:14:37]*** Stop cut motor [07:14:37]*** Cut end [07:14:37]Read from MH i2c: 01 07 00 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: 01 07 00 69 0D 00 00 00 00 00 FF 0F 8B [07:14:37]process_action close_receipt done [07:14:37]requested_data is exist [07:14:37]produce_requested_data [07:14:37]requested_item fm.sn is exist - process it [07:14:37]wFMCommunicate request_size=4 [07:14:37]MH_SAM_APDU [07:14:37]CAPDU: 80 11 00 00 [07:14:37]Write to MH i2c: E2 08 00 6A 0D 80 11 00 00 00 00 00 00 F1 [07:14:37]Write i2c OK [07:14:37]MH_I2C_Read... [07:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:37]Read from MH i2c: E2 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 17 00 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 17 00 6A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [07:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:14:37]wFMCommunicate OK [07:14:37]requested_item fd.num is exist - process it [07:14:37]SAM_PROTO_GetFieldsCounters [07:14:37]wFMCommunicate request_size=4 [07:14:37]MH_SAM_APDU [07:14:37]CAPDU: 80 13 00 00 [07:14:37]Write to MH i2c: E2 08 00 6B 0D 80 13 00 00 00 00 00 00 F4 [07:14:37]Write i2c OK [07:14:37]MH_I2C_Read... [07:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:37]Read from MH i2c: E2 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 62 00 [07:14:37]MH_I2C_Read... [07:14:37]Read from MH i2c: E2 62 00 6B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 10 01 00 0E 04 04 00 C2 00 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 64 [07:14:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 10 01 00 0E 04 04 00 C2 00 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 [07:14:37]wFMCommunicate OK [07:14:37]SAM_PROTO_GetFieldsCounters done [07:14:37]requested_item shift.num is exist - process it [07:14:37]requested_item shift.opened is exist - process it [07:14:37]req_shift_opened [07:14:37]FM_GetShiftState [07:14:37]SAM_PROTO_GetShiftState [07:14:37]wFMCommunicate request_size=4 [07:14:37]MH_SAM_APDU [07:14:37]CAPDU: 80 13 01 00 [07:14:37]Write to MH i2c: E2 08 00 6C 0D 80 13 01 00 00 00 00 00 F6 [07:14:37]Write i2c OK [07:14:37]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 0E 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 0E 00 6C 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 22 [07:14:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:14:38]wFMCommunicate OK [07:14:38]SAM_PROTO_GetShiftState done [07:14:38]FM_GetShiftState done [07:14:38]req_shift_opened done [07:14:38]requested_item shift.open_date is exist - process it [07:14:38]req_shift_open_date [07:14:38]req_shift_open_date done [07:14:38]produce_requested_data done [07:14:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69648,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:14:38]process_action_free close_receipt [07:14:38]json_value_free [07:14:38]json_value_free done [07:14:38]process_json_proto returns [07:14:38]Send response to host [07:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69648,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:14:38]free response buf [07:14:38]execute_script done [07:14:38]execute_script returns [07:14:38]free content buf [07:14:38]Sock 8.Close socket [07:14:38]Sock 8.Thread stoped [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:18]accept exits with 9 [07:20:18]New connection [07:20:18]New thread 3067313508 created [07:20:18]Thread 3067456868 joined [07:20:18]Waiting for new connection... [07:20:18] Sock 9.Parse request [07:20:18]Sock 9.Check first char [07:20:18]Sock 9.First char is OK [07:20:18]request: POST /json_proto HTTP/1.0 [07:20:18]Method: POST [07:20:18]URL: /json_proto [07:20:18]Method is POST - this is cgi request [07:20:18]url: /json_proto [07:20:18]query_string will be loaded in cgi processing [07:20:18]execute_cgi json_proto POST (null) [07:20:18]execute_cgi path=json_proto method=POST [07:20:18]POST find Content-Length [07:20:18]Host: 172.17.50.3:8080 [07:20:18]Content-Length: 683 [07:20:18]Content-Type: application/json [07:20:18] [07:20:18]POST finish read [07:20:18]Found Content-Length = 683 [07:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:20:18]execute_script... [07:20: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)2885386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:20:18]POST & json_proto [07:20:18]process_json_proto [07:20:18]json parsed OK: [07:20:18]protocol is kg_v1.0 [07:20:18]action value=close_receipt [07:20:18]process_action close_receipt [07:20:18]cmd_close_receipt [07:20:18]MH_GetDate [07:20:18]Write to MH i2c: F0 00 00 6D 0D 69 [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 6D 0D 00 B5 00 16 67 6B 98 1E 66 2B [07:20:18]GetLastDocTimeStamp 1729494876 [07:20:18]current date 1729495221 [07:20:18]FM_GetShiftState [07:20:18]SAM_PROTO_GetShiftState [07:20:18]wFMCommunicate request_size=4 [07:20:18]MH_SAM_APDU [07:20:18]CAPDU: 80 13 01 00 [07:20:18]Write to MH i2c: E2 08 00 6E 0D 80 13 01 00 00 00 00 00 F8 [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:18]Read from MH i2c: E2 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 6E 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [07:20:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:20:18]wFMCommunicate OK [07:20:18]SAM_PROTO_GetShiftState done [07:20:18]FM_GetShiftState done [07:20:18]opened in 1729469703 [07:20:18]opened+sec_in_day 1729556103 [07:20:18]quantity*price = 150056 [07:20:18]sum+1 = 150058 [07:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 39 21.10.2024 07:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69649 ФПД: 85886690157727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072021&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69649&fm=85886690157727&tin=02508201610067®Number=0000000000156251&sum=150000 [07:20:19]StoreToDocumentArchive [07:20:19]shift 194 fd 69649 [07:20:19]save to /storage/0194/doc_00069649 [07:20:19]save last doc name /storage/0194/doc_00069649 to /storage/kkm_last_doc_name [07:20:19]save OK [07:20:19]Clear old archive folders... [07:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:19]tlvbuf is 00C6E7E0 [07:20:19]SAM_PROTO_ClearQueue [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 09 00 00 [07:20:19]Write to MH i2c: E2 08 00 7B 0D 80 09 00 00 00 00 00 00 FA [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]SAM_PROTO_ClearQueue done [07:20:19]KKMCreateOFDPacket [07:20:19]OFDProtocolAddRootSTLVToBuf [07:20:19]FM_MakeSignedData [07:20:19]FM_MakeSignedData [07:20:19]SAM_PROTO_SignData [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 0D 01 02 [07:20:19]Write to MH i2c: E2 08 00 7C 0D 80 0D 01 02 00 00 00 00 02 [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 7C 0D 00 90 00 FD [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]wFMCommunicate request_size=255 [07:20:19]MH_SAM_APDU [07:20:19]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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 27 00 00 00 F4 03 04 00 B5 00 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 10 01 00 35 04 06 00 4E [07:20:19]Write to MH i2c: E2 02 01 7D 0D 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 27 00 00 00 F4 03 04 00 B5 00 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 10 01 00 35 04 06 00 4E 00 00 5F [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]wFMCommunicate request_size=10 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 02 02 05 1D 0D A8 64 9F [07:20:20]Write to MH i2c: E2 0D 00 7E 0D 80 0D 02 02 05 00 1D 0D A8 64 9F 00 00 E4 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]wFMCommunicate request_size=4 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 03 02 [07:20:20]Write to MH i2c: E2 08 00 7F 0D 80 0D 03 02 00 00 00 00 07 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 0B 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 0B 00 7F 0D 00 58 CB B9 93 C7 1A 46 1D 90 00 BB [07:20:20]RAPDU: 58 CB B9 93 C7 1A 46 1D 90 00 [07:20:20]wFMCommunicate OK [07:20:20]SAM_PROTO_SignData done [07:20:20]FM_MakeSignedData done [07:20:20]CreateOFDProtocolMessage [07:20:20]wFMCommunicate request_size=4 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 11 00 00 [07:20:20]Write to MH i2c: E2 08 00 80 0D 80 11 00 00 00 00 00 00 07 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 17 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 17 00 80 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [07:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:20:20]wFMCommunicate OK [07:20:20]CreateOFDProtocolMessage done [07:20:20]OFDSenderStorePacket 69649 [07:20:20]StoreOFDPacket docnum=69649 [07:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A4 3F 07 01 B6 16 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 27 00 00 00 F4 03 04 00 B5 00 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 10 01 00 35 04 06 00 4E 1D 0D A8 64 9F 58 CB B9 93 C7 1A 46 1D [07:20:20]CheckFolder [07:20:20]dirname=/storage/ofd_packets [07:20:20]CheckFolder done [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00069649 [07:20:20]NVStorageSaveData ofd_packets/00069649 [07:20:20]File name is /storage/ofd_packets/00069649 [07:20:20]Write 301 bytes [07:20:20]NVStorageSaveData done [07:20:20]OFDSenderStorePacket done [07:20:20]KKMCreateOFDPacket done [07:20:20]NVStorageSaveData kkm_last_timestamp [07:20:20]File name is /storage/kkm_last_timestamp [07:20:20]Write 4 bytes [07:20:20]NVStorageSaveData done [07:20:20]ExternCall_PrintAddStr [07:20:20]wPrintStart [07:20:20]Write to MH i2c: 01 00 00 81 0D 8E [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 FF 0F A3 [07:20:20]RasterBufferAndPrint [07:20:20]line Счет N : (1)2885386 [07:20:20]line ИНН: 02508201610067 [07:20:20]line Контрольно-Кассовый Чек [07:20:20]line ПРОДАЖА [07:20:20]line ТРК (МРК, ГНК) : 22 [07:20:20]line Товар: 2710124130 [07:20:20]line Аи-92-К-5 [07:20:20]line 22.430 * 66.90 [07:20:20]line = 1500.57 [07:20:20]line НДС 12% НСП 1% [07:20:20]line > о реализуемом товаре [07:20:20]line ОКРУГЛЕНИЕ: -0.57 [07:20:20]line ИТОГО: 1500.00 [07:20:20]line Внесено: 1500.00 [07:20:20]line СДАЧА: 0.00 [07:20:20]line НСП 1% : 13.28 [07:20:20]line НДС 12% : 159.35 [07:20:20]line Наличными: 1500.00 [07:20:20]line Безнал.: 0.00 [07:20:20]line Место: АЗС № 85 "Партнер Нефть" [07:20:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:20:20]line СНО: Общий режим [07:20:20]line Чек 39 21.10.2024 07:20 [07:20:20]line Смена: 194 ФФД: 1.0 [07:20:20]line ЗНМ: 0300000167 [07:20:20]line РНМ: 0000000000156251 [07:20:20]line Версия ККМ: v1.0 [07:20:20]line ФМ: 0000000000963346 [07:20:20]line ФД: 69649 [07:20:20]line ФПД: 85886690157727 [07:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072021&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69649&fm=85886690157727&tin=02508201610067®Number=0000000000156251&sum=150000 [07:20:20]OFD Sender: Processing packet 69649 [packets to send 18, broken 17] [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00069649 [07:20:20]OFD Sender: To server: pG, [07:20:20]CommunicateWithHost lk.salyk.kg:30040 [07:20:20]ConnectInit lk.salyk.kg [07:20:20]written 0, free lines is 4095 [07:20:20]Connected sock=10 [07:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A4 3F 07 01 B6 16 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 27 00 00 00 F4 03 04 00 B5 00 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 10 01 00 35 04 06 00 4E 1D 0D A8 64 9F 58 CB B9 93 C7 1A 46 1D [07:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 86 AC 47 00 17 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 10 01 00 F4 03 04 00 59 AA 15 67 B6 04 01 00 00 F0 99 EF 89 18 64 90 D4 [07:20:20]CommunicateWithHost err = 0 [07:20:20]CheckOFDResponse [07:20:20]1017 (14) - 77093643461234 [07:20:20]1041 (16) - 0000000000963346 [07:20:20]1040 (4) - 69649 [07:20:20]1012 (4) - 21.10.2024 01:11 [07:20:20]1206 (1) - 0 [07:20:20]OFD Sender: Remove packet 69649 [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00069649 [07:20:20]NVStorageDeleteData [07:20:21]Write to MH i2c: 01 00 00 AC 0D B9 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 07 00 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 00 0D CD [07:20:21]RasterBufferAndPrint [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]written 0, free lines is 3334 [07:20:21]MH_Cut [07:20:21]Write to MH i2c: D1 01 00 B3 0D 01 92 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 01 00 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 01 00 B3 0D 00 91 [07:20:21]Write to MH i2c: 01 00 00 B4 0D C1 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]OFD Sender: No OFD packet to send [07:20:21]*** Cut start [07:20:21]*** Partial cut [07:20:21]*** CUTSNS_PIN = 1 [07:20:21]*** CUTSNS_PIN = 0 [07:20:21]*** Brake cut motor [07:20:22]Read from MH i2c: 01 [07:20:22]MH_I2C_Read... [07:20:22]*** Stop cut motor [07:20:22]*** Cut end [07:20:22]Read from MH i2c: 01 07 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: 01 07 00 B4 0D 00 00 00 00 00 FF 0F D6 [07:20:22]process_action close_receipt done [07:20:22]requested_data is exist [07:20:22]produce_requested_data [07:20:22]requested_item fm.sn is exist - process it [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 11 00 00 [07:20:22]Write to MH i2c: E2 08 00 B5 0D 80 11 00 00 00 00 00 00 3C [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 B5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [07:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:20:22]wFMCommunicate OK [07:20:22]requested_item fd.num is exist - process it [07:20:22]SAM_PROTO_GetFieldsCounters [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 00 00 [07:20:22]Write to MH i2c: E2 08 00 B6 0D 80 13 00 00 00 00 00 00 3F [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 B6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 10 01 00 0E 04 04 00 C2 00 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 B3 [07:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 10 01 00 0E 04 04 00 C2 00 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 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetFieldsCounters done [07:20:22]requested_item shift.num is exist - process it [07:20:22]requested_item shift.opened is exist - process it [07:20:22]req_shift_opened [07:20:22]FM_GetShiftState [07:20:22]SAM_PROTO_GetShiftState [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 01 00 [07:20:22]Write to MH i2c: E2 08 00 B7 0D 80 13 01 00 00 00 00 00 41 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 B7 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6D [07:20:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetShiftState done [07:20:22]FM_GetShiftState done [07:20:22]req_shift_opened done [07:20:22]requested_item shift.open_date is exist - process it [07:20:22]req_shift_open_date [07:20:22]req_shift_open_date done [07:20:22]produce_requested_data done [07:20:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69649,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:20:22]process_action_free close_receipt [07:20:22]json_value_free [07:20:22]json_value_free done [07:20:22]process_json_proto returns [07:20:22]Send response to host [07:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69649,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:20:22]free response buf [07:20:22]execute_script done [07:20:22]execute_script returns [07:20:22]free content buf [07:20:22]Sock 9.Close socket [07:20:22]Sock 9.Thread stoped [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:02]accept exits with 8 [07:36:02]New connection [07:36:02]New thread 3067456868 created [07:36:02]Thread 3067313508 joined [07:36:02]Waiting for new connection... [07:36:02] Sock 8.Parse request [07:36:02]Sock 8.Check first char [07:36:02]Sock 8.First char is OK [07:36:02]request: POST /json_proto HTTP/1.0 [07:36:02]Method: POST [07:36:02]URL: /json_proto [07:36:02]Method is POST - this is cgi request [07:36:02]url: /json_proto [07:36:02]query_string will be loaded in cgi processing [07:36:02]execute_cgi json_proto POST (null) [07:36:02]execute_cgi path=json_proto method=POST [07:36:02]POST find Content-Length [07:36:02]Host: 172.17.50.3:8080 [07:36:02]Content-Length: 801 [07:36:02]Content-Type: application/json [07:36:02] [07:36:02]POST finish read [07:36:02]Found Content-Length = 801 [07:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:02]execute_script... [07:36: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)2885389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:02]POST & json_proto [07:36:02]process_json_proto [07:36:02]json parsed OK: [07:36:02]protocol is kg_v1.0 [07:36:02]action value=close_receipt [07:36:02]process_action close_receipt [07:36:02]cmd_close_receipt [07:36:02]MH_GetDate [07:36:02]Write to MH i2c: F0 00 00 B8 0D B4 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: F0 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: F0 09 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: F0 09 00 B8 0D 00 65 04 16 67 6B 98 1E 66 2A [07:36:02]GetLastDocTimeStamp 1729495221 [07:36:02]current date 1729496165 [07:36:02]FM_GetShiftState [07:36:02]SAM_PROTO_GetShiftState [07:36:02]wFMCommunicate request_size=4 [07:36:02]MH_SAM_APDU [07:36:02]CAPDU: 80 13 01 00 [07:36:02]Write to MH i2c: E2 08 00 B9 0D 80 13 01 00 00 00 00 00 43 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:02]Read from MH i2c: E2 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: E2 0E 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: E2 0E 00 B9 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6F [07:36:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:36:02]wFMCommunicate OK [07:36:02]SAM_PROTO_GetShiftState done [07:36:02]FM_GetShiftState done [07:36:02]opened in 1729469703 [07:36:02]opened+sec_in_day 1729556103 [07:36:02]quantity*price = 0 [07:36:02]sum+1 = 1 [07:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 40 21.10.2024 07:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4581914 ФМ: 0000000000963346 ФД: 69650 ФПД: 128755717408166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073605&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69650&fm=128755717408166&tin=02508201610067®Number=0000000000156251&sum=0 [07:36:03]StoreToDocumentArchive [07:36:03]shift 194 fd 69650 [07:36:03]save to /storage/0194/doc_00069650 [07:36:03]save last doc name /storage/0194/doc_00069650 to /storage/kkm_last_doc_name [07:36:03]save OK [07:36:03]Clear old archive folders... [07:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:03]tlvbuf is 00C2FCF0 [07:36:03]SAM_PROTO_ClearQueue [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 09 00 00 [07:36:03]Write to MH i2c: E2 08 00 C6 0D 80 09 00 00 00 00 00 00 45 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [07:36:04]RAPDU: 90 00 [07:36:04]wFMCommunicate OK [07:36:04]SAM_PROTO_ClearQueue done [07:36:04]KKMCreateOFDPacket [07:36:04]OFDProtocolAddRootSTLVToBuf [07:36:04]FM_MakeSignedData [07:36:04]FM_MakeSignedData [07:36:04]SAM_PROTO_SignData [07:36:04]wFMCommunicate request_size=4 [07:36:04]MH_SAM_APDU [07:36:04]CAPDU: 80 0D 01 02 [07:36:04]Write to MH i2c: E2 08 00 C7 0D 80 0D 01 02 00 00 00 00 4D [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [07:36:04]RAPDU: 90 00 [07:36:04]wFMCommunicate OK [07:36:04]wFMCommunicate request_size=255 [07:36:04]MH_SAM_APDU [07:36: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 65 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 10 01 00 35 04 06 00 75 [07:36:04]Write to MH i2c: E2 02 01 C8 0D 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 65 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 10 01 00 35 04 06 00 75 00 00 5E [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 C8 0D 00 90 00 49 [07:36:04]RAPDU: 90 00 [07:36:04]wFMCommunicate OK [07:36:04]wFMCommunicate request_size=10 [07:36:04]MH_SAM_APDU [07:36:04]CAPDU: 80 0D 02 02 05 1A 46 CC 85 A6 [07:36:04]Write to MH i2c: E2 0D 00 C9 0D 80 0D 02 02 05 00 1A 46 CC 85 A6 00 00 B1 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 03 00 C9 0D 00 90 00 4A [07:36:04]RAPDU: 90 00 [07:36:04]wFMCommunicate OK [07:36:04]wFMCommunicate request_size=4 [07:36:04]MH_SAM_APDU [07:36:04]CAPDU: 80 0D 03 02 [07:36:04]Write to MH i2c: E2 08 00 CA 0D 80 0D 03 02 00 00 00 00 52 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 0B 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 0B 00 CA 0D 00 C5 F6 80 8C 83 3E 50 70 90 00 9B [07:36:04]RAPDU: C5 F6 80 8C 83 3E 50 70 90 00 [07:36:04]wFMCommunicate OK [07:36:04]SAM_PROTO_SignData done [07:36:04]FM_MakeSignedData done [07:36:04]CreateOFDProtocolMessage [07:36:04]wFMCommunicate request_size=4 [07:36:04]MH_SAM_APDU [07:36:04]CAPDU: 80 11 00 00 [07:36:04]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:04]Read from MH i2c: E2 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 17 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: E2 17 00 CB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [07:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:04]wFMCommunicate OK [07:36:04]CreateOFDProtocolMessage done [07:36:04]OFDSenderStorePacket 69650 [07:36:04]StoreOFDPacket docnum=69650 [07:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CB 77 07 01 0F D8 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 65 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 10 01 00 35 04 06 00 75 1A 46 CC 85 A6 C5 F6 80 8C 83 3E 50 70 [07:36:04]CheckFolder [07:36:04]dirname=/storage/ofd_packets [07:36:04]CheckFolder done [07:36:04]ProducePacketName [07:36:04]name=ofd_packets/00069650 [07:36:04]NVStorageSaveData ofd_packets/00069650 [07:36:04]File name is /storage/ofd_packets/00069650 [07:36:04]Write 301 bytes [07:36:04]NVStorageSaveData done [07:36:04]OFDSenderStorePacket done [07:36:04]KKMCreateOFDPacket done [07:36:04]NVStorageSaveData kkm_last_timestamp [07:36:04]File name is /storage/kkm_last_timestamp [07:36:04]Write 4 bytes [07:36:04]NVStorageSaveData done [07:36:04]ExternCall_PrintAddStr [07:36:04]wPrintStart [07:36:04]Write to MH i2c: 01 00 00 CC 0D D9 [07:36:04]Write i2c OK [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: 01 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: 01 07 00 [07:36:04]MH_I2C_Read... [07:36:04]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [07:36:04]RasterBufferAndPrint [07:36:04]line Счет N : (1)2885389 [07:36:04]line ИНН: 02508201610067 [07:36:04]line Контрольно-Кассовый Чек [07:36:04]line ПРОДАЖА [07:36:04]line ТРК (МРК, ГНК) : 12 [07:36:04]line Товар: 2710124130 [07:36:04]line Аи-92-К-5 [07:36:04]line 30.000 * 0.00 [07:36:04]line = 0.00 [07:36:04]line НДС 12% НСП 1% [07:36:04]line > о реализуемом товаре [07:36:04]line ИТОГО: 0.00 [07:36:04]line НСП 1% : 0.00 [07:36:04]line НДС 12% : 0.00 [07:36:04]line Наличными: 0.00 [07:36:04]line Безнал.: 0.00 [07:36:04]line Место: АЗС № 85 "Партнер Нефть" [07:36:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:36:04]line СНО: Общий режим [07:36:04]line Чек 40 21.10.2024 07:36 [07:36:04]line Смена: 194 ФФД: 1.0 [07:36:04]line ЗНМ: 0300000167 [07:36:04]line РНМ: 0000000000156251 [07:36:04]line Версия ККМ: v1.0 [07:36:04]line Талоны: Топливные Талоны [07:36:04]line 4581914 [07:36:04]line ФМ: 0000000000963346 [07:36:04]line ФД: 69650 [07:36:04]line ФПД: 128755717408166 [07:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073605&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69650&fm=128755717408166&tin=02508201610067®Number=0000000000156251&sum=0 [07:36:04]OFD Sender: Processing packet 69650 [packets to send 18, broken 17] [07:36:04]ProducePacketName [07:36:04]name=ofd_packets/00069650 [07:36:04]OFD Sender: To server: pG, [07:36:04]CommunicateWithHost lk.salyk.kg:30040 [07:36:04]ConnectInit lk.salyk.kg [07:36:04]written 0, free lines is 4095 [07:36:04]Connected sock=10 [07:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CB 77 07 01 0F D8 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 65 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 10 01 00 35 04 06 00 75 1A 46 CC 85 A6 C5 F6 80 8C 83 3E 50 70 [07:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 70 12 47 00 EF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 10 01 00 F4 03 04 00 09 AE 15 67 B6 04 01 00 00 66 7D 9C 23 9E 1F 7F DE [07:36:05]CommunicateWithHost err = 0 [07:36:05]CheckOFDResponse [07:36:05]1017 (14) - 77093643461234 [07:36:05]1041 (16) - 0000000000963346 [07:36:05]1040 (4) - 69650 [07:36:05]1012 (4) - 21.10.2024 01:27 [07:36:05]1206 (1) - 0 [07:36:05]OFD Sender: Remove packet 69650 [07:36:05]ProducePacketName [07:36:05]name=ofd_packets/00069650 [07:36:05]NVStorageDeleteData [07:36:05]Write to MH i2c: 01 00 00 F6 0D 03 [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: 01 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: 01 07 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 F7 0C 0D [07:36:05]RasterBufferAndPrint [07:36:05]line [07:36:05]line [07:36:05]line [07:36:05]line [07:36:05]line [07:36:05]written 0, free lines is 3325 [07:36:05]MH_Cut [07:36:05]Write to MH i2c: D1 01 00 FD 0D 01 DC [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: D1 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: D1 01 00 [07:36:05]MH_I2C_Read... [07:36:05]Read from MH i2c: D1 01 00 FD 0D 00 DB [07:36:05]Write to MH i2c: 01 00 00 FE 0D 0B [07:36:05]Write i2c OK [07:36:05]MH_I2C_Read... [07:36:05]OFD Sender: No OFD packet to send [07:36:05]*** Cut start [07:36:05]*** Partial cut [07:36:05]*** CUTSNS_PIN = 1 [07:36:06]*** CUTSNS_PIN = 0 [07:36:06]*** Brake cut motor [07:36:06]Read from MH i2c: 01 [07:36:06]MH_I2C_Read... [07:36:06]*** Stop cut motor [07:36:06]*** Cut end [07:36:06]Read from MH i2c: 01 07 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 FF 0F 20 [07:36:06]process_action close_receipt done [07:36:06]requested_data is exist [07:36:06]produce_requested_data [07:36:06]requested_item fm.sn is exist - process it [07:36:06]wFMCommunicate request_size=4 [07:36:06]MH_SAM_APDU [07:36:06]CAPDU: 80 11 00 00 [07:36:06]Write to MH i2c: E2 08 00 FF 0D 80 11 00 00 00 00 00 00 86 [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:06]Read from MH i2c: E2 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 17 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 17 00 FF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [07:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:06]wFMCommunicate OK [07:36:06]requested_item fd.num is exist - process it [07:36:06]SAM_PROTO_GetFieldsCounters [07:36:06]wFMCommunicate request_size=4 [07:36:06]MH_SAM_APDU [07:36:06]CAPDU: 80 13 00 00 [07:36:06]Write to MH i2c: E2 08 00 00 0E 80 13 00 00 00 00 00 00 8A [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:06]Read from MH i2c: E2 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 62 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 62 00 00 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 10 01 00 0E 04 04 00 C2 00 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 02 [07:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 10 01 00 0E 04 04 00 C2 00 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 [07:36:06]wFMCommunicate OK [07:36:06]SAM_PROTO_GetFieldsCounters done [07:36:06]requested_item shift.num is exist - process it [07:36:06]requested_item shift.opened is exist - process it [07:36:06]req_shift_opened [07:36:06]FM_GetShiftState [07:36:06]SAM_PROTO_GetShiftState [07:36:06]wFMCommunicate request_size=4 [07:36:06]MH_SAM_APDU [07:36:06]CAPDU: 80 13 01 00 [07:36:06]Write to MH i2c: E2 08 00 01 0E 80 13 01 00 00 00 00 00 8C [07:36:06]Write i2c OK [07:36:06]MH_I2C_Read... [07:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:06]Read from MH i2c: E2 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 0E 00 [07:36:06]MH_I2C_Read... [07:36:06]Read from MH i2c: E2 0E 00 01 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B8 [07:36:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:36:06]wFMCommunicate OK [07:36:06]SAM_PROTO_GetShiftState done [07:36:06]FM_GetShiftState done [07:36:06]req_shift_opened done [07:36:06]requested_item shift.open_date is exist - process it [07:36:06]req_shift_open_date [07:36:06]req_shift_open_date done [07:36:06]produce_requested_data done [07:36:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69650,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:36:06]process_action_free close_receipt [07:36:06]json_value_free [07:36:06]json_value_free done [07:36:06]process_json_proto returns [07:36:06]Send response to host [07:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69650,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:36:06]free response buf [07:36:06]execute_script done [07:36:06]execute_script returns [07:36:06]free content buf [07:36:06]Sock 8.Close socket [07:36:06]Sock 8.Thread stoped [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:44]accept exits with 9 [07:36:44]New connection [07:36:44]New thread 3067313508 created [07:36:44]Thread 3067456868 joined [07:36:44]Waiting for new connection... [07:36:44] Sock 9.Parse request [07:36:44]Sock 9.Check first char [07:36:44]Sock 9.First char is OK [07:36:44]request: POST /json_proto HTTP/1.0 [07:36:44]Method: POST [07:36:44]URL: /json_proto [07:36:44]Method is POST - this is cgi request [07:36:44]url: /json_proto [07:36:44]query_string will be loaded in cgi processing [07:36:44]execute_cgi json_proto POST (null) [07:36:44]execute_cgi path=json_proto method=POST [07:36:44]POST find Content-Length [07:36:44]Host: 172.17.50.3:8080 [07:36:44]Content-Length: 689 [07:36:44]Content-Type: application/json [07:36:44] [07:36:44]POST finish read [07:36:44]Found Content-Length = 689 [07:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:44]execute_script... [07:36:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:44]POST & json_proto [07:36:44]process_json_proto [07:36:44]json parsed OK: [07:36:44]protocol is kg_v1.0 [07:36:44]action value=close_receipt [07:36:44]process_action close_receipt [07:36:44]cmd_close_receipt [07:36:44]MH_GetDate [07:36:44]Write to MH i2c: F0 00 00 02 0E FF [07:36:44]Write i2c OK [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: F0 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: F0 09 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: F0 09 00 02 0E 00 8E 04 16 67 6B 98 1E 66 9E [07:36:44]GetLastDocTimeStamp 1729496165 [07:36:44]current date 1729496206 [07:36:44]FM_GetShiftState [07:36:44]SAM_PROTO_GetShiftState [07:36:44]wFMCommunicate request_size=4 [07:36:44]MH_SAM_APDU [07:36:44]CAPDU: 80 13 01 00 [07:36:44]Write to MH i2c: E2 08 00 03 0E 80 13 01 00 00 00 00 00 8E [07:36:44]Write i2c OK [07:36:44]MH_I2C_Read... [07:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:44]Read from MH i2c: E2 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 0E 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 0E 00 03 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BA [07:36:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:36:44]wFMCommunicate OK [07:36:44]SAM_PROTO_GetShiftState done [07:36:44]FM_GetShiftState done [07:36:44]opened in 1729469703 [07:36:44]opened+sec_in_day 1729556103 [07:36:44]quantity*price = 280004 [07:36:44]sum+1 = 280005 [07:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.35 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 41 21.10.2024 07:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69651 ФПД: 191402527704164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69651&fm=191402527704164&tin=02508201610067®Number=0000000000156251&sum=280000 [07:36:45]StoreToDocumentArchive [07:36:45]shift 194 fd 69651 [07:36:45]save to /storage/0194/doc_00069651 [07:36:45]save last doc name /storage/0194/doc_00069651 to /storage/kkm_last_doc_name [07:36:45]save OK [07:36:45]Clear old archive folders... [07:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:36:45]tlvbuf is 00C256D0 [07:36:45]SAM_PROTO_ClearQueue [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 09 00 00 [07:36:45]Write to MH i2c: E2 08 00 10 0E 80 09 00 00 00 00 00 00 90 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 10 0E 00 90 00 92 [07:36:45]RAPDU: 90 00 [07:36:45]wFMCommunicate OK [07:36:45]SAM_PROTO_ClearQueue done [07:36:45]KKMCreateOFDPacket [07:36:45]OFDProtocolAddRootSTLVToBuf [07:36:45]FM_MakeSignedData [07:36:45]FM_MakeSignedData [07:36:45]SAM_PROTO_SignData [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 0D 01 02 [07:36:45]Write to MH i2c: E2 08 00 11 0E 80 0D 01 02 00 00 00 00 98 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 11 0E 00 90 00 93 [07:36:45]RAPDU: 90 00 [07:36:45]wFMCommunicate OK [07:36:45]wFMCommunicate request_size=255 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 10 01 [07:36:45]Write to MH i2c: E2 02 01 12 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 10 01 00 00 19 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]OFD Sender: No OFD packet to send [07:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 12 0E 00 90 00 94 [07:36:45]RAPDU: 90 00 [07:36:45]wFMCommunicate OK [07:36:45]wFMCommunicate request_size=16 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AE 14 5F AC 44 64 [07:36:45]Write to MH i2c: E2 13 00 13 0E 80 0D 02 02 0B 00 00 35 04 06 00 AE 14 5F AC 44 64 00 00 65 [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:45]Read from MH i2c: E2 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 [07:36:45]MH_I2C_Read... [07:36:45]Read from MH i2c: E2 03 00 13 0E 00 90 00 95 [07:36:45]RAPDU: 90 00 [07:36:45]wFMCommunicate OK [07:36:45]wFMCommunicate request_size=4 [07:36:45]MH_SAM_APDU [07:36:45]CAPDU: 80 0D 03 02 [07:36:45]Write to MH i2c: E2 08 00 14 0E 80 0D 03 02 00 00 00 00 9D [07:36:45]Write i2c OK [07:36:45]MH_I2C_Read... [07:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:46]Read from MH i2c: E2 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: E2 0B 00 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: E2 0B 00 14 0E 00 05 92 3D DF 12 D0 98 1A 90 00 E5 [07:36:46]RAPDU: 05 92 3D DF 12 D0 98 1A 90 00 [07:36:46]wFMCommunicate OK [07:36:46]SAM_PROTO_SignData done [07:36:46]FM_MakeSignedData done [07:36:46]CreateOFDProtocolMessage [07:36:46]wFMCommunicate request_size=4 [07:36:46]MH_SAM_APDU [07:36:46]CAPDU: 80 11 00 00 [07:36:46]Write to MH i2c: E2 08 00 15 0E 80 11 00 00 00 00 00 00 9D [07:36:46]Write i2c OK [07:36:46]MH_I2C_Read... [07:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:46]Read from MH i2c: E2 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: E2 17 00 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: E2 17 00 15 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [07:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:46]wFMCommunicate OK [07:36:46]CreateOFDProtocolMessage done [07:36:46]OFDSenderStorePacket 69651 [07:36:46]StoreOFDPacket docnum=69651 [07:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 92 23 0D 01 25 B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 10 01 00 35 04 06 00 AE 14 5F AC 44 64 05 92 3D DF 12 D0 98 1A [07:36:46]CheckFolder [07:36:46]dirname=/storage/ofd_packets [07:36:46]CheckFolder done [07:36:46]ProducePacketName [07:36:46]name=ofd_packets/00069651 [07:36:46]NVStorageSaveData ofd_packets/00069651 [07:36:46]File name is /storage/ofd_packets/00069651 [07:36:46]Write 307 bytes [07:36:46]NVStorageSaveData done [07:36:46]OFDSenderStorePacket done [07:36:46]KKMCreateOFDPacket done [07:36:46]NVStorageSaveData kkm_last_timestamp [07:36:46]File name is /storage/kkm_last_timestamp [07:36:46]Write 4 bytes [07:36:46]NVStorageSaveData done [07:36:46]ExternCall_PrintAddStr [07:36:46]wPrintStart [07:36:46]Write to MH i2c: 01 00 00 16 0E 24 [07:36:46]Write i2c OK [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 07 00 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 FF 0F 39 [07:36:46]RasterBufferAndPrint [07:36:46]line Счет N : (1)2885388 [07:36:46]line ИНН: 02508201610067 [07:36:46]line Контрольно-Кассовый Чек [07:36:46]line ПРОДАЖА [07:36:46]line ТРК (МРК, ГНК) : 21 [07:36:46]line Товар: 2710194240 [07:36:46]line D-ENERGY Дт-К-2 [07:36:46]line 36.270 * 77.20 [07:36:46]line = 2800.04 [07:36:46]line НДС 12% НСП 1% [07:36:46]line > о реализуемом товаре [07:36:46]line ОКРУГЛЕНИЕ: -0.04 [07:36:46]line ИТОГО: 2800.00 [07:36:46]line Внесено: 2800.00 [07:36:46]line СДАЧА: 0.00 [07:36:46]line НСП 1% : 24.78 [07:36:46]line НДС 12% : 297.35 [07:36:46]line Наличными: 2800.00 [07:36:46]line Безнал.: 0.00 [07:36:46]line Место: АЗС № 85 "Партнер Нефть" [07:36:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:36:46]line СНО: Общий режим [07:36:46]line Чек 41 21.10.2024 07:36 [07:36:46]line Смена: 194 ФФД: 1.0 [07:36:46]line ЗНМ: 0300000167 [07:36:46]line РНМ: 0000000000156251 [07:36:46]line Версия ККМ: v1.0 [07:36:46]line ФМ: 0000000000963346 [07:36:46]line ФД: 69651 [07:36:46]line ФПД: 191402527704164 [07:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69651&fm=191402527704164&tin=02508201610067®Number=0000000000156251&sum=280000 [07:36:46]OFD Sender: Processing packet 69651 [packets to send 18, broken 17] [07:36:46]ProducePacketName [07:36:46]name=ofd_packets/00069651 [07:36:46]OFD Sender: To server: pG, [07:36:46]CommunicateWithHost lk.salyk.kg:30040 [07:36:46]ConnectInit lk.salyk.kg [07:36:46]written 0, free lines is 4095 [07:36:46]Connected sock=10 [07:36:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 92 23 0D 01 25 B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 10 01 00 35 04 06 00 AE 14 5F AC 44 64 05 92 3D DF 12 D0 98 1A [07:36:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C1 3F 47 00 D8 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 39 36 33 33 34 36 10 04 04 00 13 10 01 00 F4 03 04 00 33 AE 15 67 B6 04 01 00 00 AC 62 06 9E 2B E8 BC 83 [07:36:46]CommunicateWithHost err = 0 [07:36:46]CheckOFDResponse [07:36:46]1017 (14) - 77093643461234 [07:36:46]1041 (16) - 0000000000963346 [07:36:46]1040 (4) - 69651 [07:36:46]1012 (4) - 21.10.2024 01:28 [07:36:46]1206 (1) - 0 [07:36:46]OFD Sender: Remove packet 69651 [07:36:46]ProducePacketName [07:36:46]name=ofd_packets/00069651 [07:36:46]NVStorageDeleteData [07:36:46]Write to MH i2c: 01 00 00 41 0E 4F [07:36:46]Write i2c OK [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 07 00 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: 01 07 00 41 0E 00 00 00 00 00 EB 0C 4D [07:36:46]RasterBufferAndPrint [07:36:46]line [07:36:46]line [07:36:46]line [07:36:46]line [07:36:46]line [07:36:46]written 0, free lines is 3313 [07:36:46]MH_Cut [07:36:46]Write to MH i2c: D1 01 00 48 0E 01 28 [07:36:46]Write i2c OK [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: D1 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: D1 01 00 [07:36:46]MH_I2C_Read... [07:36:46]Read from MH i2c: D1 01 00 48 0E 00 27 [07:36:46]Write to MH i2c: 01 00 00 49 0E 57 [07:36:46]Write i2c OK [07:36:46]MH_I2C_Read... [07:36:47]OFD Sender: No OFD packet to send [07:36:47]*** Cut start [07:36:47]*** Partial cut [07:36:47]*** CUTSNS_PIN = 1 [07:36:47]*** CUTSNS_PIN = 0 [07:36:47]*** Brake cut motor [07:36:48]Read from MH i2c: 01 [07:36:48]MH_I2C_Read... [07:36:48]*** Stop cut motor [07:36:48]*** Cut end [07:36:48]Read from MH i2c: 01 07 00 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: 01 07 00 49 0E 00 00 00 00 00 FF 0F 6C [07:36:48]process_action close_receipt done [07:36:48]requested_data is exist [07:36:48]produce_requested_data [07:36:48]requested_item fm.sn is exist - process it [07:36:48]wFMCommunicate request_size=4 [07:36:48]MH_SAM_APDU [07:36:48]CAPDU: 80 11 00 00 [07:36:48]Write to MH i2c: E2 08 00 4A 0E 80 11 00 00 00 00 00 00 D2 [07:36:48]Write i2c OK [07:36:48]MH_I2C_Read... [07:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:48]Read from MH i2c: E2 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 17 00 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 17 00 4A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [07:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:48]wFMCommunicate OK [07:36:48]requested_item fd.num is exist - process it [07:36:48]SAM_PROTO_GetFieldsCounters [07:36:48]wFMCommunicate request_size=4 [07:36:48]MH_SAM_APDU [07:36:48]CAPDU: 80 13 00 00 [07:36:48]Write to MH i2c: E2 08 00 4B 0E 80 13 00 00 00 00 00 00 D5 [07:36:48]Write i2c OK [07:36:48]MH_I2C_Read... [07:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:48]Read from MH i2c: E2 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 62 00 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 62 00 4B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 10 01 00 0E 04 04 00 C2 00 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 51 [07:36:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 10 01 00 0E 04 04 00 C2 00 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 [07:36:48]wFMCommunicate OK [07:36:48]SAM_PROTO_GetFieldsCounters done [07:36:48]requested_item shift.num is exist - process it [07:36:48]requested_item shift.opened is exist - process it [07:36:48]req_shift_opened [07:36:48]FM_GetShiftState [07:36:48]SAM_PROTO_GetShiftState [07:36:48]wFMCommunicate request_size=4 [07:36:48]MH_SAM_APDU [07:36:48]CAPDU: 80 13 01 00 [07:36:48]Write to MH i2c: E2 08 00 4C 0E 80 13 01 00 00 00 00 00 D7 [07:36:48]Write i2c OK [07:36:48]MH_I2C_Read... [07:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:48]Read from MH i2c: E2 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 0E 00 [07:36:48]MH_I2C_Read... [07:36:48]Read from MH i2c: E2 0E 00 4C 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 03 [07:36:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:36:48]wFMCommunicate OK [07:36:48]SAM_PROTO_GetShiftState done [07:36:48]FM_GetShiftState done [07:36:48]req_shift_opened done [07:36:48]requested_item shift.open_date is exist - process it [07:36:48]req_shift_open_date [07:36:48]req_shift_open_date done [07:36:48]produce_requested_data done [07:36:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69651,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:36:48]process_action_free close_receipt [07:36:48]json_value_free [07:36:48]json_value_free done [07:36:48]process_json_proto returns [07:36:48]Send response to host [07:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69651,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:36:48]free response buf [07:36:48]execute_script done [07:36:48]execute_script returns [07:36:48]free content buf [07:36:48]Sock 9.Close socket [07:36:48]Sock 9.Thread stoped [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:18]accept exits with 8 [07:37:18]New connection [07:37:18]New thread 3067456868 created [07:37:18]Thread 3067313508 joined [07:37:18]Waiting for new connection... [07:37:18] Sock 8.Parse request [07:37:18]Sock 8.Check first char [07:37:18]Sock 8.First char is OK [07:37:18]request: POST /json_proto HTTP/1.0 [07:37:18]Method: POST [07:37:18]URL: /json_proto [07:37:18]Method is POST - this is cgi request [07:37:18]url: /json_proto [07:37:18]query_string will be loaded in cgi processing [07:37:18]execute_cgi json_proto POST (null) [07:37:18]execute_cgi path=json_proto method=POST [07:37:18]POST find Content-Length [07:37:18]Host: 172.17.50.3:8080 [07:37:18]Content-Length: 773 [07:37:18]Content-Type: application/json [07:37:18] [07:37:18]POST finish read [07:37:18]Found Content-Length = 773 [07:37:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:18]execute_script... [07:37: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)2885387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:18]POST & json_proto [07:37:18]process_json_proto [07:37:18]json parsed OK: [07:37:18]protocol is kg_v1.0 [07:37:18]action value=close_receipt [07:37:18]process_action close_receipt [07:37:18]cmd_close_receipt [07:37:18]MH_GetDate [07:37:18]Write to MH i2c: F0 00 00 4D 0E 4A [07:37:18]Write i2c OK [07:37:18]MH_I2C_Read... [07:37:18]Read from MH i2c: F0 [07:37:18]MH_I2C_Read... [07:37:18]Read from MH i2c: F0 09 00 [07:37:18]MH_I2C_Read... [07:37:18]Read from MH i2c: F0 09 00 4D 0E 00 B0 04 16 67 6B 98 1E 66 0B [07:37:18]GetLastDocTimeStamp 1729496207 [07:37:18]current date 1729496240 [07:37:18]FM_GetShiftState [07:37:18]SAM_PROTO_GetShiftState [07:37:18]wFMCommunicate request_size=4 [07:37:18]MH_SAM_APDU [07:37:18]CAPDU: 80 13 01 00 [07:37:18]Write to MH i2c: E2 08 00 4E 0E 80 13 01 00 00 00 00 00 D9 [07:37:18]Write i2c OK [07:37:18]MH_I2C_Read... [07:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:18]Read from MH i2c: E2 [07:37:18]MH_I2C_Read... [07:37:18]Read from MH i2c: E2 0E 00 [07:37:18]MH_I2C_Read... [07:37:18]Read from MH i2c: E2 0E 00 4E 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 05 [07:37:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:37:18]wFMCommunicate OK [07:37:18]SAM_PROTO_GetShiftState done [07:37:18]FM_GetShiftState done [07:37:18]opened in 1729469703 [07:37:18]opened+sec_in_day 1729556103 [07:37:18]quantity*price = 120006 [07:37:18]sum+1 = 120008 [07:37:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.07 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.07 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 42 21.10.2024 07:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69652 ФПД: 55566989582212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69652&fm=55566989582212&tin=02508201610067®Number=0000000000156251&sum=120007 [07:37:19]StoreToDocumentArchive [07:37:19]shift 194 fd 69652 [07:37:19]save to /storage/0194/doc_00069652 [07:37:19]save last doc name /storage/0194/doc_00069652 to /storage/kkm_last_doc_name [07:37:19]save OK [07:37:19]Clear old archive folders... [07:37:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:37:19]tlvbuf is 00C242A0 [07:37:19]SAM_PROTO_ClearQueue [07:37:19]wFMCommunicate request_size=4 [07:37:19]MH_SAM_APDU [07:37:19]CAPDU: 80 09 00 00 [07:37:19]Write to MH i2c: E2 08 00 5B 0E 80 09 00 00 00 00 00 00 DB [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:19]Read from MH i2c: E2 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 5B 0E 00 90 00 DD [07:37:19]RAPDU: 90 00 [07:37:19]wFMCommunicate OK [07:37:19]SAM_PROTO_ClearQueue done [07:37:19]KKMCreateOFDPacket [07:37:19]OFDProtocolAddRootSTLVToBuf [07:37:19]FM_MakeSignedData [07:37:19]FM_MakeSignedData [07:37:19]SAM_PROTO_SignData [07:37:19]wFMCommunicate request_size=4 [07:37:19]MH_SAM_APDU [07:37:19]CAPDU: 80 0D 01 02 [07:37:19]Write to MH i2c: E2 08 00 5C 0E 80 0D 01 02 00 00 00 00 E3 [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:19]Read from MH i2c: E2 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 5C 0E 00 90 00 DE [07:37:19]RAPDU: 90 00 [07:37:19]wFMCommunicate OK [07:37:19]wFMCommunicate request_size=255 [07:37:19]MH_SAM_APDU [07:37:19]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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 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 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 10 01 00 35 04 06 00 32 89 [07:37:19]Write to MH i2c: E2 02 01 5D 0E 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 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 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 10 01 00 35 04 06 00 32 89 00 00 C5 [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:19]Read from MH i2c: E2 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 5D 0E 00 90 00 DF [07:37:19]RAPDU: 90 00 [07:37:19]wFMCommunicate OK [07:37:19]wFMCommunicate request_size=9 [07:37:19]MH_SAM_APDU [07:37:19]CAPDU: 80 0D 02 02 04 B2 AC DF 84 [07:37:19]Write to MH i2c: E2 0C 00 5E 0E 80 0D 02 02 04 00 B2 AC DF 84 00 00 AF [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:19]Read from MH i2c: E2 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 [07:37:19]MH_I2C_Read... [07:37:19]Read from MH i2c: E2 03 00 5E 0E 00 90 00 E0 [07:37:19]RAPDU: 90 00 [07:37:19]wFMCommunicate OK [07:37:19]wFMCommunicate request_size=4 [07:37:19]MH_SAM_APDU [07:37:19]CAPDU: 80 0D 03 02 [07:37:19]Write to MH i2c: E2 08 00 5F 0E 80 0D 03 02 00 00 00 00 E8 [07:37:19]Write i2c OK [07:37:19]MH_I2C_Read... [07:37:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:20]Read from MH i2c: E2 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 0B 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 0B 00 5F 0E 00 70 DD 3D 01 59 BD B1 AE 90 00 E9 [07:37:20]RAPDU: 70 DD 3D 01 59 BD B1 AE 90 00 [07:37:20]wFMCommunicate OK [07:37:20]SAM_PROTO_SignData done [07:37:20]FM_MakeSignedData done [07:37:20]CreateOFDProtocolMessage [07:37:20]wFMCommunicate request_size=4 [07:37:20]MH_SAM_APDU [07:37:20]CAPDU: 80 11 00 00 [07:37:20]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:20]Read from MH i2c: E2 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 17 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [07:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:37:20]wFMCommunicate OK [07:37:20]CreateOFDProtocolMessage done [07:37:20]OFDSenderStorePacket 69652 [07:37:20]StoreOFDPacket docnum=69652 [07:37:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 00 05 06 01 12 66 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 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 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 10 01 00 35 04 06 00 32 89 B2 AC DF 84 70 DD 3D 01 59 BD B1 AE [07:37:20]CheckFolder [07:37:20]dirname=/storage/ofd_packets [07:37:20]CheckFolder done [07:37:20]ProducePacketName [07:37:20]name=ofd_packets/00069652 [07:37:20]NVStorageSaveData ofd_packets/00069652 [07:37:20]File name is /storage/ofd_packets/00069652 [07:37:20]Write 300 bytes [07:37:20]NVStorageSaveData done [07:37:20]OFDSenderStorePacket done [07:37:20]KKMCreateOFDPacket done [07:37:20]NVStorageSaveData kkm_last_timestamp [07:37:20]File name is /storage/kkm_last_timestamp [07:37:20]Write 4 bytes [07:37:20]NVStorageSaveData done [07:37:20]ExternCall_PrintAddStr [07:37:20]wPrintStart [07:37:20]Write to MH i2c: 01 00 00 61 0E 6F [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 07 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 07 00 61 0E 00 00 00 00 00 FF 0F 84 [07:37:20]RasterBufferAndPrint [07:37:20]line Счет N : (1)2885387 [07:37:20]line ИНН: 02508201610067 [07:37:20]line Контрольно-Кассовый Чек [07:37:20]line ПРОДАЖА [07:37:20]line ТРК (МРК, ГНК) : 71 [07:37:20]line Товар: 2711129700 [07:37:20]line ГАЗ-К-3 [07:37:20]line 30.850 * 38.90 [07:37:20]line = 1200.07 [07:37:20]line НДС 12% НСП 1% [07:37:20]line > о реализуемом товаре [07:37:20]line ИТОГО: 1200.07 [07:37:20]line НСП 1% : 10.62 [07:37:20]line НДС 12% : 127.44 [07:37:20]line Наличными: 0.00 [07:37:20]line Безнал.: 1200.07 [07:37:20]line Место: АЗС № 85 "Партнер Нефть" [07:37:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:37:20]line СНО: Общий режим [07:37:20]line Чек 42 21.10.2024 07:37 [07:37:20]line Смена: 194 ФФД: 1.0 [07:37:20]line ЗНМ: 0300000167 [07:37:20]line РНМ: 0000000000156251 [07:37:20]line Версия ККМ: v1.0 [07:37:20]line Платежная система: Mbank [07:37:20]line ФМ: 0000000000963346 [07:37:20]line ФД: 69652 [07:37:20]line ФПД: 55566989582212 [07:37:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073721&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69652&fm=55566989582212&tin=02508201610067®Number=0000000000156251&sum=120007 [07:37:20]OFD Sender: Processing packet 69652 [packets to send 18, broken 17] [07:37:20]ProducePacketName [07:37:20]name=ofd_packets/00069652 [07:37:20]OFD Sender: To server: pG, [07:37:20]CommunicateWithHost lk.salyk.kg:30040 [07:37:20]ConnectInit lk.salyk.kg [07:37:20]written 0, free lines is 4095 [07:37:20]Connected sock=10 [07:37:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 00 05 06 01 12 66 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 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 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 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 04 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 10 01 00 35 04 06 00 32 89 B2 AC DF 84 70 DD 3D 01 59 BD B1 AE [07:37:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EF 53 47 00 C7 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 39 36 33 33 34 36 10 04 04 00 14 10 01 00 F4 03 04 00 55 AE 15 67 B6 04 01 00 00 09 CA 42 5F CD BE DC 2B [07:37:20]CommunicateWithHost err = 0 [07:37:20]CheckOFDResponse [07:37:20]1017 (14) - 77093643461234 [07:37:20]1041 (16) - 0000000000963346 [07:37:20]1040 (4) - 69652 [07:37:20]1012 (4) - 21.10.2024 01:28 [07:37:20]1206 (1) - 0 [07:37:20]OFD Sender: Remove packet 69652 [07:37:20]ProducePacketName [07:37:20]name=ofd_packets/00069652 [07:37:20]NVStorageDeleteData [07:37:20]Write to MH i2c: 01 00 00 8A 0E 98 [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 07 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 0C 0D B8 [07:37:20]RasterBufferAndPrint [07:37:20]line [07:37:20]line [07:37:20]line [07:37:20]line [07:37:20]line [07:37:20]written 0, free lines is 3346 [07:37:20]MH_Cut [07:37:20]Write to MH i2c: D1 01 00 91 0E 01 71 [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: D1 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: D1 01 00 [07:37:20]MH_I2C_Read... [07:37:20]Read from MH i2c: D1 01 00 91 0E 00 70 [07:37:20]Write to MH i2c: 01 00 00 92 0E A0 [07:37:20]Write i2c OK [07:37:20]MH_I2C_Read... [07:37:21]OFD Sender: No OFD packet to send [07:37:21]*** Cut start [07:37:21]*** Partial cut [07:37:21]*** CUTSNS_PIN = 1 [07:37:21]*** CUTSNS_PIN = 0 [07:37:21]*** Brake cut motor [07:37:22]Read from MH i2c: 01 [07:37:22]MH_I2C_Read... [07:37:22]*** Stop cut motor [07:37:22]*** Cut end [07:37:22]Read from MH i2c: 01 07 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 FF 0F B5 [07:37:22]process_action close_receipt done [07:37:22]requested_data is exist [07:37:22]produce_requested_data [07:37:22]requested_item fm.sn is exist - process it [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 11 00 00 [07:37:22]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 17 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [07:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:37:22]wFMCommunicate OK [07:37:22]requested_item fd.num is exist - process it [07:37:22]SAM_PROTO_GetFieldsCounters [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 13 00 00 [07:37:22]Write to MH i2c: E2 08 00 94 0E 80 13 00 00 00 00 00 00 1E [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 62 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 62 00 94 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 10 01 00 0E 04 04 00 C2 00 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 9E [07:37:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 10 01 00 0E 04 04 00 C2 00 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 [07:37:22]wFMCommunicate OK [07:37:22]SAM_PROTO_GetFieldsCounters done [07:37:22]requested_item shift.num is exist - process it [07:37:22]requested_item shift.opened is exist - process it [07:37:22]req_shift_opened [07:37:22]FM_GetShiftState [07:37:22]SAM_PROTO_GetShiftState [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 13 01 00 [07:37:22]Write to MH i2c: E2 08 00 95 0E 80 13 01 00 00 00 00 00 20 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 95 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4C [07:37:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:37:22]wFMCommunicate OK [07:37:22]SAM_PROTO_GetShiftState done [07:37:22]FM_GetShiftState done [07:37:22]req_shift_opened done [07:37:22]requested_item shift.open_date is exist - process it [07:37:22]req_shift_open_date [07:37:22]req_shift_open_date done [07:37:22]produce_requested_data done [07:37:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69652,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:37:22]process_action_free close_receipt [07:37:22]json_value_free [07:37:22]json_value_free done [07:37:22]process_json_proto returns [07:37:22]Send response to host [07:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69652,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:37:22]free response buf [07:37:22]execute_script done [07:37:22]execute_script returns [07:37:22]free content buf [07:37:22]Sock 8.Close socket [07:37:22]Sock 8.Thread stoped [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]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: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:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:52]accept exits with 9 [07:41:52]New connection [07:41:52]New thread 3067313508 created [07:41:52]Thread 3067456868 joined [07:41:52]Waiting for new connection... [07:41:52] Sock 9.Parse request [07:41:52]Sock 9.Check first char [07:41:52]Sock 9.First char is OK [07:41:52]request: POST /json_proto HTTP/1.0 [07:41:52]Method: POST [07:41:52]URL: /json_proto [07:41:52]Method is POST - this is cgi request [07:41:52]url: /json_proto [07:41:52]query_string will be loaded in cgi processing [07:41:52]execute_cgi json_proto POST (null) [07:41:52]execute_cgi path=json_proto method=POST [07:41:52]POST find Content-Length [07:41:52]Host: 172.17.50.3:8080 [07:41:52]Content-Length: 801 [07:41:52]Content-Type: application/json [07:41:52] [07:41:52]POST finish read [07:41:52]Found Content-Length = 801 [07:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885390", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946376", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:52]execute_script... [07:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885390", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3946376", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:52]POST & json_proto [07:41:52]process_json_proto [07:41:52]json parsed OK: [07:41:52]protocol is kg_v1.0 [07:41:52]action value=close_receipt [07:41:52]process_action close_receipt [07:41:52]cmd_close_receipt [07:41:52]MH_GetDate [07:41:52]Write to MH i2c: F0 00 00 96 0E 93 [07:41:52]Write i2c OK [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: F0 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: F0 09 00 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: F0 09 00 96 0E 00 C3 05 16 67 6B 98 1E 66 68 [07:41:52]GetLastDocTimeStamp 1729496241 [07:41:52]current date 1729496515 [07:41:52]FM_GetShiftState [07:41:52]SAM_PROTO_GetShiftState [07:41:52]wFMCommunicate request_size=4 [07:41:52]MH_SAM_APDU [07:41:52]CAPDU: 80 13 01 00 [07:41:52]Write to MH i2c: E2 08 00 97 0E 80 13 01 00 00 00 00 00 22 [07:41:52]Write i2c OK [07:41:52]MH_I2C_Read... [07:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:52]Read from MH i2c: E2 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: E2 0E 00 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: E2 0E 00 97 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4E [07:41:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:41:52]wFMCommunicate OK [07:41:52]SAM_PROTO_GetShiftState done [07:41:52]FM_GetShiftState done [07:41:52]opened in 1729469703 [07:41:52]opened+sec_in_day 1729556103 [07:41:52]quantity*price = 0 [07:41:52]sum+1 = 1 [07:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 43 21.10.2024 07:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3946376 ФМ: 0000000000963346 ФД: 69653 ФПД: 112981645505410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69653&fm=112981645505410&tin=02508201610067®Number=0000000000156251&sum=0 [07:41:53]StoreToDocumentArchive [07:41:53]shift 194 fd 69653 [07:41:53]save to /storage/0194/doc_00069653 [07:41:53]save last doc name /storage/0194/doc_00069653 to /storage/kkm_last_doc_name [07:41:53]save OK [07:41:53]Clear old archive folders... [07:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:53]tlvbuf is 00C6F230 [07:41:53]SAM_PROTO_ClearQueue [07:41:53]wFMCommunicate request_size=4 [07:41:53]MH_SAM_APDU [07:41:53]CAPDU: 80 09 00 00 [07:41:53]Write to MH i2c: E2 08 00 A4 0E 80 09 00 00 00 00 00 00 24 [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 A4 0E 00 90 00 26 [07:41:54]RAPDU: 90 00 [07:41:54]wFMCommunicate OK [07:41:54]SAM_PROTO_ClearQueue done [07:41:54]KKMCreateOFDPacket [07:41:54]OFDProtocolAddRootSTLVToBuf [07:41:54]FM_MakeSignedData [07:41:54]FM_MakeSignedData [07:41:54]SAM_PROTO_SignData [07:41:54]wFMCommunicate request_size=4 [07:41:54]MH_SAM_APDU [07:41:54]CAPDU: 80 0D 01 02 [07:41:54]Write to MH i2c: E2 08 00 A5 0E 80 0D 01 02 00 00 00 00 2C [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 A5 0E 00 90 00 27 [07:41:54]RAPDU: 90 00 [07:41:54]wFMCommunicate OK [07:41:54]wFMCommunicate request_size=255 [07:41:54]MH_SAM_APDU [07:41: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 05 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 10 01 00 35 04 06 00 66 [07:41:54]Write to MH i2c: E2 02 01 A6 0E 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 05 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 10 01 00 35 04 06 00 66 00 00 5C [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 A6 0E 00 90 00 28 [07:41:54]RAPDU: 90 00 [07:41:54]wFMCommunicate OK [07:41:54]wFMCommunicate request_size=10 [07:41:54]MH_SAM_APDU [07:41:54]CAPDU: 80 0D 02 02 05 C1 96 D8 B3 82 [07:41:54]Write to MH i2c: E2 0D 00 A7 0E 80 0D 02 02 05 00 C1 96 D8 B3 82 00 00 9D [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 03 00 A7 0E 00 90 00 29 [07:41:54]RAPDU: 90 00 [07:41:54]wFMCommunicate OK [07:41:54]wFMCommunicate request_size=4 [07:41:54]MH_SAM_APDU [07:41:54]CAPDU: 80 0D 03 02 [07:41:54]Write to MH i2c: E2 08 00 A8 0E 80 0D 03 02 00 00 00 00 31 [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 0B 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 0B 00 A8 0E 00 0D 2A 65 FA 17 77 F7 F5 90 00 42 [07:41:54]RAPDU: 0D 2A 65 FA 17 77 F7 F5 90 00 [07:41:54]wFMCommunicate OK [07:41:54]SAM_PROTO_SignData done [07:41:54]FM_MakeSignedData done [07:41:54]CreateOFDProtocolMessage [07:41:54]wFMCommunicate request_size=4 [07:41:54]MH_SAM_APDU [07:41:54]CAPDU: 80 11 00 00 [07:41:54]Write to MH i2c: E2 08 00 A9 0E 80 11 00 00 00 00 00 00 31 [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 17 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 17 00 A9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [07:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:41:54]wFMCommunicate OK [07:41:54]CreateOFDProtocolMessage done [07:41:54]OFDSenderStorePacket 69653 [07:41:54]StoreOFDPacket docnum=69653 [07:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9E 2B 07 01 0D 0E 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 05 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 10 01 00 35 04 06 00 66 C1 96 D8 B3 82 0D 2A 65 FA 17 77 F7 F5 [07:41:54]CheckFolder [07:41:54]dirname=/storage/ofd_packets [07:41:54]CheckFolder done [07:41:54]ProducePacketName [07:41:54]name=ofd_packets/00069653 [07:41:54]NVStorageSaveData ofd_packets/00069653 [07:41:54]File name is /storage/ofd_packets/00069653 [07:41:54]Write 301 bytes [07:41:54]NVStorageSaveData done [07:41:54]OFDSenderStorePacket done [07:41:54]KKMCreateOFDPacket done [07:41:54]NVStorageSaveData kkm_last_timestamp [07:41:54]File name is /storage/kkm_last_timestamp [07:41:54]Write 4 bytes [07:41:54]NVStorageSaveData done [07:41:54]ExternCall_PrintAddStr [07:41:54]wPrintStart [07:41:54]Write to MH i2c: 01 00 00 AA 0E B8 [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: 01 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: 01 07 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 FF 0F CD [07:41:54]RasterBufferAndPrint [07:41:54]line Счет N : (1)2885390 [07:41:54]line ИНН: 02508201610067 [07:41:54]line Контрольно-Кассовый Чек [07:41:54]line ПРОДАЖА [07:41:54]line ТРК (МРК, ГНК) : 42 [07:41:54]line Товар: 2710124130 [07:41:54]line Аи-92-К-5 [07:41:54]line 20.000 * 0.00 [07:41:54]line = 0.00 [07:41:54]line НДС 12% НСП 1% [07:41:54]line > о реализуемом товаре [07:41:54]line ИТОГО: 0.00 [07:41:54]line НСП 1% : 0.00 [07:41:54]line НДС 12% : 0.00 [07:41:54]line Наличными: 0.00 [07:41:54]line Безнал.: 0.00 [07:41:54]line Место: АЗС № 85 "Партнер Нефть" [07:41:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:41:54]line СНО: Общий режим [07:41:54]line Чек 43 21.10.2024 07:41 [07:41:54]line Смена: 194 ФФД: 1.0 [07:41:54]line ЗНМ: 0300000167 [07:41:54]line РНМ: 0000000000156251 [07:41:54]line Версия ККМ: v1.0 [07:41:54]line Талоны: Топливные Талоны [07:41:54]line 3946376 [07:41:54]line ФМ: 0000000000963346 [07:41:54]line ФД: 69653 [07:41:54]line ФПД: 112981645505410 [07:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074155&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69653&fm=112981645505410&tin=02508201610067®Number=0000000000156251&sum=0 [07:41:54]written 0, free lines is 4095 [07:41:54]OFD Sender: Processing packet 69653 [packets to send 18, broken 17] [07:41:54]ProducePacketName [07:41:54]name=ofd_packets/00069653 [07:41:54]OFD Sender: To server: pG, [07:41:54]CommunicateWithHost lk.salyk.kg:30040 [07:41:54]ConnectInit lk.salyk.kg [07:41:54]Connected sock=10 [07:41:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9E 2B 07 01 0D 0E 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C3 05 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 10 01 00 35 04 06 00 66 C1 96 D8 B3 82 0D 2A 65 FA 17 77 F7 F5 [07:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 E4 47 00 C3 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 10 01 00 F4 03 04 00 67 AF 15 67 B6 04 01 00 00 2F 97 67 07 79 58 15 E1 [07:41:55]CommunicateWithHost err = 0 [07:41:55]CheckOFDResponse [07:41:55]1017 (14) - 77093643461234 [07:41:55]1041 (16) - 0000000000963346 [07:41:55]1040 (4) - 69653 [07:41:55]1012 (4) - 21.10.2024 01:33 [07:41:55]1206 (1) - 0 [07:41:55]OFD Sender: Remove packet 69653 [07:41:55]ProducePacketName [07:41:55]name=ofd_packets/00069653 [07:41:55]NVStorageDeleteData [07:41:55]Write to MH i2c: 01 00 00 D4 0E E2 [07:41:55]Write i2c OK [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: 01 [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: 01 07 00 [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 ED 0C E2 [07:41:55]RasterBufferAndPrint [07:41:55]line [07:41:55]line [07:41:55]line [07:41:55]line [07:41:55]line [07:41:55]written 0, free lines is 3318 [07:41:55]MH_Cut [07:41:55]Write to MH i2c: D1 01 00 DB 0E 01 BB [07:41:55]Write i2c OK [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: D1 [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: D1 01 00 [07:41:55]MH_I2C_Read... [07:41:55]Read from MH i2c: D1 01 00 DB 0E 00 BA [07:41:55]Write to MH i2c: 01 00 00 DC 0E EA [07:41:55]Write i2c OK [07:41:55]MH_I2C_Read... [07:41:55]OFD Sender: No OFD packet to send [07:41:55]*** Cut start [07:41:55]*** Partial cut [07:41:55]*** CUTSNS_PIN = 1 [07:41:56]*** CUTSNS_PIN = 0 [07:41:56]*** Brake cut motor [07:41:56]Read from MH i2c: 01 [07:41:56]MH_I2C_Read... [07:41:56]*** Stop cut motor [07:41:56]*** Cut end [07:41:56]Read from MH i2c: 01 07 00 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: 01 07 00 DC 0E 00 00 00 00 00 FF 0F FF [07:41:56]process_action close_receipt done [07:41:56]requested_data is exist [07:41:56]produce_requested_data [07:41:56]requested_item fm.sn is exist - process it [07:41:56]wFMCommunicate request_size=4 [07:41:56]MH_SAM_APDU [07:41:56]CAPDU: 80 11 00 00 [07:41:56]Write to MH i2c: E2 08 00 DD 0E 80 11 00 00 00 00 00 00 65 [07:41:56]Write i2c OK [07:41:56]MH_I2C_Read... [07:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:56]Read from MH i2c: E2 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 17 00 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 17 00 DD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [07:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:41:56]wFMCommunicate OK [07:41:56]requested_item fd.num is exist - process it [07:41:56]SAM_PROTO_GetFieldsCounters [07:41:56]wFMCommunicate request_size=4 [07:41:56]MH_SAM_APDU [07:41:56]CAPDU: 80 13 00 00 [07:41:56]Write to MH i2c: E2 08 00 DE 0E 80 13 00 00 00 00 00 00 68 [07:41:56]Write i2c OK [07:41:56]MH_I2C_Read... [07:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:56]Read from MH i2c: E2 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 62 00 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 62 00 DE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [07:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:56]wFMCommunicate OK [07:41:56]SAM_PROTO_GetFieldsCounters done [07:41:56]requested_item shift.num is exist - process it [07:41:56]requested_item shift.opened is exist - process it [07:41:56]req_shift_opened [07:41:56]FM_GetShiftState [07:41:56]SAM_PROTO_GetShiftState [07:41:56]wFMCommunicate request_size=4 [07:41:56]MH_SAM_APDU [07:41:56]CAPDU: 80 13 01 00 [07:41:56]Write to MH i2c: E2 08 00 DF 0E 80 13 01 00 00 00 00 00 6A [07:41:56]Write i2c OK [07:41:56]MH_I2C_Read... [07:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:56]Read from MH i2c: E2 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 0E 00 [07:41:56]MH_I2C_Read... [07:41:56]Read from MH i2c: E2 0E 00 DF 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 96 [07:41:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:41:56]wFMCommunicate OK [07:41:56]SAM_PROTO_GetShiftState done [07:41:56]FM_GetShiftState done [07:41:56]req_shift_opened done [07:41:56]requested_item shift.open_date is exist - process it [07:41:56]req_shift_open_date [07:41:56]req_shift_open_date done [07:41:56]produce_requested_data done [07:41:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69653,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:41:56]process_action_free close_receipt [07:41:56]json_value_free [07:41:56]json_value_free done [07:41:56]process_json_proto returns [07:41:56]Send response to host [07:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69653,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:41:56]free response buf [07:41:56]execute_script done [07:41:56]execute_script returns [07:41:56]free content buf [07:41:56]Sock 9.Close socket [07:41:56]Sock 9.Thread stoped [07:42:00]OFD Sender: No OFD packet to send [07:42:04]int [07:42:04]Write to MH i2c: 01 00 00 E0 0E EE [07:42:04]*** FLAG_PRN_PAP1 set [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 E0 0E 00 01 00 00 00 FF 0F 04 [07:42:04]state=0 [07:42:04]No paper [07:42:04]int [07:42:04]Write to MH i2c: 01 00 00 E1 0E EF [07:42:04]*** FLAG_PRN_PAP2 set [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 E1 0E 00 03 00 00 00 FF 0F 07 [07:42:04]state=0 [07:42:04]No paper [07:42:04]Cover opened [07:42:05]OFD Sender: No OFD packet to send [07:42:09]Write to MH i2c: 01 00 00 E2 0E F0 [07:42:09]Write i2c OK [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: 01 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: 01 07 00 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: 01 07 00 E2 0E 00 03 00 00 00 FF 0F 08 [07:42:09]state=3 [07:42:09]No paper [07:42:09]Cover opened [07:42:10]OFD Sender: No OFD packet to send [07:42:14]Write to MH i2c: 01 00 00 E3 0E F1 [07:42:14]Write i2c OK [07:42:14]MH_I2C_Read... [07:42:14]Read from MH i2c: 01 [07:42:14]MH_I2C_Read... [07:42:14]Read from MH i2c: 01 07 00 [07:42:14]MH_I2C_Read... [07:42:14]Read from MH i2c: 01 07 00 E3 0E 00 03 00 00 00 FF 0F 09 [07:42:14]state=3 [07:42:14]No paper [07:42:14]Cover opened [07:42:15]OFD Sender: No OFD packet to send [07:42:17]int [07:42:17]Write to MH i2c: 01 00 00 E4 0E F2 [07:42:17]*** FLAG_PRN_PAP2 reset [07:42:17]Write i2c OK [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: 01 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: 01 07 00 [07:42:17]MH_I2C_Read... [07:42:17]Read from MH i2c: 01 07 00 E4 0E 00 01 00 00 00 FF 0F 08 [07:42:17]state=3 [07:42:17]No paper [07:42:17]Cover closed [07:42:18]int [07:42:18]Write to MH i2c: 01 00 00 E5 0E F3 [07:42:18]*** FLAG_PRN_PAP1 reset [07:42:18]Write i2c OK [07:42:18]MH_I2C_Read... [07:42:18]Read from MH i2c: 01 [07:42:18]MH_I2C_Read... [07:42:18]Read from MH i2c: 01 07 00 [07:42:18]MH_I2C_Read... [07:42:18]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [07:42:18]state=0 [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 E6 0E F4 [07:42:36]*** FLAG_PRN_PAP1 set [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 E6 0E 00 01 00 00 00 FF 0F 0A [07:42:36]state=0 [07:42:36]No paper [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 E7 0E F5 [07:42:36]*** FLAG_PRN_PAP2 set [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 E7 0E 00 03 00 00 00 FF 0F 0D [07:42:36]state=0 [07:42:36]No paper [07:42:36]Cover opened [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 E8 0E F6 [07:42:36]*** FLAG_PRN_PAP2 reset [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 E8 0E 00 01 00 00 00 FF 0F 0C [07:42:36]state=3 [07:42:36]No paper [07:42:36]Cover closed [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 E9 0E F7 [07:42:36]*** FLAG_PRN_PAP2 set [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 E9 0E 00 03 00 00 00 FF 0F 0F [07:42:36]state=0 [07:42:36]No paper [07:42:36]Cover opened [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 EA 0E F8 [07:42:36]*** FLAG_PRN_PAP2 reset [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 EA 0E 00 01 00 00 00 FF 0F 0E [07:42:36]state=3 [07:42:36]No paper [07:42:36]Cover closed [07:42:36]int [07:42:36]Write to MH i2c: 01 00 00 EB 0E F9 [07:42:36]*** FLAG_PRN_PAP2 set [07:42:36]Write i2c OK [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 [07:42:36]MH_I2C_Read... [07:42:36]Read from MH i2c: 01 07 00 EB 0E 00 03 00 00 00 FF 0F 11 [07:42:36]state=0 [07:42:36]No paper [07:42:36]Cover opened [07:42:40]OFD Sender: No OFD packet to send [07:42:41]Write to MH i2c: 01 00 00 EC 0E FA [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: 01 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: 01 07 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: 01 07 00 EC 0E 00 03 00 00 00 FF 0F 12 [07:42:41]state=3 [07:42:41]No paper [07:42:41]Cover opened [07:42:45]OFD Sender: No OFD packet to send [07:42:46]Write to MH i2c: 01 00 00 ED 0E FB [07:42:46]Write i2c OK [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 07 00 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 07 00 ED 0E 00 03 00 00 00 FF 0F 13 [07:42:46]state=3 [07:42:46]No paper [07:42:46]Cover opened [07:42:50]OFD Sender: No OFD packet to send [07:42:51]Write to MH i2c: 01 00 00 EE 0E FC [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 EE 0E 00 03 00 00 00 FF 0F 14 [07:42:51]state=3 [07:42:51]No paper [07:42:51]Cover opened [07:42:55]OFD Sender: No OFD packet to send [07:42:56]Write to MH i2c: 01 00 00 EF 0E FD [07:42:56]Write i2c OK [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 07 00 [07:42:56]MH_I2C_Read... [07:42:56]Read from MH i2c: 01 07 00 EF 0E 00 03 00 00 00 FF 0F 15 [07:42:56]state=3 [07:42:56]No paper [07:42:56]Cover opened [07:42:57]int [07:42:57]Write to MH i2c: 01 00 00 F0 0E FE [07:42:57]*** FLAG_PRN_PAP2 reset [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 F0 0E 00 01 00 00 00 FF 0F 14 [07:42:57]state=3 [07:42:57]No paper [07:42:57]Cover closed [07:42:57]int [07:42:57]Write to MH i2c: 01 00 00 F1 0E FF [07:42:57]*** FLAG_PRN_PAP2 set [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 F1 0E 00 03 00 00 00 FF 0F 17 [07:42:57]state=0 [07:42:57]No paper [07:42:57]Cover opened [07:42:59]int [07:42:59]Write to MH i2c: 01 00 00 F2 0E 00 [07:42:59]*** FLAG_PRN_PAP2 reset [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 F2 0E 00 01 00 00 00 FF 0F 16 [07:42:59]state=3 [07:42:59]No paper [07:42:59]Cover closed [07:42:59]int [07:42:59]Write to MH i2c: 01 00 00 F3 0E 01 [07:42:59]*** FLAG_PRN_PAP2 set [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: 01 07 00 F3 0E 00 03 00 00 00 FF 0F 19 [07:42:59]state=0 [07:42:59]No paper [07:42:59]Cover opened [07:43:00]int [07:43:00]Write to MH i2c: 01 00 00 F4 0E 02 [07:43:00]*** FLAG_PRN_PAP2 reset [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 F4 0E 00 01 00 00 00 FF 0F 18 [07:43:00]state=3 [07:43:00]No paper [07:43:00]Cover closed [07:43:00]int [07:43:00]Write to MH i2c: 01 00 00 F5 0E 03 [07:43:00]*** FLAG_PRN_PAP2 set [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 F5 0E 00 03 00 00 00 FF 0F 1B [07:43:00]state=0 [07:43:00]No paper [07:43:00]Cover opened [07:43:00]OFD Sender: No OFD packet to send [07:43:00]int [07:43:00]Write to MH i2c: 01 00 00 F6 0E 04 [07:43:00]*** FLAG_PRN_PAP2 reset [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 F6 0E 00 01 00 00 00 FF 0F 1A [07:43:00]state=3 [07:43:00]No paper [07:43:00]Cover closed [07:43:00]int [07:43:00]Write to MH i2c: 01 00 00 F7 0E 05 [07:43:00]*** FLAG_PRN_PAP1 reset [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 FF 0F 1A [07:43:00]state=0 [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:31]accept exits with 8 [07:50:31]New connection [07:50:31]New thread 3067456868 created [07:50:31]Thread 3067313508 joined [07:50:31]Waiting for new connection... [07:50:31] Sock 8.Parse request [07:50:31]Sock 8.Check first char [07:50:31]Sock 8.First char is OK [07:50:31]request: POST /json_proto HTTP/1.0 [07:50:31]Method: POST [07:50:31]URL: /json_proto [07:50:31]Method is POST - this is cgi request [07:50:31]url: /json_proto [07:50:31]query_string will be loaded in cgi processing [07:50:31]execute_cgi json_proto POST (null) [07:50:31]execute_cgi path=json_proto method=POST [07:50:31]POST find Content-Length [07:50:31]Host: 172.17.50.3:8080 [07:50:31]Content-Length: 683 [07:50:31]Content-Type: application/json [07:50:31] [07:50:31]POST finish read [07:50:31]Found Content-Length = 683 [07:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885391", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:31]execute_script... [07:50: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)2885391", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:31]POST & json_proto [07:50:31]process_json_proto [07:50:31]json parsed OK: [07:50:31]protocol is kg_v1.0 [07:50:31]action value=close_receipt [07:50:31]process_action close_receipt [07:50:31]cmd_close_receipt [07:50:31]MH_GetDate [07:50:31]Write to MH i2c: F0 00 00 F8 0E F5 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 09 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: F0 09 00 F8 0E 00 CA 07 16 67 6B 98 1E 66 D3 [07:50:31]GetLastDocTimeStamp 1729496515 [07:50:31]current date 1729497034 [07:50:31]FM_GetShiftState [07:50:31]SAM_PROTO_GetShiftState [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 13 01 00 [07:50:31]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 0E 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B0 [07:50:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:50:31]wFMCommunicate OK [07:50:31]SAM_PROTO_GetShiftState done [07:50:31]FM_GetShiftState done [07:50:31]opened in 1729469703 [07:50:31]opened+sec_in_day 1729556103 [07:50:31]quantity*price = 100015 [07:50:31]sum+1 = 100017 [07:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 44 21.10.2024 07:50 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69654 ФПД: 112132760255372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69654&fm=112132760255372&tin=02508201610067®Number=0000000000156251&sum=100000 [07:50:33]StoreToDocumentArchive [07:50:33]shift 194 fd 69654 [07:50:33]save to /storage/0194/doc_00069654 [07:50:33]save last doc name /storage/0194/doc_00069654 to /storage/kkm_last_doc_name [07:50:33]save OK [07:50:33]Clear old archive folders... [07:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:33]tlvbuf is 00C3B850 [07:50:33]SAM_PROTO_ClearQueue [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 09 00 00 [07:50:33]Write to MH i2c: E2 08 00 06 0F 80 09 00 00 00 00 00 00 87 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_ClearQueue done [07:50:33]KKMCreateOFDPacket [07:50:33]OFDProtocolAddRootSTLVToBuf [07:50:33]FM_MakeSignedData [07:50:33]FM_MakeSignedData [07:50:33]SAM_PROTO_SignData [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 01 02 [07:50:33]Write to MH i2c: E2 08 00 07 0F 80 0D 01 02 00 00 00 00 8F [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=255 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CA 07 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 10 01 00 35 04 06 00 65 [07:50:33]Write to MH i2c: E2 02 01 08 0F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CA 07 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 10 01 00 35 04 06 00 65 00 00 DA [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=10 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 02 02 05 FB F1 57 BB 8C [07:50:33]Write to MH i2c: E2 0D 00 09 0F 80 0D 02 02 05 00 FB F1 57 BB 8C 00 00 26 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [07:50:33]RAPDU: 90 00 [07:50:33]wFMCommunicate OK [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 0D 03 02 [07:50:33]Write to MH i2c: E2 08 00 0A 0F 80 0D 03 02 00 00 00 00 94 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 0B 00 0A 0F 00 AC 82 68 5E D3 39 7B 97 90 00 A7 [07:50:33]RAPDU: AC 82 68 5E D3 39 7B 97 90 00 [07:50:33]wFMCommunicate OK [07:50:33]SAM_PROTO_SignData done [07:50:33]FM_MakeSignedData done [07:50:33]CreateOFDProtocolMessage [07:50:33]wFMCommunicate request_size=4 [07:50:33]MH_SAM_APDU [07:50:33]CAPDU: 80 11 00 00 [07:50:33]Write to MH i2c: E2 08 00 0B 0F 80 11 00 00 00 00 00 00 94 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:33]Read from MH i2c: E2 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: E2 17 00 0B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [07:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:50:33]wFMCommunicate OK [07:50:33]CreateOFDProtocolMessage done [07:50:33]OFDSenderStorePacket 69654 [07:50:33]StoreOFDPacket docnum=69654 [07:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 3F 07 01 CC 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CA 07 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 10 01 00 35 04 06 00 65 FB F1 57 BB 8C AC 82 68 5E D3 39 7B 97 [07:50:33]CheckFolder [07:50:33]dirname=/storage/ofd_packets [07:50:33]CheckFolder done [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00069654 [07:50:33]NVStorageSaveData ofd_packets/00069654 [07:50:33]File name is /storage/ofd_packets/00069654 [07:50:33]Write 301 bytes [07:50:33]NVStorageSaveData done [07:50:33]OFDSenderStorePacket done [07:50:33]KKMCreateOFDPacket done [07:50:33]NVStorageSaveData kkm_last_timestamp [07:50:33]File name is /storage/kkm_last_timestamp [07:50:33]Write 4 bytes [07:50:33]NVStorageSaveData done [07:50:33]ExternCall_PrintAddStr [07:50:33]wPrintStart [07:50:33]Write to MH i2c: 01 00 00 0C 0F 1B [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [07:50:33]RasterBufferAndPrint [07:50:33]line Счет N : (1)2885391 [07:50:33]line ИНН: 02508201610067 [07:50:33]line Контрольно-Кассовый Чек [07:50:33]line ПРОДАЖА [07:50:33]line ТРК (МРК, ГНК) : 42 [07:50:33]line Товар: 2710124130 [07:50:33]line Аи-92-К-5 [07:50:33]line 14.950 * 66.90 [07:50:33]line = 1000.16 [07:50:33]line НДС 12% НСП 1% [07:50:33]line > о реализуемом товаре [07:50:33]line ОКРУГЛЕНИЕ: -0.16 [07:50:33]line ИТОГО: 1000.00 [07:50:33]line Внесено: 1000.00 [07:50:33]line СДАЧА: 0.00 [07:50:33]line НСП 1% : 8.85 [07:50:33]line НДС 12% : 106.21 [07:50:33]line Наличными: 1000.00 [07:50:33]line Безнал.: 0.00 [07:50:33]line Место: АЗС № 85 "Партнер Нефть" [07:50:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:50:33]line СНО: Общий режим [07:50:33]line Чек 44 21.10.2024 07:50 [07:50:33]line Смена: 194 ФФД: 1.0 [07:50:33]line ЗНМ: 0300000167 [07:50:33]line РНМ: 0000000000156251 [07:50:33]line Версия ККМ: v1.0 [07:50:33]line ФМ: 0000000000963346 [07:50:33]line ФД: 69654 [07:50:33]line ФПД: 112132760255372 [07:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69654&fm=112132760255372&tin=02508201610067®Number=0000000000156251&sum=100000 [07:50:33]OFD Sender: Processing packet 69654 [packets to send 18, broken 17] [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00069654 [07:50:33]OFD Sender: To server: pG, [07:50:33]CommunicateWithHost lk.salyk.kg:30040 [07:50:33]ConnectInit lk.salyk.kg [07:50:33]written 0, free lines is 4095 [07:50:34]Connected sock=10 [07:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 3F 07 01 CC 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CA 07 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 10 01 00 35 04 06 00 65 FB F1 57 BB 8C AC 82 68 5E D3 39 7B 97 [07:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 28 5B 47 00 C3 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 10 01 00 F4 03 04 00 6E B1 15 67 B6 04 01 00 00 DF 57 A9 1B 20 10 BC E7 [07:50:34]CommunicateWithHost err = 0 [07:50:34]CheckOFDResponse [07:50:34]1017 (14) - 77093643461234 [07:50:34]1041 (16) - 0000000000963346 [07:50:34]1040 (4) - 69654 [07:50:34]1012 (4) - 21.10.2024 01:42 [07:50:34]1206 (1) - 0 [07:50:34]OFD Sender: Remove packet 69654 [07:50:34]ProducePacketName [07:50:34]name=ofd_packets/00069654 [07:50:34]NVStorageDeleteData [07:50:34]Write to MH i2c: 01 00 00 37 0F 46 [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 ED 0C 46 [07:50:34]RasterBufferAndPrint [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]line [07:50:34]written 0, free lines is 3315 [07:50:34]MH_Cut [07:50:34]Write to MH i2c: D1 01 00 3E 0F 01 1F [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: D1 01 00 3E 0F 00 1E [07:50:34]Write to MH i2c: 01 00 00 3F 0F 4E [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]OFD Sender: No OFD packet to send [07:50:35]*** Cut start [07:50:35]*** Partial cut [07:50:35]*** CUTSNS_PIN = 1 [07:50:35]*** CUTSNS_PIN = 0 [07:50:35]*** Brake cut motor [07:50:35]Read from MH i2c: 01 [07:50:35]MH_I2C_Read... [07:50:35]*** Stop cut motor [07:50:35]*** Cut end [07:50:35]Read from MH i2c: 01 07 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: 01 07 00 3F 0F 00 00 00 00 00 FF 0F 63 [07:50:35]process_action close_receipt done [07:50:35]requested_data is exist [07:50:35]produce_requested_data [07:50:35]requested_item fm.sn is exist - process it [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 11 00 00 [07:50:35]Write to MH i2c: E2 08 00 40 0F 80 11 00 00 00 00 00 00 C9 [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 17 00 40 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [07:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:50:35]wFMCommunicate OK [07:50:35]requested_item fd.num is exist - process it [07:50:35]SAM_PROTO_GetFieldsCounters [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 00 00 [07:50:35]Write to MH i2c: E2 08 00 41 0F 80 13 00 00 00 00 00 00 CC [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 62 00 41 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [07:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetFieldsCounters done [07:50:35]requested_item shift.num is exist - process it [07:50:35]requested_item shift.opened is exist - process it [07:50:35]req_shift_opened [07:50:35]FM_GetShiftState [07:50:35]SAM_PROTO_GetShiftState [07:50:35]wFMCommunicate request_size=4 [07:50:35]MH_SAM_APDU [07:50:35]CAPDU: 80 13 01 00 [07:50:35]Write to MH i2c: E2 08 00 42 0F 80 13 01 00 00 00 00 00 CE [07:50:35]Write i2c OK [07:50:35]MH_I2C_Read... [07:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:35]Read from MH i2c: E2 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 [07:50:35]MH_I2C_Read... [07:50:35]Read from MH i2c: E2 0E 00 42 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FA [07:50:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:50:35]wFMCommunicate OK [07:50:35]SAM_PROTO_GetShiftState done [07:50:35]FM_GetShiftState done [07:50:35]req_shift_opened done [07:50:35]requested_item shift.open_date is exist - process it [07:50:35]req_shift_open_date [07:50:35]req_shift_open_date done [07:50:35]produce_requested_data done [07:50:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69654,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:50:35]process_action_free close_receipt [07:50:35]json_value_free [07:50:35]json_value_free done [07:50:35]process_json_proto returns [07:50:35]Send response to host [07:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69654,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:50:35]free response buf [07:50:35]execute_script done [07:50:35]execute_script returns [07:50:35]free content buf [07:50:35]Sock 8.Close socket [07:50:35]Sock 8.Thread stoped [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:08]accept exits with 9 [07:57:08]New connection [07:57:08]New thread 3067313508 created [07:57:08]Thread 3067456868 joined [07:57:08]Waiting for new connection... [07:57:08] Sock 9.Parse request [07:57:08]Sock 9.Check first char [07:57:08]Sock 9.First char is OK [07:57:08]request: POST /json_proto HTTP/1.0 [07:57:08]Method: POST [07:57:08]URL: /json_proto [07:57:08]Method is POST - this is cgi request [07:57:08]url: /json_proto [07:57:08]query_string will be loaded in cgi processing [07:57:08]execute_cgi json_proto POST (null) [07:57:08]execute_cgi path=json_proto method=POST [07:57:08]POST find Content-Length [07:57:08]Host: 172.17.50.3:8080 [07:57:08]Content-Length: 678 [07:57:08]Content-Type: application/json [07:57:08] [07:57:08]POST finish read [07:57:08]Found Content-Length = 678 [07:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885392", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:08]execute_script... [07:57: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)2885392", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:08]POST & json_proto [07:57:08]process_json_proto [07:57:08]json parsed OK: [07:57:08]protocol is kg_v1.0 [07:57:08]action value=close_receipt [07:57:08]process_action close_receipt [07:57:08]cmd_close_receipt [07:57:08]MH_GetDate [07:57:08]Write to MH i2c: F0 00 00 43 0F 41 [07:57:08]Write i2c OK [07:57:08]MH_I2C_Read... [07:57:08]Read from MH i2c: F0 [07:57:08]MH_I2C_Read... [07:57:08]Read from MH i2c: F0 09 00 [07:57:08]MH_I2C_Read... [07:57:08]Read from MH i2c: F0 09 00 43 0F 00 57 09 16 67 6B 98 1E 66 AE [07:57:08]GetLastDocTimeStamp 1729497034 [07:57:08]current date 1729497431 [07:57:08]FM_GetShiftState [07:57:08]SAM_PROTO_GetShiftState [07:57:08]wFMCommunicate request_size=4 [07:57:08]MH_SAM_APDU [07:57:08]CAPDU: 80 13 01 00 [07:57:08]Write to MH i2c: E2 08 00 44 0F 80 13 01 00 00 00 00 00 D0 [07:57:08]Write i2c OK [07:57:08]MH_I2C_Read... [07:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:08]Read from MH i2c: E2 [07:57:08]MH_I2C_Read... [07:57:08]Read from MH i2c: E2 0E 00 [07:57:08]MH_I2C_Read... [07:57:08]Read from MH i2c: E2 0E 00 44 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FC [07:57:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:57:08]wFMCommunicate OK [07:57:08]SAM_PROTO_GetShiftState done [07:57:08]FM_GetShiftState done [07:57:08]opened in 1729469703 [07:57:08]opened+sec_in_day 1729556103 [07:57:08]quantity*price = 30038 [07:57:08]sum+1 = 30039 [07:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 45 21.10.2024 07:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69655 ФПД: 133551654371156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075711&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69655&fm=133551654371156&tin=02508201610067®Number=0000000000156251&sum=30000 [07:57:09]StoreToDocumentArchive [07:57:09]shift 194 fd 69655 [07:57:09]save to /storage/0194/doc_00069655 [07:57:09]save last doc name /storage/0194/doc_00069655 to /storage/kkm_last_doc_name [07:57:09]save OK [07:57:09]Clear old archive folders... [07:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:09]tlvbuf is 00C5AD60 [07:57:09]SAM_PROTO_ClearQueue [07:57:09]wFMCommunicate request_size=4 [07:57:09]MH_SAM_APDU [07:57:09]CAPDU: 80 09 00 00 [07:57:09]Write to MH i2c: E2 08 00 51 0F 80 09 00 00 00 00 00 00 D2 [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:09]Read from MH i2c: E2 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 03 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [07:57:09]RAPDU: 90 00 [07:57:09]wFMCommunicate OK [07:57:09]SAM_PROTO_ClearQueue done [07:57:09]KKMCreateOFDPacket [07:57:09]OFDProtocolAddRootSTLVToBuf [07:57:09]FM_MakeSignedData [07:57:09]FM_MakeSignedData [07:57:09]SAM_PROTO_SignData [07:57:09]wFMCommunicate request_size=4 [07:57:09]MH_SAM_APDU [07:57:09]CAPDU: 80 0D 01 02 [07:57:09]Write to MH i2c: E2 08 00 52 0F 80 0D 01 02 00 00 00 00 DA [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:09]Read from MH i2c: E2 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 03 00 [07:57:09]MH_I2C_Read... [07:57:09]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [07:57:09]RAPDU: 90 00 [07:57:09]wFMCommunicate OK [07:57:09]wFMCommunicate request_size=255 [07:57:09]MH_SAM_APDU [07:57:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 57 09 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 10 01 00 35 04 06 00 79 [07:57:09]Write to MH i2c: E2 02 01 53 0F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 57 09 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 10 01 00 35 04 06 00 79 00 00 C4 [07:57:09]Write i2c OK [07:57:09]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]wFMCommunicate request_size=10 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 02 02 05 76 EA EA FF 54 [07:57:10]Write to MH i2c: E2 0D 00 54 0F 80 0D 02 02 05 00 76 EA EA FF 54 00 00 84 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]OFD Sender: No OFD packet to send [07:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [07:57:10]RAPDU: 90 00 [07:57:10]wFMCommunicate OK [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 0D 03 02 [07:57:10]Write to MH i2c: E2 08 00 55 0F 80 0D 03 02 00 00 00 00 DF [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 0B 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 0B 00 55 0F 00 3D 03 58 34 48 53 15 27 90 00 83 [07:57:10]RAPDU: 3D 03 58 34 48 53 15 27 90 00 [07:57:10]wFMCommunicate OK [07:57:10]SAM_PROTO_SignData done [07:57:10]FM_MakeSignedData done [07:57:10]CreateOFDProtocolMessage [07:57:10]wFMCommunicate request_size=4 [07:57:10]MH_SAM_APDU [07:57:10]CAPDU: 80 11 00 00 [07:57:10]Write to MH i2c: E2 08 00 56 0F 80 11 00 00 00 00 00 00 DF [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:10]Read from MH i2c: E2 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 17 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: E2 17 00 56 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [07:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:57:10]wFMCommunicate OK [07:57:10]CreateOFDProtocolMessage done [07:57:10]OFDSenderStorePacket 69655 [07:57:10]StoreOFDPacket docnum=69655 [07:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 32 07 01 66 DE 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 57 09 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 10 01 00 35 04 06 00 79 76 EA EA FF 54 3D 03 58 34 48 53 15 27 [07:57:10]CheckFolder [07:57:10]dirname=/storage/ofd_packets [07:57:10]CheckFolder done [07:57:10]ProducePacketName [07:57:10]name=ofd_packets/00069655 [07:57:10]NVStorageSaveData ofd_packets/00069655 [07:57:10]File name is /storage/ofd_packets/00069655 [07:57:10]Write 301 bytes [07:57:10]NVStorageSaveData done [07:57:10]OFDSenderStorePacket done [07:57:10]KKMCreateOFDPacket done [07:57:10]NVStorageSaveData kkm_last_timestamp [07:57:10]File name is /storage/kkm_last_timestamp [07:57:10]Write 4 bytes [07:57:10]NVStorageSaveData done [07:57:10]ExternCall_PrintAddStr [07:57:10]wPrintStart [07:57:10]Write to MH i2c: 01 00 00 57 0F 66 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 FF 0F 7B [07:57:10]RasterBufferAndPrint [07:57:10]line Счет N : (1)2885392 [07:57:10]line ИНН: 02508201610067 [07:57:10]line Контрольно-Кассовый Чек [07:57:10]line ПРОДАЖА [07:57:10]line ТРК (МРК, ГНК) : 32 [07:57:10]line Товар: 2710124130 [07:57:10]line Аи-92-К-5 [07:57:10]line 4.490 * 66.90 [07:57:10]line = 300.38 [07:57:10]line НДС 12% НСП 1% [07:57:10]line > о реализуемом товаре [07:57:10]line ОКРУГЛЕНИЕ: -0.38 [07:57:10]line ИТОГО: 300.00 [07:57:10]line Внесено: 300.00 [07:57:10]line СДАЧА: 0.00 [07:57:10]line НСП 1% : 2.66 [07:57:10]line НДС 12% : 31.90 [07:57:10]line Наличными: 300.00 [07:57:10]line Безнал.: 0.00 [07:57:10]line Место: АЗС № 85 "Партнер Нефть" [07:57:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:57:10]line СНО: Общий режим [07:57:10]line Чек 45 21.10.2024 07:57 [07:57:10]line Смена: 194 ФФД: 1.0 [07:57:10]line ЗНМ: 0300000167 [07:57:10]line РНМ: 0000000000156251 [07:57:10]line Версия ККМ: v1.0 [07:57:10]line ФМ: 0000000000963346 [07:57:10]line ФД: 69655 [07:57:10]line ФПД: 133551654371156 [07:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075711&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69655&fm=133551654371156&tin=02508201610067®Number=0000000000156251&sum=30000 [07:57:10]OFD Sender: Processing packet 69655 [packets to send 18, broken 17] [07:57:10]ProducePacketName [07:57:10]name=ofd_packets/00069655 [07:57:10]OFD Sender: To server: pG, [07:57:10]CommunicateWithHost lk.salyk.kg:30040 [07:57:10]ConnectInit lk.salyk.kg [07:57:10]written 0, free lines is 4095 [07:57:10]Connected sock=10 [07:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 32 07 01 66 DE 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 57 09 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 10 01 00 35 04 06 00 79 76 EA EA FF 54 3D 03 58 34 48 53 15 27 [07:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1B 0E 47 00 D7 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 39 36 33 33 34 36 10 04 04 00 17 10 01 00 F4 03 04 00 FB B2 15 67 B6 04 01 00 00 8B BF 27 EA F1 EB 24 9B [07:57:10]CommunicateWithHost err = 0 [07:57:10]CheckOFDResponse [07:57:10]1017 (14) - 77093643461234 [07:57:10]1041 (16) - 0000000000963346 [07:57:10]1040 (4) - 69655 [07:57:10]1012 (4) - 21.10.2024 01:48 [07:57:10]1206 (1) - 0 [07:57:10]OFD Sender: Remove packet 69655 [07:57:10]ProducePacketName [07:57:10]name=ofd_packets/00069655 [07:57:10]NVStorageDeleteData [07:57:10]Write to MH i2c: 01 00 00 82 0F 91 [07:57:10]Write i2c OK [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 [07:57:10]MH_I2C_Read... [07:57:10]Read from MH i2c: 01 07 00 82 0F 00 00 00 00 00 E4 0C 88 [07:57:10]RasterBufferAndPrint [07:57:10]line [07:57:10]line [07:57:10]line [07:57:10]line [07:57:10]line [07:57:10]written 0, free lines is 3306 [07:57:10]MH_Cut [07:57:10]Write to MH i2c: D1 01 00 89 0F 01 6A [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 01 00 [07:57:11]MH_I2C_Read... [07:57:11]Read from MH i2c: D1 01 00 89 0F 00 69 [07:57:11]Write to MH i2c: 01 00 00 8A 0F 99 [07:57:11]Write i2c OK [07:57:11]MH_I2C_Read... [07:57:11]OFD Sender: No OFD packet to send [07:57:11]*** Cut start [07:57:11]*** Partial cut [07:57:11]*** CUTSNS_PIN = 1 [07:57:11]*** CUTSNS_PIN = 0 [07:57:11]*** Brake cut motor [07:57:12]Read from MH i2c: 01 [07:57:12]MH_I2C_Read... [07:57:12]*** Stop cut motor [07:57:12]*** Cut end [07:57:12]Read from MH i2c: 01 07 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 FF 0F AE [07:57:12]process_action close_receipt done [07:57:12]requested_data is exist [07:57:12]produce_requested_data [07:57:12]requested_item fm.sn is exist - process it [07:57:12]wFMCommunicate request_size=4 [07:57:12]MH_SAM_APDU [07:57:12]CAPDU: 80 11 00 00 [07:57:12]Write to MH i2c: E2 08 00 8B 0F 80 11 00 00 00 00 00 00 14 [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:12]Read from MH i2c: E2 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 17 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 17 00 8B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [07:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:57:12]wFMCommunicate OK [07:57:12]requested_item fd.num is exist - process it [07:57:12]SAM_PROTO_GetFieldsCounters [07:57:12]wFMCommunicate request_size=4 [07:57:12]MH_SAM_APDU [07:57:12]CAPDU: 80 13 00 00 [07:57:12]Write to MH i2c: E2 08 00 8C 0F 80 13 00 00 00 00 00 00 17 [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:12]Read from MH i2c: E2 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 62 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 62 00 8C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 10 01 00 0E 04 04 00 C2 00 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 A3 [07:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 10 01 00 0E 04 04 00 C2 00 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 [07:57:12]wFMCommunicate OK [07:57:12]SAM_PROTO_GetFieldsCounters done [07:57:12]requested_item shift.num is exist - process it [07:57:12]requested_item shift.opened is exist - process it [07:57:12]req_shift_opened [07:57:12]FM_GetShiftState [07:57:12]SAM_PROTO_GetShiftState [07:57:12]wFMCommunicate request_size=4 [07:57:12]MH_SAM_APDU [07:57:12]CAPDU: 80 13 01 00 [07:57:12]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [07:57:12]Write i2c OK [07:57:12]MH_I2C_Read... [07:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:12]Read from MH i2c: E2 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 0E 00 [07:57:12]MH_I2C_Read... [07:57:12]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 45 [07:57:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [07:57:12]wFMCommunicate OK [07:57:12]SAM_PROTO_GetShiftState done [07:57:12]FM_GetShiftState done [07:57:12]req_shift_opened done [07:57:12]requested_item shift.open_date is exist - process it [07:57:12]req_shift_open_date [07:57:12]req_shift_open_date done [07:57:12]produce_requested_data done [07:57:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69655,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [07:57:12]process_action_free close_receipt [07:57:12]json_value_free [07:57:12]json_value_free done [07:57:12]process_json_proto returns [07:57:12]Send response to host [07:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69655,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [07:57:12]free response buf [07:57:12]execute_script done [07:57:12]execute_script returns [07:57:12]free content buf [07:57:12]Sock 9.Close socket [07:57:12]Sock 9.Thread stoped [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:27]accept exits with 8 [08:08:27]New connection [08:08:27]New thread 3067456868 created [08:08:27]Thread 3067313508 joined [08:08:27]Waiting for new connection... [08:08:27] Sock 8.Parse request [08:08:27]Sock 8.Check first char [08:08:27]Sock 8.First char is OK [08:08:27]request: POST /json_proto HTTP/1.0 [08:08:27]Method: POST [08:08:27]URL: /json_proto [08:08:27]Method is POST - this is cgi request [08:08:27]url: /json_proto [08:08:27]query_string will be loaded in cgi processing [08:08:27]execute_cgi json_proto POST (null) [08:08:27]execute_cgi path=json_proto method=POST [08:08:27]POST find Content-Length [08:08:27]Host: 172.17.50.3:8080 [08:08:27]Content-Length: 682 [08:08:27]Content-Type: application/json [08:08:27] [08:08:27]POST finish read [08:08:27]Found Content-Length = 682 [08:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [08:08:27]execute_script... [08:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [08:08:27]POST & json_proto [08:08:27]process_json_proto [08:08:27]json parsed OK: [08:08:27]protocol is kg_v1.0 [08:08:27]action value=close_receipt [08:08:27]process_action close_receipt [08:08:27]cmd_close_receipt [08:08:27]MH_GetDate [08:08:27]Write to MH i2c: F0 00 00 8E 0F 8C [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 09 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: F0 09 00 8E 0F 00 FE 0B 16 67 6B 98 1E 66 A2 [08:08:27]GetLastDocTimeStamp 1729497431 [08:08:27]current date 1729498110 [08:08:27]FM_GetShiftState [08:08:27]SAM_PROTO_GetShiftState [08:08:27]wFMCommunicate request_size=4 [08:08:27]MH_SAM_APDU [08:08:27]CAPDU: 80 13 01 00 [08:08:27]Write to MH i2c: E2 08 00 8F 0F 80 13 01 00 00 00 00 00 1B [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:27]Read from MH i2c: E2 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 0E 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 0E 00 8F 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 47 [08:08:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:08:27]wFMCommunicate OK [08:08:27]SAM_PROTO_GetShiftState done [08:08:27]FM_GetShiftState done [08:08:27]opened in 1729469703 [08:08:27]opened+sec_in_day 1729556103 [08:08:27]quantity*price = 70020 [08:08:27]sum+1 = 70021 [08:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 46 21.10.2024 08:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69656 ФПД: 162390556492502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69656&fm=162390556492502&tin=02508201610067®Number=0000000000156251&sum=70000 [08:08:28]StoreToDocumentArchive [08:08:28]shift 194 fd 69656 [08:08:28]save to /storage/0194/doc_00069656 [08:08:28]save last doc name /storage/0194/doc_00069656 to /storage/kkm_last_doc_name [08:08:28]save OK [08:08:28]Clear old archive folders... [08:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:08:28]tlvbuf is 00C3B1D0 [08:08:28]SAM_PROTO_ClearQueue [08:08:28]wFMCommunicate request_size=4 [08:08:28]MH_SAM_APDU [08:08:28]CAPDU: 80 09 00 00 [08:08:28]Write to MH i2c: E2 08 00 9C 0F 80 09 00 00 00 00 00 00 1D [08:08:28]Write i2c OK [08:08:28]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]SAM_PROTO_ClearQueue done [08:08:29]KKMCreateOFDPacket [08:08:29]OFDProtocolAddRootSTLVToBuf [08:08:29]FM_MakeSignedData [08:08:29]FM_MakeSignedData [08:08:29]SAM_PROTO_SignData [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 01 02 [08:08:29]Write to MH i2c: E2 08 00 9D 0F 80 0D 01 02 00 00 00 00 25 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=255 [08:08:29]MH_SAM_APDU [08:08:29]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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 2E 00 00 00 F4 03 04 00 FE 0B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 10 01 00 35 04 06 00 93 B1 [08:08:29]Write to MH i2c: E2 02 01 9E 0F 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 2E 00 00 00 F4 03 04 00 FE 0B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 10 01 00 35 04 06 00 93 B1 00 00 C2 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=9 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 02 02 04 7F 6F 42 D6 [08:08:29]Write to MH i2c: E2 0C 00 9F 0F 80 0D 02 02 04 00 7F 6F 42 D6 00 00 36 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [08:08:29]RAPDU: 90 00 [08:08:29]wFMCommunicate OK [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 0D 03 02 [08:08:29]Write to MH i2c: E2 08 00 A0 0F 80 0D 03 02 00 00 00 00 2A [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 0B 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 0B 00 A0 0F 00 00 FC 5C 0B 1D 6F 0A 00 90 00 24 [08:08:29]RAPDU: 00 FC 5C 0B 1D 6F 0A 00 90 00 [08:08:29]wFMCommunicate OK [08:08:29]SAM_PROTO_SignData done [08:08:29]FM_MakeSignedData done [08:08:29]CreateOFDProtocolMessage [08:08:29]wFMCommunicate request_size=4 [08:08:29]MH_SAM_APDU [08:08:29]CAPDU: 80 11 00 00 [08:08:29]Write to MH i2c: E2 08 00 A1 0F 80 11 00 00 00 00 00 00 2A [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:29]Read from MH i2c: E2 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 17 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: E2 17 00 A1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [08:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:08:29]wFMCommunicate OK [08:08:29]CreateOFDProtocolMessage done [08:08:29]OFDSenderStorePacket 69656 [08:08:29]StoreOFDPacket docnum=69656 [08:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 65 D4 06 01 2C 66 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 2E 00 00 00 F4 03 04 00 FE 0B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 10 01 00 35 04 06 00 93 B1 7F 6F 42 D6 00 FC 5C 0B 1D 6F 0A 00 [08:08:29]CheckFolder [08:08:29]dirname=/storage/ofd_packets [08:08:29]CheckFolder done [08:08:29]ProducePacketName [08:08:29]name=ofd_packets/00069656 [08:08:29]NVStorageSaveData ofd_packets/00069656 [08:08:29]File name is /storage/ofd_packets/00069656 [08:08:29]Write 300 bytes [08:08:29]NVStorageSaveData done [08:08:29]OFDSenderStorePacket done [08:08:29]KKMCreateOFDPacket done [08:08:29]NVStorageSaveData kkm_last_timestamp [08:08:29]File name is /storage/kkm_last_timestamp [08:08:29]Write 4 bytes [08:08:29]NVStorageSaveData done [08:08:29]ExternCall_PrintAddStr [08:08:29]wPrintStart [08:08:29]Write to MH i2c: 01 00 00 A2 0F B1 [08:08:29]Write i2c OK [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 07 00 [08:08:29]MH_I2C_Read... [08:08:29]Read from MH i2c: 01 07 00 A2 0F 00 00 00 00 00 FF 0F C6 [08:08:29]RasterBufferAndPrint [08:08:29]line Счет N : (1)2885393 [08:08:29]line ИНН: 02508201610067 [08:08:29]line Контрольно-Кассовый Чек [08:08:29]line ПРОДАЖА [08:08:29]line ТРК (МРК, ГНК) : 71 [08:08:29]line Товар: 2711129700 [08:08:29]line ГАЗ-К-3 [08:08:29]line 18.000 * 38.90 [08:08:29]line = 700.20 [08:08:29]line НДС 12% НСП 1% [08:08:29]line > о реализуемом товаре [08:08:29]line ОКРУГЛЕНИЕ: -0.20 [08:08:29]line ИТОГО: 700.00 [08:08:29]line Внесено: 700.00 [08:08:29]line СДАЧА: 0.00 [08:08:29]line НСП 1% : 6.20 [08:08:29]line НДС 12% : 74.36 [08:08:29]line Наличными: 700.00 [08:08:29]line Безнал.: 0.00 [08:08:29]line Место: АЗС № 85 "Партнер Нефть" [08:08:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:08:29]line СНО: Общий режим [08:08:29]line Чек 46 21.10.2024 08:08 [08:08:29]line Смена: 194 ФФД: 1.0 [08:08:29]line ЗНМ: 0300000167 [08:08:29]line РНМ: 0000000000156251 [08:08:29]line Версия ККМ: v1.0 [08:08:29]line ФМ: 0000000000963346 [08:08:29]line ФД: 69656 [08:08:29]line ФПД: 162390556492502 [08:08:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69656&fm=162390556492502&tin=02508201610067®Number=0000000000156251&sum=70000 [08:08:29]OFD Sender: Processing packet 69656 [packets to send 18, broken 17] [08:08:29]ProducePacketName [08:08:29]name=ofd_packets/00069656 [08:08:29]OFD Sender: To server: pG, [08:08:29]CommunicateWithHost lk.salyk.kg:30040 [08:08:29]ConnectInit lk.salyk.kg [08:08:29]written 0, free lines is 4095 [08:08:29]Connected sock=10 [08:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 65 D4 06 01 2C 66 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 2E 00 00 00 F4 03 04 00 FE 0B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 10 01 00 35 04 06 00 93 B1 7F 6F 42 D6 00 FC 5C 0B 1D 6F 0A 00 [08:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AA 70 47 00 C5 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 10 01 00 F4 03 04 00 A2 B5 15 67 B6 04 01 00 00 73 00 F2 DE B8 9E A0 5A [08:08:30]CommunicateWithHost err = 0 [08:08:30]CheckOFDResponse [08:08:30]1017 (14) - 77093643461234 [08:08:30]1041 (16) - 0000000000963346 [08:08:30]1040 (4) - 69656 [08:08:30]1012 (4) - 21.10.2024 02:00 [08:08:30]1206 (1) - 0 [08:08:30]OFD Sender: Remove packet 69656 [08:08:30]ProducePacketName [08:08:30]name=ofd_packets/00069656 [08:08:30]NVStorageDeleteData [08:08:30]Write to MH i2c: 01 00 00 CD 0F DC [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 07 00 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 EF 0C DE [08:08:30]RasterBufferAndPrint [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]line [08:08:30]written 0, free lines is 3317 [08:08:30]MH_Cut [08:08:30]Write to MH i2c: D1 01 00 D4 0F 01 B5 [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 01 00 [08:08:30]MH_I2C_Read... [08:08:30]Read from MH i2c: D1 01 00 D4 0F 00 B4 [08:08:30]Write to MH i2c: 01 00 00 D5 0F E4 [08:08:30]Write i2c OK [08:08:30]MH_I2C_Read... [08:08:30]OFD Sender: No OFD packet to send [08:08:31]*** Cut start [08:08:31]*** Partial cut [08:08:31]*** CUTSNS_PIN = 1 [08:08:31]*** CUTSNS_PIN = 0 [08:08:31]*** Brake cut motor [08:08:31]Read from MH i2c: 01 [08:08:31]MH_I2C_Read... [08:08:31]*** Stop cut motor [08:08:31]*** Cut end [08:08:31]Read from MH i2c: 01 07 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 FF 0F F9 [08:08:31]process_action close_receipt done [08:08:31]requested_data is exist [08:08:31]produce_requested_data [08:08:31]requested_item fm.sn is exist - process it [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 11 00 00 [08:08:31]Write to MH i2c: E2 08 00 D6 0F 80 11 00 00 00 00 00 00 5F [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:31]Read from MH i2c: E2 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 17 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 17 00 D6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [08:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:08:31]wFMCommunicate OK [08:08:31]requested_item fd.num is exist - process it [08:08:31]SAM_PROTO_GetFieldsCounters [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 13 00 00 [08:08:31]Write to MH i2c: E2 08 00 D7 0F 80 13 00 00 00 00 00 00 62 [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:31]Read from MH i2c: E2 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 62 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 62 00 D7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 10 01 00 0E 04 04 00 C2 00 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 F2 [08:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:31]wFMCommunicate OK [08:08:31]SAM_PROTO_GetFieldsCounters done [08:08:31]requested_item shift.num is exist - process it [08:08:31]requested_item shift.opened is exist - process it [08:08:31]req_shift_opened [08:08:31]FM_GetShiftState [08:08:31]SAM_PROTO_GetShiftState [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 13 01 00 [08:08:31]Write to MH i2c: E2 08 00 D8 0F 80 13 01 00 00 00 00 00 64 [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:31]Read from MH i2c: E2 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 0E 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 0E 00 D8 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 90 [08:08:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:08:31]wFMCommunicate OK [08:08:31]SAM_PROTO_GetShiftState done [08:08:31]FM_GetShiftState done [08:08:31]req_shift_opened done [08:08:31]requested_item shift.open_date is exist - process it [08:08:31]req_shift_open_date [08:08:31]req_shift_open_date done [08:08:31]produce_requested_data done [08:08:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69656,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:08:31]process_action_free close_receipt [08:08:31]json_value_free [08:08:31]json_value_free done [08:08:31]process_json_proto returns [08:08:31]Send response to host [08:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69656,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:08:31]free response buf [08:08:31]execute_script done [08:08:31]execute_script returns [08:08:31]free content buf [08:08:31]Sock 8.Close socket [08:08:31]Sock 8.Thread stoped [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:43]accept exits with 9 [08:09:43]New connection [08:09:43]New thread 3067313508 created [08:09:43]Thread 3067456868 joined [08:09:43]Waiting for new connection... [08:09:43] Sock 9.Parse request [08:09:43]Sock 9.Check first char [08:09:43]Sock 9.First char is OK [08:09:43]request: POST /json_proto HTTP/1.0 [08:09:43]Method: POST [08:09:43]URL: /json_proto [08:09:43]Method is POST - this is cgi request [08:09:43]url: /json_proto [08:09:43]query_string will be loaded in cgi processing [08:09:43]execute_cgi json_proto POST (null) [08:09:43]execute_cgi path=json_proto method=POST [08:09:43]POST find Content-Length [08:09:43]Host: 172.17.50.3:8080 [08:09:43]Content-Length: 680 [08:09:43]Content-Type: application/json [08:09:43] [08:09:43]POST finish read [08:09:43]Found Content-Length = 680 [08:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:09:43]execute_script... [08:09: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)2885394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:09:43]POST & json_proto [08:09:43]process_json_proto [08:09:43]json parsed OK: [08:09:43]protocol is kg_v1.0 [08:09:43]action value=close_receipt [08:09:43]process_action close_receipt [08:09:43]cmd_close_receipt [08:09:43]MH_GetDate [08:09:43]Write to MH i2c: F0 00 00 D9 0F D7 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 09 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: F0 09 00 D9 0F 00 4A 0C 16 67 6B 98 1E 66 3A [08:09:43]GetLastDocTimeStamp 1729498110 [08:09:43]current date 1729498186 [08:09:43]FM_GetShiftState [08:09:43]SAM_PROTO_GetShiftState [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 01 00 [08:09:43]Write to MH i2c: E2 08 00 DA 0F 80 13 01 00 00 00 00 00 66 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 DA 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 92 [08:09:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetShiftState done [08:09:43]FM_GetShiftState done [08:09:43]opened in 1729469703 [08:09:43]opened+sec_in_day 1729556103 [08:09:43]quantity*price = 100050 [08:09:43]sum+1 = 100052 [08:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 47 21.10.2024 08:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69657 ФПД: 171471897510767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69657&fm=171471897510767&tin=02508201610067®Number=0000000000156251&sum=100000 [08:09:44]StoreToDocumentArchive [08:09:44]shift 194 fd 69657 [08:09:44]save to /storage/0194/doc_00069657 [08:09:44]save last doc name /storage/0194/doc_00069657 to /storage/kkm_last_doc_name [08:09:44]save OK [08:09:44]Clear old archive folders... [08:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:09:44]tlvbuf is 00C6F200 [08:09:44]SAM_PROTO_ClearQueue [08:09:44]wFMCommunicate request_size=4 [08:09:44]MH_SAM_APDU [08:09:44]CAPDU: 80 09 00 00 [08:09:44]Write to MH i2c: E2 08 00 E7 0F 80 09 00 00 00 00 00 00 68 [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:44]Read from MH i2c: E2 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [08:09:44]RAPDU: 90 00 [08:09:44]wFMCommunicate OK [08:09:44]SAM_PROTO_ClearQueue done [08:09:44]KKMCreateOFDPacket [08:09:44]OFDProtocolAddRootSTLVToBuf [08:09:44]FM_MakeSignedData [08:09:44]FM_MakeSignedData [08:09:44]SAM_PROTO_SignData [08:09:44]wFMCommunicate request_size=4 [08:09:44]MH_SAM_APDU [08:09:44]CAPDU: 80 0D 01 02 [08:09:44]Write to MH i2c: E2 08 00 E8 0F 80 0D 01 02 00 00 00 00 70 [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:44]Read from MH i2c: E2 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 [08:09:44]MH_I2C_Read... [08:09:44]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [08:09:44]RAPDU: 90 00 [08:09:44]wFMCommunicate OK [08:09:44]wFMCommunicate request_size=255 [08:09:44]MH_SAM_APDU [08:09: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 32 31 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 2F 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 10 01 00 35 04 06 00 9B F3 E9 8A [08:09:44]Write to MH i2c: E2 02 01 E9 0F 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 32 31 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 2F 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 10 01 00 35 04 06 00 9B F3 E9 8A 00 00 DE [08:09:44]Write i2c OK [08:09:44]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [08:09:45]RAPDU: 90 00 [08:09:45]wFMCommunicate OK [08:09:45]wFMCommunicate request_size=7 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 0D 02 02 02 43 6F [08:09:45]Write to MH i2c: E2 0A 00 EA 0F 80 0D 02 02 02 00 43 6F 00 00 29 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [08:09:45]RAPDU: 90 00 [08:09:45]wFMCommunicate OK [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 0D 03 02 [08:09:45]Write to MH i2c: E2 08 00 EB 0F 80 0D 03 02 00 00 00 00 75 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0B 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 0B 00 EB 0F 00 75 73 DC B4 9C 5E 84 31 90 00 9D [08:09:45]RAPDU: 75 73 DC B4 9C 5E 84 31 90 00 [08:09:45]wFMCommunicate OK [08:09:45]SAM_PROTO_SignData done [08:09:45]FM_MakeSignedData done [08:09:45]CreateOFDProtocolMessage [08:09:45]wFMCommunicate request_size=4 [08:09:45]MH_SAM_APDU [08:09:45]CAPDU: 80 11 00 00 [08:09:45]Write to MH i2c: E2 08 00 EC 0F 80 11 00 00 00 00 00 00 75 [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:45]Read from MH i2c: E2 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: E2 17 00 EC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [08:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:09:45]wFMCommunicate OK [08:09:45]CreateOFDProtocolMessage done [08:09:45]OFDSenderStorePacket 69657 [08:09:45]StoreOFDPacket docnum=69657 [08:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 81 9E 04 01 04 FE 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 32 31 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 2F 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 10 01 00 35 04 06 00 9B F3 E9 8A 43 6F 75 73 DC B4 9C 5E 84 31 [08:09:45]CheckFolder [08:09:45]dirname=/storage/ofd_packets [08:09:45]CheckFolder done [08:09:45]ProducePacketName [08:09:45]name=ofd_packets/00069657 [08:09:45]NVStorageSaveData ofd_packets/00069657 [08:09:45]File name is /storage/ofd_packets/00069657 [08:09:45]Write 298 bytes [08:09:45]NVStorageSaveData done [08:09:45]OFDSenderStorePacket done [08:09:45]KKMCreateOFDPacket done [08:09:45]NVStorageSaveData kkm_last_timestamp [08:09:45]File name is /storage/kkm_last_timestamp [08:09:45]Write 4 bytes [08:09:45]NVStorageSaveData done [08:09:45]ExternCall_PrintAddStr [08:09:45]wPrintStart [08:09:45]Write to MH i2c: 01 00 00 ED 0F FC [08:09:45]Write i2c OK [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 07 00 [08:09:45]MH_I2C_Read... [08:09:45]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FF 0F 11 [08:09:45]RasterBufferAndPrint [08:09:45]line Счет N : (1)2885394 [08:09:45]line ИНН: 02508201610067 [08:09:45]line Контрольно-Кассовый Чек [08:09:45]line ПРОДАЖА [08:09:45]line ТРК (МРК, ГНК) : 51 [08:09:45]line Товар: 2710194210 [08:09:45]line ДТ-К-5 [08:09:45]line 13.130 * 76.20 [08:09:45]line = 1000.51 [08:09:45]line НДС 12% НСП 1% [08:09:45]line > о реализуемом товаре [08:09:45]line ОКРУГЛЕНИЕ: -0.51 [08:09:45]line ИТОГО: 1000.00 [08:09:45]line Внесено: 1000.00 [08:09:45]line СДАЧА: 0.00 [08:09:45]line НСП 1% : 8.85 [08:09:45]line НДС 12% : 106.25 [08:09:45]line Наличными: 1000.00 [08:09:45]line Безнал.: 0.00 [08:09:45]line Место: АЗС № 85 "Партнер Нефть" [08:09:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:09:45]line СНО: Общий режим [08:09:45]line Чек 47 21.10.2024 08:09 [08:09:45]line Смена: 194 ФФД: 1.0 [08:09:45]line ЗНМ: 0300000167 [08:09:45]line РНМ: 0000000000156251 [08:09:45]line Версия ККМ: v1.0 [08:09:45]line ФМ: 0000000000963346 [08:09:45]line ФД: 69657 [08:09:45]line ФПД: 171471897510767 [08:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69657&fm=171471897510767&tin=02508201610067®Number=0000000000156251&sum=100000 [08:09:45]OFD Sender: Processing packet 69657 [packets to send 18, broken 17] [08:09:45]ProducePacketName [08:09:45]name=ofd_packets/00069657 [08:09:45]OFD Sender: To server: pG, [08:09:45]CommunicateWithHost lk.salyk.kg:30040 [08:09:45]ConnectInit lk.salyk.kg [08:09:45]written 0, free lines is 4095 [08:09:45]Connected sock=10 [08:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 81 9E 04 01 04 FE 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 32 31 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 2F 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 10 01 00 35 04 06 00 9B F3 E9 8A 43 6F 75 73 DC B4 9C 5E 84 31 [08:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 74 47 00 FC 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 39 36 33 33 34 36 10 04 04 00 19 10 01 00 F4 03 04 00 EE B5 15 67 B6 04 01 00 00 16 31 46 3B B2 7D FB 3E [08:09:45]CommunicateWithHost err = 0 [08:09:45]CheckOFDResponse [08:09:45]1017 (14) - 77093643461234 [08:09:45]1041 (16) - 0000000000963346 [08:09:45]1040 (4) - 69657 [08:09:45]1012 (4) - 21.10.2024 02:01 [08:09:45]1206 (1) - 0 [08:09:45]OFD Sender: Remove packet 69657 [08:09:45]ProducePacketName [08:09:45]name=ofd_packets/00069657 [08:09:45]NVStorageDeleteData [08:09:46]Write to MH i2c: 01 00 00 18 10 28 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 07 00 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 EF 0C 2A [08:09:46]RasterBufferAndPrint [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]line [08:09:46]written 0, free lines is 3317 [08:09:46]MH_Cut [08:09:46]Write to MH i2c: D1 01 00 1F 10 01 01 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 01 00 [08:09:46]MH_I2C_Read... [08:09:46]Read from MH i2c: D1 01 00 1F 10 00 00 [08:09:46]Write to MH i2c: 01 00 00 20 10 30 [08:09:46]Write i2c OK [08:09:46]MH_I2C_Read... [08:09:46]OFD Sender: No OFD packet to send [08:09:46]*** Cut start [08:09:46]*** Partial cut [08:09:46]*** CUTSNS_PIN = 1 [08:09:46]*** CUTSNS_PIN = 0 [08:09:47]*** Brake cut motor [08:09:47]Read from MH i2c: 01 [08:09:47]MH_I2C_Read... [08:09:47]*** Stop cut motor [08:09:47]*** Cut end [08:09:47]Read from MH i2c: 01 07 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: 01 07 00 20 10 00 00 00 00 00 FF 0F 45 [08:09:47]process_action close_receipt done [08:09:47]requested_data is exist [08:09:47]produce_requested_data [08:09:47]requested_item fm.sn is exist - process it [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 11 00 00 [08:09:47]Write to MH i2c: E2 08 00 21 10 80 11 00 00 00 00 00 00 AB [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 17 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 17 00 21 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [08:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:09:47]wFMCommunicate OK [08:09:47]requested_item fd.num is exist - process it [08:09:47]SAM_PROTO_GetFieldsCounters [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 13 00 00 [08:09:47]Write to MH i2c: E2 08 00 22 10 80 13 00 00 00 00 00 00 AE [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 62 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 62 00 22 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 10 01 00 0E 04 04 00 C2 00 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 42 [08:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 10 01 00 0E 04 04 00 C2 00 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 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_GetFieldsCounters done [08:09:47]requested_item shift.num is exist - process it [08:09:47]requested_item shift.opened is exist - process it [08:09:47]req_shift_opened [08:09:47]FM_GetShiftState [08:09:47]SAM_PROTO_GetShiftState [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 13 01 00 [08:09:47]Write to MH i2c: E2 08 00 23 10 80 13 01 00 00 00 00 00 B0 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 23 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DC [08:09:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_GetShiftState done [08:09:47]FM_GetShiftState done [08:09:47]req_shift_opened done [08:09:47]requested_item shift.open_date is exist - process it [08:09:47]req_shift_open_date [08:09:47]req_shift_open_date done [08:09:47]produce_requested_data done [08:09:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69657,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:09:47]process_action_free close_receipt [08:09:47]json_value_free [08:09:47]json_value_free done [08:09:47]process_json_proto returns [08:09:47]Send response to host [08:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69657,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:09:47]free response buf [08:09:47]execute_script done [08:09:47]execute_script returns [08:09:47]free content buf [08:09:47]Sock 9.Close socket [08:09:47]Sock 9.Thread stoped [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:32]accept exits with 8 [08:12:32]New connection [08:12:32]New thread 3067456868 created [08:12:32]Thread 3067313508 joined [08:12:32]Waiting for new connection... [08:12:32] Sock 8.Parse request [08:12:32]Sock 8.Check first char [08:12:32]Sock 8.First char is OK [08:12:32]request: POST /json_proto HTTP/1.0 [08:12:32]Method: POST [08:12:32]URL: /json_proto [08:12:32]Method is POST - this is cgi request [08:12:32]url: /json_proto [08:12:32]query_string will be loaded in cgi processing [08:12:32]execute_cgi json_proto POST (null) [08:12:32]execute_cgi path=json_proto method=POST [08:12:32]POST find Content-Length [08:12:32]Host: 172.17.50.3:8080 [08:12:32]Content-Length: 683 [08:12:32]Content-Type: application/json [08:12:32] [08:12:32]POST finish read [08:12:32]Found Content-Length = 683 [08:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885396", "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" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:32]execute_script... [08:12: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)2885396", "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" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:32]POST & json_proto [08:12:32]process_json_proto [08:12:32]json parsed OK: [08:12:32]protocol is kg_v1.0 [08:12:32]action value=close_receipt [08:12:32]process_action close_receipt [08:12:32]cmd_close_receipt [08:12:32]MH_GetDate [08:12:32]Write to MH i2c: F0 00 00 24 10 23 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 09 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: F0 09 00 24 10 00 F3 0C 16 67 6B 98 1E 66 2F [08:12:32]GetLastDocTimeStamp 1729498186 [08:12:32]current date 1729498355 [08:12:32]FM_GetShiftState [08:12:32]SAM_PROTO_GetShiftState [08:12:32]wFMCommunicate request_size=4 [08:12:32]MH_SAM_APDU [08:12:32]CAPDU: 80 13 01 00 [08:12:32]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0E 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DE [08:12:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:12:32]wFMCommunicate OK [08:12:32]SAM_PROTO_GetShiftState done [08:12:32]FM_GetShiftState done [08:12:32]opened in 1729469703 [08:12:32]opened+sec_in_day 1729556103 [08:12:32]quantity*price = 130053 [08:12:32]sum+1 = 130055 [08:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 48 21.10.2024 08:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69658 ФПД: 253869172399579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69658&fm=253869172399579&tin=02508201610067®Number=0000000000156251&sum=130000 [08:12:33]StoreToDocumentArchive [08:12:33]shift 194 fd 69658 [08:12:33]save to /storage/0194/doc_00069658 [08:12:33]save last doc name /storage/0194/doc_00069658 to /storage/kkm_last_doc_name [08:12:33]save OK [08:12:33]Clear old archive folders... [08:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:33]tlvbuf is 00C7FCB0 [08:12:33]SAM_PROTO_ClearQueue [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 09 00 00 [08:12:33]Write to MH i2c: E2 08 00 32 10 80 09 00 00 00 00 00 00 B4 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [08:12:33]RAPDU: 90 00 [08:12:33]wFMCommunicate OK [08:12:33]SAM_PROTO_ClearQueue done [08:12:33]KKMCreateOFDPacket [08:12:33]OFDProtocolAddRootSTLVToBuf [08:12:33]FM_MakeSignedData [08:12:33]FM_MakeSignedData [08:12:33]SAM_PROTO_SignData [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 0D 01 02 [08:12:33]Write to MH i2c: E2 08 00 33 10 80 0D 01 02 00 00 00 00 BC [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [08:12:33]RAPDU: 90 00 [08:12:33]wFMCommunicate OK [08:12:33]wFMCommunicate request_size=255 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 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 F3 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 10 01 00 35 04 06 00 E6 [08:12:33]Write to MH i2c: E2 02 01 34 10 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 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 F3 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 10 01 00 35 04 06 00 E6 00 00 FC [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [08:12:33]RAPDU: 90 00 [08:12:33]wFMCommunicate OK [08:12:33]wFMCommunicate request_size=10 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 0D 02 02 05 E4 85 D7 1D DB [08:12:33]Write to MH i2c: E2 0D 00 35 10 80 0D 02 02 05 00 E4 85 D7 1D DB 00 00 01 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [08:12:33]RAPDU: 90 00 [08:12:33]wFMCommunicate OK [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 0D 03 02 [08:12:33]Write to MH i2c: E2 08 00 36 10 80 0D 03 02 00 00 00 00 C1 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 0B 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 0B 00 36 10 00 68 8E BB D9 94 8C DA 25 90 00 6B [08:12:33]RAPDU: 68 8E BB D9 94 8C DA 25 90 00 [08:12:33]wFMCommunicate OK [08:12:33]SAM_PROTO_SignData done [08:12:33]FM_MakeSignedData done [08:12:33]CreateOFDProtocolMessage [08:12:33]wFMCommunicate request_size=4 [08:12:33]MH_SAM_APDU [08:12:33]CAPDU: 80 11 00 00 [08:12:33]Write to MH i2c: E2 08 00 37 10 80 11 00 00 00 00 00 00 C1 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:33]Read from MH i2c: E2 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 17 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: E2 17 00 37 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [08:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:12:33]wFMCommunicate OK [08:12:33]CreateOFDProtocolMessage done [08:12:33]OFDSenderStorePacket 69658 [08:12:33]StoreOFDPacket docnum=69658 [08:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 5A 07 01 DC 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 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 F3 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 10 01 00 35 04 06 00 E6 E4 85 D7 1D DB 68 8E BB D9 94 8C DA 25 [08:12:33]CheckFolder [08:12:33]dirname=/storage/ofd_packets [08:12:33]CheckFolder done [08:12:33]ProducePacketName [08:12:33]name=ofd_packets/00069658 [08:12:33]NVStorageSaveData ofd_packets/00069658 [08:12:33]File name is /storage/ofd_packets/00069658 [08:12:33]Write 301 bytes [08:12:33]NVStorageSaveData done [08:12:33]OFDSenderStorePacket done [08:12:33]KKMCreateOFDPacket done [08:12:33]NVStorageSaveData kkm_last_timestamp [08:12:33]File name is /storage/kkm_last_timestamp [08:12:33]Write 4 bytes [08:12:33]NVStorageSaveData done [08:12:33]ExternCall_PrintAddStr [08:12:33]wPrintStart [08:12:33]Write to MH i2c: 01 00 00 38 10 48 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 07 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [08:12:33]RasterBufferAndPrint [08:12:33]line Счет N : (1)2885396 [08:12:33]line ИНН: 02508201610067 [08:12:33]line Контрольно-Кассовый Чек [08:12:33]line ПРОДАЖА [08:12:33]line ТРК (МРК, ГНК) : 32 [08:12:33]line Товар: 2710124130 [08:12:33]line Аи-92-К-5 [08:12:33]line 19.440 * 66.90 [08:12:33]line = 1300.54 [08:12:33]line НДС 12% НСП 1% [08:12:33]line > о реализуемом товаре [08:12:33]line ОКРУГЛЕНИЕ: -0.54 [08:12:33]line ИТОГО: 1300.00 [08:12:33]line Внесено: 1300.00 [08:12:33]line СДАЧА: 0.00 [08:12:33]line НСП 1% : 11.51 [08:12:33]line НДС 12% : 138.11 [08:12:33]line Наличными: 1300.00 [08:12:33]line Безнал.: 0.00 [08:12:33]line Место: АЗС № 85 "Партнер Нефть" [08:12:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:12:33]line СНО: Общий режим [08:12:33]line Чек 48 21.10.2024 08:12 [08:12:33]line Смена: 194 ФФД: 1.0 [08:12:33]line ЗНМ: 0300000167 [08:12:33]line РНМ: 0000000000156251 [08:12:33]line Версия ККМ: v1.0 [08:12:33]line ФМ: 0000000000963346 [08:12:33]line ФД: 69658 [08:12:33]line ФПД: 253869172399579 [08:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69658&fm=253869172399579&tin=02508201610067®Number=0000000000156251&sum=130000 [08:12:34]OFD Sender: Processing packet 69658 [packets to send 18, broken 17] [08:12:34]ProducePacketName [08:12:34]name=ofd_packets/00069658 [08:12:34]OFD Sender: To server: pG, [08:12:34]CommunicateWithHost lk.salyk.kg:30040 [08:12:34]ConnectInit lk.salyk.kg [08:12:34]written 0, free lines is 4095 [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 39 36 33 33 34 36 0F 01 00 00 07 5A 07 01 DC 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 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 F3 0C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 10 01 00 35 04 06 00 E6 E4 85 D7 1D DB 68 8E BB D9 94 8C DA 25 [08:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1D 2F 47 00 84 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 10 01 00 F4 03 04 00 97 B6 15 67 B6 04 01 00 00 F0 A4 18 AE 06 19 55 8E [08:12:34]CommunicateWithHost err = 0 [08:12:34]CheckOFDResponse [08:12:34]1017 (14) - 77093643461234 [08:12:34]1041 (16) - 0000000000963346 [08:12:34]1040 (4) - 69658 [08:12:34]1012 (4) - 21.10.2024 02:04 [08:12:34]1206 (1) - 0 [08:12:34]OFD Sender: Remove packet 69658 [08:12:34]ProducePacketName [08:12:34]name=ofd_packets/00069658 [08:12:34]NVStorageDeleteData [08:12:34]Write to MH i2c: 01 00 00 63 10 73 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 07 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 F4 0C 7A [08:12:34]RasterBufferAndPrint [08:12:34]line [08:12:34]line [08:12:34]line [08:12:34]line [08:12:34]line [08:12:34]written 0, free lines is 3322 [08:12:34]MH_Cut [08:12:34]Write to MH i2c: D1 01 00 6A 10 01 4C [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: D1 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: D1 01 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: D1 01 00 6A 10 00 4B [08:12:34]Write to MH i2c: 01 00 00 6B 10 7B [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:35]OFD Sender: No OFD packet to send [08:12:35]*** Cut start [08:12:35]*** Partial cut [08:12:35]*** CUTSNS_PIN = 1 [08:12:35]*** CUTSNS_PIN = 0 [08:12:35]*** Brake cut motor [08:12:36]Read from MH i2c: 01 [08:12:36]MH_I2C_Read... [08:12:36]*** Stop cut motor [08:12:36]*** Cut end [08:12:36]Read from MH i2c: 01 07 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [08:12:36]process_action close_receipt done [08:12:36]requested_data is exist [08:12:36]produce_requested_data [08:12:36]requested_item fm.sn is exist - process it [08:12:36]wFMCommunicate request_size=4 [08:12:36]MH_SAM_APDU [08:12:36]CAPDU: 80 11 00 00 [08:12:36]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:36]Read from MH i2c: E2 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 17 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [08:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:12:36]wFMCommunicate OK [08:12:36]requested_item fd.num is exist - process it [08:12:36]SAM_PROTO_GetFieldsCounters [08:12:36]wFMCommunicate request_size=4 [08:12:36]MH_SAM_APDU [08:12:36]CAPDU: 80 13 00 00 [08:12:36]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:36]Read from MH i2c: E2 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 62 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 10 01 00 0E 04 04 00 C2 00 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 91 [08:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 10 01 00 0E 04 04 00 C2 00 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 [08:12:36]wFMCommunicate OK [08:12:36]SAM_PROTO_GetFieldsCounters done [08:12:36]requested_item shift.num is exist - process it [08:12:36]requested_item shift.opened is exist - process it [08:12:36]req_shift_opened [08:12:36]FM_GetShiftState [08:12:36]SAM_PROTO_GetShiftState [08:12:36]wFMCommunicate request_size=4 [08:12:36]MH_SAM_APDU [08:12:36]CAPDU: 80 13 01 00 [08:12:36]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [08:12:36]Write i2c OK [08:12:36]MH_I2C_Read... [08:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:36]Read from MH i2c: E2 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 [08:12:36]MH_I2C_Read... [08:12:36]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 27 [08:12:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:12:36]wFMCommunicate OK [08:12:36]SAM_PROTO_GetShiftState done [08:12:36]FM_GetShiftState done [08:12:36]req_shift_opened done [08:12:36]requested_item shift.open_date is exist - process it [08:12:36]req_shift_open_date [08:12:36]req_shift_open_date done [08:12:36]produce_requested_data done [08:12:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69658,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:12:36]process_action_free close_receipt [08:12:36]json_value_free [08:12:36]json_value_free done [08:12:36]process_json_proto returns [08:12:36]Send response to host [08:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69658,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:12:36]free response buf [08:12:36]execute_script done [08:12:36]execute_script returns [08:12:36]free content buf [08:12:36]Sock 8.Close socket [08:12:36]Sock 8.Thread stoped [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:54]accept exits with 9 [08:13:54]New connection [08:13:54]New thread 3067313508 created [08:13:54]Thread 3067456868 joined [08:13:54]Waiting for new connection... [08:13:54] Sock 9.Parse request [08:13:54]Sock 9.Check first char [08:13:54]Sock 9.First char is OK [08:13:54]request: POST /json_proto HTTP/1.0 [08:13:54]Method: POST [08:13:54]URL: /json_proto [08:13:54]Method is POST - this is cgi request [08:13:54]url: /json_proto [08:13:54]query_string will be loaded in cgi processing [08:13:54]execute_cgi json_proto POST (null) [08:13:54]execute_cgi path=json_proto method=POST [08:13:54]POST find Content-Length [08:13:54]Host: 172.17.50.3:8080 [08:13:54]Content-Length: 686 [08:13:54]Content-Type: application/json [08:13:54] [08:13:54]POST finish read [08:13:54]Found Content-Length = 686 [08:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:54]execute_script... [08:13: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)2885395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.420, "sum" : 1300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:54]POST & json_proto [08:13:54]process_json_proto [08:13:54]json parsed OK: [08:13:54]protocol is kg_v1.0 [08:13:54]action value=close_receipt [08:13:54]process_action close_receipt [08:13:54]cmd_close_receipt [08:13:54]MH_GetDate [08:13:54]Write to MH i2c: F0 00 00 6F 10 6E [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: F0 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: F0 09 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: F0 09 00 6F 10 00 45 0D 16 67 6B 98 1E 66 CD [08:13:54]GetLastDocTimeStamp 1729498355 [08:13:54]current date 1729498437 [08:13:54]FM_GetShiftState [08:13:54]SAM_PROTO_GetShiftState [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 13 01 00 [08:13:54]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0E 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 29 [08:13:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:13:54]wFMCommunicate OK [08:13:54]SAM_PROTO_GetShiftState done [08:13:54]FM_GetShiftState done [08:13:54]opened in 1729469703 [08:13:54]opened+sec_in_day 1729556103 [08:13:54]quantity*price = 130003 [08:13:54]sum+1 = 130005 [08:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 49 21.10.2024 08:13 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69659 ФПД: 119843738984074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69659&fm=119843738984074&tin=02508201610067®Number=0000000000156251&sum=130000 [08:13:55]StoreToDocumentArchive [08:13:55]shift 194 fd 69659 [08:13:55]save to /storage/0194/doc_00069659 [08:13:55]save last doc name /storage/0194/doc_00069659 to /storage/kkm_last_doc_name [08:13:55]save OK [08:13:55]Clear old archive folders... [08:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:13:55]tlvbuf is 00C3AEF0 [08:13:55]SAM_PROTO_ClearQueue [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 09 00 00 [08:13:55]Write to MH i2c: E2 08 00 7D 10 80 09 00 00 00 00 00 00 FF [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [08:13:55]RAPDU: 90 00 [08:13:55]wFMCommunicate OK [08:13:55]SAM_PROTO_ClearQueue done [08:13:55]KKMCreateOFDPacket [08:13:55]OFDProtocolAddRootSTLVToBuf [08:13:55]FM_MakeSignedData [08:13:55]FM_MakeSignedData [08:13:55]SAM_PROTO_SignData [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 0D 01 02 [08:13:55]Write to MH i2c: E2 08 00 7E 10 80 0D 01 02 00 00 00 00 07 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [08:13:55]RAPDU: 90 00 [08:13:55]wFMCommunicate OK [08:13:55]wFMCommunicate request_size=255 [08:13:55]MH_SAM_APDU [08:13:55]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 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 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 45 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 10 01 00 35 04 06 00 6C FF [08:13:55]Write to MH i2c: E2 02 01 7F 10 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 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 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 45 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 10 01 00 35 04 06 00 6C FF 00 00 6E [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [08:13:55]RAPDU: 90 00 [08:13:55]wFMCommunicate OK [08:13:55]wFMCommunicate request_size=9 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 0D 02 02 04 4B 7D 9E 8A [08:13:55]Write to MH i2c: E2 0C 00 80 10 80 0D 02 02 04 00 4B 7D 9E 8A 00 00 02 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [08:13:55]RAPDU: 90 00 [08:13:55]wFMCommunicate OK [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 0D 03 02 [08:13:55]Write to MH i2c: E2 08 00 81 10 80 0D 03 02 00 00 00 00 0C [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0B 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0B 00 81 10 00 C9 6D DE 48 37 DE 5F 8D 90 00 6A [08:13:56]RAPDU: C9 6D DE 48 37 DE 5F 8D 90 00 [08:13:56]wFMCommunicate OK [08:13:56]SAM_PROTO_SignData done [08:13:56]FM_MakeSignedData done [08:13:56]CreateOFDProtocolMessage [08:13:56]wFMCommunicate request_size=4 [08:13:56]MH_SAM_APDU [08:13:56]CAPDU: 80 11 00 00 [08:13:56]Write to MH i2c: E2 08 00 82 10 80 11 00 00 00 00 00 00 0C [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 17 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 17 00 82 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [08:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:13:56]wFMCommunicate OK [08:13:56]CreateOFDProtocolMessage done [08:13:56]OFDSenderStorePacket 69659 [08:13:56]StoreOFDPacket docnum=69659 [08:13:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1E 28 06 01 A2 A2 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 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 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 45 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 10 01 00 35 04 06 00 6C FF 4B 7D 9E 8A C9 6D DE 48 37 DE 5F 8D [08:13:56]CheckFolder [08:13:56]dirname=/storage/ofd_packets [08:13:56]CheckFolder done [08:13:56]ProducePacketName [08:13:56]name=ofd_packets/00069659 [08:13:56]NVStorageSaveData ofd_packets/00069659 [08:13:56]File name is /storage/ofd_packets/00069659 [08:13:56]Write 300 bytes [08:13:56]NVStorageSaveData done [08:13:56]OFDSenderStorePacket done [08:13:56]KKMCreateOFDPacket done [08:13:56]NVStorageSaveData kkm_last_timestamp [08:13:56]File name is /storage/kkm_last_timestamp [08:13:56]Write 4 bytes [08:13:56]NVStorageSaveData done [08:13:56]ExternCall_PrintAddStr [08:13:56]wPrintStart [08:13:56]Write to MH i2c: 01 00 00 83 10 93 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 07 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [08:13:56]RasterBufferAndPrint [08:13:56]line Счет N : (1)2885395 [08:13:56]line ИНН: 02508201610067 [08:13:56]line Контрольно-Кассовый Чек [08:13:56]line ПРОДАЖА [08:13:56]line ТРК (МРК, ГНК) : 71 [08:13:56]line Товар: 2711129700 [08:13:56]line ГАЗ-К-3 [08:13:56]line 33.420 * 38.90 [08:13:56]line = 1300.04 [08:13:56]line НДС 12% НСП 1% [08:13:56]line > о реализуемом товаре [08:13:56]line ОКРУГЛЕНИЕ: -0.04 [08:13:56]line ИТОГО: 1300.00 [08:13:56]line Внесено: 1300.00 [08:13:56]line СДАЧА: 0.00 [08:13:56]line НСП 1% : 11.50 [08:13:56]line НДС 12% : 138.06 [08:13:56]line Наличными: 1300.00 [08:13:56]line Безнал.: 0.00 [08:13:56]line Место: АЗС № 85 "Партнер Нефть" [08:13:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:13:56]line СНО: Общий режим [08:13:56]line Чек 49 21.10.2024 08:13 [08:13:56]line Смена: 194 ФФД: 1.0 [08:13:56]line ЗНМ: 0300000167 [08:13:56]line РНМ: 0000000000156251 [08:13:56]line Версия ККМ: v1.0 [08:13:56]line ФМ: 0000000000963346 [08:13:56]line ФД: 69659 [08:13:56]line ФПД: 119843738984074 [08:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081357&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69659&fm=119843738984074&tin=02508201610067®Number=0000000000156251&sum=130000 [08:13:56]OFD Sender: Processing packet 69659 [packets to send 18, broken 17] [08:13:56]ProducePacketName [08:13:56]name=ofd_packets/00069659 [08:13:56]OFD Sender: To server: pG, [08:13:56]CommunicateWithHost lk.salyk.kg:30040 [08:13:56]ConnectInit lk.salyk.kg [08:13:56]written 0, free lines is 4095 [08:13:56]Connected sock=10 [08:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1E 28 06 01 A2 A2 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 33 FF 03 08 00 03 8C 82 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D4 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 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 45 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 10 01 00 35 04 06 00 6C FF 4B 7D 9E 8A C9 6D DE 48 37 DE 5F 8D [08:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4E 1C 47 00 1D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 10 01 00 F4 03 04 00 E9 B6 15 67 B6 04 01 00 00 BE D4 C6 AE 30 30 C2 59 [08:13:56]CommunicateWithHost err = 0 [08:13:56]CheckOFDResponse [08:13:56]1017 (14) - 77093643461234 [08:13:56]1041 (16) - 0000000000963346 [08:13:56]1040 (4) - 69659 [08:13:56]1012 (4) - 21.10.2024 02:05 [08:13:56]1206 (1) - 0 [08:13:56]OFD Sender: Remove packet 69659 [08:13:56]ProducePacketName [08:13:56]name=ofd_packets/00069659 [08:13:56]NVStorageDeleteData [08:13:56]Write to MH i2c: 01 00 00 AE 10 BE [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 07 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 EC 0C BD [08:13:56]RasterBufferAndPrint [08:13:56]line [08:13:56]line [08:13:56]line [08:13:56]line [08:13:56]line [08:13:56]written 0, free lines is 3314 [08:13:56]MH_Cut [08:13:56]Write to MH i2c: D1 01 00 B5 10 01 97 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: D1 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: D1 01 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: D1 01 00 B5 10 00 96 [08:13:56]Write to MH i2c: 01 00 00 B6 10 C6 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:57]OFD Sender: No OFD packet to send [08:13:57]*** Cut start [08:13:57]*** Partial cut [08:13:57]*** CUTSNS_PIN = 1 [08:13:57]*** CUTSNS_PIN = 0 [08:13:57]*** Brake cut motor [08:13:58]Read from MH i2c: 01 [08:13:58]MH_I2C_Read... [08:13:58]*** Stop cut motor [08:13:58]*** Cut end [08:13:58]Read from MH i2c: 01 07 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 FF 0F DB [08:13:58]process_action close_receipt done [08:13:58]requested_data is exist [08:13:58]produce_requested_data [08:13:58]requested_item fm.sn is exist - process it [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 11 00 00 [08:13:58]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 17 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [08:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:13:58]wFMCommunicate OK [08:13:58]requested_item fd.num is exist - process it [08:13:58]SAM_PROTO_GetFieldsCounters [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 13 00 00 [08:13:58]Write to MH i2c: E2 08 00 B8 10 80 13 00 00 00 00 00 00 44 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 62 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 62 00 B8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 10 01 00 0E 04 04 00 C2 00 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 E0 [08:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 10 01 00 0E 04 04 00 C2 00 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 [08:13:58]wFMCommunicate OK [08:13:58]SAM_PROTO_GetFieldsCounters done [08:13:58]requested_item shift.num is exist - process it [08:13:58]requested_item shift.opened is exist - process it [08:13:58]req_shift_opened [08:13:58]FM_GetShiftState [08:13:58]SAM_PROTO_GetShiftState [08:13:58]wFMCommunicate request_size=4 [08:13:58]MH_SAM_APDU [08:13:58]CAPDU: 80 13 01 00 [08:13:58]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:58]Read from MH i2c: E2 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 0E 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 72 [08:13:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:13:58]wFMCommunicate OK [08:13:58]SAM_PROTO_GetShiftState done [08:13:58]FM_GetShiftState done [08:13:58]req_shift_opened done [08:13:58]requested_item shift.open_date is exist - process it [08:13:58]req_shift_open_date [08:13:58]req_shift_open_date done [08:13:58]produce_requested_data done [08:13:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69659,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:13:58]process_action_free close_receipt [08:13:58]json_value_free [08:13:58]json_value_free done [08:13:58]process_json_proto returns [08:13:58]Send response to host [08:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69659,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:13:58]free response buf [08:13:58]execute_script done [08:13:58]execute_script returns [08:13:58]free content buf [08:13:58]Sock 9.Close socket [08:13:58]Sock 9.Thread stoped [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: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:55]accept exits with 8 [08:14:55]New connection [08:14:55]New thread 3067456868 created [08:14:55]Thread 3067313508 joined [08:14:55]Waiting for new connection... [08:14:55] Sock 8.Parse request [08:14:55]Sock 8.Check first char [08:14:55]Sock 8.First char is OK [08:14:55]request: POST /json_proto HTTP/1.0 [08:14:55]Method: POST [08:14:55]URL: /json_proto [08:14:55]Method is POST - this is cgi request [08:14:55]url: /json_proto [08:14:55]query_string will be loaded in cgi processing [08:14:55]execute_cgi json_proto POST (null) [08:14:55]execute_cgi path=json_proto method=POST [08:14:55]POST find Content-Length [08:14:55]Host: 172.17.50.3:8080 [08:14:55]Content-Length: 767 [08:14:55]Content-Type: application/json [08:14:55] [08:14:55]POST finish read [08:14:55]Found Content-Length = 767 [08:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885397", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]execute_script... [08:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885397", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:55]POST & json_proto [08:14:55]process_json_proto [08:14:55]json parsed OK: [08:14:55]protocol is kg_v1.0 [08:14:55]action value=close_receipt [08:14:55]process_action close_receipt [08:14:55]cmd_close_receipt [08:14:55]MH_GetDate [08:14:55]Write to MH i2c: F0 00 00 BA 10 B9 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: F0 09 00 BA 10 00 82 0D 16 67 6B 98 1E 66 55 [08:14:55]GetLastDocTimeStamp 1729498437 [08:14:55]current date 1729498498 [08:14:55]FM_GetShiftState [08:14:55]SAM_PROTO_GetShiftState [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 13 01 00 [08:14:55]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 74 [08:14:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:14:55]wFMCommunicate OK [08:14:55]SAM_PROTO_GetShiftState done [08:14:55]FM_GetShiftState done [08:14:55]opened in 1729469703 [08:14:55]opened+sec_in_day 1729556103 [08:14:55]quantity*price = 50041 [08:14:55]sum+1 = 50042 [08:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 50 21.10.2024 08:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69660 ФПД: 205732588368986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69660&fm=205732588368986&tin=02508201610067®Number=0000000000156251&sum=50041 [08:14:57]StoreToDocumentArchive [08:14:57]shift 194 fd 69660 [08:14:57]save to /storage/0194/doc_00069660 [08:14:57]save last doc name /storage/0194/doc_00069660 to /storage/kkm_last_doc_name [08:14:57]save OK [08:14:57]Clear old archive folders... [08:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:57]tlvbuf is B6F3CB30 [08:14:57]SAM_PROTO_ClearQueue [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 09 00 00 [08:14:57]Write to MH i2c: E2 08 00 C8 10 80 09 00 00 00 00 00 00 4A [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]SAM_PROTO_ClearQueue done [08:14:57]KKMCreateOFDPacket [08:14:57]OFDProtocolAddRootSTLVToBuf [08:14:57]FM_MakeSignedData [08:14:57]FM_MakeSignedData [08:14:57]SAM_PROTO_SignData [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 0D 01 02 [08:14:57]Write to MH i2c: E2 08 00 C9 10 80 0D 01 02 00 00 00 00 52 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]wFMCommunicate request_size=255 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 82 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 10 01 00 35 04 06 00 BB [08:14:57]Write to MH i2c: E2 02 01 CA 10 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 82 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 10 01 00 35 04 06 00 BB 00 00 15 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]OFD Sender: No OFD packet to send [08:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]wFMCommunicate request_size=10 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 0D 02 02 05 1C D9 D9 34 5A [08:14:57]Write to MH i2c: E2 0D 00 CB 10 80 0D 02 02 05 00 1C D9 D9 34 5A 00 00 BB [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 0D 03 02 [08:14:57]Write to MH i2c: E2 08 00 CC 10 80 0D 03 02 00 00 00 00 57 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 0B 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 0B 00 CC 10 00 CC B6 F3 61 E5 FD C8 3F 90 00 17 [08:14:57]RAPDU: CC B6 F3 61 E5 FD C8 3F 90 00 [08:14:57]wFMCommunicate OK [08:14:57]SAM_PROTO_SignData done [08:14:57]FM_MakeSignedData done [08:14:57]CreateOFDProtocolMessage [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 11 00 00 [08:14:57]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [08:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:14:57]wFMCommunicate OK [08:14:57]CreateOFDProtocolMessage done [08:14:57]OFDSenderStorePacket 69660 [08:14:57]StoreOFDPacket docnum=69660 [08:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BA E7 07 01 A6 B1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 82 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 10 01 00 35 04 06 00 BB 1C D9 D9 34 5A CC B6 F3 61 E5 FD C8 3F [08:14:57]CheckFolder [08:14:57]dirname=/storage/ofd_packets [08:14:57]CheckFolder done [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00069660 [08:14:57]NVStorageSaveData ofd_packets/00069660 [08:14:57]File name is /storage/ofd_packets/00069660 [08:14:57]Write 301 bytes [08:14:57]NVStorageSaveData done [08:14:57]OFDSenderStorePacket done [08:14:57]KKMCreateOFDPacket done [08:14:57]NVStorageSaveData kkm_last_timestamp [08:14:57]File name is /storage/kkm_last_timestamp [08:14:57]Write 4 bytes [08:14:57]NVStorageSaveData done [08:14:57]OFD Sender: Processing packet 69660 [packets to send 18, broken 17] [08:14:57]ProducePacketName [08:14:57]name=ofd_packets/00069660 [08:14:57]OFD Sender: To server: pG, [08:14:57]CommunicateWithHost lk.salyk.kg:30040 [08:14:57]ConnectInit lk.salyk.kg [08:14:57]ExternCall_PrintAddStr [08:14:57]wPrintStart [08:14:57]Write to MH i2c: 01 00 00 CE 10 DE [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [08:14:57]RasterBufferAndPrint [08:14:57]line Счет N : (1)2885397 [08:14:57]line ИНН: 02508201610067 [08:14:57]line Контрольно-Кассовый Чек [08:14:57]line ПРОДАЖА [08:14:57]line ТРК (МРК, ГНК) : 42 [08:14:57]line Товар: 2710124130 [08:14:57]line Аи-92-К-5 [08:14:57]line 7.480 * 66.90 [08:14:57]line = 500.41 [08:14:57]line НДС 12% НСП 1% [08:14:57]line > о реализуемом товаре [08:14:57]line ИТОГО: 500.41 [08:14:57]line НСП 1% : 4.43 [08:14:57]line НДС 12% : 53.14 [08:14:57]line Наличными: 0.00 [08:14:57]line Безнал.: 500.41 [08:14:57]line Место: АЗС № 85 "Партнер Нефть" [08:14:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:14:57]line СНО: Общий режим [08:14:57]line Чек 50 21.10.2024 08:14 [08:14:57]line Смена: 194 ФФД: 1.0 [08:14:57]line ЗНМ: 0300000167 [08:14:57]line РНМ: 0000000000156251 [08:14:57]line Версия ККМ: v1.0 [08:14:57]line Платежная система: Mbank [08:14:57]line ФМ: 0000000000963346 [08:14:57]line ФД: 69660 [08:14:57]line ФПД: 205732588368986 [08:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69660&fm=205732588368986&tin=02508201610067®Number=0000000000156251&sum=50041 [08:14:57]Connected sock=11 [08:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BA E7 07 01 A6 B1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 82 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 10 01 00 35 04 06 00 BB 1C D9 D9 34 5A CC B6 F3 61 E5 FD C8 3F [08:14:57]written 0, free lines is 4095 [08:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B7 1A 47 00 EB 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 10 01 00 F4 03 04 00 26 B7 15 67 B6 04 01 00 00 49 B4 02 56 44 1F DC 92 [08:14:58]CommunicateWithHost err = 0 [08:14:58]CheckOFDResponse [08:14:58]1017 (14) - 77093643461234 [08:14:58]1041 (16) - 0000000000963346 [08:14:58]1040 (4) - 69660 [08:14:58]1012 (4) - 21.10.2024 02:06 [08:14:58]1206 (1) - 0 [08:14:58]OFD Sender: Remove packet 69660 [08:14:58]ProducePacketName [08:14:58]name=ofd_packets/00069660 [08:14:58]NVStorageDeleteData [08:14:58]Write to MH i2c: 01 00 00 F7 10 07 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 10 0D 2B [08:14:58]RasterBufferAndPrint [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]written 0, free lines is 3350 [08:14:58]MH_Cut [08:14:58]Write to MH i2c: D1 01 00 FE 10 01 E0 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 01 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 01 00 FE 10 00 DF [08:14:58]Write to MH i2c: 01 00 00 FF 10 0F [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]OFD Sender: No OFD packet to send [08:14:59]*** Cut start [08:14:59]*** Partial cut [08:14:59]*** CUTSNS_PIN = 1 [08:14:59]*** CUTSNS_PIN = 0 [08:14:59]*** Brake cut motor [08:14:59]Read from MH i2c: 01 [08:14:59]MH_I2C_Read... [08:14:59]*** Stop cut motor [08:14:59]*** Cut end [08:14:59]Read from MH i2c: 01 07 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [08:14:59]process_action close_receipt done [08:14:59]requested_data is exist [08:14:59]produce_requested_data [08:14:59]requested_item fm.sn is exist - process it [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 11 00 00 [08:14:59]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 17 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 17 00 00 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [08:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:14:59]wFMCommunicate OK [08:14:59]requested_item fd.num is exist - process it [08:14:59]SAM_PROTO_GetFieldsCounters [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 13 00 00 [08:14:59]Write to MH i2c: E2 08 00 01 11 80 13 00 00 00 00 00 00 8E [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 62 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 62 00 01 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 10 01 00 0E 04 04 00 C2 00 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 2E [08:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 10 01 00 0E 04 04 00 C2 00 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 [08:14:59]wFMCommunicate OK [08:14:59]SAM_PROTO_GetFieldsCounters done [08:14:59]requested_item shift.num is exist - process it [08:14:59]requested_item shift.opened is exist - process it [08:14:59]req_shift_opened [08:14:59]FM_GetShiftState [08:14:59]SAM_PROTO_GetShiftState [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 13 01 00 [08:14:59]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BC [08:14:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:14:59]wFMCommunicate OK [08:14:59]SAM_PROTO_GetShiftState done [08:14:59]FM_GetShiftState done [08:14:59]req_shift_opened done [08:14:59]requested_item shift.open_date is exist - process it [08:14:59]req_shift_open_date [08:14:59]req_shift_open_date done [08:14:59]produce_requested_data done [08:14:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69660,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:14:59]process_action_free close_receipt [08:14:59]json_value_free [08:14:59]json_value_free done [08:14:59]process_json_proto returns [08:14:59]Send response to host [08:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69660,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:14:59]free response buf [08:15:00]execute_script done [08:15:00]execute_script returns [08:15:00]free content buf [08:15:00]Sock 8.Close socket [08:15:00]Sock 8.Thread stoped [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:37]accept exits with 9 [08:16:37]New connection [08:16:37]New thread 3067313508 created [08:16:37]Thread 3067456868 joined [08:16:37]Waiting for new connection... [08:16:37] Sock 9.Parse request [08:16:37]Sock 9.Check first char [08:16:37]Sock 9.First char is OK [08:16:37]request: POST /json_proto HTTP/1.0 [08:16:37]Method: POST [08:16:37]URL: /json_proto [08:16:37]Method is POST - this is cgi request [08:16:37]url: /json_proto [08:16:37]query_string will be loaded in cgi processing [08:16:37]execute_cgi json_proto POST (null) [08:16:37]execute_cgi path=json_proto method=POST [08:16:37]POST find Content-Length [08:16:37]Host: 172.17.50.3:8080 [08:16:37]Content-Length: 678 [08:16:37]Content-Type: application/json [08:16:37] [08:16:37]POST finish read [08:16:37]Found Content-Length = 678 [08:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:37]execute_script... [08:16: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)2885400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:37]POST & json_proto [08:16:37]process_json_proto [08:16:37]json parsed OK: [08:16:37]protocol is kg_v1.0 [08:16:37]action value=close_receipt [08:16:37]process_action close_receipt [08:16:37]cmd_close_receipt [08:16:37]MH_GetDate [08:16:37]Write to MH i2c: F0 00 00 03 11 03 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: F0 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: F0 09 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: F0 09 00 03 11 00 E8 0D 16 67 6B 98 1E 66 05 [08:16:37]GetLastDocTimeStamp 1729498498 [08:16:37]current date 1729498600 [08:16:37]FM_GetShiftState [08:16:37]SAM_PROTO_GetShiftState [08:16:37]wFMCommunicate request_size=4 [08:16:37]MH_SAM_APDU [08:16:37]CAPDU: 80 13 01 00 [08:16:37]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:38]Read from MH i2c: E2 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BE [08:16:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:16:38]wFMCommunicate OK [08:16:38]SAM_PROTO_GetShiftState done [08:16:38]FM_GetShiftState done [08:16:38]opened in 1729469703 [08:16:38]opened+sec_in_day 1729556103 [08:16:38]quantity*price = 50041 [08:16:38]sum+1 = 50042 [08:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 51 21.10.2024 08:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69661 ФПД: 139390947058829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69661&fm=139390947058829&tin=02508201610067®Number=0000000000156251&sum=50000 [08:16:39]StoreToDocumentArchive [08:16:39]shift 194 fd 69661 [08:16:39]save to /storage/0194/doc_00069661 [08:16:39]save last doc name /storage/0194/doc_00069661 to /storage/kkm_last_doc_name [08:16:39]save OK [08:16:39]Clear old archive folders... [08:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:39]tlvbuf is 00C65830 [08:16:39]SAM_PROTO_ClearQueue [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 09 00 00 [08:16:39]Write to MH i2c: E2 08 00 11 11 80 09 00 00 00 00 00 00 94 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]SAM_PROTO_ClearQueue done [08:16:39]KKMCreateOFDPacket [08:16:39]OFDProtocolAddRootSTLVToBuf [08:16:39]FM_MakeSignedData [08:16:39]FM_MakeSignedData [08:16:39]SAM_PROTO_SignData [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 01 02 [08:16:39]Write to MH i2c: E2 08 00 12 11 80 0D 01 02 00 00 00 00 9C [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=255 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 10 01 00 35 04 06 00 7E [08:16:39]Write to MH i2c: E2 02 01 13 11 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 10 01 00 35 04 06 00 7E 00 00 38 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=10 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 02 02 05 C6 7B E2 64 8D [08:16:39]Write to MH i2c: E2 0D 00 14 11 80 0D 02 02 05 00 C6 7B E2 64 8D 00 00 BD [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 03 02 [08:16:39]Write to MH i2c: E2 08 00 15 11 80 0D 03 02 00 00 00 00 A1 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 0B 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 0B 00 15 11 00 A2 01 7B D6 0A 0C 70 CC 90 00 E8 [08:16:39]RAPDU: A2 01 7B D6 0A 0C 70 CC 90 00 [08:16:39]wFMCommunicate OK [08:16:39]SAM_PROTO_SignData done [08:16:39]FM_MakeSignedData done [08:16:39]CreateOFDProtocolMessage [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 11 00 00 [08:16:39]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 17 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 17 00 16 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [08:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:16:39]wFMCommunicate OK [08:16:39]CreateOFDProtocolMessage done [08:16:39]OFDSenderStorePacket 69661 [08:16:39]StoreOFDPacket docnum=69661 [08:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 52 A3 07 01 01 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 10 01 00 35 04 06 00 7E C6 7B E2 64 8D A2 01 7B D6 0A 0C 70 CC [08:16:39]CheckFolder [08:16:39]dirname=/storage/ofd_packets [08:16:39]CheckFolder done [08:16:39]ProducePacketName [08:16:39]name=ofd_packets/00069661 [08:16:39]NVStorageSaveData ofd_packets/00069661 [08:16:39]File name is /storage/ofd_packets/00069661 [08:16:39]Write 301 bytes [08:16:39]NVStorageSaveData done [08:16:39]OFDSenderStorePacket done [08:16:39]KKMCreateOFDPacket done [08:16:39]NVStorageSaveData kkm_last_timestamp [08:16:39]File name is /storage/kkm_last_timestamp [08:16:39]Write 4 bytes [08:16:39]NVStorageSaveData done [08:16:39]ExternCall_PrintAddStr [08:16:39]wPrintStart [08:16:39]Write to MH i2c: 01 00 00 17 11 28 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 07 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [08:16:39]RasterBufferAndPrint [08:16:39]line Счет N : (1)2885400 [08:16:39]line ИНН: 02508201610067 [08:16:39]line Контрольно-Кассовый Чек [08:16:39]line ПРОДАЖА [08:16:39]line ТРК (МРК, ГНК) : 12 [08:16:39]line Товар: 2710124130 [08:16:39]line Аи-92-К-5 [08:16:39]line 7.480 * 66.90 [08:16:39]line = 500.41 [08:16:39]line НДС 12% НСП 1% [08:16:39]line > о реализуемом товаре [08:16:39]line ОКРУГЛЕНИЕ: -0.41 [08:16:39]line ИТОГО: 500.00 [08:16:39]line Внесено: 500.00 [08:16:39]line СДАЧА: 0.00 [08:16:39]line НСП 1% : 4.43 [08:16:39]line НДС 12% : 53.14 [08:16:39]line Наличными: 500.00 [08:16:39]line Безнал.: 0.00 [08:16:39]line Место: АЗС № 85 "Партнер Нефть" [08:16:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:16:39]line СНО: Общий режим [08:16:39]line Чек 51 21.10.2024 08:16 [08:16:39]line Смена: 194 ФФД: 1.0 [08:16:39]line ЗНМ: 0300000167 [08:16:39]line РНМ: 0000000000156251 [08:16:39]line Версия ККМ: v1.0 [08:16:39]line ФМ: 0000000000963346 [08:16:39]line ФД: 69661 [08:16:39]line ФПД: 139390947058829 [08:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69661&fm=139390947058829&tin=02508201610067®Number=0000000000156251&sum=50000 [08:16:40]OFD Sender: Processing packet 69661 [packets to send 18, broken 17] [08:16:40]ProducePacketName [08:16:40]name=ofd_packets/00069661 [08:16:40]OFD Sender: To server: pG, [08:16:40]CommunicateWithHost lk.salyk.kg:30040 [08:16:40]ConnectInit lk.salyk.kg [08:16:40]written 0, free lines is 4095 [08:16:40]Connected sock=10 [08:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 52 A3 07 01 01 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 0D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 10 01 00 35 04 06 00 7E C6 7B E2 64 8D A2 01 7B D6 0A 0C 70 CC [08:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3F 7A 47 00 27 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 39 36 33 33 34 36 10 04 04 00 1D 10 01 00 F4 03 04 00 8D B7 15 67 B6 04 01 00 00 37 85 FF C6 39 AB 0B AD [08:16:40]CommunicateWithHost err = 0 [08:16:40]CheckOFDResponse [08:16:40]1017 (14) - 77093643461234 [08:16:40]1041 (16) - 0000000000963346 [08:16:40]1040 (4) - 69661 [08:16:40]1012 (4) - 21.10.2024 02:08 [08:16:40]1206 (1) - 0 [08:16:40]OFD Sender: Remove packet 69661 [08:16:40]ProducePacketName [08:16:40]name=ofd_packets/00069661 [08:16:40]NVStorageDeleteData [08:16:40]Write to MH i2c: 01 00 00 42 11 53 [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 07 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 F9 0C 5F [08:16:40]RasterBufferAndPrint [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]written 0, free lines is 3330 [08:16:40]MH_Cut [08:16:40]Write to MH i2c: D1 01 00 49 11 01 2C [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 01 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 01 00 49 11 00 2B [08:16:40]Write to MH i2c: 01 00 00 4A 11 5B [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]OFD Sender: No OFD packet to send [08:16:41]*** Cut start [08:16:41]*** Partial cut [08:16:41]*** CUTSNS_PIN = 1 [08:16:41]*** CUTSNS_PIN = 0 [08:16:41]*** Brake cut motor [08:16:41]Read from MH i2c: 01 [08:16:41]MH_I2C_Read... [08:16:41]*** Stop cut motor [08:16:41]*** Cut end [08:16:41]Read from MH i2c: 01 07 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [08:16:41]process_action close_receipt done [08:16:41]requested_data is exist [08:16:41]produce_requested_data [08:16:41]requested_item fm.sn is exist - process it [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 11 00 00 [08:16:41]Write to MH i2c: E2 08 00 4B 11 80 11 00 00 00 00 00 00 D6 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 4B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [08:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:16:41]wFMCommunicate OK [08:16:41]requested_item fd.num is exist - process it [08:16:41]SAM_PROTO_GetFieldsCounters [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 00 00 [08:16:41]Write to MH i2c: E2 08 00 4C 11 80 13 00 00 00 00 00 00 D9 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 4C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 10 01 00 0E 04 04 00 C2 00 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 7D [08:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 10 01 00 0E 04 04 00 C2 00 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 [08:16:41]wFMCommunicate OK [08:16:41]SAM_PROTO_GetFieldsCounters done [08:16:41]requested_item shift.num is exist - process it [08:16:41]requested_item shift.opened is exist - process it [08:16:41]req_shift_opened [08:16:41]FM_GetShiftState [08:16:41]SAM_PROTO_GetShiftState [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 01 00 [08:16:41]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0E 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 07 [08:16:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:16:42]wFMCommunicate OK [08:16:42]SAM_PROTO_GetShiftState done [08:16:42]FM_GetShiftState done [08:16:42]req_shift_opened done [08:16:42]requested_item shift.open_date is exist - process it [08:16:42]req_shift_open_date [08:16:42]req_shift_open_date done [08:16:42]produce_requested_data done [08:16:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69661,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:16:42]process_action_free close_receipt [08:16:42]json_value_free [08:16:42]json_value_free done [08:16:42]process_json_proto returns [08:16:42]Send response to host [08:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69661,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:16:42]free response buf [08:16:42]execute_script done [08:16:42]execute_script returns [08:16:42]free content buf [08:16:42]Sock 9.Close socket [08:16:42]Sock 9.Thread stoped [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:07]accept exits with 8 [08:17:07]New connection [08:17:07]New thread 3067456868 created [08:17:07]Thread 3067313508 joined [08:17:07]Waiting for new connection... [08:17:07] Sock 8.Parse request [08:17:07]Sock 8.Check first char [08:17:07]Sock 8.First char is OK [08:17:07]request: POST /json_proto HTTP/1.0 [08:17:07]Method: POST [08:17:07]URL: /json_proto [08:17:07]Method is POST - this is cgi request [08:17:07]url: /json_proto [08:17:07]query_string will be loaded in cgi processing [08:17:07]execute_cgi json_proto POST (null) [08:17:07]execute_cgi path=json_proto method=POST [08:17:07]POST find Content-Length [08:17:07]Host: 172.17.50.3:8080 [08:17:07]Content-Length: 683 [08:17:07]Content-Type: application/json [08:17:07] [08:17:07]POST finish read [08:17:07]Found Content-Length = 683 [08:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885399", "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" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [08:17:07]execute_script... [08:17: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)2885399", "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" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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" ] } } [08:17:07]POST & json_proto [08:17:07]process_json_proto [08:17:07]json parsed OK: [08:17:07]protocol is kg_v1.0 [08:17:07]action value=close_receipt [08:17:07]process_action close_receipt [08:17:07]cmd_close_receipt [08:17:07]MH_GetDate [08:17:07]Write to MH i2c: F0 00 00 4E 11 4E [08:17:07]Write i2c OK [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: F0 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: F0 09 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: F0 09 00 4E 11 00 06 0E 16 67 6B 98 1E 66 6F [08:17:07]GetLastDocTimeStamp 1729498600 [08:17:07]current date 1729498630 [08:17:07]FM_GetShiftState [08:17:07]SAM_PROTO_GetShiftState [08:17:07]wFMCommunicate request_size=4 [08:17:07]MH_SAM_APDU [08:17:07]CAPDU: 80 13 01 00 [08:17:07]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [08:17:07]Write i2c OK [08:17:07]MH_I2C_Read... [08:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:07]Read from MH i2c: E2 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 0E 00 [08:17:07]MH_I2C_Read... [08:17:07]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 09 [08:17:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:17:07]wFMCommunicate OK [08:17:07]SAM_PROTO_GetShiftState done [08:17:07]FM_GetShiftState done [08:17:07]opened in 1729469703 [08:17:07]opened+sec_in_day 1729556103 [08:17:07]quantity*price = 250005 [08:17:07]sum+1 = 250006 [08:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 52 21.10.2024 08:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69662 ФПД: 205571675694629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081710&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69662&fm=205571675694629&tin=02508201610067®Number=0000000000156251&sum=250000 [08:17:08]StoreToDocumentArchive [08:17:08]shift 194 fd 69662 [08:17:08]save to /storage/0194/doc_00069662 [08:17:08]save last doc name /storage/0194/doc_00069662 to /storage/kkm_last_doc_name [08:17:08]save OK [08:17:08]Clear old archive folders... [08:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:08]tlvbuf is 00C6C270 [08:17:08]SAM_PROTO_ClearQueue [08:17:08]wFMCommunicate request_size=4 [08:17:08]MH_SAM_APDU [08:17:08]CAPDU: 80 09 00 00 [08:17:08]Write to MH i2c: E2 08 00 5C 11 80 09 00 00 00 00 00 00 DF [08:17:08]Write i2c OK [08:17:08]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [08:17:09]RAPDU: 90 00 [08:17:09]wFMCommunicate OK [08:17:09]SAM_PROTO_ClearQueue done [08:17:09]KKMCreateOFDPacket [08:17:09]OFDProtocolAddRootSTLVToBuf [08:17:09]FM_MakeSignedData [08:17:09]FM_MakeSignedData [08:17:09]SAM_PROTO_SignData [08:17:09]wFMCommunicate request_size=4 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 0D 01 02 [08:17:09]Write to MH i2c: E2 08 00 5D 11 80 0D 01 02 00 00 00 00 E7 [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [08:17:09]RAPDU: 90 00 [08:17:09]wFMCommunicate OK [08:17:09]wFMCommunicate request_size=255 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 B5 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 34 00 00 00 F4 03 04 00 06 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 10 01 00 35 04 06 00 BA [08:17:09]Write to MH i2c: E2 02 01 5E 11 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 B5 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 34 00 00 00 F4 03 04 00 06 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 10 01 00 35 04 06 00 BA 00 00 18 [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [08:17:09]RAPDU: 90 00 [08:17:09]wFMCommunicate OK [08:17:09]wFMCommunicate request_size=10 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 0D 02 02 05 F7 62 B4 A6 25 [08:17:09]Write to MH i2c: E2 0D 00 5F 11 80 0D 02 02 05 00 F7 62 B4 A6 25 00 00 CC [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [08:17:09]RAPDU: 90 00 [08:17:09]wFMCommunicate OK [08:17:09]wFMCommunicate request_size=4 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 0D 03 02 [08:17:09]Write to MH i2c: E2 08 00 60 11 80 0D 03 02 00 00 00 00 EC [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 0B 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 0B 00 60 11 00 F2 ED BA AF AB 00 EB 05 90 00 D0 [08:17:09]RAPDU: F2 ED BA AF AB 00 EB 05 90 00 [08:17:09]wFMCommunicate OK [08:17:09]SAM_PROTO_SignData done [08:17:09]FM_MakeSignedData done [08:17:09]CreateOFDProtocolMessage [08:17:09]wFMCommunicate request_size=4 [08:17:09]MH_SAM_APDU [08:17:09]CAPDU: 80 11 00 00 [08:17:09]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:09]Read from MH i2c: E2 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 17 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [08:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:17:09]wFMCommunicate OK [08:17:09]CreateOFDProtocolMessage done [08:17:09]OFDSenderStorePacket 69662 [08:17:09]StoreOFDPacket docnum=69662 [08:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7E 02 07 01 76 7B 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 B5 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 34 00 00 00 F4 03 04 00 06 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 10 01 00 35 04 06 00 BA F7 62 B4 A6 25 F2 ED BA AF AB 00 EB 05 [08:17:09]CheckFolder [08:17:09]dirname=/storage/ofd_packets [08:17:09]CheckFolder done [08:17:09]ProducePacketName [08:17:09]name=ofd_packets/00069662 [08:17:09]NVStorageSaveData ofd_packets/00069662 [08:17:09]File name is /storage/ofd_packets/00069662 [08:17:09]Write 301 bytes [08:17:09]NVStorageSaveData done [08:17:09]OFDSenderStorePacket done [08:17:09]KKMCreateOFDPacket done [08:17:09]NVStorageSaveData kkm_last_timestamp [08:17:09]File name is /storage/kkm_last_timestamp [08:17:09]Write 4 bytes [08:17:09]NVStorageSaveData done [08:17:09]ExternCall_PrintAddStr [08:17:09]wPrintStart [08:17:09]Write to MH i2c: 01 00 00 62 11 73 [08:17:09]Write i2c OK [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: 01 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: 01 07 00 [08:17:09]MH_I2C_Read... [08:17:09]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [08:17:09]RasterBufferAndPrint [08:17:09]line Счет N : (1)2885399 [08:17:09]line ИНН: 02508201610067 [08:17:09]line Контрольно-Кассовый Чек [08:17:09]line ПРОДАЖА [08:17:09]line ТРК (МРК, ГНК) : 32 [08:17:09]line Товар: 2710124130 [08:17:09]line Аи-92-К-5 [08:17:09]line 37.370 * 66.90 [08:17:09]line = 2500.05 [08:17:09]line НДС 12% НСП 1% [08:17:09]line > о реализуемом товаре [08:17:09]line ОКРУГЛЕНИЕ: -0.05 [08:17:09]line ИТОГО: 2500.00 [08:17:09]line Внесено: 2500.00 [08:17:09]line СДАЧА: 0.00 [08:17:09]line НСП 1% : 22.12 [08:17:09]line НДС 12% : 265.49 [08:17:09]line Наличными: 2500.00 [08:17:09]line Безнал.: 0.00 [08:17:09]line Место: АЗС № 85 "Партнер Нефть" [08:17:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:17:09]line СНО: Общий режим [08:17:09]line Чек 52 21.10.2024 08:17 [08:17:09]line Смена: 194 ФФД: 1.0 [08:17:09]line ЗНМ: 0300000167 [08:17:09]line РНМ: 0000000000156251 [08:17:09]line Версия ККМ: v1.0 [08:17:09]line ФМ: 0000000000963346 [08:17:09]line ФД: 69662 [08:17:09]line ФПД: 205571675694629 [08:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081710&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69662&fm=205571675694629&tin=02508201610067®Number=0000000000156251&sum=250000 [08:17:09]OFD Sender: Processing packet 69662 [packets to send 18, broken 17] [08:17:09]ProducePacketName [08:17:09]name=ofd_packets/00069662 [08:17:09]OFD Sender: To server: pG, [08:17:09]CommunicateWithHost lk.salyk.kg:30040 [08:17:09]ConnectInit lk.salyk.kg [08:17:09]written 0, free lines is 4095 [08:17:09]Connected sock=10 [08:17:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7E 02 07 01 76 7B 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 B5 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 34 00 00 00 F4 03 04 00 06 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 10 01 00 35 04 06 00 BA F7 62 B4 A6 25 F2 ED BA AF AB 00 EB 05 [08:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 41 83 47 00 A6 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 39 36 33 33 34 36 10 04 04 00 1E 10 01 00 F4 03 04 00 AA B7 15 67 B6 04 01 00 00 57 EF 95 F6 F2 A8 EF 56 [08:17:10]CommunicateWithHost err = 0 [08:17:10]CheckOFDResponse [08:17:10]1017 (14) - 77093643461234 [08:17:10]1041 (16) - 0000000000963346 [08:17:10]1040 (4) - 69662 [08:17:10]1012 (4) - 21.10.2024 02:08 [08:17:10]1206 (1) - 0 [08:17:10]OFD Sender: Remove packet 69662 [08:17:10]ProducePacketName [08:17:10]name=ofd_packets/00069662 [08:17:10]NVStorageDeleteData [08:17:10]Write to MH i2c: 01 00 00 8D 11 9E [08:17:10]Write i2c OK [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: 01 [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: 01 07 00 [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 F6 0C A7 [08:17:10]RasterBufferAndPrint [08:17:10]line [08:17:10]line [08:17:10]line [08:17:10]line [08:17:10]line [08:17:10]written 0, free lines is 3324 [08:17:10]MH_Cut [08:17:10]Write to MH i2c: D1 01 00 94 11 01 77 [08:17:10]Write i2c OK [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: D1 [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: D1 01 00 [08:17:10]MH_I2C_Read... [08:17:10]Read from MH i2c: D1 01 00 94 11 00 76 [08:17:10]Write to MH i2c: 01 00 00 95 11 A6 [08:17:10]Write i2c OK [08:17:10]MH_I2C_Read... [08:17:10]OFD Sender: No OFD packet to send [08:17:10]*** Cut start [08:17:10]*** Partial cut [08:17:10]*** CUTSNS_PIN = 1 [08:17:11]*** CUTSNS_PIN = 0 [08:17:11]*** Brake cut motor [08:17:11]Read from MH i2c: 01 [08:17:11]MH_I2C_Read... [08:17:11]*** Stop cut motor [08:17:11]*** Cut end [08:17:11]Read from MH i2c: 01 07 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [08:17:11]process_action close_receipt done [08:17:11]requested_data is exist [08:17:11]produce_requested_data [08:17:11]requested_item fm.sn is exist - process it [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 11 00 00 [08:17:11]Write to MH i2c: E2 08 00 96 11 80 11 00 00 00 00 00 00 21 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 17 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 17 00 96 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [08:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:17:11]wFMCommunicate OK [08:17:11]requested_item fd.num is exist - process it [08:17:11]SAM_PROTO_GetFieldsCounters [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 13 00 00 [08:17:11]Write to MH i2c: E2 08 00 97 11 80 13 00 00 00 00 00 00 24 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 62 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 62 00 97 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 10 01 00 0E 04 04 00 C2 00 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 CC [08:17:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 10 01 00 0E 04 04 00 C2 00 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 [08:17:11]wFMCommunicate OK [08:17:11]SAM_PROTO_GetFieldsCounters done [08:17:11]requested_item shift.num is exist - process it [08:17:11]requested_item shift.opened is exist - process it [08:17:11]req_shift_opened [08:17:11]FM_GetShiftState [08:17:11]SAM_PROTO_GetShiftState [08:17:11]wFMCommunicate request_size=4 [08:17:11]MH_SAM_APDU [08:17:11]CAPDU: 80 13 01 00 [08:17:11]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [08:17:11]Write i2c OK [08:17:11]MH_I2C_Read... [08:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:11]Read from MH i2c: E2 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0E 00 [08:17:11]MH_I2C_Read... [08:17:11]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 52 [08:17:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:17:11]wFMCommunicate OK [08:17:11]SAM_PROTO_GetShiftState done [08:17:11]FM_GetShiftState done [08:17:11]req_shift_opened done [08:17:11]requested_item shift.open_date is exist - process it [08:17:11]req_shift_open_date [08:17:11]req_shift_open_date done [08:17:11]produce_requested_data done [08:17:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69662,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:17:11]process_action_free close_receipt [08:17:11]json_value_free [08:17:11]json_value_free done [08:17:11]process_json_proto returns [08:17:11]Send response to host [08:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69662,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:17:11]free response buf [08:17:11]execute_script done [08:17:11]execute_script returns [08:17:11]free content buf [08:17:11]Sock 8.Close socket [08:17:11]Sock 8.Thread stoped [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:51]accept exits with 9 [08:17:51]New connection [08:17:51]New thread 3067313508 created [08:17:51]Thread 3067456868 joined [08:17:51]Waiting for new connection... [08:17:51] Sock 9.Parse request [08:17:51]Sock 9.Check first char [08:17:51]Sock 9.First char is OK [08:17:51]request: POST /json_proto HTTP/1.0 [08:17:51]Method: POST [08:17:51]URL: /json_proto [08:17:51]Method is POST - this is cgi request [08:17:51]url: /json_proto [08:17:51]query_string will be loaded in cgi processing [08:17:51]execute_cgi json_proto POST (null) [08:17:51]execute_cgi path=json_proto method=POST [08:17:51]POST find Content-Length [08:17:51]Host: 172.17.50.3:8080 [08:17:51]Content-Length: 752 [08:17:51]Content-Type: application/json [08:17:51] [08:17:51]POST finish read [08:17:51]Found Content-Length = 752 [08:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138251", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:51]execute_script... [08:17: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)2885398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138251", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:51]POST & json_proto [08:17:51]process_json_proto [08:17:51]json parsed OK: [08:17:51]protocol is kg_v1.0 [08:17:51]action value=close_receipt [08:17:51]process_action close_receipt [08:17:51]cmd_close_receipt [08:17:51]MH_GetDate [08:17:51]Write to MH i2c: F0 00 00 99 11 99 [08:17:51]Write i2c OK [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 09 00 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: F0 09 00 99 11 00 32 0E 16 67 6B 98 1E 66 E6 [08:17:51]GetLastDocTimeStamp 1729498630 [08:17:51]current date 1729498674 [08:17:51]FM_GetShiftState [08:17:51]SAM_PROTO_GetShiftState [08:17:51]wFMCommunicate request_size=4 [08:17:51]MH_SAM_APDU [08:17:51]CAPDU: 80 13 01 00 [08:17:51]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [08:17:51]Write i2c OK [08:17:51]MH_I2C_Read... [08:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:51]Read from MH i2c: E2 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: E2 0E 00 [08:17:51]MH_I2C_Read... [08:17:51]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 54 [08:17:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:17:51]wFMCommunicate OK [08:17:51]SAM_PROTO_GetShiftState done [08:17:51]FM_GetShiftState done [08:17:51]opened in 1729469703 [08:17:51]opened+sec_in_day 1729556103 [08:17:51]quantity*price = 0 [08:17:51]sum+1 = 1 [08:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 53 21.10.2024 08:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138251 ФМ: 0000000000963346 ФД: 69663 ФПД: 130348309268052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69663&fm=130348309268052&tin=02508201610067®Number=0000000000156251&sum=0 [08:17:53]StoreToDocumentArchive [08:17:53]shift 194 fd 69663 [08:17:53]save to /storage/0194/doc_00069663 [08:17:53]save last doc name /storage/0194/doc_00069663 to /storage/kkm_last_doc_name [08:17:53]save OK [08:17:53]Clear old archive folders... [08:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:17:53]tlvbuf is 00C38D40 [08:17:53]SAM_PROTO_ClearQueue [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 09 00 00 [08:17:53]Write to MH i2c: E2 08 00 A7 11 80 09 00 00 00 00 00 00 2A [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]SAM_PROTO_ClearQueue done [08:17:53]KKMCreateOFDPacket [08:17:53]OFDProtocolAddRootSTLVToBuf [08:17:53]FM_MakeSignedData [08:17:53]FM_MakeSignedData [08:17:53]SAM_PROTO_SignData [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 0D 01 02 [08:17:53]Write to MH i2c: E2 08 00 A8 11 80 0D 01 02 00 00 00 00 32 [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]wFMCommunicate request_size=255 [08:17:53]MH_SAM_APDU [08:17: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 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 35 00 00 00 F4 03 04 00 32 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 10 01 00 35 04 06 00 76 8D 14 AB [08:17:53]Write to MH i2c: E2 02 01 A9 11 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 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 35 00 00 00 F4 03 04 00 32 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 10 01 00 35 04 06 00 76 8D 14 AB 00 00 B1 [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]wFMCommunicate request_size=7 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 0D 02 02 02 C6 54 [08:17:53]Write to MH i2c: E2 0A 00 AA 11 80 0D 02 02 02 00 C6 54 00 00 53 [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [08:17:53]RAPDU: 90 00 [08:17:53]wFMCommunicate OK [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 0D 03 02 [08:17:53]Write to MH i2c: E2 08 00 AB 11 80 0D 03 02 00 00 00 00 37 [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 0B 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 0B 00 AB 11 00 37 77 67 88 CF 7B 6A 5A 90 00 E3 [08:17:53]RAPDU: 37 77 67 88 CF 7B 6A 5A 90 00 [08:17:53]wFMCommunicate OK [08:17:53]SAM_PROTO_SignData done [08:17:53]FM_MakeSignedData done [08:17:53]CreateOFDProtocolMessage [08:17:53]wFMCommunicate request_size=4 [08:17:53]MH_SAM_APDU [08:17:53]CAPDU: 80 11 00 00 [08:17:53]Write to MH i2c: E2 08 00 AC 11 80 11 00 00 00 00 00 00 37 [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:53]Read from MH i2c: E2 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 17 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: E2 17 00 AC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [08:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:17:53]wFMCommunicate OK [08:17:53]CreateOFDProtocolMessage done [08:17:53]OFDSenderStorePacket 69663 [08:17:53]StoreOFDPacket docnum=69663 [08:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 20 E8 04 01 AF E6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 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 35 00 00 00 F4 03 04 00 32 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 10 01 00 35 04 06 00 76 8D 14 AB C6 54 37 77 67 88 CF 7B 6A 5A [08:17:53]CheckFolder [08:17:53]dirname=/storage/ofd_packets [08:17:53]CheckFolder done [08:17:53]ProducePacketName [08:17:53]name=ofd_packets/00069663 [08:17:53]NVStorageSaveData ofd_packets/00069663 [08:17:53]File name is /storage/ofd_packets/00069663 [08:17:53]Write 298 bytes [08:17:53]NVStorageSaveData done [08:17:53]OFDSenderStorePacket done [08:17:53]KKMCreateOFDPacket done [08:17:53]NVStorageSaveData kkm_last_timestamp [08:17:53]File name is /storage/kkm_last_timestamp [08:17:53]Write 4 bytes [08:17:53]NVStorageSaveData done [08:17:53]ExternCall_PrintAddStr [08:17:53]wPrintStart [08:17:53]Write to MH i2c: 01 00 00 AD 11 BE [08:17:53]Write i2c OK [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 07 00 [08:17:53]MH_I2C_Read... [08:17:53]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [08:17:53]RasterBufferAndPrint [08:17:53]line Счет N : (1)2885398 [08:17:53]line ИНН: 02508201610067 [08:17:53]line Контрольно-Кассовый Чек [08:17:53]line ПРОДАЖА [08:17:53]line ТРК (МРК, ГНК) : 51 [08:17:53]line Товар: 2710194210 [08:17:53]line ДТ-К-5 [08:17:53]line 70.000 * 0.00 [08:17:53]line = 0.00 [08:17:53]line НДС 12% НСП 1% [08:17:53]line > о реализуемом товаре [08:17:53]line ИТОГО: 0.00 [08:17:53]line НСП 1% : 0.00 [08:17:53]line НДС 12% : 0.00 [08:17:53]line Наличными: 0.00 [08:17:53]line Безнал.: 0.00 [08:17:53]line Место: АЗС № 85 "Партнер Нефть" [08:17:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:17:53]line СНО: Общий режим [08:17:53]line Чек 53 21.10.2024 08:17 [08:17:53]line Смена: 194 ФФД: 1.0 [08:17:53]line ЗНМ: 0300000167 [08:17:53]line РНМ: 0000000000156251 [08:17:53]line Версия ККМ: v1.0 [08:17:53]line Талоны: ТК ГПНА Online [08:17:53]line 30138251 [08:17:53]line ФМ: 0000000000963346 [08:17:53]line ФД: 69663 [08:17:53]line ФПД: 130348309268052 [08:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69663&fm=130348309268052&tin=02508201610067®Number=0000000000156251&sum=0 [08:17:53]OFD Sender: Processing packet 69663 [packets to send 18, broken 17] [08:17:53]ProducePacketName [08:17:53]name=ofd_packets/00069663 [08:17:53]OFD Sender: To server: pG, [08:17:53]CommunicateWithHost lk.salyk.kg:30040 [08:17:53]ConnectInit lk.salyk.kg [08:17:53]written 0, free lines is 4095 [08:17:54]Connected sock=10 [08:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 20 E8 04 01 AF E6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 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 35 00 00 00 F4 03 04 00 32 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 10 01 00 35 04 06 00 76 8D 14 AB C6 54 37 77 67 88 CF 7B 6A 5A [08:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 53 47 00 20 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 39 36 33 33 34 36 10 04 04 00 1F 10 01 00 F4 03 04 00 D6 B7 15 67 B6 04 01 00 00 70 AE 3F 6D E8 C9 AF 43 [08:17:54]CommunicateWithHost err = 0 [08:17:54]CheckOFDResponse [08:17:54]1017 (14) - 77093643461234 [08:17:54]1041 (16) - 0000000000963346 [08:17:54]1040 (4) - 69663 [08:17:54]1012 (4) - 21.10.2024 02:09 [08:17:54]1206 (1) - 0 [08:17:54]OFD Sender: Remove packet 69663 [08:17:54]ProducePacketName [08:17:54]name=ofd_packets/00069663 [08:17:54]NVStorageDeleteData [08:17:54]Write to MH i2c: 01 00 00 D7 11 E8 [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 07 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 ED 0C E8 [08:17:54]RasterBufferAndPrint [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]line [08:17:54]written 0, free lines is 3315 [08:17:54]MH_Cut [08:17:54]Write to MH i2c: D1 01 00 DE 11 01 C1 [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 01 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: D1 01 00 DE 11 00 C0 [08:17:54]Write to MH i2c: 01 00 00 DF 11 F0 [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]OFD Sender: No OFD packet to send [08:17:55]*** Cut start [08:17:55]*** Partial cut [08:17:55]*** CUTSNS_PIN = 1 [08:17:55]*** CUTSNS_PIN = 0 [08:17:55]*** Brake cut motor [08:17:55]Read from MH i2c: 01 [08:17:55]MH_I2C_Read... [08:17:55]*** Stop cut motor [08:17:55]*** Cut end [08:17:55]Read from MH i2c: 01 07 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [08:17:55]process_action close_receipt done [08:17:55]requested_data is exist [08:17:55]produce_requested_data [08:17:55]requested_item fm.sn is exist - process it [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 11 00 00 [08:17:55]Write to MH i2c: E2 08 00 E0 11 80 11 00 00 00 00 00 00 6B [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 17 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 17 00 E0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [08:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:17:55]wFMCommunicate OK [08:17:55]requested_item fd.num is exist - process it [08:17:55]SAM_PROTO_GetFieldsCounters [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 13 00 00 [08:17:55]Write to MH i2c: E2 08 00 E1 11 80 13 00 00 00 00 00 00 6E [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 62 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 62 00 E1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 10 01 00 0E 04 04 00 C2 00 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 1A [08:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 10 01 00 0E 04 04 00 C2 00 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 [08:17:55]wFMCommunicate OK [08:17:55]SAM_PROTO_GetFieldsCounters done [08:17:55]requested_item shift.num is exist - process it [08:17:55]requested_item shift.opened is exist - process it [08:17:55]req_shift_opened [08:17:55]FM_GetShiftState [08:17:55]SAM_PROTO_GetShiftState [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 13 01 00 [08:17:55]Write to MH i2c: E2 08 00 E2 11 80 13 01 00 00 00 00 00 70 [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 0E 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 0E 00 E2 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9C [08:17:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:17:55]wFMCommunicate OK [08:17:55]SAM_PROTO_GetShiftState done [08:17:55]FM_GetShiftState done [08:17:55]req_shift_opened done [08:17:55]requested_item shift.open_date is exist - process it [08:17:55]req_shift_open_date [08:17:55]req_shift_open_date done [08:17:55]produce_requested_data done [08:17:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69663,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:17:55]process_action_free close_receipt [08:17:55]json_value_free [08:17:55]json_value_free done [08:17:55]process_json_proto returns [08:17:55]Send response to host [08:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69663,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:17:55]free response buf [08:17:55]execute_script done [08:17:55]execute_script returns [08:17:55]free content buf [08:17:55]Sock 9.Close socket [08:17:55]Sock 9.Thread stoped [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:43]accept exits with 8 [08:19:43]New connection [08:19:43]New thread 3067456868 created [08:19:43]Thread 3067313508 joined [08:19:43]Waiting for new connection... [08:19:43] Sock 8.Parse request [08:19:43]Sock 8.Check first char [08:19:43]Sock 8.First char is OK [08:19:43]request: POST /json_proto HTTP/1.0 [08:19:43]Method: POST [08:19:43]URL: /json_proto [08:19:43]Method is POST - this is cgi request [08:19:43]url: /json_proto [08:19:43]query_string will be loaded in cgi processing [08:19:43]execute_cgi json_proto POST (null) [08:19:43]execute_cgi path=json_proto method=POST [08:19:43]POST find Content-Length [08:19:43]Host: 172.17.50.3:8080 [08:19:43]Content-Length: 683 [08:19:43]Content-Type: application/json [08:19:43] [08:19:43]POST finish read [08:19:43]Found Content-Length = 683 [08:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885401", "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" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:43]execute_script... [08:19: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)2885401", "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" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:43]POST & json_proto [08:19:43]process_json_proto [08:19:43]json parsed OK: [08:19:43]protocol is kg_v1.0 [08:19:43]action value=close_receipt [08:19:43]process_action close_receipt [08:19:43]cmd_close_receipt [08:19:43]MH_GetDate [08:19:43]Write to MH i2c: F0 00 00 E3 11 E3 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 E3 11 00 A2 0E 16 67 6B 98 1E 66 A0 [08:19:43]GetLastDocTimeStamp 1729498674 [08:19:43]current date 1729498786 [08:19:43]FM_GetShiftState [08:19:43]SAM_PROTO_GetShiftState [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 13 01 00 [08:19:43]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9E [08:19:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_GetShiftState done [08:19:43]FM_GetShiftState done [08:19:43]opened in 1729469703 [08:19:43]opened+sec_in_day 1729556103 [08:19:43]quantity*price = 200031 [08:19:43]sum+1 = 200032 [08:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 54 21.10.2024 08:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69664 ФПД: 108754186099496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69664&fm=108754186099496&tin=02508201610067®Number=0000000000156251&sum=200000 [08:19:44]StoreToDocumentArchive [08:19:44]shift 194 fd 69664 [08:19:44]save to /storage/0194/doc_00069664 [08:19:44]save last doc name /storage/0194/doc_00069664 to /storage/kkm_last_doc_name [08:19:44]save OK [08:19:44]Clear old archive folders... [08:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:44]tlvbuf is 00C3B190 [08:19:44]SAM_PROTO_ClearQueue [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 09 00 00 [08:19:44]Write to MH i2c: E2 08 00 F1 11 80 09 00 00 00 00 00 00 74 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]SAM_PROTO_ClearQueue done [08:19:44]KKMCreateOFDPacket [08:19:44]OFDProtocolAddRootSTLVToBuf [08:19:44]FM_MakeSignedData [08:19:44]FM_MakeSignedData [08:19:44]SAM_PROTO_SignData [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 01 02 [08:19:44]Write to MH i2c: E2 08 00 F2 11 80 0D 01 02 00 00 00 00 7C [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=255 [08:19:44]MH_SAM_APDU [08:19:44]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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 36 00 00 00 F4 03 04 00 A2 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 10 01 00 35 04 06 00 62 [08:19:44]Write to MH i2c: E2 02 01 F3 11 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 36 00 00 00 F4 03 04 00 A2 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 10 01 00 35 04 06 00 62 00 00 FF [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]OFD Sender: No OFD packet to send [08:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=10 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 02 02 05 E9 4E A1 5B 28 [08:19:44]Write to MH i2c: E2 0D 00 F4 11 80 0D 02 02 05 00 E9 4E A1 5B 28 00 00 E4 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:44]Read from MH i2c: E2 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [08:19:44]RAPDU: 90 00 [08:19:44]wFMCommunicate OK [08:19:44]wFMCommunicate request_size=4 [08:19:44]MH_SAM_APDU [08:19:44]CAPDU: 80 0D 03 02 [08:19:44]Write to MH i2c: E2 08 00 F5 11 80 0D 03 02 00 00 00 00 81 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0B 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0B 00 F5 11 00 9A 6F 23 A1 88 DB 29 99 90 00 74 [08:19:45]RAPDU: 9A 6F 23 A1 88 DB 29 99 90 00 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_SignData done [08:19:45]FM_MakeSignedData done [08:19:45]CreateOFDProtocolMessage [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 11 00 00 [08:19:45]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [08:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:19:45]wFMCommunicate OK [08:19:45]CreateOFDProtocolMessage done [08:19:45]OFDSenderStorePacket 69664 [08:19:45]StoreOFDPacket docnum=69664 [08:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4B 86 07 01 47 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 36 00 00 00 F4 03 04 00 A2 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 10 01 00 35 04 06 00 62 E9 4E A1 5B 28 9A 6F 23 A1 88 DB 29 99 [08:19:45]CheckFolder [08:19:45]dirname=/storage/ofd_packets [08:19:45]CheckFolder done [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00069664 [08:19:45]NVStorageSaveData ofd_packets/00069664 [08:19:45]File name is /storage/ofd_packets/00069664 [08:19:45]Write 301 bytes [08:19:45]NVStorageSaveData done [08:19:45]OFDSenderStorePacket done [08:19:45]KKMCreateOFDPacket done [08:19:45]NVStorageSaveData kkm_last_timestamp [08:19:45]File name is /storage/kkm_last_timestamp [08:19:45]Write 4 bytes [08:19:45]NVStorageSaveData done [08:19:45]ExternCall_PrintAddStr [08:19:45]wPrintStart [08:19:45]Write to MH i2c: 01 00 00 F7 11 08 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [08:19:45]RasterBufferAndPrint [08:19:45]line Счет N : (1)2885401 [08:19:45]line ИНН: 02508201610067 [08:19:45]line Контрольно-Кассовый Чек [08:19:45]line ПРОДАЖА [08:19:45]line ТРК (МРК, ГНК) : 32 [08:19:45]line Товар: 2710124130 [08:19:45]line Аи-92-К-5 [08:19:45]line 29.900 * 66.90 [08:19:45]line = 2000.31 [08:19:45]line НДС 12% НСП 1% [08:19:45]line > о реализуемом товаре [08:19:45]line ОКРУГЛЕНИЕ: -0.31 [08:19:45]line ИТОГО: 2000.00 [08:19:45]line Внесено: 2000.00 [08:19:45]line СДАЧА: 0.00 [08:19:45]line НСП 1% : 17.70 [08:19:45]line НДС 12% : 212.42 [08:19:45]line Наличными: 2000.00 [08:19:45]line Безнал.: 0.00 [08:19:45]line Место: АЗС № 85 "Партнер Нефть" [08:19:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:19:45]line СНО: Общий режим [08:19:45]line Чек 54 21.10.2024 08:19 [08:19:45]line Смена: 194 ФФД: 1.0 [08:19:45]line ЗНМ: 0300000167 [08:19:45]line РНМ: 0000000000156251 [08:19:45]line Версия ККМ: v1.0 [08:19:45]line ФМ: 0000000000963346 [08:19:45]line ФД: 69664 [08:19:45]line ФПД: 108754186099496 [08:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69664&fm=108754186099496&tin=02508201610067®Number=0000000000156251&sum=200000 [08:19:45]OFD Sender: Processing packet 69664 [packets to send 18, broken 17] [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00069664 [08:19:45]OFD Sender: To server: pG, [08:19:45]CommunicateWithHost lk.salyk.kg:30040 [08:19:45]ConnectInit lk.salyk.kg [08:19:45]written 0, free lines is 4095 [08:19:45]Connected sock=10 [08:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4B 86 07 01 47 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 36 00 00 00 F4 03 04 00 A2 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 10 01 00 35 04 06 00 62 E9 4E A1 5B 28 9A 6F 23 A1 88 DB 29 99 [08:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 3F 47 00 8A 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 10 01 00 F4 03 04 00 46 B8 15 67 B6 04 01 00 00 63 18 A4 97 7D 9A 20 32 [08:19:45]CommunicateWithHost err = 0 [08:19:45]CheckOFDResponse [08:19:45]1017 (14) - 77093643461234 [08:19:45]1041 (16) - 0000000000963346 [08:19:45]1040 (4) - 69664 [08:19:45]1012 (4) - 21.10.2024 02:11 [08:19:45]1206 (1) - 0 [08:19:45]OFD Sender: Remove packet 69664 [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00069664 [08:19:45]NVStorageDeleteData [08:19:45]Write to MH i2c: 01 00 00 22 12 34 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 EF 0C 36 [08:19:45]RasterBufferAndPrint [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]line [08:19:45]written 0, free lines is 3318 [08:19:45]MH_Cut [08:19:45]Write to MH i2c: D1 01 00 29 12 01 0D [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 01 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: D1 01 00 29 12 00 0C [08:19:45]Write to MH i2c: 01 00 00 2A 12 3C [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:46]OFD Sender: No OFD packet to send [08:19:46]*** Cut start [08:19:46]*** Partial cut [08:19:46]*** CUTSNS_PIN = 1 [08:19:46]*** CUTSNS_PIN = 0 [08:19:46]*** Brake cut motor [08:19:47]Read from MH i2c: 01 [08:19:47]MH_I2C_Read... [08:19:47]*** Stop cut motor [08:19:47]*** Cut end [08:19:47]Read from MH i2c: 01 07 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [08:19:47]process_action close_receipt done [08:19:47]requested_data is exist [08:19:47]produce_requested_data [08:19:47]requested_item fm.sn is exist - process it [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 11 00 00 [08:19:47]Write to MH i2c: E2 08 00 2B 12 80 11 00 00 00 00 00 00 B7 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 2B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [08:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:19:47]wFMCommunicate OK [08:19:47]requested_item fd.num is exist - process it [08:19:47]SAM_PROTO_GetFieldsCounters [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 13 00 00 [08:19:47]Write to MH i2c: E2 08 00 2C 12 80 13 00 00 00 00 00 00 BA [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 62 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 62 00 2C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 10 01 00 0E 04 04 00 C2 00 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 6A [08:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 10 01 00 0E 04 04 00 C2 00 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 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_GetFieldsCounters done [08:19:47]requested_item shift.num is exist - process it [08:19:47]requested_item shift.opened is exist - process it [08:19:47]req_shift_opened [08:19:47]FM_GetShiftState [08:19:47]SAM_PROTO_GetShiftState [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 13 01 00 [08:19:47]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E8 [08:19:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_GetShiftState done [08:19:47]FM_GetShiftState done [08:19:47]req_shift_opened done [08:19:47]requested_item shift.open_date is exist - process it [08:19:47]req_shift_open_date [08:19:47]req_shift_open_date done [08:19:47]produce_requested_data done [08:19:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69664,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:19:47]process_action_free close_receipt [08:19:47]json_value_free [08:19:47]json_value_free done [08:19:47]process_json_proto returns [08:19:47]Send response to host [08:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69664,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:19:47]free response buf [08:19:47]execute_script done [08:19:47]execute_script returns [08:19:47]free content buf [08:19:47]Sock 8.Close socket [08:19:47]Sock 8.Thread stoped [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [08:20:48]accept exits with 9 [08:20:48]New connection [08:20:48]New thread 3067313508 created [08:20:48]Thread 3067456868 joined [08:20:48]Waiting for new connection... [08:20:48] Sock 9.Parse request [08:20:48]Sock 9.Check first char [08:20:48]Sock 9.First char is OK [08:20:48]request: POST /json_proto HTTP/1.0 [08:20:48]Method: POST [08:20:48]URL: /json_proto [08:20:48]Method is POST - this is cgi request [08:20:48]url: /json_proto [08:20:48]query_string will be loaded in cgi processing [08:20:48]execute_cgi json_proto POST (null) [08:20:48]execute_cgi path=json_proto method=POST [08:20:48]POST find Content-Length [08:20:48]Host: 172.17.50.3:8080 [08:20:48]Content-Length: 680 [08:20:48]Content-Type: application/json [08:20:48] [08:20:48]POST finish read [08:20:48]Found Content-Length = 680 [08:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:20:48]execute_script... [08:20: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)2885402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:20:48]POST & json_proto [08:20:48]process_json_proto [08:20:48]json parsed OK: [08:20:48]protocol is kg_v1.0 [08:20:48]action value=close_receipt [08:20:48]process_action close_receipt [08:20:48]cmd_close_receipt [08:20:48]MH_GetDate [08:20:48]Write to MH i2c: F0 00 00 2E 12 2F [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: F0 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: F0 09 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: F0 09 00 2E 12 00 E3 0E 16 67 6B 98 1E 66 2D [08:20:48]GetLastDocTimeStamp 1729498786 [08:20:48]current date 1729498851 [08:20:48]FM_GetShiftState [08:20:48]SAM_PROTO_GetShiftState [08:20:48]wFMCommunicate request_size=4 [08:20:48]MH_SAM_APDU [08:20:48]CAPDU: 80 13 01 00 [08:20:48]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:48]Read from MH i2c: E2 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 0E 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EA [08:20:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:20:48]wFMCommunicate OK [08:20:48]SAM_PROTO_GetShiftState done [08:20:48]FM_GetShiftState done [08:20:48]opened in 1729469703 [08:20:48]opened+sec_in_day 1729556103 [08:20:48]quantity*price = 100050 [08:20:48]sum+1 = 100052 [08:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 55 21.10.2024 08:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69665 ФПД: 219436808330604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69665&fm=219436808330604&tin=02508201610067®Number=0000000000156251&sum=100000 [08:20:50]StoreToDocumentArchive [08:20:50]shift 194 fd 69665 [08:20:50]save to /storage/0194/doc_00069665 [08:20:50]save last doc name /storage/0194/doc_00069665 to /storage/kkm_last_doc_name [08:20:50]save OK [08:20:50]Clear old archive folders... [08:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:20:50]tlvbuf is 00C5AB60 [08:20:50]SAM_PROTO_ClearQueue [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 09 00 00 [08:20:50]Write to MH i2c: E2 08 00 3C 12 80 09 00 00 00 00 00 00 C0 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [08:20:50]RAPDU: 90 00 [08:20:50]wFMCommunicate OK [08:20:50]SAM_PROTO_ClearQueue done [08:20:50]KKMCreateOFDPacket [08:20:50]OFDProtocolAddRootSTLVToBuf [08:20:50]FM_MakeSignedData [08:20:50]FM_MakeSignedData [08:20:50]SAM_PROTO_SignData [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 0D 01 02 [08:20:50]Write to MH i2c: E2 08 00 3D 12 80 0D 01 02 00 00 00 00 C8 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [08:20:50]RAPDU: 90 00 [08:20:50]wFMCommunicate OK [08:20:50]wFMCommunicate request_size=255 [08:20:50]MH_SAM_APDU [08:20:50]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 32 31 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 37 00 00 00 F4 03 04 00 E3 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 10 01 00 35 04 06 00 C7 93 9D 02 [08:20:50]Write to MH i2c: E2 02 01 3E 12 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 32 31 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 37 00 00 00 F4 03 04 00 E3 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 10 01 00 35 04 06 00 C7 93 9D 02 00 00 D9 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [08:20:50]RAPDU: 90 00 [08:20:50]wFMCommunicate OK [08:20:50]wFMCommunicate request_size=7 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 0D 02 02 02 DD 6C [08:20:50]Write to MH i2c: E2 0A 00 3F 12 80 0D 02 02 02 00 DD 6C 00 00 18 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [08:20:50]RAPDU: 90 00 [08:20:50]wFMCommunicate OK [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 0D 03 02 [08:20:50]Write to MH i2c: E2 08 00 40 12 80 0D 03 02 00 00 00 00 CD [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 0B 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 0B 00 40 12 00 74 5B F8 62 2D 74 54 ED 90 00 D9 [08:20:50]RAPDU: 74 5B F8 62 2D 74 54 ED 90 00 [08:20:50]wFMCommunicate OK [08:20:50]SAM_PROTO_SignData done [08:20:50]FM_MakeSignedData done [08:20:50]CreateOFDProtocolMessage [08:20:50]wFMCommunicate request_size=4 [08:20:50]MH_SAM_APDU [08:20:50]CAPDU: 80 11 00 00 [08:20:50]Write to MH i2c: E2 08 00 41 12 80 11 00 00 00 00 00 00 CD [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:50]Read from MH i2c: E2 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 17 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: E2 17 00 41 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [08:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:20:50]wFMCommunicate OK [08:20:50]CreateOFDProtocolMessage done [08:20:50]OFDSenderStorePacket 69665 [08:20:50]StoreOFDPacket docnum=69665 [08:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F7 41 04 01 95 74 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 32 31 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 37 00 00 00 F4 03 04 00 E3 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 10 01 00 35 04 06 00 C7 93 9D 02 DD 6C 74 5B F8 62 2D 74 54 ED [08:20:50]CheckFolder [08:20:50]dirname=/storage/ofd_packets [08:20:50]CheckFolder done [08:20:50]ProducePacketName [08:20:50]name=ofd_packets/00069665 [08:20:50]NVStorageSaveData ofd_packets/00069665 [08:20:50]File name is /storage/ofd_packets/00069665 [08:20:50]Write 298 bytes [08:20:50]NVStorageSaveData done [08:20:50]OFDSenderStorePacket done [08:20:50]KKMCreateOFDPacket done [08:20:50]NVStorageSaveData kkm_last_timestamp [08:20:50]File name is /storage/kkm_last_timestamp [08:20:50]Write 4 bytes [08:20:50]NVStorageSaveData done [08:20:50]ExternCall_PrintAddStr [08:20:50]wPrintStart [08:20:50]Write to MH i2c: 01 00 00 42 12 54 [08:20:50]Write i2c OK [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: 01 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: 01 07 00 [08:20:50]MH_I2C_Read... [08:20:50]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [08:20:50]RasterBufferAndPrint [08:20:50]line Счет N : (1)2885402 [08:20:50]line ИНН: 02508201610067 [08:20:50]line Контрольно-Кассовый Чек [08:20:50]line ПРОДАЖА [08:20:50]line ТРК (МРК, ГНК) : 51 [08:20:50]line Товар: 2710194210 [08:20:50]line ДТ-К-5 [08:20:50]line 13.130 * 76.20 [08:20:50]line = 1000.51 [08:20:50]line НДС 12% НСП 1% [08:20:50]line > о реализуемом товаре [08:20:50]line ОКРУГЛЕНИЕ: -0.51 [08:20:50]line ИТОГО: 1000.00 [08:20:50]line Внесено: 1000.00 [08:20:50]line СДАЧА: 0.00 [08:20:50]line НСП 1% : 8.85 [08:20:50]line НДС 12% : 106.25 [08:20:50]line Наличными: 1000.00 [08:20:50]line Безнал.: 0.00 [08:20:50]line Место: АЗС № 85 "Партнер Нефть" [08:20:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:20:50]line СНО: Общий режим [08:20:50]line Чек 55 21.10.2024 08:20 [08:20:50]line Смена: 194 ФФД: 1.0 [08:20:50]line ЗНМ: 0300000167 [08:20:50]line РНМ: 0000000000156251 [08:20:50]line Версия ККМ: v1.0 [08:20:50]line ФМ: 0000000000963346 [08:20:50]line ФД: 69665 [08:20:50]line ФПД: 219436808330604 [08:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69665&fm=219436808330604&tin=02508201610067®Number=0000000000156251&sum=100000 [08:20:50]OFD Sender: Processing packet 69665 [packets to send 18, broken 17] [08:20:50]ProducePacketName [08:20:50]name=ofd_packets/00069665 [08:20:50]OFD Sender: To server: pG, [08:20:50]CommunicateWithHost lk.salyk.kg:30040 [08:20:50]ConnectInit lk.salyk.kg [08:20:50]written 0, free lines is 4095 [08:20:50]Connected sock=10 [08:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F7 41 04 01 95 74 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 32 31 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 37 00 00 00 F4 03 04 00 E3 0E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 10 01 00 35 04 06 00 C7 93 9D 02 DD 6C 74 5B F8 62 2D 74 54 ED [08:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 51 C6 47 00 B8 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 10 01 00 F4 03 04 00 87 B8 15 67 B6 04 01 00 00 C8 CF B1 19 32 23 EB 1B [08:20:51]CommunicateWithHost err = 0 [08:20:51]CheckOFDResponse [08:20:51]1017 (14) - 77093643461234 [08:20:51]1041 (16) - 0000000000963346 [08:20:51]1040 (4) - 69665 [08:20:51]1012 (4) - 21.10.2024 02:12 [08:20:51]1206 (1) - 0 [08:20:51]OFD Sender: Remove packet 69665 [08:20:51]ProducePacketName [08:20:51]name=ofd_packets/00069665 [08:20:51]NVStorageDeleteData [08:20:51]Write to MH i2c: 01 00 00 6D 12 7F [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 07 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 F3 0C 85 [08:20:51]RasterBufferAndPrint [08:20:51]line [08:20:51]line [08:20:51]line [08:20:51]line [08:20:51]line [08:20:51]written 0, free lines is 3321 [08:20:51]MH_Cut [08:20:51]Write to MH i2c: D1 01 00 74 12 01 58 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: D1 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: D1 01 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: D1 01 00 74 12 00 57 [08:20:51]Write to MH i2c: 01 00 00 75 12 87 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]OFD Sender: No OFD packet to send [08:20:52]*** Cut start [08:20:52]*** Partial cut [08:20:52]*** CUTSNS_PIN = 1 [08:20:52]*** CUTSNS_PIN = 0 [08:20:52]*** Brake cut motor [08:20:52]Read from MH i2c: 01 [08:20:52]MH_I2C_Read... [08:20:52]*** Stop cut motor [08:20:52]*** Cut end [08:20:52]Read from MH i2c: 01 07 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 FF 0F 9C [08:20:52]process_action close_receipt done [08:20:52]requested_data is exist [08:20:52]produce_requested_data [08:20:52]requested_item fm.sn is exist - process it [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 11 00 00 [08:20:52]Write to MH i2c: E2 08 00 76 12 80 11 00 00 00 00 00 00 02 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 17 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 17 00 76 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [08:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:20:52]wFMCommunicate OK [08:20:52]requested_item fd.num is exist - process it [08:20:52]SAM_PROTO_GetFieldsCounters [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 13 00 00 [08:20:52]Write to MH i2c: E2 08 00 77 12 80 13 00 00 00 00 00 00 05 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 62 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 62 00 77 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 10 01 00 0E 04 04 00 C2 00 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 B9 [08:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 10 01 00 0E 04 04 00 C2 00 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 [08:20:52]wFMCommunicate OK [08:20:52]SAM_PROTO_GetFieldsCounters done [08:20:52]requested_item shift.num is exist - process it [08:20:52]requested_item shift.opened is exist - process it [08:20:52]req_shift_opened [08:20:52]FM_GetShiftState [08:20:52]SAM_PROTO_GetShiftState [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 13 01 00 [08:20:52]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 0E 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 33 [08:20:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:20:52]wFMCommunicate OK [08:20:52]SAM_PROTO_GetShiftState done [08:20:52]FM_GetShiftState done [08:20:52]req_shift_opened done [08:20:52]requested_item shift.open_date is exist - process it [08:20:52]req_shift_open_date [08:20:52]req_shift_open_date done [08:20:52]produce_requested_data done [08:20:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69665,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:20:52]process_action_free close_receipt [08:20:52]json_value_free [08:20:52]json_value_free done [08:20:52]process_json_proto returns [08:20:52]Send response to host [08:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69665,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:20:52]free response buf [08:20:52]execute_script done [08:20:52]execute_script returns [08:20:52]free content buf [08:20:52]Sock 9.Close socket [08:20:52]Sock 9.Thread stoped [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:54]accept exits with 8 [08:21:54]New connection [08:21:54]New thread 3067456868 created [08:21:54]Thread 3067313508 joined [08:21:54]Waiting for new connection... [08:21:54] Sock 8.Parse request [08:21:54]Sock 8.Check first char [08:21:54]Sock 8.First char is OK [08:21:54]request: POST /json_proto HTTP/1.0 [08:21:54]Method: POST [08:21:54]URL: /json_proto [08:21:54]Method is POST - this is cgi request [08:21:54]url: /json_proto [08:21:54]query_string will be loaded in cgi processing [08:21:54]execute_cgi json_proto POST (null) [08:21:54]execute_cgi path=json_proto method=POST [08:21:54]POST find Content-Length [08:21:54]Host: 172.17.50.3:8080 [08:21:54]Content-Length: 683 [08:21:54]Content-Type: application/json [08:21:54] [08:21:54]POST finish read [08:21:54]Found Content-Length = 683 [08:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [08:21:54]execute_script... [08:21: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)2885403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [08:21:54]POST & json_proto [08:21:54]process_json_proto [08:21:54]json parsed OK: [08:21:54]protocol is kg_v1.0 [08:21:54]action value=close_receipt [08:21:54]process_action close_receipt [08:21:54]cmd_close_receipt [08:21:54]MH_GetDate [08:21:54]Write to MH i2c: F0 00 00 79 12 7A [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: F0 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: F0 09 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: F0 09 00 79 12 00 25 0F 16 67 6B 98 1E 66 BB [08:21:54]GetLastDocTimeStamp 1729498851 [08:21:54]current date 1729498917 [08:21:54]FM_GetShiftState [08:21:54]SAM_PROTO_GetShiftState [08:21:54]wFMCommunicate request_size=4 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 13 01 00 [08:21:54]Write to MH i2c: E2 08 00 7A 12 80 13 01 00 00 00 00 00 09 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 0E 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 0E 00 7A 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 35 [08:21:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:21:54]wFMCommunicate OK [08:21:54]SAM_PROTO_GetShiftState done [08:21:54]FM_GetShiftState done [08:21:54]opened in 1729469703 [08:21:54]opened+sec_in_day 1729556103 [08:21:54]quantity*price = 250054 [08:21:54]sum+1 = 250055 [08:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 56 21.10.2024 08:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69666 ФПД: 197337321622316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082157&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69666&fm=197337321622316&tin=02508201610067®Number=0000000000156251&sum=250000 [08:21:56]StoreToDocumentArchive [08:21:56]shift 194 fd 69666 [08:21:56]save to /storage/0194/doc_00069666 [08:21:56]save last doc name /storage/0194/doc_00069666 to /storage/kkm_last_doc_name [08:21:56]save OK [08:21:56]Clear old archive folders... [08:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:56]tlvbuf is 00C7F010 [08:21:56]SAM_PROTO_ClearQueue [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 09 00 00 [08:21:56]Write to MH i2c: E2 08 00 87 12 80 09 00 00 00 00 00 00 0B [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [08:21:56]RAPDU: 90 00 [08:21:56]wFMCommunicate OK [08:21:56]SAM_PROTO_ClearQueue done [08:21:56]KKMCreateOFDPacket [08:21:56]OFDProtocolAddRootSTLVToBuf [08:21:56]FM_MakeSignedData [08:21:56]FM_MakeSignedData [08:21:56]SAM_PROTO_SignData [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 0D 01 02 [08:21:56]Write to MH i2c: E2 08 00 88 12 80 0D 01 02 00 00 00 00 13 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [08:21:56]RAPDU: 90 00 [08:21:56]wFMCommunicate OK [08:21:56]wFMCommunicate request_size=255 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 38 00 00 00 F4 03 04 00 25 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 10 01 00 35 04 06 00 B3 [08:21:56]Write to MH i2c: E2 02 01 89 12 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 38 00 00 00 F4 03 04 00 25 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 10 01 00 35 04 06 00 B3 00 00 18 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [08:21:56]RAPDU: 90 00 [08:21:56]wFMCommunicate OK [08:21:56]wFMCommunicate request_size=10 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 0D 02 02 05 7A 2C F4 CB 2C [08:21:56]Write to MH i2c: E2 0D 00 8A 12 80 0D 02 02 05 00 7A 2C F4 CB 2C 00 00 B1 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [08:21:56]RAPDU: 90 00 [08:21:56]wFMCommunicate OK [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 0D 03 02 [08:21:56]Write to MH i2c: E2 08 00 8B 12 80 0D 03 02 00 00 00 00 18 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0B 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0B 00 8B 12 00 4F 0B D4 CF 0E C7 92 2C 90 00 A9 [08:21:56]RAPDU: 4F 0B D4 CF 0E C7 92 2C 90 00 [08:21:56]wFMCommunicate OK [08:21:56]SAM_PROTO_SignData done [08:21:56]FM_MakeSignedData done [08:21:56]CreateOFDProtocolMessage [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 11 00 00 [08:21:56]Write to MH i2c: E2 08 00 8C 12 80 11 00 00 00 00 00 00 18 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 17 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 17 00 8C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [08:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:21:56]wFMCommunicate OK [08:21:56]CreateOFDProtocolMessage done [08:21:56]OFDSenderStorePacket 69666 [08:21:56]StoreOFDPacket docnum=69666 [08:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 A2 07 01 D4 FF 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 38 00 00 00 F4 03 04 00 25 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 10 01 00 35 04 06 00 B3 7A 2C F4 CB 2C 4F 0B D4 CF 0E C7 92 2C [08:21:56]CheckFolder [08:21:56]dirname=/storage/ofd_packets [08:21:56]CheckFolder done [08:21:56]ProducePacketName [08:21:56]name=ofd_packets/00069666 [08:21:56]NVStorageSaveData ofd_packets/00069666 [08:21:56]File name is /storage/ofd_packets/00069666 [08:21:56]Write 301 bytes [08:21:56]NVStorageSaveData done [08:21:56]OFDSenderStorePacket done [08:21:56]KKMCreateOFDPacket done [08:21:56]NVStorageSaveData kkm_last_timestamp [08:21:56]File name is /storage/kkm_last_timestamp [08:21:56]Write 4 bytes [08:21:56]NVStorageSaveData done [08:21:56]ExternCall_PrintAddStr [08:21:56]wPrintStart [08:21:56]Write to MH i2c: 01 00 00 8D 12 9F [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: 01 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: 01 07 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 FF 0F B4 [08:21:56]RasterBufferAndPrint [08:21:56]line Счет N : (1)2885403 [08:21:56]line ИНН: 02508201610067 [08:21:56]line Контрольно-Кассовый Чек [08:21:56]line ПРОДАЖА [08:21:56]line ТРК (МРК, ГНК) : 13 [08:21:56]line Товар: 2710124500 [08:21:56]line Аи-95-К-5 [08:21:56]line 33.700 * 74.20 [08:21:56]line = 2500.54 [08:21:56]line НДС 12% НСП 1% [08:21:56]line > о реализуемом товаре [08:21:56]line ОКРУГЛЕНИЕ: -0.54 [08:21:56]line ИТОГО: 2500.00 [08:21:56]line Внесено: 2500.00 [08:21:56]line СДАЧА: 0.00 [08:21:56]line НСП 1% : 22.13 [08:21:56]line НДС 12% : 265.54 [08:21:56]line Наличными: 2500.00 [08:21:56]line Безнал.: 0.00 [08:21:56]line Место: АЗС № 85 "Партнер Нефть" [08:21:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:21:56]line СНО: Общий режим [08:21:56]line Чек 56 21.10.2024 08:21 [08:21:56]line Смена: 194 ФФД: 1.0 [08:21:56]line ЗНМ: 0300000167 [08:21:56]line РНМ: 0000000000156251 [08:21:56]line Версия ККМ: v1.0 [08:21:56]line ФМ: 0000000000963346 [08:21:56]line ФД: 69666 [08:21:56]line ФПД: 197337321622316 [08:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082157&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69666&fm=197337321622316&tin=02508201610067®Number=0000000000156251&sum=250000 [08:21:56]OFD Sender: Processing packet 69666 [packets to send 18, broken 17] [08:21:56]ProducePacketName [08:21:56]name=ofd_packets/00069666 [08:21:56]OFD Sender: To server: pG, [08:21:56]CommunicateWithHost lk.salyk.kg:30040 [08:21:56]ConnectInit lk.salyk.kg [08:21:56]written 0, free lines is 4095 [08:21:56]Connected sock=10 [08:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 A2 07 01 D4 FF 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 38 00 00 00 F4 03 04 00 25 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 10 01 00 35 04 06 00 B3 7A 2C F4 CB 2C 4F 0B D4 CF 0E C7 92 2C [08:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 03 47 00 C3 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 10 01 00 F4 03 04 00 C9 B8 15 67 B6 04 01 00 00 F5 41 74 5F 93 08 A7 62 [08:21:57]CommunicateWithHost err = 0 [08:21:57]CheckOFDResponse [08:21:57]1017 (14) - 77093643461234 [08:21:57]1041 (16) - 0000000000963346 [08:21:57]1040 (4) - 69666 [08:21:57]1012 (4) - 21.10.2024 02:13 [08:21:57]1206 (1) - 0 [08:21:57]OFD Sender: Remove packet 69666 [08:21:57]ProducePacketName [08:21:57]name=ofd_packets/00069666 [08:21:57]NVStorageDeleteData [08:21:57]Write to MH i2c: 01 00 00 B8 12 CA [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: 01 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: 01 07 00 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: 01 07 00 B8 12 00 00 00 00 00 01 0D DF [08:21:57]RasterBufferAndPrint [08:21:57]line [08:21:57]line [08:21:57]line [08:21:57]line [08:21:57]line [08:21:57]written 0, free lines is 3338 [08:21:57]MH_Cut [08:21:57]Write to MH i2c: D1 01 00 BF 12 01 A3 [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: D1 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: D1 01 00 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: D1 01 00 BF 12 00 A2 [08:21:57]Write to MH i2c: 01 00 00 C0 12 D2 [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:57]OFD Sender: No OFD packet to send [08:21:58]*** Cut start [08:21:58]*** Partial cut [08:21:58]*** CUTSNS_PIN = 1 [08:21:58]*** CUTSNS_PIN = 0 [08:21:58]*** Brake cut motor [08:21:58]Read from MH i2c: 01 [08:21:58]MH_I2C_Read... [08:21:58]*** Stop cut motor [08:21:58]*** Cut end [08:21:58]Read from MH i2c: 01 07 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 FF 0F E7 [08:21:58]process_action close_receipt done [08:21:58]requested_data is exist [08:21:58]produce_requested_data [08:21:58]requested_item fm.sn is exist - process it [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 11 00 00 [08:21:58]Write to MH i2c: E2 08 00 C1 12 80 11 00 00 00 00 00 00 4D [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 C1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [08:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:21:58]wFMCommunicate OK [08:21:58]requested_item fd.num is exist - process it [08:21:58]SAM_PROTO_GetFieldsCounters [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 13 00 00 [08:21:58]Write to MH i2c: E2 08 00 C2 12 80 13 00 00 00 00 00 00 50 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 62 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 62 00 C2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 10 01 00 0E 04 04 00 C2 00 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 08 [08:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 10 01 00 0E 04 04 00 C2 00 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 [08:21:58]wFMCommunicate OK [08:21:58]SAM_PROTO_GetFieldsCounters done [08:21:58]requested_item shift.num is exist - process it [08:21:58]requested_item shift.opened is exist - process it [08:21:58]req_shift_opened [08:21:58]FM_GetShiftState [08:21:58]SAM_PROTO_GetShiftState [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 13 01 00 [08:21:58]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 0E 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7E [08:21:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:21:58]wFMCommunicate OK [08:21:58]SAM_PROTO_GetShiftState done [08:21:58]FM_GetShiftState done [08:21:58]req_shift_opened done [08:21:58]requested_item shift.open_date is exist - process it [08:21:58]req_shift_open_date [08:21:58]req_shift_open_date done [08:21:58]produce_requested_data done [08:21:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69666,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:21:58]process_action_free close_receipt [08:21:58]json_value_free [08:21:58]json_value_free done [08:21:58]process_json_proto returns [08:21:58]Send response to host [08:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69666,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:21:58]free response buf [08:21:58]execute_script done [08:21:58]execute_script returns [08:21:58]free content buf [08:21:58]Sock 8.Close socket [08:21:58]Sock 8.Thread stoped [08:21:59]accept exits with 9 [08:21:59]New connection [08:21:59]New thread 3067313508 created [08:21:59]Thread 3067456868 joined [08:21:59]Waiting for new connection... [08:21:59] Sock 9.Parse request [08:21:59]Sock 9.Check first char [08:21:59]Sock 9.First char is OK [08:21:59]request: POST /json_proto HTTP/1.0 [08:21:59]Method: POST [08:21:59]URL: /json_proto [08:21:59]Method is POST - this is cgi request [08:21:59]url: /json_proto [08:21:59]query_string will be loaded in cgi processing [08:21:59]execute_cgi json_proto POST (null) [08:21:59]execute_cgi path=json_proto method=POST [08:21:59]POST find Content-Length [08:21:59]Host: 172.17.50.3:8080 [08:21:59]Content-Length: 683 [08:21:59]Content-Type: application/json [08:21:59] [08:21:59]POST finish read [08:21:59]Found Content-Length = 683 [08:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:59]execute_script... [08:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:59]POST & json_proto [08:21:59]process_json_proto [08:21:59]json parsed OK: [08:21:59]protocol is kg_v1.0 [08:21:59]action value=close_receipt [08:21:59]process_action close_receipt [08:21:59]cmd_close_receipt [08:21:59]MH_GetDate [08:21:59]Write to MH i2c: F0 00 00 C4 12 C5 [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 09 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: F0 09 00 C4 12 00 2A 0F 16 67 6B 98 1E 66 0B [08:21:59]GetLastDocTimeStamp 1729498917 [08:21:59]current date 1729498922 [08:21:59]FM_GetShiftState [08:21:59]SAM_PROTO_GetShiftState [08:21:59]wFMCommunicate request_size=4 [08:21:59]MH_SAM_APDU [08:21:59]CAPDU: 80 13 01 00 [08:21:59]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:59]Read from MH i2c: E2 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 80 [08:21:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:21:59]wFMCommunicate OK [08:21:59]SAM_PROTO_GetShiftState done [08:21:59]FM_GetShiftState done [08:21:59]opened in 1729469703 [08:21:59]opened+sec_in_day 1729556103 [08:21:59]quantity*price = 100015 [08:21:59]sum+1 = 100017 [08:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 57 21.10.2024 08:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69667 ФПД: 5752208088368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082202&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69667&fm=5752208088368&tin=02508201610067®Number=0000000000156251&sum=100000 [08:22:00]StoreToDocumentArchive [08:22:00]shift 194 fd 69667 [08:22:00]save to /storage/0194/doc_00069667 [08:22:00]save last doc name /storage/0194/doc_00069667 to /storage/kkm_last_doc_name [08:22:00]save OK [08:22:00]Clear old archive folders... [08:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:00]tlvbuf is 00C9D900 [08:22:00]SAM_PROTO_ClearQueue [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 09 00 00 [08:22:00]Write to MH i2c: E2 08 00 D2 12 80 09 00 00 00 00 00 00 56 [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [08:22:00]RAPDU: 90 00 [08:22:00]wFMCommunicate OK [08:22:00]SAM_PROTO_ClearQueue done [08:22:00]KKMCreateOFDPacket [08:22:00]OFDProtocolAddRootSTLVToBuf [08:22:00]FM_MakeSignedData [08:22:00]FM_MakeSignedData [08:22:00]SAM_PROTO_SignData [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 0D 01 02 [08:22:00]Write to MH i2c: E2 08 00 D3 12 80 0D 01 02 00 00 00 00 5E [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [08:22:00]RAPDU: 90 00 [08:22:00]wFMCommunicate OK [08:22:00]wFMCommunicate request_size=255 [08:22:00]MH_SAM_APDU [08:22:00]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2A 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 10 01 00 35 04 06 00 05 [08:22:00]Write to MH i2c: E2 02 01 D4 12 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2A 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 10 01 00 35 04 06 00 05 00 00 CB [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [08:22:01]RAPDU: 90 00 [08:22:01]wFMCommunicate OK [08:22:01]wFMCommunicate request_size=10 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 0D 02 02 05 3B 4A 51 DD 30 [08:22:01]Write to MH i2c: E2 0D 00 D5 12 80 0D 02 02 05 00 3B 4A 51 DD 30 00 00 4E [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [08:22:01]RAPDU: 90 00 [08:22:01]wFMCommunicate OK [08:22:01]wFMCommunicate request_size=4 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 0D 03 02 [08:22:01]Write to MH i2c: E2 08 00 D6 12 80 0D 03 02 00 00 00 00 63 [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 0B 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 0B 00 D6 12 00 81 9F 24 3A 38 B7 15 49 90 00 2F [08:22:01]RAPDU: 81 9F 24 3A 38 B7 15 49 90 00 [08:22:01]wFMCommunicate OK [08:22:01]SAM_PROTO_SignData done [08:22:01]FM_MakeSignedData done [08:22:01]CreateOFDProtocolMessage [08:22:01]wFMCommunicate request_size=4 [08:22:01]MH_SAM_APDU [08:22:01]CAPDU: 80 11 00 00 [08:22:01]Write to MH i2c: E2 08 00 D7 12 80 11 00 00 00 00 00 00 63 [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:01]Read from MH i2c: E2 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 17 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: E2 17 00 D7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [08:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:22:01]wFMCommunicate OK [08:22:01]CreateOFDProtocolMessage done [08:22:01]OFDSenderStorePacket 69667 [08:22:01]StoreOFDPacket docnum=69667 [08:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 69 8A 07 01 A6 D5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2A 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 10 01 00 35 04 06 00 05 3B 4A 51 DD 30 81 9F 24 3A 38 B7 15 49 [08:22:01]CheckFolder [08:22:01]dirname=/storage/ofd_packets [08:22:01]CheckFolder done [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00069667 [08:22:01]NVStorageSaveData ofd_packets/00069667 [08:22:01]File name is /storage/ofd_packets/00069667 [08:22:01]Write 301 bytes [08:22:01]NVStorageSaveData done [08:22:01]OFDSenderStorePacket done [08:22:01]KKMCreateOFDPacket done [08:22:01]NVStorageSaveData kkm_last_timestamp [08:22:01]File name is /storage/kkm_last_timestamp [08:22:01]Write 4 bytes [08:22:01]NVStorageSaveData done [08:22:01]ExternCall_PrintAddStr [08:22:01]wPrintStart [08:22:01]Write to MH i2c: 01 00 00 D8 12 EA [08:22:01]Write i2c OK [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 07 00 [08:22:01]MH_I2C_Read... [08:22:01]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 FF 0F FF [08:22:01]RasterBufferAndPrint [08:22:01]line Счет N : (1)2885404 [08:22:01]line ИНН: 02508201610067 [08:22:01]line Контрольно-Кассовый Чек [08:22:01]line ПРОДАЖА [08:22:01]line ТРК (МРК, ГНК) : 22 [08:22:01]line Товар: 2710124130 [08:22:01]line Аи-92-К-5 [08:22:01]line 14.950 * 66.90 [08:22:01]line = 1000.16 [08:22:01]line НДС 12% НСП 1% [08:22:01]line > о реализуемом товаре [08:22:01]line ОКРУГЛЕНИЕ: -0.16 [08:22:01]line ИТОГО: 1000.00 [08:22:01]line Внесено: 1000.00 [08:22:01]line СДАЧА: 0.00 [08:22:01]line НСП 1% : 8.85 [08:22:01]line НДС 12% : 106.21 [08:22:01]line Наличными: 1000.00 [08:22:01]line Безнал.: 0.00 [08:22:01]line Место: АЗС № 85 "Партнер Нефть" [08:22:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:22:01]line СНО: Общий режим [08:22:01]line Чек 57 21.10.2024 08:22 [08:22:01]line Смена: 194 ФФД: 1.0 [08:22:01]line ЗНМ: 0300000167 [08:22:01]line РНМ: 0000000000156251 [08:22:01]line Версия ККМ: v1.0 [08:22:01]line ФМ: 0000000000963346 [08:22:01]line ФД: 69667 [08:22:01]line ФПД: 5752208088368 [08:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082202&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69667&fm=5752208088368&tin=02508201610067®Number=0000000000156251&sum=100000 [08:22:01]OFD Sender: Processing packet 69667 [packets to send 18, broken 17] [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00069667 [08:22:01]OFD Sender: To server: pG, [08:22:01]CommunicateWithHost lk.salyk.kg:30040 [08:22:01]ConnectInit lk.salyk.kg [08:22:01]written 0, free lines is 4095 [08:22:01]Connected sock=10 [08:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 69 8A 07 01 A6 D5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2A 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 10 01 00 35 04 06 00 05 3B 4A 51 DD 30 81 9F 24 3A 38 B7 15 49 [08:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D6 5A 47 00 A5 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 10 01 00 F4 03 04 00 CE B8 15 67 B6 04 01 00 00 47 A7 D4 4B 45 D9 B9 FC [08:22:01]CommunicateWithHost err = 0 [08:22:01]CheckOFDResponse [08:22:01]1017 (14) - 77093643461234 [08:22:01]1041 (16) - 0000000000963346 [08:22:01]1040 (4) - 69667 [08:22:01]1012 (4) - 21.10.2024 02:13 [08:22:01]1206 (1) - 0 [08:22:01]OFD Sender: Remove packet 69667 [08:22:01]ProducePacketName [08:22:01]name=ofd_packets/00069667 [08:22:01]NVStorageDeleteData [08:22:02]Write to MH i2c: 01 00 00 03 13 16 [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 07 00 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 FB 0C 24 [08:22:02]RasterBufferAndPrint [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]line [08:22:02]written 0, free lines is 3338 [08:22:02]MH_Cut [08:22:02]Write to MH i2c: D1 01 00 0A 13 01 EF [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 01 00 [08:22:02]MH_I2C_Read... [08:22:02]Read from MH i2c: D1 01 00 0A 13 00 EE [08:22:02]Write to MH i2c: 01 00 00 0B 13 1E [08:22:02]Write i2c OK [08:22:02]MH_I2C_Read... [08:22:02]OFD Sender: No OFD packet to send [08:22:02]*** Cut start [08:22:02]*** Partial cut [08:22:02]*** CUTSNS_PIN = 1 [08:22:02]*** CUTSNS_PIN = 0 [08:22:03]*** Brake cut motor [08:22:03]Read from MH i2c: 01 [08:22:03]MH_I2C_Read... [08:22:03]*** Stop cut motor [08:22:03]*** Cut end [08:22:03]Read from MH i2c: 01 07 00 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [08:22:03]process_action close_receipt done [08:22:03]requested_data is exist [08:22:03]produce_requested_data [08:22:03]requested_item fm.sn is exist - process it [08:22:03]wFMCommunicate request_size=4 [08:22:03]MH_SAM_APDU [08:22:03]CAPDU: 80 11 00 00 [08:22:03]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [08:22:03]Write i2c OK [08:22:03]MH_I2C_Read... [08:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:03]Read from MH i2c: E2 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 17 00 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [08:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:22:03]wFMCommunicate OK [08:22:03]requested_item fd.num is exist - process it [08:22:03]SAM_PROTO_GetFieldsCounters [08:22:03]wFMCommunicate request_size=4 [08:22:03]MH_SAM_APDU [08:22:03]CAPDU: 80 13 00 00 [08:22:03]Write to MH i2c: E2 08 00 0D 13 80 13 00 00 00 00 00 00 9C [08:22:03]Write i2c OK [08:22:03]MH_I2C_Read... [08:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:03]Read from MH i2c: E2 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 62 00 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 62 00 0D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 10 01 00 0E 04 04 00 C2 00 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 58 [08:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 10 01 00 0E 04 04 00 C2 00 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 [08:22:03]wFMCommunicate OK [08:22:03]SAM_PROTO_GetFieldsCounters done [08:22:03]requested_item shift.num is exist - process it [08:22:03]requested_item shift.opened is exist - process it [08:22:03]req_shift_opened [08:22:03]FM_GetShiftState [08:22:03]SAM_PROTO_GetShiftState [08:22:03]wFMCommunicate request_size=4 [08:22:03]MH_SAM_APDU [08:22:03]CAPDU: 80 13 01 00 [08:22:03]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [08:22:03]Write i2c OK [08:22:03]MH_I2C_Read... [08:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:03]Read from MH i2c: E2 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 0E 00 [08:22:03]MH_I2C_Read... [08:22:03]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [08:22:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:22:03]wFMCommunicate OK [08:22:03]SAM_PROTO_GetShiftState done [08:22:03]FM_GetShiftState done [08:22:03]req_shift_opened done [08:22:03]requested_item shift.open_date is exist - process it [08:22:03]req_shift_open_date [08:22:03]req_shift_open_date done [08:22:03]produce_requested_data done [08:22:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69667,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:22:03]process_action_free close_receipt [08:22:03]json_value_free [08:22:03]json_value_free done [08:22:03]process_json_proto returns [08:22:03]Send response to host [08:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69667,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:22:03]free response buf [08:22:03]execute_script done [08:22:03]execute_script returns [08:22:03]free content buf [08:22:03]Sock 9.Close socket [08:22:03]Sock 9.Thread stoped [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:20]accept exits with 8 [08:24:20]New connection [08:24:20]New thread 3067456868 created [08:24:20]Thread 3067313508 joined [08:24:20]Waiting for new connection... [08:24:20] Sock 8.Parse request [08:24:20]Sock 8.Check first char [08:24:20]Sock 8.First char is OK [08:24:20]request: POST /json_proto HTTP/1.0 [08:24:20]Method: POST [08:24:20]URL: /json_proto [08:24:20]Method is POST - this is cgi request [08:24:20]url: /json_proto [08:24:20]query_string will be loaded in cgi processing [08:24:20]execute_cgi json_proto POST (null) [08:24:20]execute_cgi path=json_proto method=POST [08:24:20]POST find Content-Length [08:24:20]Host: 172.17.50.3:8080 [08:24:20]Content-Length: 678 [08:24:20]Content-Type: application/json [08:24:20] [08:24:20]POST finish read [08:24:20]Found Content-Length = 678 [08:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885406", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:20]execute_script... [08:24: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)2885406", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:20]POST & json_proto [08:24:20]process_json_proto [08:24:20]json parsed OK: [08:24:20]protocol is kg_v1.0 [08:24:20]action value=close_receipt [08:24:20]process_action close_receipt [08:24:20]cmd_close_receipt [08:24:20]MH_GetDate [08:24:20]Write to MH i2c: F0 00 00 0F 13 11 [08:24:20]Write i2c OK [08:24:20]MH_I2C_Read... [08:24:20]Read from MH i2c: F0 [08:24:20]MH_I2C_Read... [08:24:20]Read from MH i2c: F0 09 00 [08:24:20]MH_I2C_Read... [08:24:20]Read from MH i2c: F0 09 00 0F 13 00 B6 0F 16 67 6B 98 1E 66 E3 [08:24:20]GetLastDocTimeStamp 1729498922 [08:24:20]current date 1729499062 [08:24:20]FM_GetShiftState [08:24:20]SAM_PROTO_GetShiftState [08:24:20]wFMCommunicate request_size=4 [08:24:20]MH_SAM_APDU [08:24:20]CAPDU: 80 13 01 00 [08:24:20]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [08:24:20]Write i2c OK [08:24:20]MH_I2C_Read... [08:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:20]Read from MH i2c: E2 [08:24:20]MH_I2C_Read... [08:24:20]Read from MH i2c: E2 0E 00 [08:24:20]MH_I2C_Read... [08:24:20]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CC [08:24:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:24:20]wFMCommunicate OK [08:24:20]SAM_PROTO_GetShiftState done [08:24:20]FM_GetShiftState done [08:24:20]opened in 1729469703 [08:24:20]opened+sec_in_day 1729556103 [08:24:20]quantity*price = 50041 [08:24:20]sum+1 = 50042 [08:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 58 21.10.2024 08:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69668 ФПД: 166941199507121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69668&fm=166941199507121&tin=02508201610067®Number=0000000000156251&sum=50000 [08:24:21]StoreToDocumentArchive [08:24:21]shift 194 fd 69668 [08:24:21]save to /storage/0194/doc_00069668 [08:24:21]save last doc name /storage/0194/doc_00069668 to /storage/kkm_last_doc_name [08:24:21]save OK [08:24:21]Clear old archive folders... [08:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:21]tlvbuf is 00C83D00 [08:24:21]SAM_PROTO_ClearQueue [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 09 00 00 [08:24:21]Write to MH i2c: E2 08 00 1D 13 80 09 00 00 00 00 00 00 A2 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [08:24:21]RAPDU: 90 00 [08:24:21]wFMCommunicate OK [08:24:21]SAM_PROTO_ClearQueue done [08:24:21]KKMCreateOFDPacket [08:24:21]OFDProtocolAddRootSTLVToBuf [08:24:21]FM_MakeSignedData [08:24:21]FM_MakeSignedData [08:24:21]SAM_PROTO_SignData [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 0D 01 02 [08:24:21]Write to MH i2c: E2 08 00 1E 13 80 0D 01 02 00 00 00 00 AA [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [08:24:21]RAPDU: 90 00 [08:24:21]wFMCommunicate OK [08:24:21]wFMCommunicate request_size=255 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B6 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 10 01 00 35 04 06 00 97 [08:24:21]Write to MH i2c: E2 02 01 1F 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B6 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 10 01 00 35 04 06 00 97 00 00 3D [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [08:24:21]RAPDU: 90 00 [08:24:21]wFMCommunicate OK [08:24:21]wFMCommunicate request_size=10 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 0D 02 02 05 D5 06 E5 1E B1 [08:24:21]Write to MH i2c: E2 0D 00 20 13 80 0D 02 02 05 00 D5 06 E5 1E B1 00 00 46 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [08:24:21]RAPDU: 90 00 [08:24:21]wFMCommunicate OK [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 0D 03 02 [08:24:21]Write to MH i2c: E2 08 00 21 13 80 0D 03 02 00 00 00 00 AF [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 0B 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 0B 00 21 13 00 C5 AD D3 10 E6 19 EF 89 90 00 7C [08:24:21]RAPDU: C5 AD D3 10 E6 19 EF 89 90 00 [08:24:21]wFMCommunicate OK [08:24:21]SAM_PROTO_SignData done [08:24:21]FM_MakeSignedData done [08:24:21]CreateOFDProtocolMessage [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 11 00 00 [08:24:21]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 17 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 17 00 22 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [08:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:24:21]wFMCommunicate OK [08:24:21]CreateOFDProtocolMessage done [08:24:21]OFDSenderStorePacket 69668 [08:24:21]StoreOFDPacket docnum=69668 [08:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1F A6 07 01 BA 5C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B6 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 10 01 00 35 04 06 00 97 D5 06 E5 1E B1 C5 AD D3 10 E6 19 EF 89 [08:24:21]CheckFolder [08:24:21]dirname=/storage/ofd_packets [08:24:21]CheckFolder done [08:24:21]ProducePacketName [08:24:21]name=ofd_packets/00069668 [08:24:21]NVStorageSaveData ofd_packets/00069668 [08:24:21]File name is /storage/ofd_packets/00069668 [08:24:21]Write 301 bytes [08:24:21]NVStorageSaveData done [08:24:21]OFDSenderStorePacket done [08:24:21]KKMCreateOFDPacket done [08:24:21]NVStorageSaveData kkm_last_timestamp [08:24:21]File name is /storage/kkm_last_timestamp [08:24:21]Write 4 bytes [08:24:21]NVStorageSaveData done [08:24:21]ExternCall_PrintAddStr [08:24:21]wPrintStart [08:24:21]Write to MH i2c: 01 00 00 23 13 36 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: 01 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: 01 07 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [08:24:21]RasterBufferAndPrint [08:24:21]line Счет N : (1)2885406 [08:24:21]line ИНН: 02508201610067 [08:24:21]line Контрольно-Кассовый Чек [08:24:21]line ПРОДАЖА [08:24:21]line ТРК (МРК, ГНК) : 42 [08:24:21]line Товар: 2710124130 [08:24:21]line Аи-92-К-5 [08:24:21]line 7.480 * 66.90 [08:24:21]line = 500.41 [08:24:21]line НДС 12% НСП 1% [08:24:21]line > о реализуемом товаре [08:24:21]line ОКРУГЛЕНИЕ: -0.41 [08:24:21]line ИТОГО: 500.00 [08:24:21]line Внесено: 500.00 [08:24:21]line СДАЧА: 0.00 [08:24:21]line НСП 1% : 4.43 [08:24:21]line НДС 12% : 53.14 [08:24:21]line Наличными: 500.00 [08:24:21]line Безнал.: 0.00 [08:24:21]line Место: АЗС № 85 "Партнер Нефть" [08:24:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:24:21]line СНО: Общий режим [08:24:21]line Чек 58 21.10.2024 08:24 [08:24:21]line Смена: 194 ФФД: 1.0 [08:24:22]line ЗНМ: 0300000167 [08:24:22]line РНМ: 0000000000156251 [08:24:22]line Версия ККМ: v1.0 [08:24:22]line ФМ: 0000000000963346 [08:24:22]line ФД: 69668 [08:24:22]line ФПД: 166941199507121 [08:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69668&fm=166941199507121&tin=02508201610067®Number=0000000000156251&sum=50000 [08:24:22]OFD Sender: Processing packet 69668 [packets to send 18, broken 17] [08:24:22]ProducePacketName [08:24:22]name=ofd_packets/00069668 [08:24:22]OFD Sender: To server: pG, [08:24:22]CommunicateWithHost lk.salyk.kg:30040 [08:24:22]ConnectInit lk.salyk.kg [08:24:22]written 0, free lines is 4095 [08:24:22]Connected sock=10 [08:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1F A6 07 01 BA 5C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B6 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 10 01 00 35 04 06 00 97 D5 06 E5 1E B1 C5 AD D3 10 E6 19 EF 89 [08:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2D 7A 47 00 72 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 39 36 33 33 34 36 10 04 04 00 24 10 01 00 F4 03 04 00 5B B9 15 67 B6 04 01 00 00 E9 43 A6 80 89 81 D8 C6 [08:24:22]CommunicateWithHost err = 0 [08:24:22]CheckOFDResponse [08:24:22]1017 (14) - 77093643461234 [08:24:22]1041 (16) - 0000000000963346 [08:24:22]1040 (4) - 69668 [08:24:22]1012 (4) - 21.10.2024 02:15 [08:24:22]1206 (1) - 0 [08:24:22]OFD Sender: Remove packet 69668 [08:24:22]ProducePacketName [08:24:22]name=ofd_packets/00069668 [08:24:22]NVStorageDeleteData [08:24:22]Write to MH i2c: 01 00 00 4E 13 61 [08:24:22]Write i2c OK [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: 01 [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: 01 07 00 [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 F8 0C 6C [08:24:22]RasterBufferAndPrint [08:24:22]line [08:24:22]line [08:24:22]line [08:24:22]line [08:24:22]line [08:24:22]written 0, free lines is 3328 [08:24:22]MH_Cut [08:24:22]Write to MH i2c: D1 01 00 55 13 01 3A [08:24:22]Write i2c OK [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: D1 [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: D1 01 00 [08:24:22]MH_I2C_Read... [08:24:22]Read from MH i2c: D1 01 00 55 13 00 39 [08:24:22]Write to MH i2c: 01 00 00 56 13 69 [08:24:22]Write i2c OK [08:24:22]MH_I2C_Read... [08:24:22]OFD Sender: No OFD packet to send [08:24:23]*** Cut start [08:24:23]*** Partial cut [08:24:23]*** CUTSNS_PIN = 1 [08:24:23]*** CUTSNS_PIN = 0 [08:24:23]*** Brake cut motor [08:24:23]Read from MH i2c: 01 [08:24:23]MH_I2C_Read... [08:24:23]*** Stop cut motor [08:24:23]*** Cut end [08:24:23]Read from MH i2c: 01 07 00 [08:24:23]MH_I2C_Read... [08:24:23]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [08:24:23]process_action close_receipt done [08:24:23]requested_data is exist [08:24:23]produce_requested_data [08:24:23]requested_item fm.sn is exist - process it [08:24:23]wFMCommunicate request_size=4 [08:24:23]MH_SAM_APDU [08:24:23]CAPDU: 80 11 00 00 [08:24:23]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [08:24:23]Write i2c OK [08:24:23]MH_I2C_Read... [08:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:23]Read from MH i2c: E2 [08:24:23]MH_I2C_Read... [08:24:23]Read from MH i2c: E2 17 00 [08:24:23]MH_I2C_Read... [08:24:23]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [08:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:24:23]wFMCommunicate OK [08:24:23]requested_item fd.num is exist - process it [08:24:23]SAM_PROTO_GetFieldsCounters [08:24:23]wFMCommunicate request_size=4 [08:24:23]MH_SAM_APDU [08:24:23]CAPDU: 80 13 00 00 [08:24:23]Write to MH i2c: E2 08 00 58 13 80 13 00 00 00 00 00 00 E7 [08:24:23]Write i2c OK [08:24:23]MH_I2C_Read... [08:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:24]Read from MH i2c: E2 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 62 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 62 00 58 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 10 01 00 0E 04 04 00 C2 00 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 A7 [08:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 10 01 00 0E 04 04 00 C2 00 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 [08:24:24]wFMCommunicate OK [08:24:24]SAM_PROTO_GetFieldsCounters done [08:24:24]requested_item shift.num is exist - process it [08:24:24]requested_item shift.opened is exist - process it [08:24:24]req_shift_opened [08:24:24]FM_GetShiftState [08:24:24]SAM_PROTO_GetShiftState [08:24:24]wFMCommunicate request_size=4 [08:24:24]MH_SAM_APDU [08:24:24]CAPDU: 80 13 01 00 [08:24:24]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [08:24:24]Write i2c OK [08:24:24]MH_I2C_Read... [08:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:24]Read from MH i2c: E2 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [08:24:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:24:24]wFMCommunicate OK [08:24:24]SAM_PROTO_GetShiftState done [08:24:24]FM_GetShiftState done [08:24:24]req_shift_opened done [08:24:24]requested_item shift.open_date is exist - process it [08:24:24]req_shift_open_date [08:24:24]req_shift_open_date done [08:24:24]produce_requested_data done [08:24:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69668,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:24:24]process_action_free close_receipt [08:24:24]json_value_free [08:24:24]json_value_free done [08:24:24]process_json_proto returns [08:24:24]Send response to host [08:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69668,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:24:24]free response buf [08:24:24]execute_script done [08:24:24]execute_script returns [08:24:24]free content buf [08:24:24]Sock 8.Close socket [08:24:24]Sock 8.Thread stoped [08:24:27]accept exits with 9 [08:24:27]New connection [08:24:27]New thread 3067313508 created [08:24:27]Thread 3067456868 joined [08:24:27]Waiting for new connection... [08:24:27] Sock 9.Parse request [08:24:27]Sock 9.Check first char [08:24:27]Sock 9.First char is OK [08:24:27]request: POST /json_proto HTTP/1.0 [08:24:27]Method: POST [08:24:27]URL: /json_proto [08:24:27]Method is POST - this is cgi request [08:24:27]url: /json_proto [08:24:27]query_string will be loaded in cgi processing [08:24:27]execute_cgi json_proto POST (null) [08:24:27]execute_cgi path=json_proto method=POST [08:24:27]POST find Content-Length [08:24:27]Host: 172.17.50.3:8080 [08:24:27]Content-Length: 686 [08:24:27]Content-Type: application/json [08:24:27] [08:24:27]POST finish read [08:24:27]Found Content-Length = 686 [08:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:27]execute_script... [08:24:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:27]POST & json_proto [08:24:27]process_json_proto [08:24:27]json parsed OK: [08:24:27]protocol is kg_v1.0 [08:24:27]action value=close_receipt [08:24:27]process_action close_receipt [08:24:27]cmd_close_receipt [08:24:27]MH_GetDate [08:24:27]Write to MH i2c: F0 00 00 5A 13 5C [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: F0 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: F0 09 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: F0 09 00 5A 13 00 BD 0F 16 67 6B 98 1E 66 35 [08:24:27]GetLastDocTimeStamp 1729499062 [08:24:27]current date 1729499069 [08:24:27]FM_GetShiftState [08:24:27]SAM_PROTO_GetShiftState [08:24:27]wFMCommunicate request_size=4 [08:24:27]MH_SAM_APDU [08:24:27]CAPDU: 80 13 01 00 [08:24:27]Write to MH i2c: E2 08 00 5B 13 80 13 01 00 00 00 00 00 EB [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:27]Read from MH i2c: E2 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: E2 0E 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: E2 0E 00 5B 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 17 [08:24:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:24:27]wFMCommunicate OK [08:24:27]SAM_PROTO_GetShiftState done [08:24:27]FM_GetShiftState done [08:24:27]opened in 1729469703 [08:24:27]opened+sec_in_day 1729556103 [08:24:27]quantity*price = 100011 [08:24:27]sum+1 = 100013 [08:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 59 21.10.2024 08:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69669 ФПД: 38576284106518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082429&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69669&fm=38576284106518&tin=02508201610067®Number=0000000000156251&sum=100000 [08:24:28]StoreToDocumentArchive [08:24:28]shift 194 fd 69669 [08:24:28]save to /storage/0194/doc_00069669 [08:24:28]save last doc name /storage/0194/doc_00069669 to /storage/kkm_last_doc_name [08:24:28]save OK [08:24:28]Clear old archive folders... [08:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:24:28]tlvbuf is 00C8E600 [08:24:28]SAM_PROTO_ClearQueue [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 09 00 00 [08:24:28]Write to MH i2c: E2 08 00 68 13 80 09 00 00 00 00 00 00 ED [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [08:24:28]RAPDU: 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_ClearQueue done [08:24:28]KKMCreateOFDPacket [08:24:28]OFDProtocolAddRootSTLVToBuf [08:24:28]FM_MakeSignedData [08:24:28]FM_MakeSignedData [08:24:28]SAM_PROTO_SignData [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 0D 01 02 [08:24:28]Write to MH i2c: E2 08 00 69 13 80 0D 01 02 00 00 00 00 F5 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [08:24:28]RAPDU: 90 00 [08:24:28]wFMCommunicate OK [08:24:28]wFMCommunicate request_size=255 [08:24:28]MH_SAM_APDU [08:24:28]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 10 01 00 35 04 06 00 23 15 [08:24:28]Write to MH i2c: E2 02 01 6A 13 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 10 01 00 35 04 06 00 23 15 00 00 0D [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [08:24:28]RAPDU: 90 00 [08:24:28]wFMCommunicate OK [08:24:28]wFMCommunicate request_size=9 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 0D 02 02 04 BD B5 FF 16 [08:24:28]Write to MH i2c: E2 0C 00 6B 13 80 0D 02 02 04 00 BD B5 FF 16 00 00 87 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [08:24:28]RAPDU: 90 00 [08:24:28]wFMCommunicate OK [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 0D 03 02 [08:24:28]Write to MH i2c: E2 08 00 6C 13 80 0D 03 02 00 00 00 00 FA [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0B 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0B 00 6C 13 00 0C 72 FD E7 13 AE 05 54 90 00 77 [08:24:28]RAPDU: 0C 72 FD E7 13 AE 05 54 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_SignData done [08:24:28]FM_MakeSignedData done [08:24:28]CreateOFDProtocolMessage [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 11 00 00 [08:24:28]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [08:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:24:28]wFMCommunicate OK [08:24:28]CreateOFDProtocolMessage done [08:24:28]OFDSenderStorePacket 69669 [08:24:28]StoreOFDPacket docnum=69669 [08:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F1 5D 06 01 35 C1 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 10 01 00 35 04 06 00 23 15 BD B5 FF 16 0C 72 FD E7 13 AE 05 54 [08:24:28]CheckFolder [08:24:28]dirname=/storage/ofd_packets [08:24:28]CheckFolder done [08:24:28]ProducePacketName [08:24:28]name=ofd_packets/00069669 [08:24:28]NVStorageSaveData ofd_packets/00069669 [08:24:28]File name is /storage/ofd_packets/00069669 [08:24:28]Write 300 bytes [08:24:28]NVStorageSaveData done [08:24:28]OFDSenderStorePacket done [08:24:28]KKMCreateOFDPacket done [08:24:28]NVStorageSaveData kkm_last_timestamp [08:24:28]File name is /storage/kkm_last_timestamp [08:24:28]Write 4 bytes [08:24:28]NVStorageSaveData done [08:24:28]ExternCall_PrintAddStr [08:24:28]wPrintStart [08:24:28]Write to MH i2c: 01 00 00 6E 13 81 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: 01 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: 01 07 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 FF 0F 96 [08:24:28]RasterBufferAndPrint [08:24:28]line Счет N : (1)2885405 [08:24:28]line ИНН: 02508201610067 [08:24:28]line Контрольно-Кассовый Чек [08:24:28]line ПРОДАЖА [08:24:28]line ТРК (МРК, ГНК) : 71 [08:24:28]line Товар: 2711129700 [08:24:28]line ГАЗ-К-3 [08:24:28]line 25.710 * 38.90 [08:24:28]line = 1000.12 [08:24:28]line НДС 12% НСП 1% [08:24:28]line > о реализуемом товаре [08:24:28]line ОКРУГЛЕНИЕ: -0.12 [08:24:28]line ИТОГО: 1000.00 [08:24:28]line Внесено: 1000.00 [08:24:28]line СДАЧА: 0.00 [08:24:28]line НСП 1% : 8.85 [08:24:28]line НДС 12% : 106.21 [08:24:28]line Наличными: 1000.00 [08:24:28]line Безнал.: 0.00 [08:24:28]line Место: АЗС № 85 "Партнер Нефть" [08:24:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:24:28]line СНО: Общий режим [08:24:28]line Чек 59 21.10.2024 08:24 [08:24:28]line Смена: 194 ФФД: 1.0 [08:24:28]line ЗНМ: 0300000167 [08:24:28]line РНМ: 0000000000156251 [08:24:28]line Версия ККМ: v1.0 [08:24:28]line ФМ: 0000000000963346 [08:24:28]line ФД: 69669 [08:24:28]line ФПД: 38576284106518 [08:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082429&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69669&fm=38576284106518&tin=02508201610067®Number=0000000000156251&sum=100000 [08:24:28]OFD Sender: Processing packet 69669 [packets to send 18, broken 17] [08:24:28]ProducePacketName [08:24:28]name=ofd_packets/00069669 [08:24:28]OFD Sender: To server: pG, [08:24:28]CommunicateWithHost lk.salyk.kg:30040 [08:24:28]ConnectInit lk.salyk.kg [08:24:29]Connected sock=10 [08:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 written 0, free lines is 4095 [08:24:29]30 30 30 39 36 33 33 34 36 0E 01 00 00 F1 5D 06 01 35 C1 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 0F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 10 01 00 35 04 06 00 23 15 BD B5 FF 16 0C 72 FD E7 13 AE 05 54 [08:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E 7D 47 00 61 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 10 01 00 F4 03 04 00 62 B9 15 67 B6 04 01 00 00 61 68 9D 2A 5E 47 9F 91 [08:24:29]CommunicateWithHost err = 0 [08:24:29]CheckOFDResponse [08:24:29]1017 (14) - 77093643461234 [08:24:29]1041 (16) - 0000000000963346 [08:24:29]1040 (4) - 69669 [08:24:29]1012 (4) - 21.10.2024 02:16 [08:24:29]1206 (1) - 0 [08:24:29]OFD Sender: Remove packet 69669 [08:24:29]ProducePacketName [08:24:29]name=ofd_packets/00069669 [08:24:29]NVStorageDeleteData [08:24:29]Write to MH i2c: 01 00 00 99 13 AC [08:24:29]Write i2c OK [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: 01 [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: 01 07 00 [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 E6 0C A5 [08:24:29]RasterBufferAndPrint [08:24:29]line [08:24:29]line [08:24:29]line [08:24:29]line [08:24:29]line [08:24:29]written 0, free lines is 3314 [08:24:29]MH_Cut [08:24:29]Write to MH i2c: D1 01 00 A0 13 01 85 [08:24:29]Write i2c OK [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: D1 [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: D1 01 00 [08:24:29]MH_I2C_Read... [08:24:29]Read from MH i2c: D1 01 00 A0 13 00 84 [08:24:29]Write to MH i2c: 01 00 00 A1 13 B4 [08:24:29]Write i2c OK [08:24:29]MH_I2C_Read... [08:24:29]OFD Sender: No OFD packet to send [08:24:30]*** Cut start [08:24:30]*** Partial cut [08:24:30]*** CUTSNS_PIN = 1 [08:24:30]*** CUTSNS_PIN = 0 [08:24:30]*** Brake cut motor [08:24:30]Read from MH i2c: 01 [08:24:30]MH_I2C_Read... [08:24:30]*** Stop cut motor [08:24:30]*** Cut end [08:24:30]Read from MH i2c: 01 07 00 [08:24:30]MH_I2C_Read... [08:24:30]Read from MH i2c: 01 07 00 A1 13 00 00 00 00 00 FF 0F C9 [08:24:30]process_action close_receipt done [08:24:30]requested_data is exist [08:24:30]produce_requested_data [08:24:30]requested_item fm.sn is exist - process it [08:24:30]wFMCommunicate request_size=4 [08:24:30]MH_SAM_APDU [08:24:30]CAPDU: 80 11 00 00 [08:24:30]Write to MH i2c: E2 08 00 A2 13 80 11 00 00 00 00 00 00 2F [08:24:30]Write i2c OK [08:24:30]MH_I2C_Read... [08:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:30]Read from MH i2c: E2 [08:24:30]MH_I2C_Read... [08:24:30]Read from MH i2c: E2 17 00 [08:24:30]MH_I2C_Read... [08:24:30]Read from MH i2c: E2 17 00 A2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [08:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:24:30]wFMCommunicate OK [08:24:30]requested_item fd.num is exist - process it [08:24:30]SAM_PROTO_GetFieldsCounters [08:24:30]wFMCommunicate request_size=4 [08:24:30]MH_SAM_APDU [08:24:30]CAPDU: 80 13 00 00 [08:24:30]Write to MH i2c: E2 08 00 A3 13 80 13 00 00 00 00 00 00 32 [08:24:30]Write i2c OK [08:24:30]MH_I2C_Read... [08:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:31]Read from MH i2c: E2 [08:24:31]MH_I2C_Read... [08:24:31]Read from MH i2c: E2 62 00 [08:24:31]MH_I2C_Read... [08:24:31]Read from MH i2c: E2 62 00 A3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:31]wFMCommunicate OK [08:24:31]SAM_PROTO_GetFieldsCounters done [08:24:31]requested_item shift.num is exist - process it [08:24:31]requested_item shift.opened is exist - process it [08:24:31]req_shift_opened [08:24:31]FM_GetShiftState [08:24:31]SAM_PROTO_GetShiftState [08:24:31]wFMCommunicate request_size=4 [08:24:31]MH_SAM_APDU [08:24:31]CAPDU: 80 13 01 00 [08:24:31]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [08:24:31]Write i2c OK [08:24:31]MH_I2C_Read... [08:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:31]Read from MH i2c: E2 [08:24:31]MH_I2C_Read... [08:24:31]Read from MH i2c: E2 0E 00 [08:24:31]MH_I2C_Read... [08:24:31]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [08:24:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:24:31]wFMCommunicate OK [08:24:31]SAM_PROTO_GetShiftState done [08:24:31]FM_GetShiftState done [08:24:31]req_shift_opened done [08:24:31]requested_item shift.open_date is exist - process it [08:24:31]req_shift_open_date [08:24:31]req_shift_open_date done [08:24:31]produce_requested_data done [08:24:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69669,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:24:31]process_action_free close_receipt [08:24:31]json_value_free [08:24:31]json_value_free done [08:24:31]process_json_proto returns [08:24:31]Send response to host [08:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69669,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:24:31]free response buf [08:24:31]execute_script done [08:24:31]execute_script returns [08:24:31]free content buf [08:24:31]Sock 9.Close socket [08:24:31]Sock 9.Thread stoped [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:43]accept exits with 8 [08:25:43]New connection [08:25:43]New thread 3067456868 created [08:25:43]Thread 3067313508 joined [08:25:43]Waiting for new connection... [08:25:43] Sock 8.Parse request [08:25:43]Sock 8.Check first char [08:25:43]Sock 8.First char is OK [08:25:43]request: POST /json_proto HTTP/1.0 [08:25:43]Method: POST [08:25:43]URL: /json_proto [08:25:43]Method is POST - this is cgi request [08:25:43]url: /json_proto [08:25:43]query_string will be loaded in cgi processing [08:25:43]execute_cgi json_proto POST (null) [08:25:43]execute_cgi path=json_proto method=POST [08:25:43]POST find Content-Length [08:25:43]Host: 172.17.50.3:8080 [08:25:43]Content-Length: 682 [08:25:43]Content-Type: application/json [08:25:43] [08:25:43]POST finish read [08:25:43]Found Content-Length = 682 [08:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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" ] } } [08:25:43]execute_script... [08:25: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)2885407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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" ] } } [08:25:43]POST & json_proto [08:25:43]process_json_proto [08:25:43]json parsed OK: [08:25:43]protocol is kg_v1.0 [08:25:43]action value=close_receipt [08:25:43]process_action close_receipt [08:25:43]cmd_close_receipt [08:25:43]MH_GetDate [08:25:43]Write to MH i2c: F0 00 00 A5 13 A7 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 09 00 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: F0 09 00 A5 13 00 09 10 16 67 6B 98 1E 66 CD [08:25:43]GetLastDocTimeStamp 1729499069 [08:25:43]current date 1729499145 [08:25:43]FM_GetShiftState [08:25:43]SAM_PROTO_GetShiftState [08:25:43]wFMCommunicate request_size=4 [08:25:43]MH_SAM_APDU [08:25:43]CAPDU: 80 13 01 00 [08:25:43]Write to MH i2c: E2 08 00 A6 13 80 13 01 00 00 00 00 00 36 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:43]Read from MH i2c: E2 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 0E 00 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 0E 00 A6 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 62 [08:25:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:25:43]wFMCommunicate OK [08:25:43]SAM_PROTO_GetShiftState done [08:25:43]FM_GetShiftState done [08:25:43]opened in 1729469703 [08:25:43]opened+sec_in_day 1729556103 [08:25:43]quantity*price = 50025 [08:25:43]sum+1 = 50026 [08:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 60 21.10.2024 08:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69670 ФПД: 262574228015722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69670&fm=262574228015722&tin=02508201610067®Number=0000000000156251&sum=50000 [08:25:43]StoreToDocumentArchive [08:25:43]shift 194 fd 69670 [08:25:43]save to /storage/0194/doc_00069670 [08:25:43]save last doc name /storage/0194/doc_00069670 to /storage/kkm_last_doc_name [08:25:43]save OK [08:25:43]Clear old archive folders... [08:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:25:43]tlvbuf is 00C8DF10 [08:25:43]SAM_PROTO_ClearQueue [08:25:43]wFMCommunicate request_size=4 [08:25:43]MH_SAM_APDU [08:25:43]CAPDU: 80 09 00 00 [08:25:43]Write to MH i2c: E2 08 00 B3 13 80 09 00 00 00 00 00 00 38 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:43]Read from MH i2c: E2 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 03 00 [08:25:43]MH_I2C_Read... [08:25:43]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [08:25:43]RAPDU: 90 00 [08:25:43]wFMCommunicate OK [08:25:43]SAM_PROTO_ClearQueue done [08:25:43]KKMCreateOFDPacket [08:25:43]OFDProtocolAddRootSTLVToBuf [08:25:43]FM_MakeSignedData [08:25:43]FM_MakeSignedData [08:25:43]SAM_PROTO_SignData [08:25:43]wFMCommunicate request_size=4 [08:25:43]MH_SAM_APDU [08:25:43]CAPDU: 80 0D 01 02 [08:25:43]Write to MH i2c: E2 08 00 B4 13 80 0D 01 02 00 00 00 00 40 [08:25:43]Write i2c OK [08:25:43]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=255 [08:25:44]MH_SAM_APDU [08:25:44]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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 3C 00 00 00 F4 03 04 00 09 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 10 01 00 35 04 06 00 EE CF [08:25:44]Write to MH i2c: E2 02 01 B5 13 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 3C 00 00 00 F4 03 04 00 09 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 10 01 00 35 04 06 00 EE CF 00 00 0B [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=9 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 02 02 04 53 96 8A 6A [08:25:44]Write to MH i2c: E2 0C 00 B6 13 80 0D 02 02 04 00 53 96 8A 6A 00 00 28 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [08:25:44]RAPDU: 90 00 [08:25:44]wFMCommunicate OK [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 0D 03 02 [08:25:44]Write to MH i2c: E2 08 00 B7 13 80 0D 03 02 00 00 00 00 45 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 0B 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 0B 00 B7 13 00 41 6D B3 41 1A B9 FC 97 90 00 4E [08:25:44]RAPDU: 41 6D B3 41 1A B9 FC 97 90 00 [08:25:44]wFMCommunicate OK [08:25:44]SAM_PROTO_SignData done [08:25:44]FM_MakeSignedData done [08:25:44]CreateOFDProtocolMessage [08:25:44]wFMCommunicate request_size=4 [08:25:44]MH_SAM_APDU [08:25:44]CAPDU: 80 11 00 00 [08:25:44]Write to MH i2c: E2 08 00 B8 13 80 11 00 00 00 00 00 00 45 [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:44]Read from MH i2c: E2 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 17 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: E2 17 00 B8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [08:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:25:44]wFMCommunicate OK [08:25:44]CreateOFDProtocolMessage done [08:25:44]OFDSenderStorePacket 69670 [08:25:44]StoreOFDPacket docnum=69670 [08:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B3 38 06 01 5D 27 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 3C 00 00 00 F4 03 04 00 09 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 10 01 00 35 04 06 00 EE CF 53 96 8A 6A 41 6D B3 41 1A B9 FC 97 [08:25:44]CheckFolder [08:25:44]dirname=/storage/ofd_packets [08:25:44]CheckFolder done [08:25:44]ProducePacketName [08:25:44]name=ofd_packets/00069670 [08:25:44]NVStorageSaveData ofd_packets/00069670 [08:25:44]File name is /storage/ofd_packets/00069670 [08:25:44]Write 300 bytes [08:25:44]NVStorageSaveData done [08:25:44]OFDSenderStorePacket done [08:25:44]KKMCreateOFDPacket done [08:25:44]NVStorageSaveData kkm_last_timestamp [08:25:44]File name is /storage/kkm_last_timestamp [08:25:44]Write 4 bytes [08:25:44]NVStorageSaveData done [08:25:44]ExternCall_PrintAddStr [08:25:44]wPrintStart [08:25:44]Write to MH i2c: 01 00 00 B9 13 CC [08:25:44]Write i2c OK [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 07 00 [08:25:44]MH_I2C_Read... [08:25:44]Read from MH i2c: 01 07 00 B9 13 00 00 00 00 00 FF 0F E1 [08:25:44]RasterBufferAndPrint [08:25:44]line Счет N : (1)2885407 [08:25:44]line ИНН: 02508201610067 [08:25:44]line Контрольно-Кассовый Чек [08:25:44]line ПРОДАЖА [08:25:44]line ТРК (МРК, ГНК) : 71 [08:25:44]line Товар: 2711129700 [08:25:44]line ГАЗ-К-3 [08:25:44]line 12.860 * 38.90 [08:25:44]line = 500.25 [08:25:44]line НДС 12% НСП 1% [08:25:44]line > о реализуемом товаре [08:25:44]line ОКРУГЛЕНИЕ: -0.25 [08:25:44]line ИТОГО: 500.00 [08:25:44]line Внесено: 500.00 [08:25:44]line СДАЧА: 0.00 [08:25:44]line НСП 1% : 4.43 [08:25:44]line НДС 12% : 53.12 [08:25:44]line Наличными: 500.00 [08:25:44]line Безнал.: 0.00 [08:25:44]line Место: АЗС № 85 "Партнер Нефть" [08:25:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:25:44]line СНО: Общий режим [08:25:44]line Чек 60 21.10.2024 08:25 [08:25:44]line Смена: 194 ФФД: 1.0 [08:25:44]line ЗНМ: 0300000167 [08:25:44]line РНМ: 0000000000156251 [08:25:44]line Версия ККМ: v1.0 [08:25:44]line ФМ: 0000000000963346 [08:25:44]line ФД: 69670 [08:25:44]line ФПД: 262574228015722 [08:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082545&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69670&fm=262574228015722&tin=02508201610067®Number=0000000000156251&sum=50000 [08:25:44]OFD Sender: Processing packet 69670 [packets to send 18, broken 17] [08:25:44]ProducePacketName [08:25:44]name=ofd_packets/00069670 [08:25:44]OFD Sender: To server: pG, [08:25:44]CommunicateWithHost lk.salyk.kg:30040 [08:25:44]ConnectInit lk.salyk.kg [08:25:44]written 0, free lines is 4095 [08:25:44]Connected sock=10 [08:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B3 38 06 01 5D 27 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 3C 00 00 00 F4 03 04 00 09 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 10 01 00 35 04 06 00 EE CF 53 96 8A 6A 41 6D B3 41 1A B9 FC 97 [08:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 89 47 00 2C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 10 01 00 F4 03 04 00 AD B9 15 67 B6 04 01 00 00 BA 5D 05 0E 36 F3 B0 5C [08:25:45]CommunicateWithHost err = 0 [08:25:45]CheckOFDResponse [08:25:45]1017 (14) - 77093643461234 [08:25:45]1041 (16) - 0000000000963346 [08:25:45]1040 (4) - 69670 [08:25:45]1012 (4) - 21.10.2024 02:17 [08:25:45]1206 (1) - 0 [08:25:45]OFD Sender: Remove packet 69670 [08:25:45]ProducePacketName [08:25:45]name=ofd_packets/00069670 [08:25:45]NVStorageDeleteData [08:25:45]Write to MH i2c: 01 00 00 E4 13 F7 [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 07 00 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 EB 0C F5 [08:25:45]RasterBufferAndPrint [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]line [08:25:45]written 0, free lines is 3313 [08:25:45]MH_Cut [08:25:45]Write to MH i2c: D1 01 00 EB 13 01 D0 [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 01 00 [08:25:45]MH_I2C_Read... [08:25:45]Read from MH i2c: D1 01 00 EB 13 00 CF [08:25:45]Write to MH i2c: 01 00 00 EC 13 FF [08:25:45]Write i2c OK [08:25:45]MH_I2C_Read... [08:25:45]OFD Sender: No OFD packet to send [08:25:45]*** Cut start [08:25:45]*** Partial cut [08:25:45]*** CUTSNS_PIN = 1 [08:25:45]*** CUTSNS_PIN = 0 [08:25:46]*** Brake cut motor [08:25:46]Read from MH i2c: 01 [08:25:46]MH_I2C_Read... [08:25:46]*** Stop cut motor [08:25:46]*** Cut end [08:25:46]Read from MH i2c: 01 07 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 FF 0F 14 [08:25:46]process_action close_receipt done [08:25:46]requested_data is exist [08:25:46]produce_requested_data [08:25:46]requested_item fm.sn is exist - process it [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 11 00 00 [08:25:46]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:46]Read from MH i2c: E2 17 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [08:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:25:46]wFMCommunicate OK [08:25:46]requested_item fd.num is exist - process it [08:25:46]SAM_PROTO_GetFieldsCounters [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 13 00 00 [08:25:46]Write to MH i2c: E2 08 00 EE 13 80 13 00 00 00 00 00 00 7D [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 62 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 62 00 EE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 10 01 00 0E 04 04 00 C2 00 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 45 [08:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 10 01 00 0E 04 04 00 C2 00 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 [08:25:46]wFMCommunicate OK [08:25:46]SAM_PROTO_GetFieldsCounters done [08:25:46]requested_item shift.num is exist - process it [08:25:46]requested_item shift.opened is exist - process it [08:25:46]req_shift_opened [08:25:46]FM_GetShiftState [08:25:46]SAM_PROTO_GetShiftState [08:25:46]wFMCommunicate request_size=4 [08:25:46]MH_SAM_APDU [08:25:46]CAPDU: 80 13 01 00 [08:25:46]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [08:25:46]Write i2c OK [08:25:46]MH_I2C_Read... [08:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:46]Read from MH i2c: E2 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 0E 00 [08:25:46]MH_I2C_Read... [08:25:46]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [08:25:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:25:46]wFMCommunicate OK [08:25:46]SAM_PROTO_GetShiftState done [08:25:46]FM_GetShiftState done [08:25:46]req_shift_opened done [08:25:46]requested_item shift.open_date is exist - process it [08:25:46]req_shift_open_date [08:25:46]req_shift_open_date done [08:25:46]produce_requested_data done [08:25:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69670,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:25:46]process_action_free close_receipt [08:25:46]json_value_free [08:25:46]json_value_free done [08:25:46]process_json_proto returns [08:25:46]Send response to host [08:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69670,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:25:46]free response buf [08:25:46]execute_script done [08:25:46]execute_script returns [08:25:46]free content buf [08:25:46]Sock 8.Close socket [08:25:46]Sock 8.Thread stoped [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:14]accept exits with 9 [08:28:14]New connection [08:28:14]New thread 3067313508 created [08:28:14]Thread 3067456868 joined [08:28:14]Waiting for new connection... [08:28:14] Sock 9.Parse request [08:28:14]Sock 9.Check first char [08:28:14]Sock 9.First char is OK [08:28:14]request: POST /json_proto HTTP/1.0 [08:28:14]Method: POST [08:28:14]URL: /json_proto [08:28:14]Method is POST - this is cgi request [08:28:14]url: /json_proto [08:28:14]query_string will be loaded in cgi processing [08:28:14]execute_cgi json_proto POST (null) [08:28:14]execute_cgi path=json_proto method=POST [08:28:14]POST find Content-Length [08:28:14]Host: 172.17.50.3:8080 [08:28:14]Content-Length: 678 [08:28:14]Content-Type: application/json [08:28:14] [08:28:14]POST finish read [08:28:14]Found Content-Length = 678 [08:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885408", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:14]execute_script... [08:28: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)2885408", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:14]POST & json_proto [08:28:14]process_json_proto [08:28:14]json parsed OK: [08:28:14]protocol is kg_v1.0 [08:28:14]action value=close_receipt [08:28:14]process_action close_receipt [08:28:14]cmd_close_receipt [08:28:14]MH_GetDate [08:28:14]Write to MH i2c: F0 00 00 F0 13 F2 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: F0 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: F0 09 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: F0 09 00 F0 13 00 A0 10 16 67 6B 98 1E 66 AF [08:28:14]GetLastDocTimeStamp 1729499145 [08:28:14]current date 1729499296 [08:28:14]FM_GetShiftState [08:28:14]SAM_PROTO_GetShiftState [08:28:14]wFMCommunicate request_size=4 [08:28:14]MH_SAM_APDU [08:28:14]CAPDU: 80 13 01 00 [08:28:14]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:14]Read from MH i2c: E2 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 0E 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AD [08:28:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:28:14]wFMCommunicate OK [08:28:14]SAM_PROTO_GetShiftState done [08:28:14]FM_GetShiftState done [08:28:14]opened in 1729469703 [08:28:14]opened+sec_in_day 1729556103 [08:28:14]quantity*price = 30038 [08:28:14]sum+1 = 30039 [08:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 61 21.10.2024 08:28 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69671 ФПД: 76421219892397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69671&fm=76421219892397&tin=02508201610067®Number=0000000000156251&sum=30000 [08:28:15]StoreToDocumentArchive [08:28:15]shift 194 fd 69671 [08:28:15]save to /storage/0194/doc_00069671 [08:28:15]save last doc name /storage/0194/doc_00069671 to /storage/kkm_last_doc_name [08:28:15]save OK [08:28:15]Clear old archive folders... [08:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:15]tlvbuf is B6F233B0 [08:28:15]SAM_PROTO_ClearQueue [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 09 00 00 [08:28:15]Write to MH i2c: E2 08 00 FE 13 80 09 00 00 00 00 00 00 83 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [08:28:15]RAPDU: 90 00 [08:28:15]wFMCommunicate OK [08:28:15]SAM_PROTO_ClearQueue done [08:28:15]KKMCreateOFDPacket [08:28:15]OFDProtocolAddRootSTLVToBuf [08:28:15]FM_MakeSignedData [08:28:15]FM_MakeSignedData [08:28:15]SAM_PROTO_SignData [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 0D 01 02 [08:28:15]Write to MH i2c: E2 08 00 FF 13 80 0D 01 02 00 00 00 00 8B [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [08:28:15]RAPDU: 90 00 [08:28:15]wFMCommunicate OK [08:28:15]wFMCommunicate request_size=255 [08:28:15]MH_SAM_APDU [08:28: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A0 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 10 01 00 35 04 06 00 45 [08:28:15]Write to MH i2c: E2 02 01 00 14 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A0 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 10 01 00 35 04 06 00 45 00 00 B2 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [08:28:15]RAPDU: 90 00 [08:28:15]wFMCommunicate OK [08:28:15]wFMCommunicate request_size=10 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 0D 02 02 05 81 33 AA 3C AD [08:28:15]Write to MH i2c: E2 0D 00 01 14 80 0D 02 02 05 00 81 33 AA 3C AD 00 00 E0 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [08:28:15]RAPDU: 90 00 [08:28:15]wFMCommunicate OK [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 0D 03 02 [08:28:15]Write to MH i2c: E2 08 00 02 14 80 0D 03 02 00 00 00 00 91 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0B 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0B 00 02 14 00 44 C5 2C 29 0D DB EF F2 90 00 B9 [08:28:15]RAPDU: 44 C5 2C 29 0D DB EF F2 90 00 [08:28:15]wFMCommunicate OK [08:28:15]SAM_PROTO_SignData done [08:28:15]FM_MakeSignedData done [08:28:15]CreateOFDProtocolMessage [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 11 00 00 [08:28:15]Write to MH i2c: E2 08 00 03 14 80 11 00 00 00 00 00 00 91 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 17 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 17 00 03 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [08:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:28:15]wFMCommunicate OK [08:28:15]CreateOFDProtocolMessage done [08:28:15]OFDSenderStorePacket 69671 [08:28:15]StoreOFDPacket docnum=69671 [08:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2E 68 07 01 39 CB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A0 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 10 01 00 35 04 06 00 45 81 33 AA 3C AD 44 C5 2C 29 0D DB EF F2 [08:28:15]CheckFolder [08:28:15]dirname=/storage/ofd_packets [08:28:15]CheckFolder done [08:28:15]ProducePacketName [08:28:15]name=ofd_packets/00069671 [08:28:15]NVStorageSaveData ofd_packets/00069671 [08:28:15]File name is /storage/ofd_packets/00069671 [08:28:15]Write 301 bytes [08:28:15]NVStorageSaveData done [08:28:15]OFDSenderStorePacket done [08:28:15]KKMCreateOFDPacket done [08:28:15]NVStorageSaveData kkm_last_timestamp [08:28:15]File name is /storage/kkm_last_timestamp [08:28:15]Write 4 bytes [08:28:15]NVStorageSaveData done [08:28:15]ExternCall_PrintAddStr [08:28:15]wPrintStart [08:28:15]Write to MH i2c: 01 00 00 04 14 18 [08:28:15]OFD Sender: Processing packet 69671 [packets to send 18, broken 17] [08:28:15]ProducePacketName [08:28:15]name=ofd_packets/00069671 [08:28:15]OFD Sender: To server: pG, [08:28:15]CommunicateWithHost lk.salyk.kg:30040 [08:28:15]ConnectInit lk.salyk.kg [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: 01 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: 01 07 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: 01 07 00 04 14 00 00 00 00 00 FF 0F 2D [08:28:15]RasterBufferAndPrint [08:28:15]line Счет N : (1)2885408 [08:28:15]line ИНН: 02508201610067 [08:28:15]line Контрольно-Кассовый Чек [08:28:15]line ПРОДАЖА [08:28:15]line ТРК (МРК, ГНК) : 42 [08:28:15]line Товар: 2710124130 [08:28:15]line Аи-92-К-5 [08:28:15]line 4.490 * 66.90 [08:28:15]line = 300.38 [08:28:15]line НДС 12% НСП 1% [08:28:15]line > о реализуемом товаре [08:28:15]line ОКРУГЛЕНИЕ: -0.38 [08:28:15]line ИТОГО: 300.00 [08:28:15]line Внесено: 300.00 [08:28:15]line СДАЧА: 0.00 [08:28:15]line НСП 1% : 2.66 [08:28:15]line НДС 12% : 31.90 [08:28:15]line Наличными: 300.00 [08:28:15]line Безнал.: 0.00 [08:28:15]line Место: АЗС № 85 "Партнер Нефть" [08:28:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:28:15]line СНО: Общий режим [08:28:15]line Чек 61 21.10.2024 08:28 [08:28:15]line Смена: 194 ФФД: 1.0 [08:28:15]line ЗНМ: 0300000167 [08:28:15]line РНМ: 0000000000156251 [08:28:15]line Версия ККМ: v1.0 [08:28:15]line ФМ: 0000000000963346 [08:28:15]line ФД: 69671 [08:28:15]line ФПД: 76421219892397 [08:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69671&fm=76421219892397&tin=02508201610067®Number=0000000000156251&sum=30000 [08:28:16]Connected sock=10 [08:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2E 68 07 01 39 CB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A0 10 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 10 01 00 35 04 06 00 45 81 33 AA 3C AD 44 C5 2C 29 0D DB EF F2 [08:28:16]written 0, free lines is 4095 [08:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5F 1C 47 00 EC 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 10 01 00 F4 03 04 00 45 BA 15 67 B6 04 01 00 00 7E 4B 93 17 3E B5 55 17 [08:28:16]CommunicateWithHost err = 0 [08:28:16]CheckOFDResponse [08:28:16]1017 (14) - 77093643461234 [08:28:16]1041 (16) - 0000000000963346 [08:28:16]1040 (4) - 69671 [08:28:16]1012 (4) - 21.10.2024 02:19 [08:28:16]1206 (1) - 0 [08:28:16]OFD Sender: Remove packet 69671 [08:28:16]ProducePacketName [08:28:16]name=ofd_packets/00069671 [08:28:16]NVStorageDeleteData [08:28:16]Write to MH i2c: 01 00 00 2F 14 43 [08:28:16]Write i2c OK [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: 01 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: 01 07 00 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 E4 0C 3A [08:28:16]RasterBufferAndPrint [08:28:16]line [08:28:16]line [08:28:16]line [08:28:16]line [08:28:16]line [08:28:16]written 0, free lines is 3306 [08:28:16]MH_Cut [08:28:16]Write to MH i2c: D1 01 00 36 14 01 1C [08:28:16]Write i2c OK [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: D1 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: D1 01 00 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: D1 01 00 36 14 00 1B [08:28:16]Write to MH i2c: 01 00 00 37 14 4B [08:28:16]Write i2c OK [08:28:16]MH_I2C_Read... [08:28:16]OFD Sender: No OFD packet to send [08:28:17]*** Cut start [08:28:17]*** Partial cut [08:28:17]*** CUTSNS_PIN = 1 [08:28:17]*** CUTSNS_PIN = 0 [08:28:17]*** Brake cut motor [08:28:17]Read from MH i2c: 01 [08:28:17]MH_I2C_Read... [08:28:17]*** Stop cut motor [08:28:17]*** Cut end [08:28:17]Read from MH i2c: 01 07 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 FF 0F 60 [08:28:17]process_action close_receipt done [08:28:17]requested_data is exist [08:28:17]produce_requested_data [08:28:17]requested_item fm.sn is exist - process it [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 11 00 00 [08:28:17]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 17 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [08:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:28:17]wFMCommunicate OK [08:28:17]requested_item fd.num is exist - process it [08:28:17]SAM_PROTO_GetFieldsCounters [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 13 00 00 [08:28:17]Write to MH i2c: E2 08 00 39 14 80 13 00 00 00 00 00 00 C9 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 62 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 62 00 39 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 10 01 00 0E 04 04 00 C2 00 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 95 [08:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 10 01 00 0E 04 04 00 C2 00 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 [08:28:18]wFMCommunicate OK [08:28:18]SAM_PROTO_GetFieldsCounters done [08:28:18]requested_item shift.num is exist - process it [08:28:18]requested_item shift.opened is exist - process it [08:28:18]req_shift_opened [08:28:18]FM_GetShiftState [08:28:18]SAM_PROTO_GetShiftState [08:28:18]wFMCommunicate request_size=4 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 13 01 00 [08:28:18]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 0E 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [08:28:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:28:18]wFMCommunicate OK [08:28:18]SAM_PROTO_GetShiftState done [08:28:18]FM_GetShiftState done [08:28:18]req_shift_opened done [08:28:18]requested_item shift.open_date is exist - process it [08:28:18]req_shift_open_date [08:28:18]req_shift_open_date done [08:28:18]produce_requested_data done [08:28:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69671,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:28:18]process_action_free close_receipt [08:28:18]json_value_free [08:28:18]json_value_free done [08:28:18]process_json_proto returns [08:28:18]Send response to host [08:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69671,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:28:18]free response buf [08:28:18]execute_script done [08:28:18]execute_script returns [08:28:18]free content buf [08:28:18]Sock 9.Close socket [08:28:18]Sock 9.Thread stoped [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29: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:49]accept exits with 8 [08:29:49]New connection [08:29:49]New thread 3067456868 created [08:29:49]Thread 3067313508 joined [08:29:49]Waiting for new connection... [08:29:49] Sock 8.Parse request [08:29:49]Sock 8.Check first char [08:29:49]Sock 8.First char is OK [08:29:49]request: POST /json_proto HTTP/1.0 [08:29:49]Method: POST [08:29:49]URL: /json_proto [08:29:49]Method is POST - this is cgi request [08:29:49]url: /json_proto [08:29:49]query_string will be loaded in cgi processing [08:29:49]execute_cgi json_proto POST (null) [08:29:49]execute_cgi path=json_proto method=POST [08:29:49]POST find Content-Length [08:29:49]Host: 172.17.50.3:8080 [08:29:49]Content-Length: 678 [08:29:49]Content-Type: application/json [08:29:49] [08:29:49]POST finish read [08:29:49]Found Content-Length = 678 [08:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885409", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:49]execute_script... [08:29: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)2885409", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:49]POST & json_proto [08:29:49]process_json_proto [08:29:49]json parsed OK: [08:29:49]protocol is kg_v1.0 [08:29:49]action value=close_receipt [08:29:49]process_action close_receipt [08:29:49]cmd_close_receipt [08:29:49]MH_GetDate [08:29:49]Write to MH i2c: F0 00 00 3B 14 3E [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: F0 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: F0 09 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: F0 09 00 3B 14 00 00 11 16 67 6B 98 1E 66 5C [08:29:49]GetLastDocTimeStamp 1729499296 [08:29:49]current date 1729499392 [08:29:49]FM_GetShiftState [08:29:49]SAM_PROTO_GetShiftState [08:29:49]wFMCommunicate request_size=4 [08:29:49]MH_SAM_APDU [08:29:49]CAPDU: 80 13 01 00 [08:29:49]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [08:29:49]Write i2c OK [08:29:49]MH_I2C_Read... [08:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:49]Read from MH i2c: E2 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0E 00 [08:29:49]MH_I2C_Read... [08:29:49]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F9 [08:29:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:29:49]wFMCommunicate OK [08:29:49]SAM_PROTO_GetShiftState done [08:29:49]FM_GetShiftState done [08:29:49]opened in 1729469703 [08:29:49]opened+sec_in_day 1729556103 [08:29:49]quantity*price = 50010 [08:29:49]sum+1 = 50012 [08:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 62 21.10.2024 08:29 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69672 ФПД: 58830133749074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69672&fm=58830133749074&tin=02508201610067®Number=0000000000156251&sum=50000 [08:29:50]StoreToDocumentArchive [08:29:50]shift 194 fd 69672 [08:29:50]save to /storage/0194/doc_00069672 [08:29:50]save last doc name /storage/0194/doc_00069672 to /storage/kkm_last_doc_name [08:29:50]save OK [08:29:50]Clear old archive folders... [08:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:50]tlvbuf is B6F23410 [08:29:50]SAM_PROTO_ClearQueue [08:29:50]wFMCommunicate request_size=4 [08:29:50]MH_SAM_APDU [08:29:50]CAPDU: 80 09 00 00 [08:29:50]Write to MH i2c: E2 08 00 49 14 80 09 00 00 00 00 00 00 CF [08:29:50]Write i2c OK [08:29:50]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]SAM_PROTO_ClearQueue done [08:29:51]KKMCreateOFDPacket [08:29:51]OFDProtocolAddRootSTLVToBuf [08:29:51]FM_MakeSignedData [08:29:51]FM_MakeSignedData [08:29:51]SAM_PROTO_SignData [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 0D 01 02 [08:29:51]Write to MH i2c: E2 08 00 4A 14 80 0D 01 02 00 00 00 00 D7 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]wFMCommunicate request_size=255 [08:29:51]MH_SAM_APDU [08:29: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 11 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 10 01 00 35 04 06 00 35 [08:29:51]Write to MH i2c: E2 02 01 4B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 11 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 10 01 00 35 04 06 00 35 00 00 34 [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]wFMCommunicate request_size=10 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 0D 02 02 05 81 75 39 65 52 [08:29:51]Write to MH i2c: E2 0D 00 4C 14 80 0D 02 02 05 00 81 75 39 65 52 00 00 CA [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [08:29:51]RAPDU: 90 00 [08:29:51]wFMCommunicate OK [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 0D 03 02 [08:29:51]Write to MH i2c: E2 08 00 4D 14 80 0D 03 02 00 00 00 00 DC [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 0B 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 0B 00 4D 14 00 FF 7C 27 76 3E 04 FC E0 90 00 13 [08:29:51]RAPDU: FF 7C 27 76 3E 04 FC E0 90 00 [08:29:51]wFMCommunicate OK [08:29:51]SAM_PROTO_SignData done [08:29:51]FM_MakeSignedData done [08:29:51]CreateOFDProtocolMessage [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 11 00 00 [08:29:51]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 17 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [08:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:29:51]wFMCommunicate OK [08:29:51]CreateOFDProtocolMessage done [08:29:51]OFDSenderStorePacket 69672 [08:29:51]StoreOFDPacket docnum=69672 [08:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 24 07 01 B5 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 11 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 10 01 00 35 04 06 00 35 81 75 39 65 52 FF 7C 27 76 3E 04 FC E0 [08:29:51]CheckFolder [08:29:51]dirname=/storage/ofd_packets [08:29:51]CheckFolder done [08:29:51]ProducePacketName [08:29:51]name=ofd_packets/00069672 [08:29:51]NVStorageSaveData ofd_packets/00069672 [08:29:51]File name is /storage/ofd_packets/00069672 [08:29:51]Write 301 bytes [08:29:51]NVStorageSaveData done [08:29:51]OFDSenderStorePacket done [08:29:51]KKMCreateOFDPacket done [08:29:51]NVStorageSaveData kkm_last_timestamp [08:29:51]File name is /storage/kkm_last_timestamp [08:29:51]Write 4 bytes [08:29:51]NVStorageSaveData done [08:29:51]ExternCall_PrintAddStr [08:29:51]wPrintStart [08:29:51]Write to MH i2c: 01 00 00 4F 14 63 [08:29:51]OFD Sender: Processing packet 69672 [packets to send 18, broken 17] [08:29:51]ProducePacketName [08:29:51]name=ofd_packets/00069672 [08:29:51]OFD Sender: To server: pG, [08:29:51]CommunicateWithHost lk.salyk.kg:30040 [08:29:51]ConnectInit lk.salyk.kg [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: 01 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: 01 07 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 FF 0F 78 [08:29:51]RasterBufferAndPrint [08:29:51]line Счет N : (1)2885409 [08:29:51]line ИНН: 02508201610067 [08:29:51]line Контрольно-Кассовый Чек [08:29:51]line ПРОДАЖА [08:29:51]line ТРК (МРК, ГНК) : 33 [08:29:51]line Товар: 2710124500 [08:29:51]line Аи-95-К-5 [08:29:51]line 6.740 * 74.20 [08:29:51]line = 500.11 [08:29:51]line НДС 12% НСП 1% [08:29:51]line > о реализуемом товаре [08:29:51]line ОКРУГЛЕНИЕ: -0.11 [08:29:51]line ИТОГО: 500.00 [08:29:51]line Внесено: 500.00 [08:29:51]line СДАЧА: 0.00 [08:29:51]line НСП 1% : 4.43 [08:29:51]line НДС 12% : 53.11 [08:29:51]line Наличными: 500.00 [08:29:51]line Безнал.: 0.00 [08:29:51]line Место: АЗС № 85 "Партнер Нефть" [08:29:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:29:51]line СНО: Общий режим [08:29:51]line Чек 62 21.10.2024 08:29 [08:29:51]line Смена: 194 ФФД: 1.0 [08:29:51]line ЗНМ: 0300000167 [08:29:51]line РНМ: 0000000000156251 [08:29:51]line Версия ККМ: v1.0 [08:29:51]line ФМ: 0000000000963346 [08:29:51]line ФД: 69672 [08:29:51]line ФПД: 58830133749074 [08:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69672&fm=58830133749074&tin=02508201610067®Number=0000000000156251&sum=50000 [08:29:51]Connected sock=10 [08:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 24 07 01 B5 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 11 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 10 01 00 35 04 06 00 35 81 75 39 65 52 FF 7C 27 76 3E 04 FC E0 [08:29:51]written 0, free lines is 4095 [08:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C 63 47 00 B4 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 10 01 00 F4 03 04 00 A4 BA 15 67 B6 04 01 00 00 89 6A 00 93 35 72 DD FB [08:29:52]CommunicateWithHost err = 0 [08:29:52]CheckOFDResponse [08:29:52]1017 (14) - 77093643461234 [08:29:52]1041 (16) - 0000000000963346 [08:29:52]1040 (4) - 69672 [08:29:52]1012 (4) - 21.10.2024 02:21 [08:29:52]1206 (1) - 0 [08:29:52]OFD Sender: Remove packet 69672 [08:29:52]ProducePacketName [08:29:52]name=ofd_packets/00069672 [08:29:52]NVStorageDeleteData [08:29:52]Write to MH i2c: 01 00 00 7A 14 8E [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 07 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 DA 0C 7B [08:29:52]RasterBufferAndPrint [08:29:52]line [08:29:52]line [08:29:52]line [08:29:52]line [08:29:52]line [08:29:52]written 0, free lines is 3298 [08:29:52]MH_Cut [08:29:52]Write to MH i2c: D1 01 00 81 14 01 67 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: D1 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: D1 01 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: D1 01 00 81 14 00 66 [08:29:52]Write to MH i2c: 01 00 00 82 14 96 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]OFD Sender: No OFD packet to send [08:29:53]*** Cut start [08:29:53]*** Partial cut [08:29:53]*** CUTSNS_PIN = 1 [08:29:53]*** CUTSNS_PIN = 0 [08:29:53]*** Brake cut motor [08:29:53]Read from MH i2c: 01 [08:29:53]MH_I2C_Read... [08:29:53]*** Stop cut motor [08:29:53]*** Cut end [08:29:53]Read from MH i2c: 01 07 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [08:29:53]process_action close_receipt done [08:29:53]requested_data is exist [08:29:53]produce_requested_data [08:29:53]requested_item fm.sn is exist - process it [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 11 00 00 [08:29:53]Write to MH i2c: E2 08 00 83 14 80 11 00 00 00 00 00 00 11 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 17 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 17 00 83 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [08:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:29:53]wFMCommunicate OK [08:29:53]requested_item fd.num is exist - process it [08:29:53]SAM_PROTO_GetFieldsCounters [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 13 00 00 [08:29:53]Write to MH i2c: E2 08 00 84 14 80 13 00 00 00 00 00 00 14 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 62 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 62 00 84 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 10 01 00 0E 04 04 00 C2 00 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 E4 [08:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 10 01 00 0E 04 04 00 C2 00 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 [08:29:53]wFMCommunicate OK [08:29:53]SAM_PROTO_GetFieldsCounters done [08:29:53]requested_item shift.num is exist - process it [08:29:53]requested_item shift.opened is exist - process it [08:29:53]req_shift_opened [08:29:53]FM_GetShiftState [08:29:53]SAM_PROTO_GetShiftState [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 13 01 00 [08:29:53]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 0E 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [08:29:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:29:53]wFMCommunicate OK [08:29:53]SAM_PROTO_GetShiftState done [08:29:53]FM_GetShiftState done [08:29:53]req_shift_opened done [08:29:53]requested_item shift.open_date is exist - process it [08:29:53]req_shift_open_date [08:29:53]req_shift_open_date done [08:29:53]produce_requested_data done [08:29:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69672,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:29:53]process_action_free close_receipt [08:29:53]json_value_free [08:29:53]json_value_free done [08:29:53]process_json_proto returns [08:29:53]Send response to host [08:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69672,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:29:53]free response buf [08:29:53]execute_script done [08:29:53]execute_script returns [08:29:53]free content buf [08:29:53]Sock 8.Close socket [08:29:53]Sock 8.Thread stoped [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [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: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: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]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:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:48]accept exits with 9 [08:34:48]New connection [08:34:48]New thread 3067313508 created [08:34:48]Thread 3067456868 joined [08:34:48]Waiting for new connection... [08:34:48] Sock 9.Parse request [08:34:48]Sock 9.Check first char [08:34:48]Sock 9.First char is OK [08:34:48]request: POST /json_proto HTTP/1.0 [08:34:48]Method: POST [08:34:48]URL: /json_proto [08:34:48]Method is POST - this is cgi request [08:34:48]url: /json_proto [08:34:48]query_string will be loaded in cgi processing [08:34:48]execute_cgi json_proto POST (null) [08:34:48]execute_cgi path=json_proto method=POST [08:34:48]POST find Content-Length [08:34:48]Host: 172.17.50.3:8080 [08:34:48]Content-Length: 683 [08:34:48]Content-Type: application/json [08:34:48] [08:34:48]POST finish read [08:34:48]Found Content-Length = 683 [08:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885410", "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" : 66.90, "quantity" : 24.140, "sum" : 1614.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1614.00, "payments": [ { "type": 0, "sum" : 1614.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:48]execute_script... [08:34: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)2885410", "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" : 66.90, "quantity" : 24.140, "sum" : 1614.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1614.00, "payments": [ { "type": 0, "sum" : 1614.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:48]POST & json_proto [08:34:48]process_json_proto [08:34:48]json parsed OK: [08:34:48]protocol is kg_v1.0 [08:34:48]action value=close_receipt [08:34:48]process_action close_receipt [08:34:48]cmd_close_receipt [08:34:48]MH_GetDate [08:34:48]Write to MH i2c: F0 00 00 86 14 89 [08:34:48]Write i2c OK [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: F0 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: F0 09 00 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: F0 09 00 86 14 00 2B 12 16 67 6B 98 1E 66 D3 [08:34:48]GetLastDocTimeStamp 1729499392 [08:34:48]current date 1729499691 [08:34:48]FM_GetShiftState [08:34:48]SAM_PROTO_GetShiftState [08:34:48]wFMCommunicate request_size=4 [08:34:48]MH_SAM_APDU [08:34:48]CAPDU: 80 13 01 00 [08:34:48]Write to MH i2c: E2 08 00 87 14 80 13 01 00 00 00 00 00 18 [08:34:48]Write i2c OK [08:34:48]MH_I2C_Read... [08:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:48]Read from MH i2c: E2 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: E2 0E 00 [08:34:48]MH_I2C_Read... [08:34:48]Read from MH i2c: E2 0E 00 87 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 44 [08:34:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:34:48]wFMCommunicate OK [08:34:48]SAM_PROTO_GetShiftState done [08:34:48]FM_GetShiftState done [08:34:48]opened in 1729469703 [08:34:48]opened+sec_in_day 1729556103 [08:34:48]quantity*price = 161496 [08:34:48]sum+1 = 161498 [08:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 1614.00 Внесено: 2000.00 СДАЧА: 386.00 НСП 1% : 14.29 НДС 12% : 171.50 Наличными: 1614.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 63 21.10.2024 08:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69673 ФПД: 200750213265458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69673&fm=200750213265458&tin=02508201610067®Number=0000000000156251&sum=161400 [08:34:49]StoreToDocumentArchive [08:34:49]shift 194 fd 69673 [08:34:49]save to /storage/0194/doc_00069673 [08:34:49]save last doc name /storage/0194/doc_00069673 to /storage/kkm_last_doc_name [08:34:49]save OK [08:34:49]Clear old archive folders... [08:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:49]tlvbuf is B6F234F0 [08:34:49]SAM_PROTO_ClearQueue [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 09 00 00 [08:34:49]Write to MH i2c: E2 08 00 94 14 80 09 00 00 00 00 00 00 1A [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [08:34:49]RAPDU: 90 00 [08:34:49]wFMCommunicate OK [08:34:49]SAM_PROTO_ClearQueue done [08:34:49]KKMCreateOFDPacket [08:34:49]OFDProtocolAddRootSTLVToBuf [08:34:49]FM_MakeSignedData [08:34:49]FM_MakeSignedData [08:34:49]SAM_PROTO_SignData [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 0D 01 02 [08:34:49]Write to MH i2c: E2 08 00 95 14 80 0D 01 02 00 00 00 00 22 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:49]Read from MH i2c: E2 03 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [08:34:49]RAPDU: 90 00 [08:34:49]wFMCommunicate OK [08:34:49]wFMCommunicate request_size=255 [08:34:49]MH_SAM_APDU [08:34: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 4C 5E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 42 00 00 00 00 07 04 06 00 78 76 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B 12 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 10 01 00 35 04 06 00 B6 [08:34:49]Write to MH i2c: E2 02 01 96 14 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 4C 5E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 42 00 00 00 00 07 04 06 00 78 76 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B 12 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 10 01 00 35 04 06 00 B6 00 00 C2 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [08:34:49]RAPDU: 90 00 [08:34:49]wFMCommunicate OK [08:34:49]wFMCommunicate request_size=10 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 0D 02 02 05 94 CD 26 78 32 [08:34:49]Write to MH i2c: E2 0D 00 97 14 80 0D 02 02 05 00 94 CD 26 78 32 00 00 60 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [08:34:49]RAPDU: 90 00 [08:34:49]wFMCommunicate OK [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 0D 03 02 [08:34:49]Write to MH i2c: E2 08 00 98 14 80 0D 03 02 00 00 00 00 27 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0B 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0B 00 98 14 00 D1 68 5C 37 46 26 70 BC 90 00 8C [08:34:49]RAPDU: D1 68 5C 37 46 26 70 BC 90 00 [08:34:49]wFMCommunicate OK [08:34:49]SAM_PROTO_SignData done [08:34:49]FM_MakeSignedData done [08:34:49]CreateOFDProtocolMessage [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 11 00 00 [08:34:49]Write to MH i2c: E2 08 00 99 14 80 11 00 00 00 00 00 00 27 [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 17 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 17 00 99 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [08:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:34:49]wFMCommunicate OK [08:34:49]CreateOFDProtocolMessage done [08:34:49]OFDSenderStorePacket 69673 [08:34:49]StoreOFDPacket docnum=69673 [08:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 DE 07 01 B0 3E 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 4C 5E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 42 00 00 00 00 07 04 06 00 78 76 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B 12 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 10 01 00 35 04 06 00 B6 94 CD 26 78 32 D1 68 5C 37 46 26 70 BC [08:34:49]CheckFolder [08:34:49]dirname=/storage/ofd_packets [08:34:49]CheckFolder done [08:34:49]ProducePacketName [08:34:49]name=ofd_packets/00069673 [08:34:49]NVStorageSaveData ofd_packets/00069673 [08:34:49]File name is /storage/ofd_packets/00069673 [08:34:49]Write 301 bytes [08:34:49]NVStorageSaveData done [08:34:49]OFDSenderStorePacket done [08:34:49]KKMCreateOFDPacket done [08:34:49]NVStorageSaveData kkm_last_timestamp [08:34:49]File name is /storage/kkm_last_timestamp [08:34:49]Write 4 bytes [08:34:49]NVStorageSaveData done [08:34:49]ExternCall_PrintAddStr [08:34:49]wPrintStart [08:34:49]Write to MH i2c: 01 00 00 9A 14 AE [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: 01 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: 01 07 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 FF 0F C3 [08:34:49]RasterBufferAndPrint [08:34:49]line Счет N : (1)2885410 [08:34:49]line ИНН: 02508201610067 [08:34:49]line Контрольно-Кассовый Чек [08:34:49]line ПРОДАЖА [08:34:49]line ТРК (МРК, ГНК) : 42 [08:34:49]line Товар: 2710124130 [08:34:49]line Аи-92-К-5 [08:34:49]line 24.140 * 66.90 [08:34:49]line = 1614.97 [08:34:49]line НДС 12% НСП 1% [08:34:49]line > о реализуемом товаре [08:34:49]line ОКРУГЛЕНИЕ: -0.97 [08:34:49]line ИТОГО: 1614.00 [08:34:49]line Внесено: 2000.00 [08:34:49]line СДАЧА: 386.00 [08:34:49]line НСП 1% : 14.29 [08:34:49]line НДС 12% : 171.50 [08:34:49]line Наличными: 1614.00 [08:34:49]line Безнал.: 0.00 [08:34:49]line Место: АЗС № 85 "Партнер Нефть" [08:34:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:34:49]line СНО: Общий режим [08:34:49]line Чек 63 21.10.2024 08:34 [08:34:50]line Смена: 194 ФФД: 1.0 [08:34:50]line ЗНМ: 0300000167 [08:34:50]line РНМ: 0000000000156251 [08:34:50]line Версия ККМ: v1.0 [08:34:50]line ФМ: 0000000000963346 [08:34:50]line ФД: 69673 [08:34:50]line ФПД: 200750213265458 [08:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69673&fm=200750213265458&tin=02508201610067®Number=0000000000156251&sum=161400 [08:34:50]OFD Sender: Processing packet 69673 [packets to send 18, broken 17] [08:34:50]ProducePacketName [08:34:50]name=ofd_packets/00069673 [08:34:50]OFD Sender: To server: pG, [08:34:50]CommunicateWithHost lk.salyk.kg:30040 [08:34:50]ConnectInit lk.salyk.kg [08:34:50]written 0, free lines is 4095 [08:34:50]Connected sock=10 [08:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 DE 07 01 B0 3E 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 4C 5E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D9 76 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 76 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 42 00 00 00 00 07 04 06 00 78 76 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B 12 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 10 01 00 35 04 06 00 B6 94 CD 26 78 32 D1 68 5C 37 46 26 70 BC [08:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7B 5B 47 00 E1 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 10 01 00 F4 03 04 00 CF BB 15 67 B6 04 01 00 00 45 3A F5 01 87 05 49 0A [08:34:50]CommunicateWithHost err = 0 [08:34:50]CheckOFDResponse [08:34:50]1017 (14) - 77093643461234 [08:34:50]1041 (16) - 0000000000963346 [08:34:50]1040 (4) - 69673 [08:34:50]1012 (4) - 21.10.2024 02:26 [08:34:50]1206 (1) - 0 [08:34:50]OFD Sender: Remove packet 69673 [08:34:50]ProducePacketName [08:34:50]name=ofd_packets/00069673 [08:34:50]NVStorageDeleteData [08:34:50]Write to MH i2c: 01 00 00 C5 14 D9 [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 07 00 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 F7 0C E3 [08:34:50]RasterBufferAndPrint [08:34:50]line [08:34:50]line [08:34:50]line [08:34:50]line [08:34:50]line [08:34:50]written 0, free lines is 3323 [08:34:50]MH_Cut [08:34:50]Write to MH i2c: D1 01 00 CC 14 01 B2 [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D1 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D1 01 00 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D1 01 00 CC 14 00 B1 [08:34:50]Write to MH i2c: 01 00 00 CD 14 E1 [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:50]OFD Sender: No OFD packet to send [08:34:51]*** Cut start [08:34:51]*** Partial cut [08:34:51]*** CUTSNS_PIN = 1 [08:34:51]*** CUTSNS_PIN = 0 [08:34:51]*** Brake cut motor [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]*** Stop cut motor [08:34:51]*** Cut end [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 CD 14 00 00 00 00 00 FF 0F F6 [08:34:51]process_action close_receipt done [08:34:51]requested_data is exist [08:34:51]produce_requested_data [08:34:51]requested_item fm.sn is exist - process it [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 11 00 00 [08:34:51]Write to MH i2c: E2 08 00 CE 14 80 11 00 00 00 00 00 00 5C [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 17 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 17 00 CE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [08:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:34:52]wFMCommunicate OK [08:34:52]requested_item fd.num is exist - process it [08:34:52]SAM_PROTO_GetFieldsCounters [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 13 00 00 [08:34:52]Write to MH i2c: E2 08 00 CF 14 80 13 00 00 00 00 00 00 5F [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 62 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 62 00 CF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 10 01 00 0E 04 04 00 C2 00 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 33 [08:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 10 01 00 0E 04 04 00 C2 00 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 [08:34:52]wFMCommunicate OK [08:34:52]SAM_PROTO_GetFieldsCounters done [08:34:52]requested_item shift.num is exist - process it [08:34:52]requested_item shift.opened is exist - process it [08:34:52]req_shift_opened [08:34:52]FM_GetShiftState [08:34:52]SAM_PROTO_GetShiftState [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 13 01 00 [08:34:52]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 0E 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [08:34:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:34:52]wFMCommunicate OK [08:34:52]SAM_PROTO_GetShiftState done [08:34:52]FM_GetShiftState done [08:34:52]req_shift_opened done [08:34:52]requested_item shift.open_date is exist - process it [08:34:52]req_shift_open_date [08:34:52]req_shift_open_date done [08:34:52]produce_requested_data done [08:34:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69673,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:34:52]process_action_free close_receipt [08:34:52]json_value_free [08:34:52]json_value_free done [08:34:52]process_json_proto returns [08:34:52]Send response to host [08:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69673,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:34:52]free response buf [08:34:52]execute_script done [08:34:52]execute_script returns [08:34:52]free content buf [08:34:52]Sock 9.Close socket [08:34:52]Sock 9.Thread stoped [08:34:55]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:15]accept exits with 8 [08:39:15]New connection [08:39:15]New thread 3067456868 created [08:39:15]Thread 3067313508 joined [08:39:15]Waiting for new connection... [08:39:15] Sock 8.Parse request [08:39:15]Sock 8.Check first char [08:39:15]Sock 8.First char is OK [08:39:15]request: POST /json_proto HTTP/1.0 [08:39:15]Method: POST [08:39:15]URL: /json_proto [08:39:15]Method is POST - this is cgi request [08:39:15]url: /json_proto [08:39:15]query_string will be loaded in cgi processing [08:39:15]execute_cgi json_proto POST (null) [08:39:15]execute_cgi path=json_proto method=POST [08:39:15]POST find Content-Length [08:39:15]Host: 172.17.50.3:8080 [08:39:15]Content-Length: 680 [08:39:15]Content-Type: application/json [08:39:15] [08:39:15]POST finish read [08:39:15]Found Content-Length = 680 [08:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:15]execute_script... [08:39: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)2885412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:15]POST & json_proto [08:39:15]process_json_proto [08:39:15]json parsed OK: [08:39:15]protocol is kg_v1.0 [08:39:15]action value=close_receipt [08:39:15]process_action close_receipt [08:39:15]cmd_close_receipt [08:39:15]MH_GetDate [08:39:15]Write to MH i2c: F0 00 00 D1 14 D4 [08:39:15]Write i2c OK [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: F0 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: F0 09 00 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: F0 09 00 D1 14 00 35 13 16 67 6B 98 1E 66 29 [08:39:15]GetLastDocTimeStamp 1729499691 [08:39:15]current date 1729499957 [08:39:15]FM_GetShiftState [08:39:15]SAM_PROTO_GetShiftState [08:39:15]wFMCommunicate request_size=4 [08:39:15]MH_SAM_APDU [08:39:15]CAPDU: 80 13 01 00 [08:39:15]Write to MH i2c: E2 08 00 D2 14 80 13 01 00 00 00 00 00 63 [08:39:15]Write i2c OK [08:39:15]MH_I2C_Read... [08:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:15]Read from MH i2c: E2 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: E2 0E 00 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: E2 0E 00 D2 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8F [08:39:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:39:15]wFMCommunicate OK [08:39:15]SAM_PROTO_GetShiftState done [08:39:15]FM_GetShiftState done [08:39:15]opened in 1729469703 [08:39:15]opened+sec_in_day 1729556103 [08:39:15]quantity*price = 370027 [08:39:15]sum+1 = 370028 [08:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 3700.00 Внесено: 3700.00 СДАЧА: 0.00 НСП 1% : 32.75 НДС 12% : 392.95 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 64 21.10.2024 08:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69674 ФПД: 179919577721116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083917&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69674&fm=179919577721116&tin=02508201610067®Number=0000000000156251&sum=370000 [08:39:16]StoreToDocumentArchive [08:39:16]shift 194 fd 69674 [08:39:16]save to /storage/0194/doc_00069674 [08:39:16]save last doc name /storage/0194/doc_00069674 to /storage/kkm_last_doc_name [08:39:16]save OK [08:39:16]Clear old archive folders... [08:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:39:16]tlvbuf is B6F23440 [08:39:16]SAM_PROTO_ClearQueue [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 09 00 00 [08:39:16]Write to MH i2c: E2 08 00 DF 14 80 09 00 00 00 00 00 00 65 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [08:39:16]RAPDU: 90 00 [08:39:16]wFMCommunicate OK [08:39:16]SAM_PROTO_ClearQueue done [08:39:16]KKMCreateOFDPacket [08:39:16]OFDProtocolAddRootSTLVToBuf [08:39:16]FM_MakeSignedData [08:39:16]FM_MakeSignedData [08:39:16]SAM_PROTO_SignData [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 0D 01 02 [08:39:16]Write to MH i2c: E2 08 00 E0 14 80 0D 01 02 00 00 00 00 6D [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [08:39:16]RAPDU: 90 00 [08:39:16]wFMCommunicate OK [08:39:16]wFMCommunicate request_size=255 [08:39:16]MH_SAM_APDU [08:39: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 35 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 10 01 00 35 04 06 00 A3 A2 CA 84 [08:39:16]Write to MH i2c: E2 02 01 E1 14 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 35 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 10 01 00 35 04 06 00 A3 A2 CA 84 00 00 9F [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 E1 14 00 90 00 69 [08:39:16]RAPDU: 90 00 [08:39:16]wFMCommunicate OK [08:39:16]wFMCommunicate request_size=7 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 0D 02 02 02 A9 1C [08:39:16]Write to MH i2c: E2 0A 00 E2 14 80 0D 02 02 02 00 A9 1C 00 00 39 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 03 00 E2 14 00 90 00 6A [08:39:16]RAPDU: 90 00 [08:39:16]wFMCommunicate OK [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 0D 03 02 [08:39:16]Write to MH i2c: E2 08 00 E3 14 80 0D 03 02 00 00 00 00 72 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 0B 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 0B 00 E3 14 00 52 8D 4E 95 D1 47 F5 CE 90 00 10 [08:39:16]RAPDU: 52 8D 4E 95 D1 47 F5 CE 90 00 [08:39:16]wFMCommunicate OK [08:39:16]SAM_PROTO_SignData done [08:39:16]FM_MakeSignedData done [08:39:16]CreateOFDProtocolMessage [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 11 00 00 [08:39:16]Write to MH i2c: E2 08 00 E4 14 80 11 00 00 00 00 00 00 72 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 17 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 17 00 E4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [08:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:16]wFMCommunicate OK [08:39:16]CreateOFDProtocolMessage done [08:39:16]OFDSenderStorePacket 69674 [08:39:16]StoreOFDPacket docnum=69674 [08:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 90 1F 04 01 BD EF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 35 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 10 01 00 35 04 06 00 A3 A2 CA 84 A9 1C 52 8D 4E 95 D1 47 F5 CE [08:39:16]CheckFolder [08:39:16]dirname=/storage/ofd_packets [08:39:16]CheckFolder done [08:39:16]ProducePacketName [08:39:16]name=ofd_packets/00069674 [08:39:16]NVStorageSaveData ofd_packets/00069674 [08:39:16]File name is /storage/ofd_packets/00069674 [08:39:16]Write 298 bytes [08:39:16]NVStorageSaveData done [08:39:16]OFDSenderStorePacket done [08:39:16]KKMCreateOFDPacket done [08:39:16]NVStorageSaveData kkm_last_timestamp [08:39:16]File name is /storage/kkm_last_timestamp [08:39:16]Write 4 bytes [08:39:16]NVStorageSaveData done [08:39:16]ExternCall_PrintAddStr [08:39:16]wPrintStart [08:39:16]Write to MH i2c: 01 00 00 E5 14 F9 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: 01 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: 01 07 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 FF 0F 0E [08:39:16]RasterBufferAndPrint [08:39:16]line Счет N : (1)2885412 [08:39:16]line ИНН: 02508201610067 [08:39:16]line Контрольно-Кассовый Чек [08:39:16]line ПРОДАЖА [08:39:16]line ТРК (МРК, ГНК) : 61 [08:39:16]line Товар: 2710194210 [08:39:16]line ДТ-К-5 [08:39:16]line 48.560 * 76.20 [08:39:16]line = 3700.27 [08:39:16]line НДС 12% НСП 1% [08:39:16]line > о реализуемом товаре [08:39:16]line ОКРУГЛЕНИЕ: -0.27 [08:39:16]line ИТОГО: 3700.00 [08:39:16]line Внесено: 3700.00 [08:39:16]line СДАЧА: 0.00 [08:39:16]line НСП 1% : 32.75 [08:39:16]line НДС 12% : 392.95 [08:39:16]line Наличными: 3700.00 [08:39:16]line Безнал.: 0.00 [08:39:16]line Место: АЗС № 85 "Партнер Нефть" [08:39:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:39:16]line СНО: Общий режим [08:39:16]line Чек 64 21.10.2024 08:39 [08:39:16]line Смена: 194 ФФД: 1.0 [08:39:16]line ЗНМ: 0300000167 [08:39:16]line РНМ: 0000000000156251 [08:39:16]line Версия ККМ: v1.0 [08:39:16]line ФМ: 0000000000963346 [08:39:16]line ФД: 69674 [08:39:16]line ФПД: 179919577721116 [08:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083917&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69674&fm=179919577721116&tin=02508201610067®Number=0000000000156251&sum=370000 [08:39:17]OFD Sender: Processing packet 69674 [packets to send 18, broken 17] [08:39:17]ProducePacketName [08:39:17]name=ofd_packets/00069674 [08:39:17]OFD Sender: To server: pG, [08:39:17]CommunicateWithHost lk.salyk.kg:30040 [08:39:17]ConnectInit lk.salyk.kg [08:39:17]written 0, free lines is 4095 [08:39:17]Connected sock=10 [08:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 90 1F 04 01 BD EF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 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 35 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 10 01 00 35 04 06 00 A3 A2 CA 84 A9 1C 52 8D 4E 95 D1 47 F5 CE [08:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 98 FA 47 00 8F 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 10 01 00 F4 03 04 00 DA BC 15 67 B6 04 01 00 00 70 1D A9 9B 44 45 3A 55 [08:39:17]CommunicateWithHost err = 0 [08:39:17]CheckOFDResponse [08:39:17]1017 (14) - 77093643461234 [08:39:17]1041 (16) - 0000000000963346 [08:39:17]1040 (4) - 69674 [08:39:17]1012 (4) - 21.10.2024 02:30 [08:39:17]1206 (1) - 0 [08:39:17]OFD Sender: Remove packet 69674 [08:39:17]ProducePacketName [08:39:17]name=ofd_packets/00069674 [08:39:17]NVStorageDeleteData [08:39:17]Write to MH i2c: 01 00 00 10 15 25 [08:39:17]Write i2c OK [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: 01 [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: 01 07 00 [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 EA 0C 22 [08:39:17]RasterBufferAndPrint [08:39:17]line [08:39:17]line [08:39:17]line [08:39:17]line [08:39:17]line [08:39:17]written 0, free lines is 3315 [08:39:17]MH_Cut [08:39:17]Write to MH i2c: D1 01 00 17 15 01 FE [08:39:17]Write i2c OK [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: D1 [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: D1 01 00 [08:39:17]MH_I2C_Read... [08:39:17]Read from MH i2c: D1 01 00 17 15 00 FD [08:39:17]Write to MH i2c: 01 00 00 18 15 2D [08:39:17]Write i2c OK [08:39:17]MH_I2C_Read... [08:39:17]OFD Sender: No OFD packet to send [08:39:18]*** Cut start [08:39:18]*** Partial cut [08:39:18]*** CUTSNS_PIN = 1 [08:39:18]*** CUTSNS_PIN = 0 [08:39:18]*** Brake cut motor [08:39:18]Read from MH i2c: 01 [08:39:18]MH_I2C_Read... [08:39:18]*** Stop cut motor [08:39:18]*** Cut end [08:39:18]Read from MH i2c: 01 07 00 [08:39:18]MH_I2C_Read... [08:39:18]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 FF 0F 42 [08:39:18]process_action close_receipt done [08:39:18]requested_data is exist [08:39:18]produce_requested_data [08:39:18]requested_item fm.sn is exist - process it [08:39:18]wFMCommunicate request_size=4 [08:39:18]MH_SAM_APDU [08:39:18]CAPDU: 80 11 00 00 [08:39:18]Write to MH i2c: E2 08 00 19 15 80 11 00 00 00 00 00 00 A8 [08:39:18]Write i2c OK [08:39:18]MH_I2C_Read... [08:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:18]Read from MH i2c: E2 [08:39:18]MH_I2C_Read... [08:39:18]Read from MH i2c: E2 17 00 [08:39:18]MH_I2C_Read... [08:39:18]Read from MH i2c: E2 17 00 19 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [08:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:18]wFMCommunicate OK [08:39:18]requested_item fd.num is exist - process it [08:39:18]SAM_PROTO_GetFieldsCounters [08:39:18]wFMCommunicate request_size=4 [08:39:18]MH_SAM_APDU [08:39:18]CAPDU: 80 13 00 00 [08:39:18]Write to MH i2c: E2 08 00 1A 15 80 13 00 00 00 00 00 00 AB [08:39:18]Write i2c OK [08:39:18]MH_I2C_Read... [08:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:19]Read from MH i2c: E2 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 62 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 62 00 1A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 10 01 00 0E 04 04 00 C2 00 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 83 [08:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 10 01 00 0E 04 04 00 C2 00 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:39:19]wFMCommunicate OK [08:39:19]SAM_PROTO_GetFieldsCounters done [08:39:19]requested_item shift.num is exist - process it [08:39:19]requested_item shift.opened is exist - process it [08:39:19]req_shift_opened [08:39:19]FM_GetShiftState [08:39:19]SAM_PROTO_GetShiftState [08:39:19]wFMCommunicate request_size=4 [08:39:19]MH_SAM_APDU [08:39:19]CAPDU: 80 13 01 00 [08:39:19]Write to MH i2c: E2 08 00 1B 15 80 13 01 00 00 00 00 00 AD [08:39:19]Write i2c OK [08:39:19]MH_I2C_Read... [08:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:19]Read from MH i2c: E2 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 1B 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [08:39:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:39:19]wFMCommunicate OK [08:39:19]SAM_PROTO_GetShiftState done [08:39:19]FM_GetShiftState done [08:39:19]req_shift_opened done [08:39:19]requested_item shift.open_date is exist - process it [08:39:19]req_shift_open_date [08:39:19]req_shift_open_date done [08:39:19]produce_requested_data done [08:39:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69674,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:39:19]process_action_free close_receipt [08:39:19]json_value_free [08:39:19]json_value_free done [08:39:19]process_json_proto returns [08:39:19]Send response to host [08:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69674,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:39:19]free response buf [08:39:19]execute_script done [08:39:19]execute_script returns [08:39:19]free content buf [08:39:19]Sock 8.Close socket [08:39:19]Sock 8.Thread stoped [08:39:19]accept exits with 9 [08:39:19]New connection [08:39:19]New thread 3067313508 created [08:39:19]Thread 3067456868 joined [08:39:19]Waiting for new connection... [08:39:19] Sock 9.Parse request [08:39:19]Sock 9.Check first char [08:39:19]Sock 9.First char is OK [08:39:19]request: POST /json_proto HTTP/1.0 [08:39:19]Method: POST [08:39:19]URL: /json_proto [08:39:19]Method is POST - this is cgi request [08:39:19]url: /json_proto [08:39:19]query_string will be loaded in cgi processing [08:39:19]execute_cgi json_proto POST (null) [08:39:19]execute_cgi path=json_proto method=POST [08:39:19]POST find Content-Length [08:39:19]Host: 172.17.50.3:8080 [08:39:19]Content-Length: 679 [08:39:19]Content-Type: application/json [08:39:19] [08:39:19]POST finish read [08:39:19]Found Content-Length = 679 [08:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885413", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:19]execute_script... [08:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885413", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:19]POST & json_proto [08:39:19]process_json_proto [08:39:19]json parsed OK: [08:39:19]protocol is kg_v1.0 [08:39:19]action value=close_receipt [08:39:19]process_action close_receipt [08:39:19]cmd_close_receipt [08:39:19]MH_GetDate [08:39:19]Write to MH i2c: F0 00 00 1C 15 20 [08:39:19]Write i2c OK [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 09 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 09 00 1C 15 00 3A 13 16 67 6B 98 1E 66 7A [08:39:19]GetLastDocTimeStamp 1729499957 [08:39:19]current date 1729499962 [08:39:19]FM_GetShiftState [08:39:19]SAM_PROTO_GetShiftState [08:39:19]wFMCommunicate request_size=4 [08:39:19]MH_SAM_APDU [08:39:19]CAPDU: 80 13 01 00 [08:39:19]Write to MH i2c: E2 08 00 1D 15 80 13 01 00 00 00 00 00 AF [08:39:19]Write i2c OK [08:39:19]MH_I2C_Read... [08:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:19]Read from MH i2c: E2 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 1D 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DB [08:39:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:39:19]wFMCommunicate OK [08:39:19]SAM_PROTO_GetShiftState done [08:39:19]FM_GetShiftState done [08:39:19]opened in 1729469703 [08:39:19]opened+sec_in_day 1729556103 [08:39:19]quantity*price = 70044 [08:39:19]sum+1 = 70045 [08:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 65 21.10.2024 08:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69675 ФПД: 234166646944327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69675&fm=234166646944327&tin=02508201610067®Number=0000000000156251&sum=70000 [08:39:21]StoreToDocumentArchive [08:39:21]shift 194 fd 69675 [08:39:21]save to /storage/0194/doc_00069675 [08:39:21]save last doc name /storage/0194/doc_00069675 to /storage/kkm_last_doc_name [08:39:21]save OK [08:39:21]Clear old archive folders... [08:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:21]tlvbuf is 00C9F350 [08:39:21]SAM_PROTO_ClearQueue [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 09 00 00 [08:39:21]Write to MH i2c: E2 08 00 2A 15 80 09 00 00 00 00 00 00 B1 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]SAM_PROTO_ClearQueue done [08:39:21]KKMCreateOFDPacket [08:39:21]OFDProtocolAddRootSTLVToBuf [08:39:21]FM_MakeSignedData [08:39:21]FM_MakeSignedData [08:39:21]SAM_PROTO_SignData [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 01 02 [08:39:21]Write to MH i2c: E2 08 00 2B 15 80 0D 01 02 00 00 00 00 B9 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 2B 15 00 90 00 B4 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=255 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3A 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 10 01 00 35 04 06 00 D4 [08:39:21]Write to MH i2c: E2 02 01 2C 15 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3A 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 10 01 00 35 04 06 00 D4 00 00 2F [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 2C 15 00 90 00 B5 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=10 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 02 02 05 F9 2B CF 32 47 [08:39:21]Write to MH i2c: E2 0D 00 2D 15 80 0D 02 02 05 00 F9 2B CF 32 47 00 00 32 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 2D 15 00 90 00 B6 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 03 02 [08:39:21]Write to MH i2c: E2 08 00 2E 15 80 0D 03 02 00 00 00 00 BE [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 0B 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 0B 00 2E 15 00 AB 0D 46 45 4A E6 E1 21 90 00 34 [08:39:21]RAPDU: AB 0D 46 45 4A E6 E1 21 90 00 [08:39:21]wFMCommunicate OK [08:39:21]SAM_PROTO_SignData done [08:39:21]FM_MakeSignedData done [08:39:21]CreateOFDProtocolMessage [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 11 00 00 [08:39:21]Write to MH i2c: E2 08 00 2F 15 80 11 00 00 00 00 00 00 BE [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 17 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 17 00 2F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [08:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:21]wFMCommunicate OK [08:39:21]CreateOFDProtocolMessage done [08:39:21]OFDSenderStorePacket 69675 [08:39:21]StoreOFDPacket docnum=69675 [08:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A6 AB 07 01 DA B6 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3A 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 10 01 00 35 04 06 00 D4 F9 2B CF 32 47 AB 0D 46 45 4A E6 E1 21 [08:39:21]CheckFolder [08:39:21]dirname=/storage/ofd_packets [08:39:21]CheckFolder done [08:39:21]ProducePacketName [08:39:21]name=ofd_packets/00069675 [08:39:21]NVStorageSaveData ofd_packets/00069675 [08:39:21]File name is /storage/ofd_packets/00069675 [08:39:21]Write 301 bytes [08:39:21]NVStorageSaveData done [08:39:21]OFDSenderStorePacket done [08:39:21]KKMCreateOFDPacket done [08:39:21]NVStorageSaveData kkm_last_timestamp [08:39:21]File name is /storage/kkm_last_timestamp [08:39:21]Write 4 bytes [08:39:21]NVStorageSaveData done [08:39:21]ExternCall_PrintAddStr [08:39:21]wPrintStart [08:39:21]Write to MH i2c: 01 00 00 30 15 45 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 07 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 07 00 30 15 00 00 00 00 00 FF 0F 5A [08:39:21]RasterBufferAndPrint [08:39:21]line Счет N : (1)2885413 [08:39:21]line ИНН: 02508201610067 [08:39:21]line Контрольно-Кассовый Чек [08:39:21]line ПРОДАЖА [08:39:21]line ТРК (МРК, ГНК) : 32 [08:39:21]line Товар: 2710124130 [08:39:21]line Аи-92-К-5 [08:39:21]line 10.470 * 66.90 [08:39:21]line = 700.44 [08:39:21]line НДС 12% НСП 1% [08:39:21]line > о реализуемом товаре [08:39:21]line ОКРУГЛЕНИЕ: -0.44 [08:39:21]line ИТОГО: 700.00 [08:39:21]line Внесено: 700.00 [08:39:21]line СДАЧА: 0.00 [08:39:21]line НСП 1% : 6.20 [08:39:21]line НДС 12% : 74.38 [08:39:21]line Наличными: 700.00 [08:39:21]line Безнал.: 0.00 [08:39:21]line Место: АЗС № 85 "Партнер Нефть" [08:39:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:39:21]line СНО: Общий режим [08:39:21]line Чек 65 21.10.2024 08:39 [08:39:21]line Смена: 194 ФФД: 1.0 [08:39:21]line ЗНМ: 0300000167 [08:39:21]line РНМ: 0000000000156251 [08:39:21]line Версия ККМ: v1.0 [08:39:21]line ФМ: 0000000000963346 [08:39:21]line ФД: 69675 [08:39:21]line ФПД: 234166646944327 [08:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69675&fm=234166646944327&tin=02508201610067®Number=0000000000156251&sum=70000 [08:39:21]OFD Sender: Processing packet 69675 [packets to send 18, broken 17] [08:39:21]ProducePacketName [08:39:21]name=ofd_packets/00069675 [08:39:21]OFD Sender: To server: pG, [08:39:21]CommunicateWithHost lk.salyk.kg:30040 [08:39:21]ConnectInit lk.salyk.kg [08:39:21]written 0, free lines is 4095 [08:39:21]Connected sock=10 [08:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A6 AB 07 01 DA B6 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3A 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 10 01 00 35 04 06 00 D4 F9 2B CF 32 47 AB 0D 46 45 4A E6 E1 21 [08:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A9 F1 47 00 12 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 10 01 00 F4 03 04 00 DE BC 15 67 B6 04 01 00 00 FE C2 66 FE 65 7B E8 EB [08:39:22]CommunicateWithHost err = 0 [08:39:22]CheckOFDResponse [08:39:22]1017 (14) - 77093643461234 [08:39:22]1041 (16) - 0000000000963346 [08:39:22]1040 (4) - 69675 [08:39:22]1012 (4) - 21.10.2024 02:30 [08:39:22]1206 (1) - 0 [08:39:22]OFD Sender: Remove packet 69675 [08:39:22]ProducePacketName [08:39:22]name=ofd_packets/00069675 [08:39:22]NVStorageDeleteData [08:39:22]Write to MH i2c: 01 00 00 5B 15 70 [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 07 00 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 07 00 5B 15 00 00 00 00 00 FA 0C 7D [08:39:22]RasterBufferAndPrint [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]written 0, free lines is 3337 [08:39:22]MH_Cut [08:39:22]Write to MH i2c: D1 01 00 62 15 01 49 [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 01 00 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 01 00 62 15 00 48 [08:39:22]Write to MH i2c: 01 00 00 63 15 78 [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]OFD Sender: No OFD packet to send [08:39:22]*** Cut start [08:39:22]*** Partial cut [08:39:22]*** CUTSNS_PIN = 1 [08:39:22]*** CUTSNS_PIN = 0 [08:39:23]*** Brake cut motor [08:39:23]Read from MH i2c: 01 [08:39:23]MH_I2C_Read... [08:39:23]*** Stop cut motor [08:39:23]*** Cut end [08:39:23]Read from MH i2c: 01 07 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 FF 0F 8D [08:39:23]process_action close_receipt done [08:39:23]requested_data is exist [08:39:23]produce_requested_data [08:39:23]requested_item fm.sn is exist - process it [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 11 00 00 [08:39:23]Write to MH i2c: E2 08 00 64 15 80 11 00 00 00 00 00 00 F3 [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 17 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 17 00 64 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [08:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:39:23]wFMCommunicate OK [08:39:23]requested_item fd.num is exist - process it [08:39:23]SAM_PROTO_GetFieldsCounters [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 13 00 00 [08:39:23]Write to MH i2c: E2 08 00 65 15 80 13 00 00 00 00 00 00 F6 [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 62 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 62 00 65 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 10 01 00 0E 04 04 00 C2 00 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 D2 [08:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 10 01 00 0E 04 04 00 C2 00 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:39:23]wFMCommunicate OK [08:39:23]SAM_PROTO_GetFieldsCounters done [08:39:23]requested_item shift.num is exist - process it [08:39:23]requested_item shift.opened is exist - process it [08:39:23]req_shift_opened [08:39:23]FM_GetShiftState [08:39:23]SAM_PROTO_GetShiftState [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 13 01 00 [08:39:23]Write to MH i2c: E2 08 00 66 15 80 13 01 00 00 00 00 00 F8 [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 0E 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 0E 00 66 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [08:39:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:39:23]wFMCommunicate OK [08:39:23]SAM_PROTO_GetShiftState done [08:39:23]FM_GetShiftState done [08:39:23]req_shift_opened done [08:39:23]requested_item shift.open_date is exist - process it [08:39:23]req_shift_open_date [08:39:23]req_shift_open_date done [08:39:23]produce_requested_data done [08:39:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69675,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:39:23]process_action_free close_receipt [08:39:23]json_value_free [08:39:23]json_value_free done [08:39:23]process_json_proto returns [08:39:23]Send response to host [08:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69675,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:39:23]free response buf [08:39:23]execute_script done [08:39:23]execute_script returns [08:39:23]free content buf [08:39:23]Sock 9.Close socket [08:39:23]Sock 9.Thread stoped [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:53]accept exits with 8 [08:40:53]New connection [08:40:53]New thread 3067456868 created [08:40:53]Thread 3067313508 joined [08:40:53]Waiting for new connection... [08:40:53] Sock 8.Parse request [08:40:53]Sock 8.Check first char [08:40:53]Sock 8.First char is OK [08:40:53]request: POST /json_proto HTTP/1.0 [08:40:53]Method: POST [08:40:53]URL: /json_proto [08:40:53]Method is POST - this is cgi request [08:40:53]url: /json_proto [08:40:53]query_string will be loaded in cgi processing [08:40:53]execute_cgi json_proto POST (null) [08:40:53]execute_cgi path=json_proto method=POST [08:40:53]POST find Content-Length [08:40:53]Host: 172.17.50.3:8080 [08:40:53]Content-Length: 678 [08:40:53]Content-Type: application/json [08:40:53] [08:40:53]POST finish read [08:40:53]Found Content-Length = 678 [08:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:53]execute_script... [08:40: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)2885414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:53]POST & json_proto [08:40:53]process_json_proto [08:40:53]json parsed OK: [08:40:53]protocol is kg_v1.0 [08:40:53]action value=close_receipt [08:40:53]process_action close_receipt [08:40:53]cmd_close_receipt [08:40:53]MH_GetDate [08:40:53]Write to MH i2c: F0 00 00 67 15 6B [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 09 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: F0 09 00 67 15 00 97 13 16 67 6B 98 1E 66 22 [08:40:53]GetLastDocTimeStamp 1729499962 [08:40:53]current date 1729500055 [08:40:53]FM_GetShiftState [08:40:53]SAM_PROTO_GetShiftState [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 13 01 00 [08:40:53]Write to MH i2c: E2 08 00 68 15 80 13 01 00 00 00 00 00 FA [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 0E 00 68 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 26 [08:40:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_GetShiftState done [08:40:53]FM_GetShiftState done [08:40:53]opened in 1729469703 [08:40:53]opened+sec_in_day 1729556103 [08:40:53]quantity*price = 25020 [08:40:53]sum+1 = 25022 [08:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 66 21.10.2024 08:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69676 ФПД: 275215306269713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69676&fm=275215306269713&tin=02508201610067®Number=0000000000156251&sum=25000 [08:40:54]StoreToDocumentArchive [08:40:54]shift 194 fd 69676 [08:40:54]save to /storage/0194/doc_00069676 [08:40:54]save last doc name /storage/0194/doc_00069676 to /storage/kkm_last_doc_name [08:40:54]save OK [08:40:54]Clear old archive folders... [08:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:54]tlvbuf is 00C92790 [08:40:54]SAM_PROTO_ClearQueue [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 09 00 00 [08:40:54]Write to MH i2c: E2 08 00 75 15 80 09 00 00 00 00 00 00 FC [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]SAM_PROTO_ClearQueue done [08:40:54]KKMCreateOFDPacket [08:40:54]OFDProtocolAddRootSTLVToBuf [08:40:54]FM_MakeSignedData [08:40:54]FM_MakeSignedData [08:40:54]SAM_PROTO_SignData [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 01 02 [08:40:54]Write to MH i2c: E2 08 00 76 15 80 0D 01 02 00 00 00 00 04 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 76 15 00 90 00 FF [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=255 [08:40:54]MH_SAM_APDU [08:40: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 98 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 10 01 00 35 04 06 00 FA [08:40:54]Write to MH i2c: E2 02 01 77 15 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 98 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 10 01 00 35 04 06 00 FA 00 00 C9 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 77 15 00 90 00 00 [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=10 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 02 02 05 4E 8E 91 24 11 [08:40:54]Write to MH i2c: E2 0D 00 78 15 80 0D 02 02 05 00 4E 8E 91 24 11 00 00 B3 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 78 15 00 90 00 01 [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 03 02 [08:40:54]Write to MH i2c: E2 08 00 79 15 80 0D 03 02 00 00 00 00 09 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 0B 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 0B 00 79 15 00 A0 7D 8D CC 21 06 5E C4 90 00 C9 [08:40:54]RAPDU: A0 7D 8D CC 21 06 5E C4 90 00 [08:40:54]wFMCommunicate OK [08:40:54]SAM_PROTO_SignData done [08:40:54]FM_MakeSignedData done [08:40:54]CreateOFDProtocolMessage [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 11 00 00 [08:40:54]Write to MH i2c: E2 08 00 7A 15 80 11 00 00 00 00 00 00 09 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 17 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 17 00 7A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [08:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:40:54]wFMCommunicate OK [08:40:54]CreateOFDProtocolMessage done [08:40:54]OFDSenderStorePacket 69676 [08:40:54]StoreOFDPacket docnum=69676 [08:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9A 2C 07 01 8F 3F 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 98 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 10 01 00 35 04 06 00 FA 4E 8E 91 24 11 A0 7D 8D CC 21 06 5E C4 [08:40:54]CheckFolder [08:40:54]dirname=/storage/ofd_packets [08:40:54]CheckFolder done [08:40:54]ProducePacketName [08:40:54]name=ofd_packets/00069676 [08:40:54]NVStorageSaveData ofd_packets/00069676 [08:40:54]File name is /storage/ofd_packets/00069676 [08:40:54]Write 301 bytes [08:40:54]NVStorageSaveData done [08:40:54]OFDSenderStorePacket done [08:40:54]KKMCreateOFDPacket done [08:40:54]NVStorageSaveData kkm_last_timestamp [08:40:54]File name is /storage/kkm_last_timestamp [08:40:54]Write 4 bytes [08:40:54]NVStorageSaveData done [08:40:54]ExternCall_PrintAddStr [08:40:54]wPrintStart [08:40:54]Write to MH i2c: 01 00 00 7B 15 90 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 7B 15 00 00 00 00 00 FF 0F A5 [08:40:54]RasterBufferAndPrint [08:40:54]line Счет N : (1)2885414 [08:40:54]line ИНН: 02508201610067 [08:40:54]line Контрольно-Кассовый Чек [08:40:54]line ПРОДАЖА [08:40:54]line ТРК (МРК, ГНК) : 22 [08:40:54]line Товар: 2710124130 [08:40:54]line Аи-92-К-5 [08:40:54]line 3.740 * 66.90 [08:40:54]line = 250.21 [08:40:54]line НДС 12% НСП 1% [08:40:54]line > о реализуемом товаре [08:40:54]line ОКРУГЛЕНИЕ: -0.21 [08:40:54]line ИТОГО: 250.00 [08:40:54]line Внесено: 250.00 [08:40:54]line СДАЧА: 0.00 [08:40:54]line НСП 1% : 2.21 [08:40:54]line НДС 12% : 26.57 [08:40:54]line Наличными: 250.00 [08:40:54]line Безнал.: 0.00 [08:40:54]line Место: АЗС № 85 "Партнер Нефть" [08:40:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:40:54]line СНО: Общий режим [08:40:54]line Чек 66 21.10.2024 08:40 [08:40:54]line Смена: 194 ФФД: 1.0 [08:40:54]line ЗНМ: 0300000167 [08:40:54]line РНМ: 0000000000156251 [08:40:54]line Версия ККМ: v1.0 [08:40:54]line ФМ: 0000000000963346 [08:40:55]line ФД: 69676 [08:40:55]line ФПД: 275215306269713 [08:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69676&fm=275215306269713&tin=02508201610067®Number=0000000000156251&sum=25000 [08:40:55]OFD Sender: Processing packet 69676 [packets to send 18, broken 17] [08:40:55]ProducePacketName [08:40:55]name=ofd_packets/00069676 [08:40:55]OFD Sender: To server: pG, [08:40:55]CommunicateWithHost lk.salyk.kg:30040 [08:40:55]ConnectInit lk.salyk.kg [08:40:55]written 0, free lines is 4095 [08:40:55]Connected sock=10 [08:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9A 2C 07 01 8F 3F 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 98 13 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 10 01 00 35 04 06 00 FA 4E 8E 91 24 11 A0 7D 8D CC 21 06 5E C4 [08:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 80 E1 47 00 A4 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 10 01 00 F4 03 04 00 3C BD 15 67 B6 04 01 00 00 B7 5F 11 59 9A 1B 4B C5 [08:40:55]CommunicateWithHost err = 0 [08:40:55]CheckOFDResponse [08:40:55]1017 (14) - 77093643461234 [08:40:55]1041 (16) - 0000000000963346 [08:40:55]1040 (4) - 69676 [08:40:55]1012 (4) - 21.10.2024 02:32 [08:40:55]1206 (1) - 0 [08:40:55]OFD Sender: Remove packet 69676 [08:40:55]ProducePacketName [08:40:55]name=ofd_packets/00069676 [08:40:55]NVStorageDeleteData [08:40:55]Write to MH i2c: 01 00 00 A6 15 BB [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0C CD [08:40:55]RasterBufferAndPrint [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]written 0, free lines is 3333 [08:40:55]MH_Cut [08:40:55]Write to MH i2c: D1 01 00 AD 15 01 94 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 AD 15 00 93 [08:40:55]Write to MH i2c: 01 00 00 AE 15 C3 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]OFD Sender: No OFD packet to send [08:40:56]*** Cut start [08:40:56]*** Partial cut [08:40:56]*** CUTSNS_PIN = 1 [08:40:56]*** CUTSNS_PIN = 0 [08:40:56]*** Brake cut motor [08:40:56]Read from MH i2c: 01 [08:40:56]MH_I2C_Read... [08:40:56]*** Stop cut motor [08:40:56]*** Cut end [08:40:56]Read from MH i2c: 01 07 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: 01 07 00 AE 15 00 00 00 00 00 FF 0F D8 [08:40:56]process_action close_receipt done [08:40:56]requested_data is exist [08:40:56]produce_requested_data [08:40:56]requested_item fm.sn is exist - process it [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 11 00 00 [08:40:56]Write to MH i2c: E2 08 00 AF 15 80 11 00 00 00 00 00 00 3E [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 17 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 17 00 AF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [08:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:40:57]wFMCommunicate OK [08:40:57]requested_item fd.num is exist - process it [08:40:57]SAM_PROTO_GetFieldsCounters [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 00 00 [08:40:57]Write to MH i2c: E2 08 00 B0 15 80 13 00 00 00 00 00 00 41 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 62 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 62 00 B0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 10 01 00 0E 04 04 00 C2 00 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 21 [08:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 10 01 00 0E 04 04 00 C2 00 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:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetFieldsCounters done [08:40:57]requested_item shift.num is exist - process it [08:40:57]requested_item shift.opened is exist - process it [08:40:57]req_shift_opened [08:40:57]FM_GetShiftState [08:40:57]SAM_PROTO_GetShiftState [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 13 01 00 [08:40:57]Write to MH i2c: E2 08 00 B1 15 80 13 01 00 00 00 00 00 43 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 0E 00 B1 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6F [08:40:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_GetShiftState done [08:40:57]FM_GetShiftState done [08:40:57]req_shift_opened done [08:40:57]requested_item shift.open_date is exist - process it [08:40:57]req_shift_open_date [08:40:57]req_shift_open_date done [08:40:57]produce_requested_data done [08:40:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69676,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:40:57]process_action_free close_receipt [08:40:57]json_value_free [08:40:57]json_value_free done [08:40:57]process_json_proto returns [08:40:57]Send response to host [08:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69676,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:40:57]free response buf [08:40:57]execute_script done [08:40:57]execute_script returns [08:40:57]free content buf [08:40:57]Sock 8.Close socket [08:40:57]Sock 8.Thread stoped [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:11]accept exits with 9 [08:43:11]New connection [08:43:11]New thread 3067313508 created [08:43:11]Thread 3067456868 joined [08:43:11]Waiting for new connection... [08:43:11] Sock 9.Parse request [08:43:11]Sock 9.Check first char [08:43:11]Sock 9.First char is OK [08:43:11]request: POST /json_proto HTTP/1.0 [08:43:11]Method: POST [08:43:11]URL: /json_proto [08:43:11]Method is POST - this is cgi request [08:43:11]url: /json_proto [08:43:11]query_string will be loaded in cgi processing [08:43:11]execute_cgi json_proto POST (null) [08:43:11]execute_cgi path=json_proto method=POST [08:43:11]POST find Content-Length [08:43:11]Host: 172.17.50.3:8080 [08:43:11]Content-Length: 678 [08:43:11]Content-Type: application/json [08:43:11] [08:43:11]POST finish read [08:43:11]Found Content-Length = 678 [08:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:11]execute_script... [08:43:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:11]POST & json_proto [08:43:11]process_json_proto [08:43:11]json parsed OK: [08:43:11]protocol is kg_v1.0 [08:43:11]action value=close_receipt [08:43:11]process_action close_receipt [08:43:11]cmd_close_receipt [08:43:11]MH_GetDate [08:43:11]Write to MH i2c: F0 00 00 B2 15 B6 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: F0 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: F0 09 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: F0 09 00 B2 15 00 21 14 16 67 6B 98 1E 66 F8 [08:43:11]GetLastDocTimeStamp 1729500056 [08:43:11]current date 1729500193 [08:43:11]FM_GetShiftState [08:43:11]SAM_PROTO_GetShiftState [08:43:11]wFMCommunicate request_size=4 [08:43:11]MH_SAM_APDU [08:43:11]CAPDU: 80 13 01 00 [08:43:11]Write to MH i2c: E2 08 00 B3 15 80 13 01 00 00 00 00 00 45 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:11]Read from MH i2c: E2 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: E2 0E 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: E2 0E 00 B3 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 71 [08:43:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:43:11]wFMCommunicate OK [08:43:11]SAM_PROTO_GetShiftState done [08:43:11]FM_GetShiftState done [08:43:11]opened in 1729469703 [08:43:11]opened+sec_in_day 1729556103 [08:43:11]quantity*price = 40006 [08:43:11]sum+1 = 40007 [08:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 67 21.10.2024 08:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69677 ФПД: 109586217921004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69677&fm=109586217921004&tin=02508201610067®Number=0000000000156251&sum=40000 [08:43:12]StoreToDocumentArchive [08:43:12]shift 194 fd 69677 [08:43:12]save to /storage/0194/doc_00069677 [08:43:12]save last doc name /storage/0194/doc_00069677 to /storage/kkm_last_doc_name [08:43:12]save OK [08:43:12]Clear old archive folders... [08:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:12]tlvbuf is B6F23590 [08:43:12]SAM_PROTO_ClearQueue [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 09 00 00 [08:43:12]Write to MH i2c: E2 08 00 C0 15 80 09 00 00 00 00 00 00 47 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [08:43:12]RAPDU: 90 00 [08:43:12]wFMCommunicate OK [08:43:12]SAM_PROTO_ClearQueue done [08:43:12]KKMCreateOFDPacket [08:43:12]OFDProtocolAddRootSTLVToBuf [08:43:12]FM_MakeSignedData [08:43:12]FM_MakeSignedData [08:43:12]SAM_PROTO_SignData [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 0D 01 02 [08:43:12]Write to MH i2c: E2 08 00 C1 15 80 0D 01 02 00 00 00 00 4F [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 C1 15 00 90 00 4A [08:43:12]RAPDU: 90 00 [08:43:12]wFMCommunicate OK [08:43:12]wFMCommunicate request_size=255 [08:43:12]MH_SAM_APDU [08:43: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 10 01 00 35 04 06 00 63 [08:43:12]Write to MH i2c: E2 02 01 C2 15 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 10 01 00 35 04 06 00 63 00 00 00 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 C2 15 00 90 00 4B [08:43:12]RAPDU: 90 00 [08:43:12]wFMCommunicate OK [08:43:12]wFMCommunicate request_size=10 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 0D 02 02 05 AB 07 97 69 EC [08:43:12]Write to MH i2c: E2 0D 00 C3 15 80 0D 02 02 05 00 AB 07 97 69 EC 00 00 FA [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 03 00 C3 15 00 90 00 4C [08:43:12]RAPDU: 90 00 [08:43:12]wFMCommunicate OK [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 0D 03 02 [08:43:12]Write to MH i2c: E2 08 00 C4 15 80 0D 03 02 00 00 00 00 54 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0B 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0B 00 C4 15 00 E2 D1 13 A2 65 3E 8A D9 90 00 C3 [08:43:12]RAPDU: E2 D1 13 A2 65 3E 8A D9 90 00 [08:43:12]wFMCommunicate OK [08:43:12]SAM_PROTO_SignData done [08:43:12]FM_MakeSignedData done [08:43:12]CreateOFDProtocolMessage [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 11 00 00 [08:43:12]Write to MH i2c: E2 08 00 C5 15 80 11 00 00 00 00 00 00 54 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 17 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 17 00 C5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [08:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:43:12]wFMCommunicate OK [08:43:12]CreateOFDProtocolMessage done [08:43:12]OFDSenderStorePacket 69677 [08:43:12]StoreOFDPacket docnum=69677 [08:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A B1 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 10 01 00 35 04 06 00 63 AB 07 97 69 EC E2 D1 13 A2 65 3E 8A D9 [08:43:12]CheckFolder [08:43:12]dirname=/storage/ofd_packets [08:43:12]CheckFolder done [08:43:12]ProducePacketName [08:43:12]name=ofd_packets/00069677 [08:43:12]NVStorageSaveData ofd_packets/00069677 [08:43:12]File name is /storage/ofd_packets/00069677 [08:43:12]Write 301 bytes [08:43:12]NVStorageSaveData done [08:43:12]OFDSenderStorePacket done [08:43:12]KKMCreateOFDPacket done [08:43:12]NVStorageSaveData kkm_last_timestamp [08:43:12]File name is /storage/kkm_last_timestamp [08:43:12]Write 4 bytes [08:43:12]NVStorageSaveData done [08:43:12]ExternCall_PrintAddStr [08:43:12]wPrintStart [08:43:12]Write to MH i2c: 01 00 00 C6 15 DB [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: 01 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: 01 07 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: 01 07 00 C6 15 00 00 00 00 00 FF 0F F0 [08:43:12]RasterBufferAndPrint [08:43:12]line Счет N : (1)2885416 [08:43:12]line ИНН: 02508201610067 [08:43:12]line Контрольно-Кассовый Чек [08:43:12]line ПРОДАЖА [08:43:12]line ТРК (МРК, ГНК) : 22 [08:43:12]line Товар: 2710124130 [08:43:12]line Аи-92-К-5 [08:43:12]line 5.980 * 66.90 [08:43:12]line = 400.06 [08:43:12]line НДС 12% НСП 1% [08:43:12]line > о реализуемом товаре [08:43:12]line ОКРУГЛЕНИЕ: -0.06 [08:43:12]line ИТОГО: 400.00 [08:43:12]line Внесено: 400.00 [08:43:12]line СДАЧА: 0.00 [08:43:12]line НСП 1% : 3.54 [08:43:12]line НДС 12% : 42.48 [08:43:12]line Наличными: 400.00 [08:43:12]line Безнал.: 0.00 [08:43:12]line Место: АЗС № 85 "Партнер Нефть" [08:43:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:43:12]line СНО: Общий режим [08:43:12]line Чек 67 21.10.2024 08:43 [08:43:12]line Смена: 194 ФФД: 1.0 [08:43:12]line ЗНМ: 0300000167 [08:43:12]line РНМ: 0000000000156251 [08:43:12]line Версия ККМ: v1.0 [08:43:12]line ФМ: 0000000000963346 [08:43:12]line ФД: 69677 [08:43:12]line ФПД: 109586217921004 [08:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084314&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69677&fm=109586217921004&tin=02508201610067®Number=0000000000156251&sum=40000 [08:43:13]OFD Sender: Processing packet 69677 [packets to send 18, broken 17] [08:43:13]ProducePacketName [08:43:13]name=ofd_packets/00069677 [08:43:13]OFD Sender: To server: pG, [08:43:13]CommunicateWithHost lk.salyk.kg:30040 [08:43:13]ConnectInit lk.salyk.kg [08:43:13]written 0, free lines is 4095 [08:43:13]Connected sock=8 [08:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A B1 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 10 01 00 35 04 06 00 63 AB 07 97 69 EC E2 D1 13 A2 65 3E 8A D9 [08:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DB 97 47 00 E9 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 10 01 00 F4 03 04 00 C6 BD 15 67 B6 04 01 00 00 59 69 87 95 15 A8 94 58 [08:43:13]CommunicateWithHost err = 0 [08:43:13]CheckOFDResponse [08:43:13]1017 (14) - 77093643461234 [08:43:13]1041 (16) - 0000000000963346 [08:43:13]1040 (4) - 69677 [08:43:13]1012 (4) - 21.10.2024 02:34 [08:43:13]1206 (1) - 0 [08:43:13]OFD Sender: Remove packet 69677 [08:43:13]ProducePacketName [08:43:13]name=ofd_packets/00069677 [08:43:13]NVStorageDeleteData [08:43:13]Write to MH i2c: 01 00 00 F1 15 06 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 07 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 07 00 F1 15 00 00 00 00 00 FF 0C 18 [08:43:13]RasterBufferAndPrint [08:43:13]line [08:43:13]line [08:43:13]line [08:43:13]line [08:43:13]line [08:43:13]written 0, free lines is 3333 [08:43:13]MH_Cut [08:43:13]Write to MH i2c: D1 01 00 F8 15 01 DF [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: D1 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: D1 01 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: D1 01 00 F8 15 00 DE [08:43:13]Write to MH i2c: 01 00 00 F9 15 0E [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]OFD Sender: No OFD packet to send [08:43:14]*** Cut start [08:43:14]*** Partial cut [08:43:14]*** CUTSNS_PIN = 1 [08:43:14]*** CUTSNS_PIN = 0 [08:43:14]*** Brake cut motor [08:43:14]Read from MH i2c: 01 [08:43:14]MH_I2C_Read... [08:43:14]*** Stop cut motor [08:43:14]*** Cut end [08:43:14]Read from MH i2c: 01 07 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: 01 07 00 F9 15 00 00 00 00 00 FF 0F 23 [08:43:14]process_action close_receipt done [08:43:14]requested_data is exist [08:43:14]produce_requested_data [08:43:14]requested_item fm.sn is exist - process it [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 11 00 00 [08:43:14]Write to MH i2c: E2 08 00 FA 15 80 11 00 00 00 00 00 00 89 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:14]Read from MH i2c: E2 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 17 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 17 00 FA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [08:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:43:14]wFMCommunicate OK [08:43:14]requested_item fd.num is exist - process it [08:43:14]SAM_PROTO_GetFieldsCounters [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 13 00 00 [08:43:14]Write to MH i2c: E2 08 00 FB 15 80 13 00 00 00 00 00 00 8C [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 62 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 62 00 FB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 10 01 00 0E 04 04 00 C2 00 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 70 [08:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 10 01 00 0E 04 04 00 C2 00 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:43:15]wFMCommunicate OK [08:43:15]SAM_PROTO_GetFieldsCounters done [08:43:15]requested_item shift.num is exist - process it [08:43:15]requested_item shift.opened is exist - process it [08:43:15]req_shift_opened [08:43:15]FM_GetShiftState [08:43:15]SAM_PROTO_GetShiftState [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 13 01 00 [08:43:15]Write to MH i2c: E2 08 00 FC 15 80 13 01 00 00 00 00 00 8E [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0E 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0E 00 FC 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BA [08:43:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:43:15]wFMCommunicate OK [08:43:15]SAM_PROTO_GetShiftState done [08:43:15]FM_GetShiftState done [08:43:15]req_shift_opened done [08:43:15]requested_item shift.open_date is exist - process it [08:43:15]req_shift_open_date [08:43:15]req_shift_open_date done [08:43:15]produce_requested_data done [08:43:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69677,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:43:15]process_action_free close_receipt [08:43:15]json_value_free [08:43:15]json_value_free done [08:43:15]process_json_proto returns [08:43:15]Send response to host [08:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69677,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:43:15]free response buf [08:43:15]execute_script done [08:43:15]execute_script returns [08:43:15]free content buf [08:43:15]Sock 9.Close socket [08:43:15]Sock 9.Thread stoped [08:43:15]accept exits with 10 [08:43:15]New connection [08:43:15]New thread 3067456868 created [08:43:15]Thread 3067313508 joined [08:43:15]Waiting for new connection... [08:43:15] Sock 10.Parse request [08:43:15]Sock 10.Check first char [08:43:15]Sock 10.First char is OK [08:43:15]request: POST /json_proto HTTP/1.0 [08:43:15]Method: POST [08:43:15]URL: /json_proto [08:43:15]Method is POST - this is cgi request [08:43:15]url: /json_proto [08:43:15]query_string will be loaded in cgi processing [08:43:15]execute_cgi json_proto POST (null) [08:43:15]execute_cgi path=json_proto method=POST [08:43:15]POST find Content-Length [08:43:15]Host: 172.17.50.3:8080 [08:43:15]Content-Length: 820 [08:43:15]Content-Type: application/json [08:43:15] [08:43:15]POST finish read [08:43:15]Found Content-Length = 820 [08:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885415", "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 }]} ], "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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:15]execute_script... [08:43: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)2885415", "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 }]} ], "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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:15]POST & json_proto [08:43:15]process_json_proto [08:43:15]json parsed OK: [08:43:15]protocol is kg_v1.0 [08:43:15]action value=close_receipt [08:43:15]process_action close_receipt [08:43:15]cmd_close_receipt [08:43:15]MH_GetDate [08:43:15]Write to MH i2c: F0 00 00 FD 15 01 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: F0 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: F0 09 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: F0 09 00 FD 15 00 26 14 16 67 6B 98 1E 66 48 [08:43:15]GetLastDocTimeStamp 1729500194 [08:43:15]current date 1729500198 [08:43:15]FM_GetShiftState [08:43:15]SAM_PROTO_GetShiftState [08:43:15]wFMCommunicate request_size=4 [08:43:15]MH_SAM_APDU [08:43:15]CAPDU: 80 13 01 00 [08:43:15]Write to MH i2c: E2 08 00 FE 15 80 13 01 00 00 00 00 00 90 [08:43:15]Write i2c OK [08:43:15]MH_I2C_Read... [08:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:15]Read from MH i2c: E2 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0E 00 [08:43:15]MH_I2C_Read... [08:43:15]Read from MH i2c: E2 0E 00 FE 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BC [08:43:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:43:15]wFMCommunicate OK [08:43:15]SAM_PROTO_GetShiftState done [08:43:15]FM_GetShiftState done [08:43:15]opened in 1729469703 [08:43:15]opened+sec_in_day 1729556103 [08:43:15]quantity*price = 100021 [08:43:15]sum+1 = 100023 [08:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 68 21.10.2024 08:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000963346 ФД: 69678 ФПД: 268497794539783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69678&fm=268497794539783&tin=02508201610067®Number=0000000000156251&sum=100022 [08:43:17]StoreToDocumentArchive [08:43:17]shift 194 fd 69678 [08:43:17]save to /storage/0194/doc_00069678 [08:43:17]save last doc name /storage/0194/doc_00069678 to /storage/kkm_last_doc_name [08:43:17]save OK [08:43:17]Clear old archive folders... [08:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:17]tlvbuf is 00C7F290 [08:43:17]SAM_PROTO_ClearQueue [08:43:17]wFMCommunicate request_size=4 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 09 00 00 [08:43:17]Write to MH i2c: E2 08 00 0B 16 80 09 00 00 00 00 00 00 93 [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [08:43:17]RAPDU: 90 00 [08:43:17]wFMCommunicate OK [08:43:17]SAM_PROTO_ClearQueue done [08:43:17]KKMCreateOFDPacket [08:43:17]OFDProtocolAddRootSTLVToBuf [08:43:17]FM_MakeSignedData [08:43:17]FM_MakeSignedData [08:43:17]SAM_PROTO_SignData [08:43:17]wFMCommunicate request_size=4 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 0D 01 02 [08:43:17]Write to MH i2c: E2 08 00 0C 16 80 0D 01 02 00 00 00 00 9B [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 0C 16 00 90 00 96 [08:43:17]RAPDU: 90 00 [08:43:17]wFMCommunicate OK [08:43:17]wFMCommunicate request_size=255 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 26 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 10 01 00 35 04 06 00 F4 [08:43:17]Write to MH i2c: E2 02 01 0D 16 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 26 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 10 01 00 35 04 06 00 F4 00 00 5D [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 0D 16 00 90 00 97 [08:43:17]RAPDU: 90 00 [08:43:17]wFMCommunicate OK [08:43:17]wFMCommunicate request_size=10 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 0D 02 02 05 32 83 AA A1 07 [08:43:17]Write to MH i2c: E2 0D 00 0E 16 80 0D 02 02 05 00 32 83 AA A1 07 00 00 AF [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 03 00 0E 16 00 90 00 98 [08:43:17]RAPDU: 90 00 [08:43:17]wFMCommunicate OK [08:43:17]wFMCommunicate request_size=4 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 0D 03 02 [08:43:17]Write to MH i2c: E2 08 00 0F 16 80 0D 03 02 00 00 00 00 A0 [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 0B 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 0B 00 0F 16 00 FE D3 C3 D0 EC B7 2C 96 90 00 6A [08:43:17]RAPDU: FE D3 C3 D0 EC B7 2C 96 90 00 [08:43:17]wFMCommunicate OK [08:43:17]SAM_PROTO_SignData done [08:43:17]FM_MakeSignedData done [08:43:17]CreateOFDProtocolMessage [08:43:17]wFMCommunicate request_size=4 [08:43:17]MH_SAM_APDU [08:43:17]CAPDU: 80 11 00 00 [08:43:17]Write to MH i2c: E2 08 00 10 16 80 11 00 00 00 00 00 00 A0 [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:17]Read from MH i2c: E2 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 17 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: E2 17 00 10 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [08:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:43:17]wFMCommunicate OK [08:43:17]CreateOFDProtocolMessage done [08:43:17]OFDSenderStorePacket 69678 [08:43:17]StoreOFDPacket docnum=69678 [08:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD C0 07 01 C1 7C 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 26 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 10 01 00 35 04 06 00 F4 32 83 AA A1 07 FE D3 C3 D0 EC B7 2C 96 [08:43:17]CheckFolder [08:43:17]dirname=/storage/ofd_packets [08:43:17]CheckFolder done [08:43:17]ProducePacketName [08:43:17]name=ofd_packets/00069678 [08:43:17]NVStorageSaveData ofd_packets/00069678 [08:43:17]File name is /storage/ofd_packets/00069678 [08:43:17]Write 301 bytes [08:43:17]NVStorageSaveData done [08:43:17]OFDSenderStorePacket done [08:43:17]KKMCreateOFDPacket done [08:43:17]NVStorageSaveData kkm_last_timestamp [08:43:17]File name is /storage/kkm_last_timestamp [08:43:17]Write 4 bytes [08:43:17]NVStorageSaveData done [08:43:17]ExternCall_PrintAddStr [08:43:17]wPrintStart [08:43:17]Write to MH i2c: 01 00 00 11 16 27 [08:43:17]Write i2c OK [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 07 00 [08:43:17]MH_I2C_Read... [08:43:17]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 FF 0F 3C [08:43:17]RasterBufferAndPrint [08:43:17]line Счет N : (1)2885415 [08:43:17]line ИНН: 02508201610067 [08:43:17]line Контрольно-Кассовый Чек [08:43:17]line ПРОДАЖА [08:43:17]line ТРК (МРК, ГНК) : 43 [08:43:17]line Товар: 2710124500 [08:43:17]line Аи-95-К-5 [08:43:17]line 13.480 * 74.20 [08:43:17]line = 1000.22 [08:43:17]line НДС 12% НСП 1% [08:43:17]line > о реализуемом товаре [08:43:17]line ИТОГО: 1000.22 [08:43:17]line НСП 1% : 8.85 [08:43:17]line НДС 12% : 106.22 [08:43:17]line Наличными: 0.00 [08:43:17]line Безнал.: 1000.22 [08:43:17]line Место: АЗС № 85 "Партнер Нефть" [08:43:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:43:17]line СНО: Общий режим [08:43:17]line Чек 68 21.10.2024 08:43 [08:43:17]line Смена: 194 ФФД: 1.0 [08:43:17]line ЗНМ: 0300000167 [08:43:17]line РНМ: 0000000000156251 [08:43:17]line Версия ККМ: v1.0 [08:43:17]line Платежная система: Бакай Банк [08:43:17]line ФМ: 0000000000963346 [08:43:17]line ФД: 69678 [08:43:17]line ФПД: 268497794539783 [08:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69678&fm=268497794539783&tin=02508201610067®Number=0000000000156251&sum=100022 [08:43:17]OFD Sender: Processing packet 69678 [packets to send 18, broken 17] [08:43:17]ProducePacketName [08:43:17]name=ofd_packets/00069678 [08:43:17]written 0, free lines is 4095 [08:43:18]OFD Sender: To server: pG, [08:43:18]CommunicateWithHost lk.salyk.kg:30040 [08:43:18]ConnectInit lk.salyk.kg [08:43:18]Connected sock=9 [08:43:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD C0 07 01 C1 7C 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 26 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 10 01 00 35 04 06 00 F4 32 83 AA A1 07 FE D3 C3 D0 EC B7 2C 96 [08:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1B FB 47 00 34 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 10 01 00 F4 03 04 00 CB BD 15 67 B6 04 01 00 00 43 6B 0B 75 80 31 69 2F [08:43:18]CommunicateWithHost err = 0 [08:43:18]CheckOFDResponse [08:43:18]1017 (14) - 77093643461234 [08:43:18]1041 (16) - 0000000000963346 [08:43:18]1040 (4) - 69678 [08:43:18]1012 (4) - 21.10.2024 02:34 [08:43:18]1206 (1) - 0 [08:43:18]OFD Sender: Remove packet 69678 [08:43:18]ProducePacketName [08:43:18]name=ofd_packets/00069678 [08:43:18]NVStorageDeleteData [08:43:18]Write to MH i2c: 01 00 00 3B 16 51 [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 07 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 0C 0D 71 [08:43:18]RasterBufferAndPrint [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]line [08:43:18]written 0, free lines is 3355 [08:43:18]MH_Cut [08:43:18]Write to MH i2c: D1 01 00 42 16 01 2A [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 01 00 [08:43:18]MH_I2C_Read... [08:43:18]Read from MH i2c: D1 01 00 42 16 00 29 [08:43:18]Write to MH i2c: 01 00 00 43 16 59 [08:43:18]Write i2c OK [08:43:18]MH_I2C_Read... [08:43:18]OFD Sender: No OFD packet to send [08:43:19]*** Cut start [08:43:19]*** Partial cut [08:43:19]*** CUTSNS_PIN = 1 [08:43:19]*** CUTSNS_PIN = 0 [08:43:19]*** Brake cut motor [08:43:19]Read from MH i2c: 01 [08:43:19]MH_I2C_Read... [08:43:19]*** Stop cut motor [08:43:19]*** Cut end [08:43:19]Read from MH i2c: 01 07 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: 01 07 00 43 16 00 00 00 00 00 FF 0F 6E [08:43:19]process_action close_receipt done [08:43:19]requested_data is exist [08:43:19]produce_requested_data [08:43:19]requested_item fm.sn is exist - process it [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 11 00 00 [08:43:19]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [08:43:19]Write i2c OK [08:43:19]MH_I2C_Read... [08:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:19]Read from MH i2c: E2 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 17 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [08:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:43:19]wFMCommunicate OK [08:43:19]requested_item fd.num is exist - process it [08:43:19]SAM_PROTO_GetFieldsCounters [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 13 00 00 [08:43:19]Write to MH i2c: E2 08 00 45 16 80 13 00 00 00 00 00 00 D7 [08:43:19]Write i2c OK [08:43:19]MH_I2C_Read... [08:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:19]Read from MH i2c: E2 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 62 00 [08:43:19]MH_I2C_Read... [08:43:19]Read from MH i2c: E2 62 00 45 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 10 01 00 0E 04 04 00 C2 00 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 BF [08:43:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 10 01 00 0E 04 04 00 C2 00 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:43:19]wFMCommunicate OK [08:43:19]SAM_PROTO_GetFieldsCounters done [08:43:19]requested_item shift.num is exist - process it [08:43:19]requested_item shift.opened is exist - process it [08:43:19]req_shift_opened [08:43:19]FM_GetShiftState [08:43:19]SAM_PROTO_GetShiftState [08:43:19]wFMCommunicate request_size=4 [08:43:19]MH_SAM_APDU [08:43:19]CAPDU: 80 13 01 00 [08:43:19]Write to MH i2c: E2 08 00 46 16 80 13 01 00 00 00 00 00 D9 [08:43:20]Write i2c OK [08:43:20]MH_I2C_Read... [08:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:20]Read from MH i2c: E2 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 0E 00 [08:43:20]MH_I2C_Read... [08:43:20]Read from MH i2c: E2 0E 00 46 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 05 [08:43:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:43:20]wFMCommunicate OK [08:43:20]SAM_PROTO_GetShiftState done [08:43:20]FM_GetShiftState done [08:43:20]req_shift_opened done [08:43:20]requested_item shift.open_date is exist - process it [08:43:20]req_shift_open_date [08:43:20]req_shift_open_date done [08:43:20]produce_requested_data done [08:43:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69678,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:43:20]process_action_free close_receipt [08:43:20]json_value_free [08:43:20]json_value_free done [08:43:20]process_json_proto returns [08:43:20]Send response to host [08:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69678,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:43:20]free response buf [08:43:20]execute_script done [08:43:20]execute_script returns [08:43:20]free content buf [08:43:20]Sock 10.Close socket [08:43:20]Sock 10.Thread stoped [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:19]accept exits with 8 [08:44:19]New connection [08:44:19]New thread 3067313508 created [08:44:19]Thread 3067456868 joined [08:44:19]Waiting for new connection... [08:44:19] Sock 8.Parse request [08:44:19]Sock 8.Check first char [08:44:19]Sock 8.First char is OK [08:44:19]request: POST /json_proto HTTP/1.0 [08:44:19]Method: POST [08:44:19]URL: /json_proto [08:44:19]Method is POST - this is cgi request [08:44:19]url: /json_proto [08:44:19]query_string will be loaded in cgi processing [08:44:19]execute_cgi json_proto POST (null) [08:44:19]execute_cgi path=json_proto method=POST [08:44:19]POST find Content-Length [08:44:19]Host: 172.17.50.3:8080 [08:44:19]Content-Length: 683 [08:44:19]Content-Type: application/json [08:44:19] [08:44:19]POST finish read [08:44:19]Found Content-Length = 683 [08:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]execute_script... [08:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]POST & json_proto [08:44:19]process_json_proto [08:44:19]json parsed OK: [08:44:19]protocol is kg_v1.0 [08:44:19]action value=close_receipt [08:44:19]process_action close_receipt [08:44:19]cmd_close_receipt [08:44:19]MH_GetDate [08:44:19]Write to MH i2c: F0 00 00 47 16 4C [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 47 16 00 66 14 16 67 6B 98 1E 66 D3 [08:44:19]GetLastDocTimeStamp 1729500198 [08:44:19]current date 1729500262 [08:44:19]FM_GetShiftState [08:44:19]SAM_PROTO_GetShiftState [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 01 00 [08:44:19]Write to MH i2c: E2 08 00 48 16 80 13 01 00 00 00 00 00 DB [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 48 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 07 [08:44:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetShiftState done [08:44:19]FM_GetShiftState done [08:44:19]opened in 1729469703 [08:44:19]opened+sec_in_day 1729556103 [08:44:19]quantity*price = 100015 [08:44:19]sum+1 = 100017 [08:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 69 21.10.2024 08:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69679 ФПД: 78956002451007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69679&fm=78956002451007&tin=02508201610067®Number=0000000000156251&sum=100000 [08:44:20]StoreToDocumentArchive [08:44:20]shift 194 fd 69679 [08:44:20]save to /storage/0194/doc_00069679 [08:44:20]save last doc name /storage/0194/doc_00069679 to /storage/kkm_last_doc_name [08:44:20]save OK [08:44:20]Clear old archive folders... [08:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:20]tlvbuf is B6F23210 [08:44:20]SAM_PROTO_ClearQueue [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 09 00 00 [08:44:20]Write to MH i2c: E2 08 00 55 16 80 09 00 00 00 00 00 00 DD [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]SAM_PROTO_ClearQueue done [08:44:20]KKMCreateOFDPacket [08:44:20]OFDProtocolAddRootSTLVToBuf [08:44:20]FM_MakeSignedData [08:44:20]FM_MakeSignedData [08:44:20]SAM_PROTO_SignData [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 01 02 [08:44:20]Write to MH i2c: E2 08 00 56 16 80 0D 01 02 00 00 00 00 E5 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 56 16 00 90 00 E0 [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]wFMCommunicate request_size=255 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 66 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 10 01 00 35 04 06 00 47 [08:44:20]Write to MH i2c: E2 02 01 57 16 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 66 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 10 01 00 35 04 06 00 47 00 00 ED [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 57 16 00 90 00 E1 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=10 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 02 02 05 CF 60 7A 9E 3F [08:44:21]Write to MH i2c: E2 0D 00 58 16 80 0D 02 02 05 00 CF 60 7A 9E 3F 00 00 78 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 58 16 00 90 00 E2 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 03 02 [08:44:21]Write to MH i2c: E2 08 00 59 16 80 0D 03 02 00 00 00 00 EA [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 59 16 00 55 99 4C 6B E0 23 29 CD 90 00 89 [08:44:21]RAPDU: 55 99 4C 6B E0 23 29 CD 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_SignData done [08:44:21]FM_MakeSignedData done [08:44:21]CreateOFDProtocolMessage [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 11 00 00 [08:44:21]Write to MH i2c: E2 08 00 5A 16 80 11 00 00 00 00 00 00 EA [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 5A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [08:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:21]wFMCommunicate OK [08:44:21]CreateOFDProtocolMessage done [08:44:21]OFDSenderStorePacket 69679 [08:44:21]StoreOFDPacket docnum=69679 [08:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B 15 07 01 78 6B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 66 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 10 01 00 35 04 06 00 47 CF 60 7A 9E 3F 55 99 4C 6B E0 23 29 CD [08:44:21]CheckFolder [08:44:21]dirname=/storage/ofd_packets [08:44:21]CheckFolder done [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00069679 [08:44:21]NVStorageSaveData ofd_packets/00069679 [08:44:21]File name is /storage/ofd_packets/00069679 [08:44:21]Write 301 bytes [08:44:21]NVStorageSaveData done [08:44:21]OFDSenderStorePacket done [08:44:21]KKMCreateOFDPacket done [08:44:21]NVStorageSaveData kkm_last_timestamp [08:44:21]File name is /storage/kkm_last_timestamp [08:44:21]Write 4 bytes [08:44:21]NVStorageSaveData done [08:44:21]ExternCall_PrintAddStr [08:44:21]wPrintStart [08:44:21]Write to MH i2c: 01 00 00 5B 16 71 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 FF 0F 86 [08:44:21]RasterBufferAndPrint [08:44:21]line Счет N : (1)2885417 [08:44:21]line ИНН: 02508201610067 [08:44:21]line Контрольно-Кассовый Чек [08:44:21]line ПРОДАЖА [08:44:21]line ТРК (МРК, ГНК) : 12 [08:44:21]line Товар: 2710124130 [08:44:21]line Аи-92-К-5 [08:44:21]line 14.950 * 66.90 [08:44:21]line = 1000.16 [08:44:21]line НДС 12% НСП 1% [08:44:21]line > о реализуемом товаре [08:44:21]line ОКРУГЛЕНИЕ: -0.16 [08:44:21]line ИТОГО: 1000.00 [08:44:21]line Внесено: 1000.00 [08:44:21]line СДАЧА: 0.00 [08:44:21]line НСП 1% : 8.85 [08:44:21]line НДС 12% : 106.21 [08:44:21]line Наличными: 1000.00 [08:44:21]line Безнал.: 0.00 [08:44:21]line Место: АЗС № 85 "Партнер Нефть" [08:44:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:44:21]line СНО: Общий режим [08:44:21]line Чек 69 21.10.2024 08:44 [08:44:21]line Смена: 194 ФФД: 1.0 [08:44:21]line ЗНМ: 0300000167 [08:44:21]line РНМ: 0000000000156251 [08:44:21]line Версия ККМ: v1.0 [08:44:21]line ФМ: 0000000000963346 [08:44:21]line ФД: 69679 [08:44:21]line ФПД: 78956002451007 [08:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084422&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69679&fm=78956002451007&tin=02508201610067®Number=0000000000156251&sum=100000 [08:44:21]OFD Sender: Processing packet 69679 [packets to send 18, broken 17] [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00069679 [08:44:21]OFD Sender: To server: pG, [08:44:21]CommunicateWithHost lk.salyk.kg:30040 [08:44:21]ConnectInit lk.salyk.kg [08:44:21]written 0, free lines is 4095 [08:44:21]Connected sock=9 [08:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B 15 07 01 78 6B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 66 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 10 01 00 35 04 06 00 47 CF 60 7A 9E 3F 55 99 4C 6B E0 23 29 CD [08:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 38 47 00 D1 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 39 36 33 33 34 36 10 04 04 00 2F 10 01 00 F4 03 04 00 0A BE 15 67 B6 04 01 00 00 A0 02 A7 22 02 50 6B 89 [08:44:21]CommunicateWithHost err = 0 [08:44:21]CheckOFDResponse [08:44:21]1017 (14) - 77093643461234 [08:44:21]1041 (16) - 0000000000963346 [08:44:21]1040 (4) - 69679 [08:44:21]1012 (4) - 21.10.2024 02:35 [08:44:21]1206 (1) - 0 [08:44:21]OFD Sender: Remove packet 69679 [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00069679 [08:44:21]NVStorageDeleteData [08:44:22]Write to MH i2c: 01 00 00 86 16 9C [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0C AE [08:44:22]RasterBufferAndPrint [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]written 0, free lines is 3336 [08:44:22]MH_Cut [08:44:22]Write to MH i2c: D1 01 00 8D 16 01 75 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 01 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 01 00 8D 16 00 74 [08:44:22]Write to MH i2c: 01 00 00 8E 16 A4 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]OFD Sender: No OFD packet to send [08:44:22]*** Cut start [08:44:22]*** Partial cut [08:44:22]*** CUTSNS_PIN = 1 [08:44:22]*** CUTSNS_PIN = 0 [08:44:23]*** Brake cut motor [08:44:23]Read from MH i2c: 01 [08:44:23]MH_I2C_Read... [08:44:23]*** Stop cut motor [08:44:23]*** Cut end [08:44:23]Read from MH i2c: 01 07 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 8E 16 00 00 00 00 00 FF 0F B9 [08:44:23]process_action close_receipt done [08:44:23]requested_data is exist [08:44:23]produce_requested_data [08:44:23]requested_item fm.sn is exist - process it [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 11 00 00 [08:44:23]Write to MH i2c: E2 08 00 8F 16 80 11 00 00 00 00 00 00 1F [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 8F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [08:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:23]wFMCommunicate OK [08:44:23]requested_item fd.num is exist - process it [08:44:23]SAM_PROTO_GetFieldsCounters [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 13 00 00 [08:44:23]Write to MH i2c: E2 08 00 90 16 80 13 00 00 00 00 00 00 22 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 62 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 62 00 90 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 10 01 00 0E 04 04 00 C2 00 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 0E [08:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 10 01 00 0E 04 04 00 C2 00 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:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_GetFieldsCounters done [08:44:23]requested_item shift.num is exist - process it [08:44:23]requested_item shift.opened is exist - process it [08:44:23]req_shift_opened [08:44:23]FM_GetShiftState [08:44:23]SAM_PROTO_GetShiftState [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 13 01 00 [08:44:23]Write to MH i2c: E2 08 00 91 16 80 13 01 00 00 00 00 00 24 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0E 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0E 00 91 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 50 [08:44:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_GetShiftState done [08:44:23]FM_GetShiftState done [08:44:23]req_shift_opened done [08:44:23]requested_item shift.open_date is exist - process it [08:44:23]req_shift_open_date [08:44:23]req_shift_open_date done [08:44:23]produce_requested_data done [08:44:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69679,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:44:23]process_action_free close_receipt [08:44:23]json_value_free [08:44:23]json_value_free done [08:44:23]process_json_proto returns [08:44:23]Send response to host [08:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69679,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:44:23]free response buf [08:44:23]execute_script done [08:44:23]execute_script returns [08:44:23]free content buf [08:44:23]Sock 8.Close socket [08:44:23]Sock 8.Thread stoped [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:23]accept exits with 10 [08:45:23]New connection [08:45:23]New thread 3067456868 created [08:45:23]Thread 3067313508 joined [08:45:23]Waiting for new connection... [08:45:23] Sock 10.Parse request [08:45:23]Sock 10.Check first char [08:45:23]Sock 10.First char is OK [08:45:23]request: POST /json_proto HTTP/1.0 [08:45:23]Method: POST [08:45:23]URL: /json_proto [08:45:23]Method is POST - this is cgi request [08:45:23]url: /json_proto [08:45:23]query_string will be loaded in cgi processing [08:45:23]execute_cgi json_proto POST (null) [08:45:23]execute_cgi path=json_proto method=POST [08:45:23]POST find Content-Length [08:45:23]Host: 172.17.50.3:8080 [08:45:23]Content-Length: 678 [08:45:23]Content-Type: application/json [08:45:23] [08:45:23]POST finish read [08:45:23]Found Content-Length = 678 [08:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885418", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:23]execute_script... [08:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885418", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:23]POST & json_proto [08:45:23]process_json_proto [08:45:23]json parsed OK: [08:45:23]protocol is kg_v1.0 [08:45:23]action value=close_receipt [08:45:23]process_action close_receipt [08:45:23]cmd_close_receipt [08:45:23]MH_GetDate [08:45:23]Write to MH i2c: F0 00 00 92 16 97 [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: F0 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: F0 09 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: F0 09 00 92 16 00 A6 14 16 67 6B 98 1E 66 5E [08:45:23]GetLastDocTimeStamp 1729500262 [08:45:23]current date 1729500326 [08:45:23]FM_GetShiftState [08:45:23]SAM_PROTO_GetShiftState [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 13 01 00 [08:45:23]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 0E 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 52 [08:45:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:45:23]wFMCommunicate OK [08:45:23]SAM_PROTO_GetShiftState done [08:45:23]FM_GetShiftState done [08:45:23]opened in 1729469703 [08:45:23]opened+sec_in_day 1729556103 [08:45:23]quantity*price = 50041 [08:45:23]sum+1 = 50042 [08:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 70 21.10.2024 08:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69680 ФПД: 250927863425299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69680&fm=250927863425299&tin=02508201610067®Number=0000000000156251&sum=50000 [08:45:24]StoreToDocumentArchive [08:45:24]shift 194 fd 69680 [08:45:24]save to /storage/0194/doc_00069680 [08:45:24]save last doc name /storage/0194/doc_00069680 to /storage/kkm_last_doc_name [08:45:24]save OK [08:45:24]Clear old archive folders... [08:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:24]tlvbuf is 00C7F860 [08:45:24]SAM_PROTO_ClearQueue [08:45:24]wFMCommunicate request_size=4 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 09 00 00 [08:45:24]Write to MH i2c: E2 08 00 A0 16 80 09 00 00 00 00 00 00 28 [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:24]Read from MH i2c: E2 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [08:45:24]RAPDU: 90 00 [08:45:24]wFMCommunicate OK [08:45:24]SAM_PROTO_ClearQueue done [08:45:24]KKMCreateOFDPacket [08:45:24]OFDProtocolAddRootSTLVToBuf [08:45:24]FM_MakeSignedData [08:45:24]FM_MakeSignedData [08:45:24]SAM_PROTO_SignData [08:45:24]wFMCommunicate request_size=4 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 0D 01 02 [08:45:24]Write to MH i2c: E2 08 00 A1 16 80 0D 01 02 00 00 00 00 30 [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:24]Read from MH i2c: E2 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 A1 16 00 90 00 2B [08:45:24]RAPDU: 90 00 [08:45:24]wFMCommunicate OK [08:45:24]wFMCommunicate request_size=255 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A6 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 10 01 00 35 04 06 00 E4 [08:45:24]Write to MH i2c: E2 02 01 A2 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A6 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 10 01 00 35 04 06 00 E4 00 00 1D [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:24]Read from MH i2c: E2 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [08:45:24]RAPDU: 90 00 [08:45:24]wFMCommunicate OK [08:45:24]wFMCommunicate request_size=10 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 0D 02 02 05 37 B2 29 E9 13 [08:45:24]Write to MH i2c: E2 0D 00 A3 16 80 0D 02 02 05 00 37 B2 29 E9 13 00 00 4B [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:24]Read from MH i2c: E2 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [08:45:24]RAPDU: 90 00 [08:45:24]wFMCommunicate OK [08:45:24]wFMCommunicate request_size=4 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 0D 03 02 [08:45:24]Write to MH i2c: E2 08 00 A4 16 80 0D 03 02 00 00 00 00 35 [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0B 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0B 00 A4 16 00 AE 63 A5 3E 3A 8E B1 63 90 00 06 [08:45:25]RAPDU: AE 63 A5 3E 3A 8E B1 63 90 00 [08:45:25]wFMCommunicate OK [08:45:25]SAM_PROTO_SignData done [08:45:25]FM_MakeSignedData done [08:45:25]CreateOFDProtocolMessage [08:45:25]wFMCommunicate request_size=4 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 11 00 00 [08:45:25]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 17 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [08:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:45:25]wFMCommunicate OK [08:45:25]CreateOFDProtocolMessage done [08:45:25]OFDSenderStorePacket 69680 [08:45:25]StoreOFDPacket docnum=69680 [08:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 10 07 01 3F 75 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A6 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 10 01 00 35 04 06 00 E4 37 B2 29 E9 13 AE 63 A5 3E 3A 8E B1 63 [08:45:25]CheckFolder [08:45:25]dirname=/storage/ofd_packets [08:45:25]CheckFolder done [08:45:25]ProducePacketName [08:45:25]name=ofd_packets/00069680 [08:45:25]NVStorageSaveData ofd_packets/00069680 [08:45:25]File name is /storage/ofd_packets/00069680 [08:45:25]Write 301 bytes [08:45:25]NVStorageSaveData done [08:45:25]OFDSenderStorePacket done [08:45:25]KKMCreateOFDPacket done [08:45:25]NVStorageSaveData kkm_last_timestamp [08:45:25]File name is /storage/kkm_last_timestamp [08:45:25]Write 4 bytes [08:45:25]NVStorageSaveData done [08:45:25]OFD Sender: Processing packet 69680 [packets to send 18, broken 17] [08:45:25]ProducePacketName [08:45:25]name=ofd_packets/00069680 [08:45:25]OFD Sender: To server: pG, [08:45:25]CommunicateWithHost lk.salyk.kg:30040 [08:45:25]ConnectInit lk.salyk.kg [08:45:25]ExternCall_PrintAddStr [08:45:25]wPrintStart [08:45:25]Write to MH i2c: 01 00 00 A6 16 BC [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 07 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 FF 0F D1 [08:45:25]RasterBufferAndPrint [08:45:25]line Счет N : (1)2885418 [08:45:25]line ИНН: 02508201610067 [08:45:25]line Контрольно-Кассовый Чек [08:45:25]line ПРОДАЖА [08:45:25]line ТРК (МРК, ГНК) : 32 [08:45:25]line Товар: 2710124130 [08:45:25]line Аи-92-К-5 [08:45:25]line 7.480 * 66.90 [08:45:25]line = 500.41 [08:45:25]line НДС 12% НСП 1% [08:45:25]line > о реализуемом товаре [08:45:25]line ОКРУГЛЕНИЕ: -0.41 [08:45:25]line ИТОГО: 500.00 [08:45:25]line Внесено: 500.00 [08:45:25]line СДАЧА: 0.00 [08:45:25]line НСП 1% : 4.43 [08:45:25]line НДС 12% : 53.14 [08:45:25]line Наличными: 500.00 [08:45:25]line Безнал.: 0.00 [08:45:25]line Место: АЗС № 85 "Партнер Нефть" [08:45:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:45:25]line СНО: Общий режим [08:45:25]line Чек 70 21.10.2024 08:45 [08:45:25]line Смена: 194 ФФД: 1.0 [08:45:25]line ЗНМ: 0300000167 [08:45:25]line РНМ: 0000000000156251 [08:45:25]line Версия ККМ: v1.0 [08:45:25]line ФМ: 0000000000963346 [08:45:25]line ФД: 69680 [08:45:25]line ФПД: 250927863425299 [08:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69680&fm=250927863425299&tin=02508201610067®Number=0000000000156251&sum=50000 [08:45:25]Connected sock=11 [08:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 10 07 01 3F 75 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A6 14 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 10 01 00 35 04 06 00 E4 37 B2 29 E9 13 AE 63 A5 3E 3A 8E B1 63 [08:45:25]written 0, free lines is 4095 [08:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 B0 47 00 25 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 39 36 33 33 34 36 10 04 04 00 30 10 01 00 F4 03 04 00 4A BE 15 67 B6 04 01 00 00 25 8F C6 D4 62 73 24 29 [08:45:25]CommunicateWithHost err = 0 [08:45:25]CheckOFDResponse [08:45:25]1017 (14) - 77093643461234 [08:45:25]1041 (16) - 0000000000963346 [08:45:25]1040 (4) - 69680 [08:45:25]1012 (4) - 21.10.2024 02:36 [08:45:25]1206 (1) - 0 [08:45:25]OFD Sender: Remove packet 69680 [08:45:25]ProducePacketName [08:45:25]name=ofd_packets/00069680 [08:45:25]NVStorageDeleteData [08:45:25]Write to MH i2c: 01 00 00 D1 16 E7 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 07 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 F6 0C F0 [08:45:25]RasterBufferAndPrint [08:45:25]line [08:45:25]line [08:45:25]line [08:45:25]line [08:45:25]line [08:45:25]written 0, free lines is 3328 [08:45:25]MH_Cut [08:45:25]Write to MH i2c: D1 01 00 D8 16 01 C0 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: D1 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: D1 01 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: D1 01 00 D8 16 00 BF [08:45:25]Write to MH i2c: 01 00 00 D9 16 EF [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:26]OFD Sender: No OFD packet to send [08:45:26]*** Cut start [08:45:26]*** Partial cut [08:45:26]*** CUTSNS_PIN = 1 [08:45:26]*** CUTSNS_PIN = 0 [08:45:26]*** Brake cut motor [08:45:27]Read from MH i2c: 01 [08:45:27]MH_I2C_Read... [08:45:27]*** Stop cut motor [08:45:27]*** Cut end [08:45:27]Read from MH i2c: 01 07 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 07 00 D9 16 00 00 00 00 00 FF 0F 04 [08:45:27]process_action close_receipt done [08:45:27]requested_data is exist [08:45:27]produce_requested_data [08:45:27]requested_item fm.sn is exist - process it [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 11 00 00 [08:45:27]Write to MH i2c: E2 08 00 DA 16 80 11 00 00 00 00 00 00 6A [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 DA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [08:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:45:27]wFMCommunicate OK [08:45:27]requested_item fd.num is exist - process it [08:45:27]SAM_PROTO_GetFieldsCounters [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 13 00 00 [08:45:27]Write to MH i2c: E2 08 00 DB 16 80 13 00 00 00 00 00 00 6D [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 62 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 62 00 DB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 10 01 00 0E 04 04 00 C2 00 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 5D [08:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 10 01 00 0E 04 04 00 C2 00 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:45:27]wFMCommunicate OK [08:45:27]SAM_PROTO_GetFieldsCounters done [08:45:27]requested_item shift.num is exist - process it [08:45:27]requested_item shift.opened is exist - process it [08:45:27]req_shift_opened [08:45:27]FM_GetShiftState [08:45:27]SAM_PROTO_GetShiftState [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 13 01 00 [08:45:27]Write to MH i2c: E2 08 00 DC 16 80 13 01 00 00 00 00 00 6F [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0E 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0E 00 DC 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9B [08:45:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:45:27]wFMCommunicate OK [08:45:27]SAM_PROTO_GetShiftState done [08:45:27]FM_GetShiftState done [08:45:27]req_shift_opened done [08:45:27]requested_item shift.open_date is exist - process it [08:45:27]req_shift_open_date [08:45:27]req_shift_open_date done [08:45:27]produce_requested_data done [08:45:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69680,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:45:27]process_action_free close_receipt [08:45:27]json_value_free [08:45:27]json_value_free done [08:45:27]process_json_proto returns [08:45:27]Send response to host [08:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69680,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:45:27]free response buf [08:45:27]execute_script done [08:45:27]execute_script returns [08:45:27]free content buf [08:45:27]Sock 10.Close socket [08:45:27]Sock 10.Thread stoped [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:05]accept exits with 8 [08:52:05]New connection [08:52:05]New thread 3067313508 created [08:52:05]Thread 3067456868 joined [08:52:05]Waiting for new connection... [08:52:05] Sock 8.Parse request [08:52:05]Sock 8.Check first char [08:52:05]Sock 8.First char is OK [08:52:05]request: POST /json_proto HTTP/1.0 [08:52:05]Method: POST [08:52:05]URL: /json_proto [08:52:05]Method is POST - this is cgi request [08:52:05]url: /json_proto [08:52:05]query_string will be loaded in cgi processing [08:52:05]execute_cgi json_proto POST (null) [08:52:05]execute_cgi path=json_proto method=POST [08:52:05]POST find Content-Length [08:52:05]Host: 172.17.50.3:8080 [08:52:05]Content-Length: 678 [08:52:05]Content-Type: application/json [08:52:05] [08:52:05]POST finish read [08:52:05]Found Content-Length = 678 [08:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:05]execute_script... [08:52: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)2885420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:05]POST & json_proto [08:52:05]process_json_proto [08:52:05]json parsed OK: [08:52:05]protocol is kg_v1.0 [08:52:05]action value=close_receipt [08:52:05]process_action close_receipt [08:52:05]cmd_close_receipt [08:52:05]MH_GetDate [08:52:05]Write to MH i2c: F0 00 00 DD 16 E2 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: F0 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: F0 09 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: F0 09 00 DD 16 00 38 16 16 67 6B 98 1E 66 3D [08:52:05]GetLastDocTimeStamp 1729500326 [08:52:05]current date 1729500728 [08:52:05]FM_GetShiftState [08:52:05]SAM_PROTO_GetShiftState [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 13 01 00 [08:52:05]Write to MH i2c: E2 08 00 DE 16 80 13 01 00 00 00 00 00 71 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0E 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0E 00 DE 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9D [08:52:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:52:05]wFMCommunicate OK [08:52:05]SAM_PROTO_GetShiftState done [08:52:05]FM_GetShiftState done [08:52:05]opened in 1729469703 [08:52:05]opened+sec_in_day 1729556103 [08:52:05]quantity*price = 29034 [08:52:05]sum+1 = 29036 [08:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 71 21.10.2024 08:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69681 ФПД: 164403915574018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085208&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69681&fm=164403915574018&tin=02508201610067®Number=0000000000156251&sum=29000 [08:52:06]StoreToDocumentArchive [08:52:06]shift 194 fd 69681 [08:52:06]save to /storage/0194/doc_00069681 [08:52:06]save last doc name /storage/0194/doc_00069681 to /storage/kkm_last_doc_name [08:52:06]save OK [08:52:06]Clear old archive folders... [08:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:06]tlvbuf is B6FD3A60 [08:52:06]SAM_PROTO_ClearQueue [08:52:06]wFMCommunicate request_size=4 [08:52:06]MH_SAM_APDU [08:52:06]CAPDU: 80 09 00 00 [08:52:06]Write to MH i2c: E2 08 00 EB 16 80 09 00 00 00 00 00 00 73 [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:06]Read from MH i2c: E2 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 03 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [08:52:06]RAPDU: 90 00 [08:52:06]wFMCommunicate OK [08:52:06]SAM_PROTO_ClearQueue done [08:52:06]KKMCreateOFDPacket [08:52:06]OFDProtocolAddRootSTLVToBuf [08:52:06]FM_MakeSignedData [08:52:06]FM_MakeSignedData [08:52:06]SAM_PROTO_SignData [08:52:06]wFMCommunicate request_size=4 [08:52:06]MH_SAM_APDU [08:52:06]CAPDU: 80 0D 01 02 [08:52:06]Write to MH i2c: E2 08 00 EC 16 80 0D 01 02 00 00 00 00 7B [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:06]Read from MH i2c: E2 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 03 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 03 00 EC 16 00 90 00 76 [08:52:06]RAPDU: 90 00 [08:52:06]wFMCommunicate OK [08:52:06]wFMCommunicate request_size=255 [08:52:06]MH_SAM_APDU [08:52:06]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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 38 16 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 10 01 00 35 04 06 00 95 [08:52:06]Write to MH i2c: E2 02 01 ED 16 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 38 16 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 10 01 00 35 04 06 00 95 00 00 D1 [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [08:52:07]RAPDU: 90 00 [08:52:07]wFMCommunicate OK [08:52:07]wFMCommunicate request_size=10 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 0D 02 02 05 86 44 FC CB 02 [08:52:07]Write to MH i2c: E2 0D 00 EE 16 80 0D 02 02 05 00 86 44 FC CB 02 00 00 1B [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [08:52:07]RAPDU: 90 00 [08:52:07]wFMCommunicate OK [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 0D 03 02 [08:52:07]Write to MH i2c: E2 08 00 EF 16 80 0D 03 02 00 00 00 00 80 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0B 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0B 00 EF 16 00 31 83 37 0C C5 A2 B5 BB 90 00 4F [08:52:07]RAPDU: 31 83 37 0C C5 A2 B5 BB 90 00 [08:52:07]wFMCommunicate OK [08:52:07]SAM_PROTO_SignData done [08:52:07]FM_MakeSignedData done [08:52:07]CreateOFDProtocolMessage [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 11 00 00 [08:52:07]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 17 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [08:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:07]wFMCommunicate OK [08:52:07]CreateOFDProtocolMessage done [08:52:07]OFDSenderStorePacket 69681 [08:52:07]StoreOFDPacket docnum=69681 [08:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 65 2C 07 01 1E 19 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 38 16 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 10 01 00 35 04 06 00 95 86 44 FC CB 02 31 83 37 0C C5 A2 B5 BB [08:52:07]CheckFolder [08:52:07]dirname=/storage/ofd_packets [08:52:07]CheckFolder done [08:52:07]ProducePacketName [08:52:07]name=ofd_packets/00069681 [08:52:07]NVStorageSaveData ofd_packets/00069681 [08:52:07]File name is /storage/ofd_packets/00069681 [08:52:07]Write 301 bytes [08:52:07]NVStorageSaveData done [08:52:07]OFDSenderStorePacket done [08:52:07]KKMCreateOFDPacket done [08:52:07]NVStorageSaveData kkm_last_timestamp [08:52:07]File name is /storage/kkm_last_timestamp [08:52:07]Write 4 bytes [08:52:07]NVStorageSaveData done [08:52:07]ExternCall_PrintAddStr [08:52:07]wPrintStart [08:52:07]Write to MH i2c: 01 00 00 F1 16 07 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: 01 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: 01 07 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [08:52:07]RasterBufferAndPrint [08:52:07]line Счет N : (1)2885420 [08:52:07]line ИНН: 02508201610067 [08:52:07]line Контрольно-Кассовый Чек [08:52:07]line ПРОДАЖА [08:52:07]line ТРК (МРК, ГНК) : 12 [08:52:07]line Товар: 2710124130 [08:52:07]line Аи-92-К-5 [08:52:07]line 4.340 * 66.90 [08:52:07]line = 290.35 [08:52:07]line НДС 12% НСП 1% [08:52:07]line > о реализуемом товаре [08:52:07]line ОКРУГЛЕНИЕ: -0.35 [08:52:07]line ИТОГО: 290.00 [08:52:07]line Внесено: 290.00 [08:52:07]line СДАЧА: 0.00 [08:52:07]line НСП 1% : 2.57 [08:52:07]line НДС 12% : 30.83 [08:52:07]line Наличными: 290.00 [08:52:07]line Безнал.: 0.00 [08:52:07]line Место: АЗС № 85 "Партнер Нефть" [08:52:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:52:07]line СНО: Общий режим [08:52:07]line Чек 71 21.10.2024 08:52 [08:52:07]line Смена: 194 ФФД: 1.0 [08:52:07]line ЗНМ: 0300000167 [08:52:07]line РНМ: 0000000000156251 [08:52:07]line Версия ККМ: v1.0 [08:52:07]line ФМ: 0000000000963346 [08:52:07]line ФД: 69681 [08:52:07]line ФПД: 164403915574018 [08:52:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085208&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69681&fm=164403915574018&tin=02508201610067®Number=0000000000156251&sum=29000 [08:52:07]OFD Sender: Processing packet 69681 [packets to send 18, broken 17] [08:52:07]ProducePacketName [08:52:07]name=ofd_packets/00069681 [08:52:07]OFD Sender: To server: pG, [08:52:07]CommunicateWithHost lk.salyk.kg:30040 [08:52:07]ConnectInit lk.salyk.kg [08:52:07]written 0, free lines is 4095 [08:52:07]Connected sock=10 [08:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 65 2C 07 01 1E 19 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 38 16 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 10 01 00 35 04 06 00 95 86 44 FC CB 02 31 83 37 0C C5 A2 B5 BB [08:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 47 D6 47 00 46 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 10 01 00 F4 03 04 00 DC BF 15 67 B6 04 01 00 00 70 96 80 C9 67 7B 68 8C [08:52:08]CommunicateWithHost err = 0 [08:52:08]CheckOFDResponse [08:52:08]1017 (14) - 77093643461234 [08:52:08]1041 (16) - 0000000000963346 [08:52:08]1040 (4) - 69681 [08:52:08]1012 (4) - 21.10.2024 02:43 [08:52:08]1206 (1) - 0 [08:52:08]OFD Sender: Remove packet 69681 [08:52:08]ProducePacketName [08:52:08]name=ofd_packets/00069681 [08:52:08]NVStorageDeleteData [08:52:08]Write to MH i2c: 01 00 00 1C 17 33 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 ED 0C 33 [08:52:08]RasterBufferAndPrint [08:52:08]line [08:52:08]line [08:52:08]line [08:52:08]line [08:52:08]line [08:52:08]written 0, free lines is 3318 [08:52:08]MH_Cut [08:52:08]Write to MH i2c: D1 01 00 23 17 01 0C [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: D1 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: D1 01 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: D1 01 00 23 17 00 0B [08:52:08]Write to MH i2c: 01 00 00 24 17 3B [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]OFD Sender: No OFD packet to send [08:52:08]*** Cut start [08:52:08]*** Partial cut [08:52:08]*** CUTSNS_PIN = 1 [08:52:08]*** CUTSNS_PIN = 0 [08:52:09]*** Brake cut motor [08:52:09]Read from MH i2c: 01 [08:52:09]MH_I2C_Read... [08:52:09]*** Stop cut motor [08:52:09]*** Cut end [08:52:09]Read from MH i2c: 01 07 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: 01 07 00 24 17 00 00 00 00 00 FF 0F 50 [08:52:09]process_action close_receipt done [08:52:09]requested_data is exist [08:52:09]produce_requested_data [08:52:09]requested_item fm.sn is exist - process it [08:52:09]wFMCommunicate request_size=4 [08:52:09]MH_SAM_APDU [08:52:09]CAPDU: 80 11 00 00 [08:52:09]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:09]Read from MH i2c: E2 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 17 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [08:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:09]wFMCommunicate OK [08:52:09]requested_item fd.num is exist - process it [08:52:09]SAM_PROTO_GetFieldsCounters [08:52:09]wFMCommunicate request_size=4 [08:52:09]MH_SAM_APDU [08:52:09]CAPDU: 80 13 00 00 [08:52:09]Write to MH i2c: E2 08 00 26 17 80 13 00 00 00 00 00 00 B9 [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 [08:52:09]MH_I2C_Read... [08:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:09]Read from MH i2c: E2 62 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 62 00 26 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 10 01 00 0E 04 04 00 C2 00 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 AD [08:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 10 01 00 0E 04 04 00 C2 00 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:52:09]wFMCommunicate OK [08:52:09]SAM_PROTO_GetFieldsCounters done [08:52:09]requested_item shift.num is exist - process it [08:52:09]requested_item shift.opened is exist - process it [08:52:09]req_shift_opened [08:52:09]FM_GetShiftState [08:52:09]SAM_PROTO_GetShiftState [08:52:09]wFMCommunicate request_size=4 [08:52:09]MH_SAM_APDU [08:52:09]CAPDU: 80 13 01 00 [08:52:09]Write to MH i2c: E2 08 00 27 17 80 13 01 00 00 00 00 00 BB [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:09]Read from MH i2c: E2 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 0E 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: E2 0E 00 27 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [08:52:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:52:09]wFMCommunicate OK [08:52:09]SAM_PROTO_GetShiftState done [08:52:09]FM_GetShiftState done [08:52:09]req_shift_opened done [08:52:09]requested_item shift.open_date is exist - process it [08:52:09]req_shift_open_date [08:52:09]req_shift_open_date done [08:52:09]produce_requested_data done [08:52:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69681,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [08:52:09]process_action_free close_receipt [08:52:09]json_value_free [08:52:09]json_value_free done [08:52:09]process_json_proto returns [08:52:09]Send response to host [08:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69681,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [08:52:09]free response buf [08:52:09]execute_script done [08:52:09]execute_script returns [08:52:09]free content buf [08:52:09]Sock 8.Close socket [08:52:09]Sock 8.Thread stoped [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:57]accept exits with 9 [08:59:57]New connection [08:59:57]New thread 3067456868 created [08:59:57]Thread 3067313508 joined [08:59:57]Waiting for new connection... [08:59:57] Sock 9.Parse request [08:59:57]Sock 9.Check first char [08:59:57]Sock 9.First char is OK [08:59:57]request: POST /json_proto HTTP/1.0 [08:59:57]Method: POST [08:59:57]URL: /json_proto [08:59:57]Method is POST - this is cgi request [08:59:57]url: /json_proto [08:59:57]query_string will be loaded in cgi processing [08:59:57]execute_cgi json_proto POST (null) [08:59:57]execute_cgi path=json_proto method=POST [08:59:57]POST find Content-Length [08:59:57]Host: 172.17.50.3:8080 [08:59:57]Content-Length: 678 [08:59:57]Content-Type: application/json [08:59:57] [08:59:57]POST finish read [08:59:57]Found Content-Length = 678 [08:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885421", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:57]execute_script... [08:59: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)2885421", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:57]POST & json_proto [08:59:57]process_json_proto [08:59:57]json parsed OK: [08:59:57]protocol is kg_v1.0 [08:59:57]action value=close_receipt [08:59:57]process_action close_receipt [08:59:57]cmd_close_receipt [08:59:57]MH_GetDate [08:59:57]Write to MH i2c: F0 00 00 28 17 2E [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 09 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 09 00 28 17 00 10 18 16 67 6B 98 1E 66 63 [08:59:57]GetLastDocTimeStamp 1729500728 [08:59:57]current date 1729501200 [08:59:57]FM_GetShiftState [08:59:57]SAM_PROTO_GetShiftState [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 01 00 [08:59:57]Write to MH i2c: E2 08 00 29 17 80 13 01 00 00 00 00 00 BD [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 29 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [08:59:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetShiftState done [08:59:57]FM_GetShiftState done [08:59:57]opened in 1729469703 [08:59:57]opened+sec_in_day 1729556103 [08:59:57]quantity*price = 20003 [08:59:57]sum+1 = 20004 [08:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 72 21.10.2024 09:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69682 ФПД: 144088446224524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69682&fm=144088446224524&tin=02508201610067®Number=0000000000156251&sum=20000 [08:59:58]StoreToDocumentArchive [08:59:58]shift 194 fd 69682 [08:59:58]save to /storage/0194/doc_00069682 [08:59:58]save last doc name /storage/0194/doc_00069682 to /storage/kkm_last_doc_name [08:59:58]save OK [08:59:58]Clear old archive folders... [08:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:58]tlvbuf is B6F3C310 [08:59:58]SAM_PROTO_ClearQueue [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 09 00 00 [08:59:58]Write to MH i2c: E2 08 00 36 17 80 09 00 00 00 00 00 00 BF [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 36 17 00 90 00 C1 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]SAM_PROTO_ClearQueue done [08:59:58]KKMCreateOFDPacket [08:59:58]OFDProtocolAddRootSTLVToBuf [08:59:58]FM_MakeSignedData [08:59:58]FM_MakeSignedData [08:59:58]SAM_PROTO_SignData [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 0D 01 02 [08:59:58]Write to MH i2c: E2 08 00 37 17 80 0D 01 02 00 00 00 00 C7 [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 37 17 00 90 00 C2 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]wFMCommunicate request_size=255 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 10 01 00 35 04 06 00 83 [08:59:58]Write to MH i2c: E2 02 01 38 17 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 10 01 00 35 04 06 00 83 00 00 87 [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]wFMCommunicate request_size=10 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 0D 02 02 05 0C 34 A7 48 8C [08:59:58]Write to MH i2c: E2 0D 00 39 17 80 0D 02 02 05 00 0C 34 A7 48 8C 00 00 8F [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 0D 03 02 [08:59:58]Write to MH i2c: E2 08 00 3A 17 80 0D 03 02 00 00 00 00 CC [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 0B 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 0B 00 3A 17 00 F3 A8 BF 61 93 4A BB 46 90 00 66 [08:59:58]RAPDU: F3 A8 BF 61 93 4A BB 46 90 00 [08:59:58]wFMCommunicate OK [08:59:58]SAM_PROTO_SignData done [08:59:58]FM_MakeSignedData done [08:59:58]CreateOFDProtocolMessage [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 11 00 00 [08:59:58]Write to MH i2c: E2 08 00 3B 17 80 11 00 00 00 00 00 00 CC [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]OFD Sender: No OFD packet to send [08:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 17 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 17 00 3B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [08:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:59:58]wFMCommunicate OK [08:59:58]CreateOFDProtocolMessage done [08:59:58]OFDSenderStorePacket 69682 [08:59:58]StoreOFDPacket docnum=69682 [08:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FC 2C 07 01 5E 1A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 10 01 00 35 04 06 00 83 0C 34 A7 48 8C F3 A8 BF 61 93 4A BB 46 [08:59:58]CheckFolder [08:59:58]dirname=/storage/ofd_packets [08:59:58]CheckFolder done [08:59:58]ProducePacketName [08:59:58]name=ofd_packets/00069682 [08:59:58]NVStorageSaveData ofd_packets/00069682 [08:59:58]File name is /storage/ofd_packets/00069682 [08:59:58]Write 301 bytes [08:59:58]NVStorageSaveData done [08:59:58]OFDSenderStorePacket done [08:59:58]KKMCreateOFDPacket done [08:59:58]NVStorageSaveData kkm_last_timestamp [08:59:58]File name is /storage/kkm_last_timestamp [08:59:58]Write 4 bytes [08:59:58]NVStorageSaveData done [08:59:58]ExternCall_PrintAddStr [08:59:58]wPrintStart [08:59:58]Write to MH i2c: 01 00 00 3C 17 53 [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: 01 [08:59:58]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 FF 0F 68 [08:59:59]RasterBufferAndPrint [08:59:59]line Счет N : (1)2885421 [08:59:59]line ИНН: 02508201610067 [08:59:59]line Контрольно-Кассовый Чек [08:59:59]line ПРОДАЖА [08:59:59]line ТРК (МРК, ГНК) : 32 [08:59:59]line Товар: 2710124130 [08:59:59]line Аи-92-К-5 [08:59:59]line 2.990 * 66.90 [08:59:59]line = 200.03 [08:59:59]line НДС 12% НСП 1% [08:59:59]line > о реализуемом товаре [08:59:59]line ОКРУГЛЕНИЕ: -0.03 [08:59:59]line ИТОГО: 200.00 [08:59:59]line Внесено: 200.00 [08:59:59]line СДАЧА: 0.00 [08:59:59]line НСП 1% : 1.77 [08:59:59]line НДС 12% : 21.24 [08:59:59]line Наличными: 200.00 [08:59:59]line Безнал.: 0.00 [08:59:59]line Место: АЗС № 85 "Партнер Нефть" [08:59:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:59:59]line СНО: Общий режим [08:59:59]line Чек 72 21.10.2024 09:00 [08:59:59]line Смена: 194 ФФД: 1.0 [08:59:59]line ЗНМ: 0300000167 [08:59:59]line РНМ: 0000000000156251 [08:59:59]line Версия ККМ: v1.0 [08:59:59]line ФМ: 0000000000963346 [08:59:59]line ФД: 69682 [08:59:59]line ФПД: 144088446224524 [08:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69682&fm=144088446224524&tin=02508201610067®Number=0000000000156251&sum=20000 [08:59:59]OFD Sender: Processing packet 69682 [packets to send 18, broken 17] [08:59:59]ProducePacketName [08:59:59]name=ofd_packets/00069682 [08:59:59]OFD Sender: To server: pG, [08:59:59]CommunicateWithHost lk.salyk.kg:30040 [08:59:59]ConnectInit lk.salyk.kg [08:59:59]written 0, free lines is 4095 [08:59:59]Connected sock=10 [08:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FC 2C 07 01 5E 1A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 10 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 10 01 00 35 04 06 00 83 0C 34 A7 48 8C F3 A8 BF 61 93 4A BB 46 [08:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C6 43 47 00 71 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 10 01 00 F4 03 04 00 B4 C1 15 67 B6 04 01 00 00 17 24 2F C1 58 8E 12 16 [08:59:59]CommunicateWithHost err = 0 [08:59:59]CheckOFDResponse [08:59:59]1017 (14) - 77093643461234 [08:59:59]1041 (16) - 0000000000963346 [08:59:59]1040 (4) - 69682 [08:59:59]1012 (4) - 21.10.2024 02:51 [08:59:59]1206 (1) - 0 [08:59:59]OFD Sender: Remove packet 69682 [08:59:59]ProducePacketName [08:59:59]name=ofd_packets/00069682 [08:59:59]NVStorageDeleteData [08:59:59]Write to MH i2c: 01 00 00 67 17 7E [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 F4 0C 85 [08:59:59]RasterBufferAndPrint [08:59:59]line [08:59:59]line [08:59:59]line [08:59:59]line [08:59:59]line [08:59:59]written 0, free lines is 3326 [08:59:59]MH_Cut [08:59:59]Write to MH i2c: D1 01 00 6E 17 01 57 [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: D1 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: D1 01 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: D1 01 00 6E 17 00 56 [08:59:59]Write to MH i2c: 01 00 00 6F 17 86 [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [09:00:00]OFD Sender: No OFD packet to send [09:00:00]*** Cut start [09:00:00]*** Partial cut [09:00:00]*** CUTSNS_PIN = 1 [09:00:00]*** CUTSNS_PIN = 0 [09:00:00]*** Brake cut motor [09:00:01]Read from MH i2c: 01 [09:00:01]MH_I2C_Read... [09:00:01]*** Stop cut motor [09:00:01]*** Cut end [09:00:01]Read from MH i2c: 01 07 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: 01 07 00 6F 17 00 00 00 00 00 FF 0F 9B [09:00:01]process_action close_receipt done [09:00:01]requested_data is exist [09:00:01]produce_requested_data [09:00:01]requested_item fm.sn is exist - process it [09:00:01]wFMCommunicate request_size=4 [09:00:01]MH_SAM_APDU [09:00:01]CAPDU: 80 11 00 00 [09:00:01]Write to MH i2c: E2 08 00 70 17 80 11 00 00 00 00 00 00 01 [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:01]Read from MH i2c: E2 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 17 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 17 00 70 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [09:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:00:01]wFMCommunicate OK [09:00:01]requested_item fd.num is exist - process it [09:00:01]SAM_PROTO_GetFieldsCounters [09:00:01]wFMCommunicate request_size=4 [09:00:01]MH_SAM_APDU [09:00:01]CAPDU: 80 13 00 00 [09:00:01]Write to MH i2c: E2 08 00 71 17 80 13 00 00 00 00 00 00 04 [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:01]Read from MH i2c: E2 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 62 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 62 00 71 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 10 01 00 0E 04 04 00 C2 00 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 FC [09:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 10 01 00 0E 04 04 00 C2 00 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 [09:00:01]wFMCommunicate OK [09:00:01]SAM_PROTO_GetFieldsCounters done [09:00:01]requested_item shift.num is exist - process it [09:00:01]requested_item shift.opened is exist - process it [09:00:01]req_shift_opened [09:00:01]FM_GetShiftState [09:00:01]SAM_PROTO_GetShiftState [09:00:01]wFMCommunicate request_size=4 [09:00:01]MH_SAM_APDU [09:00:01]CAPDU: 80 13 01 00 [09:00:01]Write to MH i2c: E2 08 00 72 17 80 13 01 00 00 00 00 00 06 [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:01]Read from MH i2c: E2 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 72 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [09:00:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:00:01]wFMCommunicate OK [09:00:01]SAM_PROTO_GetShiftState done [09:00:01]FM_GetShiftState done [09:00:01]req_shift_opened done [09:00:01]requested_item shift.open_date is exist - process it [09:00:01]req_shift_open_date [09:00:01]req_shift_open_date done [09:00:01]produce_requested_data done [09:00:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69682,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:00:01]process_action_free close_receipt [09:00:01]json_value_free [09:00:01]json_value_free done [09:00:01]process_json_proto returns [09:00:01]Send response to host [09:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69682,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:00:01]free response buf [09:00:01]execute_script done [09:00:01]execute_script returns [09:00:01]free content buf [09:00:01]Sock 9.Close socket [09:00:01]Sock 9.Thread stoped [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:27]accept exits with 8 [09:00:27]New connection [09:00:27]New thread 3067313508 created [09:00:27]Thread 3067456868 joined [09:00:27]Waiting for new connection... [09:00:27] Sock 8.Parse request [09:00:27]Sock 8.Check first char [09:00:27]Sock 8.First char is OK [09:00:27]request: POST /json_proto HTTP/1.0 [09:00:27]Method: POST [09:00:27]URL: /json_proto [09:00:27]Method is POST - this is cgi request [09:00:27]url: /json_proto [09:00:27]query_string will be loaded in cgi processing [09:00:27]execute_cgi json_proto POST (null) [09:00:27]execute_cgi path=json_proto method=POST [09:00:27]POST find Content-Length [09:00:27]Host: 172.17.50.3:8080 [09:00:27]Content-Length: 682 [09:00:27]Content-Type: application/json [09:00:27] [09:00:27]POST finish read [09:00:27]Found Content-Length = 682 [09:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:00:27]execute_script... [09:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:00:27]POST & json_proto [09:00:27]process_json_proto [09:00:27]json parsed OK: [09:00:27]protocol is kg_v1.0 [09:00:27]action value=close_receipt [09:00:27]process_action close_receipt [09:00:27]cmd_close_receipt [09:00:27]MH_GetDate [09:00:27]Write to MH i2c: F0 00 00 73 17 79 [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: F0 09 00 73 17 00 2E 18 16 67 6B 98 1E 66 CC [09:00:27]GetLastDocTimeStamp 1729501200 [09:00:27]current date 1729501230 [09:00:27]FM_GetShiftState [09:00:27]SAM_PROTO_GetShiftState [09:00:27]wFMCommunicate request_size=4 [09:00:27]MH_SAM_APDU [09:00:27]CAPDU: 80 13 01 00 [09:00:27]Write to MH i2c: E2 08 00 74 17 80 13 01 00 00 00 00 00 08 [09:00:27]Write i2c OK [09:00:27]MH_I2C_Read... [09:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:27]Read from MH i2c: E2 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 [09:00:27]MH_I2C_Read... [09:00:27]Read from MH i2c: E2 0E 00 74 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 34 [09:00:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetShiftState done [09:00:27]FM_GetShiftState done [09:00:27]opened in 1729469703 [09:00:27]opened+sec_in_day 1729556103 [09:00:27]quantity*price = 50025 [09:00:27]sum+1 = 50026 [09:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 73 21.10.2024 09:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69683 ФПД: 19943757602680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69683&fm=19943757602680&tin=02508201610067®Number=0000000000156251&sum=50000 [09:00:28]StoreToDocumentArchive [09:00:28]shift 194 fd 69683 [09:00:28]save to /storage/0194/doc_00069683 [09:00:28]save last doc name /storage/0194/doc_00069683 to /storage/kkm_last_doc_name [09:00:28]save OK [09:00:28]Clear old archive folders... [09:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:00:28]tlvbuf is B6F3C310 [09:00:28]SAM_PROTO_ClearQueue [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 09 00 00 [09:00:28]Write to MH i2c: E2 08 00 81 17 80 09 00 00 00 00 00 00 0A [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:28]Read from MH i2c: E2 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 [09:00:28]MH_I2C_Read... [09:00:28]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [09:00:28]RAPDU: 90 00 [09:00:28]wFMCommunicate OK [09:00:28]SAM_PROTO_ClearQueue done [09:00:28]KKMCreateOFDPacket [09:00:28]OFDProtocolAddRootSTLVToBuf [09:00:28]FM_MakeSignedData [09:00:28]FM_MakeSignedData [09:00:28]SAM_PROTO_SignData [09:00:28]wFMCommunicate request_size=4 [09:00:28]MH_SAM_APDU [09:00:28]CAPDU: 80 0D 01 02 [09:00:28]Write to MH i2c: E2 08 00 82 17 80 0D 01 02 00 00 00 00 12 [09:00:28]Write i2c OK [09:00:28]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [09:00:29]RAPDU: 90 00 [09:00:29]wFMCommunicate OK [09:00:29]wFMCommunicate request_size=255 [09:00:29]MH_SAM_APDU [09:00:29]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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 49 00 00 00 F4 03 04 00 2E 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 10 01 00 35 04 06 00 12 23 [09:00:29]Write to MH i2c: E2 02 01 83 17 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 49 00 00 00 F4 03 04 00 2E 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 10 01 00 35 04 06 00 12 23 00 00 9C [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [09:00:29]RAPDU: 90 00 [09:00:29]wFMCommunicate OK [09:00:29]wFMCommunicate request_size=9 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 0D 02 02 04 84 96 5F 78 [09:00:29]Write to MH i2c: E2 0C 00 84 17 80 0D 02 02 04 00 84 96 5F 78 00 00 0E [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [09:00:29]RAPDU: 90 00 [09:00:29]wFMCommunicate OK [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 0D 03 02 [09:00:29]Write to MH i2c: E2 08 00 85 17 80 0D 03 02 00 00 00 00 17 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0B 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0B 00 85 17 00 3F 60 CA EB 40 AC C3 DA 90 00 F5 [09:00:29]RAPDU: 3F 60 CA EB 40 AC C3 DA 90 00 [09:00:29]wFMCommunicate OK [09:00:29]SAM_PROTO_SignData done [09:00:29]FM_MakeSignedData done [09:00:29]CreateOFDProtocolMessage [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 11 00 00 [09:00:29]Write to MH i2c: E2 08 00 86 17 80 11 00 00 00 00 00 00 17 [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 17 00 86 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [09:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:00:29]wFMCommunicate OK [09:00:29]CreateOFDProtocolMessage done [09:00:29]OFDSenderStorePacket 69683 [09:00:29]StoreOFDPacket docnum=69683 [09:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F9 11 06 01 6B 0F 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 49 00 00 00 F4 03 04 00 2E 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 10 01 00 35 04 06 00 12 23 84 96 5F 78 3F 60 CA EB 40 AC C3 DA [09:00:29]CheckFolder [09:00:29]dirname=/storage/ofd_packets [09:00:29]CheckFolder done [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00069683 [09:00:29]NVStorageSaveData ofd_packets/00069683 [09:00:29]File name is /storage/ofd_packets/00069683 [09:00:29]Write 300 bytes [09:00:29]NVStorageSaveData done [09:00:29]OFDSenderStorePacket done [09:00:29]KKMCreateOFDPacket done [09:00:29]NVStorageSaveData kkm_last_timestamp [09:00:29]File name is /storage/kkm_last_timestamp [09:00:29]Write 4 bytes [09:00:29]NVStorageSaveData done [09:00:29]ExternCall_PrintAddStr [09:00:29]wPrintStart [09:00:29]Write to MH i2c: 01 00 00 87 17 9E [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: 01 07 00 87 17 00 00 00 00 00 FF 0F B3 [09:00:29]RasterBufferAndPrint [09:00:29]line Счет N : (1)2885422 [09:00:29]line ИНН: 02508201610067 [09:00:29]line Контрольно-Кассовый Чек [09:00:29]line ПРОДАЖА [09:00:29]line ТРК (МРК, ГНК) : 71 [09:00:29]line Товар: 2711129700 [09:00:29]line ГАЗ-К-3 [09:00:29]line 12.860 * 38.90 [09:00:29]line = 500.25 [09:00:29]line НДС 12% НСП 1% [09:00:29]line > о реализуемом товаре [09:00:29]line ОКРУГЛЕНИЕ: -0.25 [09:00:29]line ИТОГО: 500.00 [09:00:29]line Внесено: 500.00 [09:00:29]line СДАЧА: 0.00 [09:00:29]line НСП 1% : 4.43 [09:00:29]line НДС 12% : 53.12 [09:00:29]line Наличными: 500.00 [09:00:29]line Безнал.: 0.00 [09:00:29]line Место: АЗС № 85 "Партнер Нефть" [09:00:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:00:29]line СНО: Общий режим [09:00:29]line Чек 73 21.10.2024 09:00 [09:00:29]line Смена: 194 ФФД: 1.0 [09:00:29]line ЗНМ: 0300000167 [09:00:29]line РНМ: 0000000000156251 [09:00:29]line Версия ККМ: v1.0 [09:00:29]line ФМ: 0000000000963346 [09:00:29]line ФД: 69683 [09:00:29]line ФПД: 19943757602680 [09:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090030&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69683&fm=19943757602680&tin=02508201610067®Number=0000000000156251&sum=50000 [09:00:29]OFD Sender: Processing packet 69683 [packets to send 18, broken 17] [09:00:29]ProducePacketName [09:00:29]name=ofd_packets/00069683 [09:00:29]OFD Sender: To server: pG, [09:00:29]CommunicateWithHost lk.salyk.kg:30040 [09:00:29]ConnectInit lk.salyk.kg [09:00:29]written 0, free lines is 4095 [09:00:29]Connected sock=10 [09:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F9 11 06 01 6B 0F 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 49 00 00 00 F4 03 04 00 2E 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 10 01 00 35 04 06 00 12 23 84 96 5F 78 3F 60 CA EB 40 AC C3 DA [09:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7D 8F 47 00 34 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 10 01 00 F4 03 04 00 D2 C1 15 67 B6 04 01 00 00 43 48 9B B2 21 A4 19 DF [09:00:30]CommunicateWithHost err = 0 [09:00:30]CheckOFDResponse [09:00:30]1017 (14) - 77093643461234 [09:00:30]1041 (16) - 0000000000963346 [09:00:30]1040 (4) - 69683 [09:00:30]1012 (4) - 21.10.2024 02:52 [09:00:30]1206 (1) - 0 [09:00:30]OFD Sender: Remove packet 69683 [09:00:30]ProducePacketName [09:00:30]name=ofd_packets/00069683 [09:00:30]NVStorageDeleteData [09:00:30]Write to MH i2c: 01 00 00 B2 17 C9 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 07 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 F1 0C CD [09:00:30]RasterBufferAndPrint [09:00:30]line [09:00:30]line [09:00:30]line [09:00:30]line [09:00:30]line [09:00:30]written 0, free lines is 3319 [09:00:30]MH_Cut [09:00:30]Write to MH i2c: D1 01 00 B9 17 01 A2 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: D1 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: D1 01 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: D1 01 00 B9 17 00 A1 [09:00:30]Write to MH i2c: 01 00 00 BA 17 D1 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]OFD Sender: No OFD packet to send [09:00:30]*** Cut start [09:00:30]*** Partial cut [09:00:30]*** CUTSNS_PIN = 1 [09:00:31]*** CUTSNS_PIN = 0 [09:00:31]*** Brake cut motor [09:00:31]Read from MH i2c: 01 [09:00:31]MH_I2C_Read... [09:00:31]*** Stop cut motor [09:00:31]*** Cut end [09:00:31]Read from MH i2c: 01 07 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 07 00 BA 17 00 00 00 00 00 FF 0F E6 [09:00:31]process_action close_receipt done [09:00:31]requested_data is exist [09:00:31]produce_requested_data [09:00:31]requested_item fm.sn is exist - process it [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 11 00 00 [09:00:31]Write to MH i2c: E2 08 00 BB 17 80 11 00 00 00 00 00 00 4C [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 BB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [09:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:00:31]wFMCommunicate OK [09:00:31]requested_item fd.num is exist - process it [09:00:31]SAM_PROTO_GetFieldsCounters [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 00 00 [09:00:31]Write to MH i2c: E2 08 00 BC 17 80 13 00 00 00 00 00 00 4F [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 62 00 BC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 10 01 00 0E 04 04 00 C2 00 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 4B [09:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 10 01 00 0E 04 04 00 C2 00 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 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetFieldsCounters done [09:00:31]requested_item shift.num is exist - process it [09:00:31]requested_item shift.opened is exist - process it [09:00:31]req_shift_opened [09:00:31]FM_GetShiftState [09:00:31]SAM_PROTO_GetShiftState [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 13 01 00 [09:00:31]Write to MH i2c: E2 08 00 BD 17 80 13 01 00 00 00 00 00 51 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0E 00 BD 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7D [09:00:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_GetShiftState done [09:00:31]FM_GetShiftState done [09:00:31]req_shift_opened done [09:00:31]requested_item shift.open_date is exist - process it [09:00:31]req_shift_open_date [09:00:31]req_shift_open_date done [09:00:31]produce_requested_data done [09:00:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69683,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:00:31]process_action_free close_receipt [09:00:31]json_value_free [09:00:31]json_value_free done [09:00:31]process_json_proto returns [09:00:31]Send response to host [09:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69683,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:00:31]free response buf [09:00:31]execute_script done [09:00:31]execute_script returns [09:00:31]free content buf [09:00:31]Sock 8.Close socket [09:00:31]Sock 8.Thread stoped [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:17]accept exits with 9 [09:01:17]New connection [09:01:17]New thread 3067456868 created [09:01:17]Thread 3067313508 joined [09:01:17]Waiting for new connection... [09:01:17] Sock 9.Parse request [09:01:17]Sock 9.Check first char [09:01:17]Sock 9.First char is OK [09:01:17]request: POST /json_proto HTTP/1.0 [09:01:17]Method: POST [09:01:17]URL: /json_proto [09:01:17]Method is POST - this is cgi request [09:01:17]url: /json_proto [09:01:17]query_string will be loaded in cgi processing [09:01:17]execute_cgi json_proto POST (null) [09:01:17]execute_cgi path=json_proto method=POST [09:01:17]POST find Content-Length [09:01:17]Host: 172.17.50.3:8080 [09:01:17]Content-Length: 680 [09:01:17]Content-Type: application/json [09:01:17] [09:01:17]POST finish read [09:01:17]Found Content-Length = 680 [09:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:01:17]execute_script... [09:01:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:01:17]POST & json_proto [09:01:17]process_json_proto [09:01:17]json parsed OK: [09:01:17]protocol is kg_v1.0 [09:01:17]action value=close_receipt [09:01:17]process_action close_receipt [09:01:17]cmd_close_receipt [09:01:17]MH_GetDate [09:01:17]Write to MH i2c: F0 00 00 BE 17 C4 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: F0 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: F0 09 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: F0 09 00 BE 17 00 60 18 16 67 6B 98 1E 66 49 [09:01:17]GetLastDocTimeStamp 1729501230 [09:01:17]current date 1729501280 [09:01:17]FM_GetShiftState [09:01:17]SAM_PROTO_GetShiftState [09:01:17]wFMCommunicate request_size=4 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 13 01 00 [09:01:17]Write to MH i2c: E2 08 00 BF 17 80 13 01 00 00 00 00 00 53 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 0E 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 0E 00 BF 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7F [09:01:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:01:17]wFMCommunicate OK [09:01:17]SAM_PROTO_GetShiftState done [09:01:17]FM_GetShiftState done [09:01:17]opened in 1729469703 [09:01:17]opened+sec_in_day 1729556103 [09:01:17]quantity*price = 300075 [09:01:17]sum+1 = 300077 [09:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 74 21.10.2024 09:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69684 ФПД: 12133168710516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69684&fm=12133168710516&tin=02508201610067®Number=0000000000156251&sum=300000 [09:01:18]StoreToDocumentArchive [09:01:18]shift 194 fd 69684 [09:01:18]save to /storage/0194/doc_00069684 [09:01:18]save last doc name /storage/0194/doc_00069684 to /storage/kkm_last_doc_name [09:01:18]save OK [09:01:18]Clear old archive folders... [09:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:18]tlvbuf is B6F23AE0 [09:01:18]SAM_PROTO_ClearQueue [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 09 00 00 [09:01:18]Write to MH i2c: E2 08 00 CC 17 80 09 00 00 00 00 00 00 55 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]SAM_PROTO_ClearQueue done [09:01:18]KKMCreateOFDPacket [09:01:18]OFDProtocolAddRootSTLVToBuf [09:01:18]FM_MakeSignedData [09:01:18]FM_MakeSignedData [09:01:18]SAM_PROTO_SignData [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 0D 01 02 [09:01:18]Write to MH i2c: E2 08 00 CD 17 80 0D 01 02 00 00 00 00 5D [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]wFMCommunicate request_size=255 [09:01:18]MH_SAM_APDU [09:01:18]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 32 31 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 4A 00 00 00 F4 03 04 00 60 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 10 01 00 35 04 06 00 0B 08 F9 36 [09:01:18]Write to MH i2c: E2 02 01 CE 17 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 32 31 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 4A 00 00 00 F4 03 04 00 60 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 10 01 00 35 04 06 00 0B 08 F9 36 00 00 9B [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 03 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [09:01:19]RAPDU: 90 00 [09:01:19]wFMCommunicate OK [09:01:19]wFMCommunicate request_size=7 [09:01:19]MH_SAM_APDU [09:01:19]CAPDU: 80 0D 02 02 02 03 74 [09:01:19]Write to MH i2c: E2 0A 00 CF 17 80 0D 02 02 02 00 03 74 00 00 DB [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 03 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [09:01:19]RAPDU: 90 00 [09:01:19]wFMCommunicate OK [09:01:19]wFMCommunicate request_size=4 [09:01:19]MH_SAM_APDU [09:01:19]CAPDU: 80 0D 03 02 [09:01:19]Write to MH i2c: E2 08 00 D0 17 80 0D 03 02 00 00 00 00 62 [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 0B 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 0B 00 D0 17 00 03 02 2A E6 C2 FD 10 A3 90 00 EA [09:01:19]RAPDU: 03 02 2A E6 C2 FD 10 A3 90 00 [09:01:19]wFMCommunicate OK [09:01:19]SAM_PROTO_SignData done [09:01:19]FM_MakeSignedData done [09:01:19]CreateOFDProtocolMessage [09:01:19]wFMCommunicate request_size=4 [09:01:19]MH_SAM_APDU [09:01:19]CAPDU: 80 11 00 00 [09:01:19]Write to MH i2c: E2 08 00 D1 17 80 11 00 00 00 00 00 00 62 [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 17 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 17 00 D1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [09:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:01:19]wFMCommunicate OK [09:01:19]CreateOFDProtocolMessage done [09:01:19]OFDSenderStorePacket 69684 [09:01:19]StoreOFDPacket docnum=69684 [09:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8A CC 04 01 05 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 32 31 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 4A 00 00 00 F4 03 04 00 60 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 10 01 00 35 04 06 00 0B 08 F9 36 03 74 03 02 2A E6 C2 FD 10 A3 [09:01:19]CheckFolder [09:01:19]dirname=/storage/ofd_packets [09:01:19]CheckFolder done [09:01:19]ProducePacketName [09:01:19]name=ofd_packets/00069684 [09:01:19]NVStorageSaveData ofd_packets/00069684 [09:01:19]File name is /storage/ofd_packets/00069684 [09:01:19]Write 298 bytes [09:01:19]NVStorageSaveData done [09:01:19]OFDSenderStorePacket done [09:01:19]KKMCreateOFDPacket done [09:01:19]NVStorageSaveData kkm_last_timestamp [09:01:19]File name is /storage/kkm_last_timestamp [09:01:19]Write 4 bytes [09:01:19]NVStorageSaveData done [09:01:19]ExternCall_PrintAddStr [09:01:19]wPrintStart [09:01:19]Write to MH i2c: 01 00 00 D2 17 E9 [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: 01 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: 01 07 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 FF 0F FE [09:01:19]RasterBufferAndPrint [09:01:19]line Счет N : (1)2885423 [09:01:19]line ИНН: 02508201610067 [09:01:19]line Контрольно-Кассовый Чек [09:01:19]line ПРОДАЖА [09:01:19]line ТРК (МРК, ГНК) : 51 [09:01:19]line Товар: 2710194210 [09:01:19]line ДТ-К-5 [09:01:19]line 39.380 * 76.20 [09:01:19]line = 3000.76 [09:01:19]line НДС 12% НСП 1% [09:01:19]line > о реализуемом товаре [09:01:19]line ОКРУГЛЕНИЕ: -0.76 [09:01:19]line ИТОГО: 3000.00 [09:01:19]line Внесено: 3000.00 [09:01:19]line СДАЧА: 0.00 [09:01:19]line НСП 1% : 26.55 [09:01:19]line НДС 12% : 318.66 [09:01:19]line Наличными: 3000.00 [09:01:19]line Безнал.: 0.00 [09:01:19]line Место: АЗС № 85 "Партнер Нефть" [09:01:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:01:19]line СНО: Общий режим [09:01:19]line Чек 74 21.10.2024 09:01 [09:01:19]line Смена: 194 ФФД: 1.0 [09:01:19]line ЗНМ: 0300000167 [09:01:19]line РНМ: 0000000000156251 [09:01:19]line Версия ККМ: v1.0 [09:01:19]line ФМ: 0000000000963346 [09:01:19]line ФД: 69684 [09:01:19]line ФПД: 12133168710516 [09:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69684&fm=12133168710516&tin=02508201610067®Number=0000000000156251&sum=300000 [09:01:19]OFD Sender: Processing packet 69684 [packets to send 18, broken 17] [09:01:19]ProducePacketName [09:01:19]name=ofd_packets/00069684 [09:01:19]OFD Sender: To server: pG, [09:01:19]CommunicateWithHost lk.salyk.kg:30040 [09:01:19]ConnectInit lk.salyk.kg [09:01:19]written 0, free lines is 4095 [09:01:19]Connected sock=10 [09:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8A CC 04 01 05 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 32 31 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 4A 00 00 00 F4 03 04 00 60 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 10 01 00 35 04 06 00 0B 08 F9 36 03 74 03 02 2A E6 C2 FD 10 A3 [09:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D1 1A 47 00 58 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 10 01 00 F4 03 04 00 04 C2 15 67 B6 04 01 00 00 E3 CF 49 DF 7E B8 EE 5D [09:01:20]CommunicateWithHost err = 0 [09:01:20]CheckOFDResponse [09:01:20]1017 (14) - 77093643461234 [09:01:20]1041 (16) - 0000000000963346 [09:01:20]1040 (4) - 69684 [09:01:20]1012 (4) - 21.10.2024 02:52 [09:01:20]1206 (1) - 0 [09:01:20]OFD Sender: Remove packet 69684 [09:01:20]ProducePacketName [09:01:20]name=ofd_packets/00069684 [09:01:20]NVStorageDeleteData [09:01:20]Write to MH i2c: 01 00 00 FD 17 14 [09:01:20]Write i2c OK [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: 01 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: 01 07 00 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: 01 07 00 FD 17 00 00 00 00 00 F3 0C 1A [09:01:20]RasterBufferAndPrint [09:01:20]line [09:01:20]line [09:01:20]line [09:01:20]line [09:01:20]line [09:01:20]written 0, free lines is 3321 [09:01:20]MH_Cut [09:01:20]Write to MH i2c: D1 01 00 04 18 01 EE [09:01:20]Write i2c OK [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: D1 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: D1 01 00 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: D1 01 00 04 18 00 ED [09:01:20]Write to MH i2c: 01 00 00 05 18 1D [09:01:20]Write i2c OK [09:01:20]MH_I2C_Read... [09:01:20]OFD Sender: No OFD packet to send [09:01:20]*** Cut start [09:01:20]*** Partial cut [09:01:20]*** CUTSNS_PIN = 1 [09:01:20]*** CUTSNS_PIN = 0 [09:01:21]*** Brake cut motor [09:01:21]Read from MH i2c: 01 [09:01:21]MH_I2C_Read... [09:01:21]*** Stop cut motor [09:01:21]*** Cut end [09:01:21]Read from MH i2c: 01 07 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: 01 07 00 05 18 00 00 00 00 00 FF 0F 32 [09:01:21]process_action close_receipt done [09:01:21]requested_data is exist [09:01:21]produce_requested_data [09:01:21]requested_item fm.sn is exist - process it [09:01:21]wFMCommunicate request_size=4 [09:01:21]MH_SAM_APDU [09:01:21]CAPDU: 80 11 00 00 [09:01:21]Write to MH i2c: E2 08 00 06 18 80 11 00 00 00 00 00 00 98 [09:01:21]Write i2c OK [09:01:21]MH_I2C_Read... [09:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:21]Read from MH i2c: E2 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 17 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 17 00 06 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [09:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:01:21]wFMCommunicate OK [09:01:21]requested_item fd.num is exist - process it [09:01:21]SAM_PROTO_GetFieldsCounters [09:01:21]wFMCommunicate request_size=4 [09:01:21]MH_SAM_APDU [09:01:21]CAPDU: 80 13 00 00 [09:01:21]Write to MH i2c: E2 08 00 07 18 80 13 00 00 00 00 00 00 9B [09:01:21]Write i2c OK [09:01:21]MH_I2C_Read... [09:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:21]Read from MH i2c: E2 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 62 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 62 00 07 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 10 01 00 0E 04 04 00 C2 00 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 9B [09:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 10 01 00 0E 04 04 00 C2 00 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 [09:01:21]wFMCommunicate OK [09:01:21]SAM_PROTO_GetFieldsCounters done [09:01:21]requested_item shift.num is exist - process it [09:01:21]requested_item shift.opened is exist - process it [09:01:21]req_shift_opened [09:01:21]FM_GetShiftState [09:01:21]SAM_PROTO_GetShiftState [09:01:21]wFMCommunicate request_size=4 [09:01:21]MH_SAM_APDU [09:01:21]CAPDU: 80 13 01 00 [09:01:21]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [09:01:21]Write i2c OK [09:01:21]MH_I2C_Read... [09:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:21]Read from MH i2c: E2 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 0E 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C9 [09:01:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:01:21]wFMCommunicate OK [09:01:21]SAM_PROTO_GetShiftState done [09:01:21]FM_GetShiftState done [09:01:21]req_shift_opened done [09:01:21]requested_item shift.open_date is exist - process it [09:01:21]req_shift_open_date [09:01:21]req_shift_open_date done [09:01:21]produce_requested_data done [09:01:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69684,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:01:21]process_action_free close_receipt [09:01:21]json_value_free [09:01:21]json_value_free done [09:01:21]process_json_proto returns [09:01:21]Send response to host [09:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69684,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:01:21]free response buf [09:01:21]execute_script done [09:01:21]execute_script returns [09:01:21]free content buf [09:01:21]Sock 9.Close socket [09:01:21]Sock 9.Thread stoped [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:33]accept exits with 8 [09:01:33]New connection [09:01:33]New thread 3067313508 created [09:01:33]Thread 3067456868 joined [09:01:33]Waiting for new connection... [09:01:33] Sock 8.Parse request [09:01:33]Sock 8.Check first char [09:01:33]Sock 8.First char is OK [09:01:33]request: POST /json_proto HTTP/1.0 [09:01:33]Method: POST [09:01:33]URL: /json_proto [09:01:33]Method is POST - this is cgi request [09:01:33]url: /json_proto [09:01:33]query_string will be loaded in cgi processing [09:01:33]execute_cgi json_proto POST (null) [09:01:33]execute_cgi path=json_proto method=POST [09:01:33]POST find Content-Length [09:01:33]Host: 172.17.50.3:8080 [09:01:33]Content-Length: 678 [09:01:33]Content-Type: application/json [09:01:33] [09:01:33]POST finish read [09:01:33]Found Content-Length = 678 [09:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885424", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:33]execute_script... [09:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885424", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:33]POST & json_proto [09:01:33]process_json_proto [09:01:33]json parsed OK: [09:01:33]protocol is kg_v1.0 [09:01:33]action value=close_receipt [09:01:33]process_action close_receipt [09:01:33]cmd_close_receipt [09:01:33]MH_GetDate [09:01:33]Write to MH i2c: F0 00 00 09 18 10 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 09 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: F0 09 00 09 18 00 70 18 16 67 6B 98 1E 66 A5 [09:01:33]GetLastDocTimeStamp 1729501280 [09:01:33]current date 1729501296 [09:01:33]FM_GetShiftState [09:01:33]SAM_PROTO_GetShiftState [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 13 01 00 [09:01:33]Write to MH i2c: E2 08 00 0A 18 80 13 01 00 00 00 00 00 9F [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 0A 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CB [09:01:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:01:33]wFMCommunicate OK [09:01:33]SAM_PROTO_GetShiftState done [09:01:33]FM_GetShiftState done [09:01:33]opened in 1729469703 [09:01:33]opened+sec_in_day 1729556103 [09:01:33]quantity*price = 50041 [09:01:33]sum+1 = 50042 [09:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 75 21.10.2024 09:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69685 ФПД: 185320523050298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090136&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69685&fm=185320523050298&tin=02508201610067®Number=0000000000156251&sum=50000 [09:01:34]StoreToDocumentArchive [09:01:34]shift 194 fd 69685 [09:01:34]save to /storage/0194/doc_00069685 [09:01:34]save last doc name /storage/0194/doc_00069685 to /storage/kkm_last_doc_name [09:01:34]save OK [09:01:34]Clear old archive folders... [09:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:34]tlvbuf is 00C38130 [09:01:34]SAM_PROTO_ClearQueue [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 09 00 00 [09:01:34]Write to MH i2c: E2 08 00 17 18 80 09 00 00 00 00 00 00 A1 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [09:01:34]RAPDU: 90 00 [09:01:34]wFMCommunicate OK [09:01:34]SAM_PROTO_ClearQueue done [09:01:34]KKMCreateOFDPacket [09:01:34]OFDProtocolAddRootSTLVToBuf [09:01:34]FM_MakeSignedData [09:01:34]FM_MakeSignedData [09:01:34]SAM_PROTO_SignData [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 0D 01 02 [09:01:34]Write to MH i2c: E2 08 00 18 18 80 0D 01 02 00 00 00 00 A9 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [09:01:34]RAPDU: 90 00 [09:01:34]wFMCommunicate OK [09:01:34]wFMCommunicate request_size=255 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 70 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 10 01 00 35 04 06 00 A8 [09:01:34]Write to MH i2c: E2 02 01 19 18 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 70 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 10 01 00 35 04 06 00 A8 00 00 32 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]wFMCommunicate request_size=10 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 0D 02 02 05 8C 4B F2 2D 3A [09:01:35]Write to MH i2c: E2 0D 00 1A 18 80 0D 02 02 05 00 8C 4B F2 2D 3A 00 00 E6 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [09:01:35]RAPDU: 90 00 [09:01:35]wFMCommunicate OK [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 0D 03 02 [09:01:35]Write to MH i2c: E2 08 00 1B 18 80 0D 03 02 00 00 00 00 AE [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0B 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0B 00 1B 18 00 B0 4B 7C 40 72 DE 11 8C 90 00 53 [09:01:35]RAPDU: B0 4B 7C 40 72 DE 11 8C 90 00 [09:01:35]wFMCommunicate OK [09:01:35]SAM_PROTO_SignData done [09:01:35]FM_MakeSignedData done [09:01:35]CreateOFDProtocolMessage [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 11 00 00 [09:01:35]Write to MH i2c: E2 08 00 1C 18 80 11 00 00 00 00 00 00 AE [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 1C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [09:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:01:35]wFMCommunicate OK [09:01:35]CreateOFDProtocolMessage done [09:01:35]OFDSenderStorePacket 69685 [09:01:35]StoreOFDPacket docnum=69685 [09:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 2B 07 01 5B 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 70 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 10 01 00 35 04 06 00 A8 8C 4B F2 2D 3A B0 4B 7C 40 72 DE 11 8C [09:01:35]CheckFolder [09:01:35]dirname=/storage/ofd_packets [09:01:35]CheckFolder done [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00069685 [09:01:35]NVStorageSaveData ofd_packets/00069685 [09:01:35]File name is /storage/ofd_packets/00069685 [09:01:35]Write 301 bytes [09:01:35]NVStorageSaveData done [09:01:35]OFDSenderStorePacket done [09:01:35]KKMCreateOFDPacket done [09:01:35]NVStorageSaveData kkm_last_timestamp [09:01:35]File name is /storage/kkm_last_timestamp [09:01:35]Write 4 bytes [09:01:35]NVStorageSaveData done [09:01:35]ExternCall_PrintAddStr [09:01:35]wPrintStart [09:01:35]Write to MH i2c: 01 00 00 1D 18 35 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 FF 0F 4A [09:01:35]RasterBufferAndPrint [09:01:35]line Счет N : (1)2885424 [09:01:35]line ИНН: 02508201610067 [09:01:35]line Контрольно-Кассовый Чек [09:01:35]line ПРОДАЖА [09:01:35]line ТРК (МРК, ГНК) : 42 [09:01:35]line Товар: 2710124130 [09:01:35]line Аи-92-К-5 [09:01:35]line 7.480 * 66.90 [09:01:35]line = 500.41 [09:01:35]line НДС 12% НСП 1% [09:01:35]line > о реализуемом товаре [09:01:35]line ОКРУГЛЕНИЕ: -0.41 [09:01:35]line ИТОГО: 500.00 [09:01:35]line Внесено: 500.00 [09:01:35]line СДАЧА: 0.00 [09:01:35]line НСП 1% : 4.43 [09:01:35]line НДС 12% : 53.14 [09:01:35]line Наличными: 500.00 [09:01:35]line Безнал.: 0.00 [09:01:35]line Место: АЗС № 85 "Партнер Нефть" [09:01:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:01:35]line СНО: Общий режим [09:01:35]line Чек 75 21.10.2024 09:01 [09:01:35]line Смена: 194 ФФД: 1.0 [09:01:35]line ЗНМ: 0300000167 [09:01:35]line РНМ: 0000000000156251 [09:01:35]line Версия ККМ: v1.0 [09:01:35]line ФМ: 0000000000963346 [09:01:35]line ФД: 69685 [09:01:35]line ФПД: 185320523050298 [09:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090136&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69685&fm=185320523050298&tin=02508201610067®Number=0000000000156251&sum=50000 [09:01:35]OFD Sender: Processing packet 69685 [packets to send 18, broken 17] [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00069685 [09:01:35]OFD Sender: To server: pG, [09:01:35]CommunicateWithHost lk.salyk.kg:30040 [09:01:35]ConnectInit lk.salyk.kg [09:01:35]written 0, free lines is 4095 [09:01:35]Connected sock=10 [09:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 2B 07 01 5B 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 70 18 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 10 01 00 35 04 06 00 A8 8C 4B F2 2D 3A B0 4B 7C 40 72 DE 11 8C [09:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FB 4E 47 00 B6 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 39 36 33 33 34 36 10 04 04 00 35 10 01 00 F4 03 04 00 14 C2 15 67 B6 04 01 00 00 D2 9C DC 80 F2 9D E7 B8 [09:01:35]CommunicateWithHost err = 0 [09:01:35]CheckOFDResponse [09:01:35]1017 (14) - 77093643461234 [09:01:35]1041 (16) - 0000000000963346 [09:01:35]1040 (4) - 69685 [09:01:35]1012 (4) - 21.10.2024 02:53 [09:01:35]1206 (1) - 0 [09:01:35]OFD Sender: Remove packet 69685 [09:01:35]ProducePacketName [09:01:35]name=ofd_packets/00069685 [09:01:35]NVStorageDeleteData [09:01:35]Write to MH i2c: 01 00 00 48 18 60 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 48 18 00 00 00 00 00 F0 0C 63 [09:01:35]RasterBufferAndPrint [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]line [09:01:35]written 0, free lines is 3318 [09:01:36]MH_Cut [09:01:36]Write to MH i2c: D1 01 00 4F 18 01 39 [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 01 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: D1 01 00 4F 18 00 38 [09:01:36]Write to MH i2c: 01 00 00 50 18 68 [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]OFD Sender: No OFD packet to send [09:01:36]*** Cut start [09:01:36]*** Partial cut [09:01:36]*** CUTSNS_PIN = 1 [09:01:36]*** CUTSNS_PIN = 0 [09:01:36]*** Brake cut motor [09:01:37]Read from MH i2c: 01 [09:01:37]MH_I2C_Read... [09:01:37]*** Stop cut motor [09:01:37]*** Cut end [09:01:37]Read from MH i2c: 01 07 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: 01 07 00 50 18 00 00 00 00 00 FF 0F 7D [09:01:37]process_action close_receipt done [09:01:37]requested_data is exist [09:01:37]produce_requested_data [09:01:37]requested_item fm.sn is exist - process it [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 11 00 00 [09:01:37]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 17 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [09:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:01:37]wFMCommunicate OK [09:01:37]requested_item fd.num is exist - process it [09:01:37]SAM_PROTO_GetFieldsCounters [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 13 00 00 [09:01:37]Write to MH i2c: E2 08 00 52 18 80 13 00 00 00 00 00 00 E6 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 62 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 62 00 52 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [09:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_GetFieldsCounters done [09:01:37]requested_item shift.num is exist - process it [09:01:37]requested_item shift.opened is exist - process it [09:01:37]req_shift_opened [09:01:37]FM_GetShiftState [09:01:37]SAM_PROTO_GetShiftState [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 13 01 00 [09:01:37]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 14 [09:01:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_GetShiftState done [09:01:37]FM_GetShiftState done [09:01:37]req_shift_opened done [09:01:37]requested_item shift.open_date is exist - process it [09:01:37]req_shift_open_date [09:01:37]req_shift_open_date done [09:01:37]produce_requested_data done [09:01:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69685,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:01:37]process_action_free close_receipt [09:01:37]json_value_free [09:01:37]json_value_free done [09:01:37]process_json_proto returns [09:01:37]Send response to host [09:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69685,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:01:37]free response buf [09:01:37]execute_script done [09:01:37]execute_script returns [09:01:37]free content buf [09:01:37]Sock 8.Close socket [09:01:37]Sock 8.Thread stoped [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:12]accept exits with 9 [09:05:12]New connection [09:05:12]New thread 3067456868 created [09:05:12]Thread 3067313508 joined [09:05:12]Waiting for new connection... [09:05:12] Sock 9.Parse request [09:05:12]Sock 9.Check first char [09:05:12]Sock 9.First char is OK [09:05:12]request: POST /json_proto HTTP/1.0 [09:05:12]Method: POST [09:05:12]URL: /json_proto [09:05:12]Method is POST - this is cgi request [09:05:12]url: /json_proto [09:05:12]query_string will be loaded in cgi processing [09:05:12]execute_cgi json_proto POST (null) [09:05:12]execute_cgi path=json_proto method=POST [09:05:12]POST find Content-Length [09:05:12]Host: 172.17.50.3:8080 [09:05:12]Content-Length: 680 [09:05:12]Content-Type: application/json [09:05:12] [09:05:12]POST finish read [09:05:12]Found Content-Length = 680 [09:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:05:12]execute_script... [09:05: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)2885425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:05:12]POST & json_proto [09:05:12]process_json_proto [09:05:12]json parsed OK: [09:05:12]protocol is kg_v1.0 [09:05:12]action value=close_receipt [09:05:12]process_action close_receipt [09:05:12]cmd_close_receipt [09:05:12]MH_GetDate [09:05:12]Write to MH i2c: F0 00 00 54 18 5B [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: F0 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: F0 09 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: F0 09 00 54 18 00 4B 19 16 67 6B 98 1E 66 CC [09:05:12]GetLastDocTimeStamp 1729501296 [09:05:12]current date 1729501515 [09:05:12]FM_GetShiftState [09:05:12]SAM_PROTO_GetShiftState [09:05:12]wFMCommunicate request_size=4 [09:05:12]MH_SAM_APDU [09:05:12]CAPDU: 80 13 01 00 [09:05:12]Write to MH i2c: E2 08 00 55 18 80 13 01 00 00 00 00 00 EA [09:05:12]Write i2c OK [09:05:12]MH_I2C_Read... [09:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:12]Read from MH i2c: E2 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 0E 00 [09:05:12]MH_I2C_Read... [09:05:12]Read from MH i2c: E2 0E 00 55 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 16 [09:05:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:05:12]wFMCommunicate OK [09:05:12]SAM_PROTO_GetShiftState done [09:05:12]FM_GetShiftState done [09:05:12]opened in 1729469703 [09:05:12]opened+sec_in_day 1729556103 [09:05:12]quantity*price = 100050 [09:05:12]sum+1 = 100052 [09:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 76 21.10.2024 09:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69686 ФПД: 122712492898671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090515&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69686&fm=122712492898671&tin=02508201610067®Number=0000000000156251&sum=100000 [09:05:13]StoreToDocumentArchive [09:05:13]shift 194 fd 69686 [09:05:13]save to /storage/0194/doc_00069686 [09:05:13]save last doc name /storage/0194/doc_00069686 to /storage/kkm_last_doc_name [09:05:13]save OK [09:05:13]Clear old archive folders... [09:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:05:13]tlvbuf is B6F55EF0 [09:05:13]SAM_PROTO_ClearQueue [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 09 00 00 [09:05:13]Write to MH i2c: E2 08 00 62 18 80 09 00 00 00 00 00 00 EC [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [09:05:13]RAPDU: 90 00 [09:05:13]wFMCommunicate OK [09:05:13]SAM_PROTO_ClearQueue done [09:05:13]KKMCreateOFDPacket [09:05:13]OFDProtocolAddRootSTLVToBuf [09:05:13]FM_MakeSignedData [09:05:13]FM_MakeSignedData [09:05:13]SAM_PROTO_SignData [09:05:13]wFMCommunicate request_size=4 [09:05:13]MH_SAM_APDU [09:05:13]CAPDU: 80 0D 01 02 [09:05:13]Write to MH i2c: E2 08 00 63 18 80 0D 01 02 00 00 00 00 F4 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:13]Read from MH i2c: E2 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [09:05:13]RAPDU: 90 00 [09:05:13]wFMCommunicate OK [09:05:13]wFMCommunicate request_size=255 [09:05:13]MH_SAM_APDU [09:05:13]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 32 31 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 4C 00 00 00 F4 03 04 00 4B 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 10 01 00 35 04 06 00 6F 9B 3A 8C [09:05:13]Write to MH i2c: E2 02 01 64 18 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 32 31 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 4C 00 00 00 F4 03 04 00 4B 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 10 01 00 35 04 06 00 6F 9B 3A 8C 00 00 79 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 03 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [09:05:14]RAPDU: 90 00 [09:05:14]wFMCommunicate OK [09:05:14]wFMCommunicate request_size=7 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 0D 02 02 02 79 6F [09:05:14]Write to MH i2c: E2 0A 00 65 18 80 0D 02 02 02 00 79 6F 00 00 E3 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 03 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [09:05:14]RAPDU: 90 00 [09:05:14]wFMCommunicate OK [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 0D 03 02 [09:05:14]Write to MH i2c: E2 08 00 66 18 80 0D 03 02 00 00 00 00 F9 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0B 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0B 00 66 18 00 92 4C 5D 19 D9 04 DF 21 90 00 2B [09:05:14]RAPDU: 92 4C 5D 19 D9 04 DF 21 90 00 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_SignData done [09:05:14]FM_MakeSignedData done [09:05:14]CreateOFDProtocolMessage [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 11 00 00 [09:05:14]Write to MH i2c: E2 08 00 67 18 80 11 00 00 00 00 00 00 F9 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 17 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 17 00 67 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [09:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:05:14]wFMCommunicate OK [09:05:14]CreateOFDProtocolMessage done [09:05:14]OFDSenderStorePacket 69686 [09:05:14]StoreOFDPacket docnum=69686 [09:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 59 B9 04 01 4D 84 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 32 31 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 4C 00 00 00 F4 03 04 00 4B 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 10 01 00 35 04 06 00 6F 9B 3A 8C 79 6F 92 4C 5D 19 D9 04 DF 21 [09:05:14]CheckFolder [09:05:14]dirname=/storage/ofd_packets [09:05:14]CheckFolder done [09:05:14]ProducePacketName [09:05:14]name=ofd_packets/00069686 [09:05:14]NVStorageSaveData ofd_packets/00069686 [09:05:14]File name is /storage/ofd_packets/00069686 [09:05:14]Write 298 bytes [09:05:14]NVStorageSaveData done [09:05:14]OFDSenderStorePacket done [09:05:14]KKMCreateOFDPacket done [09:05:14]NVStorageSaveData kkm_last_timestamp [09:05:14]File name is /storage/kkm_last_timestamp [09:05:14]Write 4 bytes [09:05:14]NVStorageSaveData done [09:05:14]ExternCall_PrintAddStr [09:05:14]wPrintStart [09:05:14]Write to MH i2c: 01 00 00 68 18 80 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 07 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 FF 0F 95 [09:05:14]RasterBufferAndPrint [09:05:14]line Счет N : (1)2885425 [09:05:14]line ИНН: 02508201610067 [09:05:14]line Контрольно-Кассовый Чек [09:05:14]line ПРОДАЖА [09:05:14]line ТРК (МРК, ГНК) : 51 [09:05:14]line Товар: 2710194210 [09:05:14]line ДТ-К-5 [09:05:14]line 13.130 * 76.20 [09:05:14]line = 1000.51 [09:05:14]line НДС 12% НСП 1% [09:05:14]line > о реализуемом товаре [09:05:14]line ОКРУГЛЕНИЕ: -0.51 [09:05:14]line ИТОГО: 1000.00 [09:05:14]line Внесено: 1000.00 [09:05:14]line СДАЧА: 0.00 [09:05:14]line НСП 1% : 8.85 [09:05:14]line НДС 12% : 106.25 [09:05:14]line Наличными: 1000.00 [09:05:14]line Безнал.: 0.00 [09:05:14]line Место: АЗС № 85 "Партнер Нефть" [09:05:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:05:14]line СНО: Общий режим [09:05:14]line Чек 76 21.10.2024 09:05 [09:05:14]line Смена: 194 ФФД: 1.0 [09:05:14]line ЗНМ: 0300000167 [09:05:14]line РНМ: 0000000000156251 [09:05:14]line Версия ККМ: v1.0 [09:05:14]line ФМ: 0000000000963346 [09:05:14]line ФД: 69686 [09:05:14]line ФПД: 122712492898671 [09:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090515&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69686&fm=122712492898671&tin=02508201610067®Number=0000000000156251&sum=100000 [09:05:14]OFD Sender: Processing packet 69686 [packets to send 18, broken 17] [09:05:14]ProducePacketName [09:05:14]name=ofd_packets/00069686 [09:05:14]OFD Sender: To server: pG, [09:05:14]CommunicateWithHost lk.salyk.kg:30040 [09:05:14]ConnectInit lk.salyk.kg [09:05:14]written 0, free lines is 4095 [09:05:14]Connected sock=10 [09:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 59 B9 04 01 4D 84 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 32 31 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 4C 00 00 00 F4 03 04 00 4B 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 10 01 00 35 04 06 00 6F 9B 3A 8C 79 6F 92 4C 5D 19 D9 04 DF 21 [09:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 09 BF 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 39 36 33 33 34 36 10 04 04 00 36 10 01 00 F4 03 04 00 EF C2 15 67 B6 04 01 00 00 39 26 07 67 4E 66 EA 44 [09:05:14]CommunicateWithHost err = 0 [09:05:14]CheckOFDResponse [09:05:14]1017 (14) - 77093643461234 [09:05:14]1041 (16) - 0000000000963346 [09:05:14]1040 (4) - 69686 [09:05:14]1012 (4) - 21.10.2024 02:56 [09:05:14]1206 (1) - 0 [09:05:14]OFD Sender: Remove packet 69686 [09:05:14]ProducePacketName [09:05:14]name=ofd_packets/00069686 [09:05:14]NVStorageDeleteData [09:05:14]Write to MH i2c: 01 00 00 93 18 AB [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 07 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 07 00 93 18 00 00 00 00 00 E6 0C A4 [09:05:14]RasterBufferAndPrint [09:05:14]line [09:05:14]line [09:05:14]line [09:05:14]line [09:05:14]line [09:05:14]written 0, free lines is 3311 [09:05:14]MH_Cut [09:05:14]Write to MH i2c: D1 01 00 9A 18 01 84 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: D1 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: D1 01 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: D1 01 00 9A 18 00 83 [09:05:14]Write to MH i2c: 01 00 00 9B 18 B3 [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:15]OFD Sender: No OFD packet to send [09:05:15]*** Cut start [09:05:15]*** Partial cut [09:05:15]*** CUTSNS_PIN = 1 [09:05:15]*** CUTSNS_PIN = 0 [09:05:15]*** Brake cut motor [09:05:16]Read from MH i2c: 01 [09:05:16]MH_I2C_Read... [09:05:16]*** Stop cut motor [09:05:16]*** Cut end [09:05:16]Read from MH i2c: 01 07 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: 01 07 00 9B 18 00 00 00 00 00 FF 0F C8 [09:05:16]process_action close_receipt done [09:05:16]requested_data is exist [09:05:16]produce_requested_data [09:05:16]requested_item fm.sn is exist - process it [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 11 00 00 [09:05:16]Write to MH i2c: E2 08 00 9C 18 80 11 00 00 00 00 00 00 2E [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:16]Read from MH i2c: E2 17 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 17 00 9C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [09:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:05:16]wFMCommunicate OK [09:05:16]requested_item fd.num is exist - process it [09:05:16]SAM_PROTO_GetFieldsCounters [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 13 00 00 [09:05:16]Write to MH i2c: E2 08 00 9D 18 80 13 00 00 00 00 00 00 31 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 62 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 62 00 9D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 10 01 00 0E 04 04 00 C2 00 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 39 [09:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 10 01 00 0E 04 04 00 C2 00 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:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_GetFieldsCounters done [09:05:16]requested_item shift.num is exist - process it [09:05:16]requested_item shift.opened is exist - process it [09:05:16]req_shift_opened [09:05:16]FM_GetShiftState [09:05:16]SAM_PROTO_GetShiftState [09:05:16]wFMCommunicate request_size=4 [09:05:16]MH_SAM_APDU [09:05:16]CAPDU: 80 13 01 00 [09:05:16]Write to MH i2c: E2 08 00 9E 18 80 13 01 00 00 00 00 00 33 [09:05:16]Write i2c OK [09:05:16]MH_I2C_Read... [09:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:16]Read from MH i2c: E2 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0E 00 [09:05:16]MH_I2C_Read... [09:05:16]Read from MH i2c: E2 0E 00 9E 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5F [09:05:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:05:16]wFMCommunicate OK [09:05:16]SAM_PROTO_GetShiftState done [09:05:16]FM_GetShiftState done [09:05:16]req_shift_opened done [09:05:16]requested_item shift.open_date is exist - process it [09:05:16]req_shift_open_date [09:05:16]req_shift_open_date done [09:05:16]produce_requested_data done [09:05:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69686,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:05:16]process_action_free close_receipt [09:05:16]json_value_free [09:05:16]json_value_free done [09:05:16]process_json_proto returns [09:05:16]Send response to host [09:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69686,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:05:16]free response buf [09:05:16]execute_script done [09:05:16]execute_script returns [09:05:16]free content buf [09:05:16]Sock 9.Close socket [09:05:16]Sock 9.Thread stoped [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:19]accept exits with 8 [09:06:19]New connection [09:06:19]New thread 3067313508 created [09:06:19]Thread 3067456868 joined [09:06:19]Waiting for new connection... [09:06:19] Sock 8.Parse request [09:06:19]Sock 8.Check first char [09:06:19]Sock 8.First char is OK [09:06:19]request: POST /json_proto HTTP/1.0 [09:06:19]Method: POST [09:06:19]URL: /json_proto [09:06:19]Method is POST - this is cgi request [09:06:19]url: /json_proto [09:06:19]query_string will be loaded in cgi processing [09:06:19]execute_cgi json_proto POST (null) [09:06:19]execute_cgi path=json_proto method=POST [09:06:19]POST find Content-Length [09:06:19]Host: 172.17.50.3:8080 [09:06:19]Content-Length: 678 [09:06:19]Content-Type: application/json [09:06:19] [09:06:19]POST finish read [09:06:19]Found Content-Length = 678 [09:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885426", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]execute_script... [09:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885426", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]POST & json_proto [09:06:19]process_json_proto [09:06:19]json parsed OK: [09:06:19]protocol is kg_v1.0 [09:06:19]action value=close_receipt [09:06:19]process_action close_receipt [09:06:19]cmd_close_receipt [09:06:19]MH_GetDate [09:06:19]Write to MH i2c: F0 00 00 9F 18 A6 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 9F 18 00 8E 19 16 67 6B 98 1E 66 5A [09:06:19]GetLastDocTimeStamp 1729501515 [09:06:19]current date 1729501582 [09:06:19]FM_GetShiftState [09:06:19]SAM_PROTO_GetShiftState [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 13 01 00 [09:06:19]Write to MH i2c: E2 08 00 A0 18 80 13 01 00 00 00 00 00 35 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 A0 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 61 [09:06:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_GetShiftState done [09:06:19]FM_GetShiftState done [09:06:19]opened in 1729469703 [09:06:19]opened+sec_in_day 1729556103 [09:06:19]quantity*price = 50041 [09:06:19]sum+1 = 50042 [09:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 77 21.10.2024 09:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69687 ФПД: 102093672540735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69687&fm=102093672540735&tin=02508201610067®Number=0000000000156251&sum=50000 [09:06:21]StoreToDocumentArchive [09:06:21]shift 194 fd 69687 [09:06:21]save to /storage/0194/doc_00069687 [09:06:21]save last doc name /storage/0194/doc_00069687 to /storage/kkm_last_doc_name [09:06:21]save OK [09:06:21]Clear old archive folders... [09:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:21]tlvbuf is 00C50850 [09:06:21]SAM_PROTO_ClearQueue [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 09 00 00 [09:06:21]Write to MH i2c: E2 08 00 AD 18 80 09 00 00 00 00 00 00 37 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_ClearQueue done [09:06:21]KKMCreateOFDPacket [09:06:21]OFDProtocolAddRootSTLVToBuf [09:06:21]FM_MakeSignedData [09:06:21]FM_MakeSignedData [09:06:21]SAM_PROTO_SignData [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 01 02 [09:06:21]Write to MH i2c: E2 08 00 AE 18 80 0D 01 02 00 00 00 00 3F [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=255 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 8E 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 10 01 00 35 04 06 00 5C [09:06:21]Write to MH i2c: E2 02 01 AF 18 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 8E 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 10 01 00 35 04 06 00 5C 00 00 9F [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=10 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 02 02 05 DA 89 15 EA 3F [09:06:21]Write to MH i2c: E2 0D 00 B0 18 80 0D 02 02 05 00 DA 89 15 EA 3F 00 00 ED [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 03 02 [09:06:21]Write to MH i2c: E2 08 00 B1 18 80 0D 03 02 00 00 00 00 44 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0B 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0B 00 B1 18 00 DC B6 08 75 E0 EC AB E0 90 00 AB [09:06:21]RAPDU: DC B6 08 75 E0 EC AB E0 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_SignData done [09:06:21]FM_MakeSignedData done [09:06:21]CreateOFDProtocolMessage [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 11 00 00 [09:06:21]Write to MH i2c: E2 08 00 B2 18 80 11 00 00 00 00 00 00 44 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 B2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [09:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:21]wFMCommunicate OK [09:06:21]CreateOFDProtocolMessage done [09:06:21]OFDSenderStorePacket 69687 [09:06:21]StoreOFDPacket docnum=69687 [09:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 DA 07 01 94 2C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 8E 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 10 01 00 35 04 06 00 5C DA 89 15 EA 3F DC B6 08 75 E0 EC AB E0 [09:06:21]CheckFolder [09:06:21]dirname=/storage/ofd_packets [09:06:21]CheckFolder done [09:06:21]ProducePacketName [09:06:21]name=ofd_packets/00069687 [09:06:21]NVStorageSaveData ofd_packets/00069687 [09:06:21]File name is /storage/ofd_packets/00069687 [09:06:21]Write 301 bytes [09:06:21]NVStorageSaveData done [09:06:21]OFDSenderStorePacket done [09:06:21]KKMCreateOFDPacket done [09:06:21]NVStorageSaveData kkm_last_timestamp [09:06:21]File name is /storage/kkm_last_timestamp [09:06:21]Write 4 bytes [09:06:21]NVStorageSaveData done [09:06:21]ExternCall_PrintAddStr [09:06:21]wPrintStart [09:06:21]Write to MH i2c: 01 00 00 B3 18 CB [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 FF 0F E0 [09:06:21]RasterBufferAndPrint [09:06:21]line Счет N : (1)2885426 [09:06:21]line ИНН: 02508201610067 [09:06:21]line Контрольно-Кассовый Чек [09:06:21]line ПРОДАЖА [09:06:21]line ТРК (МРК, ГНК) : 42 [09:06:21]line Товар: 2710124130 [09:06:21]line Аи-92-К-5 [09:06:21]line 7.480 * 66.90 [09:06:21]line = 500.41 [09:06:21]line НДС 12% НСП 1% [09:06:21]line > о реализуемом товаре [09:06:21]line ОКРУГЛЕНИЕ: -0.41 [09:06:21]line ИТОГО: 500.00 [09:06:21]line Внесено: 500.00 [09:06:21]line СДАЧА: 0.00 [09:06:21]line НСП 1% : 4.43 [09:06:21]line НДС 12% : 53.14 [09:06:21]line Наличными: 500.00 [09:06:21]line Безнал.: 0.00 [09:06:21]line Место: АЗС № 85 "Партнер Нефть" [09:06:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:06:21]line СНО: Общий режим [09:06:21]line Чек 77 21.10.2024 09:06 [09:06:21]line Смена: 194 ФФД: 1.0 [09:06:21]line ЗНМ: 0300000167 [09:06:21]line РНМ: 0000000000156251 [09:06:21]line Версия ККМ: v1.0 [09:06:21]line ФМ: 0000000000963346 [09:06:21]line ФД: 69687 [09:06:21]line ФПД: 102093672540735 [09:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69687&fm=102093672540735&tin=02508201610067®Number=0000000000156251&sum=50000 [09:06:21]OFD Sender: Processing packet 69687 [packets to send 18, broken 17] [09:06:21]ProducePacketName [09:06:21]name=ofd_packets/00069687 [09:06:21]OFD Sender: To server: pG, [09:06:21]CommunicateWithHost lk.salyk.kg:30040 [09:06:21]ConnectInit lk.salyk.kg [09:06:21]written 0, free lines is 4095 [09:06:22]Connected sock=10 [09:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 DA 07 01 94 2C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 8E 19 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 10 01 00 35 04 06 00 5C DA 89 15 EA 3F DC B6 08 75 E0 EC AB E0 [09:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E2 73 47 00 18 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 10 01 00 F4 03 04 00 33 C3 15 67 B6 04 01 00 00 91 87 A3 23 D9 37 8F 82 [09:06:22]CommunicateWithHost err = 0 [09:06:22]CheckOFDResponse [09:06:22]1017 (14) - 77093643461234 [09:06:22]1041 (16) - 0000000000963346 [09:06:22]1040 (4) - 69687 [09:06:22]1012 (4) - 21.10.2024 02:57 [09:06:22]1206 (1) - 0 [09:06:22]OFD Sender: Remove packet 69687 [09:06:22]ProducePacketName [09:06:22]name=ofd_packets/00069687 [09:06:22]NVStorageDeleteData [09:06:22]Write to MH i2c: 01 00 00 DE 18 F6 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 DE 18 00 00 00 00 00 DD 0C E6 [09:06:22]RasterBufferAndPrint [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]written 0, free lines is 3302 [09:06:22]MH_Cut [09:06:22]Write to MH i2c: D1 01 00 E5 18 01 CF [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 01 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 01 00 E5 18 00 CE [09:06:22]Write to MH i2c: 01 00 00 E6 18 FE [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]OFD Sender: No OFD packet to send [09:06:23]*** Cut start [09:06:23]*** Partial cut [09:06:23]*** CUTSNS_PIN = 1 [09:06:23]*** CUTSNS_PIN = 0 [09:06:23]*** Brake cut motor [09:06:23]Read from MH i2c: 01 [09:06:23]MH_I2C_Read... [09:06:23]*** Stop cut motor [09:06:23]*** Cut end [09:06:23]Read from MH i2c: 01 07 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 FF 0F 13 [09:06:23]process_action close_receipt done [09:06:23]requested_data is exist [09:06:23]produce_requested_data [09:06:23]requested_item fm.sn is exist - process it [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 11 00 00 [09:06:23]Write to MH i2c: E2 08 00 E7 18 80 11 00 00 00 00 00 00 79 [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 17 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 17 00 E7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [09:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:23]wFMCommunicate OK [09:06:23]requested_item fd.num is exist - process it [09:06:23]SAM_PROTO_GetFieldsCounters [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 13 00 00 [09:06:23]Write to MH i2c: E2 08 00 E8 18 80 13 00 00 00 00 00 00 7C [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 62 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 62 00 E8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 10 01 00 0E 04 04 00 C2 00 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 88 [09:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 10 01 00 0E 04 04 00 C2 00 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:06:23]wFMCommunicate OK [09:06:23]SAM_PROTO_GetFieldsCounters done [09:06:23]requested_item shift.num is exist - process it [09:06:23]requested_item shift.opened is exist - process it [09:06:23]req_shift_opened [09:06:23]FM_GetShiftState [09:06:23]SAM_PROTO_GetShiftState [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 13 01 00 [09:06:23]Write to MH i2c: E2 08 00 E9 18 80 13 01 00 00 00 00 00 7E [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0E 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0E 00 E9 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AA [09:06:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:06:23]wFMCommunicate OK [09:06:23]SAM_PROTO_GetShiftState done [09:06:23]FM_GetShiftState done [09:06:23]req_shift_opened done [09:06:23]requested_item shift.open_date is exist - process it [09:06:23]req_shift_open_date [09:06:23]req_shift_open_date done [09:06:23]produce_requested_data done [09:06:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69687,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:06:23]process_action_free close_receipt [09:06:23]json_value_free [09:06:23]json_value_free done [09:06:23]process_json_proto returns [09:06:23]Send response to host [09:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69687,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:06:23]free response buf [09:06:23]execute_script done [09:06:23]execute_script returns [09:06:23]free content buf [09:06:23]Sock 8.Close socket [09:06:23]Sock 8.Thread stoped [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:04]accept exits with 9 [09:10:04]New connection [09:10:04]New thread 3067456868 created [09:10:04]Thread 3067313508 joined [09:10:04]Waiting for new connection... [09:10:04] Sock 9.Parse request [09:10:04]Sock 9.Check first char [09:10:04]Sock 9.First char is OK [09:10:04]request: POST /json_proto HTTP/1.0 [09:10:04]Method: POST [09:10:04]URL: /json_proto [09:10:04]Method is POST - this is cgi request [09:10:04]url: /json_proto [09:10:04]query_string will be loaded in cgi processing [09:10:04]execute_cgi json_proto POST (null) [09:10:04]execute_cgi path=json_proto method=POST [09:10:04]POST find Content-Length [09:10:04]Host: 172.17.50.3:8080 [09:10:04]Content-Length: 683 [09:10:04]Content-Type: application/json [09:10:04] [09:10:04]POST finish read [09:10:04]Found Content-Length = 683 [09:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885428", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:04]execute_script... [09:10: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)2885428", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:04]POST & json_proto [09:10:04]process_json_proto [09:10:04]json parsed OK: [09:10:04]protocol is kg_v1.0 [09:10:04]action value=close_receipt [09:10:04]process_action close_receipt [09:10:04]cmd_close_receipt [09:10:04]MH_GetDate [09:10:04]Write to MH i2c: F0 00 00 EA 18 F1 [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 09 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 09 00 EA 18 00 6F 1A 16 67 6B 98 1E 66 87 [09:10:04]GetLastDocTimeStamp 1729501582 [09:10:04]current date 1729501807 [09:10:04]FM_GetShiftState [09:10:04]SAM_PROTO_GetShiftState [09:10:04]wFMCommunicate request_size=4 [09:10:04]MH_SAM_APDU [09:10:04]CAPDU: 80 13 01 00 [09:10:04]Write to MH i2c: E2 08 00 EB 18 80 13 01 00 00 00 00 00 80 [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:04]Read from MH i2c: E2 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 0E 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 0E 00 EB 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AC [09:10:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:10:04]wFMCommunicate OK [09:10:04]SAM_PROTO_GetShiftState done [09:10:04]FM_GetShiftState done [09:10:04]opened in 1729469703 [09:10:04]opened+sec_in_day 1729556103 [09:10:04]quantity*price = 100015 [09:10:04]sum+1 = 100017 [09:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 78 21.10.2024 09:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69688 ФПД: 70067122641330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69688&fm=70067122641330&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:05]StoreToDocumentArchive [09:10:05]shift 194 fd 69688 [09:10:05]save to /storage/0194/doc_00069688 [09:10:05]save last doc name /storage/0194/doc_00069688 to /storage/kkm_last_doc_name [09:10:05]save OK [09:10:05]Clear old archive folders... [09:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:05]tlvbuf is B6F3C440 [09:10:05]SAM_PROTO_ClearQueue [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 09 00 00 [09:10:05]Write to MH i2c: E2 08 00 F8 18 80 09 00 00 00 00 00 00 82 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_ClearQueue done [09:10:05]KKMCreateOFDPacket [09:10:05]OFDProtocolAddRootSTLVToBuf [09:10:05]FM_MakeSignedData [09:10:05]FM_MakeSignedData [09:10:05]SAM_PROTO_SignData [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 0D 01 02 [09:10:05]Write to MH i2c: E2 08 00 F9 18 80 0D 01 02 00 00 00 00 8A [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]wFMCommunicate request_size=255 [09:10:05]MH_SAM_APDU [09:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6F 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 10 01 00 35 04 06 00 3F [09:10:05]Write to MH i2c: E2 02 01 FA 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6F 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 10 01 00 35 04 06 00 3F 00 00 AB [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]wFMCommunicate request_size=10 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 0D 02 02 05 B9 C5 F4 99 B2 [09:10:05]Write to MH i2c: E2 0D 00 FB 18 80 0D 02 02 05 00 B9 C5 F4 99 B2 00 00 54 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [09:10:05]RAPDU: 90 00 [09:10:05]wFMCommunicate OK [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 0D 03 02 [09:10:05]Write to MH i2c: E2 08 00 FC 18 80 0D 03 02 00 00 00 00 8F [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0B 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0B 00 FC 18 00 C2 17 A2 48 0A 3A 77 5B 90 00 69 [09:10:05]RAPDU: C2 17 A2 48 0A 3A 77 5B 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_SignData done [09:10:05]FM_MakeSignedData done [09:10:05]CreateOFDProtocolMessage [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 11 00 00 [09:10:05]Write to MH i2c: E2 08 00 FD 18 80 11 00 00 00 00 00 00 8F [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 FD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [09:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:06]wFMCommunicate OK [09:10:06]CreateOFDProtocolMessage done [09:10:06]OFDSenderStorePacket 69688 [09:10:06]StoreOFDPacket docnum=69688 [09:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 82 BC 07 01 F2 2A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6F 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 10 01 00 35 04 06 00 3F B9 C5 F4 99 B2 C2 17 A2 48 0A 3A 77 5B [09:10:06]CheckFolder [09:10:06]dirname=/storage/ofd_packets [09:10:06]CheckFolder done [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00069688 [09:10:06]NVStorageSaveData ofd_packets/00069688 [09:10:06]File name is /storage/ofd_packets/00069688 [09:10:06]Write 301 bytes [09:10:06]NVStorageSaveData done [09:10:06]OFDSenderStorePacket done [09:10:06]KKMCreateOFDPacket done [09:10:06]NVStorageSaveData kkm_last_timestamp [09:10:06]File name is /storage/kkm_last_timestamp [09:10:06]Write 4 bytes [09:10:06]NVStorageSaveData done [09:10:06]ExternCall_PrintAddStr [09:10:06]wPrintStart [09:10:06]Write to MH i2c: 01 00 00 FE 18 16 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 FF 0F 2B [09:10:06]RasterBufferAndPrint [09:10:06]line Счет N : (1)2885428 [09:10:06]line ИНН: 02508201610067 [09:10:06]line Контрольно-Кассовый Чек [09:10:06]line ПРОДАЖА [09:10:06]line ТРК (МРК, ГНК) : 42 [09:10:06]line Товар: 2710124130 [09:10:06]line Аи-92-К-5 [09:10:06]line 14.950 * 66.90 [09:10:06]line = 1000.16 [09:10:06]line НДС 12% НСП 1% [09:10:06]line > о реализуемом товаре [09:10:06]line ОКРУГЛЕНИЕ: -0.16 [09:10:06]line ИТОГО: 1000.00 [09:10:06]line Внесено: 1000.00 [09:10:06]line СДАЧА: 0.00 [09:10:06]line НСП 1% : 8.85 [09:10:06]line НДС 12% : 106.21 [09:10:06]line Наличными: 1000.00 [09:10:06]line Безнал.: 0.00 [09:10:06]line Место: АЗС № 85 "Партнер Нефть" [09:10:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:10:06]line СНО: Общий режим [09:10:06]line Чек 78 21.10.2024 09:10 [09:10:06]line Смена: 194 ФФД: 1.0 [09:10:06]line ЗНМ: 0300000167 [09:10:06]line РНМ: 0000000000156251 [09:10:06]line Версия ККМ: v1.0 [09:10:06]line ФМ: 0000000000963346 [09:10:06]line ФД: 69688 [09:10:06]line ФПД: 70067122641330 [09:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69688&fm=70067122641330&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:06]OFD Sender: Processing packet 69688 [packets to send 18, broken 17] [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00069688 [09:10:06]OFD Sender: To server: pG, [09:10:06]CommunicateWithHost lk.salyk.kg:30040 [09:10:06]ConnectInit lk.salyk.kg [09:10:06]written 0, free lines is 4095 [09:10:06]Connected sock=10 [09:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 82 BC 07 01 F2 2A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6F 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 10 01 00 35 04 06 00 3F B9 C5 F4 99 B2 C2 17 A2 48 0A 3A 77 5B [09:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9D 1D 47 00 45 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 10 01 00 F4 03 04 00 13 C4 15 67 B6 04 01 00 00 B2 F3 CF 80 D1 83 00 6E [09:10:06]CommunicateWithHost err = 0 [09:10:06]CheckOFDResponse [09:10:06]1017 (14) - 77093643461234 [09:10:06]1041 (16) - 0000000000963346 [09:10:06]1040 (4) - 69688 [09:10:06]1012 (4) - 21.10.2024 03:01 [09:10:06]1206 (1) - 0 [09:10:06]OFD Sender: Remove packet 69688 [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00069688 [09:10:06]NVStorageDeleteData [09:10:06]Write to MH i2c: 01 00 00 29 19 42 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 29 19 00 00 00 00 00 E4 0C 39 [09:10:06]RasterBufferAndPrint [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]line [09:10:06]written 0, free lines is 3306 [09:10:06]MH_Cut [09:10:06]Write to MH i2c: D1 01 00 30 19 01 1B [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 01 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: D1 01 00 30 19 00 1A [09:10:06]Write to MH i2c: 01 00 00 31 19 4A [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:07]OFD Sender: No OFD packet to send [09:10:07]*** Cut start [09:10:07]*** Partial cut [09:10:07]*** CUTSNS_PIN = 1 [09:10:07]*** CUTSNS_PIN = 0 [09:10:07]*** Brake cut motor [09:10:08]Read from MH i2c: 01 [09:10:08]MH_I2C_Read... [09:10:08]*** Stop cut motor [09:10:08]*** Cut end [09:10:08]Read from MH i2c: 01 07 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [09:10:08]process_action close_receipt done [09:10:08]requested_data is exist [09:10:08]produce_requested_data [09:10:08]requested_item fm.sn is exist - process it [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 11 00 00 [09:10:08]Write to MH i2c: E2 08 00 32 19 80 11 00 00 00 00 00 00 C5 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 32 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [09:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:08]wFMCommunicate OK [09:10:08]requested_item fd.num is exist - process it [09:10:08]SAM_PROTO_GetFieldsCounters [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 13 00 00 [09:10:08]Write to MH i2c: E2 08 00 33 19 80 13 00 00 00 00 00 00 C8 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 62 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 62 00 33 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 10 01 00 0E 04 04 00 C2 00 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 D8 [09:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 10 01 00 0E 04 04 00 C2 00 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:10:08]wFMCommunicate OK [09:10:08]SAM_PROTO_GetFieldsCounters done [09:10:08]requested_item shift.num is exist - process it [09:10:08]requested_item shift.opened is exist - process it [09:10:08]req_shift_opened [09:10:08]FM_GetShiftState [09:10:08]SAM_PROTO_GetShiftState [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 13 01 00 [09:10:08]Write to MH i2c: E2 08 00 34 19 80 13 01 00 00 00 00 00 CA [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 0E 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 0E 00 34 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F6 [09:10:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:10:08]wFMCommunicate OK [09:10:08]SAM_PROTO_GetShiftState done [09:10:08]FM_GetShiftState done [09:10:08]req_shift_opened done [09:10:08]requested_item shift.open_date is exist - process it [09:10:08]req_shift_open_date [09:10:08]req_shift_open_date done [09:10:08]produce_requested_data done [09:10:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69688,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:10:08]process_action_free close_receipt [09:10:08]json_value_free [09:10:08]json_value_free done [09:10:08]process_json_proto returns [09:10:08]Send response to host [09:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69688,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:10:08]free response buf [09:10:08]execute_script done [09:10:08]execute_script returns [09:10:08]free content buf [09:10:08]Sock 9.Close socket [09:10:08]Sock 9.Thread stoped [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:24]accept exits with 8 [09:10:24]New connection [09:10:24]New thread 3067313508 created [09:10:24]Thread 3067456868 joined [09:10:24]Waiting for new connection... [09:10:24] Sock 8.Parse request [09:10:24]Sock 8.Check first char [09:10:24]Sock 8.First char is OK [09:10:24]request: POST /json_proto HTTP/1.0 [09:10:24]Method: POST [09:10:24]URL: /json_proto [09:10:24]Method is POST - this is cgi request [09:10:24]url: /json_proto [09:10:24]query_string will be loaded in cgi processing [09:10:24]execute_cgi json_proto POST (null) [09:10:24]execute_cgi path=json_proto method=POST [09:10:24]POST find Content-Length [09:10:24]Host: 172.17.50.3:8080 [09:10:24]Content-Length: 686 [09:10:24]Content-Type: application/json [09:10:24] [09:10:24]POST finish read [09:10:24]Found Content-Length = 686 [09:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:24]execute_script... [09:10: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)2885427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:24]POST & json_proto [09:10:24]process_json_proto [09:10:24]json parsed OK: [09:10:24]protocol is kg_v1.0 [09:10:24]action value=close_receipt [09:10:24]process_action close_receipt [09:10:24]cmd_close_receipt [09:10:24]MH_GetDate [09:10:24]Write to MH i2c: F0 00 00 35 19 3D [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: F0 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: F0 09 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: F0 09 00 35 19 00 83 1A 16 67 6B 98 1E 66 E7 [09:10:24]GetLastDocTimeStamp 1729501807 [09:10:24]current date 1729501827 [09:10:24]FM_GetShiftState [09:10:24]SAM_PROTO_GetShiftState [09:10:24]wFMCommunicate request_size=4 [09:10:24]MH_SAM_APDU [09:10:24]CAPDU: 80 13 01 00 [09:10:24]Write to MH i2c: E2 08 00 36 19 80 13 01 00 00 00 00 00 CC [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:24]Read from MH i2c: E2 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: E2 0E 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: E2 0E 00 36 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F8 [09:10:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:10:24]wFMCommunicate OK [09:10:24]SAM_PROTO_GetShiftState done [09:10:24]FM_GetShiftState done [09:10:24]opened in 1729469703 [09:10:24]opened+sec_in_day 1729556103 [09:10:24]quantity*price = 100011 [09:10:24]sum+1 = 100013 [09:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 79 21.10.2024 09:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69689 ФПД: 239922160473415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091027&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69689&fm=239922160473415&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:26]StoreToDocumentArchive [09:10:26]shift 194 fd 69689 [09:10:26]save to /storage/0194/doc_00069689 [09:10:26]save last doc name /storage/0194/doc_00069689 to /storage/kkm_last_doc_name [09:10:26]save OK [09:10:26]Clear old archive folders... [09:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:10:26]tlvbuf is B6F555F0 [09:10:26]SAM_PROTO_ClearQueue [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 09 00 00 [09:10:26]Write to MH i2c: E2 08 00 43 19 80 09 00 00 00 00 00 00 CE [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [09:10:26]RAPDU: 90 00 [09:10:26]wFMCommunicate OK [09:10:26]SAM_PROTO_ClearQueue done [09:10:26]KKMCreateOFDPacket [09:10:26]OFDProtocolAddRootSTLVToBuf [09:10:26]FM_MakeSignedData [09:10:26]FM_MakeSignedData [09:10:26]SAM_PROTO_SignData [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 0D 01 02 [09:10:26]Write to MH i2c: E2 08 00 44 19 80 0D 01 02 00 00 00 00 D6 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [09:10:26]RAPDU: 90 00 [09:10:26]wFMCommunicate OK [09:10:26]wFMCommunicate request_size=255 [09:10:26]MH_SAM_APDU [09:10: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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 10 01 00 35 04 06 00 DA 35 [09:10:26]Write to MH i2c: E2 02 01 45 19 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 10 01 00 35 04 06 00 DA 35 00 00 BE [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [09:10:26]RAPDU: 90 00 [09:10:26]wFMCommunicate OK [09:10:26]wFMCommunicate request_size=9 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 0D 02 02 04 3B 26 15 47 [09:10:26]Write to MH i2c: E2 0C 00 46 19 80 0D 02 02 04 00 3B 26 15 47 00 00 9E [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [09:10:26]RAPDU: 90 00 [09:10:26]wFMCommunicate OK [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 0D 03 02 [09:10:26]Write to MH i2c: E2 08 00 47 19 80 0D 03 02 00 00 00 00 DB [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 0B 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 0B 00 47 19 00 96 D0 47 85 96 AB 85 98 90 00 6C [09:10:26]RAPDU: 96 D0 47 85 96 AB 85 98 90 00 [09:10:26]wFMCommunicate OK [09:10:26]SAM_PROTO_SignData done [09:10:26]FM_MakeSignedData done [09:10:26]CreateOFDProtocolMessage [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 11 00 00 [09:10:26]Write to MH i2c: E2 08 00 48 19 80 11 00 00 00 00 00 00 DB [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 17 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 17 00 48 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [09:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:26]wFMCommunicate OK [09:10:26]CreateOFDProtocolMessage done [09:10:26]OFDSenderStorePacket 69689 [09:10:26]StoreOFDPacket docnum=69689 [09:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D3 FB 06 01 EE 6E 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 10 01 00 35 04 06 00 DA 35 3B 26 15 47 96 D0 47 85 96 AB 85 98 [09:10:26]CheckFolder [09:10:26]dirname=/storage/ofd_packets [09:10:26]CheckFolder done [09:10:26]ProducePacketName [09:10:26]name=ofd_packets/00069689 [09:10:26]NVStorageSaveData ofd_packets/00069689 [09:10:26]File name is /storage/ofd_packets/00069689 [09:10:26]Write 300 bytes [09:10:26]NVStorageSaveData done [09:10:26]OFDSenderStorePacket done [09:10:26]KKMCreateOFDPacket done [09:10:26]NVStorageSaveData kkm_last_timestamp [09:10:26]File name is /storage/kkm_last_timestamp [09:10:26]Write 4 bytes [09:10:26]NVStorageSaveData done [09:10:26]ExternCall_PrintAddStr [09:10:26]wPrintStart [09:10:26]Write to MH i2c: 01 00 00 49 19 62 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: 01 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: 01 07 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [09:10:26]RasterBufferAndPrint [09:10:26]line Счет N : (1)2885427 [09:10:26]line ИНН: 02508201610067 [09:10:26]line Контрольно-Кассовый Чек [09:10:26]line ПРОДАЖА [09:10:26]line ТРК (МРК, ГНК) : 71 [09:10:26]line Товар: 2711129700 [09:10:26]line ГАЗ-К-3 [09:10:26]line 25.710 * 38.90 [09:10:26]line = 1000.12 [09:10:26]line НДС 12% НСП 1% [09:10:26]line > о реализуемом товаре [09:10:26]line ОКРУГЛЕНИЕ: -0.12 [09:10:26]line ИТОГО: 1000.00 [09:10:26]line Внесено: 1000.00 [09:10:26]line СДАЧА: 0.00 [09:10:26]line НСП 1% : 8.85 [09:10:26]line НДС 12% : 106.21 [09:10:26]line Наличными: 1000.00 [09:10:26]line Безнал.: 0.00 [09:10:26]line Место: АЗС № 85 "Партнер Нефть" [09:10:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:10:26]line СНО: Общий режим [09:10:26]line Чек 79 21.10.2024 09:10 [09:10:26]line Смена: 194 ФФД: 1.0 [09:10:26]line ЗНМ: 0300000167 [09:10:26]line РНМ: 0000000000156251 [09:10:26]line Версия ККМ: v1.0 [09:10:26]line ФМ: 0000000000963346 [09:10:26]line ФД: 69689 [09:10:26]line ФПД: 239922160473415 [09:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091027&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69689&fm=239922160473415&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:26]OFD Sender: Processing packet 69689 [packets to send 18, broken 17] [09:10:26]ProducePacketName [09:10:26]name=ofd_packets/00069689 [09:10:26]OFD Sender: To server: pG, [09:10:26]CommunicateWithHost lk.salyk.kg:30040 [09:10:26]ConnectInit lk.salyk.kg [09:10:26]written 0, free lines is 4095 [09:10:27]Connected sock=10 [09:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D3 FB 06 01 EE 6E 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 83 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 10 01 00 35 04 06 00 DA 35 3B 26 15 47 96 D0 47 85 96 AB 85 98 [09:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CB AA 47 00 7C 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 39 36 33 33 34 36 10 04 04 00 39 10 01 00 F4 03 04 00 28 C4 15 67 B6 04 01 00 00 B8 D3 04 79 7A B9 0F FE [09:10:27]CommunicateWithHost err = 0 [09:10:27]CheckOFDResponse [09:10:27]1017 (14) - 77093643461234 [09:10:27]1041 (16) - 0000000000963346 [09:10:27]1040 (4) - 69689 [09:10:27]1012 (4) - 21.10.2024 03:02 [09:10:27]1206 (1) - 0 [09:10:27]OFD Sender: Remove packet 69689 [09:10:27]ProducePacketName [09:10:27]name=ofd_packets/00069689 [09:10:27]NVStorageDeleteData [09:10:27]Write to MH i2c: 01 00 00 74 19 8D [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 74 19 00 00 00 00 00 EA 0C 8A [09:10:27]RasterBufferAndPrint [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]written 0, free lines is 3312 [09:10:27]MH_Cut [09:10:27]Write to MH i2c: D1 01 00 7B 19 01 66 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 01 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 01 00 7B 19 00 65 [09:10:27]Write to MH i2c: 01 00 00 7C 19 95 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]OFD Sender: No OFD packet to send [09:10:28]*** Cut start [09:10:28]*** Partial cut [09:10:28]*** CUTSNS_PIN = 1 [09:10:28]*** CUTSNS_PIN = 0 [09:10:28]*** Brake cut motor [09:10:28]Read from MH i2c: 01 [09:10:28]MH_I2C_Read... [09:10:28]*** Stop cut motor [09:10:28]*** Cut end [09:10:28]Read from MH i2c: 01 07 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 7C 19 00 00 00 00 00 FF 0F AA [09:10:28]process_action close_receipt done [09:10:28]requested_data is exist [09:10:28]produce_requested_data [09:10:28]requested_item fm.sn is exist - process it [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 11 00 00 [09:10:28]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [09:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:28]wFMCommunicate OK [09:10:28]requested_item fd.num is exist - process it [09:10:28]SAM_PROTO_GetFieldsCounters [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 13 00 00 [09:10:28]Write to MH i2c: E2 08 00 7E 19 80 13 00 00 00 00 00 00 13 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 62 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 62 00 7E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 10 01 00 0E 04 04 00 C2 00 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 27 [09:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 10 01 00 0E 04 04 00 C2 00 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:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_GetFieldsCounters done [09:10:28]requested_item shift.num is exist - process it [09:10:28]requested_item shift.opened is exist - process it [09:10:28]req_shift_opened [09:10:28]FM_GetShiftState [09:10:28]SAM_PROTO_GetShiftState [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 13 01 00 [09:10:28]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 41 [09:10:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_GetShiftState done [09:10:28]FM_GetShiftState done [09:10:28]req_shift_opened done [09:10:28]requested_item shift.open_date is exist - process it [09:10:28]req_shift_open_date [09:10:28]req_shift_open_date done [09:10:28]produce_requested_data done [09:10:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69689,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:10:28]process_action_free close_receipt [09:10:28]json_value_free [09:10:28]json_value_free done [09:10:28]process_json_proto returns [09:10:28]Send response to host [09:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69689,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:10:28]free response buf [09:10:28]execute_script done [09:10:28]execute_script returns [09:10:28]free content buf [09:10:28]Sock 8.Close socket [09:10:28]Sock 8.Thread stoped [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:51]accept exits with 9 [09:11:51]New connection [09:11:51]New thread 3067456868 created [09:11:51]Thread 3067313508 joined [09:11:51]Waiting for new connection... [09:11:51] Sock 9.Parse request [09:11:51]Sock 9.Check first char [09:11:51]Sock 9.First char is OK [09:11:51]request: POST /json_proto HTTP/1.0 [09:11:51]Method: POST [09:11:51]URL: /json_proto [09:11:51]Method is POST - this is cgi request [09:11:51]url: /json_proto [09:11:51]query_string will be loaded in cgi processing [09:11:51]execute_cgi json_proto POST (null) [09:11:51]execute_cgi path=json_proto method=POST [09:11:51]POST find Content-Length [09:11:51]Host: 172.17.50.3:8080 [09:11:51]Content-Length: 754 [09:11:51]Content-Type: application/json [09:11:51] [09:11:51]POST finish read [09:11:51]Found Content-Length = 754 [09:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885429", "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" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:51]execute_script... [09:11: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)2885429", "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" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:51]POST & json_proto [09:11:51]process_json_proto [09:11:51]json parsed OK: [09:11:51]protocol is kg_v1.0 [09:11:51]action value=close_receipt [09:11:51]process_action close_receipt [09:11:51]cmd_close_receipt [09:11:51]MH_GetDate [09:11:51]Write to MH i2c: F0 00 00 80 19 88 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: F0 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: F0 09 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: F0 09 00 80 19 00 DA 1A 16 67 6B 98 1E 66 89 [09:11:51]GetLastDocTimeStamp 1729501827 [09:11:51]current date 1729501914 [09:11:51]FM_GetShiftState [09:11:51]SAM_PROTO_GetShiftState [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 13 01 00 [09:11:51]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 43 [09:11:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_GetShiftState done [09:11:51]FM_GetShiftState done [09:11:51]opened in 1729469703 [09:11:51]opened+sec_in_day 1729556103 [09:11:51]quantity*price = 0 [09:11:51]sum+1 = 1 [09:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 80 21.10.2024 09:11 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69690 ФПД: 238146212401417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69690&fm=238146212401417&tin=02508201610067®Number=0000000000156251&sum=0 [09:11:52]StoreToDocumentArchive [09:11:52]shift 194 fd 69690 [09:11:52]save to /storage/0194/doc_00069690 [09:11:52]save last doc name /storage/0194/doc_00069690 to /storage/kkm_last_doc_name [09:11:52]save OK [09:11:52]Clear old archive folders... [09:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:52]tlvbuf is 00CAEFD0 [09:11:52]SAM_PROTO_ClearQueue [09:11:52]wFMCommunicate request_size=4 [09:11:52]MH_SAM_APDU [09:11:52]CAPDU: 80 09 00 00 [09:11:52]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [09:11:52]Write i2c OK [09:11:52]MH_I2C_Read... [09:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:52]Read from MH i2c: E2 [09:11:52]MH_I2C_Read... [09:11:52]Read from MH i2c: E2 03 00 [09:11:52]MH_I2C_Read... [09:11:52]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [09:11:52]RAPDU: 90 00 [09:11:52]wFMCommunicate OK [09:11:52]SAM_PROTO_ClearQueue done [09:11:52]KKMCreateOFDPacket [09:11:52]OFDProtocolAddRootSTLVToBuf [09:11:52]FM_MakeSignedData [09:11:52]FM_MakeSignedData [09:11:52]SAM_PROTO_SignData [09:11:52]wFMCommunicate request_size=4 [09:11:52]MH_SAM_APDU [09:11:52]CAPDU: 80 0D 01 02 [09:11:52]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [09:11:52]Write i2c OK [09:11:52]MH_I2C_Read... [09:11:52]OFD Sender: No OFD packet to send [09:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:52]Read from MH i2c: E2 [09:11:52]MH_I2C_Read... [09:11:52]Read from MH i2c: E2 03 00 [09:11:52]MH_I2C_Read... [09:11:52]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [09:11:52]RAPDU: 90 00 [09:11:52]wFMCommunicate OK [09:11:52]wFMCommunicate request_size=255 [09:11:52]MH_SAM_APDU [09:11:52]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 58 1B 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 50 00 00 00 F4 03 04 00 DA 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 10 01 00 35 04 06 00 D8 [09:11:52]Write to MH i2c: E2 02 01 90 19 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 58 1B 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 50 00 00 00 F4 03 04 00 DA 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 10 01 00 35 04 06 00 D8 00 00 3E [09:11:52]Write i2c OK [09:11:52]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 03 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [09:11:53]RAPDU: 90 00 [09:11:53]wFMCommunicate OK [09:11:53]wFMCommunicate request_size=10 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 0D 02 02 05 97 BC 65 11 09 [09:11:53]Write to MH i2c: E2 0D 00 91 19 80 0D 02 02 05 00 97 BC 65 11 09 00 00 00 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 03 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [09:11:53]RAPDU: 90 00 [09:11:53]wFMCommunicate OK [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 0D 03 02 [09:11:53]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0B 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0B 00 92 19 00 8F 3E 0A 1B DE 28 37 13 90 00 69 [09:11:53]RAPDU: 8F 3E 0A 1B DE 28 37 13 90 00 [09:11:53]wFMCommunicate OK [09:11:53]SAM_PROTO_SignData done [09:11:53]FM_MakeSignedData done [09:11:53]CreateOFDProtocolMessage [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 11 00 00 [09:11:53]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 17 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [09:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:11:53]wFMCommunicate OK [09:11:53]CreateOFDProtocolMessage done [09:11:53]OFDSenderStorePacket 69690 [09:11:53]StoreOFDPacket docnum=69690 [09:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 4E 07 01 B1 0A 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 58 1B 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 50 00 00 00 F4 03 04 00 DA 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 10 01 00 35 04 06 00 D8 97 BC 65 11 09 8F 3E 0A 1B DE 28 37 13 [09:11:53]CheckFolder [09:11:53]dirname=/storage/ofd_packets [09:11:53]CheckFolder done [09:11:53]ProducePacketName [09:11:53]name=ofd_packets/00069690 [09:11:53]NVStorageSaveData ofd_packets/00069690 [09:11:53]File name is /storage/ofd_packets/00069690 [09:11:53]Write 301 bytes [09:11:53]NVStorageSaveData done [09:11:53]OFDSenderStorePacket done [09:11:53]KKMCreateOFDPacket done [09:11:53]NVStorageSaveData kkm_last_timestamp [09:11:53]File name is /storage/kkm_last_timestamp [09:11:53]Write 4 bytes [09:11:53]NVStorageSaveData done [09:11:53]ExternCall_PrintAddStr [09:11:53]wPrintStart [09:11:53]Write to MH i2c: 01 00 00 94 19 AD [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: 01 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: 01 07 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [09:11:53]RasterBufferAndPrint [09:11:53]line Счет N : (1)2885429 [09:11:53]line ИНН: 02508201610067 [09:11:53]line Контрольно-Кассовый Чек [09:11:53]line ПРОДАЖА [09:11:53]line ТРК (МРК, ГНК) : 42 [09:11:53]line Товар: 2710124130 [09:11:53]line Аи-92-К-5 [09:11:53]line 7.000 * 0.00 [09:11:53]line = 0.00 [09:11:53]line НДС 12% НСП 1% [09:11:53]line > о реализуемом товаре [09:11:53]line ИТОГО: 0.00 [09:11:53]line НСП 1% : 0.00 [09:11:53]line НДС 12% : 0.00 [09:11:53]line Наличными: 0.00 [09:11:53]line Безнал.: 0.00 [09:11:53]line Место: АЗС № 85 "Партнер Нефть" [09:11:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:11:53]line СНО: Общий режим [09:11:53]line Чек 80 21.10.2024 09:11 [09:11:53]line Смена: 194 ФФД: 1.0 [09:11:53]line ЗНМ: 0300000167 [09:11:53]line РНМ: 0000000000156251 [09:11:53]line Версия ККМ: v1.0 [09:11:53]line Талоны: ТК ГПНА Online [09:11:53]line 30100970 [09:11:53]line ФМ: 0000000000963346 [09:11:53]line ФД: 69690 [09:11:53]line ФПД: 238146212401417 [09:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69690&fm=238146212401417&tin=02508201610067®Number=0000000000156251&sum=0 [09:11:53]OFD Sender: Processing packet 69690 [packets to send 18, broken 17] [09:11:53]ProducePacketName [09:11:53]name=ofd_packets/00069690 [09:11:53]OFD Sender: To server: pG, [09:11:53]CommunicateWithHost lk.salyk.kg:30040 [09:11:53]ConnectInit lk.salyk.kg [09:11:53]written 0, free lines is 4095 [09:11:53]Connected sock=10 [09:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 4E 07 01 B1 0A 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 58 1B 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 50 00 00 00 F4 03 04 00 DA 1A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 10 01 00 35 04 06 00 D8 97 BC 65 11 09 8F 3E 0A 1B DE 28 37 13 [09:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4E 7F 47 00 54 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 10 01 00 F4 03 04 00 7E C4 15 67 B6 04 01 00 00 2A 12 05 F2 C8 90 44 59 [09:11:54]CommunicateWithHost err = 0 [09:11:54]CheckOFDResponse [09:11:54]1017 (14) - 77093643461234 [09:11:54]1041 (16) - 0000000000963346 [09:11:54]1040 (4) - 69690 [09:11:54]1012 (4) - 21.10.2024 03:03 [09:11:54]1206 (1) - 0 [09:11:54]OFD Sender: Remove packet 69690 [09:11:54]ProducePacketName [09:11:54]name=ofd_packets/00069690 [09:11:54]NVStorageDeleteData [09:11:54]Write to MH i2c: 01 00 00 BE 19 D7 [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 BE 19 00 00 00 00 00 02 0D ED [09:11:54]RasterBufferAndPrint [09:11:54]line [09:11:54]line [09:11:54]line [09:11:54]line [09:11:54]line [09:11:54]written 0, free lines is 3336 [09:11:54]MH_Cut [09:11:54]Write to MH i2c: D1 01 00 C5 19 01 B0 [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D1 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D1 01 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D1 01 00 C5 19 00 AF [09:11:54]Write to MH i2c: 01 00 00 C6 19 DF [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]OFD Sender: No OFD packet to send [09:11:54]*** Cut start [09:11:54]*** Partial cut [09:11:54]*** CUTSNS_PIN = 1 [09:11:54]*** CUTSNS_PIN = 0 [09:11:55]*** Brake cut motor [09:11:55]Read from MH i2c: 01 [09:11:55]MH_I2C_Read... [09:11:55]*** Stop cut motor [09:11:55]*** Cut end [09:11:55]Read from MH i2c: 01 07 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: 01 07 00 C6 19 00 00 00 00 00 FF 0F F4 [09:11:55]process_action close_receipt done [09:11:55]requested_data is exist [09:11:55]produce_requested_data [09:11:55]requested_item fm.sn is exist - process it [09:11:55]wFMCommunicate request_size=4 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 11 00 00 [09:11:55]Write to MH i2c: E2 08 00 C7 19 80 11 00 00 00 00 00 00 5A [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 17 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 17 00 C7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [09:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:11:55]wFMCommunicate OK [09:11:55]requested_item fd.num is exist - process it [09:11:55]SAM_PROTO_GetFieldsCounters [09:11:55]wFMCommunicate request_size=4 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 13 00 00 [09:11:55]Write to MH i2c: E2 08 00 C8 19 80 13 00 00 00 00 00 00 5D [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 62 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 62 00 C8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 10 01 00 0E 04 04 00 C2 00 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 75 [09:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 10 01 00 0E 04 04 00 C2 00 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:11:55]wFMCommunicate OK [09:11:55]SAM_PROTO_GetFieldsCounters done [09:11:55]requested_item shift.num is exist - process it [09:11:55]requested_item shift.opened is exist - process it [09:11:55]req_shift_opened [09:11:55]FM_GetShiftState [09:11:55]SAM_PROTO_GetShiftState [09:11:55]wFMCommunicate request_size=4 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 13 01 00 [09:11:55]Write to MH i2c: E2 08 00 C9 19 80 13 01 00 00 00 00 00 5F [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 0E 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 0E 00 C9 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [09:11:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:11:55]wFMCommunicate OK [09:11:55]SAM_PROTO_GetShiftState done [09:11:55]FM_GetShiftState done [09:11:55]req_shift_opened done [09:11:55]requested_item shift.open_date is exist - process it [09:11:55]req_shift_open_date [09:11:55]req_shift_open_date done [09:11:55]produce_requested_data done [09:11:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69690,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:11:55]process_action_free close_receipt [09:11:55]json_value_free [09:11:55]json_value_free done [09:11:55]process_json_proto returns [09:11:55]Send response to host [09:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69690,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:11:55]free response buf [09:11:55]execute_script done [09:11:55]execute_script returns [09:11:55]free content buf [09:11:55]Sock 9.Close socket [09:11:55]Sock 9.Thread stoped [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]accept exits with 8 [09:16:54]New connection [09:16:54]New thread 3067313508 created [09:16:54]Thread 3067456868 joined [09:16:54]Waiting for new connection... [09:16:54] Sock 8.Parse request [09:16:54]Sock 8.Check first char [09:16:54]Sock 8.First char is OK [09:16:54]request: POST /json_proto HTTP/1.0 [09:16:54]Method: POST [09:16:54]URL: /json_proto [09:16:54]Method is POST - this is cgi request [09:16:54]url: /json_proto [09:16:54]query_string will be loaded in cgi processing [09:16:54]execute_cgi json_proto POST (null) [09:16:54]execute_cgi path=json_proto method=POST [09:16:54]POST find Content-Length [09:16:54]Host: 172.17.50.3:8080 [09:16:54]Content-Length: 793 [09:16:54]Content-Type: application/json [09:16:54] [09:16:54]POST finish read [09:16:54]Found Content-Length = 793 [09:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885430", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68922", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:54]execute_script... [09:16: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)2885430", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68922", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:54]POST & json_proto [09:16:54]process_json_proto [09:16:54]json parsed OK: [09:16:54]protocol is kg_v1.0 [09:16:54]action value=close_receipt [09:16:54]process_action close_receipt [09:16:54]cmd_close_receipt [09:16:54]MH_GetDate [09:16:54]Write to MH i2c: F0 00 00 CA 19 D2 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: F0 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: F0 09 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: F0 09 00 CA 19 00 09 1C 16 67 6B 98 1E 66 04 [09:16:54]GetLastDocTimeStamp 1729501914 [09:16:54]current date 1729502217 [09:16:54]FM_GetShiftState [09:16:54]SAM_PROTO_GetShiftState [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 13 01 00 [09:16:54]Write to MH i2c: E2 08 00 CB 19 80 13 01 00 00 00 00 00 61 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0E 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0E 00 CB 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [09:16:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_GetShiftState done [09:16:54]FM_GetShiftState done [09:16:54]opened in 1729469703 [09:16:54]opened+sec_in_day 1729556103 [09:16:54]quantity*price = 0 [09:16:54]sum+1 = 1 [09:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 81 21.10.2024 09:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 68922 ФМ: 0000000000963346 ФД: 69691 ФПД: 156415008077067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091657&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69691&fm=156415008077067&tin=02508201610067®Number=0000000000156251&sum=0 [09:16:55]StoreToDocumentArchive [09:16:55]shift 194 fd 69691 [09:16:55]save to /storage/0194/doc_00069691 [09:16:55]save last doc name /storage/0194/doc_00069691 to /storage/kkm_last_doc_name [09:16:55]save OK [09:16:55]Clear old archive folders... [09:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:55]tlvbuf is B6F237A0 [09:16:55]SAM_PROTO_ClearQueue [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 09 00 00 [09:16:55]Write to MH i2c: E2 08 00 D8 19 80 09 00 00 00 00 00 00 63 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]SAM_PROTO_ClearQueue done [09:16:55]KKMCreateOFDPacket [09:16:55]OFDProtocolAddRootSTLVToBuf [09:16:55]FM_MakeSignedData [09:16:55]FM_MakeSignedData [09:16:55]SAM_PROTO_SignData [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 01 02 [09:16:55]Write to MH i2c: E2 08 00 D9 19 80 0D 01 02 00 00 00 00 6B [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=255 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 09 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 10 01 00 35 04 06 00 8E [09:16:55]Write to MH i2c: E2 02 01 DA 19 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 09 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 10 01 00 35 04 06 00 8E 00 00 D0 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=10 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 02 02 05 42 34 FE 75 0B [09:16:55]Write to MH i2c: E2 0D 00 DB 19 80 0D 02 02 05 00 42 34 FE 75 0B 00 00 6C [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 DB 19 00 90 00 68 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 03 02 [09:16:55]Write to MH i2c: E2 08 00 DC 19 80 0D 03 02 00 00 00 00 70 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 DC 19 00 80 21 BA A4 57 BF 7D 07 90 00 0A [09:16:55]RAPDU: 80 21 BA A4 57 BF 7D 07 90 00 [09:16:55]wFMCommunicate OK [09:16:55]SAM_PROTO_SignData done [09:16:55]FM_MakeSignedData done [09:16:55]CreateOFDProtocolMessage [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 11 00 00 [09:16:55]Write to MH i2c: E2 08 00 DD 19 80 11 00 00 00 00 00 00 70 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 DD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [09:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:16:55]wFMCommunicate OK [09:16:55]CreateOFDProtocolMessage done [09:16:55]OFDSenderStorePacket 69691 [09:16:55]StoreOFDPacket docnum=69691 [09:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 D2 07 01 E0 F0 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 09 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 10 01 00 35 04 06 00 8E 42 34 FE 75 0B 80 21 BA A4 57 BF 7D 07 [09:16:55]CheckFolder [09:16:55]dirname=/storage/ofd_packets [09:16:55]CheckFolder done [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00069691 [09:16:55]NVStorageSaveData ofd_packets/00069691 [09:16:55]File name is /storage/ofd_packets/00069691 [09:16:55]Write 301 bytes [09:16:55]NVStorageSaveData done [09:16:55]OFDSenderStorePacket done [09:16:55]KKMCreateOFDPacket done [09:16:55]NVStorageSaveData kkm_last_timestamp [09:16:55]File name is /storage/kkm_last_timestamp [09:16:55]Write 4 bytes [09:16:55]NVStorageSaveData done [09:16:55]ExternCall_PrintAddStr [09:16:55]wPrintStart [09:16:55]Write to MH i2c: 01 00 00 DE 19 F7 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 FF 0F 0C [09:16:55]RasterBufferAndPrint [09:16:55]line Счет N : (1)2885430 [09:16:55]line ИНН: 02508201610067 [09:16:55]line Контрольно-Кассовый Чек [09:16:55]line ПРОДАЖА [09:16:55]line ТРК (МРК, ГНК) : 42 [09:16:55]line Товар: 2710124130 [09:16:55]line Аи-92-К-5 [09:16:55]line 15.000 * 0.00 [09:16:55]line = 0.00 [09:16:55]line НДС 12% НСП 1% [09:16:55]line > о реализуемом товаре [09:16:55]line ИТОГО: 0.00 [09:16:55]line НСП 1% : 0.00 [09:16:55]line НДС 12% : 0.00 [09:16:55]line Наличными: 0.00 [09:16:55]line Безнал.: 0.00 [09:16:55]line Место: АЗС № 85 "Партнер Нефть" [09:16:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:16:55]line СНО: Общий режим [09:16:55]line Чек 81 21.10.2024 09:16 [09:16:55]line Смена: 194 ФФД: 1.0 [09:16:55]line ЗНМ: 0300000167 [09:16:55]line РНМ: 0000000000156251 [09:16:55]line Версия ККМ: v1.0 [09:16:55]line Талоны: Топливная Карта [09:16:55]line 68922 [09:16:55]line ФМ: 0000000000963346 [09:16:55]line ФД: 69691 [09:16:55]line ФПД: 156415008077067 [09:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091657&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69691&fm=156415008077067&tin=02508201610067®Number=0000000000156251&sum=0 [09:16:56]OFD Sender: Processing packet 69691 [packets to send 18, broken 17] [09:16:56]ProducePacketName [09:16:56]name=ofd_packets/00069691 [09:16:56]OFD Sender: To server: pG, [09:16:56]CommunicateWithHost lk.salyk.kg:30040 [09:16:56]ConnectInit lk.salyk.kg [09:16:56]written 0, free lines is 4095 [09:16:56]Connected sock=10 [09:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 D2 07 01 E0 F0 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 09 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 10 01 00 35 04 06 00 8E 42 34 FE 75 0B 80 21 BA A4 57 BF 7D 07 [09:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 C1 47 00 6F 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 10 01 00 F4 03 04 00 AD C5 15 67 B6 04 01 00 00 63 8D 44 61 48 8F 19 69 [09:16:56]CommunicateWithHost err = 0 [09:16:56]CheckOFDResponse [09:16:56]1017 (14) - 77093643461234 [09:16:56]1041 (16) - 0000000000963346 [09:16:56]1040 (4) - 69691 [09:16:56]1012 (4) - 21.10.2024 03:08 [09:16:56]1206 (1) - 0 [09:16:56]OFD Sender: Remove packet 69691 [09:16:56]ProducePacketName [09:16:56]name=ofd_packets/00069691 [09:16:56]NVStorageDeleteData [09:16:56]Write to MH i2c: 01 00 00 08 1A 22 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 08 1A 00 00 00 00 00 05 0D 3B [09:16:56]RasterBufferAndPrint [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]line [09:16:56]written 0, free lines is 3340 [09:16:56]MH_Cut [09:16:56]Write to MH i2c: D1 01 00 0F 1A 01 FB [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: D1 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: D1 01 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: D1 01 00 0F 1A 00 FA [09:16:56]Write to MH i2c: 01 00 00 10 1A 2A [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]OFD Sender: No OFD packet to send [09:16:57]*** Cut start [09:16:57]*** Partial cut [09:16:57]*** CUTSNS_PIN = 1 [09:16:57]*** CUTSNS_PIN = 0 [09:16:57]*** Brake cut motor [09:16:57]Read from MH i2c: 01 [09:16:57]MH_I2C_Read... [09:16:57]*** Stop cut motor [09:16:57]*** Cut end [09:16:57]Read from MH i2c: 01 07 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: 01 07 00 10 1A 00 00 00 00 00 FF 0F 3F [09:16:57]process_action close_receipt done [09:16:57]requested_data is exist [09:16:57]produce_requested_data [09:16:57]requested_item fm.sn is exist - process it [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 11 00 00 [09:16:57]Write to MH i2c: E2 08 00 11 1A 80 11 00 00 00 00 00 00 A5 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 11 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [09:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:16:57]wFMCommunicate OK [09:16:57]requested_item fd.num is exist - process it [09:16:57]SAM_PROTO_GetFieldsCounters [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 00 00 [09:16:57]Write to MH i2c: E2 08 00 12 1A 80 13 00 00 00 00 00 00 A8 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:58]Read from MH i2c: E2 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 62 00 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 62 00 12 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 10 01 00 0E 04 04 00 C2 00 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 C4 [09:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 10 01 00 0E 04 04 00 C2 00 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:16:58]wFMCommunicate OK [09:16:58]SAM_PROTO_GetFieldsCounters done [09:16:58]requested_item shift.num is exist - process it [09:16:58]requested_item shift.opened is exist - process it [09:16:58]req_shift_opened [09:16:58]FM_GetShiftState [09:16:58]SAM_PROTO_GetShiftState [09:16:58]wFMCommunicate request_size=4 [09:16:58]MH_SAM_APDU [09:16:58]CAPDU: 80 13 01 00 [09:16:58]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [09:16:58]Write i2c OK [09:16:58]MH_I2C_Read... [09:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:58]Read from MH i2c: E2 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 0E 00 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D6 [09:16:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:16:58]wFMCommunicate OK [09:16:58]SAM_PROTO_GetShiftState done [09:16:58]FM_GetShiftState done [09:16:58]req_shift_opened done [09:16:58]requested_item shift.open_date is exist - process it [09:16:58]req_shift_open_date [09:16:58]req_shift_open_date done [09:16:58]produce_requested_data done [09:16:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69691,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:16:58]process_action_free close_receipt [09:16:58]json_value_free [09:16:58]json_value_free done [09:16:58]process_json_proto returns [09:16:58]Send response to host [09:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69691,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:16:58]free response buf [09:16:58]execute_script done [09:16:58]execute_script returns [09:16:58]free content buf [09:16:58]Sock 8.Close socket [09:16:58]Sock 8.Thread stoped [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:15]accept exits with 9 [09:17:15]New connection [09:17:15]New thread 3067456868 created [09:17:15]Thread 3067313508 joined [09:17:15]Waiting for new connection... [09:17:15] Sock 9.Parse request [09:17:15]Sock 9.Check first char [09:17:15]Sock 9.First char is OK [09:17:15]request: POST /json_proto HTTP/1.0 [09:17:15]Method: POST [09:17:15]URL: /json_proto [09:17:15]Method is POST - this is cgi request [09:17:15]url: /json_proto [09:17:15]query_string will be loaded in cgi processing [09:17:15]execute_cgi json_proto POST (null) [09:17:15]execute_cgi path=json_proto method=POST [09:17:15]POST find Content-Length [09:17:15]Host: 172.17.50.3:8080 [09:17:15]Content-Length: 679 [09:17:15]Content-Type: application/json [09:17:15] [09:17:15]POST finish read [09:17:15]Found Content-Length = 679 [09:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:15]execute_script... [09:17: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)2885431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:15]POST & json_proto [09:17:15]process_json_proto [09:17:15]json parsed OK: [09:17:15]protocol is kg_v1.0 [09:17:15]action value=close_receipt [09:17:15]process_action close_receipt [09:17:15]cmd_close_receipt [09:17:15]MH_GetDate [09:17:15]Write to MH i2c: F0 00 00 14 1A 1D [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: F0 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: F0 09 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: F0 09 00 14 1A 00 1E 1C 16 67 6B 98 1E 66 64 [09:17:15]GetLastDocTimeStamp 1729502217 [09:17:15]current date 1729502238 [09:17:15]FM_GetShiftState [09:17:15]SAM_PROTO_GetShiftState [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 13 01 00 [09:17:15]Write to MH i2c: E2 08 00 15 1A 80 13 01 00 00 00 00 00 AC [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 0E 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 0E 00 15 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D8 [09:17:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:17:15]wFMCommunicate OK [09:17:15]SAM_PROTO_GetShiftState done [09:17:15]FM_GetShiftState done [09:17:15]opened in 1729469703 [09:17:15]opened+sec_in_day 1729556103 [09:17:15]quantity*price = 85029 [09:17:15]sum+1 = 85031 [09:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 82 21.10.2024 09:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69692 ФПД: 104686079349765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69692&fm=104686079349765&tin=02508201610067®Number=0000000000156251&sum=85000 [09:17:17]StoreToDocumentArchive [09:17:17]shift 194 fd 69692 [09:17:17]save to /storage/0194/doc_00069692 [09:17:17]save last doc name /storage/0194/doc_00069692 to /storage/kkm_last_doc_name [09:17:17]save OK [09:17:17]Clear old archive folders... [09:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:17]tlvbuf is 00CAF710 [09:17:17]SAM_PROTO_ClearQueue [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 09 00 00 [09:17:17]Write to MH i2c: E2 08 00 22 1A 80 09 00 00 00 00 00 00 AE [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]SAM_PROTO_ClearQueue done [09:17:17]KKMCreateOFDPacket [09:17:17]OFDProtocolAddRootSTLVToBuf [09:17:17]FM_MakeSignedData [09:17:17]FM_MakeSignedData [09:17:17]SAM_PROTO_SignData [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 0D 01 02 [09:17:17]Write to MH i2c: E2 08 00 23 1A 80 0D 01 02 00 00 00 00 B6 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]wFMCommunicate request_size=255 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 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 46 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 52 00 00 00 F4 03 04 00 1E 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 10 01 00 35 04 06 00 5F [09:17:17]Write to MH i2c: E2 02 01 24 1A 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 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 46 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 52 00 00 00 F4 03 04 00 1E 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 10 01 00 35 04 06 00 5F 00 00 BC [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]wFMCommunicate request_size=10 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 0D 02 02 05 36 20 92 94 05 [09:17:17]Write to MH i2c: E2 0D 00 25 1A 80 0D 02 02 05 00 36 20 92 94 05 00 00 44 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 25 1A 00 90 00 B3 [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 0D 03 02 [09:17:17]Write to MH i2c: E2 08 00 26 1A 80 0D 03 02 00 00 00 00 BB [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 0B 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 0B 00 26 1A 00 8E 5F 46 33 AB 76 97 DA 90 00 B4 [09:17:17]RAPDU: 8E 5F 46 33 AB 76 97 DA 90 00 [09:17:17]wFMCommunicate OK [09:17:17]SAM_PROTO_SignData done [09:17:17]FM_MakeSignedData done [09:17:17]CreateOFDProtocolMessage [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 11 00 00 [09:17:17]Write to MH i2c: E2 08 00 27 1A 80 11 00 00 00 00 00 00 BB [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 17 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 17 00 27 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [09:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:17:17]wFMCommunicate OK [09:17:17]CreateOFDProtocolMessage done [09:17:17]OFDSenderStorePacket 69692 [09:17:17]StoreOFDPacket docnum=69692 [09:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA B6 07 01 AE DE 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 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 46 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 52 00 00 00 F4 03 04 00 1E 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 10 01 00 35 04 06 00 5F 36 20 92 94 05 8E 5F 46 33 AB 76 97 DA [09:17:17]CheckFolder [09:17:17]dirname=/storage/ofd_packets [09:17:17]CheckFolder done [09:17:17]ProducePacketName [09:17:17]name=ofd_packets/00069692 [09:17:17]NVStorageSaveData ofd_packets/00069692 [09:17:17]File name is /storage/ofd_packets/00069692 [09:17:17]Write 301 bytes [09:17:17]NVStorageSaveData done [09:17:17]OFDSenderStorePacket done [09:17:17]KKMCreateOFDPacket done [09:17:17]NVStorageSaveData kkm_last_timestamp [09:17:17]File name is /storage/kkm_last_timestamp [09:17:17]Write 4 bytes [09:17:17]NVStorageSaveData done [09:17:17]ExternCall_PrintAddStr [09:17:17]wPrintStart [09:17:17]Write to MH i2c: 01 00 00 28 1A 42 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 FF 0F 57 [09:17:17]RasterBufferAndPrint [09:17:17]line Счет N : (1)2885431 [09:17:17]line ИНН: 02508201610067 [09:17:17]line Контрольно-Кассовый Чек [09:17:17]line ПРОДАЖА [09:17:17]line ТРК (МРК, ГНК) : 12 [09:17:17]line Товар: 2710124130 [09:17:17]line Аи-92-К-5 [09:17:17]line 12.710 * 66.90 [09:17:17]line = 850.30 [09:17:17]line НДС 12% НСП 1% [09:17:17]line > о реализуемом товаре [09:17:17]line ОКРУГЛЕНИЕ: -0.30 [09:17:17]line ИТОГО: 850.00 [09:17:17]line Внесено: 850.00 [09:17:17]line СДАЧА: 0.00 [09:17:17]line НСП 1% : 7.52 [09:17:17]line НДС 12% : 90.30 [09:17:17]line Наличными: 850.00 [09:17:17]line Безнал.: 0.00 [09:17:17]line Место: АЗС № 85 "Партнер Нефть" [09:17:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:17:17]line СНО: Общий режим [09:17:17]line Чек 82 21.10.2024 09:17 [09:17:17]line Смена: 194 ФФД: 1.0 [09:17:17]line ЗНМ: 0300000167 [09:17:17]line РНМ: 0000000000156251 [09:17:17]line Версия ККМ: v1.0 [09:17:17]line ФМ: 0000000000963346 [09:17:17]line ФД: 69692 [09:17:17]line ФПД: 104686079349765 [09:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69692&fm=104686079349765&tin=02508201610067®Number=0000000000156251&sum=85000 [09:17:17]OFD Sender: Processing packet 69692 [packets to send 18, broken 17] [09:17:17]ProducePacketName [09:17:17]name=ofd_packets/00069692 [09:17:17]OFD Sender: To server: pG, [09:17:17]CommunicateWithHost lk.salyk.kg:30040 [09:17:17]ConnectInit lk.salyk.kg [09:17:17]written 0, free lines is 4095 [09:17:18]Connected sock=8 [09:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA B6 07 01 AE DE 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 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 46 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 52 00 00 00 F4 03 04 00 1E 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 10 01 00 35 04 06 00 5F 36 20 92 94 05 8E 5F 46 33 AB 76 97 DA [09:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 C3 47 00 13 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 10 01 00 F4 03 04 00 C3 C5 15 67 B6 04 01 00 00 26 B5 23 D3 E4 EC 82 44 [09:17:18]CommunicateWithHost err = 0 [09:17:18]CheckOFDResponse [09:17:18]1017 (14) - 77093643461234 [09:17:18]1041 (16) - 0000000000963346 [09:17:18]1040 (4) - 69692 [09:17:18]1012 (4) - 21.10.2024 03:08 [09:17:18]1206 (1) - 0 [09:17:18]OFD Sender: Remove packet 69692 [09:17:18]ProducePacketName [09:17:18]name=ofd_packets/00069692 [09:17:18]NVStorageDeleteData [09:17:18]Write to MH i2c: 01 00 00 53 1A 6D [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FB 0C 7B [09:17:18]RasterBufferAndPrint [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]written 0, free lines is 3332 [09:17:18]MH_Cut [09:17:18]Write to MH i2c: D1 01 00 5A 1A 01 46 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: D1 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: D1 01 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: D1 01 00 5A 1A 00 45 [09:17:18]Write to MH i2c: 01 00 00 5B 1A 75 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]OFD Sender: No OFD packet to send [09:17:19]*** Cut start [09:17:19]*** Partial cut [09:17:19]*** CUTSNS_PIN = 1 [09:17:19]*** CUTSNS_PIN = 0 [09:17:19]*** Brake cut motor [09:17:19]Read from MH i2c: 01 [09:17:19]MH_I2C_Read... [09:17:19]*** Stop cut motor [09:17:19]*** Cut end [09:17:19]Read from MH i2c: 01 07 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 FF 0F 8A [09:17:19]process_action close_receipt done [09:17:19]requested_data is exist [09:17:19]produce_requested_data [09:17:19]requested_item fm.sn is exist - process it [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 11 00 00 [09:17:19]Write to MH i2c: E2 08 00 5C 1A 80 11 00 00 00 00 00 00 F0 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 17 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 17 00 5C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [09:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:17:19]wFMCommunicate OK [09:17:19]requested_item fd.num is exist - process it [09:17:19]SAM_PROTO_GetFieldsCounters [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 13 00 00 [09:17:19]Write to MH i2c: E2 08 00 5D 1A 80 13 00 00 00 00 00 00 F3 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 62 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 62 00 5D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 10 01 00 0E 04 04 00 C2 00 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 13 [09:17:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 10 01 00 0E 04 04 00 C2 00 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:17:19]wFMCommunicate OK [09:17:19]SAM_PROTO_GetFieldsCounters done [09:17:19]requested_item shift.num is exist - process it [09:17:19]requested_item shift.opened is exist - process it [09:17:19]req_shift_opened [09:17:19]FM_GetShiftState [09:17:19]SAM_PROTO_GetShiftState [09:17:19]wFMCommunicate request_size=4 [09:17:19]MH_SAM_APDU [09:17:19]CAPDU: 80 13 01 00 [09:17:19]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:19]Read from MH i2c: E2 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0E 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 21 [09:17:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:17:19]wFMCommunicate OK [09:17:19]SAM_PROTO_GetShiftState done [09:17:19]FM_GetShiftState done [09:17:19]req_shift_opened done [09:17:19]requested_item shift.open_date is exist - process it [09:17:19]req_shift_open_date [09:17:19]req_shift_open_date done [09:17:19]produce_requested_data done [09:17:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69692,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:17:19]process_action_free close_receipt [09:17:19]json_value_free [09:17:19]json_value_free done [09:17:19]process_json_proto returns [09:17:19]Send response to host [09:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69692,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:17:19]free response buf [09:17:19]execute_script done [09:17:19]execute_script returns [09:17:19]free content buf [09:17:19]Sock 9.Close socket [09:17:19]Sock 9.Thread stoped [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]accept exits with 10 [09:18:43]New connection [09:18:43]New thread 3067313508 created [09:18:43]Thread 3067456868 joined [09:18:43]Waiting for new connection... [09:18:43] Sock 10.Parse request [09:18:43]Sock 10.Check first char [09:18:43]Sock 10.First char is OK [09:18:43]request: POST /json_proto HTTP/1.0 [09:18:43]Method: POST [09:18:43]URL: /json_proto [09:18:43]Method is POST - this is cgi request [09:18:43]url: /json_proto [09:18:43]query_string will be loaded in cgi processing [09:18:43]execute_cgi json_proto POST (null) [09:18:43]execute_cgi path=json_proto method=POST [09:18:43]POST find Content-Length [09:18:43]Host: 172.17.50.3:8080 [09:18:43]Content-Length: 686 [09:18:43]Content-Type: application/json [09:18:43] [09:18:43]POST finish read [09:18:43]Found Content-Length = 686 [09:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:43]execute_script... [09:18: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)2885432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:43]POST & json_proto [09:18:43]process_json_proto [09:18:43]json parsed OK: [09:18:43]protocol is kg_v1.0 [09:18:43]action value=close_receipt [09:18:43]process_action close_receipt [09:18:43]cmd_close_receipt [09:18:43]MH_GetDate [09:18:43]Write to MH i2c: F0 00 00 5F 1A 68 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 09 00 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: F0 09 00 5F 1A 00 76 1C 16 67 6B 98 1E 66 07 [09:18:43]GetLastDocTimeStamp 1729502238 [09:18:43]current date 1729502326 [09:18:43]FM_GetShiftState [09:18:43]SAM_PROTO_GetShiftState [09:18:43]wFMCommunicate request_size=4 [09:18:43]MH_SAM_APDU [09:18:43]CAPDU: 80 13 01 00 [09:18:43]Write to MH i2c: E2 08 00 60 1A 80 13 01 00 00 00 00 00 F7 [09:18:43]Write i2c OK [09:18:43]MH_I2C_Read... [09:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:43]Read from MH i2c: E2 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 0E 00 [09:18:43]MH_I2C_Read... [09:18:43]Read from MH i2c: E2 0E 00 60 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 23 [09:18:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:18:43]wFMCommunicate OK [09:18:43]SAM_PROTO_GetShiftState done [09:18:43]FM_GetShiftState done [09:18:43]opened in 1729469703 [09:18:43]opened+sec_in_day 1729556103 [09:18:43]quantity*price = 160034 [09:18:43]sum+1 = 160036 [09:18:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 83 21.10.2024 09:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69693 ФПД: 145149149613524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69693&fm=145149149613524&tin=02508201610067®Number=0000000000156251&sum=160000 [09:18:44]StoreToDocumentArchive [09:18:44]shift 194 fd 69693 [09:18:44]save to /storage/0194/doc_00069693 [09:18:44]save last doc name /storage/0194/doc_00069693 to /storage/kkm_last_doc_name [09:18:44]save OK [09:18:44]Clear old archive folders... [09:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:18:44]tlvbuf is 00C7D1F0 [09:18:44]SAM_PROTO_ClearQueue [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 09 00 00 [09:18:44]Write to MH i2c: E2 08 00 6D 1A 80 09 00 00 00 00 00 00 F9 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]SAM_PROTO_ClearQueue done [09:18:44]KKMCreateOFDPacket [09:18:44]OFDProtocolAddRootSTLVToBuf [09:18:44]FM_MakeSignedData [09:18:44]FM_MakeSignedData [09:18:44]SAM_PROTO_SignData [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 0D 01 02 [09:18:44]Write to MH i2c: E2 08 00 6E 1A 80 0D 01 02 00 00 00 00 01 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]wFMCommunicate request_size=255 [09:18:44]MH_SAM_APDU [09:18:44]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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 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 76 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 10 01 00 35 04 06 00 84 03 [09:18:44]Write to MH i2c: E2 02 01 6F 1A 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 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 76 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 10 01 00 35 04 06 00 84 03 00 00 EF [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]wFMCommunicate request_size=9 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 0D 02 02 04 2B 80 8D D4 [09:18:44]Write to MH i2c: E2 0C 00 70 1A 80 0D 02 02 04 00 2B 80 8D D4 00 00 18 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [09:18:44]RAPDU: 90 00 [09:18:44]wFMCommunicate OK [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 0D 03 02 [09:18:44]Write to MH i2c: E2 08 00 71 1A 80 0D 03 02 00 00 00 00 06 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0B 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 0B 00 71 1A 00 C8 81 FD D3 02 EC 34 62 90 00 A4 [09:18:44]RAPDU: C8 81 FD D3 02 EC 34 62 90 00 [09:18:44]wFMCommunicate OK [09:18:44]SAM_PROTO_SignData done [09:18:44]FM_MakeSignedData done [09:18:44]CreateOFDProtocolMessage [09:18:44]wFMCommunicate request_size=4 [09:18:44]MH_SAM_APDU [09:18:44]CAPDU: 80 11 00 00 [09:18:44]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:44]Read from MH i2c: E2 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 17 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [09:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:44]wFMCommunicate OK [09:18:44]CreateOFDProtocolMessage done [09:18:44]OFDSenderStorePacket 69693 [09:18:44]StoreOFDPacket docnum=69693 [09:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 74 D1 06 01 21 59 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 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 76 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 10 01 00 35 04 06 00 84 03 2B 80 8D D4 C8 81 FD D3 02 EC 34 62 [09:18:44]CheckFolder [09:18:44]dirname=/storage/ofd_packets [09:18:44]CheckFolder done [09:18:44]ProducePacketName [09:18:44]name=ofd_packets/00069693 [09:18:44]NVStorageSaveData ofd_packets/00069693 [09:18:44]File name is /storage/ofd_packets/00069693 [09:18:44]Write 300 bytes [09:18:44]NVStorageSaveData done [09:18:44]OFDSenderStorePacket done [09:18:44]KKMCreateOFDPacket done [09:18:44]NVStorageSaveData kkm_last_timestamp [09:18:44]File name is /storage/kkm_last_timestamp [09:18:44]Write 4 bytes [09:18:44]NVStorageSaveData done [09:18:44]ExternCall_PrintAddStr [09:18:44]wPrintStart [09:18:44]Write to MH i2c: 01 00 00 73 1A 8D [09:18:44]OFD Sender: Processing packet 69693 [packets to send 18, broken 17] [09:18:44]ProducePacketName [09:18:44]name=ofd_packets/00069693 [09:18:44]OFD Sender: To server: pG, [09:18:44]CommunicateWithHost lk.salyk.kg:30040 [09:18:44]ConnectInit lk.salyk.kg [09:18:44]Write i2c OK [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 [09:18:44]MH_I2C_Read... [09:18:44]Read from MH i2c: 01 07 00 73 1A 00 00 00 00 00 FF 0F A2 [09:18:44]RasterBufferAndPrint [09:18:44]line Счет N : (1)2885432 [09:18:44]line ИНН: 02508201610067 [09:18:44]line Контрольно-Кассовый Чек [09:18:44]line ПРОДАЖА [09:18:44]line ТРК (МРК, ГНК) : 71 [09:18:44]line Товар: 2711129700 [09:18:44]line ГАЗ-К-3 [09:18:44]line 41.140 * 38.90 [09:18:44]line = 1600.35 [09:18:44]line НДС 12% НСП 1% [09:18:44]line > о реализуемом товаре [09:18:44]line ОКРУГЛЕНИЕ: -0.35 [09:18:44]line ИТОГО: 1600.00 [09:18:44]line Внесено: 1600.00 [09:18:44]line СДАЧА: 0.00 [09:18:44]line НСП 1% : 14.16 [09:18:44]line НДС 12% : 169.95 [09:18:44]line Наличными: 1600.00 [09:18:44]line Безнал.: 0.00 [09:18:44]line Место: АЗС № 85 "Партнер Нефть" [09:18:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:18:44]line СНО: Общий режим [09:18:44]line Чек 83 21.10.2024 09:18 [09:18:44]line Смена: 194 ФФД: 1.0 [09:18:44]line ЗНМ: 0300000167 [09:18:44]line РНМ: 0000000000156251 [09:18:44]line Версия ККМ: v1.0 [09:18:44]line ФМ: 0000000000963346 [09:18:44]line ФД: 69693 [09:18:44]line ФПД: 145149149613524 [09:18:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69693&fm=145149149613524&tin=02508201610067®Number=0000000000156251&sum=160000 [09:18:44]Connected sock=9 [09:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 74 D1 06 01 21 59 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 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 76 1C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 10 01 00 35 04 06 00 84 03 2B 80 8D D4 C8 81 FD D3 02 EC 34 62 [09:18:44]written 0, free lines is 4095 [09:18:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6E 77 47 00 EF 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 39 36 33 33 34 36 10 04 04 00 3D 10 01 00 F4 03 04 00 19 C6 15 67 B6 04 01 00 00 49 19 05 3E 09 24 2C 9F [09:18:45]CommunicateWithHost err = 0 [09:18:45]CheckOFDResponse [09:18:45]1017 (14) - 77093643461234 [09:18:45]1041 (16) - 0000000000963346 [09:18:45]1040 (4) - 69693 [09:18:45]1012 (4) - 21.10.2024 03:10 [09:18:45]1206 (1) - 0 [09:18:45]OFD Sender: Remove packet 69693 [09:18:45]ProducePacketName [09:18:45]name=ofd_packets/00069693 [09:18:45]NVStorageDeleteData [09:18:45]Write to MH i2c: 01 00 00 9E 1A B8 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 07 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 FA 0C C5 [09:18:45]RasterBufferAndPrint [09:18:45]line [09:18:45]line [09:18:45]line [09:18:45]line [09:18:45]line [09:18:45]written 0, free lines is 3331 [09:18:45]MH_Cut [09:18:45]Write to MH i2c: D1 01 00 A5 1A 01 91 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: D1 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: D1 01 00 [09:18:45]MH_I2C_Read... [09:18:45]Read from MH i2c: D1 01 00 A5 1A 00 90 [09:18:45]Write to MH i2c: 01 00 00 A6 1A C0 [09:18:45]Write i2c OK [09:18:45]MH_I2C_Read... [09:18:45]OFD Sender: No OFD packet to send [09:18:46]*** Cut start [09:18:46]*** Partial cut [09:18:46]*** CUTSNS_PIN = 1 [09:18:46]*** CUTSNS_PIN = 0 [09:18:46]*** Brake cut motor [09:18:46]Read from MH i2c: 01 [09:18:46]MH_I2C_Read... [09:18:46]*** Stop cut motor [09:18:46]*** Cut end [09:18:46]Read from MH i2c: 01 07 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: 01 07 00 A6 1A 00 00 00 00 00 FF 0F D5 [09:18:46]process_action close_receipt done [09:18:46]requested_data is exist [09:18:46]produce_requested_data [09:18:46]requested_item fm.sn is exist - process it [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 11 00 00 [09:18:46]Write to MH i2c: E2 08 00 A7 1A 80 11 00 00 00 00 00 00 3B [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:46]Read from MH i2c: E2 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 17 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 17 00 A7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [09:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:46]wFMCommunicate OK [09:18:46]requested_item fd.num is exist - process it [09:18:46]SAM_PROTO_GetFieldsCounters [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 13 00 00 [09:18:46]Write to MH i2c: E2 08 00 A8 1A 80 13 00 00 00 00 00 00 3E [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:46]Read from MH i2c: E2 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 62 00 [09:18:46]MH_I2C_Read... [09:18:46]Read from MH i2c: E2 62 00 A8 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 10 01 00 0E 04 04 00 C2 00 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 62 [09:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 10 01 00 0E 04 04 00 C2 00 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:18:46]wFMCommunicate OK [09:18:46]SAM_PROTO_GetFieldsCounters done [09:18:46]requested_item shift.num is exist - process it [09:18:46]requested_item shift.opened is exist - process it [09:18:46]req_shift_opened [09:18:46]FM_GetShiftState [09:18:46]SAM_PROTO_GetShiftState [09:18:46]wFMCommunicate request_size=4 [09:18:46]MH_SAM_APDU [09:18:46]CAPDU: 80 13 01 00 [09:18:46]Write to MH i2c: E2 08 00 A9 1A 80 13 01 00 00 00 00 00 40 [09:18:46]Write i2c OK [09:18:46]MH_I2C_Read... [09:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:47]Read from MH i2c: E2 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 0E 00 [09:18:47]MH_I2C_Read... [09:18:47]Read from MH i2c: E2 0E 00 A9 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6C [09:18:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:18:47]wFMCommunicate OK [09:18:47]SAM_PROTO_GetShiftState done [09:18:47]FM_GetShiftState done [09:18:47]req_shift_opened done [09:18:47]requested_item shift.open_date is exist - process it [09:18:47]req_shift_open_date [09:18:47]req_shift_open_date done [09:18:47]produce_requested_data done [09:18:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69693,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:18:47]process_action_free close_receipt [09:18:47]json_value_free [09:18:47]json_value_free done [09:18:47]process_json_proto returns [09:18:47]Send response to host [09:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69693,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:18:47]free response buf [09:18:47]execute_script done [09:18:47]execute_script returns [09:18:47]free content buf [09:18:47]Sock 10.Close socket [09:18:47]Sock 10.Thread stoped [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:22:57]accept exits with 8 [09:22:57]New connection [09:22:57]New thread 3067456868 created [09:22:57]Thread 3067313508 joined [09:22:57]Waiting for new connection... [09:22:57] Sock 8.Parse request [09:22:57]Sock 8.Check first char [09:22:57]Sock 8.First char is OK [09:22:57]request: POST /json_proto HTTP/1.0 [09:22:57]Method: POST [09:22:57]URL: /json_proto [09:22:57]Method is POST - this is cgi request [09:22:57]url: /json_proto [09:22:57]query_string will be loaded in cgi processing [09:22:57]execute_cgi json_proto POST (null) [09:22:57]execute_cgi path=json_proto method=POST [09:22:57]POST find Content-Length [09:22:57]Host: 172.17.50.3:8080 [09:22:57]Content-Length: 686 [09:22:57]Content-Type: application/json [09:22:57] [09:22:57]POST finish read [09:22:57]Found Content-Length = 686 [09:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:57]execute_script... [09:22: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)2885433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:57]POST & json_proto [09:22:57]process_json_proto [09:22:57]json parsed OK: [09:22:57]protocol is kg_v1.0 [09:22:57]action value=close_receipt [09:22:57]process_action close_receipt [09:22:57]cmd_close_receipt [09:22:57]MH_GetDate [09:22:57]Write to MH i2c: F0 00 00 AA 1A B3 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 09 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 09 00 AA 1A 00 74 1D 16 67 6B 98 1E 66 51 [09:22:57]GetLastDocTimeStamp 1729502326 [09:22:57]current date 1729502580 [09:22:57]FM_GetShiftState [09:22:57]SAM_PROTO_GetShiftState [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 13 01 00 [09:22:57]Write to MH i2c: E2 08 00 AB 1A 80 13 01 00 00 00 00 00 42 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 AB 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6E [09:22:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:22:57]wFMCommunicate OK [09:22:57]SAM_PROTO_GetShiftState done [09:22:57]FM_GetShiftState done [09:22:57]opened in 1729469703 [09:22:57]opened+sec_in_day 1729556103 [09:22:57]quantity*price = 100011 [09:22:57]sum+1 = 100013 [09:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 84 21.10.2024 09:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69694 ФПД: 279983032057077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69694&fm=279983032057077&tin=02508201610067®Number=0000000000156251&sum=100000 [09:22:58]StoreToDocumentArchive [09:22:58]shift 194 fd 69694 [09:22:58]save to /storage/0194/doc_00069694 [09:22:58]save last doc name /storage/0194/doc_00069694 to /storage/kkm_last_doc_name [09:22:58]save OK [09:22:58]Clear old archive folders... [09:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:22:58]tlvbuf is 00CAEF10 [09:22:58]SAM_PROTO_ClearQueue [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 09 00 00 [09:22:58]Write to MH i2c: E2 08 00 B8 1A 80 09 00 00 00 00 00 00 44 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_ClearQueue done [09:22:58]KKMCreateOFDPacket [09:22:58]OFDProtocolAddRootSTLVToBuf [09:22:58]FM_MakeSignedData [09:22:58]FM_MakeSignedData [09:22:58]SAM_PROTO_SignData [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 0D 01 02 [09:22:58]Write to MH i2c: E2 08 00 B9 1A 80 0D 01 02 00 00 00 00 4C [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]wFMCommunicate request_size=255 [09:22:58]MH_SAM_APDU [09:22:58]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 1D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 10 01 00 35 04 06 00 FE A4 [09:22:58]Write to MH i2c: E2 02 01 BA 1A 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 1D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 10 01 00 35 04 06 00 FE A4 00 00 C5 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 03 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [09:22:59]RAPDU: 90 00 [09:22:59]wFMCommunicate OK [09:22:59]wFMCommunicate request_size=9 [09:22:59]MH_SAM_APDU [09:22:59]CAPDU: 80 0D 02 02 04 A1 2B 3C F5 [09:22:59]Write to MH i2c: E2 0C 00 BB 1A 80 0D 02 02 04 00 A1 2B 3C F5 00 00 54 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 03 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [09:22:59]RAPDU: 90 00 [09:22:59]wFMCommunicate OK [09:22:59]wFMCommunicate request_size=4 [09:22:59]MH_SAM_APDU [09:22:59]CAPDU: 80 0D 03 02 [09:22:59]Write to MH i2c: E2 08 00 BC 1A 80 0D 03 02 00 00 00 00 51 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 0B 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 0B 00 BC 1A 00 7E 72 7A 2B F4 B0 80 BD 90 00 C8 [09:22:59]RAPDU: 7E 72 7A 2B F4 B0 80 BD 90 00 [09:22:59]wFMCommunicate OK [09:22:59]SAM_PROTO_SignData done [09:22:59]FM_MakeSignedData done [09:22:59]CreateOFDProtocolMessage [09:22:59]wFMCommunicate request_size=4 [09:22:59]MH_SAM_APDU [09:22:59]CAPDU: 80 11 00 00 [09:22:59]Write to MH i2c: E2 08 00 BD 1A 80 11 00 00 00 00 00 00 51 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 17 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 17 00 BD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [09:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:22:59]wFMCommunicate OK [09:22:59]CreateOFDProtocolMessage done [09:22:59]OFDSenderStorePacket 69694 [09:22:59]StoreOFDPacket docnum=69694 [09:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 16 73 06 01 47 C0 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 1D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 10 01 00 35 04 06 00 FE A4 A1 2B 3C F5 7E 72 7A 2B F4 B0 80 BD [09:22:59]CheckFolder [09:22:59]dirname=/storage/ofd_packets [09:22:59]CheckFolder done [09:22:59]ProducePacketName [09:22:59]name=ofd_packets/00069694 [09:22:59]NVStorageSaveData ofd_packets/00069694 [09:22:59]File name is /storage/ofd_packets/00069694 [09:22:59]Write 300 bytes [09:22:59]NVStorageSaveData done [09:22:59]OFDSenderStorePacket done [09:22:59]KKMCreateOFDPacket done [09:22:59]NVStorageSaveData kkm_last_timestamp [09:22:59]File name is /storage/kkm_last_timestamp [09:22:59]Write 4 bytes [09:22:59]NVStorageSaveData done [09:22:59]ExternCall_PrintAddStr [09:22:59]wPrintStart [09:22:59]Write to MH i2c: 01 00 00 BE 1A D8 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 BE 1A 00 00 00 00 00 FF 0F ED [09:22:59]RasterBufferAndPrint [09:22:59]line Счет N : (1)2885433 [09:22:59]line ИНН: 02508201610067 [09:22:59]line Контрольно-Кассовый Чек [09:22:59]line ПРОДАЖА [09:22:59]line ТРК (МРК, ГНК) : 71 [09:22:59]line Товар: 2711129700 [09:22:59]line ГАЗ-К-3 [09:22:59]line 25.710 * 38.90 [09:22:59]line = 1000.12 [09:22:59]line НДС 12% НСП 1% [09:22:59]line > о реализуемом товаре [09:22:59]line ОКРУГЛЕНИЕ: -0.12 [09:22:59]line ИТОГО: 1000.00 [09:22:59]line Внесено: 1000.00 [09:22:59]line СДАЧА: 0.00 [09:22:59]line НСП 1% : 8.85 [09:22:59]line НДС 12% : 106.21 [09:22:59]line Наличными: 1000.00 [09:22:59]line Безнал.: 0.00 [09:22:59]line Место: АЗС № 85 "Партнер Нефть" [09:22:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:22:59]line СНО: Общий режим [09:22:59]line Чек 84 21.10.2024 09:23 [09:22:59]line Смена: 194 ФФД: 1.0 [09:22:59]line ЗНМ: 0300000167 [09:22:59]line РНМ: 0000000000156251 [09:22:59]line Версия ККМ: v1.0 [09:22:59]line ФМ: 0000000000963346 [09:22:59]line ФД: 69694 [09:22:59]line ФПД: 279983032057077 [09:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69694&fm=279983032057077&tin=02508201610067®Number=0000000000156251&sum=100000 [09:22:59]OFD Sender: Processing packet 69694 [packets to send 18, broken 17] [09:22:59]ProducePacketName [09:22:59]name=ofd_packets/00069694 [09:22:59]OFD Sender: To server: pG, [09:22:59]CommunicateWithHost lk.salyk.kg:30040 [09:22:59]ConnectInit lk.salyk.kg [09:22:59]written 0, free lines is 4095 [09:22:59]Connected sock=10 [09:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 16 73 06 01 47 C0 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 1D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 10 01 00 35 04 06 00 FE A4 A1 2B 3C F5 7E 72 7A 2B F4 B0 80 BD [09:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E4 0D 47 00 10 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 39 36 33 33 34 36 10 04 04 00 3E 10 01 00 F4 03 04 00 18 C7 15 67 B6 04 01 00 00 E7 85 8D 24 CC FC 17 69 [09:23:00]CommunicateWithHost err = 0 [09:23:00]CheckOFDResponse [09:23:00]1017 (14) - 77093643461234 [09:23:00]1041 (16) - 0000000000963346 [09:23:00]1040 (4) - 69694 [09:23:00]1012 (4) - 21.10.2024 03:14 [09:23:00]1206 (1) - 0 [09:23:00]OFD Sender: Remove packet 69694 [09:23:00]ProducePacketName [09:23:00]name=ofd_packets/00069694 [09:23:00]NVStorageDeleteData [09:23:00]Write to MH i2c: 01 00 00 E9 1A 03 [09:23:00]Write i2c OK [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: 01 [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: 01 07 00 [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: 01 07 00 E9 1A 00 00 00 00 00 EE 0C 04 [09:23:00]RasterBufferAndPrint [09:23:00]line [09:23:00]line [09:23:00]line [09:23:00]line [09:23:00]line [09:23:00]written 0, free lines is 3316 [09:23:00]MH_Cut [09:23:00]Write to MH i2c: D1 01 00 F0 1A 01 DC [09:23:00]Write i2c OK [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: D1 [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: D1 01 00 [09:23:00]MH_I2C_Read... [09:23:00]Read from MH i2c: D1 01 00 F0 1A 00 DB [09:23:00]Write to MH i2c: 01 00 00 F1 1A 0B [09:23:00]Write i2c OK [09:23:00]MH_I2C_Read... [09:23:00]OFD Sender: No OFD packet to send [09:23:00]*** Cut start [09:23:00]*** Partial cut [09:23:00]*** CUTSNS_PIN = 1 [09:23:00]*** CUTSNS_PIN = 0 [09:23:01]*** Brake cut motor [09:23:01]Read from MH i2c: 01 [09:23:01]MH_I2C_Read... [09:23:01]*** Stop cut motor [09:23:01]*** Cut end [09:23:01]Read from MH i2c: 01 07 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 F1 1A 00 00 00 00 00 FF 0F 20 [09:23:01]process_action close_receipt done [09:23:01]requested_data is exist [09:23:01]produce_requested_data [09:23:01]requested_item fm.sn is exist - process it [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 11 00 00 [09:23:01]Write to MH i2c: E2 08 00 F2 1A 80 11 00 00 00 00 00 00 86 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 17 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 17 00 F2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [09:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:23:01]wFMCommunicate OK [09:23:01]requested_item fd.num is exist - process it [09:23:01]SAM_PROTO_GetFieldsCounters [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 13 00 00 [09:23:01]Write to MH i2c: E2 08 00 F3 1A 80 13 00 00 00 00 00 00 89 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 62 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 62 00 F3 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 10 01 00 0E 04 04 00 C2 00 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 B1 [09:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 10 01 00 0E 04 04 00 C2 00 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:23:01]wFMCommunicate OK [09:23:01]SAM_PROTO_GetFieldsCounters done [09:23:01]requested_item shift.num is exist - process it [09:23:01]requested_item shift.opened is exist - process it [09:23:01]req_shift_opened [09:23:01]FM_GetShiftState [09:23:01]SAM_PROTO_GetShiftState [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 13 01 00 [09:23:01]Write to MH i2c: E2 08 00 F4 1A 80 13 01 00 00 00 00 00 8B [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 F4 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B7 [09:23:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:23:01]wFMCommunicate OK [09:23:01]SAM_PROTO_GetShiftState done [09:23:01]FM_GetShiftState done [09:23:01]req_shift_opened done [09:23:01]requested_item shift.open_date is exist - process it [09:23:01]req_shift_open_date [09:23:01]req_shift_open_date done [09:23:01]produce_requested_data done [09:23:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69694,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:23:01]process_action_free close_receipt [09:23:01]json_value_free [09:23:01]json_value_free done [09:23:01]process_json_proto returns [09:23:01]Send response to host [09:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69694,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:23:01]free response buf [09:23:01]execute_script done [09:23:01]execute_script returns [09:23:01]free content buf [09:23:01]Sock 8.Close socket [09:23:01]Sock 8.Thread stoped [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:19]accept exits with 9 [09:25:19]New connection [09:25:19]New thread 3067313508 created [09:25:19]Thread 3067456868 joined [09:25:19]Waiting for new connection... [09:25:19] Sock 9.Parse request [09:25:19]Sock 9.Check first char [09:25:19]Sock 9.First char is OK [09:25:19]request: POST /json_proto HTTP/1.0 [09:25:19]Method: POST [09:25:19]URL: /json_proto [09:25:19]Method is POST - this is cgi request [09:25:19]url: /json_proto [09:25:19]query_string will be loaded in cgi processing [09:25:19]execute_cgi json_proto POST (null) [09:25:19]execute_cgi path=json_proto method=POST [09:25:19]POST find Content-Length [09:25:19]Host: 172.17.50.3:8080 [09:25:19]Content-Length: 686 [09:25:19]Content-Type: application/json [09:25:19] [09:25:19]POST finish read [09:25:19]Found Content-Length = 686 [09:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:25:19]execute_script... [09:25:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:25:19]POST & json_proto [09:25:19]process_json_proto [09:25:19]json parsed OK: [09:25:19]protocol is kg_v1.0 [09:25:19]action value=close_receipt [09:25:19]process_action close_receipt [09:25:19]cmd_close_receipt [09:25:19]MH_GetDate [09:25:19]Write to MH i2c: F0 00 00 F5 1A FE [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 09 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: F0 09 00 F5 1A 00 02 1E 16 67 6B 98 1E 66 2B [09:25:19]GetLastDocTimeStamp 1729502580 [09:25:19]current date 1729502722 [09:25:19]FM_GetShiftState [09:25:19]SAM_PROTO_GetShiftState [09:25:19]wFMCommunicate request_size=4 [09:25:19]MH_SAM_APDU [09:25:19]CAPDU: 80 13 01 00 [09:25:19]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:19]Read from MH i2c: E2 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B9 [09:25:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:25:19]wFMCommunicate OK [09:25:19]SAM_PROTO_GetShiftState done [09:25:19]FM_GetShiftState done [09:25:19]opened in 1729469703 [09:25:19]opened+sec_in_day 1729556103 [09:25:19]quantity*price = 100011 [09:25:19]sum+1 = 100013 [09:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 85 21.10.2024 09:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69695 ФПД: 86360335183196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69695&fm=86360335183196&tin=02508201610067®Number=0000000000156251&sum=100000 [09:25:20]StoreToDocumentArchive [09:25:20]shift 194 fd 69695 [09:25:20]save to /storage/0194/doc_00069695 [09:25:20]save last doc name /storage/0194/doc_00069695 to /storage/kkm_last_doc_name [09:25:20]save OK [09:25:20]Clear old archive folders... [09:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:25:20]tlvbuf is B6F55610 [09:25:20]SAM_PROTO_ClearQueue [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 09 00 00 [09:25:20]Write to MH i2c: E2 08 00 03 1B 80 09 00 00 00 00 00 00 90 [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [09:25:20]RAPDU: 90 00 [09:25:20]wFMCommunicate OK [09:25:20]SAM_PROTO_ClearQueue done [09:25:20]KKMCreateOFDPacket [09:25:20]OFDProtocolAddRootSTLVToBuf [09:25:20]FM_MakeSignedData [09:25:20]FM_MakeSignedData [09:25:20]SAM_PROTO_SignData [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 0D 01 02 [09:25:20]Write to MH i2c: E2 08 00 04 1B 80 0D 01 02 00 00 00 00 98 [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 03 00 04 1B 00 90 00 93 [09:25:20]RAPDU: 90 00 [09:25:20]wFMCommunicate OK [09:25:20]wFMCommunicate request_size=255 [09:25:20]MH_SAM_APDU [09:25:20]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 02 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 10 01 00 35 04 06 00 4E 8B [09:25:20]Write to MH i2c: E2 02 01 05 1B 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 02 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 10 01 00 35 04 06 00 4E 8B 00 00 D9 [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [09:25:21]RAPDU: 90 00 [09:25:21]wFMCommunicate OK [09:25:21]wFMCommunicate request_size=9 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 0D 02 02 04 55 19 ED 5C [09:25:21]Write to MH i2c: E2 0C 00 06 1B 80 0D 02 02 04 00 55 19 ED 5C 00 00 5A [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [09:25:21]RAPDU: 90 00 [09:25:21]wFMCommunicate OK [09:25:21]wFMCommunicate request_size=4 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 0D 03 02 [09:25:21]Write to MH i2c: E2 08 00 07 1B 80 0D 03 02 00 00 00 00 9D [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0B 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 0B 00 07 1B 00 20 E3 4F 94 06 6C 18 B4 90 00 C2 [09:25:21]RAPDU: 20 E3 4F 94 06 6C 18 B4 90 00 [09:25:21]wFMCommunicate OK [09:25:21]SAM_PROTO_SignData done [09:25:21]FM_MakeSignedData done [09:25:21]CreateOFDProtocolMessage [09:25:21]wFMCommunicate request_size=4 [09:25:21]MH_SAM_APDU [09:25:21]CAPDU: 80 11 00 00 [09:25:21]Write to MH i2c: E2 08 00 08 1B 80 11 00 00 00 00 00 00 9D [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:21]Read from MH i2c: E2 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 17 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: E2 17 00 08 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [09:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:21]wFMCommunicate OK [09:25:21]CreateOFDProtocolMessage done [09:25:21]OFDSenderStorePacket 69695 [09:25:21]StoreOFDPacket docnum=69695 [09:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D5 BA 06 01 29 1D 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 02 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 10 01 00 35 04 06 00 4E 8B 55 19 ED 5C 20 E3 4F 94 06 6C 18 B4 [09:25:21]CheckFolder [09:25:21]dirname=/storage/ofd_packets [09:25:21]CheckFolder done [09:25:21]ProducePacketName [09:25:21]name=ofd_packets/00069695 [09:25:21]NVStorageSaveData ofd_packets/00069695 [09:25:21]File name is /storage/ofd_packets/00069695 [09:25:21]Write 300 bytes [09:25:21]NVStorageSaveData done [09:25:21]OFDSenderStorePacket done [09:25:21]KKMCreateOFDPacket done [09:25:21]NVStorageSaveData kkm_last_timestamp [09:25:21]File name is /storage/kkm_last_timestamp [09:25:21]Write 4 bytes [09:25:21]NVStorageSaveData done [09:25:21]ExternCall_PrintAddStr [09:25:21]wPrintStart [09:25:21]Write to MH i2c: 01 00 00 09 1B 24 [09:25:21]Write i2c OK [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 07 00 [09:25:21]MH_I2C_Read... [09:25:21]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 FF 0F 39 [09:25:21]RasterBufferAndPrint [09:25:21]line Счет N : (1)2885434 [09:25:21]line ИНН: 02508201610067 [09:25:21]line Контрольно-Кассовый Чек [09:25:21]line ПРОДАЖА [09:25:21]line ТРК (МРК, ГНК) : 71 [09:25:21]line Товар: 2711129700 [09:25:21]line ГАЗ-К-3 [09:25:21]line 25.710 * 38.90 [09:25:21]line = 1000.12 [09:25:21]line НДС 12% НСП 1% [09:25:21]line > о реализуемом товаре [09:25:21]line ОКРУГЛЕНИЕ: -0.12 [09:25:21]line ИТОГО: 1000.00 [09:25:21]line Внесено: 1000.00 [09:25:21]line СДАЧА: 0.00 [09:25:21]line НСП 1% : 8.85 [09:25:21]line НДС 12% : 106.21 [09:25:21]line Наличными: 1000.00 [09:25:21]line Безнал.: 0.00 [09:25:21]line Место: АЗС № 85 "Партнер Нефть" [09:25:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:25:21]line СНО: Общий режим [09:25:21]line Чек 85 21.10.2024 09:25 [09:25:21]line Смена: 194 ФФД: 1.0 [09:25:21]line ЗНМ: 0300000167 [09:25:21]line РНМ: 0000000000156251 [09:25:21]line Версия ККМ: v1.0 [09:25:21]line ФМ: 0000000000963346 [09:25:21]line ФД: 69695 [09:25:21]line ФПД: 86360335183196 [09:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69695&fm=86360335183196&tin=02508201610067®Number=0000000000156251&sum=100000 [09:25:21]OFD Sender: Processing packet 69695 [packets to send 18, broken 17] [09:25:21]ProducePacketName [09:25:21]name=ofd_packets/00069695 [09:25:21]OFD Sender: To server: pG, [09:25:21]CommunicateWithHost lk.salyk.kg:30040 [09:25:21]ConnectInit lk.salyk.kg [09:25:21]written 0, free lines is 4095 [09:25:21]Connected sock=10 [09:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D5 BA 06 01 29 1D 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 02 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 10 01 00 35 04 06 00 4E 8B 55 19 ED 5C 20 E3 4F 94 06 6C 18 B4 [09:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 44 47 00 3C E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 10 01 00 F4 03 04 00 A6 C7 15 67 B6 04 01 00 00 F3 7A 2D E5 4A 4D A7 0A [09:25:22]CommunicateWithHost err = 0 [09:25:22]CheckOFDResponse [09:25:22]1017 (14) - 77093643461234 [09:25:22]1041 (16) - 0000000000963346 [09:25:22]1040 (4) - 69695 [09:25:22]1012 (4) - 21.10.2024 03:16 [09:25:22]1206 (1) - 0 [09:25:22]OFD Sender: Remove packet 69695 [09:25:22]ProducePacketName [09:25:22]name=ofd_packets/00069695 [09:25:22]NVStorageDeleteData [09:25:22]Write to MH i2c: 01 00 00 34 1B 4F [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 07 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: 01 07 00 34 1B 00 00 00 00 00 FC 0C 5E [09:25:22]RasterBufferAndPrint [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]line [09:25:22]written 0, free lines is 3330 [09:25:22]MH_Cut [09:25:22]Write to MH i2c: D1 01 00 3B 1B 01 28 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: D1 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: D1 01 00 [09:25:22]MH_I2C_Read... [09:25:22]Read from MH i2c: D1 01 00 3B 1B 00 27 [09:25:22]Write to MH i2c: 01 00 00 3C 1B 57 [09:25:22]Write i2c OK [09:25:22]MH_I2C_Read... [09:25:22]OFD Sender: No OFD packet to send [09:25:22]*** Cut start [09:25:22]*** Partial cut [09:25:22]*** CUTSNS_PIN = 1 [09:25:22]*** CUTSNS_PIN = 0 [09:25:23]*** Brake cut motor [09:25:23]Read from MH i2c: 01 [09:25:23]MH_I2C_Read... [09:25:23]*** Stop cut motor [09:25:23]*** Cut end [09:25:23]Read from MH i2c: 01 07 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: 01 07 00 3C 1B 00 00 00 00 00 FF 0F 6C [09:25:23]process_action close_receipt done [09:25:23]requested_data is exist [09:25:23]produce_requested_data [09:25:23]requested_item fm.sn is exist - process it [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 11 00 00 [09:25:23]Write to MH i2c: E2 08 00 3D 1B 80 11 00 00 00 00 00 00 D2 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 17 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 17 00 3D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [09:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:25:23]wFMCommunicate OK [09:25:23]requested_item fd.num is exist - process it [09:25:23]SAM_PROTO_GetFieldsCounters [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 13 00 00 [09:25:23]Write to MH i2c: E2 08 00 3E 1B 80 13 00 00 00 00 00 00 D5 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 62 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 62 00 3E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 10 01 00 0E 04 04 00 C2 00 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 01 [09:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 10 01 00 0E 04 04 00 C2 00 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:25:23]wFMCommunicate OK [09:25:23]SAM_PROTO_GetFieldsCounters done [09:25:23]requested_item shift.num is exist - process it [09:25:23]requested_item shift.opened is exist - process it [09:25:23]req_shift_opened [09:25:23]FM_GetShiftState [09:25:23]SAM_PROTO_GetShiftState [09:25:23]wFMCommunicate request_size=4 [09:25:23]MH_SAM_APDU [09:25:23]CAPDU: 80 13 01 00 [09:25:23]Write to MH i2c: E2 08 00 3F 1B 80 13 01 00 00 00 00 00 D7 [09:25:23]Write i2c OK [09:25:23]MH_I2C_Read... [09:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:23]Read from MH i2c: E2 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 0E 00 [09:25:23]MH_I2C_Read... [09:25:23]Read from MH i2c: E2 0E 00 3F 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 03 [09:25:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:25:23]wFMCommunicate OK [09:25:23]SAM_PROTO_GetShiftState done [09:25:23]FM_GetShiftState done [09:25:23]req_shift_opened done [09:25:23]requested_item shift.open_date is exist - process it [09:25:23]req_shift_open_date [09:25:23]req_shift_open_date done [09:25:23]produce_requested_data done [09:25:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69695,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:25:23]process_action_free close_receipt [09:25:23]json_value_free [09:25:23]json_value_free done [09:25:23]process_json_proto returns [09:25:23]Send response to host [09:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69695,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:25:23]free response buf [09:25:23]execute_script done [09:25:23]execute_script returns [09:25:23]free content buf [09:25:23]Sock 9.Close socket [09:25:23]Sock 9.Thread stoped [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:48]accept exits with 8 [09:27:48]New connection [09:27:48]New thread 3067456868 created [09:27:48]Thread 3067313508 joined [09:27:48]Waiting for new connection... [09:27:48] Sock 8.Parse request [09:27:48]Sock 8.Check first char [09:27:48]Sock 8.First char is OK [09:27:48]request: POST /json_proto HTTP/1.0 [09:27:48]Method: POST [09:27:48]URL: /json_proto [09:27:48]Method is POST - this is cgi request [09:27:48]url: /json_proto [09:27:48]query_string will be loaded in cgi processing [09:27:48]execute_cgi json_proto POST (null) [09:27:48]execute_cgi path=json_proto method=POST [09:27:48]POST find Content-Length [09:27:48]Host: 172.17.50.3:8080 [09:27:48]Content-Length: 680 [09:27:48]Content-Type: application/json [09:27:48] [09:27:48]POST finish read [09:27:48]Found Content-Length = 680 [09:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:27:48]execute_script... [09:27: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)2885435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:27:48]POST & json_proto [09:27:48]process_json_proto [09:27:48]json parsed OK: [09:27:48]protocol is kg_v1.0 [09:27:48]action value=close_receipt [09:27:48]process_action close_receipt [09:27:48]cmd_close_receipt [09:27:48]MH_GetDate [09:27:48]Write to MH i2c: F0 00 00 40 1B 4A [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: F0 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: F0 09 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: F0 09 00 40 1B 00 98 1E 16 67 6B 98 1E 66 0D [09:27:48]GetLastDocTimeStamp 1729502722 [09:27:48]current date 1729502872 [09:27:48]FM_GetShiftState [09:27:48]SAM_PROTO_GetShiftState [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 13 01 00 [09:27:48]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 0E 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 05 [09:27:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:27:49]wFMCommunicate OK [09:27:49]SAM_PROTO_GetShiftState done [09:27:49]FM_GetShiftState done [09:27:49]opened in 1729469703 [09:27:49]opened+sec_in_day 1729556103 [09:27:49]quantity*price = 150037 [09:27:49]sum+1 = 150039 [09:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 86 21.10.2024 09:27 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69696 ФПД: 243485136594889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092752&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69696&fm=243485136594889&tin=02508201610067®Number=0000000000156251&sum=150000 [09:27:50]StoreToDocumentArchive [09:27:50]shift 194 fd 69696 [09:27:50]save to /storage/0194/doc_00069696 [09:27:50]save last doc name /storage/0194/doc_00069696 to /storage/kkm_last_doc_name [09:27:50]save OK [09:27:50]Clear old archive folders... [09:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:50]tlvbuf is 00C4C8B0 [09:27:50]SAM_PROTO_ClearQueue [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 09 00 00 [09:27:50]Write to MH i2c: E2 08 00 4E 1B 80 09 00 00 00 00 00 00 DB [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 4E 1B 00 90 00 DD [09:27:50]RAPDU: 90 00 [09:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_ClearQueue done [09:27:50]KKMCreateOFDPacket [09:27:50]OFDProtocolAddRootSTLVToBuf [09:27:50]FM_MakeSignedData [09:27:50]FM_MakeSignedData [09:27:50]SAM_PROTO_SignData [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 0D 01 02 [09:27:50]Write to MH i2c: E2 08 00 4F 1B 80 0D 01 02 00 00 00 00 E3 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:50]Read from MH i2c: E2 03 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [09:27:50]RAPDU: 90 00 [09:27:50]wFMCommunicate OK [09:27:50]wFMCommunicate request_size=255 [09:27:50]MH_SAM_APDU [09:27:50]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 32 31 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 56 00 00 00 F4 03 04 00 98 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 10 01 00 35 04 06 00 DD 72 CD 13 [09:27:50]Write to MH i2c: E2 02 01 50 1B 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 32 31 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 56 00 00 00 F4 03 04 00 98 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 10 01 00 35 04 06 00 DD 72 CD 13 00 00 A4 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [09:27:50]RAPDU: 90 00 [09:27:50]wFMCommunicate OK [09:27:50]wFMCommunicate request_size=7 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 0D 02 02 02 27 C9 [09:27:50]Write to MH i2c: E2 0A 00 51 1B 80 0D 02 02 02 00 27 C9 00 00 DA [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [09:27:50]RAPDU: 90 00 [09:27:50]wFMCommunicate OK [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 0D 03 02 [09:27:50]Write to MH i2c: E2 08 00 52 1B 80 0D 03 02 00 00 00 00 E8 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0B 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0B 00 52 1B 00 35 9F 17 BF 88 04 36 71 90 00 C6 [09:27:50]RAPDU: 35 9F 17 BF 88 04 36 71 90 00 [09:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_SignData done [09:27:50]FM_MakeSignedData done [09:27:50]CreateOFDProtocolMessage [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 11 00 00 [09:27:50]Write to MH i2c: E2 08 00 53 1B 80 11 00 00 00 00 00 00 E8 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 17 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 17 00 53 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [09:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:27:50]wFMCommunicate OK [09:27:50]CreateOFDProtocolMessage done [09:27:50]OFDSenderStorePacket 69696 [09:27:50]StoreOFDPacket docnum=69696 [09:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 08 03 04 01 2F 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 32 31 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 56 00 00 00 F4 03 04 00 98 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 10 01 00 35 04 06 00 DD 72 CD 13 27 C9 35 9F 17 BF 88 04 36 71 [09:27:50]CheckFolder [09:27:50]dirname=/storage/ofd_packets [09:27:50]CheckFolder done [09:27:50]ProducePacketName [09:27:50]name=ofd_packets/00069696 [09:27:50]NVStorageSaveData ofd_packets/00069696 [09:27:50]File name is /storage/ofd_packets/00069696 [09:27:50]Write 298 bytes [09:27:50]NVStorageSaveData done [09:27:50]OFDSenderStorePacket done [09:27:50]KKMCreateOFDPacket done [09:27:50]NVStorageSaveData kkm_last_timestamp [09:27:50]File name is /storage/kkm_last_timestamp [09:27:50]Write 4 bytes [09:27:50]NVStorageSaveData done [09:27:50]ExternCall_PrintAddStr [09:27:50]wPrintStart [09:27:50]Write to MH i2c: 01 00 00 54 1B 6F [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 FF 0F 84 [09:27:50]RasterBufferAndPrint [09:27:50]line Счет N : (1)2885435 [09:27:50]line ИНН: 02508201610067 [09:27:50]line Контрольно-Кассовый Чек [09:27:50]line ПРОДАЖА [09:27:50]line ТРК (МРК, ГНК) : 51 [09:27:50]line Товар: 2710194210 [09:27:50]line ДТ-К-5 [09:27:50]line 19.690 * 76.20 [09:27:50]line = 1500.38 [09:27:50]line НДС 12% НСП 1% [09:27:50]line > о реализуемом товаре [09:27:50]line ОКРУГЛЕНИЕ: -0.38 [09:27:50]line ИТОГО: 1500.00 [09:27:50]line Внесено: 1500.00 [09:27:50]line СДАЧА: 0.00 [09:27:50]line НСП 1% : 13.28 [09:27:50]line НДС 12% : 159.33 [09:27:50]line Наличными: 1500.00 [09:27:50]line Безнал.: 0.00 [09:27:50]line Место: АЗС № 85 "Партнер Нефть" [09:27:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:27:50]line СНО: Общий режим [09:27:50]line Чек 86 21.10.2024 09:27 [09:27:50]line Смена: 194 ФФД: 1.0 [09:27:50]line ЗНМ: 0300000167 [09:27:50]line РНМ: 0000000000156251 [09:27:50]line Версия ККМ: v1.0 [09:27:50]line ФМ: 0000000000963346 [09:27:50]line ФД: 69696 [09:27:50]line ФПД: 243485136594889 [09:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092752&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69696&fm=243485136594889&tin=02508201610067®Number=0000000000156251&sum=150000 [09:27:50]OFD Sender: Processing packet 69696 [packets to send 18, broken 17] [09:27:50]ProducePacketName [09:27:50]name=ofd_packets/00069696 [09:27:50]OFD Sender: To server: pG, [09:27:50]CommunicateWithHost lk.salyk.kg:30040 [09:27:50]ConnectInit lk.salyk.kg [09:27:50]written 0, free lines is 4095 [09:27:51]Connected sock=10 [09:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 08 03 04 01 2F 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 32 31 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 56 00 00 00 F4 03 04 00 98 1E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 10 01 00 35 04 06 00 DD 72 CD 13 27 C9 35 9F 17 BF 88 04 36 71 [09:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D4 1C 47 00 39 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 10 01 00 F4 03 04 00 3C C8 15 67 B6 04 01 00 00 B9 27 7D 2C 8B 39 BB 3F [09:27:51]CommunicateWithHost err = 0 [09:27:51]CheckOFDResponse [09:27:51]1017 (14) - 77093643461234 [09:27:51]1041 (16) - 0000000000963346 [09:27:51]1040 (4) - 69696 [09:27:51]1012 (4) - 21.10.2024 03:19 [09:27:51]1206 (1) - 0 [09:27:51]OFD Sender: Remove packet 69696 [09:27:51]ProducePacketName [09:27:51]name=ofd_packets/00069696 [09:27:51]NVStorageDeleteData [09:27:51]Write to MH i2c: 01 00 00 7F 1B 9A [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: 01 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: 01 07 00 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FA 0C A7 [09:27:51]RasterBufferAndPrint [09:27:51]line [09:27:51]line [09:27:51]line [09:27:51]line [09:27:51]line [09:27:51]written 0, free lines is 3328 [09:27:51]MH_Cut [09:27:51]Write to MH i2c: D1 01 00 86 1B 01 73 [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: D1 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: D1 01 00 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: D1 01 00 86 1B 00 72 [09:27:51]Write to MH i2c: 01 00 00 87 1B A2 [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]OFD Sender: No OFD packet to send [09:27:52]*** Cut start [09:27:52]*** Partial cut [09:27:52]*** CUTSNS_PIN = 1 [09:27:52]*** CUTSNS_PIN = 0 [09:27:52]*** Brake cut motor [09:27:52]Read from MH i2c: 01 [09:27:52]MH_I2C_Read... [09:27:52]*** Stop cut motor [09:27:52]*** Cut end [09:27:52]Read from MH i2c: 01 07 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 FF 0F B7 [09:27:52]process_action close_receipt done [09:27:52]requested_data is exist [09:27:52]produce_requested_data [09:27:52]requested_item fm.sn is exist - process it [09:27:52]wFMCommunicate request_size=4 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 11 00 00 [09:27:52]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 17 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [09:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:27:52]wFMCommunicate OK [09:27:52]requested_item fd.num is exist - process it [09:27:52]SAM_PROTO_GetFieldsCounters [09:27:52]wFMCommunicate request_size=4 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 13 00 00 [09:27:52]Write to MH i2c: E2 08 00 89 1B 80 13 00 00 00 00 00 00 20 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 62 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 62 00 89 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 10 01 00 0E 04 04 00 C2 00 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 50 [09:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 10 01 00 0E 04 04 00 C2 00 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:27:52]wFMCommunicate OK [09:27:52]SAM_PROTO_GetFieldsCounters done [09:27:52]requested_item shift.num is exist - process it [09:27:52]requested_item shift.opened is exist - process it [09:27:52]req_shift_opened [09:27:52]FM_GetShiftState [09:27:52]SAM_PROTO_GetShiftState [09:27:52]wFMCommunicate request_size=4 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 13 01 00 [09:27:52]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0E 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4E [09:27:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:27:52]wFMCommunicate OK [09:27:52]SAM_PROTO_GetShiftState done [09:27:52]FM_GetShiftState done [09:27:52]req_shift_opened done [09:27:52]requested_item shift.open_date is exist - process it [09:27:52]req_shift_open_date [09:27:52]req_shift_open_date done [09:27:52]produce_requested_data done [09:27:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69696,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:27:52]process_action_free close_receipt [09:27:52]json_value_free [09:27:52]json_value_free done [09:27:52]process_json_proto returns [09:27:52]Send response to host [09:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69696,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:27:52]free response buf [09:27:52]execute_script done [09:27:52]execute_script returns [09:27:52]free content buf [09:27:52]Sock 8.Close socket [09:27:52]Sock 8.Thread stoped [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:50]accept exits with 9 [09:30:50]New connection [09:30:50]New thread 3067313508 created [09:30:50]Thread 3067456868 joined [09:30:50]Waiting for new connection... [09:30:50] Sock 9.Parse request [09:30:50]Sock 9.Check first char [09:30:50]Sock 9.First char is OK [09:30:50]request: POST /json_proto HTTP/1.0 [09:30:50]Method: POST [09:30:50]URL: /json_proto [09:30:50]Method is POST - this is cgi request [09:30:50]url: /json_proto [09:30:50]query_string will be loaded in cgi processing [09:30:50]execute_cgi json_proto POST (null) [09:30:50]execute_cgi path=json_proto method=POST [09:30:50]POST find Content-Length [09:30:50]Host: 172.17.50.3:8080 [09:30:50]Content-Length: 685 [09:30:50]Content-Type: application/json [09:30:50] [09:30:50]POST finish read [09:30:50]Found Content-Length = 685 [09:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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" ] } } [09:30:50]execute_script... [09:30: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)2885436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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" ] } } [09:30:50]POST & json_proto [09:30:50]process_json_proto [09:30:50]json parsed OK: [09:30:50]protocol is kg_v1.0 [09:30:50]action value=close_receipt [09:30:50]process_action close_receipt [09:30:50]cmd_close_receipt [09:30:50]MH_GetDate [09:30:50]Write to MH i2c: F0 00 00 8B 1B 95 [09:30:50]Write i2c OK [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 09 00 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: F0 09 00 8B 1B 00 4D 1F 16 67 6B 98 1E 66 0E [09:30:50]GetLastDocTimeStamp 1729502872 [09:30:50]current date 1729503053 [09:30:50]FM_GetShiftState [09:30:50]SAM_PROTO_GetShiftState [09:30:50]wFMCommunicate request_size=4 [09:30:50]MH_SAM_APDU [09:30:50]CAPDU: 80 13 01 00 [09:30:50]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [09:30:50]Write i2c OK [09:30:50]MH_I2C_Read... [09:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:50]Read from MH i2c: E2 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: E2 0E 00 [09:30:50]MH_I2C_Read... [09:30:50]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 50 [09:30:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:30:50]wFMCommunicate OK [09:30:50]SAM_PROTO_GetShiftState done [09:30:50]FM_GetShiftState done [09:30:50]opened in 1729469703 [09:30:50]opened+sec_in_day 1729556103 [09:30:50]quantity*price = 80056 [09:30:50]sum+1 = 80057 [09:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 87 21.10.2024 09:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69697 ФПД: 128824037168703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69697&fm=128824037168703&tin=02508201610067®Number=0000000000156251&sum=80000 [09:30:51]StoreToDocumentArchive [09:30:51]shift 194 fd 69697 [09:30:51]save to /storage/0194/doc_00069697 [09:30:51]save last doc name /storage/0194/doc_00069697 to /storage/kkm_last_doc_name [09:30:51]save OK [09:30:51]Clear old archive folders... [09:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:30:51]tlvbuf is 00C40E90 [09:30:51]SAM_PROTO_ClearQueue [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 09 00 00 [09:30:51]Write to MH i2c: E2 08 00 99 1B 80 09 00 00 00 00 00 00 26 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]SAM_PROTO_ClearQueue done [09:30:51]KKMCreateOFDPacket [09:30:51]OFDProtocolAddRootSTLVToBuf [09:30:51]FM_MakeSignedData [09:30:51]FM_MakeSignedData [09:30:51]SAM_PROTO_SignData [09:30:51]wFMCommunicate request_size=4 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 0D 01 02 [09:30:51]Write to MH i2c: E2 08 00 9A 1B 80 0D 01 02 00 00 00 00 2E [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:51]Read from MH i2c: E2 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 [09:30:51]MH_I2C_Read... [09:30:51]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [09:30:51]RAPDU: 90 00 [09:30:51]wFMCommunicate OK [09:30:51]wFMCommunicate request_size=255 [09:30:51]MH_SAM_APDU [09:30:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 57 00 00 00 F4 03 04 00 4D 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 10 01 [09:30:51]Write to MH i2c: E2 02 01 9B 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 57 00 00 00 F4 03 04 00 4D 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 10 01 00 00 61 [09:30:51]Write i2c OK [09:30:51]MH_I2C_Read... [09:30:51]OFD Sender: No OFD packet to send [09:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:52]Read from MH i2c: E2 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 03 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [09:30:52]RAPDU: 90 00 [09:30:52]wFMCommunicate OK [09:30:52]wFMCommunicate request_size=16 [09:30:52]MH_SAM_APDU [09:30:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 2A 2E F9 56 3F [09:30:52]Write to MH i2c: E2 13 00 9C 1B 80 0D 02 02 0B 00 00 35 04 06 00 75 2A 2E F9 56 3F 00 00 E1 [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:52]Read from MH i2c: E2 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 03 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [09:30:52]RAPDU: 90 00 [09:30:52]wFMCommunicate OK [09:30:52]wFMCommunicate request_size=4 [09:30:52]MH_SAM_APDU [09:30:52]CAPDU: 80 0D 03 02 [09:30:52]Write to MH i2c: E2 08 00 9D 1B 80 0D 03 02 00 00 00 00 33 [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:52]Read from MH i2c: E2 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 0B 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 0B 00 9D 1B 00 27 E0 6D 13 6F FF 3B 5D 90 00 C1 [09:30:52]RAPDU: 27 E0 6D 13 6F FF 3B 5D 90 00 [09:30:52]wFMCommunicate OK [09:30:52]SAM_PROTO_SignData done [09:30:52]FM_MakeSignedData done [09:30:52]CreateOFDProtocolMessage [09:30:52]wFMCommunicate request_size=4 [09:30:52]MH_SAM_APDU [09:30:52]CAPDU: 80 11 00 00 [09:30:52]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:52]Read from MH i2c: E2 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 17 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [09:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:30:52]wFMCommunicate OK [09:30:52]CreateOFDProtocolMessage done [09:30:52]OFDSenderStorePacket 69697 [09:30:52]StoreOFDPacket docnum=69697 [09:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1E 81 0D 01 D3 12 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 57 00 00 00 F4 03 04 00 4D 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 10 01 00 35 04 06 00 75 2A 2E F9 56 3F 27 E0 6D 13 6F FF 3B 5D [09:30:52]CheckFolder [09:30:52]dirname=/storage/ofd_packets [09:30:52]CheckFolder done [09:30:52]ProducePacketName [09:30:52]name=ofd_packets/00069697 [09:30:52]NVStorageSaveData ofd_packets/00069697 [09:30:52]File name is /storage/ofd_packets/00069697 [09:30:52]Write 307 bytes [09:30:52]NVStorageSaveData done [09:30:52]OFDSenderStorePacket done [09:30:52]KKMCreateOFDPacket done [09:30:52]NVStorageSaveData kkm_last_timestamp [09:30:52]File name is /storage/kkm_last_timestamp [09:30:52]Write 4 bytes [09:30:52]NVStorageSaveData done [09:30:52]ExternCall_PrintAddStr [09:30:52]wPrintStart [09:30:52]Write to MH i2c: 01 00 00 9F 1B BA [09:30:52]Write i2c OK [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 07 00 [09:30:52]MH_I2C_Read... [09:30:52]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [09:30:52]RasterBufferAndPrint [09:30:52]line Счет N : (1)2885436 [09:30:52]line ИНН: 02508201610067 [09:30:52]line Контрольно-Кассовый Чек [09:30:52]line ПРОДАЖА [09:30:52]line ТРК (МРК, ГНК) : 41 [09:30:52]line Товар: 2710194240 [09:30:52]line D-ENERGY Дт-К-2 [09:30:52]line 10.370 * 77.20 [09:30:52]line = 800.56 [09:30:52]line НДС 12% НСП 1% [09:30:52]line > о реализуемом товаре [09:30:52]line ОКРУГЛЕНИЕ: -0.56 [09:30:52]line ИТОГО: 800.00 [09:30:52]line Внесено: 800.00 [09:30:52]line СДАЧА: 0.00 [09:30:52]line НСП 1% : 7.08 [09:30:52]line НДС 12% : 85.01 [09:30:52]line Наличными: 800.00 [09:30:52]line Безнал.: 0.00 [09:30:52]line Место: АЗС № 85 "Партнер Нефть" [09:30:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:30:52]line СНО: Общий режим [09:30:52]line Чек 87 21.10.2024 09:30 [09:30:52]line Смена: 194 ФФД: 1.0 [09:30:52]line ЗНМ: 0300000167 [09:30:52]line РНМ: 0000000000156251 [09:30:52]line Версия ККМ: v1.0 [09:30:52]line ФМ: 0000000000963346 [09:30:52]line ФД: 69697 [09:30:52]line ФПД: 128824037168703 [09:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69697&fm=128824037168703&tin=02508201610067®Number=0000000000156251&sum=80000 [09:30:52]OFD Sender: Processing packet 69697 [packets to send 18, broken 17] [09:30:52]ProducePacketName [09:30:52]name=ofd_packets/00069697 [09:30:52]OFD Sender: To server: pG, [09:30:52]CommunicateWithHost lk.salyk.kg:30040 [09:30:52]ConnectInit lk.salyk.kg [09:30:52]written 0, free lines is 4095 [09:30:52]Connected sock=10 [09:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1E 81 0D 01 D3 12 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 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 35 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 57 00 00 00 F4 03 04 00 4D 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 10 01 00 35 04 06 00 75 2A 2E F9 56 3F 27 E0 6D 13 6F FF 3B 5D [09:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 62 4E 47 00 70 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 10 01 00 F4 03 04 00 F1 C8 15 67 B6 04 01 00 00 C0 4F 13 7C FF 6F BB 24 [09:30:52]CommunicateWithHost err = 0 [09:30:52]CheckOFDResponse [09:30:52]1017 (14) - 77093643461234 [09:30:52]1041 (16) - 0000000000963346 [09:30:52]1040 (4) - 69697 [09:30:52]1012 (4) - 21.10.2024 03:22 [09:30:52]1206 (1) - 0 [09:30:52]OFD Sender: Remove packet 69697 [09:30:52]ProducePacketName [09:30:52]name=ofd_packets/00069697 [09:30:52]NVStorageDeleteData [09:30:53]Write to MH i2c: 01 00 00 CA 1B E5 [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: 01 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: 01 07 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 F9 0C F1 [09:30:53]RasterBufferAndPrint [09:30:53]line [09:30:53]line [09:30:53]line [09:30:53]line [09:30:53]line [09:30:53]written 0, free lines is 3330 [09:30:53]MH_Cut [09:30:53]Write to MH i2c: D1 01 00 D1 1B 01 BE [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: D1 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: D1 01 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: D1 01 00 D1 1B 00 BD [09:30:53]Write to MH i2c: 01 00 00 D2 1B ED [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]OFD Sender: No OFD packet to send [09:30:53]*** Cut start [09:30:53]*** Partial cut [09:30:53]*** CUTSNS_PIN = 1 [09:30:53]*** CUTSNS_PIN = 0 [09:30:54]*** Brake cut motor [09:30:54]Read from MH i2c: 01 [09:30:54]MH_I2C_Read... [09:30:54]*** Stop cut motor [09:30:54]*** Cut end [09:30:54]Read from MH i2c: 01 07 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 FF 0F 02 [09:30:54]process_action close_receipt done [09:30:54]requested_data is exist [09:30:54]produce_requested_data [09:30:54]requested_item fm.sn is exist - process it [09:30:54]wFMCommunicate request_size=4 [09:30:54]MH_SAM_APDU [09:30:54]CAPDU: 80 11 00 00 [09:30:54]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:54]Read from MH i2c: E2 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 17 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [09:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:30:54]wFMCommunicate OK [09:30:54]requested_item fd.num is exist - process it [09:30:54]SAM_PROTO_GetFieldsCounters [09:30:54]wFMCommunicate request_size=4 [09:30:54]MH_SAM_APDU [09:30:54]CAPDU: 80 13 00 00 [09:30:54]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:54]Read from MH i2c: E2 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 62 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 62 00 D4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 10 01 00 0E 04 04 00 C2 00 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 9F [09:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 10 01 00 0E 04 04 00 C2 00 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:30:54]wFMCommunicate OK [09:30:54]SAM_PROTO_GetFieldsCounters done [09:30:54]requested_item shift.num is exist - process it [09:30:54]requested_item shift.opened is exist - process it [09:30:54]req_shift_opened [09:30:54]FM_GetShiftState [09:30:54]SAM_PROTO_GetShiftState [09:30:54]wFMCommunicate request_size=4 [09:30:54]MH_SAM_APDU [09:30:54]CAPDU: 80 13 01 00 [09:30:54]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:54]Read from MH i2c: E2 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 0E 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 99 [09:30:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:30:54]wFMCommunicate OK [09:30:54]SAM_PROTO_GetShiftState done [09:30:54]FM_GetShiftState done [09:30:54]req_shift_opened done [09:30:54]requested_item shift.open_date is exist - process it [09:30:54]req_shift_open_date [09:30:54]req_shift_open_date done [09:30:54]produce_requested_data done [09:30:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69697,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:30:54]process_action_free close_receipt [09:30:54]json_value_free [09:30:54]json_value_free done [09:30:54]process_json_proto returns [09:30:54]Send response to host [09:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69697,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:30:54]free response buf [09:30:54]execute_script done [09:30:54]execute_script returns [09:30:54]free content buf [09:30:54]Sock 9.Close socket [09:30:54]Sock 9.Thread stoped [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]accept exits with 8 [09:31:43]New connection [09:31:43]New thread 3067456868 created [09:31:43]Thread 3067313508 joined [09:31:43]Waiting for new connection... [09:31:43] Sock 8.Parse request [09:31:43]Sock 8.Check first char [09:31:43]Sock 8.First char is OK [09:31:43]request: POST /json_proto HTTP/1.0 [09:31:43]Method: POST [09:31:43]URL: /json_proto [09:31:43]Method is POST - this is cgi request [09:31:43]url: /json_proto [09:31:43]query_string will be loaded in cgi processing [09:31:43]execute_cgi json_proto POST (null) [09:31:43]execute_cgi path=json_proto method=POST [09:31:43]POST find Content-Length [09:31:43]Host: 172.17.50.3:8080 [09:31:43]Content-Length: 683 [09:31:43]Content-Type: application/json [09:31:43] [09:31:43]POST finish read [09:31:43]Found Content-Length = 683 [09:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:43]execute_script... [09:31: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)2885437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:43]POST & json_proto [09:31:43]process_json_proto [09:31:43]json parsed OK: [09:31:43]protocol is kg_v1.0 [09:31:43]action value=close_receipt [09:31:43]process_action close_receipt [09:31:43]cmd_close_receipt [09:31:43]MH_GetDate [09:31:43]Write to MH i2c: F0 00 00 D6 1B E0 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: F0 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: F0 09 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: F0 09 00 D6 1B 00 82 1F 16 67 6B 98 1E 66 8E [09:31:43]GetLastDocTimeStamp 1729503053 [09:31:43]current date 1729503106 [09:31:43]FM_GetShiftState [09:31:43]SAM_PROTO_GetShiftState [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 13 01 00 [09:31:43]Write to MH i2c: E2 08 00 D7 1B 80 13 01 00 00 00 00 00 6F [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0E 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0E 00 D7 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9B [09:31:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:31:43]wFMCommunicate OK [09:31:43]SAM_PROTO_GetShiftState done [09:31:43]FM_GetShiftState done [09:31:43]opened in 1729469703 [09:31:43]opened+sec_in_day 1729556103 [09:31:43]quantity*price = 100015 [09:31:43]sum+1 = 100017 [09:31:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 88 21.10.2024 09:31 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69698 ФПД: 161840473793629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69698&fm=161840473793629&tin=02508201610067®Number=0000000000156251&sum=100000 [09:31:44]StoreToDocumentArchive [09:31:44]shift 194 fd 69698 [09:31:44]save to /storage/0194/doc_00069698 [09:31:44]save last doc name /storage/0194/doc_00069698 to /storage/kkm_last_doc_name [09:31:44]save OK [09:31:44]Clear old archive folders... [09:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:44]tlvbuf is 00CAEF10 [09:31:44]SAM_PROTO_ClearQueue [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 09 00 00 [09:31:44]Write to MH i2c: E2 08 00 E4 1B 80 09 00 00 00 00 00 00 71 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_ClearQueue done [09:31:44]KKMCreateOFDPacket [09:31:44]OFDProtocolAddRootSTLVToBuf [09:31:44]FM_MakeSignedData [09:31:44]FM_MakeSignedData [09:31:44]SAM_PROTO_SignData [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 01 02 [09:31:44]Write to MH i2c: E2 08 00 E5 1B 80 0D 01 02 00 00 00 00 79 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=255 [09:31:44]MH_SAM_APDU [09:31:44]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 10 01 00 35 04 06 00 93 [09:31:44]Write to MH i2c: E2 02 01 E6 1B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 10 01 00 35 04 06 00 93 00 00 1A [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=10 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 02 02 05 31 6B F3 64 5D [09:31:44]Write to MH i2c: E2 0D 00 E7 1B 80 0D 02 02 05 00 31 6B F3 64 5D 00 00 D6 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [09:31:44]RAPDU: 90 00 [09:31:44]wFMCommunicate OK [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 0D 03 02 [09:31:44]Write to MH i2c: E2 08 00 E8 1B 80 0D 03 02 00 00 00 00 7E [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0B 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0B 00 E8 1B 00 97 CB B6 DD FB 22 66 A4 90 00 9B [09:31:44]RAPDU: 97 CB B6 DD FB 22 66 A4 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_SignData done [09:31:44]FM_MakeSignedData done [09:31:44]CreateOFDProtocolMessage [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 E9 1B 80 11 00 00 00 00 00 00 7E [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 E9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [09:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:44]wFMCommunicate OK [09:31:44]CreateOFDProtocolMessage done [09:31:44]OFDSenderStorePacket 69698 [09:31:44]StoreOFDPacket docnum=69698 [09:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 25 07 01 73 86 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 10 01 00 35 04 06 00 93 31 6B F3 64 5D 97 CB B6 DD FB 22 66 A4 [09:31:44]CheckFolder [09:31:44]dirname=/storage/ofd_packets [09:31:44]CheckFolder done [09:31:44]ProducePacketName [09:31:44]name=ofd_packets/00069698 [09:31:44]NVStorageSaveData ofd_packets/00069698 [09:31:44]File name is /storage/ofd_packets/00069698 [09:31:44]Write 301 bytes [09:31:44]NVStorageSaveData done [09:31:44]OFDSenderStorePacket done [09:31:44]KKMCreateOFDPacket done [09:31:44]NVStorageSaveData kkm_last_timestamp [09:31:44]File name is /storage/kkm_last_timestamp [09:31:44]Write 4 bytes [09:31:44]NVStorageSaveData done [09:31:44]ExternCall_PrintAddStr [09:31:44]wPrintStart [09:31:44]Write to MH i2c: 01 00 00 EA 1B 05 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [09:31:44]RasterBufferAndPrint [09:31:44]line Счет N : (1)2885437 [09:31:44]line ИНН: 02508201610067 [09:31:44]line Контрольно-Кассовый Чек [09:31:45]line ПРОДАЖА [09:31:45]line ТРК (МРК, ГНК) : 22 [09:31:45]line Товар: 2710124130 [09:31:45]line Аи-92-К-5 [09:31:45]line 14.950 * 66.90 [09:31:45]line = 1000.16 [09:31:45]line НДС 12% НСП 1% [09:31:45]line > о реализуемом товаре [09:31:45]line ОКРУГЛЕНИЕ: -0.16 [09:31:45]line ИТОГО: 1000.00 [09:31:45]line Внесено: 1000.00 [09:31:45]line СДАЧА: 0.00 [09:31:45]line НСП 1% : 8.85 [09:31:45]line НДС 12% : 106.21 [09:31:45]line Наличными: 1000.00 [09:31:45]line Безнал.: 0.00 [09:31:45]line Место: АЗС № 85 "Партнер Нефть" [09:31:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:31:45]line СНО: Общий режим [09:31:45]line Чек 88 21.10.2024 09:31 [09:31:45]line Смена: 194 ФФД: 1.0 [09:31:45]line ЗНМ: 0300000167 [09:31:45]line РНМ: 0000000000156251 [09:31:45]line Версия ККМ: v1.0 [09:31:45]line ФМ: 0000000000963346 [09:31:45]line ФД: 69698 [09:31:45]line ФПД: 161840473793629 [09:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69698&fm=161840473793629&tin=02508201610067®Number=0000000000156251&sum=100000 [09:31:45]OFD Sender: Processing packet 69698 [packets to send 18, broken 17] [09:31:45]ProducePacketName [09:31:45]name=ofd_packets/00069698 [09:31:45]OFD Sender: To server: pG, [09:31:45]CommunicateWithHost lk.salyk.kg:30040 [09:31:45]ConnectInit lk.salyk.kg [09:31:45]written 0, free lines is 4095 [09:31:45]Connected sock=10 [09:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 25 07 01 73 86 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 82 1F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 10 01 00 35 04 06 00 93 31 6B F3 64 5D 97 CB B6 DD FB 22 66 A4 [09:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A 60 47 00 33 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 39 36 33 33 34 36 10 04 04 00 42 10 01 00 F4 03 04 00 26 C9 15 67 B6 04 01 00 00 95 47 06 01 EF 6C 5A 04 [09:31:45]CommunicateWithHost err = 0 [09:31:45]CheckOFDResponse [09:31:45]1017 (14) - 77093643461234 [09:31:45]1041 (16) - 0000000000963346 [09:31:45]1040 (4) - 69698 [09:31:45]1012 (4) - 21.10.2024 03:23 [09:31:45]1206 (1) - 0 [09:31:45]OFD Sender: Remove packet 69698 [09:31:45]ProducePacketName [09:31:45]name=ofd_packets/00069698 [09:31:45]NVStorageDeleteData [09:31:45]Write to MH i2c: 01 00 00 15 1C 31 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 F9 0C 3D [09:31:45]RasterBufferAndPrint [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]line [09:31:45]written 0, free lines is 3331 [09:31:45]MH_Cut [09:31:45]Write to MH i2c: D1 01 00 1C 1C 01 0A [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 01 00 [09:31:45]MH_I2C_Read... [09:31:45]Read from MH i2c: D1 01 00 1C 1C 00 09 [09:31:45]Write to MH i2c: 01 00 00 1D 1C 39 [09:31:45]Write i2c OK [09:31:45]MH_I2C_Read... [09:31:46]OFD Sender: No OFD packet to send [09:31:46]*** Cut start [09:31:46]*** Partial cut [09:31:46]*** CUTSNS_PIN = 1 [09:31:46]*** CUTSNS_PIN = 0 [09:31:46]*** Brake cut motor [09:31:47]Read from MH i2c: 01 [09:31:47]MH_I2C_Read... [09:31:47]*** Stop cut motor [09:31:47]*** Cut end [09:31:47]Read from MH i2c: 01 07 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 FF 0F 4E [09:31:47]process_action close_receipt done [09:31:47]requested_data is exist [09:31:47]produce_requested_data [09:31:47]requested_item fm.sn is exist - process it [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 11 00 00 [09:31:47]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 17 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [09:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:47]wFMCommunicate OK [09:31:47]requested_item fd.num is exist - process it [09:31:47]SAM_PROTO_GetFieldsCounters [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 00 00 [09:31:47]Write to MH i2c: E2 08 00 1F 1C 80 13 00 00 00 00 00 00 B7 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 62 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 62 00 1F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 10 01 00 0E 04 04 00 C2 00 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 EF [09:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 10 01 00 0E 04 04 00 C2 00 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:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetFieldsCounters done [09:31:47]requested_item shift.num is exist - process it [09:31:47]requested_item shift.opened is exist - process it [09:31:47]req_shift_opened [09:31:47]FM_GetShiftState [09:31:47]SAM_PROTO_GetShiftState [09:31:47]wFMCommunicate request_size=4 [09:31:47]MH_SAM_APDU [09:31:47]CAPDU: 80 13 01 00 [09:31:47]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:47]Read from MH i2c: E2 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E5 [09:31:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:31:47]wFMCommunicate OK [09:31:47]SAM_PROTO_GetShiftState done [09:31:47]FM_GetShiftState done [09:31:47]req_shift_opened done [09:31:47]requested_item shift.open_date is exist - process it [09:31:47]req_shift_open_date [09:31:47]req_shift_open_date done [09:31:47]produce_requested_data done [09:31:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69698,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:31:47]process_action_free close_receipt [09:31:47]json_value_free [09:31:47]json_value_free done [09:31:47]process_json_proto returns [09:31:47]Send response to host [09:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69698,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:31:47]free response buf [09:31:47]execute_script done [09:31:47]execute_script returns [09:31:47]free content buf [09:31:47]Sock 8.Close socket [09:31:47]Sock 8.Thread stoped [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]accept exits with 9 [09:34:21]New connection [09:34:21]New thread 3067313508 created [09:34:21]Thread 3067456868 joined [09:34:21]Waiting for new connection... [09:34:21] Sock 9.Parse request [09:34:21]Sock 9.Check first char [09:34:21]Sock 9.First char is OK [09:34:21]request: POST /json_proto HTTP/1.0 [09:34:21]Method: POST [09:34:21]URL: /json_proto [09:34:21]Method is POST - this is cgi request [09:34:21]url: /json_proto [09:34:21]query_string will be loaded in cgi processing [09:34:21]execute_cgi json_proto POST (null) [09:34:21]execute_cgi path=json_proto method=POST [09:34:21]POST find Content-Length [09:34:21]Host: 172.17.50.3:8080 [09:34:21]Content-Length: 683 [09:34:21]Content-Type: application/json [09:34:21] [09:34:21]POST finish read [09:34:21]Found Content-Length = 683 [09:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885439", "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:34:21]execute_script... [09:34: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)2885439", "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:34:21]POST & json_proto [09:34:21]process_json_proto [09:34:21]json parsed OK: [09:34:21]protocol is kg_v1.0 [09:34:21]action value=close_receipt [09:34:21]process_action close_receipt [09:34:21]cmd_close_receipt [09:34:21]MH_GetDate [09:34:21]Write to MH i2c: F0 00 00 21 1C 2C [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: F0 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: F0 09 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: F0 09 00 21 1C 00 20 20 16 67 6B 98 1E 66 79 [09:34:21]GetLastDocTimeStamp 1729503106 [09:34:21]current date 1729503264 [09:34:21]FM_GetShiftState [09:34:21]SAM_PROTO_GetShiftState [09:34:21]wFMCommunicate request_size=4 [09:34:21]MH_SAM_APDU [09:34:21]CAPDU: 80 13 01 00 [09:34:21]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:21]Read from MH i2c: E2 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 0E 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [09:34:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:21]wFMCommunicate OK [09:34:21]SAM_PROTO_GetShiftState done [09:34:21]FM_GetShiftState done [09:34:21]opened in 1729469703 [09:34:21]opened+sec_in_day 1729556103 [09:34:21]quantity*price = 100021 [09:34:21]sum+1 = 100023 [09:34: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 89 21.10.2024 09:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69699 ФПД: 109768218585455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69699&fm=109768218585455&tin=02508201610067®Number=0000000000156251&sum=100000 [09:34:22]StoreToDocumentArchive [09:34:22]shift 194 fd 69699 [09:34:22]save to /storage/0194/doc_00069699 [09:34:22]save last doc name /storage/0194/doc_00069699 to /storage/kkm_last_doc_name [09:34:22]save OK [09:34:22]Clear old archive folders... [09:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:22]tlvbuf is B6E23070 [09:34:22]SAM_PROTO_ClearQueue [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 09 00 00 [09:34:22]Write to MH i2c: E2 08 00 2F 1C 80 09 00 00 00 00 00 00 BD [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_ClearQueue done [09:34:22]KKMCreateOFDPacket [09:34:22]OFDProtocolAddRootSTLVToBuf [09:34:22]FM_MakeSignedData [09:34:22]FM_MakeSignedData [09:34:22]SAM_PROTO_SignData [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 0D 01 02 [09:34:22]Write to MH i2c: E2 08 00 30 1C 80 0D 01 02 00 00 00 00 C5 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]wFMCommunicate request_size=255 [09:34:22]MH_SAM_APDU [09:34: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 59 00 00 00 F4 03 04 00 20 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 10 01 00 35 04 06 00 63 [09:34:22]Write to MH i2c: E2 02 01 31 1C 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 59 00 00 00 F4 03 04 00 20 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 10 01 00 35 04 06 00 63 00 00 FA [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]wFMCommunicate request_size=10 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 0D 02 02 05 D5 67 AD 29 6F [09:34:22]Write to MH i2c: E2 0D 00 32 1C 80 0D 02 02 05 00 D5 67 AD 29 6F 00 00 53 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 0D 03 02 [09:34:22]Write to MH i2c: E2 08 00 33 1C 80 0D 03 02 00 00 00 00 CA [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0B 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0B 00 33 1C 00 AF 0D 97 31 35 89 AC 91 90 00 4A [09:34:22]RAPDU: AF 0D 97 31 35 89 AC 91 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_SignData done [09:34:22]FM_MakeSignedData done [09:34:22]CreateOFDProtocolMessage [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 11 00 00 [09:34:22]Write to MH i2c: E2 08 00 34 1C 80 11 00 00 00 00 00 00 CA [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 34 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [09:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:22]wFMCommunicate OK [09:34:22]CreateOFDProtocolMessage done [09:34:22]OFDSenderStorePacket 69699 [09:34:22]StoreOFDPacket docnum=69699 [09:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 D7 07 01 52 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 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 59 00 00 00 F4 03 04 00 20 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 10 01 00 35 04 06 00 63 D5 67 AD 29 6F AF 0D 97 31 35 89 AC 91 [09:34:22]CheckFolder [09:34:22]dirname=/storage/ofd_packets [09:34:22]CheckFolder done [09:34:22]ProducePacketName [09:34:22]name=ofd_packets/00069699 [09:34:22]NVStorageSaveData ofd_packets/00069699 [09:34:22]File name is /storage/ofd_packets/00069699 [09:34:22]Write 301 bytes [09:34:22]NVStorageSaveData done [09:34:22]OFDSenderStorePacket done [09:34:22]KKMCreateOFDPacket done [09:34:22]NVStorageSaveData kkm_last_timestamp [09:34:22]File name is /storage/kkm_last_timestamp [09:34:22]Write 4 bytes [09:34:22]NVStorageSaveData done [09:34:22]ExternCall_PrintAddStr [09:34:22]wPrintStart [09:34:22]Write to MH i2c: 01 00 00 35 1C 51 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 FF 0F 66 [09:34:22]RasterBufferAndPrint [09:34:22]line Счет N : (1)2885439 [09:34:22]line ИНН: 02508201610067 [09:34:22]line Контрольно-Кассовый Чек [09:34:22]line ПРОДАЖА [09:34:22]line ТРК (МРК, ГНК) : 33 [09:34:22]line Товар: 2710124500 [09:34:22]line Аи-95-К-5 [09:34:22]line 13.480 * 74.20 [09:34:22]line = 1000.22 [09:34:22]line НДС 12% НСП 1% [09:34:22]line > о реализуемом товаре [09:34:22]line ОКРУГЛЕНИЕ: -0.22 [09:34:22]line ИТОГО: 1000.00 [09:34:22]line Внесено: 1000.00 [09:34:22]line СДАЧА: 0.00 [09:34:22]line НСП 1% : 8.85 [09:34:22]line НДС 12% : 106.22 [09:34:22]line Наличными: 1000.00 [09:34:22]line Безнал.: 0.00 [09:34:22]line Место: АЗС № 85 "Партнер Нефть" [09:34:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:34:22]line СНО: Общий режим [09:34:22]line Чек 89 21.10.2024 09:34 [09:34:22]line Смена: 194 ФФД: 1.0 [09:34:22]line ЗНМ: 0300000167 [09:34:22]line РНМ: 0000000000156251 [09:34:22]line Версия ККМ: v1.0 [09:34:22]line ФМ: 0000000000963346 [09:34:22]line ФД: 69699 [09:34:22]line ФПД: 109768218585455 [09:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69699&fm=109768218585455&tin=02508201610067®Number=0000000000156251&sum=100000 [09:34:23]OFD Sender: Processing packet 69699 [packets to send 18, broken 17] [09:34:23]ProducePacketName [09:34:23]name=ofd_packets/00069699 [09:34:23]OFD Sender: To server: pG, [09:34:23]CommunicateWithHost lk.salyk.kg:30040 [09:34:23]ConnectInit lk.salyk.kg [09:34:23]written 0, free lines is 4095 [09:34:23]Connected sock=10 [09:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 D7 07 01 52 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 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 59 00 00 00 F4 03 04 00 20 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 10 01 00 35 04 06 00 63 D5 67 AD 29 6F AF 0D 97 31 35 89 AC 91 [09:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AF FB 47 00 A9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 10 01 00 F4 03 04 00 C4 C9 15 67 B6 04 01 00 00 AB 1C 02 E8 FE 73 40 94 [09:34:23]CommunicateWithHost err = 0 [09:34:23]CheckOFDResponse [09:34:23]1017 (14) - 77093643461234 [09:34:23]1041 (16) - 0000000000963346 [09:34:23]1040 (4) - 69699 [09:34:23]1012 (4) - 21.10.2024 03:25 [09:34:23]1206 (1) - 0 [09:34:23]OFD Sender: Remove packet 69699 [09:34:23]ProducePacketName [09:34:23]name=ofd_packets/00069699 [09:34:23]NVStorageDeleteData [09:34:23]Write to MH i2c: 01 00 00 60 1C 7C [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: 01 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: 01 07 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 EC 0C 7B [09:34:23]RasterBufferAndPrint [09:34:23]line [09:34:23]line [09:34:23]line [09:34:23]line [09:34:23]line [09:34:23]written 0, free lines is 3317 [09:34:23]MH_Cut [09:34:23]Write to MH i2c: D1 01 00 67 1C 01 55 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: D1 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: D1 01 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: D1 01 00 67 1C 00 54 [09:34:23]Write to MH i2c: 01 00 00 68 1C 84 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:24]OFD Sender: No OFD packet to send [09:34:24]*** Cut start [09:34:24]*** Partial cut [09:34:24]*** CUTSNS_PIN = 1 [09:34:24]*** CUTSNS_PIN = 0 [09:34:24]*** Brake cut motor [09:34:25]Read from MH i2c: 01 [09:34:25]MH_I2C_Read... [09:34:25]*** Stop cut motor [09:34:25]*** Cut end [09:34:25]Read from MH i2c: 01 07 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [09:34:25]process_action close_receipt done [09:34:25]requested_data is exist [09:34:25]produce_requested_data [09:34:25]requested_item fm.sn is exist - process it [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 11 00 00 [09:34:25]Write to MH i2c: E2 08 00 69 1C 80 11 00 00 00 00 00 00 FF [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 17 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 17 00 69 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [09:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:25]wFMCommunicate OK [09:34:25]requested_item fd.num is exist - process it [09:34:25]SAM_PROTO_GetFieldsCounters [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 13 00 00 [09:34:25]Write to MH i2c: E2 08 00 6A 1C 80 13 00 00 00 00 00 00 02 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 62 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 62 00 6A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 10 01 00 0E 04 04 00 C2 00 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 3E [09:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 10 01 00 0E 04 04 00 C2 00 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 [09:34:25]wFMCommunicate OK [09:34:25]SAM_PROTO_GetFieldsCounters done [09:34:25]requested_item shift.num is exist - process it [09:34:25]requested_item shift.opened is exist - process it [09:34:25]req_shift_opened [09:34:25]FM_GetShiftState [09:34:25]SAM_PROTO_GetShiftState [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 13 01 00 [09:34:25]Write to MH i2c: E2 08 00 6B 1C 80 13 01 00 00 00 00 00 04 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 6B 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 30 [09:34:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:25]wFMCommunicate OK [09:34:25]SAM_PROTO_GetShiftState done [09:34:25]FM_GetShiftState done [09:34:25]req_shift_opened done [09:34:25]requested_item shift.open_date is exist - process it [09:34:25]req_shift_open_date [09:34:25]req_shift_open_date done [09:34:25]produce_requested_data done [09:34:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69699,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:34:25]process_action_free close_receipt [09:34:25]json_value_free [09:34:25]json_value_free done [09:34:25]process_json_proto returns [09:34:25]Send response to host [09:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69699,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:34:25]free response buf [09:34:25]execute_script done [09:34:25]execute_script returns [09:34:25]free content buf [09:34:25]Sock 9.Close socket [09:34:25]Sock 9.Thread stoped [09:34:25]accept exits with 8 [09:34:25]New connection [09:34:25]New thread 3067456868 created [09:34:25]Thread 3067313508 joined [09:34:25]Waiting for new connection... [09:34:25] Sock 8.Parse request [09:34:25]Sock 8.Check first char [09:34:25]Sock 8.First char is OK [09:34:25]request: POST /json_proto HTTP/1.0 [09:34:25]Method: POST [09:34:25]URL: /json_proto [09:34:25]Method is POST - this is cgi request [09:34:25]url: /json_proto [09:34:25]query_string will be loaded in cgi processing [09:34:25]execute_cgi json_proto POST (null) [09:34:25]execute_cgi path=json_proto method=POST [09:34:25]POST find Content-Length [09:34:25]Host: 172.17.50.3:8080 [09:34:25]Content-Length: 754 [09:34:25]Content-Type: application/json [09:34:25] [09:34:25]POST finish read [09:34:25]Found Content-Length = 754 [09:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885438", "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" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]execute_script... [09:34: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)2885438", "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" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:25]POST & json_proto [09:34:25]process_json_proto [09:34:25]json parsed OK: [09:34:25]protocol is kg_v1.0 [09:34:25]action value=close_receipt [09:34:25]process_action close_receipt [09:34:25]cmd_close_receipt [09:34:25]MH_GetDate [09:34:25]Write to MH i2c: F0 00 00 6C 1C 77 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: F0 09 00 6C 1C 00 24 20 16 67 6B 98 1E 66 C8 [09:34:25]GetLastDocTimeStamp 1729503264 [09:34:25]current date 1729503268 [09:34:25]FM_GetShiftState [09:34:25]SAM_PROTO_GetShiftState [09:34:25]wFMCommunicate request_size=4 [09:34:25]MH_SAM_APDU [09:34:25]CAPDU: 80 13 01 00 [09:34:25]Write to MH i2c: E2 08 00 6D 1C 80 13 01 00 00 00 00 00 06 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:25]Read from MH i2c: E2 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: E2 0E 00 6D 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [09:34:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:25]wFMCommunicate OK [09:34:25]SAM_PROTO_GetShiftState done [09:34:25]FM_GetShiftState done [09:34:25]opened in 1729469703 [09:34:25]opened+sec_in_day 1729556103 [09:34:25]quantity*price = 0 [09:34:25]sum+1 = 1 [09:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 90 21.10.2024 09:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69700 ФПД: 197031202930090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093428&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69700&fm=197031202930090&tin=02508201610067®Number=0000000000156251&sum=0 [09:34:27]StoreToDocumentArchive [09:34:27]shift 194 fd 69700 [09:34:27]save to /storage/0194/doc_00069700 [09:34:27]save last doc name /storage/0194/doc_00069700 to /storage/kkm_last_doc_name [09:34:27]save OK [09:34:27]Clear old archive folders... [09:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:27]tlvbuf is B6F234E0 [09:34:27]SAM_PROTO_ClearQueue [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 09 00 00 [09:34:27]Write to MH i2c: E2 08 00 7A 1C 80 09 00 00 00 00 00 00 08 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_ClearQueue done [09:34:27]KKMCreateOFDPacket [09:34:27]OFDProtocolAddRootSTLVToBuf [09:34:27]FM_MakeSignedData [09:34:27]FM_MakeSignedData [09:34:27]SAM_PROTO_SignData [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 01 02 [09:34:27]Write to MH i2c: E2 08 00 7B 1C 80 0D 01 02 00 00 00 00 10 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 7B 1C 00 90 00 0B [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=255 [09:34:27]MH_SAM_APDU [09:34: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 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 5A 00 00 00 F4 03 04 00 24 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 10 01 00 35 04 06 00 B3 [09:34:27]Write to MH i2c: E2 02 01 7C 1C 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 58 1B 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 5A 00 00 00 F4 03 04 00 24 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 10 01 00 35 04 06 00 B3 00 00 6C [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=10 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 02 02 05 32 E6 DC 3D AA [09:34:27]Write to MH i2c: E2 0D 00 7D 1C 80 0D 02 02 05 00 32 E6 DC 3D AA 00 00 F8 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [09:34:27]RAPDU: 90 00 [09:34:27]wFMCommunicate OK [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 0D 03 02 [09:34:27]Write to MH i2c: E2 08 00 7E 1C 80 0D 03 02 00 00 00 00 15 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0B 00 7E 1C 00 56 2D F9 1E A3 57 0E 9F 90 00 57 [09:34:27]RAPDU: 56 2D F9 1E A3 57 0E 9F 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_SignData done [09:34:27]FM_MakeSignedData done [09:34:27]CreateOFDProtocolMessage [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 11 00 00 [09:34:27]Write to MH i2c: E2 08 00 7F 1C 80 11 00 00 00 00 00 00 15 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 7F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [09:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:27]wFMCommunicate OK [09:34:27]CreateOFDProtocolMessage done [09:34:27]OFDSenderStorePacket 69700 [09:34:27]StoreOFDPacket docnum=69700 [09:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 0A 07 01 E2 9A 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 58 1B 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 5A 00 00 00 F4 03 04 00 24 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 10 01 00 35 04 06 00 B3 32 E6 DC 3D AA 56 2D F9 1E A3 57 0E 9F [09:34:27]CheckFolder [09:34:27]dirname=/storage/ofd_packets [09:34:27]CheckFolder done [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00069700 [09:34:27]NVStorageSaveData ofd_packets/00069700 [09:34:27]File name is /storage/ofd_packets/00069700 [09:34:27]Write 301 bytes [09:34:27]NVStorageSaveData done [09:34:27]OFDSenderStorePacket done [09:34:27]KKMCreateOFDPacket done [09:34:27]NVStorageSaveData kkm_last_timestamp [09:34:27]File name is /storage/kkm_last_timestamp [09:34:27]Write 4 bytes [09:34:27]NVStorageSaveData done [09:34:27]ExternCall_PrintAddStr [09:34:27]wPrintStart [09:34:27]Write to MH i2c: 01 00 00 80 1C 9C [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 FF 0F B1 [09:34:27]RasterBufferAndPrint [09:34:27]line Счет N : (1)2885438 [09:34:27]line ИНН: 02508201610067 [09:34:27]line Контрольно-Кассовый Чек [09:34:27]line ПРОДАЖА [09:34:27]line ТРК (МРК, ГНК) : 42 [09:34:27]line Товар: 2710124130 [09:34:27]line Аи-92-К-5 [09:34:27]line 7.000 * 0.00 [09:34:27]line = 0.00 [09:34:27]line НДС 12% НСП 1% [09:34:27]line > о реализуемом товаре [09:34:27]line ИТОГО: 0.00 [09:34:27]line НСП 1% : 0.00 [09:34:27]line НДС 12% : 0.00 [09:34:27]line Наличными: 0.00 [09:34:27]line Безнал.: 0.00 [09:34:27]line Место: АЗС № 85 "Партнер Нефть" [09:34:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:34:27]line СНО: Общий режим [09:34:27]line Чек 90 21.10.2024 09:34 [09:34:27]line Смена: 194 ФФД: 1.0 [09:34:27]line ЗНМ: 0300000167 [09:34:27]line РНМ: 0000000000156251 [09:34:27]line Версия ККМ: v1.0 [09:34:27]line Талоны: ТК ГПНА Online [09:34:27]line 30100970 [09:34:27]line ФМ: 0000000000963346 [09:34:27]line ФД: 69700 [09:34:27]line ФПД: 197031202930090 [09:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093428&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69700&fm=197031202930090&tin=02508201610067®Number=0000000000156251&sum=0 [09:34:27]written 0, free lines is 4095 [09:34:27]OFD Sender: Processing packet 69700 [packets to send 18, broken 17] [09:34:27]ProducePacketName [09:34:27]name=ofd_packets/00069700 [09:34:27]OFD Sender: To server: pG, [09:34:27]CommunicateWithHost lk.salyk.kg:30040 [09:34:27]ConnectInit lk.salyk.kg [09:34:27]Connected sock=10 [09:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 0A 07 01 E2 9A 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 58 1B 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 5A 00 00 00 F4 03 04 00 24 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 10 01 00 35 04 06 00 B3 32 E6 DC 3D AA 56 2D F9 1E A3 57 0E 9F [09:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 95 68 47 00 98 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 39 36 33 33 34 36 10 04 04 00 44 10 01 00 F4 03 04 00 C8 C9 15 67 B6 04 01 00 00 CC 8F A2 22 85 71 EE D1 [09:34:28]CommunicateWithHost err = 0 [09:34:28]CheckOFDResponse [09:34:28]1017 (14) - 77093643461234 [09:34:28]1041 (16) - 0000000000963346 [09:34:28]1040 (4) - 69700 [09:34:28]1012 (4) - 21.10.2024 03:26 [09:34:28]1206 (1) - 0 [09:34:28]OFD Sender: Remove packet 69700 [09:34:28]ProducePacketName [09:34:28]name=ofd_packets/00069700 [09:34:28]NVStorageDeleteData [09:34:28]Write to MH i2c: 01 00 00 AA 1C C6 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 AA 1C 00 00 00 00 00 FA 0C D3 [09:34:28]RasterBufferAndPrint [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]line [09:34:28]written 0, free lines is 3337 [09:34:28]MH_Cut [09:34:28]Write to MH i2c: D1 01 00 B1 1C 01 9F [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 01 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: D1 01 00 B1 1C 00 9E [09:34:28]Write to MH i2c: 01 00 00 B2 1C CE [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]OFD Sender: No OFD packet to send [09:34:28]*** Cut start [09:34:28]*** Partial cut [09:34:28]*** CUTSNS_PIN = 1 [09:34:28]*** CUTSNS_PIN = 0 [09:34:29]*** Brake cut motor [09:34:29]Read from MH i2c: 01 [09:34:29]MH_I2C_Read... [09:34:29]*** Stop cut motor [09:34:29]*** Cut end [09:34:29]Read from MH i2c: 01 07 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: 01 07 00 B2 1C 00 00 00 00 00 FF 0F E3 [09:34:29]process_action close_receipt done [09:34:29]requested_data is exist [09:34:29]produce_requested_data [09:34:29]requested_item fm.sn is exist - process it [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 11 00 00 [09:34:29]Write to MH i2c: E2 08 00 B3 1C 80 11 00 00 00 00 00 00 49 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 17 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 17 00 B3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [09:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:29]wFMCommunicate OK [09:34:29]requested_item fd.num is exist - process it [09:34:29]SAM_PROTO_GetFieldsCounters [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 13 00 00 [09:34:29]Write to MH i2c: E2 08 00 B4 1C 80 13 00 00 00 00 00 00 4C [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 62 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 62 00 B4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 10 01 00 0E 04 04 00 C2 00 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 8C [09:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 10 01 00 0E 04 04 00 C2 00 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 [09:34:29]wFMCommunicate OK [09:34:29]SAM_PROTO_GetFieldsCounters done [09:34:29]requested_item shift.num is exist - process it [09:34:29]requested_item shift.opened is exist - process it [09:34:29]req_shift_opened [09:34:29]FM_GetShiftState [09:34:29]SAM_PROTO_GetShiftState [09:34:29]wFMCommunicate request_size=4 [09:34:29]MH_SAM_APDU [09:34:29]CAPDU: 80 13 01 00 [09:34:29]Write to MH i2c: E2 08 00 B5 1C 80 13 01 00 00 00 00 00 4E [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:29]Read from MH i2c: E2 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 0E 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: E2 0E 00 B5 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7A [09:34:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:29]wFMCommunicate OK [09:34:29]SAM_PROTO_GetShiftState done [09:34:29]FM_GetShiftState done [09:34:29]req_shift_opened done [09:34:29]requested_item shift.open_date is exist - process it [09:34:29]req_shift_open_date [09:34:29]req_shift_open_date done [09:34:29]produce_requested_data done [09:34:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69700,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:34:29]process_action_free close_receipt [09:34:29]json_value_free [09:34:29]json_value_free done [09:34:29]process_json_proto returns [09:34:29]Send response to host [09:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69700,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:34:29]free response buf [09:34:29]execute_script done [09:34:29]execute_script returns [09:34:29]free content buf [09:34:29]Sock 8.Close socket [09:34:29]Sock 8.Thread stoped [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:53]accept exits with 9 [09:34:53]New connection [09:34:53]New thread 3067313508 created [09:34:53]Thread 3067456868 joined [09:34:53]Waiting for new connection... [09:34:53] Sock 9.Parse request [09:34:53]Sock 9.Check first char [09:34:53]Sock 9.First char is OK [09:34:53]request: POST /json_proto HTTP/1.0 [09:34:53]Method: POST [09:34:53]URL: /json_proto [09:34:53]Method is POST - this is cgi request [09:34:53]url: /json_proto [09:34:53]query_string will be loaded in cgi processing [09:34:53]execute_cgi json_proto POST (null) [09:34:53]execute_cgi path=json_proto method=POST [09:34:53]POST find Content-Length [09:34:53]Host: 172.17.50.3:8080 [09:34:53]Content-Length: 679 [09:34:53]Content-Type: application/json [09:34:53] [09:34:53]POST finish read [09:34:53]Found Content-Length = 679 [09:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:53]execute_script... [09:34: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)2885440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:53]POST & json_proto [09:34:53]process_json_proto [09:34:53]json parsed OK: [09:34:53]protocol is kg_v1.0 [09:34:53]action value=close_receipt [09:34:53]process_action close_receipt [09:34:53]cmd_close_receipt [09:34:53]MH_GetDate [09:34:53]Write to MH i2c: F0 00 00 B6 1C C1 [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: F0 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: F0 09 00 [09:34:53]MH_I2C_Read... [09:34:53]Read from MH i2c: F0 09 00 B6 1C 00 41 20 16 67 6B 98 1E 66 2F [09:34:53]GetLastDocTimeStamp 1729503268 [09:34:53]current date 1729503297 [09:34:53]FM_GetShiftState [09:34:53]SAM_PROTO_GetShiftState [09:34:53]wFMCommunicate request_size=4 [09:34:53]MH_SAM_APDU [09:34:53]CAPDU: 80 13 01 00 [09:34:53]Write to MH i2c: E2 08 00 B7 1C 80 13 01 00 00 00 00 00 50 [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 B7 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7C [09:34:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_GetShiftState done [09:34:54]FM_GetShiftState done [09:34:54]opened in 1729469703 [09:34:54]opened+sec_in_day 1729556103 [09:34:54]quantity*price = 70044 [09:34:54]sum+1 = 70045 [09:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 91 21.10.2024 09:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69701 ФПД: 81363565896586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69701&fm=81363565896586&tin=02508201610067®Number=0000000000156251&sum=70000 [09:34:55]StoreToDocumentArchive [09:34:55]shift 194 fd 69701 [09:34:55]save to /storage/0194/doc_00069701 [09:34:55]save last doc name /storage/0194/doc_00069701 to /storage/kkm_last_doc_name [09:34:55]save OK [09:34:55]Clear old archive folders... [09:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:55]tlvbuf is B6FD0A00 [09:34:55]SAM_PROTO_ClearQueue [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 09 00 00 [09:34:55]Write to MH i2c: E2 08 00 C4 1C 80 09 00 00 00 00 00 00 52 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]SAM_PROTO_ClearQueue done [09:34:55]KKMCreateOFDPacket [09:34:55]OFDProtocolAddRootSTLVToBuf [09:34:55]FM_MakeSignedData [09:34:55]FM_MakeSignedData [09:34:55]SAM_PROTO_SignData [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 01 02 [09:34:55]Write to MH i2c: E2 08 00 C5 1C 80 0D 01 02 00 00 00 00 5A [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=255 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 10 01 00 35 04 06 00 49 [09:34:55]Write to MH i2c: E2 02 01 C6 1C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 10 01 00 35 04 06 00 49 00 00 8D [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 C6 1C 00 90 00 56 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=10 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 02 02 05 FF EE 71 63 8A [09:34:55]Write to MH i2c: E2 0D 00 C7 1C 80 0D 02 02 05 00 FF EE 71 63 8A 00 00 B2 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 03 02 [09:34:55]Write to MH i2c: E2 08 00 C8 1C 80 0D 03 02 00 00 00 00 5F [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 0B 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 0B 00 C8 1C 00 29 90 E8 72 C2 A4 84 19 90 00 76 [09:34:55]RAPDU: 29 90 E8 72 C2 A4 84 19 90 00 [09:34:55]wFMCommunicate OK [09:34:55]SAM_PROTO_SignData done [09:34:55]FM_MakeSignedData done [09:34:55]CreateOFDProtocolMessage [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 11 00 00 [09:34:55]Write to MH i2c: E2 08 00 C9 1C 80 11 00 00 00 00 00 00 5F [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 17 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 17 00 C9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [09:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:55]wFMCommunicate OK [09:34:55]CreateOFDProtocolMessage done [09:34:55]OFDSenderStorePacket 69701 [09:34:55]StoreOFDPacket docnum=69701 [09:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C5 AE 07 01 AD 56 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 10 01 00 35 04 06 00 49 FF EE 71 63 8A 29 90 E8 72 C2 A4 84 19 [09:34:55]CheckFolder [09:34:55]dirname=/storage/ofd_packets [09:34:55]CheckFolder done [09:34:55]ProducePacketName [09:34:55]name=ofd_packets/00069701 [09:34:55]NVStorageSaveData ofd_packets/00069701 [09:34:55]File name is /storage/ofd_packets/00069701 [09:34:55]Write 301 bytes [09:34:55]NVStorageSaveData done [09:34:55]OFDSenderStorePacket done [09:34:55]KKMCreateOFDPacket done [09:34:55]NVStorageSaveData kkm_last_timestamp [09:34:55]File name is /storage/kkm_last_timestamp [09:34:55]Write 4 bytes [09:34:55]NVStorageSaveData done [09:34:55]ExternCall_PrintAddStr [09:34:55]wPrintStart [09:34:55]Write to MH i2c: 01 00 00 CA 1C E6 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 CA 1C 00 00 00 00 00 FF 0F FB [09:34:55]RasterBufferAndPrint [09:34:55]line Счет N : (1)2885440 [09:34:55]line ИНН: 02508201610067 [09:34:55]line Контрольно-Кассовый Чек [09:34:55]line ПРОДАЖА [09:34:55]line ТРК (МРК, ГНК) : 12 [09:34:55]line Товар: 2710124130 [09:34:55]line Аи-92-К-5 [09:34:55]line 10.470 * 66.90 [09:34:55]line = 700.44 [09:34:55]line НДС 12% НСП 1% [09:34:55]line > о реализуемом товаре [09:34:55]line ОКРУГЛЕНИЕ: -0.44 [09:34:55]line ИТОГО: 700.00 [09:34:55]line Внесено: 700.00 [09:34:55]line СДАЧА: 0.00 [09:34:55]line НСП 1% : 6.20 [09:34:55]line НДС 12% : 74.38 [09:34:55]line Наличными: 700.00 [09:34:55]line Безнал.: 0.00 [09:34:55]line Место: АЗС № 85 "Партнер Нефть" [09:34:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:34:55]line СНО: Общий режим [09:34:55]line Чек 91 21.10.2024 09:34 [09:34:55]line Смена: 194 ФФД: 1.0 [09:34:55]line ЗНМ: 0300000167 [09:34:55]line РНМ: 0000000000156251 [09:34:55]line Версия ККМ: v1.0 [09:34:55]line ФМ: 0000000000963346 [09:34:55]line ФД: 69701 [09:34:55]line ФПД: 81363565896586 [09:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69701&fm=81363565896586&tin=02508201610067®Number=0000000000156251&sum=70000 [09:34:55]OFD Sender: Processing packet 69701 [packets to send 18, broken 17] [09:34:55]ProducePacketName [09:34:55]name=ofd_packets/00069701 [09:34:55]OFD Sender: To server: pG, [09:34:55]CommunicateWithHost lk.salyk.kg:30040 [09:34:56]ConnectInit lk.salyk.kg [09:34:56]written 0, free lines is 4095 [09:34:56]Connected sock=10 [09:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C5 AE 07 01 AD 56 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 41 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 10 01 00 35 04 06 00 49 FF EE 71 63 8A 29 90 E8 72 C2 A4 84 19 [09:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 51 50 47 00 54 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 10 01 00 F4 03 04 00 E5 C9 15 67 B6 04 01 00 00 16 2D 11 06 0D 0A A2 FB [09:34:56]CommunicateWithHost err = 0 [09:34:56]CheckOFDResponse [09:34:56]1017 (14) - 77093643461234 [09:34:56]1041 (16) - 0000000000963346 [09:34:56]1040 (4) - 69701 [09:34:56]1012 (4) - 21.10.2024 03:26 [09:34:56]1206 (1) - 0 [09:34:56]OFD Sender: Remove packet 69701 [09:34:56]ProducePacketName [09:34:56]name=ofd_packets/00069701 [09:34:56]NVStorageDeleteData [09:34:56]Write to MH i2c: 01 00 00 F5 1C 11 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 07 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 F9 0C 1D [09:34:56]RasterBufferAndPrint [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]written 0, free lines is 3331 [09:34:56]MH_Cut [09:34:56]Write to MH i2c: D1 01 00 FC 1C 01 EA [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 01 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 01 00 FC 1C 00 E9 [09:34:56]Write to MH i2c: 01 00 00 FD 1C 19 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]OFD Sender: No OFD packet to send [09:34:57]*** Cut start [09:34:57]*** Partial cut [09:34:57]*** CUTSNS_PIN = 1 [09:34:57]*** CUTSNS_PIN = 0 [09:34:57]*** Brake cut motor [09:34:57]Read from MH i2c: 01 [09:34:57]MH_I2C_Read... [09:34:57]*** Stop cut motor [09:34:57]*** Cut end [09:34:57]Read from MH i2c: 01 07 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 FD 1C 00 00 00 00 00 FF 0F 2E [09:34:57]process_action close_receipt done [09:34:57]requested_data is exist [09:34:57]produce_requested_data [09:34:57]requested_item fm.sn is exist - process it [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 11 00 00 [09:34:57]Write to MH i2c: E2 08 00 FE 1C 80 11 00 00 00 00 00 00 94 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 FE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [09:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:34:57]wFMCommunicate OK [09:34:57]requested_item fd.num is exist - process it [09:34:57]SAM_PROTO_GetFieldsCounters [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 13 00 00 [09:34:57]Write to MH i2c: E2 08 00 FF 1C 80 13 00 00 00 00 00 00 97 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 62 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 62 00 FF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 10 01 00 0E 04 04 00 C2 00 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 DB [09:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 10 01 00 0E 04 04 00 C2 00 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 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_GetFieldsCounters done [09:34:57]requested_item shift.num is exist - process it [09:34:57]requested_item shift.opened is exist - process it [09:34:57]req_shift_opened [09:34:57]FM_GetShiftState [09:34:57]SAM_PROTO_GetShiftState [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 13 01 00 [09:34:57]Write to MH i2c: E2 08 00 00 1D 80 13 01 00 00 00 00 00 9A [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:58]Read from MH i2c: E2 0E 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0E 00 00 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C6 [09:34:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_GetShiftState done [09:34:58]FM_GetShiftState done [09:34:58]req_shift_opened done [09:34:58]requested_item shift.open_date is exist - process it [09:34:58]req_shift_open_date [09:34:58]req_shift_open_date done [09:34:58]produce_requested_data done [09:34:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69701,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:34:58]process_action_free close_receipt [09:34:58]json_value_free [09:34:58]json_value_free done [09:34:58]process_json_proto returns [09:34:58]Send response to host [09:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69701,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:34:58]free response buf [09:34:58]execute_script done [09:34:58]execute_script returns [09:34:58]free content buf [09:34:58]Sock 9.Close socket [09:34:58]Sock 9.Thread stoped [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:49]accept exits with 8 [09:36:49]New connection [09:36:49]New thread 3067456868 created [09:36:49]Thread 3067313508 joined [09:36:49]Waiting for new connection... [09:36:49] Sock 8.Parse request [09:36:49]Sock 8.Check first char [09:36:49]Sock 8.First char is OK [09:36:49]request: POST /json_proto HTTP/1.0 [09:36:49]Method: POST [09:36:49]URL: /json_proto [09:36:49]Method is POST - this is cgi request [09:36:49]url: /json_proto [09:36:49]query_string will be loaded in cgi processing [09:36:49]execute_cgi json_proto POST (null) [09:36:49]execute_cgi path=json_proto method=POST [09:36:49]POST find Content-Length [09:36:49]Host: 172.17.50.3:8080 [09:36:49]Content-Length: 770 [09:36:49]Content-Type: application/json [09:36:49] [09:36:49]POST finish read [09:36:49]Found Content-Length = 770 [09:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:49]execute_script... [09:36: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)2885442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:49]POST & json_proto [09:36:49]process_json_proto [09:36:49]json parsed OK: [09:36:49]protocol is kg_v1.0 [09:36:49]action value=close_receipt [09:36:49]process_action close_receipt [09:36:49]cmd_close_receipt [09:36:49]MH_GetDate [09:36:49]Write to MH i2c: F0 00 00 01 1D 0D [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: F0 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: F0 09 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: F0 09 00 01 1D 00 B4 20 16 67 6B 98 1E 66 EE [09:36:49]GetLastDocTimeStamp 1729503297 [09:36:49]current date 1729503412 [09:36:49]FM_GetShiftState [09:36:49]SAM_PROTO_GetShiftState [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 13 01 00 [09:36:49]Write to MH i2c: E2 08 00 02 1D 80 13 01 00 00 00 00 00 9C [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 02 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C8 [09:36:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:36:49]wFMCommunicate OK [09:36:49]SAM_PROTO_GetShiftState done [09:36:49]FM_GetShiftState done [09:36:49]opened in 1729469703 [09:36:49]opened+sec_in_day 1729556103 [09:36:49]quantity*price = 100015 [09:36:49]sum+1 = 100017 [09:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 92 21.10.2024 09:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69702 ФПД: 246063370094473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093652&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69702&fm=246063370094473&tin=02508201610067®Number=0000000000156251&sum=100016 [09:36:50]StoreToDocumentArchive [09:36:50]shift 194 fd 69702 [09:36:50]save to /storage/0194/doc_00069702 [09:36:50]save last doc name /storage/0194/doc_00069702 to /storage/kkm_last_doc_name [09:36:50]save OK [09:36:50]Clear old archive folders... [09:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:50]tlvbuf is 00CAEE10 [09:36:50]SAM_PROTO_ClearQueue [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 09 00 00 [09:36:50]Write to MH i2c: E2 08 00 0F 1D 80 09 00 00 00 00 00 00 9E [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_ClearQueue done [09:36:50]KKMCreateOFDPacket [09:36:50]OFDProtocolAddRootSTLVToBuf [09:36:50]FM_MakeSignedData [09:36:50]FM_MakeSignedData [09:36:50]SAM_PROTO_SignData [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 01 02 [09:36:50]Write to MH i2c: E2 08 00 10 1D 80 0D 01 02 00 00 00 00 A6 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 10 1D 00 90 00 A1 [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=255 [09:36:50]MH_SAM_APDU [09:36: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 10 01 00 35 04 06 00 DF [09:36:50]Write to MH i2c: E2 02 01 11 1D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 10 01 00 35 04 06 00 DF 00 00 EE [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 11 1D 00 90 00 A2 [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=10 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 02 02 05 CB 17 C4 47 89 [09:36:50]Write to MH i2c: E2 0D 00 12 1D 80 0D 02 02 05 00 CB 17 C4 47 89 00 00 29 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 03 02 [09:36:50]Write to MH i2c: E2 08 00 13 1D 80 0D 03 02 00 00 00 00 AB [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0B 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0B 00 13 1D 00 08 DD 4E 1E 46 19 81 06 90 00 E3 [09:36:50]RAPDU: 08 DD 4E 1E 46 19 81 06 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_SignData done [09:36:50]FM_MakeSignedData done [09:36:50]CreateOFDProtocolMessage [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 11 00 00 [09:36:50]Write to MH i2c: E2 08 00 14 1D 80 11 00 00 00 00 00 00 AB [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 17 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 17 00 14 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [09:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:36:50]wFMCommunicate OK [09:36:50]CreateOFDProtocolMessage done [09:36:50]OFDSenderStorePacket 69702 [09:36:50]StoreOFDPacket docnum=69702 [09:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C3 7A 07 01 9C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 10 01 00 35 04 06 00 DF CB 17 C4 47 89 08 DD 4E 1E 46 19 81 06 [09:36:50]CheckFolder [09:36:50]dirname=/storage/ofd_packets [09:36:50]CheckFolder done [09:36:50]ProducePacketName [09:36:50]name=ofd_packets/00069702 [09:36:50]NVStorageSaveData ofd_packets/00069702 [09:36:50]File name is /storage/ofd_packets/00069702 [09:36:50]Write 301 bytes [09:36:50]NVStorageSaveData done [09:36:50]OFDSenderStorePacket done [09:36:50]KKMCreateOFDPacket done [09:36:50]NVStorageSaveData kkm_last_timestamp [09:36:50]File name is /storage/kkm_last_timestamp [09:36:50]Write 4 bytes [09:36:50]NVStorageSaveData done [09:36:50]ExternCall_PrintAddStr [09:36:50]wPrintStart [09:36:50]Write to MH i2c: 01 00 00 15 1D 32 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 07 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 07 00 15 1D 00 00 00 00 00 FF 0F 47 [09:36:50]RasterBufferAndPrint [09:36:50]line Счет N : (1)2885442 [09:36:50]line ИНН: 02508201610067 [09:36:50]line Контрольно-Кассовый Чек [09:36:50]line ПРОДАЖА [09:36:50]line ТРК (МРК, ГНК) : 22 [09:36:50]line Товар: 2710124130 [09:36:50]line Аи-92-К-5 [09:36:50]line 14.950 * 66.90 [09:36:50]line = 1000.16 [09:36:50]line НДС 12% НСП 1% [09:36:50]line > о реализуемом товаре [09:36:50]line ИТОГО: 1000.16 [09:36:50]line НСП 1% : 8.85 [09:36:50]line НДС 12% : 106.21 [09:36:50]line Наличными: 0.00 [09:36:50]line Безнал.: 1000.16 [09:36:50]line Место: АЗС № 85 "Партнер Нефть" [09:36:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:36:50]line СНО: Общий режим [09:36:50]line Чек 92 21.10.2024 09:36 [09:36:50]line Смена: 194 ФФД: 1.0 [09:36:50]line ЗНМ: 0300000167 [09:36:50]line РНМ: 0000000000156251 [09:36:50]line Версия ККМ: v1.0 [09:36:50]line Платежная система: Mbank [09:36:50]line ФМ: 0000000000963346 [09:36:50]line ФД: 69702 [09:36:50]line ФПД: 246063370094473 [09:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093652&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69702&fm=246063370094473&tin=02508201610067®Number=0000000000156251&sum=100016 [09:36:51]OFD Sender: Processing packet 69702 [packets to send 18, broken 17] [09:36:51]ProducePacketName [09:36:51]name=ofd_packets/00069702 [09:36:51]OFD Sender: To server: pG, [09:36:51]CommunicateWithHost lk.salyk.kg:30040 [09:36:51]ConnectInit lk.salyk.kg [09:36:51]written 0, free lines is 4095 [09:36:51]Connected sock=10 [09:36:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C3 7A 07 01 9C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 10 01 00 35 04 06 00 DF CB 17 C4 47 89 08 DD 4E 1E 46 19 81 06 [09:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6A F1 47 00 EE 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 39 36 33 33 34 36 10 04 04 00 46 10 01 00 F4 03 04 00 58 CA 15 67 B6 04 01 00 00 63 58 80 F3 E2 61 C9 32 [09:36:51]CommunicateWithHost err = 0 [09:36:51]CheckOFDResponse [09:36:51]1017 (14) - 77093643461234 [09:36:51]1041 (16) - 0000000000963346 [09:36:51]1040 (4) - 69702 [09:36:51]1012 (4) - 21.10.2024 03:28 [09:36:51]1206 (1) - 0 [09:36:51]OFD Sender: Remove packet 69702 [09:36:51]ProducePacketName [09:36:51]name=ofd_packets/00069702 [09:36:51]NVStorageDeleteData [09:36:51]Write to MH i2c: 01 00 00 3E 1D 5B [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 07 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 07 00 3E 1D 00 00 00 00 00 18 0D 87 [09:36:51]RasterBufferAndPrint [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]written 0, free lines is 3362 [09:36:51]MH_Cut [09:36:51]Write to MH i2c: D1 01 00 45 1D 01 34 [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 01 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 01 00 45 1D 00 33 [09:36:51]Write to MH i2c: 01 00 00 46 1D 63 [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:52]OFD Sender: No OFD packet to send [09:36:52]*** Cut start [09:36:52]*** Partial cut [09:36:52]*** CUTSNS_PIN = 1 [09:36:52]*** CUTSNS_PIN = 0 [09:36:52]*** Brake cut motor [09:36:53]Read from MH i2c: 01 [09:36:53]MH_I2C_Read... [09:36:53]*** Stop cut motor [09:36:53]*** Cut end [09:36:53]Read from MH i2c: 01 07 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: 01 07 00 46 1D 00 00 00 00 00 FF 0F 78 [09:36:53]process_action close_receipt done [09:36:53]requested_data is exist [09:36:53]produce_requested_data [09:36:53]requested_item fm.sn is exist - process it [09:36:53]wFMCommunicate request_size=4 [09:36:53]MH_SAM_APDU [09:36:53]CAPDU: 80 11 00 00 [09:36:53]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:53]Read from MH i2c: E2 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 17 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 17 00 47 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [09:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:36:53]wFMCommunicate OK [09:36:53]requested_item fd.num is exist - process it [09:36:53]SAM_PROTO_GetFieldsCounters [09:36:53]wFMCommunicate request_size=4 [09:36:53]MH_SAM_APDU [09:36:53]CAPDU: 80 13 00 00 [09:36:53]Write to MH i2c: E2 08 00 48 1D 80 13 00 00 00 00 00 00 E1 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:53]Read from MH i2c: E2 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 62 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 62 00 48 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 10 01 00 0E 04 04 00 C2 00 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 29 [09:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 10 01 00 0E 04 04 00 C2 00 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 [09:36:53]wFMCommunicate OK [09:36:53]SAM_PROTO_GetFieldsCounters done [09:36:53]requested_item shift.num is exist - process it [09:36:53]requested_item shift.opened is exist - process it [09:36:53]req_shift_opened [09:36:53]FM_GetShiftState [09:36:53]SAM_PROTO_GetShiftState [09:36:53]wFMCommunicate request_size=4 [09:36:53]MH_SAM_APDU [09:36:53]CAPDU: 80 13 01 00 [09:36:53]Write to MH i2c: E2 08 00 49 1D 80 13 01 00 00 00 00 00 E3 [09:36:53]Write i2c OK [09:36:53]MH_I2C_Read... [09:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:53]Read from MH i2c: E2 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 0E 00 [09:36:53]MH_I2C_Read... [09:36:53]Read from MH i2c: E2 0E 00 49 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0F [09:36:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:36:53]wFMCommunicate OK [09:36:53]SAM_PROTO_GetShiftState done [09:36:53]FM_GetShiftState done [09:36:53]req_shift_opened done [09:36:53]requested_item shift.open_date is exist - process it [09:36:53]req_shift_open_date [09:36:53]req_shift_open_date done [09:36:53]produce_requested_data done [09:36:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69702,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:36:53]process_action_free close_receipt [09:36:53]json_value_free [09:36:53]json_value_free done [09:36:53]process_json_proto returns [09:36:53]Send response to host [09:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69702,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:36:53]free response buf [09:36:53]execute_script done [09:36:53]execute_script returns [09:36:53]free content buf [09:36:53]Sock 8.Close socket [09:36:53]Sock 8.Thread stoped [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:12]accept exits with 9 [09:37:12]New connection [09:37:12]New thread 3067313508 created [09:37:12]Thread 3067456868 joined [09:37:12]Waiting for new connection... [09:37:12] Sock 9.Parse request [09:37:12]Sock 9.Check first char [09:37:12]Sock 9.First char is OK [09:37:12]request: POST /json_proto HTTP/1.0 [09:37:12]Method: POST [09:37:12]URL: /json_proto [09:37:12]Method is POST - this is cgi request [09:37:12]url: /json_proto [09:37:12]query_string will be loaded in cgi processing [09:37:12]execute_cgi json_proto POST (null) [09:37:12]execute_cgi path=json_proto method=POST [09:37:12]POST find Content-Length [09:37:12]Host: 172.17.50.3:8080 [09:37:12]Content-Length: 755 [09:37:12]Content-Type: application/json [09:37:12] [09:37:12]POST finish read [09:37:12]Found Content-Length = 755 [09:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885443", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:12]execute_script... [09:37: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)2885443", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:12]POST & json_proto [09:37:12]process_json_proto [09:37:12]json parsed OK: [09:37:12]protocol is kg_v1.0 [09:37:12]action value=close_receipt [09:37:12]process_action close_receipt [09:37:12]cmd_close_receipt [09:37:12]MH_GetDate [09:37:12]Write to MH i2c: F0 00 00 4A 1D 56 [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: F0 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: F0 09 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: F0 09 00 4A 1D 00 CB 20 16 67 6B 98 1E 66 4E [09:37:12]GetLastDocTimeStamp 1729503412 [09:37:12]current date 1729503435 [09:37:12]FM_GetShiftState [09:37:12]SAM_PROTO_GetShiftState [09:37:12]wFMCommunicate request_size=4 [09:37:12]MH_SAM_APDU [09:37:12]CAPDU: 80 13 01 00 [09:37:12]Write to MH i2c: E2 08 00 4B 1D 80 13 01 00 00 00 00 00 E5 [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 4B 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [09:37:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:37:12]wFMCommunicate OK [09:37:12]SAM_PROTO_GetShiftState done [09:37:12]FM_GetShiftState done [09:37:12]opened in 1729469703 [09:37:12]opened+sec_in_day 1729556103 [09:37:12]quantity*price = 0 [09:37:12]sum+1 = 1 [09:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 93 21.10.2024 09:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021887 ФМ: 0000000000963346 ФД: 69703 ФПД: 99526241214115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69703&fm=99526241214115&tin=02508201610067®Number=0000000000156251&sum=0 [09:37:13]StoreToDocumentArchive [09:37:13]shift 194 fd 69703 [09:37:13]save to /storage/0194/doc_00069703 [09:37:13]save last doc name /storage/0194/doc_00069703 to /storage/kkm_last_doc_name [09:37:13]save OK [09:37:13]Clear old archive folders... [09:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:13]tlvbuf is 00CAEC50 [09:37:13]SAM_PROTO_ClearQueue [09:37:13]wFMCommunicate request_size=4 [09:37:13]MH_SAM_APDU [09:37:13]CAPDU: 80 09 00 00 [09:37:13]Write to MH i2c: E2 08 00 58 1D 80 09 00 00 00 00 00 00 E7 [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:13]Read from MH i2c: E2 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 58 1D 00 90 00 E9 [09:37:13]RAPDU: 90 00 [09:37:13]wFMCommunicate OK [09:37:13]SAM_PROTO_ClearQueue done [09:37:13]KKMCreateOFDPacket [09:37:13]OFDProtocolAddRootSTLVToBuf [09:37:13]FM_MakeSignedData [09:37:13]FM_MakeSignedData [09:37:13]SAM_PROTO_SignData [09:37:13]wFMCommunicate request_size=4 [09:37:13]MH_SAM_APDU [09:37:13]CAPDU: 80 0D 01 02 [09:37:13]Write to MH i2c: E2 08 00 59 1D 80 0D 01 02 00 00 00 00 EF [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:13]Read from MH i2c: E2 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 59 1D 00 90 00 EA [09:37:13]RAPDU: 90 00 [09:37:13]wFMCommunicate OK [09:37:13]wFMCommunicate request_size=255 [09:37:13]MH_SAM_APDU [09:37: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CB 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 10 01 00 35 04 06 00 5A [09:37:13]Write to MH i2c: E2 02 01 5A 1D 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CB 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 10 01 00 35 04 06 00 5A 00 00 FE [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:13]Read from MH i2c: E2 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 5A 1D 00 90 00 EB [09:37:13]RAPDU: 90 00 [09:37:13]wFMCommunicate OK [09:37:13]wFMCommunicate request_size=10 [09:37:13]MH_SAM_APDU [09:37:13]CAPDU: 80 0D 02 02 05 84 C2 40 DE A3 [09:37:13]Write to MH i2c: E2 0D 00 5B 1D 80 0D 02 02 05 00 84 C2 40 DE A3 00 00 03 [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:13]Read from MH i2c: E2 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [09:37:13]RAPDU: 90 00 [09:37:13]wFMCommunicate OK [09:37:13]wFMCommunicate request_size=4 [09:37:13]MH_SAM_APDU [09:37:13]CAPDU: 80 0D 03 02 [09:37:13]Write to MH i2c: E2 08 00 5C 1D 80 0D 03 02 00 00 00 00 F4 [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:13]Read from MH i2c: E2 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 0B 00 [09:37:13]MH_I2C_Read... [09:37:13]Read from MH i2c: E2 0B 00 5C 1D 00 E8 F5 C2 9F 75 2A A0 90 90 00 02 [09:37:13]RAPDU: E8 F5 C2 9F 75 2A A0 90 90 00 [09:37:13]wFMCommunicate OK [09:37:13]SAM_PROTO_SignData done [09:37:13]FM_MakeSignedData done [09:37:13]CreateOFDProtocolMessage [09:37:13]wFMCommunicate request_size=4 [09:37:13]MH_SAM_APDU [09:37:13]CAPDU: 80 11 00 00 [09:37:13]Write to MH i2c: E2 08 00 5D 1D 80 11 00 00 00 00 00 00 F4 [09:37:13]Write i2c OK [09:37:13]MH_I2C_Read... [09:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:14]Read from MH i2c: E2 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: E2 17 00 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: E2 17 00 5D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [09:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:14]wFMCommunicate OK [09:37:14]CreateOFDProtocolMessage done [09:37:14]OFDSenderStorePacket 69703 [09:37:14]StoreOFDPacket docnum=69703 [09:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 73 07 01 2B CA 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CB 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 10 01 00 35 04 06 00 5A 84 C2 40 DE A3 E8 F5 C2 9F 75 2A A0 90 [09:37:14]CheckFolder [09:37:14]dirname=/storage/ofd_packets [09:37:14]CheckFolder done [09:37:14]ProducePacketName [09:37:14]name=ofd_packets/00069703 [09:37:14]NVStorageSaveData ofd_packets/00069703 [09:37:14]File name is /storage/ofd_packets/00069703 [09:37:14]Write 301 bytes [09:37:14]NVStorageSaveData done [09:37:14]OFDSenderStorePacket done [09:37:14]KKMCreateOFDPacket done [09:37:14]NVStorageSaveData kkm_last_timestamp [09:37:14]File name is /storage/kkm_last_timestamp [09:37:14]Write 4 bytes [09:37:14]NVStorageSaveData done [09:37:14]ExternCall_PrintAddStr [09:37:14]wPrintStart [09:37:14]Write to MH i2c: 01 00 00 5E 1D 7B [09:37:14]Write i2c OK [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 07 00 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 FF 0F 90 [09:37:14]RasterBufferAndPrint [09:37:14]line Счет N : (1)2885443 [09:37:14]line ИНН: 02508201610067 [09:37:14]line Контрольно-Кассовый Чек [09:37:14]line ПРОДАЖА [09:37:14]line ТРК (МРК, ГНК) : 42 [09:37:14]line Товар: 2710124130 [09:37:14]line Аи-92-К-5 [09:37:14]line 15.000 * 0.00 [09:37:14]line = 0.00 [09:37:14]line НДС 12% НСП 1% [09:37:14]line > о реализуемом товаре [09:37:14]line ИТОГО: 0.00 [09:37:14]line НСП 1% : 0.00 [09:37:14]line НДС 12% : 0.00 [09:37:14]line Наличными: 0.00 [09:37:14]line Безнал.: 0.00 [09:37:14]line Место: АЗС № 85 "Партнер Нефть" [09:37:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:37:14]line СНО: Общий режим [09:37:14]line Чек 93 21.10.2024 09:37 [09:37:14]line Смена: 194 ФФД: 1.0 [09:37:14]line ЗНМ: 0300000167 [09:37:14]line РНМ: 0000000000156251 [09:37:14]line Версия ККМ: v1.0 [09:37:14]line Талоны: ТК ГПНА Online [09:37:14]line 30021887 [09:37:14]line ФМ: 0000000000963346 [09:37:14]line ФД: 69703 [09:37:14]line ФПД: 99526241214115 [09:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69703&fm=99526241214115&tin=02508201610067®Number=0000000000156251&sum=0 [09:37:14]OFD Sender: Processing packet 69703 [packets to send 18, broken 17] [09:37:14]ProducePacketName [09:37:14]name=ofd_packets/00069703 [09:37:14]OFD Sender: To server: pG, [09:37:14]CommunicateWithHost lk.salyk.kg:30040 [09:37:14]ConnectInit lk.salyk.kg [09:37:14]written 0, free lines is 4095 [09:37:14]Connected sock=10 [09:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 73 07 01 2B CA 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CB 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 10 01 00 35 04 06 00 5A 84 C2 40 DE A3 E8 F5 C2 9F 75 2A A0 90 [09:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 91 47 00 1F 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 39 36 33 33 34 36 10 04 04 00 47 10 01 00 F4 03 04 00 6F CA 15 67 B6 04 01 00 00 E8 C9 3D 6B 24 AE 09 B8 [09:37:14]CommunicateWithHost err = 0 [09:37:14]CheckOFDResponse [09:37:14]1017 (14) - 77093643461234 [09:37:14]1041 (16) - 0000000000963346 [09:37:14]1040 (4) - 69703 [09:37:14]1012 (4) - 21.10.2024 03:28 [09:37:14]1206 (1) - 0 [09:37:14]OFD Sender: Remove packet 69703 [09:37:14]ProducePacketName [09:37:14]name=ofd_packets/00069703 [09:37:14]NVStorageDeleteData [09:37:14]Write to MH i2c: 01 00 00 88 1D A5 [09:37:14]Write i2c OK [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 07 00 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 02 0D BB [09:37:14]RasterBufferAndPrint [09:37:14]line [09:37:14]line [09:37:14]line [09:37:14]line [09:37:14]line [09:37:14]written 0, free lines is 3340 [09:37:14]MH_Cut [09:37:14]Write to MH i2c: D1 01 00 8F 1D 01 7E [09:37:14]Write i2c OK [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: D1 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: D1 01 00 [09:37:14]MH_I2C_Read... [09:37:14]Read from MH i2c: D1 01 00 8F 1D 00 7D [09:37:14]Write to MH i2c: 01 00 00 90 1D AD [09:37:14]Write i2c OK [09:37:14]MH_I2C_Read... [09:37:15]OFD Sender: No OFD packet to send [09:37:15]*** Cut start [09:37:15]*** Partial cut [09:37:15]*** CUTSNS_PIN = 1 [09:37:15]*** CUTSNS_PIN = 0 [09:37:15]*** Brake cut motor [09:37:16]Read from MH i2c: 01 [09:37:16]MH_I2C_Read... [09:37:16]*** Stop cut motor [09:37:16]*** Cut end [09:37:16]Read from MH i2c: 01 07 00 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: 01 07 00 90 1D 00 00 00 00 00 FF 0F C2 [09:37:16]process_action close_receipt done [09:37:16]requested_data is exist [09:37:16]produce_requested_data [09:37:16]requested_item fm.sn is exist - process it [09:37:16]wFMCommunicate request_size=4 [09:37:16]MH_SAM_APDU [09:37:16]CAPDU: 80 11 00 00 [09:37:16]Write to MH i2c: E2 08 00 91 1D 80 11 00 00 00 00 00 00 28 [09:37:16]Write i2c OK [09:37:16]MH_I2C_Read... [09:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:16]Read from MH i2c: E2 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 17 00 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 17 00 91 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [09:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:16]wFMCommunicate OK [09:37:16]requested_item fd.num is exist - process it [09:37:16]SAM_PROTO_GetFieldsCounters [09:37:16]wFMCommunicate request_size=4 [09:37:16]MH_SAM_APDU [09:37:16]CAPDU: 80 13 00 00 [09:37:16]Write to MH i2c: E2 08 00 92 1D 80 13 00 00 00 00 00 00 2B [09:37:16]Write i2c OK [09:37:16]MH_I2C_Read... [09:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:16]Read from MH i2c: E2 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 62 00 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 62 00 92 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 10 01 00 0E 04 04 00 C2 00 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 77 [09:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 10 01 00 0E 04 04 00 C2 00 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 [09:37:16]wFMCommunicate OK [09:37:16]SAM_PROTO_GetFieldsCounters done [09:37:16]requested_item shift.num is exist - process it [09:37:16]requested_item shift.opened is exist - process it [09:37:16]req_shift_opened [09:37:16]FM_GetShiftState [09:37:16]SAM_PROTO_GetShiftState [09:37:16]wFMCommunicate request_size=4 [09:37:16]MH_SAM_APDU [09:37:16]CAPDU: 80 13 01 00 [09:37:16]Write to MH i2c: E2 08 00 93 1D 80 13 01 00 00 00 00 00 2D [09:37:16]Write i2c OK [09:37:16]MH_I2C_Read... [09:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:16]Read from MH i2c: E2 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 0E 00 [09:37:16]MH_I2C_Read... [09:37:16]Read from MH i2c: E2 0E 00 93 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 59 [09:37:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:37:16]wFMCommunicate OK [09:37:16]SAM_PROTO_GetShiftState done [09:37:16]FM_GetShiftState done [09:37:16]req_shift_opened done [09:37:16]requested_item shift.open_date is exist - process it [09:37:16]req_shift_open_date [09:37:16]req_shift_open_date done [09:37:16]produce_requested_data done [09:37:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69703,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:37:16]process_action_free close_receipt [09:37:16]json_value_free [09:37:16]json_value_free done [09:37:16]process_json_proto returns [09:37:16]Send response to host [09:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69703,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:37:16]free response buf [09:37:16]execute_script done [09:37:16]execute_script returns [09:37:16]free content buf [09:37:16]Sock 9.Close socket [09:37:16]Sock 9.Thread stoped [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:44]accept exits with 8 [09:37:44]New connection [09:37:44]New thread 3067456868 created [09:37:44]Thread 3067313508 joined [09:37:44]Waiting for new connection... [09:37:44] Sock 8.Parse request [09:37:44]Sock 8.Check first char [09:37:44]Sock 8.First char is OK [09:37:44]request: POST /json_proto HTTP/1.0 [09:37:44]Method: POST [09:37:44]URL: /json_proto [09:37:44]Method is POST - this is cgi request [09:37:44]url: /json_proto [09:37:44]query_string will be loaded in cgi processing [09:37:44]execute_cgi json_proto POST (null) [09:37:44]execute_cgi path=json_proto method=POST [09:37:44]POST find Content-Length [09:37:44]Host: 172.17.50.3:8080 [09:37:44]Content-Length: 683 [09:37:44]Content-Type: application/json [09:37:44] [09:37:44]POST finish read [09:37:44]Found Content-Length = 683 [09:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885444", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:44]execute_script... [09:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885444", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:44]POST & json_proto [09:37:44]process_json_proto [09:37:44]json parsed OK: [09:37:44]protocol is kg_v1.0 [09:37:44]action value=close_receipt [09:37:44]process_action close_receipt [09:37:44]cmd_close_receipt [09:37:44]MH_GetDate [09:37:44]Write to MH i2c: F0 00 00 94 1D A0 [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 94 1D 00 EB 20 16 67 6B 98 1E 66 B8 [09:37:44]GetLastDocTimeStamp 1729503435 [09:37:44]current date 1729503467 [09:37:44]FM_GetShiftState [09:37:44]SAM_PROTO_GetShiftState [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 13 01 00 [09:37:44]Write to MH i2c: E2 08 00 95 1D 80 13 01 00 00 00 00 00 2F [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 95 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5B [09:37:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:37:44]wFMCommunicate OK [09:37:44]SAM_PROTO_GetShiftState done [09:37:44]FM_GetShiftState done [09:37:44]opened in 1729469703 [09:37:44]opened+sec_in_day 1729556103 [09:37:44]quantity*price = 100015 [09:37:44]sum+1 = 100017 [09:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 94 21.10.2024 09:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69704 ФПД: 218101594208690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69704&fm=218101594208690&tin=02508201610067®Number=0000000000156251&sum=100000 [09:37:46]StoreToDocumentArchive [09:37:46]shift 194 fd 69704 [09:37:46]save to /storage/0194/doc_00069704 [09:37:46]save last doc name /storage/0194/doc_00069704 to /storage/kkm_last_doc_name [09:37:46]save OK [09:37:46]Clear old archive folders... [09:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:46]tlvbuf is 00CAF3D0 [09:37:46]SAM_PROTO_ClearQueue [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 09 00 00 [09:37:46]Write to MH i2c: E2 08 00 A2 1D 80 09 00 00 00 00 00 00 31 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 A2 1D 00 90 00 33 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]SAM_PROTO_ClearQueue done [09:37:46]KKMCreateOFDPacket [09:37:46]OFDProtocolAddRootSTLVToBuf [09:37:46]FM_MakeSignedData [09:37:46]FM_MakeSignedData [09:37:46]SAM_PROTO_SignData [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 01 02 [09:37:46]Write to MH i2c: E2 08 00 A3 1D 80 0D 01 02 00 00 00 00 39 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 A3 1D 00 90 00 34 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=255 [09:37:46]MH_SAM_APDU [09:37: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 EC 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 10 01 00 35 04 06 00 C6 [09:37:46]Write to MH i2c: E2 02 01 A4 1D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 EC 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 10 01 00 35 04 06 00 C6 00 00 84 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 A4 1D 00 90 00 35 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=10 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 02 02 05 5C BC 0C 39 B2 [09:37:46]Write to MH i2c: E2 0D 00 A5 1D 80 0D 02 02 05 00 5C BC 0C 39 B2 00 00 55 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 A5 1D 00 90 00 36 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 03 02 [09:37:46]Write to MH i2c: E2 08 00 A6 1D 80 0D 03 02 00 00 00 00 3E [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 A6 1D 00 D3 57 92 A2 E3 C4 C7 4F 90 00 5A [09:37:46]RAPDU: D3 57 92 A2 E3 C4 C7 4F 90 00 [09:37:46]wFMCommunicate OK [09:37:46]SAM_PROTO_SignData done [09:37:46]FM_MakeSignedData done [09:37:46]CreateOFDProtocolMessage [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 11 00 00 [09:37:46]Write to MH i2c: E2 08 00 A7 1D 80 11 00 00 00 00 00 00 3E [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 A7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [09:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:46]wFMCommunicate OK [09:37:46]CreateOFDProtocolMessage done [09:37:46]OFDSenderStorePacket 69704 [09:37:46]StoreOFDPacket docnum=69704 [09:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 18 07 01 DD 07 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 EC 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 10 01 00 35 04 06 00 C6 5C BC 0C 39 B2 D3 57 92 A2 E3 C4 C7 4F [09:37:46]CheckFolder [09:37:46]dirname=/storage/ofd_packets [09:37:46]CheckFolder done [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00069704 [09:37:46]NVStorageSaveData ofd_packets/00069704 [09:37:46]File name is /storage/ofd_packets/00069704 [09:37:46]Write 301 bytes [09:37:46]NVStorageSaveData done [09:37:46]OFDSenderStorePacket done [09:37:46]KKMCreateOFDPacket done [09:37:46]NVStorageSaveData kkm_last_timestamp [09:37:46]File name is /storage/kkm_last_timestamp [09:37:46]Write 4 bytes [09:37:46]NVStorageSaveData done [09:37:46]ExternCall_PrintAddStr [09:37:46]wPrintStart [09:37:46]Write to MH i2c: 01 00 00 A8 1D C5 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 A8 1D 00 00 00 00 00 FF 0F DA [09:37:46]RasterBufferAndPrint [09:37:46]line Счет N : (1)2885444 [09:37:46]line ИНН: 02508201610067 [09:37:46]line Контрольно-Кассовый Чек [09:37:46]line ПРОДАЖА [09:37:46]line ТРК (МРК, ГНК) : 32 [09:37:46]line Товар: 2710124130 [09:37:46]line Аи-92-К-5 [09:37:46]line 14.950 * 66.90 [09:37:46]line = 1000.16 [09:37:46]line НДС 12% НСП 1% [09:37:46]line > о реализуемом товаре [09:37:46]line ОКРУГЛЕНИЕ: -0.16 [09:37:46]line ИТОГО: 1000.00 [09:37:46]line Внесено: 1000.00 [09:37:46]line СДАЧА: 0.00 [09:37:46]line НСП 1% : 8.85 [09:37:46]line НДС 12% : 106.21 [09:37:46]line Наличными: 1000.00 [09:37:46]line Безнал.: 0.00 [09:37:46]line Место: АЗС № 85 "Партнер Нефть" [09:37:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:37:46]line СНО: Общий режим [09:37:46]line Чек 94 21.10.2024 09:37 [09:37:46]line Смена: 194 ФФД: 1.0 [09:37:46]line ЗНМ: 0300000167 [09:37:46]line РНМ: 0000000000156251 [09:37:46]line Версия ККМ: v1.0 [09:37:46]line ФМ: 0000000000963346 [09:37:46]line ФД: 69704 [09:37:46]line ФПД: 218101594208690 [09:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69704&fm=218101594208690&tin=02508201610067®Number=0000000000156251&sum=100000 [09:37:46]OFD Sender: Processing packet 69704 [packets to send 18, broken 17] [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00069704 [09:37:46]OFD Sender: To server: pG, [09:37:46]CommunicateWithHost lk.salyk.kg:30040 [09:37:46]ConnectInit lk.salyk.kg [09:37:46]written 0, free lines is 4095 [09:37:47]Connected sock=11 [09:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 18 07 01 DD 07 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 EC 20 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 10 01 00 35 04 06 00 C6 5C BC 0C 39 B2 D3 57 92 A2 E3 C4 C7 4F [09:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 ED C4 47 00 9C BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 10 01 00 F4 03 04 00 90 CA 15 67 B6 04 01 00 00 4B DE 65 1B 22 5B 20 91 [09:37:47]CommunicateWithHost err = 0 [09:37:47]CheckOFDResponse [09:37:47]1017 (14) - 77093643461234 [09:37:47]1041 (16) - 0000000000963346 [09:37:47]1040 (4) - 69704 [09:37:47]1012 (4) - 21.10.2024 03:29 [09:37:47]1206 (1) - 0 [09:37:47]OFD Sender: Remove packet 69704 [09:37:47]ProducePacketName [09:37:47]name=ofd_packets/00069704 [09:37:47]NVStorageDeleteData [09:37:47]Write to MH i2c: 01 00 00 D3 1D F0 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 F3 0C F6 [09:37:47]RasterBufferAndPrint [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]written 0, free lines is 3321 [09:37:47]MH_Cut [09:37:47]Write to MH i2c: D1 01 00 DA 1D 01 C9 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 01 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 01 00 DA 1D 00 C8 [09:37:47]Write to MH i2c: 01 00 00 DB 1D F8 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]OFD Sender: No OFD packet to send [09:37:48]*** Cut start [09:37:48]*** Partial cut [09:37:48]*** CUTSNS_PIN = 1 [09:37:48]*** CUTSNS_PIN = 0 [09:37:48]*** Brake cut motor [09:37:48]Read from MH i2c: 01 [09:37:48]MH_I2C_Read... [09:37:48]*** Stop cut motor [09:37:48]*** Cut end [09:37:48]Read from MH i2c: 01 07 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 DB 1D 00 00 00 00 00 FF 0F 0D [09:37:48]process_action close_receipt done [09:37:48]requested_data is exist [09:37:48]produce_requested_data [09:37:48]requested_item fm.sn is exist - process it [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 11 00 00 [09:37:48]Write to MH i2c: E2 08 00 DC 1D 80 11 00 00 00 00 00 00 73 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 DC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [09:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:37:48]wFMCommunicate OK [09:37:48]requested_item fd.num is exist - process it [09:37:48]SAM_PROTO_GetFieldsCounters [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 00 00 [09:37:48]Write to MH i2c: E2 08 00 DD 1D 80 13 00 00 00 00 00 00 76 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 DD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 10 01 00 0E 04 04 00 C2 00 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 C6 [09:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 10 01 00 0E 04 04 00 C2 00 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 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetFieldsCounters done [09:37:48]requested_item shift.num is exist - process it [09:37:48]requested_item shift.opened is exist - process it [09:37:48]req_shift_opened [09:37:48]FM_GetShiftState [09:37:48]SAM_PROTO_GetShiftState [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 01 00 [09:37:48]Write to MH i2c: E2 08 00 DE 1D 80 13 01 00 00 00 00 00 78 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 DE 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A4 [09:37:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]req_shift_opened done [09:37:48]requested_item shift.open_date is exist - process it [09:37:48]req_shift_open_date [09:37:48]req_shift_open_date done [09:37:48]produce_requested_data done [09:37:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69704,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:37:48]process_action_free close_receipt [09:37:48]json_value_free [09:37:48]json_value_free done [09:37:48]process_json_proto returns [09:37:48]Send response to host [09:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69704,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:37:48]free response buf [09:37:48]execute_script done [09:37:48]execute_script returns [09:37:48]free content buf [09:37:48]Sock 8.Close socket [09:37:48]Sock 8.Thread stoped [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: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: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]accept exits with 9 [09:39:02]New connection [09:39:02]New thread 3067313508 created [09:39:02]Thread 3067456868 joined [09:39:02]Waiting for new connection... [09:39:02] Sock 9.Parse request [09:39:02]Sock 9.Check first char [09:39:02]Sock 9.First char is OK [09:39:02]request: POST /json_proto HTTP/1.0 [09:39:02]Method: POST [09:39:02]URL: /json_proto [09:39:02]Method is POST - this is cgi request [09:39:02]url: /json_proto [09:39:02]query_string will be loaded in cgi processing [09:39:02]execute_cgi json_proto POST (null) [09:39:02]execute_cgi path=json_proto method=POST [09:39:02]POST find Content-Length [09:39:02]Host: 172.17.50.3:8080 [09:39:02]Content-Length: 689 [09:39:02]Content-Type: application/json [09:39:02] [09:39:02]POST finish read [09:39:02]Found Content-Length = 689 [09:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [09:39:02]execute_script... [09:39: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)2885445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [09:39:02]POST & json_proto [09:39:02]process_json_proto [09:39:02]json parsed OK: [09:39:02]protocol is kg_v1.0 [09:39:02]action value=close_receipt [09:39:02]process_action close_receipt [09:39:02]cmd_close_receipt [09:39:02]MH_GetDate [09:39:02]Write to MH i2c: F0 00 00 DF 1D EB [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: F0 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: F0 09 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: F0 09 00 DF 1D 00 39 21 16 67 6B 98 1E 66 52 [09:39:02]GetLastDocTimeStamp 1729503468 [09:39:02]current date 1729503545 [09:39:02]FM_GetShiftState [09:39:02]SAM_PROTO_GetShiftState [09:39:02]wFMCommunicate request_size=4 [09:39:02]MH_SAM_APDU [09:39:02]CAPDU: 80 13 01 00 [09:39:02]Write to MH i2c: E2 08 00 E0 1D 80 13 01 00 00 00 00 00 7A [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:02]Read from MH i2c: E2 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 0E 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 0E 00 E0 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A6 [09:39:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:39:02]wFMCommunicate OK [09:39:02]SAM_PROTO_GetShiftState done [09:39:02]FM_GetShiftState done [09:39:02]opened in 1729469703 [09:39:02]opened+sec_in_day 1729556103 [09:39:02]quantity*price = 100051 [09:39:02]sum+1 = 100052 [09:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 95 21.10.2024 09:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69705 ФПД: 165328952537491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69705&fm=165328952537491&tin=02508201610067®Number=0000000000156251&sum=100000 [09:39:03]StoreToDocumentArchive [09:39:03]shift 194 fd 69705 [09:39:03]save to /storage/0194/doc_00069705 [09:39:03]save last doc name /storage/0194/doc_00069705 to /storage/kkm_last_doc_name [09:39:03]save OK [09:39:03]Clear old archive folders... [09:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:39:03]tlvbuf is 00C74820 [09:39:03]SAM_PROTO_ClearQueue [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 09 00 00 [09:39:03]Write to MH i2c: E2 08 00 ED 1D 80 09 00 00 00 00 00 00 7C [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 ED 1D 00 90 00 7E [09:39:03]RAPDU: 90 00 [09:39:03]wFMCommunicate OK [09:39:03]SAM_PROTO_ClearQueue done [09:39:03]KKMCreateOFDPacket [09:39:03]OFDProtocolAddRootSTLVToBuf [09:39:03]FM_MakeSignedData [09:39:03]FM_MakeSignedData [09:39:03]SAM_PROTO_SignData [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 0D 01 02 [09:39:03]Write to MH i2c: E2 08 00 EE 1D 80 0D 01 02 00 00 00 00 84 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 EE 1D 00 90 00 7F [09:39:03]RAPDU: 90 00 [09:39:03]wFMCommunicate OK [09:39:03]wFMCommunicate request_size=255 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 39 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 10 01 [09:39:03]Write to MH i2c: E2 02 01 EF 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 39 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 10 01 00 00 28 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 EF 1D 00 90 00 80 [09:39:03]RAPDU: 90 00 [09:39:03]wFMCommunicate OK [09:39:03]wFMCommunicate request_size=16 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 96 5D A5 7C B1 93 [09:39:03]Write to MH i2c: E2 13 00 F0 1D 80 0D 02 02 0B 00 00 35 04 06 00 96 5D A5 7C B1 93 00 00 34 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 03 00 F0 1D 00 90 00 81 [09:39:03]RAPDU: 90 00 [09:39:03]wFMCommunicate OK [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 0D 03 02 [09:39:03]Write to MH i2c: E2 08 00 F1 1D 80 0D 03 02 00 00 00 00 89 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 0B 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 0B 00 F1 1D 00 E7 10 E8 E1 A7 43 0D C0 90 00 01 [09:39:03]RAPDU: E7 10 E8 E1 A7 43 0D C0 90 00 [09:39:03]wFMCommunicate OK [09:39:03]SAM_PROTO_SignData done [09:39:03]FM_MakeSignedData done [09:39:03]CreateOFDProtocolMessage [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 11 00 00 [09:39:03]Write to MH i2c: E2 08 00 F2 1D 80 11 00 00 00 00 00 00 89 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 17 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 17 00 F2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [09:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:39:03]wFMCommunicate OK [09:39:03]CreateOFDProtocolMessage done [09:39:03]OFDSenderStorePacket 69705 [09:39:03]StoreOFDPacket docnum=69705 [09:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2C 91 0D 01 03 1C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 39 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 10 01 00 35 04 06 00 96 5D A5 7C B1 93 E7 10 E8 E1 A7 43 0D C0 [09:39:03]CheckFolder [09:39:03]dirname=/storage/ofd_packets [09:39:03]CheckFolder done [09:39:03]ProducePacketName [09:39:03]name=ofd_packets/00069705 [09:39:03]NVStorageSaveData ofd_packets/00069705 [09:39:03]File name is /storage/ofd_packets/00069705 [09:39:03]Write 307 bytes [09:39:03]NVStorageSaveData done [09:39:03]OFDSenderStorePacket done [09:39:03]KKMCreateOFDPacket done [09:39:03]NVStorageSaveData kkm_last_timestamp [09:39:03]File name is /storage/kkm_last_timestamp [09:39:03]OFD Sender: Processing packet 69705 [packets to send 18, broken 17] [09:39:03]ProducePacketName [09:39:03]name=ofd_packets/00069705 [09:39:03]OFD Sender: To server: pG, [09:39:03]CommunicateWithHost lk.salyk.kg:30040 [09:39:03]ConnectInit lk.salyk.kg [09:39:03]Write 4 bytes [09:39:03]NVStorageSaveData done [09:39:03]ExternCall_PrintAddStr [09:39:03]wPrintStart [09:39:03]Write to MH i2c: 01 00 00 F3 1D 10 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: 01 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: 01 07 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: 01 07 00 F3 1D 00 00 00 00 00 FF 0F 25 [09:39:03]RasterBufferAndPrint [09:39:03]line Счет N : (1)2885445 [09:39:03]line ИНН: 02508201610067 [09:39:03]line Контрольно-Кассовый Чек [09:39:03]line ПРОДАЖА [09:39:03]line ТРК (МРК, ГНК) : 11 [09:39:03]line Товар: 2710194240 [09:39:03]line D-ENERGY Дт-К-2 [09:39:03]line 12.960 * 77.20 [09:39:03]line = 1000.51 [09:39:03]line НДС 12% НСП 1% [09:39:03]line > о реализуемом товаре [09:39:03]line ОКРУГЛЕНИЕ: -0.51 [09:39:03]line ИТОГО: 1000.00 [09:39:03]line Внесено: 1000.00 [09:39:03]line СДАЧА: 0.00 [09:39:03]line НСП 1% : 8.85 [09:39:03]line НДС 12% : 106.25 [09:39:03]line Наличными: 1000.00 [09:39:03]line Безнал.: 0.00 [09:39:03]line Место: АЗС № 85 "Партнер Нефть" [09:39:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:39:03]line СНО: Общий режим [09:39:03]line Чек 95 21.10.2024 09:39 [09:39:03]line Смена: 194 ФФД: 1.0 [09:39:03]line ЗНМ: 0300000167 [09:39:03]line РНМ: 0000000000156251 [09:39:03]line Версия ККМ: v1.0 [09:39:04]line ФМ: 0000000000963346 [09:39:04]line ФД: 69705 [09:39:04]line ФПД: 165328952537491 [09:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69705&fm=165328952537491&tin=02508201610067®Number=0000000000156251&sum=100000 [09:39:04]Connected sock=11 [09:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2C 91 0D 01 03 1C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 39 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 10 01 00 35 04 06 00 96 5D A5 7C B1 93 E7 10 E8 E1 A7 43 0D C0 [09:39:04]written 0, free lines is 4095 [09:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B 0C 47 00 64 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 10 01 00 F4 03 04 00 DD CA 15 67 B6 04 01 00 00 7C 54 E6 88 38 41 EC 17 [09:39:04]CommunicateWithHost err = 0 [09:39:04]CheckOFDResponse [09:39:04]1017 (14) - 77093643461234 [09:39:04]1041 (16) - 0000000000963346 [09:39:04]1040 (4) - 69705 [09:39:04]1012 (4) - 21.10.2024 03:30 [09:39:04]1206 (1) - 0 [09:39:04]OFD Sender: Remove packet 69705 [09:39:04]ProducePacketName [09:39:04]name=ofd_packets/00069705 [09:39:04]NVStorageDeleteData [09:39:04]Write to MH i2c: 01 00 00 1E 1E 3C [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: 01 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: 01 07 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: 01 07 00 1E 1E 00 00 00 00 00 F6 0C 45 [09:39:04]RasterBufferAndPrint [09:39:04]line [09:39:04]line [09:39:04]line [09:39:04]line [09:39:04]line [09:39:04]written 0, free lines is 3328 [09:39:04]MH_Cut [09:39:04]Write to MH i2c: D1 01 00 25 1E 01 15 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: D1 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: D1 01 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: D1 01 00 25 1E 00 14 [09:39:04]Write to MH i2c: 01 00 00 26 1E 44 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]OFD Sender: No OFD packet to send [09:39:05]*** Cut start [09:39:05]*** Partial cut [09:39:05]*** CUTSNS_PIN = 1 [09:39:05]*** CUTSNS_PIN = 0 [09:39:05]*** Brake cut motor [09:39:05]Read from MH i2c: 01 [09:39:05]MH_I2C_Read... [09:39:05]*** Stop cut motor [09:39:05]*** Cut end [09:39:05]Read from MH i2c: 01 07 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: 01 07 00 26 1E 00 00 00 00 00 FF 0F 59 [09:39:05]process_action close_receipt done [09:39:05]requested_data is exist [09:39:05]produce_requested_data [09:39:05]requested_item fm.sn is exist - process it [09:39:05]wFMCommunicate request_size=4 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 11 00 00 [09:39:05]Write to MH i2c: E2 08 00 27 1E 80 11 00 00 00 00 00 00 BF [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:06]Read from MH i2c: E2 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 17 00 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 17 00 27 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [09:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:39:06]wFMCommunicate OK [09:39:06]requested_item fd.num is exist - process it [09:39:06]SAM_PROTO_GetFieldsCounters [09:39:06]wFMCommunicate request_size=4 [09:39:06]MH_SAM_APDU [09:39:06]CAPDU: 80 13 00 00 [09:39:06]Write to MH i2c: E2 08 00 28 1E 80 13 00 00 00 00 00 00 C2 [09:39:06]Write i2c OK [09:39:06]MH_I2C_Read... [09:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:06]Read from MH i2c: E2 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 62 00 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 62 00 28 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 10 01 00 0E 04 04 00 C2 00 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 16 [09:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 10 01 00 0E 04 04 00 C2 00 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 [09:39:06]wFMCommunicate OK [09:39:06]SAM_PROTO_GetFieldsCounters done [09:39:06]requested_item shift.num is exist - process it [09:39:06]requested_item shift.opened is exist - process it [09:39:06]req_shift_opened [09:39:06]FM_GetShiftState [09:39:06]SAM_PROTO_GetShiftState [09:39:06]wFMCommunicate request_size=4 [09:39:06]MH_SAM_APDU [09:39:06]CAPDU: 80 13 01 00 [09:39:06]Write to MH i2c: E2 08 00 29 1E 80 13 01 00 00 00 00 00 C4 [09:39:06]Write i2c OK [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 [09:39:06]MH_I2C_Read... [09:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:06]Read from MH i2c: E2 0E 00 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: E2 0E 00 29 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F0 [09:39:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:39:06]wFMCommunicate OK [09:39:06]SAM_PROTO_GetShiftState done [09:39:06]FM_GetShiftState done [09:39:06]req_shift_opened done [09:39:06]requested_item shift.open_date is exist - process it [09:39:06]req_shift_open_date [09:39:06]req_shift_open_date done [09:39:06]produce_requested_data done [09:39:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69705,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:39:06]process_action_free close_receipt [09:39:06]json_value_free [09:39:06]json_value_free done [09:39:06]process_json_proto returns [09:39:06]Send response to host [09:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69705,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:39:06]free response buf [09:39:06]execute_script done [09:39:06]execute_script returns [09:39:06]free content buf [09:39:06]Sock 9.Close socket [09:39:06]Sock 9.Thread stoped [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:17]accept exits with 8 [09:39:17]New connection [09:39:17]New thread 3067456868 created [09:39:17]Thread 3067313508 joined [09:39:17]Waiting for new connection... [09:39:17] Sock 8.Parse request [09:39:17]Sock 8.Check first char [09:39:17]Sock 8.First char is OK [09:39:17]request: POST /json_proto HTTP/1.0 [09:39:17]Method: POST [09:39:17]URL: /json_proto [09:39:17]Method is POST - this is cgi request [09:39:17]url: /json_proto [09:39:17]query_string will be loaded in cgi processing [09:39:17]execute_cgi json_proto POST (null) [09:39:17]execute_cgi path=json_proto method=POST [09:39:17]POST find Content-Length [09:39:17]Host: 172.17.50.3:8080 [09:39:17]Content-Length: 678 [09:39:17]Content-Type: application/json [09:39:17] [09:39:17]POST finish read [09:39:17]Found Content-Length = 678 [09:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:17]execute_script... [09:39:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:17]POST & json_proto [09:39:17]process_json_proto [09:39:17]json parsed OK: [09:39:17]protocol is kg_v1.0 [09:39:17]action value=close_receipt [09:39:17]process_action close_receipt [09:39:17]cmd_close_receipt [09:39:17]MH_GetDate [09:39:17]Write to MH i2c: F0 00 00 2A 1E 37 [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: F0 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: F0 09 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: F0 09 00 2A 1E 00 48 21 16 67 6B 98 1E 66 AD [09:39:17]GetLastDocTimeStamp 1729503545 [09:39:17]current date 1729503560 [09:39:17]FM_GetShiftState [09:39:17]SAM_PROTO_GetShiftState [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 13 01 00 [09:39:17]Write to MH i2c: E2 08 00 2B 1E 80 13 01 00 00 00 00 00 C6 [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:17]Read from MH i2c: E2 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 0E 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 0E 00 2B 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F2 [09:39:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:39:17]wFMCommunicate OK [09:39:17]SAM_PROTO_GetShiftState done [09:39:17]FM_GetShiftState done [09:39:17]opened in 1729469703 [09:39:17]opened+sec_in_day 1729556103 [09:39:17]quantity*price = 60009 [09:39:17]sum+1 = 60010 [09:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 96 21.10.2024 09:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69706 ФПД: 191145316159649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093920&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69706&fm=191145316159649&tin=02508201610067®Number=0000000000156251&sum=60000 [09:39:18]StoreToDocumentArchive [09:39:18]shift 194 fd 69706 [09:39:18]save to /storage/0194/doc_00069706 [09:39:18]save last doc name /storage/0194/doc_00069706 to /storage/kkm_last_doc_name [09:39:18]save OK [09:39:18]Clear old archive folders... [09:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:18]tlvbuf is B6F3C0E0 [09:39:18]SAM_PROTO_ClearQueue [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 09 00 00 [09:39:18]Write to MH i2c: E2 08 00 38 1E 80 09 00 00 00 00 00 00 C8 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 38 1E 00 90 00 CA [09:39:18]RAPDU: 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_ClearQueue done [09:39:18]KKMCreateOFDPacket [09:39:18]OFDProtocolAddRootSTLVToBuf [09:39:18]FM_MakeSignedData [09:39:18]FM_MakeSignedData [09:39:18]SAM_PROTO_SignData [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 0D 01 02 [09:39:18]Write to MH i2c: E2 08 00 39 1E 80 0D 01 02 00 00 00 00 D0 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 39 1E 00 90 00 CB [09:39:18]RAPDU: 90 00 [09:39:18]wFMCommunicate OK [09:39:18]wFMCommunicate request_size=255 [09:39:18]MH_SAM_APDU [09:39: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 48 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 10 01 00 35 04 06 00 AD [09:39:18]Write to MH i2c: E2 02 01 3A 1E 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 48 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 10 01 00 35 04 06 00 AD 00 00 46 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 3A 1E 00 90 00 CC [09:39:18]RAPDU: 90 00 [09:39:18]wFMCommunicate OK [09:39:18]wFMCommunicate request_size=10 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 0D 02 02 05 D8 7C AB 90 A1 [09:39:18]Write to MH i2c: E2 0D 00 3B 1E 80 0D 02 02 05 00 D8 7C AB 90 A1 00 00 0D [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 03 00 3B 1E 00 90 00 CD [09:39:18]RAPDU: 90 00 [09:39:18]wFMCommunicate OK [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 0D 03 02 [09:39:18]Write to MH i2c: E2 08 00 3C 1E 80 0D 03 02 00 00 00 00 D5 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0B 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0B 00 3C 1E 00 7E 4A 8C D2 75 D1 14 A4 90 00 FA [09:39:18]RAPDU: 7E 4A 8C D2 75 D1 14 A4 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_SignData done [09:39:18]FM_MakeSignedData done [09:39:18]CreateOFDProtocolMessage [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 11 00 00 [09:39:18]Write to MH i2c: E2 08 00 3D 1E 80 11 00 00 00 00 00 00 D5 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 17 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 17 00 3D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [09:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:39:18]wFMCommunicate OK [09:39:18]CreateOFDProtocolMessage done [09:39:18]OFDSenderStorePacket 69706 [09:39:18]StoreOFDPacket docnum=69706 [09:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 31 07 01 14 81 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 48 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 10 01 00 35 04 06 00 AD D8 7C AB 90 A1 7E 4A 8C D2 75 D1 14 A4 [09:39:18]CheckFolder [09:39:18]dirname=/storage/ofd_packets [09:39:18]CheckFolder done [09:39:18]ProducePacketName [09:39:18]name=ofd_packets/00069706 [09:39:18]NVStorageSaveData ofd_packets/00069706 [09:39:18]File name is /storage/ofd_packets/00069706 [09:39:18]Write 301 bytes [09:39:18]NVStorageSaveData done [09:39:18]OFDSenderStorePacket done [09:39:18]KKMCreateOFDPacket done [09:39:18]NVStorageSaveData kkm_last_timestamp [09:39:18]File name is /storage/kkm_last_timestamp [09:39:18]Write 4 bytes [09:39:18]NVStorageSaveData done [09:39:18]ExternCall_PrintAddStr [09:39:18]wPrintStart [09:39:18]Write to MH i2c: 01 00 00 3E 1E 5C [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: 01 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: 01 07 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: 01 07 00 3E 1E 00 00 00 00 00 FF 0F 71 [09:39:18]RasterBufferAndPrint [09:39:18]line Счет N : (1)2885446 [09:39:18]line ИНН: 02508201610067 [09:39:18]line Контрольно-Кассовый Чек [09:39:18]line ПРОДАЖА [09:39:18]line ТРК (МРК, ГНК) : 22 [09:39:18]line Товар: 2710124130 [09:39:18]line Аи-92-К-5 [09:39:18]line 8.970 * 66.90 [09:39:18]line = 600.09 [09:39:18]line НДС 12% НСП 1% [09:39:18]line > о реализуемом товаре [09:39:18]line ОКРУГЛЕНИЕ: -0.09 [09:39:18]line ИТОГО: 600.00 [09:39:18]line Внесено: 600.00 [09:39:18]line СДАЧА: 0.00 [09:39:18]line НСП 1% : 5.31 [09:39:18]line НДС 12% : 63.73 [09:39:18]line Наличными: 600.00 [09:39:18]line Безнал.: 0.00 [09:39:18]line Место: АЗС № 85 "Партнер Нефть" [09:39:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:39:18]line СНО: Общий режим [09:39:18]line Чек 96 21.10.2024 09:39 [09:39:18]line Смена: 194 ФФД: 1.0 [09:39:18]line ЗНМ: 0300000167 [09:39:18]line РНМ: 0000000000156251 [09:39:18]line Версия ККМ: v1.0 [09:39:18]line ФМ: 0000000000963346 [09:39:18]line ФД: 69706 [09:39:18]line ФПД: 191145316159649 [09:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093920&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69706&fm=191145316159649&tin=02508201610067®Number=0000000000156251&sum=60000 [09:39:19]OFD Sender: Processing packet 69706 [packets to send 18, broken 17] [09:39:19]ProducePacketName [09:39:19]name=ofd_packets/00069706 [09:39:19]OFD Sender: To server: pG, [09:39:19]CommunicateWithHost lk.salyk.kg:30040 [09:39:19]ConnectInit lk.salyk.kg [09:39:19]written 0, free lines is 4095 [09:39:19]Connected sock=10 [09:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 31 07 01 14 81 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 48 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 10 01 00 35 04 06 00 AD D8 7C AB 90 A1 7E 4A 8C D2 75 D1 14 A4 [09:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C 96 47 00 57 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 10 01 00 F4 03 04 00 EC CA 15 67 B6 04 01 00 00 CC F4 D7 76 CD 5A DE 9C [09:39:19]CommunicateWithHost err = 0 [09:39:19]CheckOFDResponse [09:39:19]1017 (14) - 77093643461234 [09:39:19]1041 (16) - 0000000000963346 [09:39:19]1040 (4) - 69706 [09:39:19]1012 (4) - 21.10.2024 03:30 [09:39:19]1206 (1) - 0 [09:39:19]OFD Sender: Remove packet 69706 [09:39:19]ProducePacketName [09:39:19]name=ofd_packets/00069706 [09:39:19]NVStorageDeleteData [09:39:19]Write to MH i2c: 01 00 00 69 1E 87 [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: 01 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: 01 07 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FB 0C 95 [09:39:19]RasterBufferAndPrint [09:39:19]line [09:39:19]line [09:39:19]line [09:39:19]line [09:39:19]line [09:39:19]written 0, free lines is 3332 [09:39:19]MH_Cut [09:39:19]Write to MH i2c: D1 01 00 70 1E 01 60 [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: D1 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: D1 01 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: D1 01 00 70 1E 00 5F [09:39:19]Write to MH i2c: 01 00 00 71 1E 8F [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]OFD Sender: No OFD packet to send [09:39:20]*** Cut start [09:39:20]*** Partial cut [09:39:20]*** CUTSNS_PIN = 1 [09:39:20]*** CUTSNS_PIN = 0 [09:39:20]*** Brake cut motor [09:39:20]Read from MH i2c: 01 [09:39:20]MH_I2C_Read... [09:39:20]*** Stop cut motor [09:39:20]*** Cut end [09:39:20]Read from MH i2c: 01 07 00 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: 01 07 00 71 1E 00 00 00 00 00 FF 0F A4 [09:39:20]process_action close_receipt done [09:39:20]requested_data is exist [09:39:20]produce_requested_data [09:39:20]requested_item fm.sn is exist - process it [09:39:20]wFMCommunicate request_size=4 [09:39:20]MH_SAM_APDU [09:39:20]CAPDU: 80 11 00 00 [09:39:20]Write to MH i2c: E2 08 00 72 1E 80 11 00 00 00 00 00 00 0A [09:39:20]Write i2c OK [09:39:20]MH_I2C_Read... [09:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:20]Read from MH i2c: E2 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 17 00 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 17 00 72 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [09:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:39:20]wFMCommunicate OK [09:39:20]requested_item fd.num is exist - process it [09:39:20]SAM_PROTO_GetFieldsCounters [09:39:20]wFMCommunicate request_size=4 [09:39:20]MH_SAM_APDU [09:39:20]CAPDU: 80 13 00 00 [09:39:20]Write to MH i2c: E2 08 00 73 1E 80 13 00 00 00 00 00 00 0D [09:39:20]Write i2c OK [09:39:20]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 62 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 62 00 73 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 10 01 00 0E 04 04 00 C2 00 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 65 [09:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 10 01 00 0E 04 04 00 C2 00 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 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_GetFieldsCounters done [09:39:21]requested_item shift.num is exist - process it [09:39:21]requested_item shift.opened is exist - process it [09:39:21]req_shift_opened [09:39:21]FM_GetShiftState [09:39:21]SAM_PROTO_GetShiftState [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 13 01 00 [09:39:21]Write to MH i2c: E2 08 00 74 1E 80 13 01 00 00 00 00 00 0F [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0E 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0E 00 74 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3B [09:39:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_GetShiftState done [09:39:21]FM_GetShiftState done [09:39:21]req_shift_opened done [09:39:21]requested_item shift.open_date is exist - process it [09:39:21]req_shift_open_date [09:39:21]req_shift_open_date done [09:39:21]produce_requested_data done [09:39:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69706,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:39:21]process_action_free close_receipt [09:39:21]json_value_free [09:39:21]json_value_free done [09:39:21]process_json_proto returns [09:39:21]Send response to host [09:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69706,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:39:21]free response buf [09:39:21]execute_script done [09:39:21]execute_script returns [09:39:21]free content buf [09:39:21]Sock 8.Close socket [09:39:21]Sock 8.Thread stoped [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]accept exits with 9 [09:40:19]New connection [09:40:19]New thread 3067313508 created [09:40:19]Thread 3067456868 joined [09:40:19]Waiting for new connection... [09:40:19] Sock 9.Parse request [09:40:19]Sock 9.Check first char [09:40:19]Sock 9.First char is OK [09:40:19]request: POST /json_proto HTTP/1.0 [09:40:19]Method: POST [09:40:19]URL: /json_proto [09:40:19]Method is POST - this is cgi request [09:40:19]url: /json_proto [09:40:19]query_string will be loaded in cgi processing [09:40:19]execute_cgi json_proto POST (null) [09:40:19]execute_cgi path=json_proto method=POST [09:40:19]POST find Content-Length [09:40:19]Host: 172.17.50.3:8080 [09:40:19]Content-Length: 978 [09:40:19]Content-Type: application/json [09:40:19] [09:40:19]POST finish read [09:40:19]Found Content-Length = 978 [09:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:19]execute_script... [09:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:19]POST & json_proto [09:40:19]process_json_proto [09:40:19]json parsed OK: [09:40:19]protocol is kg_v1.0 [09:40:19]action value=close_receipt [09:40:19]process_action close_receipt [09:40:19]cmd_close_receipt [09:40:19]MH_GetDate [09:40:19]Write to MH i2c: F0 00 00 75 1E 82 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: F0 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: F0 09 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: F0 09 00 75 1E 00 86 21 16 67 6B 98 1E 66 36 [09:40:19]GetLastDocTimeStamp 1729503560 [09:40:19]current date 1729503622 [09:40:19]FM_GetShiftState [09:40:19]SAM_PROTO_GetShiftState [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 01 00 [09:40:19]Write to MH i2c: E2 08 00 76 1E 80 13 01 00 00 00 00 00 11 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 76 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3D [09:40:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetShiftState done [09:40:19]FM_GetShiftState done [09:40:19]opened in 1729469703 [09:40:19]opened+sec_in_day 1729556103 [09:40:19]quantity*price = 500004 [09:40:19]sum+1 = 500006 [09:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 97 21.10.2024 09:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69707 ФПД: 57367903454031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69707&fm=57367903454031&tin=02508201610067®Number=0000000000156251&sum=500000 [09:40:20]StoreToDocumentArchive [09:40:20]shift 194 fd 69707 [09:40:20]save to /storage/0194/doc_00069707 [09:40:20]save last doc name /storage/0194/doc_00069707 to /storage/kkm_last_doc_name [09:40:20]save OK [09:40:20]Clear old archive folders... [09:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:20]tlvbuf is 00CAF5A0 [09:40:20]SAM_PROTO_ClearQueue [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 09 00 00 [09:40:20]Write to MH i2c: E2 08 00 83 1E 80 09 00 00 00 00 00 00 13 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 83 1E 00 90 00 15 [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]SAM_PROTO_ClearQueue done [09:40:20]KKMCreateOFDPacket [09:40:20]OFDProtocolAddRootSTLVToBuf [09:40:20]FM_MakeSignedData [09:40:20]FM_MakeSignedData [09:40:20]SAM_PROTO_SignData [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 0D 01 02 [09:40:20]Write to MH i2c: E2 08 00 84 1E 80 0D 01 02 00 00 00 00 1B [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 84 1E 00 90 00 16 [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]wFMCommunicate request_size=255 [09:40:20]MH_SAM_APDU [09:40:20]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 10 01 00 35 04 06 00 34 2D 01 81 [09:40:20]Write to MH i2c: E2 02 01 85 1E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 10 01 00 35 04 06 00 34 2D 01 81 00 00 23 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 03 00 85 1E 00 90 00 17 [09:40:20]RAPDU: 90 00 [09:40:20]wFMCommunicate OK [09:40:20]wFMCommunicate request_size=7 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 0D 02 02 02 C3 4F [09:40:20]Write to MH i2c: E2 0A 00 86 1E 80 0D 02 02 02 00 C3 4F 00 00 34 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 03 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 03 00 86 1E 00 90 00 18 [09:40:21]RAPDU: 90 00 [09:40:21]wFMCommunicate OK [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 0D 03 02 [09:40:21]Write to MH i2c: E2 08 00 87 1E 80 0D 03 02 00 00 00 00 20 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0B 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0B 00 87 1E 00 4D 43 87 C0 3B C7 D5 EA 90 00 B9 [09:40:21]RAPDU: 4D 43 87 C0 3B C7 D5 EA 90 00 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_SignData done [09:40:21]FM_MakeSignedData done [09:40:21]CreateOFDProtocolMessage [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 11 00 00 [09:40:21]Write to MH i2c: E2 08 00 88 1E 80 11 00 00 00 00 00 00 20 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 88 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [09:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:21]wFMCommunicate OK [09:40:21]CreateOFDProtocolMessage done [09:40:21]OFDSenderStorePacket 69707 [09:40:21]StoreOFDPacket docnum=69707 [09:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 79 48 04 01 F3 68 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 10 01 00 35 04 06 00 34 2D 01 81 C3 4F 4D 43 87 C0 3B C7 D5 EA [09:40:21]CheckFolder [09:40:21]dirname=/storage/ofd_packets [09:40:21]CheckFolder done [09:40:21]ProducePacketName [09:40:21]name=ofd_packets/00069707 [09:40:21]NVStorageSaveData ofd_packets/00069707 [09:40:21]File name is /storage/ofd_packets/00069707 [09:40:21]Write 298 bytes [09:40:21]NVStorageSaveData done [09:40:21]OFDSenderStorePacket done [09:40:21]KKMCreateOFDPacket done [09:40:21]NVStorageSaveData kkm_last_timestamp [09:40:21]File name is /storage/kkm_last_timestamp [09:40:21]Write 4 bytes [09:40:21]NVStorageSaveData done [09:40:21]ExternCall_PrintAddStr [09:40:21]wPrintStart [09:40:21]Write to MH i2c: 01 00 00 89 1E A7 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 89 1E 00 00 00 00 00 FF 0F BC [09:40:21]RasterBufferAndPrint [09:40:21]line Счет N : (1)2885449 [09:40:21]line ИНН: 02508201610067 [09:40:21]line Контрольно-Кассовый Чек [09:40:21]line ПРОДАЖА [09:40:21]line ТРК (МРК, ГНК) : 51 [09:40:21]line Товар: 2710194210 [09:40:21]line ДТ-К-5 [09:40:21]line 66.490 * 75.20 [09:40:21]line = 5000.05 [09:40:21]line НДС 12% НСП 1% [09:40:21]line > о реализуемом товаре [09:40:21]line ОКРУГЛЕНИЕ: -0.05 [09:40:21]line ИТОГО: 5000.00 [09:40:21]line Внесено: 5000.00 [09:40:21]line СДАЧА: 0.00 [09:40:21]line НСП 1% : 44.25 [09:40:21]line НДС 12% : 530.98 [09:40:21]line Наличными: 5000.00 [09:40:21]line Безнал.: 0.00 [09:40:21]line Место: АЗС № 85 "Партнер Нефть" [09:40:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:40:21]line СНО: Общий режим [09:40:21]line Чек 97 21.10.2024 09:40 [09:40:21]line Смена: 194 ФФД: 1.0 [09:40:21]line ЗНМ: 0300000167 [09:40:21]line РНМ: 0000000000156251 [09:40:21]line Версия ККМ: v1.0 [09:40:21]line [09:40:21]line Дисконтная программа [09:40:21]line ДТ [09:40:21]line номер 85 [09:40:21]line сэкономлено 66.49 сом [09:40:21]line ФМ: 0000000000963346 [09:40:21]line ФД: 69707 [09:40:21]line ФПД: 57367903454031 [09:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69707&fm=57367903454031&tin=02508201610067®Number=0000000000156251&sum=500000 [09:40:21]OFD Sender: Processing packet 69707 [packets to send 18, broken 17] [09:40:21]ProducePacketName [09:40:21]name=ofd_packets/00069707 [09:40:21]OFD Sender: To server: pG, [09:40:21]CommunicateWithHost lk.salyk.kg:30040 [09:40:21]ConnectInit lk.salyk.kg [09:40:21]written 0, free lines is 4095 [09:40:21]Connected sock=10 [09:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 79 48 04 01 F3 68 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 86 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 10 01 00 35 04 06 00 34 2D 01 81 C3 4F 4D 43 87 C0 3B C7 D5 EA [09:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 33 47 00 2D F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 10 01 00 F4 03 04 00 2A CB 15 67 B6 04 01 00 00 E2 1B 99 F6 8E A1 44 C0 [09:40:21]CommunicateWithHost err = 0 [09:40:21]CheckOFDResponse [09:40:21]1017 (14) - 77093643461234 [09:40:21]1041 (16) - 0000000000963346 [09:40:21]1040 (4) - 69707 [09:40:21]1012 (4) - 21.10.2024 03:31 [09:40:21]1206 (1) - 0 [09:40:21]OFD Sender: Remove packet 69707 [09:40:21]ProducePacketName [09:40:21]name=ofd_packets/00069707 [09:40:21]NVStorageDeleteData [09:40:21]Write to MH i2c: 01 00 00 B9 1E D7 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: 01 07 00 B9 1E 00 00 00 00 00 A1 0C 8B [09:40:21]RasterBufferAndPrint [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]line [09:40:21]written 0, free lines is 3239 [09:40:21]MH_Cut [09:40:21]Write to MH i2c: D1 01 00 C0 1E 01 B0 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 01 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: D1 01 00 C0 1E 00 AF [09:40:21]Write to MH i2c: 01 00 00 C1 1E DF [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:22]OFD Sender: No OFD packet to send [09:40:22]*** Cut start [09:40:22]*** Partial cut [09:40:22]*** CUTSNS_PIN = 1 [09:40:22]*** CUTSNS_PIN = 0 [09:40:22]*** Brake cut motor [09:40:23]Read from MH i2c: 01 [09:40:23]MH_I2C_Read... [09:40:23]*** Stop cut motor [09:40:23]*** Cut end [09:40:23]Read from MH i2c: 01 07 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: 01 07 00 C1 1E 00 00 00 00 00 FF 0F F4 [09:40:23]process_action close_receipt done [09:40:23]requested_data is exist [09:40:23]produce_requested_data [09:40:23]requested_item fm.sn is exist - process it [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 11 00 00 [09:40:23]Write to MH i2c: E2 08 00 C2 1E 80 11 00 00 00 00 00 00 5A [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 17 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 17 00 C2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [09:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:23]wFMCommunicate OK [09:40:23]requested_item fd.num is exist - process it [09:40:23]SAM_PROTO_GetFieldsCounters [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 13 00 00 [09:40:23]Write to MH i2c: E2 08 00 C3 1E 80 13 00 00 00 00 00 00 5D [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 62 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 62 00 C3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [09:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:23]wFMCommunicate OK [09:40:23]SAM_PROTO_GetFieldsCounters done [09:40:23]requested_item shift.num is exist - process it [09:40:23]requested_item shift.opened is exist - process it [09:40:23]req_shift_opened [09:40:23]FM_GetShiftState [09:40:23]SAM_PROTO_GetShiftState [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 13 01 00 [09:40:23]Write to MH i2c: E2 08 00 C4 1E 80 13 01 00 00 00 00 00 5F [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 0E 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 0E 00 C4 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [09:40:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:23]wFMCommunicate OK [09:40:23]SAM_PROTO_GetShiftState done [09:40:23]FM_GetShiftState done [09:40:23]req_shift_opened done [09:40:23]requested_item shift.open_date is exist - process it [09:40:23]req_shift_open_date [09:40:23]req_shift_open_date done [09:40:23]produce_requested_data done [09:40:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69707,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:40:23]process_action_free close_receipt [09:40:23]json_value_free [09:40:23]json_value_free done [09:40:23]process_json_proto returns [09:40:23]Send response to host [09:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69707,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:40:23]free response buf [09:40:23]execute_script done [09:40:23]execute_script returns [09:40:23]free content buf [09:40:23]Sock 9.Close socket [09:40:23]Sock 9.Thread stoped [09:40:23]accept exits with 8 [09:40:23]New connection [09:40:23]New thread 3067456868 created [09:40:23]Thread 3067313508 joined [09:40:23]Waiting for new connection... [09:40:23] Sock 8.Parse request [09:40:23]Sock 8.Check first char [09:40:23]Sock 8.First char is OK [09:40:23]request: POST /json_proto HTTP/1.0 [09:40:23]Method: POST [09:40:23]URL: /json_proto [09:40:23]Method is POST - this is cgi request [09:40:23]url: /json_proto [09:40:23]query_string will be loaded in cgi processing [09:40:23]execute_cgi json_proto POST (null) [09:40:23]execute_cgi path=json_proto method=POST [09:40:23]POST find Content-Length [09:40:23]Host: 172.17.50.3:8080 [09:40:23]Content-Length: 678 [09:40:23]Content-Type: application/json [09:40:23] [09:40:23]POST finish read [09:40:23]Found Content-Length = 678 [09:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885448", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:23]execute_script... [09:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885448", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:23]POST & json_proto [09:40:23]process_json_proto [09:40:23]json parsed OK: [09:40:23]protocol is kg_v1.0 [09:40:23]action value=close_receipt [09:40:23]process_action close_receipt [09:40:23]cmd_close_receipt [09:40:23]MH_GetDate [09:40:23]Write to MH i2c: F0 00 00 C5 1E D2 [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: F0 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: F0 09 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: F0 09 00 C5 1E 00 8A 21 16 67 6B 98 1E 66 8A [09:40:23]GetLastDocTimeStamp 1729503622 [09:40:23]current date 1729503626 [09:40:23]FM_GetShiftState [09:40:23]SAM_PROTO_GetShiftState [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 13 01 00 [09:40:23]Write to MH i2c: E2 08 00 C6 1E 80 13 01 00 00 00 00 00 61 [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 0E 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 0E 00 C6 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [09:40:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:23]wFMCommunicate OK [09:40:23]SAM_PROTO_GetShiftState done [09:40:23]FM_GetShiftState done [09:40:23]opened in 1729469703 [09:40:23]opened+sec_in_day 1729556103 [09:40:23]quantity*price = 50010 [09:40:23]sum+1 = 50012 [09:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 98 21.10.2024 09:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69708 ФПД: 252836201289305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69708&fm=252836201289305&tin=02508201610067®Number=0000000000156251&sum=50000 [09:40:24]StoreToDocumentArchive [09:40:24]shift 194 fd 69708 [09:40:24]save to /storage/0194/doc_00069708 [09:40:24]save last doc name /storage/0194/doc_00069708 to /storage/kkm_last_doc_name [09:40:24]save OK [09:40:24]Clear old archive folders... [09:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:24]tlvbuf is 00CEF870 [09:40:24]SAM_PROTO_ClearQueue [09:40:24]wFMCommunicate request_size=4 [09:40:24]MH_SAM_APDU [09:40:24]CAPDU: 80 09 00 00 [09:40:24]Write to MH i2c: E2 08 00 D3 1E 80 09 00 00 00 00 00 00 63 [09:40:24]Write i2c OK [09:40:24]MH_I2C_Read... [09:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:24]Read from MH i2c: E2 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 03 00 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 03 00 D3 1E 00 90 00 65 [09:40:24]RAPDU: 90 00 [09:40:24]wFMCommunicate OK [09:40:24]SAM_PROTO_ClearQueue done [09:40:24]KKMCreateOFDPacket [09:40:24]OFDProtocolAddRootSTLVToBuf [09:40:24]FM_MakeSignedData [09:40:24]FM_MakeSignedData [09:40:24]SAM_PROTO_SignData [09:40:24]wFMCommunicate request_size=4 [09:40:24]MH_SAM_APDU [09:40:24]CAPDU: 80 0D 01 02 [09:40:24]Write to MH i2c: E2 08 00 D4 1E 80 0D 01 02 00 00 00 00 6B [09:40:24]Write i2c OK [09:40:24]MH_I2C_Read... [09:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:24]Read from MH i2c: E2 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 03 00 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 03 00 D4 1E 00 90 00 66 [09:40:24]RAPDU: 90 00 [09:40:24]wFMCommunicate OK [09:40:24]wFMCommunicate request_size=255 [09:40:24]MH_SAM_APDU [09:40:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 8A 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 10 01 00 35 04 06 00 E5 [09:40:24]Write to MH i2c: E2 02 01 D5 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 8A 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 10 01 00 35 04 06 00 E5 00 00 5A [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:25]Read from MH i2c: E2 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 D5 1E 00 90 00 67 [09:40:25]RAPDU: 90 00 [09:40:25]wFMCommunicate OK [09:40:25]wFMCommunicate request_size=10 [09:40:25]MH_SAM_APDU [09:40:25]CAPDU: 80 0D 02 02 05 F4 03 F6 D6 59 [09:40:25]Write to MH i2c: E2 0D 00 D6 1E 80 0D 02 02 05 00 F4 03 F6 D6 59 00 00 94 [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:25]Read from MH i2c: E2 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 D6 1E 00 90 00 68 [09:40:25]RAPDU: 90 00 [09:40:25]wFMCommunicate OK [09:40:25]wFMCommunicate request_size=4 [09:40:25]MH_SAM_APDU [09:40:25]CAPDU: 80 0D 03 02 [09:40:25]Write to MH i2c: E2 08 00 D7 1E 80 0D 03 02 00 00 00 00 70 [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:25]Read from MH i2c: E2 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 0B 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 0B 00 D7 1E 00 65 31 DC 6B 2E D2 6A 0E 90 00 C6 [09:40:25]RAPDU: 65 31 DC 6B 2E D2 6A 0E 90 00 [09:40:25]wFMCommunicate OK [09:40:25]SAM_PROTO_SignData done [09:40:25]FM_MakeSignedData done [09:40:25]CreateOFDProtocolMessage [09:40:25]wFMCommunicate request_size=4 [09:40:25]MH_SAM_APDU [09:40:25]CAPDU: 80 11 00 00 [09:40:25]Write to MH i2c: E2 08 00 D8 1E 80 11 00 00 00 00 00 00 70 [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 17 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 17 00 D8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [09:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:26]wFMCommunicate OK [09:40:26]CreateOFDProtocolMessage done [09:40:26]OFDSenderStorePacket 69708 [09:40:26]StoreOFDPacket docnum=69708 [09:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D9 E4 07 01 6A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 8A 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 10 01 00 35 04 06 00 E5 F4 03 F6 D6 59 65 31 DC 6B 2E D2 6A 0E [09:40:26]CheckFolder [09:40:26]dirname=/storage/ofd_packets [09:40:26]CheckFolder done [09:40:26]ProducePacketName [09:40:26]name=ofd_packets/00069708 [09:40:26]NVStorageSaveData ofd_packets/00069708 [09:40:26]File name is /storage/ofd_packets/00069708 [09:40:26]Write 301 bytes [09:40:26]NVStorageSaveData done [09:40:26]OFDSenderStorePacket done [09:40:26]KKMCreateOFDPacket done [09:40:26]NVStorageSaveData kkm_last_timestamp [09:40:26]File name is /storage/kkm_last_timestamp [09:40:26]Write 4 bytes [09:40:26]NVStorageSaveData done [09:40:26]ExternCall_PrintAddStr [09:40:26]wPrintStart [09:40:26]Write to MH i2c: 01 00 00 D9 1E F7 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 FF 0F 0C [09:40:26]RasterBufferAndPrint [09:40:26]line Счет N : (1)2885448 [09:40:26]line ИНН: 02508201610067 [09:40:26]line Контрольно-Кассовый Чек [09:40:26]line ПРОДАЖА [09:40:26]line ТРК (МРК, ГНК) : 33 [09:40:26]line Товар: 2710124500 [09:40:26]line Аи-95-К-5 [09:40:26]line 6.740 * 74.20 [09:40:26]line = 500.11 [09:40:26]line НДС 12% НСП 1% [09:40:26]line > о реализуемом товаре [09:40:26]line ОКРУГЛЕНИЕ: -0.11 [09:40:26]line ИТОГО: 500.00 [09:40:26]line Внесено: 500.00 [09:40:26]line СДАЧА: 0.00 [09:40:26]line НСП 1% : 4.43 [09:40:26]line НДС 12% : 53.11 [09:40:26]line Наличными: 500.00 [09:40:26]line Безнал.: 0.00 [09:40:26]line Место: АЗС № 85 "Партнер Нефть" [09:40:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:40:26]line СНО: Общий режим [09:40:26]line Чек 98 21.10.2024 09:40 [09:40:26]line Смена: 194 ФФД: 1.0 [09:40:26]line ЗНМ: 0300000167 [09:40:26]line РНМ: 0000000000156251 [09:40:26]line Версия ККМ: v1.0 [09:40:26]line ФМ: 0000000000963346 [09:40:26]line ФД: 69708 [09:40:26]line ФПД: 252836201289305 [09:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69708&fm=252836201289305&tin=02508201610067®Number=0000000000156251&sum=50000 [09:40:26]written 0, free lines is 4095 [09:40:26]OFD Sender: Processing packet 69708 [packets to send 18, broken 17] [09:40:26]ProducePacketName [09:40:26]name=ofd_packets/00069708 [09:40:26]OFD Sender: To server: pG, [09:40:26]CommunicateWithHost lk.salyk.kg:30040 [09:40:26]ConnectInit lk.salyk.kg [09:40:26]Connected sock=10 [09:40:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D9 E4 07 01 6A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 8A 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 10 01 00 35 04 06 00 E5 F4 03 F6 D6 59 65 31 DC 6B 2E D2 6A 0E [09:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2A 1E 47 00 88 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 10 01 00 F4 03 04 00 2F CB 15 67 B6 04 01 00 00 C5 D2 9F CC E8 E8 56 CC [09:40:26]CommunicateWithHost err = 0 [09:40:26]CheckOFDResponse [09:40:26]1017 (14) - 77093643461234 [09:40:26]1041 (16) - 0000000000963346 [09:40:26]1040 (4) - 69708 [09:40:26]1012 (4) - 21.10.2024 03:31 [09:40:26]1206 (1) - 0 [09:40:26]OFD Sender: Remove packet 69708 [09:40:26]ProducePacketName [09:40:26]name=ofd_packets/00069708 [09:40:26]NVStorageDeleteData [09:40:26]Write to MH i2c: 01 00 00 04 1F 23 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 04 1F 00 00 00 00 00 00 0D 37 [09:40:26]RasterBufferAndPrint [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]written 0, free lines is 3339 [09:40:26]MH_Cut [09:40:26]Write to MH i2c: D1 01 00 0B 1F 01 FC [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 01 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 01 00 0B 1F 00 FB [09:40:26]Write to MH i2c: 01 00 00 0C 1F 2B [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]OFD Sender: No OFD packet to send [09:40:27]*** Cut start [09:40:27]*** Partial cut [09:40:27]*** CUTSNS_PIN = 1 [09:40:27]*** CUTSNS_PIN = 0 [09:40:27]*** Brake cut motor [09:40:27]Read from MH i2c: 01 [09:40:27]MH_I2C_Read... [09:40:27]*** Stop cut motor [09:40:27]*** Cut end [09:40:27]Read from MH i2c: 01 07 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 07 00 0C 1F 00 00 00 00 00 FF 0F 40 [09:40:27]process_action close_receipt done [09:40:27]requested_data is exist [09:40:27]produce_requested_data [09:40:27]requested_item fm.sn is exist - process it [09:40:27]wFMCommunicate request_size=4 [09:40:27]MH_SAM_APDU [09:40:27]CAPDU: 80 11 00 00 [09:40:27]Write to MH i2c: E2 08 00 0D 1F 80 11 00 00 00 00 00 00 A6 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:27]Read from MH i2c: E2 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 17 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 17 00 0D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [09:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:27]wFMCommunicate OK [09:40:27]requested_item fd.num is exist - process it [09:40:27]SAM_PROTO_GetFieldsCounters [09:40:27]wFMCommunicate request_size=4 [09:40:27]MH_SAM_APDU [09:40:27]CAPDU: 80 13 00 00 [09:40:27]Write to MH i2c: E2 08 00 0E 1F 80 13 00 00 00 00 00 00 A9 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 62 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 62 00 0E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:40:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_GetFieldsCounters done [09:40:28]requested_item shift.num is exist - process it [09:40:28]requested_item shift.opened is exist - process it [09:40:28]req_shift_opened [09:40:28]FM_GetShiftState [09:40:28]SAM_PROTO_GetShiftState [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 13 01 00 [09:40:28]Write to MH i2c: E2 08 00 0F 1F 80 13 01 00 00 00 00 00 AB [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 0F 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D7 [09:40:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_GetShiftState done [09:40:28]FM_GetShiftState done [09:40:28]req_shift_opened done [09:40:28]requested_item shift.open_date is exist - process it [09:40:28]req_shift_open_date [09:40:28]req_shift_open_date done [09:40:28]produce_requested_data done [09:40:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69708,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:40:28]process_action_free close_receipt [09:40:28]json_value_free [09:40:28]json_value_free done [09:40:28]process_json_proto returns [09:40:28]Send response to host [09:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69708,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:40:28]free response buf [09:40:28]execute_script done [09:40:28]execute_script returns [09:40:28]free content buf [09:40:28]Sock 8.Close socket [09:40:28]Sock 8.Thread stoped [09:40:28]accept exits with 9 [09:40:28]New connection [09:40:28]New thread 3067313508 created [09:40:28]Thread 3067456868 joined [09:40:28]Waiting for new connection... [09:40:28] Sock 9.Parse request [09:40:28]Sock 9.Check first char [09:40:28]Sock 9.First char is OK [09:40:28]request: POST /json_proto HTTP/1.0 [09:40:28]Method: POST [09:40:28]URL: /json_proto [09:40:28]Method is POST - this is cgi request [09:40:28]url: /json_proto [09:40:28]query_string will be loaded in cgi processing [09:40:28]execute_cgi json_proto POST (null) [09:40:28]execute_cgi path=json_proto method=POST [09:40:28]POST find Content-Length [09:40:28]Host: 172.17.50.3:8080 [09:40:28]Content-Length: 1034 [09:40:28]Content-Type: application/json [09:40:28] [09:40:28]POST finish read [09:40:28]Found Content-Length = 1034 [09:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69707, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:28]execute_script... [09:40:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69707, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:28]POST & json_proto [09:40:28]process_json_proto [09:40:28]json parsed OK: [09:40:28]protocol is kg_v1.0 [09:40:28]action value=close_receipt [09:40:28]process_action close_receipt [09:40:28]cmd_close_receipt [09:40:28]MH_GetDate [09:40:28]Write to MH i2c: F0 00 00 10 1F 1E [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: F0 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: F0 09 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: F0 09 00 10 1F 00 8F 21 16 67 6B 98 1E 66 DB [09:40:28]GetLastDocTimeStamp 1729503626 [09:40:28]current date 1729503631 [09:40:28]FM_GetShiftState [09:40:28]SAM_PROTO_GetShiftState [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 13 01 00 [09:40:28]Write to MH i2c: E2 08 00 11 1F 80 13 01 00 00 00 00 00 AD [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 11 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [09:40:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_GetShiftState done [09:40:28]FM_GetShiftState done [09:40:28]opened in 1729469703 [09:40:28]opened+sec_in_day 1729556103 [09:40:28]quantity*price = 500004 [09:40:28]sum+1 = 500006 [09:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 99 21.10.2024 09:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69707 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69709 ФПД: 64722974976701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094031&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69709&fm=64722974976701&tin=02508201610067®Number=0000000000156251&sum=500000 [09:40:30]StoreToDocumentArchive [09:40:30]shift 194 fd 69709 [09:40:30]save to /storage/0194/doc_00069709 [09:40:30]save last doc name /storage/0194/doc_00069709 to /storage/kkm_last_doc_name [09:40:30]save OK [09:40:30]Clear old archive folders... [09:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:40:30]tlvbuf is 00D112E0 [09:40:30]SAM_PROTO_ClearQueue [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 09 00 00 [09:40:30]Write to MH i2c: E2 08 00 20 1F 80 09 00 00 00 00 00 00 B1 [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 20 1F 00 90 00 B3 [09:40:30]RAPDU: 90 00 [09:40:30]wFMCommunicate OK [09:40:30]SAM_PROTO_ClearQueue done [09:40:30]KKMCreateOFDPacket [09:40:30]OFDProtocolAddRootSTLVToBuf [09:40:30]FM_MakeSignedData [09:40:30]FM_MakeSignedData [09:40:30]SAM_PROTO_SignData [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 0D 01 02 [09:40:30]Write to MH i2c: E2 08 00 21 1F 80 0D 01 02 00 00 00 00 B9 [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 21 1F 00 90 00 B4 [09:40:30]RAPDU: 90 00 [09:40:30]wFMCommunicate OK [09:40:30]wFMCommunicate request_size=255 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 4B 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [09:40:30]Write to MH i2c: E2 02 01 22 1F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 4B 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 DB [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 22 1F 00 90 00 B5 [09:40:30]RAPDU: 90 00 [09:40:30]wFMCommunicate OK [09:40:30]wFMCommunicate request_size=35 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 10 01 00 35 04 06 00 3A DD 7D EE AA BD [09:40:30]Write to MH i2c: E2 26 00 23 1F 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 10 01 00 35 04 06 00 3A DD 7D EE AA BD 00 00 F5 [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [09:40:30]RAPDU: 90 00 [09:40:30]wFMCommunicate OK [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 0D 03 02 [09:40:30]Write to MH i2c: E2 08 00 24 1F 80 0D 03 02 00 00 00 00 BE [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:31]Read from MH i2c: E2 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: E2 0B 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: E2 0B 00 24 1F 00 3E 4A F1 03 A0 F6 F3 15 90 00 D9 [09:40:31]RAPDU: 3E 4A F1 03 A0 F6 F3 15 90 00 [09:40:31]wFMCommunicate OK [09:40:31]SAM_PROTO_SignData done [09:40:31]FM_MakeSignedData done [09:40:31]CreateOFDProtocolMessage [09:40:31]wFMCommunicate request_size=4 [09:40:31]MH_SAM_APDU [09:40:31]CAPDU: 80 11 00 00 [09:40:31]Write to MH i2c: E2 08 00 25 1F 80 11 00 00 00 00 00 00 BE [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:31]Read from MH i2c: E2 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: E2 17 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: E2 17 00 25 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [09:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:31]wFMCommunicate OK [09:40:31]CreateOFDProtocolMessage done [09:40:31]OFDSenderStorePacket 69709 [09:40:31]StoreOFDPacket docnum=69709 [09:40:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 CA 1C 20 01 58 CA 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 4B 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 10 01 00 35 04 06 00 3A DD 7D EE AA BD 3E 4A F1 03 A0 F6 F3 15 [09:40:31]CheckFolder [09:40:31]dirname=/storage/ofd_packets [09:40:31]CheckFolder done [09:40:31]ProducePacketName [09:40:31]name=ofd_packets/00069709 [09:40:31]NVStorageSaveData ofd_packets/00069709 [09:40:31]File name is /storage/ofd_packets/00069709 [09:40:31]Write 326 bytes [09:40:31]NVStorageSaveData done [09:40:31]OFDSenderStorePacket done [09:40:31]KKMCreateOFDPacket done [09:40:31]NVStorageSaveData kkm_last_timestamp [09:40:31]File name is /storage/kkm_last_timestamp [09:40:31]Write 4 bytes [09:40:31]NVStorageSaveData done [09:40:31]ExternCall_PrintAddStr [09:40:31]wPrintStart [09:40:31]Write to MH i2c: 01 00 00 26 1F 45 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 26 1F 00 00 00 00 00 FF 0F 5A [09:40:31]RasterBufferAndPrint [09:40:31]line Счет N : (1)2885449 [09:40:31]line ИНН: 02508201610067 [09:40:31]line Контрольно-Кассовый Чек [09:40:31]line ВОЗВРАТ ПРОДАЖИ [09:40:31]line ТРК (МРК, ГНК) : 51 [09:40:31]line Товар: 2710194210 [09:40:31]line ДТ-К-5 [09:40:31]line 66.490 * 75.20 [09:40:31]line = 5000.05 [09:40:31]line НДС 12% НСП 1% [09:40:31]line > о реализуемом товаре [09:40:31]line ОКРУГЛЕНИЕ: -0.05 [09:40:31]line ИТОГО: 5000.00 [09:40:31]line НСП 1% : 44.25 [09:40:31]line НДС 12% : 530.98 [09:40:31]line Наличными: 5000.00 [09:40:31]line Безнал.: 0.00 [09:40:31]line Место: АЗС № 85 "Партнер Нефть" [09:40:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:40:31]line СНО: Общий режим [09:40:31]line Чек 99 21.10.2024 09:40 [09:40:31]line Смена: 194 ФФД: 1.0 [09:40:31]line ЗНМ: 0300000167 [09:40:31]line РНМ: 0000000000156251 [09:40:31]line Версия ККМ: v1.0 [09:40:31]line ФД осн.: 69707 [09:40:31]line ФМ осн.: 0000000000963346 [09:40:31]line [09:40:31]line Дисконтная программа [09:40:31]line ДТ [09:40:31]line номер 85 [09:40:31]line сэкономлено 66.49 сом [09:40:31]line ФМ: 0000000000963346 [09:40:31]line ФД: 69709 [09:40:31]line ФПД: 64722974976701 [09:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094031&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69709&fm=64722974976701&tin=02508201610067®Number=0000000000156251&sum=500000 [09:40:31]written 0, free lines is 4095 [09:40:31]OFD Sender: Processing packet 69709 [packets to send 18, broken 17] [09:40:31]ProducePacketName [09:40:31]name=ofd_packets/00069709 [09:40:31]OFD Sender: To server: pG, [09:40:31]CommunicateWithHost lk.salyk.kg:30040 [09:40:31]ConnectInit lk.salyk.kg [09:40:31]Connected sock=10 [09:40:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 CA 1C 20 01 58 CA 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8F 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 4B 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 10 01 00 35 04 06 00 3A DD 7D EE AA BD 3E 4A F1 03 A0 F6 F3 15 [09:40:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C9 8F 47 00 A9 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 10 01 00 F4 03 04 00 34 CB 15 67 B6 04 01 00 00 C0 9A 52 58 27 12 00 EC [09:40:31]CommunicateWithHost err = 0 [09:40:31]CheckOFDResponse [09:40:31]1017 (14) - 77093643461234 [09:40:31]1041 (16) - 0000000000963346 [09:40:31]1040 (4) - 69709 [09:40:31]1012 (4) - 21.10.2024 03:32 [09:40:31]1206 (1) - 0 [09:40:31]OFD Sender: Remove packet 69709 [09:40:31]ProducePacketName [09:40:31]name=ofd_packets/00069709 [09:40:31]NVStorageDeleteData [09:40:31]Write to MH i2c: 01 00 00 56 1F 75 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 56 1F 00 00 00 00 00 B3 0C 3B [09:40:31]RasterBufferAndPrint [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]written 0, free lines is 3268 [09:40:31]MH_Cut [09:40:31]Write to MH i2c: D1 01 00 5D 1F 01 4E [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 5D 1F 00 4D [09:40:31]Write to MH i2c: 01 00 00 5E 1F 7D [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:32]OFD Sender: No OFD packet to send [09:40:32]*** Cut start [09:40:32]*** Partial cut [09:40:32]*** CUTSNS_PIN = 1 [09:40:32]*** CUTSNS_PIN = 0 [09:40:32]*** Brake cut motor [09:40:33]Read from MH i2c: 01 [09:40:33]MH_I2C_Read... [09:40:33]*** Stop cut motor [09:40:33]*** Cut end [09:40:33]Read from MH i2c: 01 07 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: 01 07 00 5E 1F 00 00 00 00 00 FF 0F 92 [09:40:33]process_action close_receipt done [09:40:33]requested_data is exist [09:40:33]produce_requested_data [09:40:33]requested_item fm.sn is exist - process it [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 11 00 00 [09:40:33]Write to MH i2c: E2 08 00 5F 1F 80 11 00 00 00 00 00 00 F8 [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:33]Read from MH i2c: E2 17 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 17 00 5F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [09:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:40:33]wFMCommunicate OK [09:40:33]requested_item fd.num is exist - process it [09:40:33]SAM_PROTO_GetFieldsCounters [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 13 00 00 [09:40:33]Write to MH i2c: E2 08 00 60 1F 80 13 00 00 00 00 00 00 FB [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 62 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 62 00 60 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [09:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:33]wFMCommunicate OK [09:40:33]SAM_PROTO_GetFieldsCounters done [09:40:33]requested_item shift.num is exist - process it [09:40:33]requested_item shift.opened is exist - process it [09:40:33]req_shift_opened [09:40:33]FM_GetShiftState [09:40:33]SAM_PROTO_GetShiftState [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 13 01 00 [09:40:33]Write to MH i2c: E2 08 00 61 1F 80 13 01 00 00 00 00 00 FD [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 0E 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 0E 00 61 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 29 [09:40:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:40:33]wFMCommunicate OK [09:40:33]SAM_PROTO_GetShiftState done [09:40:33]FM_GetShiftState done [09:40:33]req_shift_opened done [09:40:33]requested_item shift.open_date is exist - process it [09:40:33]req_shift_open_date [09:40:33]req_shift_open_date done [09:40:33]produce_requested_data done [09:40:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69709,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:40:33]process_action_free close_receipt [09:40:33]json_value_free [09:40:33]json_value_free done [09:40:33]process_json_proto returns [09:40:33]Send response to host [09:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69709,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:40:33]free response buf [09:40:33]execute_script done [09:40:33]execute_script returns [09:40:33]free content buf [09:40:33]Sock 9.Close socket [09:40:33]Sock 9.Thread stoped [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]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:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:56]accept exits with 8 [09:41:56]New connection [09:41:56]New thread 3067456868 created [09:41:56]Thread 3067313508 joined [09:41:56]Waiting for new connection... [09:41:56] Sock 8.Parse request [09:41:56]Sock 8.Check first char [09:41:56]Sock 8.First char is OK [09:41:56]request: POST /json_proto HTTP/1.0 [09:41:56]Method: POST [09:41:56]URL: /json_proto [09:41:56]Method is POST - this is cgi request [09:41:56]url: /json_proto [09:41:56]query_string will be loaded in cgi processing [09:41:56]execute_cgi json_proto POST (null) [09:41:56]execute_cgi path=json_proto method=POST [09:41:56]POST find Content-Length [09:41:56]Host: 172.17.50.3:8080 [09:41:56]Content-Length: 682 [09:41:56]Content-Type: application/json [09:41:56] [09:41:56]POST finish read [09:41:56]Found Content-Length = 682 [09:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:41:56]execute_script... [09:41: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)2885450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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:41:56]POST & json_proto [09:41:56]process_json_proto [09:41:56]json parsed OK: [09:41:56]protocol is kg_v1.0 [09:41:56]action value=close_receipt [09:41:56]process_action close_receipt [09:41:56]cmd_close_receipt [09:41:56]MH_GetDate [09:41:56]Write to MH i2c: F0 00 00 62 1F 70 [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: F0 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: F0 09 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: F0 09 00 62 1F 00 E7 21 16 67 6B 98 1E 66 85 [09:41:56]GetLastDocTimeStamp 1729503631 [09:41:56]current date 1729503719 [09:41:56]FM_GetShiftState [09:41:56]SAM_PROTO_GetShiftState [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 13 01 00 [09:41:56]Write to MH i2c: E2 08 00 63 1F 80 13 01 00 00 00 00 00 FF [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 63 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2B [09:41:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:41:56]wFMCommunicate OK [09:41:56]SAM_PROTO_GetShiftState done [09:41:56]FM_GetShiftState done [09:41:56]opened in 1729469703 [09:41:56]opened+sec_in_day 1729556103 [09:41:56]quantity*price = 50025 [09:41:56]sum+1 = 50026 [09:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 100 21.10.2024 09:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69710 ФПД: 275730310821937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094159&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69710&fm=275730310821937&tin=02508201610067®Number=0000000000156251&sum=50000 [09:41:57]StoreToDocumentArchive [09:41:57]shift 194 fd 69710 [09:41:57]save to /storage/0194/doc_00069710 [09:41:57]save last doc name /storage/0194/doc_00069710 to /storage/kkm_last_doc_name [09:41:57]save OK [09:41:57]Clear old archive folders... [09:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:41:57]tlvbuf is 00C789A0 [09:41:57]SAM_PROTO_ClearQueue [09:41:57]wFMCommunicate request_size=4 [09:41:57]MH_SAM_APDU [09:41:57]CAPDU: 80 09 00 00 [09:41:57]Write to MH i2c: E2 08 00 70 1F 80 09 00 00 00 00 00 00 01 [09:41:57]Write i2c OK [09:41:57]MH_I2C_Read... [09:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:57]Read from MH i2c: E2 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 03 00 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 03 00 70 1F 00 90 00 03 [09:41:57]RAPDU: 90 00 [09:41:57]wFMCommunicate OK [09:41:57]SAM_PROTO_ClearQueue done [09:41:57]KKMCreateOFDPacket [09:41:57]OFDProtocolAddRootSTLVToBuf [09:41:57]FM_MakeSignedData [09:41:57]FM_MakeSignedData [09:41:57]SAM_PROTO_SignData [09:41:57]wFMCommunicate request_size=4 [09:41:57]MH_SAM_APDU [09:41:57]CAPDU: 80 0D 01 02 [09:41:57]Write to MH i2c: E2 08 00 71 1F 80 0D 01 02 00 00 00 00 09 [09:41:57]Write i2c OK [09:41:57]MH_I2C_Read... [09:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:57]Read from MH i2c: E2 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 03 00 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [09:41:57]RAPDU: 90 00 [09:41:57]wFMCommunicate OK [09:41:57]wFMCommunicate request_size=255 [09:41:57]MH_SAM_APDU [09:41:57]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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 64 00 00 00 F4 03 04 00 E7 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 10 01 00 35 04 06 00 FA C6 [09:41:57]Write to MH i2c: E2 02 01 72 1F 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 64 00 00 00 F4 03 04 00 E7 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 10 01 00 35 04 06 00 FA C6 00 00 16 [09:41:57]Write i2c OK [09:41:57]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 72 1F 00 90 00 05 [09:41:58]RAPDU: 90 00 [09:41:58]wFMCommunicate OK [09:41:58]wFMCommunicate request_size=9 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 0D 02 02 04 77 3A F8 31 [09:41:58]Write to MH i2c: E2 0C 00 73 1F 80 0D 02 02 04 00 77 3A F8 31 00 00 EE [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [09:41:58]RAPDU: 90 00 [09:41:58]wFMCommunicate OK [09:41:58]wFMCommunicate request_size=4 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 0D 03 02 [09:41:58]Write to MH i2c: E2 08 00 74 1F 80 0D 03 02 00 00 00 00 0E [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 0B 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 0B 00 74 1F 00 1D 49 71 A5 5E 95 8E 9F 90 00 AB [09:41:58]RAPDU: 1D 49 71 A5 5E 95 8E 9F 90 00 [09:41:58]wFMCommunicate OK [09:41:58]SAM_PROTO_SignData done [09:41:58]FM_MakeSignedData done [09:41:58]CreateOFDProtocolMessage [09:41:58]wFMCommunicate request_size=4 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 11 00 00 [09:41:58]Write to MH i2c: E2 08 00 75 1F 80 11 00 00 00 00 00 00 0E [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 17 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 17 00 75 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [09:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:41:58]wFMCommunicate OK [09:41:58]CreateOFDProtocolMessage done [09:41:58]OFDSenderStorePacket 69710 [09:41:58]StoreOFDPacket docnum=69710 [09:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 76 EC 06 01 DD F3 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 64 00 00 00 F4 03 04 00 E7 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 10 01 00 35 04 06 00 FA C6 77 3A F8 31 1D 49 71 A5 5E 95 8E 9F [09:41:58]CheckFolder [09:41:58]dirname=/storage/ofd_packets [09:41:58]CheckFolder done [09:41:58]ProducePacketName [09:41:58]name=ofd_packets/00069710 [09:41:58]NVStorageSaveData ofd_packets/00069710 [09:41:58]File name is /storage/ofd_packets/00069710 [09:41:58]Write 300 bytes [09:41:58]NVStorageSaveData done [09:41:58]OFDSenderStorePacket done [09:41:58]KKMCreateOFDPacket done [09:41:58]NVStorageSaveData kkm_last_timestamp [09:41:58]File name is /storage/kkm_last_timestamp [09:41:58]Write 4 bytes [09:41:58]NVStorageSaveData done [09:41:58]ExternCall_PrintAddStr [09:41:58]wPrintStart [09:41:58]Write to MH i2c: 01 00 00 76 1F 95 [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 07 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 07 00 76 1F 00 00 00 00 00 FF 0F AA [09:41:58]RasterBufferAndPrint [09:41:58]line Счет N : (1)2885450 [09:41:58]line ИНН: 02508201610067 [09:41:58]line Контрольно-Кассовый Чек [09:41:58]line ПРОДАЖА [09:41:58]line ТРК (МРК, ГНК) : 71 [09:41:58]line Товар: 2711129700 [09:41:58]line ГАЗ-К-3 [09:41:58]line 12.860 * 38.90 [09:41:58]line = 500.25 [09:41:58]line НДС 12% НСП 1% [09:41:58]line > о реализуемом товаре [09:41:58]line ОКРУГЛЕНИЕ: -0.25 [09:41:58]line ИТОГО: 500.00 [09:41:58]line Внесено: 500.00 [09:41:58]line СДАЧА: 0.00 [09:41:58]line НСП 1% : 4.43 [09:41:58]line НДС 12% : 53.12 [09:41:58]line Наличными: 500.00 [09:41:58]line Безнал.: 0.00 [09:41:58]line Место: АЗС № 85 "Партнер Нефть" [09:41:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:41:58]line СНО: Общий режим [09:41:58]line Чек 100 21.10.2024 09:41 [09:41:58]line Смена: 194 ФФД: 1.0 [09:41:58]line ЗНМ: 0300000167 [09:41:58]line РНМ: 0000000000156251 [09:41:58]line Версия ККМ: v1.0 [09:41:58]line ФМ: 0000000000963346 [09:41:58]line ФД: 69710 [09:41:58]line ФПД: 275730310821937 [09:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094159&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69710&fm=275730310821937&tin=02508201610067®Number=0000000000156251&sum=50000 [09:41:58]written 0, free lines is 4095 [09:41:58]OFD Sender: Processing packet 69710 [packets to send 18, broken 17] [09:41:58]ProducePacketName [09:41:58]name=ofd_packets/00069710 [09:41:58]OFD Sender: To server: pG, [09:41:58]CommunicateWithHost lk.salyk.kg:30040 [09:41:58]ConnectInit lk.salyk.kg [09:41:58]Connected sock=10 [09:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 76 EC 06 01 DD F3 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 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 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 64 00 00 00 F4 03 04 00 E7 21 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 10 01 00 35 04 06 00 FA C6 77 3A F8 31 1D 49 71 A5 5E 95 8E 9F [09:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FF 02 47 00 91 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 10 01 00 F4 03 04 00 8B CB 15 67 B6 04 01 00 00 EB FB 9E 41 12 35 F4 EB [09:41:58]CommunicateWithHost err = 0 [09:41:58]CheckOFDResponse [09:41:58]1017 (14) - 77093643461234 [09:41:58]1041 (16) - 0000000000963346 [09:41:58]1040 (4) - 69710 [09:41:58]1012 (4) - 21.10.2024 03:33 [09:41:58]1206 (1) - 0 [09:41:58]OFD Sender: Remove packet 69710 [09:41:58]ProducePacketName [09:41:58]name=ofd_packets/00069710 [09:41:58]NVStorageDeleteData [09:41:58]Write to MH i2c: 01 00 00 A1 1F C0 [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 07 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: 01 07 00 A1 1F 00 00 00 00 00 F9 0C CC [09:41:58]RasterBufferAndPrint [09:41:58]line [09:41:58]line [09:41:58]line [09:41:58]line [09:41:58]line [09:41:58]written 0, free lines is 3331 [09:41:58]MH_Cut [09:41:58]Write to MH i2c: D1 01 00 A8 1F 01 99 [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: D1 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: D1 01 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: D1 01 00 A8 1F 00 98 [09:41:58]Write to MH i2c: 01 00 00 A9 1F C8 [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:59]OFD Sender: No OFD packet to send [09:41:59]*** Cut start [09:41:59]*** Partial cut [09:41:59]*** CUTSNS_PIN = 1 [09:41:59]*** CUTSNS_PIN = 0 [09:41:59]*** Brake cut motor [09:42:00]Read from MH i2c: 01 [09:42:00]MH_I2C_Read... [09:42:00]*** Stop cut motor [09:42:00]*** Cut end [09:42:00]Read from MH i2c: 01 07 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: 01 07 00 A9 1F 00 00 00 00 00 FF 0F DD [09:42:00]process_action close_receipt done [09:42:00]requested_data is exist [09:42:00]produce_requested_data [09:42:00]requested_item fm.sn is exist - process it [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 11 00 00 [09:42:00]Write to MH i2c: E2 08 00 AA 1F 80 11 00 00 00 00 00 00 43 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 17 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 17 00 AA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [09:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:00]wFMCommunicate OK [09:42:00]requested_item fd.num is exist - process it [09:42:00]SAM_PROTO_GetFieldsCounters [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 13 00 00 [09:42:00]Write to MH i2c: E2 08 00 AB 1F 80 13 00 00 00 00 00 00 46 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 62 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 62 00 AB 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [09:42:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_GetFieldsCounters done [09:42:00]requested_item shift.num is exist - process it [09:42:00]requested_item shift.opened is exist - process it [09:42:00]req_shift_opened [09:42:00]FM_GetShiftState [09:42:00]SAM_PROTO_GetShiftState [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 13 01 00 [09:42:00]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0E 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 74 [09:42:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_GetShiftState done [09:42:00]FM_GetShiftState done [09:42:00]req_shift_opened done [09:42:00]requested_item shift.open_date is exist - process it [09:42:00]req_shift_open_date [09:42:00]req_shift_open_date done [09:42:00]produce_requested_data done [09:42:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69710,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:42:00]process_action_free close_receipt [09:42:00]json_value_free [09:42:00]json_value_free done [09:42:00]process_json_proto returns [09:42:00]Send response to host [09:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69710,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:42:00]free response buf [09:42:00]execute_script done [09:42:00]execute_script returns [09:42:00]free content buf [09:42:00]Sock 8.Close socket [09:42:00]Sock 8.Thread stoped [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [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:34]accept exits with 9 [09:42:34]New connection [09:42:34]New thread 3067313508 created [09:42:34]Thread 3067456868 joined [09:42:34]Waiting for new connection... [09:42:34] Sock 9.Parse request [09:42:34]Sock 9.Check first char [09:42:34]Sock 9.First char is OK [09:42:34]request: POST /json_proto HTTP/1.0 [09:42:34]Method: POST [09:42:34]URL: /json_proto [09:42:34]Method is POST - this is cgi request [09:42:34]url: /json_proto [09:42:34]query_string will be loaded in cgi processing [09:42:34]execute_cgi json_proto POST (null) [09:42:34]execute_cgi path=json_proto method=POST [09:42:34]POST find Content-Length [09:42:34]Host: 172.17.50.3:8080 [09:42:34]Content-Length: 683 [09:42:34]Content-Type: application/json [09:42:34] [09:42:34]POST finish read [09:42:34]Found Content-Length = 683 [09:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:34]execute_script... [09:42: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)2885451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:34]POST & json_proto [09:42:34]process_json_proto [09:42:34]json parsed OK: [09:42:34]protocol is kg_v1.0 [09:42:34]action value=close_receipt [09:42:34]process_action close_receipt [09:42:34]cmd_close_receipt [09:42:34]MH_GetDate [09:42:34]Write to MH i2c: F0 00 00 AD 1F BB [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 AD 1F 00 0D 22 16 67 6B 98 1E 66 F7 [09:42:34]GetLastDocTimeStamp 1729503719 [09:42:34]current date 1729503757 [09:42:34]FM_GetShiftState [09:42:34]SAM_PROTO_GetShiftState [09:42:34]wFMCommunicate request_size=4 [09:42:34]MH_SAM_APDU [09:42:34]CAPDU: 80 13 01 00 [09:42:34]Write to MH i2c: E2 08 00 AE 1F 80 13 01 00 00 00 00 00 4A [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:34]Read from MH i2c: E2 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 AE 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 76 [09:42:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:34]wFMCommunicate OK [09:42:34]SAM_PROTO_GetShiftState done [09:42:34]FM_GetShiftState done [09:42:34]opened in 1729469703 [09:42:34]opened+sec_in_day 1729556103 [09:42:34]quantity*price = 100015 [09:42:34]sum+1 = 100017 [09:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 101 21.10.2024 09:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69711 ФПД: 255659012459582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094237&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69711&fm=255659012459582&tin=02508201610067®Number=0000000000156251&sum=100000 [09:42:35]StoreToDocumentArchive [09:42:35]shift 194 fd 69711 [09:42:35]save to /storage/0194/doc_00069711 [09:42:35]save last doc name /storage/0194/doc_00069711 to /storage/kkm_last_doc_name [09:42:35]save OK [09:42:35]Clear old archive folders... [09:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:35]tlvbuf is 00C7D0D0 [09:42:35]SAM_PROTO_ClearQueue [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 09 00 00 [09:42:35]Write to MH i2c: E2 08 00 BB 1F 80 09 00 00 00 00 00 00 4C [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [09:42:35]RAPDU: 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_ClearQueue done [09:42:35]KKMCreateOFDPacket [09:42:35]OFDProtocolAddRootSTLVToBuf [09:42:35]FM_MakeSignedData [09:42:35]FM_MakeSignedData [09:42:35]SAM_PROTO_SignData [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 0D 01 02 [09:42:35]Write to MH i2c: E2 08 00 BC 1F 80 0D 01 02 00 00 00 00 54 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [09:42:35]RAPDU: 90 00 [09:42:35]wFMCommunicate OK [09:42:35]wFMCommunicate request_size=255 [09:42:35]MH_SAM_APDU [09:42:35]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0D 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 10 01 00 35 04 06 00 E8 [09:42:35]Write to MH i2c: E2 02 01 BD 1F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0D 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 10 01 00 35 04 06 00 E8 00 00 F2 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 BD 1F 00 90 00 50 [09:42:35]RAPDU: 90 00 [09:42:35]wFMCommunicate OK [09:42:35]wFMCommunicate request_size=10 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 0D 02 02 05 85 40 9F 0C 3E [09:42:35]Write to MH i2c: E2 0D 00 BE 1F 80 0D 02 02 05 00 85 40 9F 0C 3E 00 00 0F [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 03 02 [09:42:36]Write to MH i2c: E2 08 00 BF 1F 80 0D 03 02 00 00 00 00 59 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 BF 1F 00 AD A0 88 A3 3E E9 F2 F0 90 00 DB [09:42:36]RAPDU: AD A0 88 A3 3E E9 F2 F0 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_SignData done [09:42:36]FM_MakeSignedData done [09:42:36]CreateOFDProtocolMessage [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 11 00 00 [09:42:36]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [09:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:36]wFMCommunicate OK [09:42:36]CreateOFDProtocolMessage done [09:42:36]OFDSenderStorePacket 69711 [09:42:36]StoreOFDPacket docnum=69711 [09:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0D 12 07 01 C8 75 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0D 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 10 01 00 35 04 06 00 E8 85 40 9F 0C 3E AD A0 88 A3 3E E9 F2 F0 [09:42:36]CheckFolder [09:42:36]dirname=/storage/ofd_packets [09:42:36]CheckFolder done [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00069711 [09:42:36]NVStorageSaveData ofd_packets/00069711 [09:42:36]File name is /storage/ofd_packets/00069711 [09:42:36]Write 301 bytes [09:42:36]NVStorageSaveData done [09:42:36]OFDSenderStorePacket done [09:42:36]KKMCreateOFDPacket done [09:42:36]NVStorageSaveData kkm_last_timestamp [09:42:36]File name is /storage/kkm_last_timestamp [09:42:36]Write 4 bytes [09:42:36]NVStorageSaveData done [09:42:36]ExternCall_PrintAddStr [09:42:36]wPrintStart [09:42:36]Write to MH i2c: 01 00 00 C1 1F E0 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 FF 0F F5 [09:42:36]RasterBufferAndPrint [09:42:36]line Счет N : (1)2885451 [09:42:36]line ИНН: 02508201610067 [09:42:36]line Контрольно-Кассовый Чек [09:42:36]line ПРОДАЖА [09:42:36]line ТРК (МРК, ГНК) : 12 [09:42:36]line Товар: 2710124130 [09:42:36]line Аи-92-К-5 [09:42:36]line 14.950 * 66.90 [09:42:36]line = 1000.16 [09:42:36]line НДС 12% НСП 1% [09:42:36]line > о реализуемом товаре [09:42:36]line ОКРУГЛЕНИЕ: -0.16 [09:42:36]line ИТОГО: 1000.00 [09:42:36]line Внесено: 1000.00 [09:42:36]line СДАЧА: 0.00 [09:42:36]line НСП 1% : 8.85 [09:42:36]line НДС 12% : 106.21 [09:42:36]line Наличными: 1000.00 [09:42:36]line Безнал.: 0.00 [09:42:36]line Место: АЗС № 85 "Партнер Нефть" [09:42:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:42:36]line СНО: Общий режим [09:42:36]line Чек 101 21.10.2024 09:42 [09:42:36]line Смена: 194 ФФД: 1.0 [09:42:36]line ЗНМ: 0300000167 [09:42:36]line РНМ: 0000000000156251 [09:42:36]line Версия ККМ: v1.0 [09:42:36]line ФМ: 0000000000963346 [09:42:36]line ФД: 69711 [09:42:36]line ФПД: 255659012459582 [09:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094237&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69711&fm=255659012459582&tin=02508201610067®Number=0000000000156251&sum=100000 [09:42:36]OFD Sender: Processing packet 69711 [packets to send 18, broken 17] [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00069711 [09:42:36]OFD Sender: To server: pG, [09:42:36]CommunicateWithHost lk.salyk.kg:30040 [09:42:36]ConnectInit lk.salyk.kg [09:42:36]written 0, free lines is 4095 [09:42:36]Connected sock=10 [09:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0D 12 07 01 C8 75 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0D 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 10 01 00 35 04 06 00 E8 85 40 9F 0C 3E AD A0 88 A3 3E E9 F2 F0 [09:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 08 5F 47 00 06 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 10 01 00 F4 03 04 00 B1 CB 15 67 B6 04 01 00 00 7F 24 35 C0 31 A5 0B 10 [09:42:36]CommunicateWithHost err = 0 [09:42:36]CheckOFDResponse [09:42:36]1017 (14) - 77093643461234 [09:42:36]1041 (16) - 0000000000963346 [09:42:36]1040 (4) - 69711 [09:42:36]1012 (4) - 21.10.2024 03:34 [09:42:36]1206 (1) - 0 [09:42:36]OFD Sender: Remove packet 69711 [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00069711 [09:42:36]NVStorageDeleteData [09:42:36]Write to MH i2c: 01 00 00 EC 1F 0B [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 EC 1F 00 00 00 00 00 F0 0C 0E [09:42:36]RasterBufferAndPrint [09:42:36]line [09:42:36]line [09:42:36]line [09:42:36]line [09:42:36]line [09:42:36]written 0, free lines is 3321 [09:42:36]MH_Cut [09:42:36]Write to MH i2c: D1 01 00 F3 1F 01 E4 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: D1 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: D1 01 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: D1 01 00 F3 1F 00 E3 [09:42:36]Write to MH i2c: 01 00 00 F4 1F 13 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:37]OFD Sender: No OFD packet to send [09:42:37]*** Cut start [09:42:37]*** Partial cut [09:42:37]*** CUTSNS_PIN = 1 [09:42:37]*** CUTSNS_PIN = 0 [09:42:37]*** Brake cut motor [09:42:38]Read from MH i2c: 01 [09:42:38]MH_I2C_Read... [09:42:38]*** Stop cut motor [09:42:38]*** Cut end [09:42:38]Read from MH i2c: 01 07 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 F4 1F 00 00 00 00 00 FF 0F 28 [09:42:38]process_action close_receipt done [09:42:38]requested_data is exist [09:42:38]produce_requested_data [09:42:38]requested_item fm.sn is exist - process it [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 11 00 00 [09:42:38]Write to MH i2c: E2 08 00 F5 1F 80 11 00 00 00 00 00 00 8E [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 F5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [09:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:38]wFMCommunicate OK [09:42:38]requested_item fd.num is exist - process it [09:42:38]SAM_PROTO_GetFieldsCounters [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 00 00 [09:42:38]Write to MH i2c: E2 08 00 F6 1F 80 13 00 00 00 00 00 00 91 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 62 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 62 00 F6 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetFieldsCounters done [09:42:38]requested_item shift.num is exist - process it [09:42:38]requested_item shift.opened is exist - process it [09:42:38]req_shift_opened [09:42:38]FM_GetShiftState [09:42:38]SAM_PROTO_GetShiftState [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 01 00 [09:42:38]Write to MH i2c: E2 08 00 F7 1F 80 13 01 00 00 00 00 00 93 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 F7 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [09:42:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetShiftState done [09:42:38]FM_GetShiftState done [09:42:38]req_shift_opened done [09:42:38]requested_item shift.open_date is exist - process it [09:42:38]req_shift_open_date [09:42:38]req_shift_open_date done [09:42:38]produce_requested_data done [09:42:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69711,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:42:38]process_action_free close_receipt [09:42:38]json_value_free [09:42:38]json_value_free done [09:42:38]process_json_proto returns [09:42:38]Send response to host [09:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69711,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:42:38]free response buf [09:42:38]execute_script done [09:42:38]execute_script returns [09:42:38]free content buf [09:42:38]Sock 9.Close socket [09:42:38]Sock 9.Thread stoped [09:42:38]accept exits with 8 [09:42:38]New connection [09:42:38]New thread 3067456868 created [09:42:38]Thread 3067313508 joined [09:42:38]Waiting for new connection... [09:42:38] Sock 8.Parse request [09:42:38]Sock 8.Check first char [09:42:38]Sock 8.First char is OK [09:42:38]request: POST /json_proto HTTP/1.0 [09:42:38]Method: POST [09:42:38]URL: /json_proto [09:42:38]Method is POST - this is cgi request [09:42:38]url: /json_proto [09:42:38]query_string will be loaded in cgi processing [09:42:38]execute_cgi json_proto POST (null) [09:42:38]execute_cgi path=json_proto method=POST [09:42:38]POST find Content-Length [09:42:38]Host: 172.17.50.3:8080 [09:42:38]Content-Length: 978 [09:42:38]Content-Type: application/json [09:42:38] [09:42:38]POST finish read [09:42:38]Found Content-Length = 978 [09:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 99.740, "sum" : 7500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.74 \u0441\u043E\u043C", "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:38]execute_script... [09:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 99.740, "sum" : 7500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.74 \u0441\u043E\u043C", "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:38]POST & json_proto [09:42:38]process_json_proto [09:42:38]json parsed OK: [09:42:38]protocol is kg_v1.0 [09:42:38]action value=close_receipt [09:42:38]process_action close_receipt [09:42:38]cmd_close_receipt [09:42:38]MH_GetDate [09:42:38]Write to MH i2c: F0 00 00 F8 1F 06 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 F8 1F 00 11 22 16 67 6B 98 1E 66 46 [09:42:38]GetLastDocTimeStamp 1729503757 [09:42:38]current date 1729503761 [09:42:38]FM_GetShiftState [09:42:38]SAM_PROTO_GetShiftState [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 01 00 [09:42:38]Write to MH i2c: E2 08 00 F9 1F 80 13 01 00 00 00 00 00 95 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 F9 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [09:42:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetShiftState done [09:42:38]FM_GetShiftState done [09:42:38]opened in 1729469703 [09:42:38]opened+sec_in_day 1729556103 [09:42:38]quantity*price = 750044 [09:42:38]sum+1 = 750046 [09:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.38 НДС 12% : 796.51 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 102 21.10.2024 09:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 99.74 сом ФМ: 0000000000963346 ФД: 69712 ФПД: 218862197317152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69712&fm=218862197317152&tin=02508201610067®Number=0000000000156251&sum=750000 [09:42:40]StoreToDocumentArchive [09:42:40]shift 194 fd 69712 [09:42:40]save to /storage/0194/doc_00069712 [09:42:40]save last doc name /storage/0194/doc_00069712 to /storage/kkm_last_doc_name [09:42:40]save OK [09:42:40]Clear old archive folders... [09:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:40]tlvbuf is 00D059E0 [09:42:40]SAM_PROTO_ClearQueue [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 09 00 00 [09:42:40]Write to MH i2c: E2 08 00 06 20 80 09 00 00 00 00 00 00 98 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_ClearQueue done [09:42:40]KKMCreateOFDPacket [09:42:40]OFDProtocolAddRootSTLVToBuf [09:42:40]FM_MakeSignedData [09:42:40]FM_MakeSignedData [09:42:40]SAM_PROTO_SignData [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 01 02 [09:42:40]Write to MH i2c: E2 08 00 07 20 80 0D 01 02 00 00 00 00 A0 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 07 20 00 90 00 9B [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=255 [09:42:40]MH_SAM_APDU [09:42:40]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 12 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 10 01 00 35 04 06 00 C7 0D D3 86 [09:42:40]Write to MH i2c: E2 02 01 08 20 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 12 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 10 01 00 35 04 06 00 C7 0D D3 86 00 00 10 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=7 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 02 02 02 9E 20 [09:42:40]Write to MH i2c: E2 0A 00 09 20 80 0D 02 02 02 00 9E 20 00 00 65 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 03 02 [09:42:40]Write to MH i2c: E2 08 00 0A 20 80 0D 03 02 00 00 00 00 A5 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 0A 20 00 D7 84 30 B0 4D 7A 16 61 90 00 1F [09:42:40]RAPDU: D7 84 30 B0 4D 7A 16 61 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_SignData done [09:42:40]FM_MakeSignedData done [09:42:40]CreateOFDProtocolMessage [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 11 00 00 [09:42:40]Write to MH i2c: E2 08 00 0B 20 80 11 00 00 00 00 00 00 A5 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 0B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [09:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:40]wFMCommunicate OK [09:42:40]CreateOFDProtocolMessage done [09:42:40]OFDSenderStorePacket 69712 [09:42:40]StoreOFDPacket docnum=69712 [09:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9D 66 04 01 3C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 12 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 10 01 00 35 04 06 00 C7 0D D3 86 9E 20 D7 84 30 B0 4D 7A 16 61 [09:42:40]CheckFolder [09:42:40]dirname=/storage/ofd_packets [09:42:40]CheckFolder done [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00069712 [09:42:40]NVStorageSaveData ofd_packets/00069712 [09:42:40]File name is /storage/ofd_packets/00069712 [09:42:40]Write 298 bytes [09:42:40]NVStorageSaveData done [09:42:40]OFDSenderStorePacket done [09:42:40]KKMCreateOFDPacket done [09:42:40]NVStorageSaveData kkm_last_timestamp [09:42:40]File name is /storage/kkm_last_timestamp [09:42:40]Write 4 bytes [09:42:40]NVStorageSaveData done [09:42:40]ExternCall_PrintAddStr [09:42:40]wPrintStart [09:42:40]Write to MH i2c: 01 00 00 0C 20 2C [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 FF 0F 41 [09:42:40]RasterBufferAndPrint [09:42:40]line Счет N : (1)2885447 [09:42:40]line ИНН: 02508201610067 [09:42:40]line Контрольно-Кассовый Чек [09:42:40]line ПРОДАЖА [09:42:40]line ТРК (МРК, ГНК) : 61 [09:42:40]line Товар: 2710194210 [09:42:40]line ДТ-К-5 [09:42:40]line 99.740 * 75.20 [09:42:40]line = 7500.45 [09:42:40]line НДС 12% НСП 1% [09:42:40]line > о реализуемом товаре [09:42:40]line ОКРУГЛЕНИЕ: -0.45 [09:42:40]line ИТОГО: 7500.00 [09:42:40]line Внесено: 7500.00 [09:42:40]line СДАЧА: 0.00 [09:42:40]line НСП 1% : 66.38 [09:42:40]line НДС 12% : 796.51 [09:42:40]line Наличными: 7500.00 [09:42:40]line Безнал.: 0.00 [09:42:40]line Место: АЗС № 85 "Партнер Нефть" [09:42:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:42:40]line СНО: Общий режим [09:42:40]line Чек 102 21.10.2024 09:42 [09:42:40]line Смена: 194 ФФД: 1.0 [09:42:40]line ЗНМ: 0300000167 [09:42:40]line РНМ: 0000000000156251 [09:42:40]line Версия ККМ: v1.0 [09:42:40]line [09:42:40]line Дисконтная программа [09:42:40]line ДТ [09:42:40]line номер 85 [09:42:40]line сэкономлено 99.74 сом [09:42:41]line ФМ: 0000000000963346 [09:42:41]line ФД: 69712 [09:42:41]line ФПД: 218862197317152 [09:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69712&fm=218862197317152&tin=02508201610067®Number=0000000000156251&sum=750000 [09:42:41]OFD Sender: Processing packet 69712 [packets to send 18, broken 17] [09:42:41]ProducePacketName [09:42:41]name=ofd_packets/00069712 [09:42:41]OFD Sender: To server: pG, [09:42:41]CommunicateWithHost lk.salyk.kg:30040 [09:42:41]ConnectInit lk.salyk.kg [09:42:41]written 0, free lines is 4095 [09:42:41]Connected sock=10 [09:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9D 66 04 01 3C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 85 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DD 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 37 01 00 00 00 07 04 06 00 B0 71 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 12 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 10 01 00 35 04 06 00 C7 0D D3 86 9E 20 D7 84 30 B0 4D 7A 16 61 [09:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 67 18 47 00 86 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 10 01 00 F4 03 04 00 B6 CB 15 67 B6 04 01 00 00 05 51 04 79 08 3D A8 07 [09:42:41]CommunicateWithHost err = 0 [09:42:41]CheckOFDResponse [09:42:41]1017 (14) - 77093643461234 [09:42:41]1041 (16) - 0000000000963346 [09:42:41]1040 (4) - 69712 [09:42:41]1012 (4) - 21.10.2024 03:34 [09:42:41]1206 (1) - 0 [09:42:41]OFD Sender: Remove packet 69712 [09:42:41]ProducePacketName [09:42:41]name=ofd_packets/00069712 [09:42:41]NVStorageDeleteData [09:42:41]Write to MH i2c: 01 00 00 3C 20 5C [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 3C 20 00 00 00 00 00 95 0C 04 [09:42:41]RasterBufferAndPrint [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]written 0, free lines is 3234 [09:42:41]MH_Cut [09:42:41]Write to MH i2c: D1 01 00 43 20 01 35 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 43 20 00 34 [09:42:41]Write to MH i2c: 01 00 00 44 20 64 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:42]OFD Sender: No OFD packet to send [09:42:42]*** Cut start [09:42:42]*** Partial cut [09:42:42]*** CUTSNS_PIN = 1 [09:42:42]*** CUTSNS_PIN = 0 [09:42:42]*** Brake cut motor [09:42:43]Read from MH i2c: 01 [09:42:43]MH_I2C_Read... [09:42:43]*** Stop cut motor [09:42:43]*** Cut end [09:42:43]Read from MH i2c: 01 07 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 44 20 00 00 00 00 00 FF 0F 79 [09:42:43]process_action close_receipt done [09:42:43]requested_data is exist [09:42:43]produce_requested_data [09:42:43]requested_item fm.sn is exist - process it [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 11 00 00 [09:42:43]Write to MH i2c: E2 08 00 45 20 80 11 00 00 00 00 00 00 DF [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 17 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 17 00 45 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [09:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:43]wFMCommunicate OK [09:42:43]requested_item fd.num is exist - process it [09:42:43]SAM_PROTO_GetFieldsCounters [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 13 00 00 [09:42:43]Write to MH i2c: E2 08 00 46 20 80 13 00 00 00 00 00 00 E2 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 62 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 62 00 46 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:43]wFMCommunicate OK [09:42:43]SAM_PROTO_GetFieldsCounters done [09:42:43]requested_item shift.num is exist - process it [09:42:43]requested_item shift.opened is exist - process it [09:42:43]req_shift_opened [09:42:43]FM_GetShiftState [09:42:43]SAM_PROTO_GetShiftState [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 13 01 00 [09:42:43]Write to MH i2c: E2 08 00 47 20 80 13 01 00 00 00 00 00 E4 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 0E 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 0E 00 47 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 10 [09:42:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:43]wFMCommunicate OK [09:42:43]SAM_PROTO_GetShiftState done [09:42:43]FM_GetShiftState done [09:42:43]req_shift_opened done [09:42:43]requested_item shift.open_date is exist - process it [09:42:43]req_shift_open_date [09:42:43]req_shift_open_date done [09:42:43]produce_requested_data done [09:42:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69712,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:42:43]process_action_free close_receipt [09:42:43]json_value_free [09:42:43]json_value_free done [09:42:43]process_json_proto returns [09:42:43]Send response to host [09:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69712,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:42:43]free response buf [09:42:43]execute_script done [09:42:43]execute_script returns [09:42:43]free content buf [09:42:43]Sock 8.Close socket [09:42:43]Sock 8.Thread stoped [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:52]accept exits with 9 [09:42:52]New connection [09:42:52]New thread 3067313508 created [09:42:52]Thread 3067456868 joined [09:42:52]Waiting for new connection... [09:42:52] Sock 9.Parse request [09:42:52]Sock 9.Check first char [09:42:52]Sock 9.First char is OK [09:42:52]request: POST /json_proto HTTP/1.0 [09:42:52]Method: POST [09:42:52]URL: /json_proto [09:42:52]Method is POST - this is cgi request [09:42:52]url: /json_proto [09:42:52]query_string will be loaded in cgi processing [09:42:52]execute_cgi json_proto POST (null) [09:42:52]execute_cgi path=json_proto method=POST [09:42:52]POST find Content-Length [09:42:52]Host: 172.17.50.3:8080 [09:42:52]Content-Length: 679 [09:42:52]Content-Type: application/json [09:42:52] [09:42:52]POST finish read [09:42:52]Found Content-Length = 679 [09:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885452", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:52]execute_script... [09:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885452", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:52]POST & json_proto [09:42:52]process_json_proto [09:42:52]json parsed OK: [09:42:52]protocol is kg_v1.0 [09:42:52]action value=close_receipt [09:42:52]process_action close_receipt [09:42:52]cmd_close_receipt [09:42:52]MH_GetDate [09:42:52]Write to MH i2c: F0 00 00 48 20 57 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: F0 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: F0 09 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: F0 09 00 48 20 00 1F 22 16 67 6B 98 1E 66 A5 [09:42:52]GetLastDocTimeStamp 1729503762 [09:42:52]current date 1729503775 [09:42:52]FM_GetShiftState [09:42:52]SAM_PROTO_GetShiftState [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 13 01 00 [09:42:52]Write to MH i2c: E2 08 00 49 20 80 13 01 00 00 00 00 00 E6 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0E 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0E 00 49 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 12 [09:42:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_GetShiftState done [09:42:52]FM_GetShiftState done [09:42:52]opened in 1729469703 [09:42:52]opened+sec_in_day 1729556103 [09:42:52]quantity*price = 70044 [09:42:52]sum+1 = 70045 [09:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 103 21.10.2024 09:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69713 ФПД: 35630885944084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69713&fm=35630885944084&tin=02508201610067®Number=0000000000156251&sum=70000 [09:42:53]StoreToDocumentArchive [09:42:53]shift 194 fd 69713 [09:42:53]save to /storage/0194/doc_00069713 [09:42:53]save last doc name /storage/0194/doc_00069713 to /storage/kkm_last_doc_name [09:42:53]save OK [09:42:53]Clear old archive folders... [09:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:53]tlvbuf is 00C659E0 [09:42:53]SAM_PROTO_ClearQueue [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 09 00 00 [09:42:53]Write to MH i2c: E2 08 00 56 20 80 09 00 00 00 00 00 00 E8 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [09:42:53]RAPDU: 90 00 [09:42:53]wFMCommunicate OK [09:42:53]SAM_PROTO_ClearQueue done [09:42:53]KKMCreateOFDPacket [09:42:53]OFDProtocolAddRootSTLVToBuf [09:42:53]FM_MakeSignedData [09:42:53]FM_MakeSignedData [09:42:53]SAM_PROTO_SignData [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 0D 01 02 [09:42:53]Write to MH i2c: E2 08 00 57 20 80 0D 01 02 00 00 00 00 F0 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [09:42:53]RAPDU: 90 00 [09:42:53]wFMCommunicate OK [09:42:53]wFMCommunicate request_size=255 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1F 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 10 01 00 35 04 06 00 20 [09:42:53]Write to MH i2c: E2 02 01 58 20 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1F 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 10 01 00 35 04 06 00 20 00 00 F2 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [09:42:53]RAPDU: 90 00 [09:42:53]wFMCommunicate OK [09:42:53]wFMCommunicate request_size=10 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 0D 02 02 05 67 F6 4C BB 14 [09:42:53]Write to MH i2c: E2 0D 00 59 20 80 0D 02 02 05 00 67 F6 4C BB 14 00 00 75 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 59 20 00 90 00 ED [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 03 02 [09:42:54]Write to MH i2c: E2 08 00 5A 20 80 0D 03 02 00 00 00 00 F5 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 5A 20 00 69 DF 8E 62 80 80 25 9E 90 00 F1 [09:42:54]RAPDU: 69 DF 8E 62 80 80 25 9E 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_SignData done [09:42:54]FM_MakeSignedData done [09:42:54]CreateOFDProtocolMessage [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 11 00 00 [09:42:54]Write to MH i2c: E2 08 00 5B 20 80 11 00 00 00 00 00 00 F5 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 5B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [09:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:54]wFMCommunicate OK [09:42:54]CreateOFDProtocolMessage done [09:42:54]OFDSenderStorePacket 69713 [09:42:54]StoreOFDPacket docnum=69713 [09:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6A 2C 07 01 9C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1F 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 10 01 00 35 04 06 00 20 67 F6 4C BB 14 69 DF 8E 62 80 80 25 9E [09:42:54]CheckFolder [09:42:54]dirname=/storage/ofd_packets [09:42:54]CheckFolder done [09:42:54]ProducePacketName [09:42:54]name=ofd_packets/00069713 [09:42:54]NVStorageSaveData ofd_packets/00069713 [09:42:54]File name is /storage/ofd_packets/00069713 [09:42:54]Write 301 bytes [09:42:54]NVStorageSaveData done [09:42:54]OFDSenderStorePacket done [09:42:54]KKMCreateOFDPacket done [09:42:54]NVStorageSaveData kkm_last_timestamp [09:42:54]File name is /storage/kkm_last_timestamp [09:42:54]Write 4 bytes [09:42:54]NVStorageSaveData done [09:42:54]ExternCall_PrintAddStr [09:42:54]wPrintStart [09:42:54]Write to MH i2c: 01 00 00 5C 20 7C [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 FF 0F 91 [09:42:54]RasterBufferAndPrint [09:42:54]line Счет N : (1)2885452 [09:42:54]line ИНН: 02508201610067 [09:42:54]line Контрольно-Кассовый Чек [09:42:54]line ПРОДАЖА [09:42:54]line ТРК (МРК, ГНК) : 32 [09:42:54]line Товар: 2710124130 [09:42:54]line Аи-92-К-5 [09:42:54]line 10.470 * 66.90 [09:42:54]line = 700.44 [09:42:54]line НДС 12% НСП 1% [09:42:54]line > о реализуемом товаре [09:42:54]line ОКРУГЛЕНИЕ: -0.44 [09:42:54]line ИТОГО: 700.00 [09:42:54]line Внесено: 700.00 [09:42:54]line СДАЧА: 0.00 [09:42:54]line НСП 1% : 6.20 [09:42:54]line НДС 12% : 74.38 [09:42:54]line Наличными: 700.00 [09:42:54]line Безнал.: 0.00 [09:42:54]line Место: АЗС № 85 "Партнер Нефть" [09:42:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:42:54]line СНО: Общий режим [09:42:54]line Чек 103 21.10.2024 09:42 [09:42:54]line Смена: 194 ФФД: 1.0 [09:42:54]line ЗНМ: 0300000167 [09:42:54]line РНМ: 0000000000156251 [09:42:54]line Версия ККМ: v1.0 [09:42:54]line ФМ: 0000000000963346 [09:42:54]line ФД: 69713 [09:42:54]line ФПД: 35630885944084 [09:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69713&fm=35630885944084&tin=02508201610067®Number=0000000000156251&sum=70000 [09:42:54]written 0, free lines is 4095 [09:42:54]OFD Sender: Processing packet 69713 [packets to send 18, broken 17] [09:42:54]ProducePacketName [09:42:54]name=ofd_packets/00069713 [09:42:54]OFD Sender: To server: pG, [09:42:54]CommunicateWithHost lk.salyk.kg:30040 [09:42:54]ConnectInit lk.salyk.kg [09:42:54]Connected sock=10 [09:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6A 2C 07 01 9C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1F 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 10 01 00 35 04 06 00 20 67 F6 4C BB 14 69 DF 8E 62 80 80 25 9E [09:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7E 51 47 00 9B 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 39 36 33 33 34 36 10 04 04 00 51 10 01 00 F4 03 04 00 C3 CB 15 67 B6 04 01 00 00 BF 05 8A 11 EA 94 55 56 [09:42:54]CommunicateWithHost err = 0 [09:42:54]CheckOFDResponse [09:42:54]1017 (14) - 77093643461234 [09:42:54]1041 (16) - 0000000000963346 [09:42:54]1040 (4) - 69713 [09:42:54]1012 (4) - 21.10.2024 03:34 [09:42:54]1206 (1) - 0 [09:42:54]OFD Sender: Remove packet 69713 [09:42:54]ProducePacketName [09:42:54]name=ofd_packets/00069713 [09:42:54]NVStorageDeleteData [09:42:54]Write to MH i2c: 01 00 00 87 20 A7 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 F3 0C AD [09:42:54]RasterBufferAndPrint [09:42:54]line [09:42:54]line [09:42:54]line [09:42:54]line [09:42:54]line [09:42:54]written 0, free lines is 3330 [09:42:54]MH_Cut [09:42:54]Write to MH i2c: D1 01 00 8E 20 01 80 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: D1 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: D1 01 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: D1 01 00 8E 20 00 7F [09:42:54]Write to MH i2c: 01 00 00 8F 20 AF [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:55]OFD Sender: No OFD packet to send [09:42:55]*** Cut start [09:42:55]*** Partial cut [09:42:55]*** CUTSNS_PIN = 1 [09:42:55]*** CUTSNS_PIN = 0 [09:42:55]*** Brake cut motor [09:42:55]Read from MH i2c: 01 [09:42:55]MH_I2C_Read... [09:42:55]*** Stop cut motor [09:42:55]*** Cut end [09:42:55]Read from MH i2c: 01 07 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 8F 20 00 00 00 00 00 FF 0F C4 [09:42:55]process_action close_receipt done [09:42:55]requested_data is exist [09:42:55]produce_requested_data [09:42:55]requested_item fm.sn is exist - process it [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 11 00 00 [09:42:55]Write to MH i2c: E2 08 00 90 20 80 11 00 00 00 00 00 00 2A [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 90 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [09:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:55]wFMCommunicate OK [09:42:55]requested_item fd.num is exist - process it [09:42:55]SAM_PROTO_GetFieldsCounters [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 13 00 00 [09:42:55]Write to MH i2c: E2 08 00 91 20 80 13 00 00 00 00 00 00 2D [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 62 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 62 00 91 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:56]wFMCommunicate OK [09:42:56]SAM_PROTO_GetFieldsCounters done [09:42:56]requested_item shift.num is exist - process it [09:42:56]requested_item shift.opened is exist - process it [09:42:56]req_shift_opened [09:42:56]FM_GetShiftState [09:42:56]SAM_PROTO_GetShiftState [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 13 01 00 [09:42:56]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0E 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5B [09:42:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:42:56]wFMCommunicate OK [09:42:56]SAM_PROTO_GetShiftState done [09:42:56]FM_GetShiftState done [09:42:56]req_shift_opened done [09:42:56]requested_item shift.open_date is exist - process it [09:42:56]req_shift_open_date [09:42:56]req_shift_open_date done [09:42:56]produce_requested_data done [09:42:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69713,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:42:56]process_action_free close_receipt [09:42:56]json_value_free [09:42:56]json_value_free done [09:42:56]process_json_proto returns [09:42:56]Send response to host [09:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69713,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:42:56]free response buf [09:42:56]execute_script done [09:42:56]execute_script returns [09:42:56]free content buf [09:42:56]Sock 9.Close socket [09:42:56]Sock 9.Thread stoped [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:53]accept exits with 8 [09:43:53]New connection [09:43:53]New thread 3067456868 created [09:43:53]Thread 3067313508 joined [09:43:53]Waiting for new connection... [09:43:53] Sock 8.Parse request [09:43:53]Sock 8.Check first char [09:43:53]Sock 8.First char is OK [09:43:53]request: POST /json_proto HTTP/1.0 [09:43:53]Method: POST [09:43:53]URL: /json_proto [09:43:53]Method is POST - this is cgi request [09:43:53]url: /json_proto [09:43:53]query_string will be loaded in cgi processing [09:43:53]execute_cgi json_proto POST (null) [09:43:53]execute_cgi path=json_proto method=POST [09:43:53]POST find Content-Length [09:43:53]Host: 172.17.50.3:8080 [09:43:53]Content-Length: 754 [09:43:53]Content-Type: application/json [09:43:53] [09:43:53]POST finish read [09:43:53]Found Content-Length = 754 [09:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885454", "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" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:53]execute_script... [09:43: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)2885454", "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" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:53]POST & json_proto [09:43:53]process_json_proto [09:43:53]json parsed OK: [09:43:53]protocol is kg_v1.0 [09:43:53]action value=close_receipt [09:43:53]process_action close_receipt [09:43:53]cmd_close_receipt [09:43:53]MH_GetDate [09:43:53]Write to MH i2c: F0 00 00 93 20 A2 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: F0 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: F0 09 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: F0 09 00 93 20 00 5C 22 16 67 6B 98 1E 66 2D [09:43:53]GetLastDocTimeStamp 1729503775 [09:43:53]current date 1729503836 [09:43:53]FM_GetShiftState [09:43:53]SAM_PROTO_GetShiftState [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 13 01 00 [09:43:53]Write to MH i2c: E2 08 00 94 20 80 13 01 00 00 00 00 00 31 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 94 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5D [09:43:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetShiftState done [09:43:53]FM_GetShiftState done [09:43:53]opened in 1729469703 [09:43:53]opened+sec_in_day 1729556103 [09:43:53]quantity*price = 0 [09:43:53]sum+1 = 1 [09:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 104 21.10.2024 09:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69714 ФПД: 32557058289244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69714&fm=32557058289244&tin=02508201610067®Number=0000000000156251&sum=0 [09:43:54]StoreToDocumentArchive [09:43:54]shift 194 fd 69714 [09:43:54]save to /storage/0194/doc_00069714 [09:43:54]save last doc name /storage/0194/doc_00069714 to /storage/kkm_last_doc_name [09:43:54]save OK [09:43:54]Clear old archive folders... [09:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:54]tlvbuf is 00C412F0 [09:43:54]SAM_PROTO_ClearQueue [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 09 00 00 [09:43:54]Write to MH i2c: E2 08 00 A1 20 80 09 00 00 00 00 00 00 33 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]SAM_PROTO_ClearQueue done [09:43:54]KKMCreateOFDPacket [09:43:54]OFDProtocolAddRootSTLVToBuf [09:43:54]FM_MakeSignedData [09:43:54]FM_MakeSignedData [09:43:54]SAM_PROTO_SignData [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 0D 01 02 [09:43:54]Write to MH i2c: E2 08 00 A2 20 80 0D 01 02 00 00 00 00 3B [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]wFMCommunicate request_size=255 [09:43:54]MH_SAM_APDU [09:43: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5C 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 10 01 00 35 04 06 00 1D [09:43:54]Write to MH i2c: E2 02 01 A3 20 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5C 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 10 01 00 35 04 06 00 1D 00 00 7F [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 A3 20 00 90 00 37 [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]wFMCommunicate request_size=10 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 0D 02 02 05 9C 47 E4 EE 5C [09:43:54]Write to MH i2c: E2 0D 00 A4 20 80 0D 02 02 05 00 9C 47 E4 EE 5C 00 00 59 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 03 00 A4 20 00 90 00 38 [09:43:54]RAPDU: 90 00 [09:43:54]wFMCommunicate OK [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 0D 03 02 [09:43:54]Write to MH i2c: E2 08 00 A5 20 80 0D 03 02 00 00 00 00 40 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 0B 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 0B 00 A5 20 00 D5 1D 8A 5A 26 04 75 6D 90 00 23 [09:43:54]RAPDU: D5 1D 8A 5A 26 04 75 6D 90 00 [09:43:54]wFMCommunicate OK [09:43:54]SAM_PROTO_SignData done [09:43:54]FM_MakeSignedData done [09:43:54]CreateOFDProtocolMessage [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 11 00 00 [09:43:54]Write to MH i2c: E2 08 00 A6 20 80 11 00 00 00 00 00 00 40 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 17 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 17 00 A6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [09:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:43:54]wFMCommunicate OK [09:43:54]CreateOFDProtocolMessage done [09:43:54]OFDSenderStorePacket 69714 [09:43:54]StoreOFDPacket docnum=69714 [09:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 91 07 01 89 10 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5C 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 10 01 00 35 04 06 00 1D 9C 47 E4 EE 5C D5 1D 8A 5A 26 04 75 6D [09:43:54]CheckFolder [09:43:54]dirname=/storage/ofd_packets [09:43:54]CheckFolder done [09:43:54]ProducePacketName [09:43:54]name=ofd_packets/00069714 [09:43:54]NVStorageSaveData ofd_packets/00069714 [09:43:54]File name is /storage/ofd_packets/00069714 [09:43:54]Write 301 bytes [09:43:54]NVStorageSaveData done [09:43:54]OFDSenderStorePacket done [09:43:54]KKMCreateOFDPacket done [09:43:54]NVStorageSaveData kkm_last_timestamp [09:43:54]File name is /storage/kkm_last_timestamp [09:43:54]Write 4 bytes [09:43:54]NVStorageSaveData done [09:43:54]ExternCall_PrintAddStr [09:43:54]wPrintStart [09:43:54]Write to MH i2c: 01 00 00 A7 20 C7 [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [09:43:54]RasterBufferAndPrint [09:43:54]line Счет N : (1)2885454 [09:43:54]line ИНН: 02508201610067 [09:43:54]line Контрольно-Кассовый Чек [09:43:54]line ПРОДАЖА [09:43:54]line ТРК (МРК, ГНК) : 42 [09:43:54]line Товар: 2710124130 [09:43:54]line Аи-92-К-5 [09:43:54]line 5.000 * 0.00 [09:43:54]line = 0.00 [09:43:54]line НДС 12% НСП 1% [09:43:54]line > о реализуемом товаре [09:43:54]line ИТОГО: 0.00 [09:43:54]line НСП 1% : 0.00 [09:43:54]line НДС 12% : 0.00 [09:43:54]line Наличными: 0.00 [09:43:54]line Безнал.: 0.00 [09:43:54]line Место: АЗС № 85 "Партнер Нефть" [09:43:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:43:54]line СНО: Общий режим [09:43:54]line Чек 104 21.10.2024 09:43 [09:43:54]line Смена: 194 ФФД: 1.0 [09:43:54]line ЗНМ: 0300000167 [09:43:54]line РНМ: 0000000000156251 [09:43:54]line Версия ККМ: v1.0 [09:43:54]line Талоны: ТК ГПНА Online [09:43:54]line 30100970 [09:43:54]line ФМ: 0000000000963346 [09:43:54]line ФД: 69714 [09:43:54]line ФПД: 32557058289244 [09:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69714&fm=32557058289244&tin=02508201610067®Number=0000000000156251&sum=0 [09:43:55]OFD Sender: Processing packet 69714 [packets to send 18, broken 17] [09:43:55]ProducePacketName [09:43:55]name=ofd_packets/00069714 [09:43:55]OFD Sender: To server: pG, [09:43:55]CommunicateWithHost lk.salyk.kg:30040 [09:43:55]ConnectInit lk.salyk.kg [09:43:55]written 0, free lines is 4095 [09:43:55]Connected sock=10 [09:43:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 91 07 01 89 10 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5C 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 10 01 00 35 04 06 00 1D 9C 47 E4 EE 5C D5 1D 8A 5A 26 04 75 6D [09:43:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 90 C7 47 00 B5 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 39 36 33 33 34 36 10 04 04 00 52 10 01 00 F4 03 04 00 00 CC 15 67 B6 04 01 00 00 A1 C7 C2 65 4E 05 7E 8F [09:43:55]CommunicateWithHost err = 0 [09:43:55]CheckOFDResponse [09:43:55]1017 (14) - 77093643461234 [09:43:55]1041 (16) - 0000000000963346 [09:43:55]1040 (4) - 69714 [09:43:55]1012 (4) - 21.10.2024 03:35 [09:43:55]1206 (1) - 0 [09:43:55]OFD Sender: Remove packet 69714 [09:43:55]ProducePacketName [09:43:55]name=ofd_packets/00069714 [09:43:55]NVStorageDeleteData [09:43:55]Write to MH i2c: 01 00 00 D1 20 F1 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 EE 0C F2 [09:43:55]RasterBufferAndPrint [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]line [09:43:55]written 0, free lines is 3319 [09:43:55]MH_Cut [09:43:55]Write to MH i2c: D1 01 00 D8 20 01 CA [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 01 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: D1 01 00 D8 20 00 C9 [09:43:55]Write to MH i2c: 01 00 00 D9 20 F9 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:56]OFD Sender: No OFD packet to send [09:43:56]*** Cut start [09:43:56]*** Partial cut [09:43:56]*** CUTSNS_PIN = 1 [09:43:56]*** CUTSNS_PIN = 0 [09:43:56]*** Brake cut motor [09:43:56]Read from MH i2c: 01 [09:43:56]MH_I2C_Read... [09:43:56]*** Stop cut motor [09:43:56]*** Cut end [09:43:56]Read from MH i2c: 01 07 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: 01 07 00 D9 20 00 00 00 00 00 FF 0F 0E [09:43:56]process_action close_receipt done [09:43:56]requested_data is exist [09:43:56]produce_requested_data [09:43:56]requested_item fm.sn is exist - process it [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 11 00 00 [09:43:56]Write to MH i2c: E2 08 00 DA 20 80 11 00 00 00 00 00 00 74 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 17 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 17 00 DA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [09:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:43:57]wFMCommunicate OK [09:43:57]requested_item fd.num is exist - process it [09:43:57]SAM_PROTO_GetFieldsCounters [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 13 00 00 [09:43:57]Write to MH i2c: E2 08 00 DB 20 80 13 00 00 00 00 00 00 77 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 62 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 62 00 DB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:43:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:57]wFMCommunicate OK [09:43:57]SAM_PROTO_GetFieldsCounters done [09:43:57]requested_item shift.num is exist - process it [09:43:57]requested_item shift.opened is exist - process it [09:43:57]req_shift_opened [09:43:57]FM_GetShiftState [09:43:57]SAM_PROTO_GetShiftState [09:43:57]wFMCommunicate request_size=4 [09:43:57]MH_SAM_APDU [09:43:57]CAPDU: 80 13 01 00 [09:43:57]Write to MH i2c: E2 08 00 DC 20 80 13 01 00 00 00 00 00 79 [09:43:57]Write i2c OK [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 [09:43:57]MH_I2C_Read... [09:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:57]Read from MH i2c: E2 0E 00 [09:43:57]MH_I2C_Read... [09:43:57]Read from MH i2c: E2 0E 00 DC 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [09:43:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:43:57]wFMCommunicate OK [09:43:57]SAM_PROTO_GetShiftState done [09:43:57]FM_GetShiftState done [09:43:57]req_shift_opened done [09:43:57]requested_item shift.open_date is exist - process it [09:43:57]req_shift_open_date [09:43:57]req_shift_open_date done [09:43:57]produce_requested_data done [09:43:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69714,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:43:57]process_action_free close_receipt [09:43:57]json_value_free [09:43:57]json_value_free done [09:43:57]process_json_proto returns [09:43:57]Send response to host [09:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69714,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:43:57]free response buf [09:43:57]execute_script done [09:43:57]execute_script returns [09:43:57]free content buf [09:43:57]Sock 8.Close socket [09:43:57]Sock 8.Thread stoped [09:44:01]OFD Sender: No OFD packet to send [09:44:01]accept exits with 9 [09:44:01]New connection [09:44:01]New thread 3067313508 created [09:44:01]Thread 3067456868 joined [09:44:01]Waiting for new connection... [09:44:01] Sock 9.Parse request [09:44:01]Sock 9.Check first char [09:44:01]Sock 9.First char is OK [09:44:01]request: POST /json_proto HTTP/1.0 [09:44:01]Method: POST [09:44:01]URL: /json_proto [09:44:01]Method is POST - this is cgi request [09:44:01]url: /json_proto [09:44:01]query_string will be loaded in cgi processing [09:44:01]execute_cgi json_proto POST (null) [09:44:01]execute_cgi path=json_proto method=POST [09:44:01]POST find Content-Length [09:44:01]Host: 172.17.50.3:8080 [09:44:01]Content-Length: 978 [09:44:01]Content-Type: application/json [09:44:01] [09:44:01]POST finish read [09:44:01]Found Content-Length = 978 [09:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:01]execute_script... [09:44: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)2885456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:01]POST & json_proto [09:44:01]process_json_proto [09:44:01]json parsed OK: [09:44:01]protocol is kg_v1.0 [09:44:01]action value=close_receipt [09:44:01]process_action close_receipt [09:44:01]cmd_close_receipt [09:44:01]MH_GetDate [09:44:01]Write to MH i2c: F0 00 00 DD 20 EC [09:44:01]Write i2c OK [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 09 00 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: F0 09 00 DD 20 00 64 22 16 67 6B 98 1E 66 7F [09:44:01]GetLastDocTimeStamp 1729503836 [09:44:01]current date 1729503844 [09:44:01]FM_GetShiftState [09:44:01]SAM_PROTO_GetShiftState [09:44:01]wFMCommunicate request_size=4 [09:44:01]MH_SAM_APDU [09:44:01]CAPDU: 80 13 01 00 [09:44:01]Write to MH i2c: E2 08 00 DE 20 80 13 01 00 00 00 00 00 7B [09:44:01]Write i2c OK [09:44:01]MH_I2C_Read... [09:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:01]Read from MH i2c: E2 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 DE 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A7 [09:44:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:01]wFMCommunicate OK [09:44:01]SAM_PROTO_GetShiftState done [09:44:01]FM_GetShiftState done [09:44:01]opened in 1729469703 [09:44:01]opened+sec_in_day 1729556103 [09:44:01]quantity*price = 500004 [09:44:01]sum+1 = 500006 [09:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 105 21.10.2024 09:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69715 ФПД: 204770740738276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094404&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69715&fm=204770740738276&tin=02508201610067®Number=0000000000156251&sum=500000 [09:44:02]StoreToDocumentArchive [09:44:02]shift 194 fd 69715 [09:44:02]save to /storage/0194/doc_00069715 [09:44:02]save last doc name /storage/0194/doc_00069715 to /storage/kkm_last_doc_name [09:44:02]save OK [09:44:02]Clear old archive folders... [09:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:02]tlvbuf is B6F55930 [09:44:02]SAM_PROTO_ClearQueue [09:44:02]wFMCommunicate request_size=4 [09:44:02]MH_SAM_APDU [09:44:02]CAPDU: 80 09 00 00 [09:44:02]Write to MH i2c: E2 08 00 EB 20 80 09 00 00 00 00 00 00 7D [09:44:02]Write i2c OK [09:44:02]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [09:44:03]RAPDU: 90 00 [09:44:03]wFMCommunicate OK [09:44:03]SAM_PROTO_ClearQueue done [09:44:03]KKMCreateOFDPacket [09:44:03]OFDProtocolAddRootSTLVToBuf [09:44:03]FM_MakeSignedData [09:44:03]FM_MakeSignedData [09:44:03]SAM_PROTO_SignData [09:44:03]wFMCommunicate request_size=4 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 0D 01 02 [09:44:03]Write to MH i2c: E2 08 00 EC 20 80 0D 01 02 00 00 00 00 85 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [09:44:03]RAPDU: 90 00 [09:44:03]wFMCommunicate OK [09:44:03]wFMCommunicate request_size=255 [09:44:03]MH_SAM_APDU [09:44: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 64 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 10 01 00 35 04 06 00 BA 3C E7 43 [09:44:03]Write to MH i2c: E2 02 01 ED 20 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 64 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 10 01 00 35 04 06 00 BA 3C E7 43 00 00 B9 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [09:44:03]RAPDU: 90 00 [09:44:03]wFMCommunicate OK [09:44:03]wFMCommunicate request_size=7 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 0D 02 02 02 18 E4 [09:44:03]Write to MH i2c: E2 0A 00 EE 20 80 0D 02 02 02 00 18 E4 00 00 88 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 03 00 EE 20 00 90 00 82 [09:44:03]RAPDU: 90 00 [09:44:03]wFMCommunicate OK [09:44:03]wFMCommunicate request_size=4 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 0D 03 02 [09:44:03]Write to MH i2c: E2 08 00 EF 20 80 0D 03 02 00 00 00 00 8A [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0B 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0B 00 EF 20 00 3F 29 D5 D0 00 E2 19 16 90 00 A9 [09:44:03]RAPDU: 3F 29 D5 D0 00 E2 19 16 90 00 [09:44:03]wFMCommunicate OK [09:44:03]SAM_PROTO_SignData done [09:44:03]FM_MakeSignedData done [09:44:03]CreateOFDProtocolMessage [09:44:03]wFMCommunicate request_size=4 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 11 00 00 [09:44:03]Write to MH i2c: E2 08 00 F0 20 80 11 00 00 00 00 00 00 8A [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 17 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 17 00 F0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [09:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:03]wFMCommunicate OK [09:44:03]CreateOFDProtocolMessage done [09:44:03]OFDSenderStorePacket 69715 [09:44:03]StoreOFDPacket docnum=69715 [09:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EC 7E 04 01 12 6B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 64 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 10 01 00 35 04 06 00 BA 3C E7 43 18 E4 3F 29 D5 D0 00 E2 19 16 [09:44:03]CheckFolder [09:44:03]dirname=/storage/ofd_packets [09:44:03]CheckFolder done [09:44:03]ProducePacketName [09:44:03]name=ofd_packets/00069715 [09:44:03]NVStorageSaveData ofd_packets/00069715 [09:44:03]File name is /storage/ofd_packets/00069715 [09:44:03]Write 298 bytes [09:44:03]NVStorageSaveData done [09:44:03]OFDSenderStorePacket done [09:44:03]KKMCreateOFDPacket done [09:44:03]NVStorageSaveData kkm_last_timestamp [09:44:03]File name is /storage/kkm_last_timestamp [09:44:03]Write 4 bytes [09:44:03]NVStorageSaveData done [09:44:03]ExternCall_PrintAddStr [09:44:03]wPrintStart [09:44:03]Write to MH i2c: 01 00 00 F1 20 11 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 07 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 FF 0F 26 [09:44:03]RasterBufferAndPrint [09:44:03]line Счет N : (1)2885456 [09:44:03]line ИНН: 02508201610067 [09:44:03]line Контрольно-Кассовый Чек [09:44:03]line ПРОДАЖА [09:44:03]line ТРК (МРК, ГНК) : 61 [09:44:03]line Товар: 2710194210 [09:44:03]line ДТ-К-5 [09:44:03]line 66.490 * 75.20 [09:44:03]line = 5000.05 [09:44:03]line НДС 12% НСП 1% [09:44:03]line > о реализуемом товаре [09:44:03]line ОКРУГЛЕНИЕ: -0.05 [09:44:03]line ИТОГО: 5000.00 [09:44:03]line Внесено: 5000.00 [09:44:03]line СДАЧА: 0.00 [09:44:03]line НСП 1% : 44.25 [09:44:03]line НДС 12% : 530.98 [09:44:03]line Наличными: 5000.00 [09:44:03]line Безнал.: 0.00 [09:44:03]line Место: АЗС № 85 "Партнер Нефть" [09:44:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:03]line СНО: Общий режим [09:44:03]line Чек 105 21.10.2024 09:44 [09:44:03]line Смена: 194 ФФД: 1.0 [09:44:03]line ЗНМ: 0300000167 [09:44:03]line РНМ: 0000000000156251 [09:44:03]line Версия ККМ: v1.0 [09:44:03]line [09:44:03]line Дисконтная программа [09:44:03]line ДТ [09:44:03]line номер 85 [09:44:03]line сэкономлено 66.49 сом [09:44:03]line ФМ: 0000000000963346 [09:44:03]line ФД: 69715 [09:44:03]line ФПД: 204770740738276 [09:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094404&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69715&fm=204770740738276&tin=02508201610067®Number=0000000000156251&sum=500000 [09:44:03]OFD Sender: Processing packet 69715 [packets to send 18, broken 17] [09:44:03]ProducePacketName [09:44:03]name=ofd_packets/00069715 [09:44:03]OFD Sender: To server: pG, [09:44:03]CommunicateWithHost lk.salyk.kg:30040 [09:44:03]ConnectInit lk.salyk.kg [09:44:03]written 0, free lines is 4095 [09:44:03]Connected sock=10 [09:44:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EC 7E 04 01 12 6B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 64 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 10 01 00 35 04 06 00 BA 3C E7 43 18 E4 3F 29 D5 D0 00 E2 19 16 [09:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1B 45 47 00 C4 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 10 01 00 F4 03 04 00 08 CC 15 67 B6 04 01 00 00 C1 4B F8 62 CC B7 37 7E [09:44:03]CommunicateWithHost err = 0 [09:44:03]CheckOFDResponse [09:44:03]1017 (14) - 77093643461234 [09:44:03]1041 (16) - 0000000000963346 [09:44:03]1040 (4) - 69715 [09:44:03]1012 (4) - 21.10.2024 03:35 [09:44:03]1206 (1) - 0 [09:44:03]OFD Sender: Remove packet 69715 [09:44:03]ProducePacketName [09:44:03]name=ofd_packets/00069715 [09:44:03]NVStorageDeleteData [09:44:04]Write to MH i2c: 01 00 00 21 21 42 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 07 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: 01 07 00 21 21 00 00 00 00 00 A9 0C FE [09:44:04]RasterBufferAndPrint [09:44:04]line [09:44:04]line [09:44:04]line [09:44:04]line [09:44:04]line [09:44:04]written 0, free lines is 3249 [09:44:04]MH_Cut [09:44:04]Write to MH i2c: D1 01 00 28 21 01 1B [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: D1 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: D1 01 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: D1 01 00 28 21 00 1A [09:44:04]Write to MH i2c: 01 00 00 29 21 4A [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]OFD Sender: No OFD packet to send [09:44:04]*** Cut start [09:44:04]*** Partial cut [09:44:04]*** CUTSNS_PIN = 1 [09:44:04]*** CUTSNS_PIN = 0 [09:44:05]*** Brake cut motor [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]*** Stop cut motor [09:44:05]*** Cut end [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 29 21 00 00 00 00 00 FF 0F 5F [09:44:05]process_action close_receipt done [09:44:05]requested_data is exist [09:44:05]produce_requested_data [09:44:05]requested_item fm.sn is exist - process it [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 11 00 00 [09:44:05]Write to MH i2c: E2 08 00 2A 21 80 11 00 00 00 00 00 00 C5 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 2A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [09:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:05]wFMCommunicate OK [09:44:05]requested_item fd.num is exist - process it [09:44:05]SAM_PROTO_GetFieldsCounters [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 13 00 00 [09:44:05]Write to MH i2c: E2 08 00 2B 21 80 13 00 00 00 00 00 00 C8 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 62 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 62 00 2B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [09:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:05]wFMCommunicate OK [09:44:05]SAM_PROTO_GetFieldsCounters done [09:44:05]requested_item shift.num is exist - process it [09:44:05]requested_item shift.opened is exist - process it [09:44:05]req_shift_opened [09:44:05]FM_GetShiftState [09:44:05]SAM_PROTO_GetShiftState [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 13 01 00 [09:44:05]Write to MH i2c: E2 08 00 2C 21 80 13 01 00 00 00 00 00 CA [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 0E 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 0E 00 2C 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F6 [09:44:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:05]wFMCommunicate OK [09:44:05]SAM_PROTO_GetShiftState done [09:44:05]FM_GetShiftState done [09:44:05]req_shift_opened done [09:44:05]requested_item shift.open_date is exist - process it [09:44:05]req_shift_open_date [09:44:05]req_shift_open_date done [09:44:05]produce_requested_data done [09:44:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69715,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:44:05]process_action_free close_receipt [09:44:05]json_value_free [09:44:05]json_value_free done [09:44:05]process_json_proto returns [09:44:05]Send response to host [09:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69715,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:44:05]free response buf [09:44:05]execute_script done [09:44:05]execute_script returns [09:44:05]free content buf [09:44:05]Sock 9.Close socket [09:44:05]Sock 9.Thread stoped [09:44:09]OFD Sender: No OFD packet to send [09:44:14]accept exits with 8 [09:44:14]New connection [09:44:14]New thread 3067456868 created [09:44:14]Thread 3067313508 joined [09:44:14]Waiting for new connection... [09:44:14] Sock 8.Parse request [09:44:14]Sock 8.Check first char [09:44:14]Sock 8.First char is OK [09:44:14]request: POST /json_proto HTTP/1.0 [09:44:14]Method: POST [09:44:14]URL: /json_proto [09:44:14]Method is POST - this is cgi request [09:44:14]url: /json_proto [09:44:14]query_string will be loaded in cgi processing [09:44:14]execute_cgi json_proto POST (null) [09:44:14]execute_cgi path=json_proto method=POST [09:44:14]POST find Content-Length [09:44:14]Host: 172.17.50.3:8080 [09:44:14]Content-Length: 676 [09:44:14]Content-Type: application/json [09:44:14] [09:44:14]POST finish read [09:44:14]Found Content-Length = 676 [09:44:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:14]execute_script... [09:44: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)2885453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:14]POST & json_proto [09:44:14]process_json_proto [09:44:14]json parsed OK: [09:44:14]protocol is kg_v1.0 [09:44:14]action value=close_receipt [09:44:14]process_action close_receipt [09:44:14]cmd_close_receipt [09:44:14]MH_GetDate [09:44:14]Write to MH i2c: F0 00 00 2D 21 3D [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: F0 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: F0 09 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: F0 09 00 2D 21 00 71 22 16 67 6B 98 1E 66 DD [09:44:14]GetLastDocTimeStamp 1729503844 [09:44:14]current date 1729503857 [09:44:14]FM_GetShiftState [09:44:14]SAM_PROTO_GetShiftState [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 13 01 00 [09:44:14]Write to MH i2c: E2 08 00 2E 21 80 13 01 00 00 00 00 00 CC [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:14]Read from MH i2c: E2 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 0E 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 0E 00 2E 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F8 [09:44:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:14]wFMCommunicate OK [09:44:14]SAM_PROTO_GetShiftState done [09:44:14]FM_GetShiftState done [09:44:14]opened in 1729469703 [09:44:14]opened+sec_in_day 1729556103 [09:44:14]quantity*price = 90068 [09:44:14]sum+1 = 90069 [09:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 106 21.10.2024 09:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69716 ФПД: 221060965272297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69716&fm=221060965272297&tin=02508201610067®Number=0000000000156251&sum=90000 [09:44:15]StoreToDocumentArchive [09:44:15]shift 194 fd 69716 [09:44:15]save to /storage/0194/doc_00069716 [09:44:15]save last doc name /storage/0194/doc_00069716 to /storage/kkm_last_doc_name [09:44:15]save OK [09:44:15]Clear old archive folders... [09:44:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:15]tlvbuf is B6F3CA40 [09:44:15]SAM_PROTO_ClearQueue [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 09 00 00 [09:44:15]Write to MH i2c: E2 08 00 3B 21 80 09 00 00 00 00 00 00 CE [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_ClearQueue done [09:44:15]KKMCreateOFDPacket [09:44:15]OFDProtocolAddRootSTLVToBuf [09:44:15]FM_MakeSignedData [09:44:15]FM_MakeSignedData [09:44:15]SAM_PROTO_SignData [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 01 02 [09:44:15]Write to MH i2c: E2 08 00 3C 21 80 0D 01 02 00 00 00 00 D6 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=255 [09:44:15]MH_SAM_APDU [09:44: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 71 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 10 01 00 35 04 06 00 C9 0D C4 4F [09:44:15]Write to MH i2c: E2 02 01 3D 21 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 71 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 10 01 00 35 04 06 00 C9 0D C4 4F 00 00 A8 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=7 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 02 02 02 0A E9 [09:44:15]Write to MH i2c: E2 0A 00 3E 21 80 0D 02 02 02 00 0A E9 00 00 D0 [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [09:44:15]RAPDU: 90 00 [09:44:15]wFMCommunicate OK [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 0D 03 02 [09:44:15]Write to MH i2c: E2 08 00 3F 21 80 0D 03 02 00 00 00 00 DB [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0B 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0B 00 3F 21 00 EA 53 C3 56 F6 25 86 85 90 00 58 [09:44:15]RAPDU: EA 53 C3 56 F6 25 86 85 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_SignData done [09:44:15]FM_MakeSignedData done [09:44:15]CreateOFDProtocolMessage [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 11 00 00 [09:44:15]Write to MH i2c: E2 08 00 40 21 80 11 00 00 00 00 00 00 DB [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 17 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 17 00 40 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [09:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:16]wFMCommunicate OK [09:44:16]CreateOFDProtocolMessage done [09:44:16]OFDSenderStorePacket 69716 [09:44:16]StoreOFDPacket docnum=69716 [09:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 8B 04 01 DC A6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 71 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 10 01 00 35 04 06 00 C9 0D C4 4F 0A E9 EA 53 C3 56 F6 25 86 85 [09:44:16]CheckFolder [09:44:16]dirname=/storage/ofd_packets [09:44:16]CheckFolder done [09:44:16]ProducePacketName [09:44:16]name=ofd_packets/00069716 [09:44:16]NVStorageSaveData ofd_packets/00069716 [09:44:16]File name is /storage/ofd_packets/00069716 [09:44:16]Write 298 bytes [09:44:16]NVStorageSaveData done [09:44:16]OFDSenderStorePacket done [09:44:16]KKMCreateOFDPacket done [09:44:16]NVStorageSaveData kkm_last_timestamp [09:44:16]File name is /storage/kkm_last_timestamp [09:44:16]Write 4 bytes [09:44:16]NVStorageSaveData done [09:44:16]ExternCall_PrintAddStr [09:44:16]wPrintStart [09:44:16]Write to MH i2c: 01 00 00 41 21 62 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 41 21 00 00 00 00 00 FF 0F 77 [09:44:16]RasterBufferAndPrint [09:44:16]line Счет N : (1)2885453 [09:44:16]line ИНН: 02508201610067 [09:44:16]line Контрольно-Кассовый Чек [09:44:16]line ПРОДАЖА [09:44:16]line ТРК (МРК, ГНК) : 51 [09:44:16]line Товар: 2710194210 [09:44:16]line ДТ-К-5 [09:44:16]line 11.820 * 76.20 [09:44:16]line = 900.68 [09:44:16]line НДС 12% НСП 1% [09:44:16]line > о реализуемом товаре [09:44:16]line ОКРУГЛЕНИЕ: -0.68 [09:44:16]line ИТОГО: 900.00 [09:44:16]line Внесено: 900.00 [09:44:16]line СДАЧА: 0.00 [09:44:16]line НСП 1% : 7.97 [09:44:16]line НДС 12% : 95.65 [09:44:16]line Наличными: 900.00 [09:44:16]line Безнал.: 0.00 [09:44:16]line Место: АЗС № 85 "Партнер Нефть" [09:44:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:16]line СНО: Общий режим [09:44:16]line Чек 106 21.10.2024 09:44 [09:44:16]line Смена: 194 ФФД: 1.0 [09:44:16]line ЗНМ: 0300000167 [09:44:16]line РНМ: 0000000000156251 [09:44:16]line Версия ККМ: v1.0 [09:44:16]line ФМ: 0000000000963346 [09:44:16]line ФД: 69716 [09:44:16]line ФПД: 221060965272297 [09:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69716&fm=221060965272297&tin=02508201610067®Number=0000000000156251&sum=90000 [09:44:16]written 0, free lines is 4095 [09:44:16]OFD Sender: Processing packet 69716 [packets to send 18, broken 17] [09:44:16]ProducePacketName [09:44:16]name=ofd_packets/00069716 [09:44:16]OFD Sender: To server: pG, [09:44:16]CommunicateWithHost lk.salyk.kg:30040 [09:44:16]ConnectInit lk.salyk.kg [09:44:16]Connected sock=10 [09:44:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 8B 04 01 DC A6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 71 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 10 01 00 35 04 06 00 C9 0D C4 4F 0A E9 EA 53 C3 56 F6 25 86 85 [09:44:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 93 62 47 00 23 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 10 01 00 F4 03 04 00 15 CC 15 67 B6 04 01 00 00 90 71 A8 82 74 82 F4 C8 [09:44:16]CommunicateWithHost err = 0 [09:44:16]CheckOFDResponse [09:44:16]1017 (14) - 77093643461234 [09:44:16]1041 (16) - 0000000000963346 [09:44:16]1040 (4) - 69716 [09:44:16]1012 (4) - 21.10.2024 03:35 [09:44:16]1206 (1) - 0 [09:44:16]OFD Sender: Remove packet 69716 [09:44:16]ProducePacketName [09:44:16]name=ofd_packets/00069716 [09:44:16]NVStorageDeleteData [09:44:16]Write to MH i2c: 01 00 00 6C 21 8D [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 6C 21 00 00 00 00 00 E9 0C 89 [09:44:16]RasterBufferAndPrint [09:44:16]line [09:44:16]line [09:44:16]line [09:44:16]line [09:44:16]line [09:44:16]written 0, free lines is 3320 [09:44:16]MH_Cut [09:44:16]Write to MH i2c: D1 01 00 73 21 01 66 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: D1 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: D1 01 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: D1 01 00 73 21 00 65 [09:44:16]Write to MH i2c: 01 00 00 74 21 95 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]OFD Sender: No OFD packet to send [09:44:17]*** Cut start [09:44:17]*** Partial cut [09:44:17]*** CUTSNS_PIN = 1 [09:44:17]*** CUTSNS_PIN = 0 [09:44:17]*** Brake cut motor [09:44:17]Read from MH i2c: 01 [09:44:17]MH_I2C_Read... [09:44:17]*** Stop cut motor [09:44:17]*** Cut end [09:44:17]Read from MH i2c: 01 07 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 74 21 00 00 00 00 00 FF 0F AA [09:44:17]process_action close_receipt done [09:44:17]requested_data is exist [09:44:17]produce_requested_data [09:44:17]requested_item fm.sn is exist - process it [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 11 00 00 [09:44:17]Write to MH i2c: E2 08 00 75 21 80 11 00 00 00 00 00 00 10 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 75 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [09:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:17]wFMCommunicate OK [09:44:17]requested_item fd.num is exist - process it [09:44:17]SAM_PROTO_GetFieldsCounters [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 13 00 00 [09:44:17]Write to MH i2c: E2 08 00 76 21 80 13 00 00 00 00 00 00 13 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:18]Read from MH i2c: E2 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 62 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 62 00 76 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:44:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:18]wFMCommunicate OK [09:44:18]SAM_PROTO_GetFieldsCounters done [09:44:18]requested_item shift.num is exist - process it [09:44:18]requested_item shift.opened is exist - process it [09:44:18]req_shift_opened [09:44:18]FM_GetShiftState [09:44:18]SAM_PROTO_GetShiftState [09:44:18]wFMCommunicate request_size=4 [09:44:18]MH_SAM_APDU [09:44:18]CAPDU: 80 13 01 00 [09:44:18]Write to MH i2c: E2 08 00 77 21 80 13 01 00 00 00 00 00 15 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:18]Read from MH i2c: E2 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 0E 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 0E 00 77 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 41 [09:44:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:18]wFMCommunicate OK [09:44:18]SAM_PROTO_GetShiftState done [09:44:18]FM_GetShiftState done [09:44:18]req_shift_opened done [09:44:18]requested_item shift.open_date is exist - process it [09:44:18]req_shift_open_date [09:44:18]req_shift_open_date done [09:44:18]produce_requested_data done [09:44:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69716,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:44:18]process_action_free close_receipt [09:44:18]json_value_free [09:44:18]json_value_free done [09:44:18]process_json_proto returns [09:44:18]Send response to host [09:44:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69716,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:44:18]free response buf [09:44:18]execute_script done [09:44:18]execute_script returns [09:44:18]free content buf [09:44:18]Sock 8.Close socket [09:44:18]Sock 8.Thread stoped [09:44:19]accept exits with 9 [09:44:19]New connection [09:44:19]New thread 3067313508 created [09:44:19]Thread 3067456868 joined [09:44:19]Waiting for new connection... [09:44:19] Sock 9.Parse request [09:44:19]Sock 9.Check first char [09:44:19]Sock 9.First char is OK [09:44:19]request: POST /json_proto HTTP/1.0 [09:44:19]Method: POST [09:44:19]URL: /json_proto [09:44:19]Method is POST - this is cgi request [09:44:19]url: /json_proto [09:44:19]query_string will be loaded in cgi processing [09:44:19]execute_cgi json_proto POST (null) [09:44:19]execute_cgi path=json_proto method=POST [09:44:19]POST find Content-Length [09:44:19]Host: 172.17.50.3:8080 [09:44:19]Content-Length: 678 [09:44:19]Content-Type: application/json [09:44:19] [09:44:19]POST finish read [09:44:19]Found Content-Length = 678 [09:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:19]execute_script... [09:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:19]POST & json_proto [09:44:19]process_json_proto [09:44:19]json parsed OK: [09:44:19]protocol is kg_v1.0 [09:44:19]action value=close_receipt [09:44:19]process_action close_receipt [09:44:19]cmd_close_receipt [09:44:19]MH_GetDate [09:44:19]Write to MH i2c: F0 00 00 78 21 88 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: F0 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: F0 09 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: F0 09 00 78 21 00 76 22 16 67 6B 98 1E 66 2D [09:44:19]GetLastDocTimeStamp 1729503857 [09:44:19]current date 1729503862 [09:44:19]FM_GetShiftState [09:44:19]SAM_PROTO_GetShiftState [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 13 01 00 [09:44:19]Write to MH i2c: E2 08 00 79 21 80 13 01 00 00 00 00 00 17 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0E 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0E 00 79 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 43 [09:44:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_GetShiftState done [09:44:19]FM_GetShiftState done [09:44:19]opened in 1729469703 [09:44:19]opened+sec_in_day 1729556103 [09:44:19]quantity*price = 50041 [09:44:19]sum+1 = 50042 [09:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 107 21.10.2024 09:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69717 ФПД: 236271550401286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69717&fm=236271550401286&tin=02508201610067®Number=0000000000156251&sum=50000 [09:44:20]StoreToDocumentArchive [09:44:20]shift 194 fd 69717 [09:44:20]save to /storage/0194/doc_00069717 [09:44:20]save last doc name /storage/0194/doc_00069717 to /storage/kkm_last_doc_name [09:44:20]save OK [09:44:20]Clear old archive folders... [09:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:20]tlvbuf is 00CE3B80 [09:44:20]SAM_PROTO_ClearQueue [09:44:20]wFMCommunicate request_size=4 [09:44:20]MH_SAM_APDU [09:44:20]CAPDU: 80 09 00 00 [09:44:20]Write to MH i2c: E2 08 00 86 21 80 09 00 00 00 00 00 00 19 [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:20]Read from MH i2c: E2 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: E2 03 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: E2 03 00 86 21 00 90 00 1B [09:44:20]RAPDU: 90 00 [09:44:20]wFMCommunicate OK [09:44:20]SAM_PROTO_ClearQueue done [09:44:20]KKMCreateOFDPacket [09:44:20]OFDProtocolAddRootSTLVToBuf [09:44:20]FM_MakeSignedData [09:44:20]FM_MakeSignedData [09:44:20]SAM_PROTO_SignData [09:44:20]wFMCommunicate request_size=4 [09:44:20]MH_SAM_APDU [09:44:20]CAPDU: 80 0D 01 02 [09:44:20]Write to MH i2c: E2 08 00 87 21 80 0D 01 02 00 00 00 00 21 [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=255 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 77 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 10 01 00 35 04 06 00 D6 [09:44:21]Write to MH i2c: E2 02 01 88 21 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 77 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 10 01 00 35 04 06 00 D6 00 00 29 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=10 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 02 02 05 E3 41 D5 0B 06 [09:44:21]Write to MH i2c: E2 0D 00 89 21 80 0D 02 02 05 00 E3 41 D5 0B 06 00 00 38 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 03 02 [09:44:21]Write to MH i2c: E2 08 00 8A 21 80 0D 03 02 00 00 00 00 26 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0B 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0B 00 8A 21 00 3A 23 BD 05 77 66 13 93 90 00 C9 [09:44:21]RAPDU: 3A 23 BD 05 77 66 13 93 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_SignData done [09:44:21]FM_MakeSignedData done [09:44:21]CreateOFDProtocolMessage [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 11 00 00 [09:44:21]Write to MH i2c: E2 08 00 8B 21 80 11 00 00 00 00 00 00 26 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 8B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [09:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:21]wFMCommunicate OK [09:44:21]CreateOFDProtocolMessage done [09:44:21]OFDSenderStorePacket 69717 [09:44:21]StoreOFDPacket docnum=69717 [09:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 AD 07 01 40 22 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 77 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 10 01 00 35 04 06 00 D6 E3 41 D5 0B 06 3A 23 BD 05 77 66 13 93 [09:44:21]CheckFolder [09:44:21]dirname=/storage/ofd_packets [09:44:21]CheckFolder done [09:44:21]ProducePacketName [09:44:21]name=ofd_packets/00069717 [09:44:21]NVStorageSaveData ofd_packets/00069717 [09:44:21]File name is /storage/ofd_packets/00069717 [09:44:21]Write 301 bytes [09:44:21]NVStorageSaveData done [09:44:21]OFDSenderStorePacket done [09:44:21]KKMCreateOFDPacket done [09:44:21]NVStorageSaveData kkm_last_timestamp [09:44:21]File name is /storage/kkm_last_timestamp [09:44:21]Write 4 bytes [09:44:21]NVStorageSaveData done [09:44:21]ExternCall_PrintAddStr [09:44:21]wPrintStart [09:44:21]Write to MH i2c: 01 00 00 8C 21 AD [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 07 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [09:44:21]RasterBufferAndPrint [09:44:21]line Счет N : (1)2885455 [09:44:21]line ИНН: 02508201610067 [09:44:21]line Контрольно-Кассовый Чек [09:44:21]line ПРОДАЖА [09:44:21]line ТРК (МРК, ГНК) : 22 [09:44:21]line Товар: 2710124130 [09:44:21]line Аи-92-К-5 [09:44:21]line 7.480 * 66.90 [09:44:21]line = 500.41 [09:44:21]line НДС 12% НСП 1% [09:44:21]line > о реализуемом товаре [09:44:21]line ОКРУГЛЕНИЕ: -0.41 [09:44:21]line ИТОГО: 500.00 [09:44:21]line Внесено: 500.00 [09:44:21]line СДАЧА: 0.00 [09:44:21]line НСП 1% : 4.43 [09:44:21]line НДС 12% : 53.14 [09:44:21]line Наличными: 500.00 [09:44:21]line Безнал.: 0.00 [09:44:21]line Место: АЗС № 85 "Партнер Нефть" [09:44:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:21]line СНО: Общий режим [09:44:21]line Чек 107 21.10.2024 09:44 [09:44:21]line Смена: 194 ФФД: 1.0 [09:44:21]line ЗНМ: 0300000167 [09:44:21]line РНМ: 0000000000156251 [09:44:21]line Версия ККМ: v1.0 [09:44:21]line ФМ: 0000000000963346 [09:44:21]line ФД: 69717 [09:44:21]line ФПД: 236271550401286 [09:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69717&fm=236271550401286&tin=02508201610067®Number=0000000000156251&sum=50000 [09:44:21]OFD Sender: Processing packet 69717 [packets to send 18, broken 17] [09:44:21]ProducePacketName [09:44:21]name=ofd_packets/00069717 [09:44:21]OFD Sender: To server: pG, [09:44:21]CommunicateWithHost lk.salyk.kg:30040 [09:44:21]ConnectInit lk.salyk.kg [09:44:21]written 0, free lines is 4095 [09:44:21]Connected sock=10 [09:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 AD 07 01 40 22 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 77 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 10 01 00 35 04 06 00 D6 E3 41 D5 0B 06 3A 23 BD 05 77 66 13 93 [09:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 33 E5 47 00 5D 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 10 01 00 F4 03 04 00 1A CC 15 67 B6 04 01 00 00 85 6C 12 50 FB 4E EA B3 [09:44:22]CommunicateWithHost err = 0 [09:44:22]CheckOFDResponse [09:44:22]1017 (14) - 77093643461234 [09:44:22]1041 (16) - 0000000000963346 [09:44:22]1040 (4) - 69717 [09:44:22]1012 (4) - 21.10.2024 03:35 [09:44:22]1206 (1) - 0 [09:44:22]OFD Sender: Remove packet 69717 [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00069717 [09:44:22]NVStorageDeleteData [09:44:22]Write to MH i2c: 01 00 00 B7 21 D8 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 B7 21 00 00 00 00 00 F6 0C E1 [09:44:22]RasterBufferAndPrint [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]written 0, free lines is 3342 [09:44:22]MH_Cut [09:44:22]Write to MH i2c: D1 01 00 BE 21 01 B1 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 01 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 01 00 BE 21 00 B0 [09:44:22]Write to MH i2c: 01 00 00 BF 21 E0 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]OFD Sender: No OFD packet to send [09:44:22]*** Cut start [09:44:22]*** Partial cut [09:44:22]*** CUTSNS_PIN = 1 [09:44:22]*** CUTSNS_PIN = 0 [09:44:23]*** Brake cut motor [09:44:23]Read from MH i2c: 01 [09:44:23]MH_I2C_Read... [09:44:23]*** Stop cut motor [09:44:23]*** Cut end [09:44:23]Read from MH i2c: 01 07 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 BF 21 00 00 00 00 00 FF 0F F5 [09:44:23]process_action close_receipt done [09:44:23]requested_data is exist [09:44:23]produce_requested_data [09:44:23]requested_item fm.sn is exist - process it [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 11 00 00 [09:44:23]Write to MH i2c: E2 08 00 C0 21 80 11 00 00 00 00 00 00 5B [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 17 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 17 00 C0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [09:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:23]wFMCommunicate OK [09:44:23]requested_item fd.num is exist - process it [09:44:23]SAM_PROTO_GetFieldsCounters [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 13 00 00 [09:44:23]Write to MH i2c: E2 08 00 C1 21 80 13 00 00 00 00 00 00 5E [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 62 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 62 00 C1 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_GetFieldsCounters done [09:44:23]requested_item shift.num is exist - process it [09:44:23]requested_item shift.opened is exist - process it [09:44:23]req_shift_opened [09:44:23]FM_GetShiftState [09:44:23]SAM_PROTO_GetShiftState [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 13 01 00 [09:44:23]Write to MH i2c: E2 08 00 C2 21 80 13 01 00 00 00 00 00 60 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:23]Read from MH i2c: E2 0E 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 0E 00 C2 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8C [09:44:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_GetShiftState done [09:44:23]FM_GetShiftState done [09:44:23]req_shift_opened done [09:44:23]requested_item shift.open_date is exist - process it [09:44:23]req_shift_open_date [09:44:23]req_shift_open_date done [09:44:23]produce_requested_data done [09:44:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69717,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:44:23]process_action_free close_receipt [09:44:23]json_value_free [09:44:23]json_value_free done [09:44:23]process_json_proto returns [09:44:23]Send response to host [09:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69717,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:44:23]free response buf [09:44:23]execute_script done [09:44:23]execute_script returns [09:44:23]free content buf [09:44:23]Sock 9.Close socket [09:44:23]Sock 9.Thread stoped [09:44:27]OFD Sender: No OFD packet to send [09:44:31]accept exits with 8 [09:44:31]New connection [09:44:31]New thread 3067456868 created [09:44:31]Thread 3067313508 joined [09:44:31]Waiting for new connection... [09:44:31] Sock 8.Parse request [09:44:31]Sock 8.Check first char [09:44:31]Sock 8.First char is OK [09:44:31]request: POST /json_proto HTTP/1.0 [09:44:31]Method: POST [09:44:31]URL: /json_proto [09:44:31]Method is POST - this is cgi request [09:44:31]url: /json_proto [09:44:31]query_string will be loaded in cgi processing [09:44:31]execute_cgi json_proto POST (null) [09:44:31]execute_cgi path=json_proto method=POST [09:44:31]POST find Content-Length [09:44:31]Host: 172.17.50.3:8080 [09:44:31]Content-Length: 1034 [09:44:31]Content-Type: application/json [09:44:31] [09:44:31]POST finish read [09:44:31]Found Content-Length = 1034 [09:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69715, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:31]execute_script... [09:44:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69715, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:31]POST & json_proto [09:44:31]process_json_proto [09:44:31]json parsed OK: [09:44:31]protocol is kg_v1.0 [09:44:31]action value=close_receipt [09:44:31]process_action close_receipt [09:44:31]cmd_close_receipt [09:44:31]MH_GetDate [09:44:31]Write to MH i2c: F0 00 00 C3 21 D3 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: F0 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: F0 09 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: F0 09 00 C3 21 00 82 22 16 67 6B 98 1E 66 84 [09:44:31]GetLastDocTimeStamp 1729503863 [09:44:31]current date 1729503874 [09:44:31]FM_GetShiftState [09:44:31]SAM_PROTO_GetShiftState [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 13 01 00 [09:44:31]Write to MH i2c: E2 08 00 C4 21 80 13 01 00 00 00 00 00 62 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 C4 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8E [09:44:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_GetShiftState done [09:44:31]FM_GetShiftState done [09:44:31]opened in 1729469703 [09:44:31]opened+sec_in_day 1729556103 [09:44:31]quantity*price = 500004 [09:44:31]sum+1 = 500006 [09:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 108 21.10.2024 09:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69715 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69718 ФПД: 32950823840683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094434&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69718&fm=32950823840683&tin=02508201610067®Number=0000000000156251&sum=500000 [09:44:33]StoreToDocumentArchive [09:44:33]shift 194 fd 69718 [09:44:33]save to /storage/0194/doc_00069718 [09:44:33]save last doc name /storage/0194/doc_00069718 to /storage/kkm_last_doc_name [09:44:33]save OK [09:44:33]Clear old archive folders... [09:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:44:33]tlvbuf is 00D09AD0 [09:44:33]SAM_PROTO_ClearQueue [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 09 00 00 [09:44:33]Write to MH i2c: E2 08 00 D3 21 80 09 00 00 00 00 00 00 66 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [09:44:33]RAPDU: 90 00 [09:44:33]wFMCommunicate OK [09:44:33]SAM_PROTO_ClearQueue done [09:44:33]KKMCreateOFDPacket [09:44:33]OFDProtocolAddRootSTLVToBuf [09:44:33]FM_MakeSignedData [09:44:33]FM_MakeSignedData [09:44:33]SAM_PROTO_SignData [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 0D 01 02 [09:44:33]Write to MH i2c: E2 08 00 D4 21 80 0D 01 02 00 00 00 00 6E [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [09:44:33]RAPDU: 90 00 [09:44:33]wFMCommunicate OK [09:44:33]wFMCommunicate request_size=255 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 53 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [09:44:33]Write to MH i2c: E2 02 01 D5 21 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 53 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 95 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [09:44:33]RAPDU: 90 00 [09:44:33]wFMCommunicate OK [09:44:33]wFMCommunicate request_size=35 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 10 01 00 35 04 06 00 1D F7 F6 26 6B AB [09:44:33]Write to MH i2c: E2 26 00 D6 21 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 10 01 00 35 04 06 00 1D F7 F6 26 6B AB 00 00 10 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [09:44:33]RAPDU: 90 00 [09:44:33]wFMCommunicate OK [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 0D 03 02 [09:44:33]Write to MH i2c: E2 08 00 D7 21 80 0D 03 02 00 00 00 00 73 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0B 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0B 00 D7 21 00 00 1F 9A 2D A0 4F 37 72 90 00 F2 [09:44:33]RAPDU: 00 1F 9A 2D A0 4F 37 72 90 00 [09:44:33]wFMCommunicate OK [09:44:33]SAM_PROTO_SignData done [09:44:33]FM_MakeSignedData done [09:44:33]CreateOFDProtocolMessage [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 11 00 00 [09:44:33]Write to MH i2c: E2 08 00 D8 21 80 11 00 00 00 00 00 00 73 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:33]Read from MH i2c: E2 17 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 17 00 D8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [09:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:33]wFMCommunicate OK [09:44:33]CreateOFDProtocolMessage done [09:44:33]OFDSenderStorePacket 69718 [09:44:33]StoreOFDPacket docnum=69718 [09:44:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 48 13 20 01 47 57 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 53 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 10 01 00 35 04 06 00 1D F7 F6 26 6B AB 00 1F 9A 2D A0 4F 37 72 [09:44:33]CheckFolder [09:44:33]dirname=/storage/ofd_packets [09:44:33]CheckFolder done [09:44:33]ProducePacketName [09:44:33]name=ofd_packets/00069718 [09:44:33]NVStorageSaveData ofd_packets/00069718 [09:44:33]File name is /storage/ofd_packets/00069718 [09:44:33]Write 326 bytes [09:44:33]NVStorageSaveData done [09:44:33]OFDSenderStorePacket done [09:44:33]KKMCreateOFDPacket done [09:44:33]NVStorageSaveData kkm_last_timestamp [09:44:33]File name is /storage/kkm_last_timestamp [09:44:33]Write 4 bytes [09:44:33]NVStorageSaveData done [09:44:33]ExternCall_PrintAddStr [09:44:33]wPrintStart [09:44:33]Write to MH i2c: 01 00 00 D9 21 FA [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: 01 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: 01 07 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 FF 0F 0F [09:44:33]RasterBufferAndPrint [09:44:33]line Счет N : (1)2885456 [09:44:33]line ИНН: 02508201610067 [09:44:33]line Контрольно-Кассовый Чек [09:44:33]line ВОЗВРАТ ПРОДАЖИ [09:44:33]line ТРК (МРК, ГНК) : 61 [09:44:33]line Товар: 2710194210 [09:44:33]line ДТ-К-5 [09:44:33]line 66.490 * 75.20 [09:44:33]line = 5000.05 [09:44:33]line НДС 12% НСП 1% [09:44:33]line > о реализуемом товаре [09:44:33]line ОКРУГЛЕНИЕ: -0.05 [09:44:33]line ИТОГО: 5000.00 [09:44:33]line НСП 1% : 44.25 [09:44:33]line НДС 12% : 530.98 [09:44:33]line Наличными: 5000.00 [09:44:33]line Безнал.: 0.00 [09:44:33]line Место: АЗС № 85 "Партнер Нефть" [09:44:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:44:33]line СНО: Общий режим [09:44:33]line Чек 108 21.10.2024 09:44 [09:44:33]line Смена: 194 ФФД: 1.0 [09:44:33]line ЗНМ: 0300000167 [09:44:33]line РНМ: 0000000000156251 [09:44:33]line Версия ККМ: v1.0 [09:44:33]line ФД осн.: 69715 [09:44:33]line ФМ осн.: 0000000000963346 [09:44:33]line [09:44:33]line Дисконтная программа [09:44:33]line ДТ [09:44:33]line номер 85 [09:44:33]line сэкономлено 66.49 сом [09:44:33]line ФМ: 0000000000963346 [09:44:33]line ФД: 69718 [09:44:33]line ФПД: 32950823840683 [09:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094434&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69718&fm=32950823840683&tin=02508201610067®Number=0000000000156251&sum=500000 [09:44:33]written 0, free lines is 4095 [09:44:33]OFD Sender: Processing packet 69718 [packets to send 18, broken 17] [09:44:33]ProducePacketName [09:44:33]name=ofd_packets/00069718 [09:44:33]OFD Sender: To server: pG, [09:44:33]CommunicateWithHost lk.salyk.kg:30040 [09:44:33]ConnectInit lk.salyk.kg [09:44:34]Connected sock=10 [09:44:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 48 13 20 01 47 57 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 82 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 53 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 10 01 00 35 04 06 00 1D F7 F6 26 6B AB 00 1F 9A 2D A0 4F 37 72 [09:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DC DB 47 00 2C C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 10 01 00 F4 03 04 00 27 CC 15 67 B6 04 01 00 00 A2 45 48 39 01 6C 4B F0 [09:44:34]CommunicateWithHost err = 0 [09:44:34]CheckOFDResponse [09:44:34]1017 (14) - 77093643461234 [09:44:34]1041 (16) - 0000000000963346 [09:44:34]1040 (4) - 69718 [09:44:34]1012 (4) - 21.10.2024 03:36 [09:44:34]1206 (1) - 0 [09:44:34]OFD Sender: Remove packet 69718 [09:44:34]ProducePacketName [09:44:34]name=ofd_packets/00069718 [09:44:34]NVStorageDeleteData [09:44:34]Write to MH i2c: 01 00 00 09 22 2B [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 07 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 07 00 09 22 00 00 00 00 00 AE 0C EC [09:44:34]RasterBufferAndPrint [09:44:34]line [09:44:34]line [09:44:34]line [09:44:34]line [09:44:34]line [09:44:34]written 0, free lines is 3267 [09:44:34]MH_Cut [09:44:34]Write to MH i2c: D1 01 00 10 22 01 04 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: D1 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: D1 01 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: D1 01 00 10 22 00 03 [09:44:34]Write to MH i2c: 01 00 00 11 22 33 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]OFD Sender: No OFD packet to send [09:44:35]*** Cut start [09:44:35]*** Partial cut [09:44:35]*** CUTSNS_PIN = 1 [09:44:35]*** CUTSNS_PIN = 0 [09:44:35]*** Brake cut motor [09:44:35]Read from MH i2c: 01 [09:44:35]MH_I2C_Read... [09:44:35]*** Stop cut motor [09:44:35]*** Cut end [09:44:35]Read from MH i2c: 01 07 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 11 22 00 00 00 00 00 FF 0F 48 [09:44:35]process_action close_receipt done [09:44:35]requested_data is exist [09:44:35]produce_requested_data [09:44:35]requested_item fm.sn is exist - process it [09:44:35]wFMCommunicate request_size=4 [09:44:35]MH_SAM_APDU [09:44:35]CAPDU: 80 11 00 00 [09:44:35]Write to MH i2c: E2 08 00 12 22 80 11 00 00 00 00 00 00 AE [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:35]Read from MH i2c: E2 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 17 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 17 00 12 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [09:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:44:35]wFMCommunicate OK [09:44:35]requested_item fd.num is exist - process it [09:44:35]SAM_PROTO_GetFieldsCounters [09:44:35]wFMCommunicate request_size=4 [09:44:35]MH_SAM_APDU [09:44:35]CAPDU: 80 13 00 00 [09:44:35]Write to MH i2c: E2 08 00 13 22 80 13 00 00 00 00 00 00 B1 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 62 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 62 00 13 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [09:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:36]wFMCommunicate OK [09:44:36]SAM_PROTO_GetFieldsCounters done [09:44:36]requested_item shift.num is exist - process it [09:44:36]requested_item shift.opened is exist - process it [09:44:36]req_shift_opened [09:44:36]FM_GetShiftState [09:44:36]SAM_PROTO_GetShiftState [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 13 01 00 [09:44:36]Write to MH i2c: E2 08 00 14 22 80 13 01 00 00 00 00 00 B3 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 0E 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 0E 00 14 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DF [09:44:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:44:36]wFMCommunicate OK [09:44:36]SAM_PROTO_GetShiftState done [09:44:36]FM_GetShiftState done [09:44:36]req_shift_opened done [09:44:36]requested_item shift.open_date is exist - process it [09:44:36]req_shift_open_date [09:44:36]req_shift_open_date done [09:44:36]produce_requested_data done [09:44:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69718,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:44:36]process_action_free close_receipt [09:44:36]json_value_free [09:44:36]json_value_free done [09:44:36]process_json_proto returns [09:44:36]Send response to host [09:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69718,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:44:36]free response buf [09:44:36]execute_script done [09:44:36]execute_script returns [09:44:36]free content buf [09:44:36]Sock 8.Close socket [09:44:36]Sock 8.Thread stoped [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:28]accept exits with 9 [09:46:28]New connection [09:46:28]New thread 3067313508 created [09:46:28]Thread 3067456868 joined [09:46:28]Waiting for new connection... [09:46:28] Sock 9.Parse request [09:46:28]Sock 9.Check first char [09:46:28]Sock 9.First char is OK [09:46:28]request: POST /json_proto HTTP/1.0 [09:46:28]Method: POST [09:46:28]URL: /json_proto [09:46:28]Method is POST - this is cgi request [09:46:28]url: /json_proto [09:46:28]query_string will be loaded in cgi processing [09:46:28]execute_cgi json_proto POST (null) [09:46:28]execute_cgi path=json_proto method=POST [09:46:28]POST find Content-Length [09:46:28]Host: 172.17.50.3:8080 [09:46:28]Content-Length: 678 [09:46:28]Content-Type: application/json [09:46:28] [09:46:28]POST finish read [09:46:28]Found Content-Length = 678 [09:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885457", "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" : 5.400, "sum" : 400.68, "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" ] } } [09:46:28]execute_script... [09:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885457", "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" : 5.400, "sum" : 400.68, "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" ] } } [09:46:28]POST & json_proto [09:46:28]process_json_proto [09:46:28]json parsed OK: [09:46:28]protocol is kg_v1.0 [09:46:28]action value=close_receipt [09:46:29]process_action close_receipt [09:46:29]cmd_close_receipt [09:46:29]MH_GetDate [09:46:29]Write to MH i2c: F0 00 00 15 22 26 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: F0 09 00 15 22 00 F8 22 16 67 6B 98 1E 66 4D [09:46:29]GetLastDocTimeStamp 1729503874 [09:46:29]current date 1729503992 [09:46:29]FM_GetShiftState [09:46:29]SAM_PROTO_GetShiftState [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 13 01 00 [09:46:29]Write to MH i2c: E2 08 00 16 22 80 13 01 00 00 00 00 00 B5 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 16 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E1 [09:46:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_GetShiftState done [09:46:29]FM_GetShiftState done [09:46:29]opened in 1729469703 [09:46:29]opened+sec_in_day 1729556103 [09:46:29]quantity*price = 40068 [09:46:29]sum+1 = 40069 [09:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 109 21.10.2024 09:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69719 ФПД: 187228266650337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69719&fm=187228266650337&tin=02508201610067®Number=0000000000156251&sum=40000 [09:46:30]StoreToDocumentArchive [09:46:30]shift 194 fd 69719 [09:46:30]save to /storage/0194/doc_00069719 [09:46:30]save last doc name /storage/0194/doc_00069719 to /storage/kkm_last_doc_name [09:46:30]save OK [09:46:30]Clear old archive folders... [09:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:30]tlvbuf is 00C4C280 [09:46:30]SAM_PROTO_ClearQueue [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 09 00 00 [09:46:30]Write to MH i2c: E2 08 00 23 22 80 09 00 00 00 00 00 00 B7 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 23 22 00 90 00 B9 [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_ClearQueue done [09:46:30]KKMCreateOFDPacket [09:46:30]OFDProtocolAddRootSTLVToBuf [09:46:30]FM_MakeSignedData [09:46:30]FM_MakeSignedData [09:46:30]SAM_PROTO_SignData [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 01 02 [09:46:30]Write to MH i2c: E2 08 00 24 22 80 0D 01 02 00 00 00 00 BF [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 24 22 00 90 00 BA [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=255 [09:46:30]MH_SAM_APDU [09:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 6D 00 00 00 F4 03 04 00 F8 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 10 01 00 35 04 06 00 AA [09:46:30]Write to MH i2c: E2 02 01 25 22 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 6D 00 00 00 F4 03 04 00 F8 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 10 01 00 35 04 06 00 AA 00 00 CF [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 25 22 00 90 00 BB [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=10 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 02 02 05 48 7A 53 5A E1 [09:46:30]Write to MH i2c: E2 0D 00 26 22 80 0D 02 02 05 00 48 7A 53 5A E1 00 00 1C [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 03 00 26 22 00 90 00 BC [09:46:30]RAPDU: 90 00 [09:46:30]wFMCommunicate OK [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 0D 03 02 [09:46:30]Write to MH i2c: E2 08 00 27 22 80 0D 03 02 00 00 00 00 C4 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0B 00 27 22 00 67 A2 AB EC 0D 5B D1 1F 90 00 BD [09:46:30]RAPDU: 67 A2 AB EC 0D 5B D1 1F 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_SignData done [09:46:30]FM_MakeSignedData done [09:46:30]CreateOFDProtocolMessage [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 11 00 00 [09:46:30]Write to MH i2c: E2 08 00 28 22 80 11 00 00 00 00 00 00 C4 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 28 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [09:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:30]wFMCommunicate OK [09:46:30]CreateOFDProtocolMessage done [09:46:30]OFDSenderStorePacket 69719 [09:46:30]StoreOFDPacket docnum=69719 [09:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 37 07 01 87 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 6D 00 00 00 F4 03 04 00 F8 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 10 01 00 35 04 06 00 AA 48 7A 53 5A E1 67 A2 AB EC 0D 5B D1 1F [09:46:30]CheckFolder [09:46:30]dirname=/storage/ofd_packets [09:46:30]CheckFolder done [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00069719 [09:46:30]NVStorageSaveData ofd_packets/00069719 [09:46:30]File name is /storage/ofd_packets/00069719 [09:46:30]Write 301 bytes [09:46:30]NVStorageSaveData done [09:46:30]OFDSenderStorePacket done [09:46:30]KKMCreateOFDPacket done [09:46:30]NVStorageSaveData kkm_last_timestamp [09:46:30]File name is /storage/kkm_last_timestamp [09:46:30]Write 4 bytes [09:46:30]NVStorageSaveData done [09:46:30]ExternCall_PrintAddStr [09:46:30]wPrintStart [09:46:30]Write to MH i2c: 01 00 00 29 22 4B [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 FF 0F 60 [09:46:30]RasterBufferAndPrint [09:46:30]line Счет N : (1)2885457 [09:46:30]line ИНН: 02508201610067 [09:46:30]line Контрольно-Кассовый Чек [09:46:30]line ПРОДАЖА [09:46:30]line ТРК (МРК, ГНК) : 33 [09:46:30]line Товар: 2710124500 [09:46:30]line Аи-95-К-5 [09:46:30]line 5.400 * 74.20 [09:46:30]line = 400.68 [09:46:30]line НДС 12% НСП 1% [09:46:30]line > о реализуемом товаре [09:46:30]line ОКРУГЛЕНИЕ: -0.68 [09:46:30]line ИТОГО: 400.00 [09:46:30]line Внесено: 400.00 [09:46:30]line СДАЧА: 0.00 [09:46:30]line НСП 1% : 3.55 [09:46:30]line НДС 12% : 42.55 [09:46:30]line Наличными: 400.00 [09:46:30]line Безнал.: 0.00 [09:46:30]line Место: АЗС № 85 "Партнер Нефть" [09:46:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:46:30]line СНО: Общий режим [09:46:30]line Чек 109 21.10.2024 09:46 [09:46:30]line Смена: 194 ФФД: 1.0 [09:46:30]line ЗНМ: 0300000167 [09:46:30]line РНМ: 0000000000156251 [09:46:30]line Версия ККМ: v1.0 [09:46:30]line ФМ: 0000000000963346 [09:46:30]line ФД: 69719 [09:46:30]line ФПД: 187228266650337 [09:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69719&fm=187228266650337&tin=02508201610067®Number=0000000000156251&sum=40000 [09:46:30]OFD Sender: Processing packet 69719 [packets to send 18, broken 17] [09:46:30]ProducePacketName [09:46:30]name=ofd_packets/00069719 [09:46:30]OFD Sender: To server: pG, [09:46:30]CommunicateWithHost lk.salyk.kg:30040 [09:46:30]ConnectInit lk.salyk.kg [09:46:30]written 0, free lines is 4095 [09:46:31]Connected sock=10 [09:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 37 07 01 87 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 6D 00 00 00 F4 03 04 00 F8 22 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 10 01 00 35 04 06 00 AA 48 7A 53 5A E1 67 A2 AB EC 0D 5B D1 1F [09:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6A 10 47 00 66 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 10 01 00 F4 03 04 00 9C CC 15 67 B6 04 01 00 00 88 F1 22 4D B0 2C E9 BF [09:46:31]CommunicateWithHost err = 0 [09:46:31]CheckOFDResponse [09:46:31]1017 (14) - 77093643461234 [09:46:31]1041 (16) - 0000000000963346 [09:46:31]1040 (4) - 69719 [09:46:31]1012 (4) - 21.10.2024 03:38 [09:46:31]1206 (1) - 0 [09:46:31]OFD Sender: Remove packet 69719 [09:46:31]ProducePacketName [09:46:31]name=ofd_packets/00069719 [09:46:31]NVStorageDeleteData [09:46:31]Write to MH i2c: 01 00 00 54 22 76 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: 01 07 00 54 22 00 00 00 00 00 F3 0C 7C [09:46:31]RasterBufferAndPrint [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]line [09:46:31]written 0, free lines is 3321 [09:46:31]MH_Cut [09:46:31]Write to MH i2c: D1 01 00 5B 22 01 4F [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 01 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: D1 01 00 5B 22 00 4E [09:46:31]Write to MH i2c: 01 00 00 5C 22 7E [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]OFD Sender: No OFD packet to send [09:46:32]*** Cut start [09:46:32]*** Partial cut [09:46:32]*** CUTSNS_PIN = 1 [09:46:32]*** CUTSNS_PIN = 0 [09:46:32]*** Brake cut motor [09:46:32]Read from MH i2c: 01 [09:46:32]MH_I2C_Read... [09:46:32]*** Stop cut motor [09:46:32]*** Cut end [09:46:32]Read from MH i2c: 01 07 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: 01 07 00 5C 22 00 00 00 00 00 FF 0F 93 [09:46:32]process_action close_receipt done [09:46:32]requested_data is exist [09:46:32]produce_requested_data [09:46:32]requested_item fm.sn is exist - process it [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 11 00 00 [09:46:32]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:32]Read from MH i2c: E2 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 17 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [09:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:46:32]wFMCommunicate OK [09:46:32]requested_item fd.num is exist - process it [09:46:32]SAM_PROTO_GetFieldsCounters [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 13 00 00 [09:46:32]Write to MH i2c: E2 08 00 5E 22 80 13 00 00 00 00 00 00 FC [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:32]Read from MH i2c: E2 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 62 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 62 00 5E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [09:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:32]wFMCommunicate OK [09:46:32]SAM_PROTO_GetFieldsCounters done [09:46:32]requested_item shift.num is exist - process it [09:46:32]requested_item shift.opened is exist - process it [09:46:32]req_shift_opened [09:46:32]FM_GetShiftState [09:46:32]SAM_PROTO_GetShiftState [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 13 01 00 [09:46:32]Write to MH i2c: E2 08 00 5F 22 80 13 01 00 00 00 00 00 FE [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0E 00 5F 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2A [09:46:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_GetShiftState done [09:46:33]FM_GetShiftState done [09:46:33]req_shift_opened done [09:46:33]requested_item shift.open_date is exist - process it [09:46:33]req_shift_open_date [09:46:33]req_shift_open_date done [09:46:33]produce_requested_data done [09:46:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69719,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:46:33]process_action_free close_receipt [09:46:33]json_value_free [09:46:33]json_value_free done [09:46:33]process_json_proto returns [09:46:33]Send response to host [09:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69719,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:46:33]free response buf [09:46:33]execute_script done [09:46:33]execute_script returns [09:46:33]free content buf [09:46:33]Sock 9.Close socket [09:46:33]Sock 9.Thread stoped [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:24]accept exits with 8 [09:47:24]New connection [09:47:24]New thread 3067456868 created [09:47:24]Thread 3067313508 joined [09:47:24]Waiting for new connection... [09:47:24] Sock 8.Parse request [09:47:24]Sock 8.Check first char [09:47:24]Sock 8.First char is OK [09:47:24]request: POST /json_proto HTTP/1.0 [09:47:24]Method: POST [09:47:24]URL: /json_proto [09:47:24]Method is POST - this is cgi request [09:47:24]url: /json_proto [09:47:24]query_string will be loaded in cgi processing [09:47:24]execute_cgi json_proto POST (null) [09:47:24]execute_cgi path=json_proto method=POST [09:47:24]POST find Content-Length [09:47:24]Host: 172.17.50.3:8080 [09:47:24]Content-Length: 752 [09:47:24]Content-Type: application/json [09:47:24] [09:47:24]POST finish read [09:47:24]Found Content-Length = 752 [09:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:24]execute_script... [09:47: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)2885459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100988", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:24]POST & json_proto [09:47:24]process_json_proto [09:47:24]json parsed OK: [09:47:24]protocol is kg_v1.0 [09:47:24]action value=close_receipt [09:47:24]process_action close_receipt [09:47:24]cmd_close_receipt [09:47:24]MH_GetDate [09:47:24]Write to MH i2c: F0 00 00 60 22 71 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 09 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 09 00 60 22 00 2F 23 16 67 6B 98 1E 66 D0 [09:47:24]GetLastDocTimeStamp 1729503992 [09:47:24]current date 1729504047 [09:47:24]FM_GetShiftState [09:47:24]SAM_PROTO_GetShiftState [09:47:24]wFMCommunicate request_size=4 [09:47:24]MH_SAM_APDU [09:47:24]CAPDU: 80 13 01 00 [09:47:24]Write to MH i2c: E2 08 00 61 22 80 13 01 00 00 00 00 00 00 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:24]Read from MH i2c: E2 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0E 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0E 00 61 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2C [09:47:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:47:24]wFMCommunicate OK [09:47:24]SAM_PROTO_GetShiftState done [09:47:24]FM_GetShiftState done [09:47:24]opened in 1729469703 [09:47:24]opened+sec_in_day 1729556103 [09:47:24]quantity*price = 0 [09:47:24]sum+1 = 1 [09:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 110 21.10.2024 09:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100988 ФМ: 0000000000963346 ФД: 69720 ФПД: 265222196224465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69720&fm=265222196224465&tin=02508201610067®Number=0000000000156251&sum=0 [09:47:25]StoreToDocumentArchive [09:47:25]shift 194 fd 69720 [09:47:25]save to /storage/0194/doc_00069720 [09:47:25]save last doc name /storage/0194/doc_00069720 to /storage/kkm_last_doc_name [09:47:25]save OK [09:47:25]Clear old archive folders... [09:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:25]tlvbuf is 00CA9620 [09:47:25]SAM_PROTO_ClearQueue [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 09 00 00 [09:47:25]Write to MH i2c: E2 08 00 6E 22 80 09 00 00 00 00 00 00 02 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 6E 22 00 90 00 04 [09:47:25]RAPDU: 90 00 [09:47:25]wFMCommunicate OK [09:47:25]SAM_PROTO_ClearQueue done [09:47:25]KKMCreateOFDPacket [09:47:25]OFDProtocolAddRootSTLVToBuf [09:47:25]FM_MakeSignedData [09:47:25]FM_MakeSignedData [09:47:25]SAM_PROTO_SignData [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 0D 01 02 [09:47:25]Write to MH i2c: E2 08 00 6F 22 80 0D 01 02 00 00 00 00 0A [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 6F 22 00 90 00 05 [09:47:25]RAPDU: 90 00 [09:47:25]wFMCommunicate OK [09:47:25]wFMCommunicate request_size=255 [09:47:25]MH_SAM_APDU [09:47: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 2F 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 10 01 00 35 04 06 00 F1 37 DA CA [09:47:25]Write to MH i2c: E2 02 01 70 22 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 2F 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 10 01 00 35 04 06 00 F1 37 DA CA 00 00 CC [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [09:47:25]RAPDU: 90 00 [09:47:25]wFMCommunicate OK [09:47:25]wFMCommunicate request_size=7 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 0D 02 02 02 E1 D1 [09:47:25]Write to MH i2c: E2 0A 00 71 22 80 0D 02 02 02 00 E1 D1 00 00 C3 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [09:47:25]RAPDU: 90 00 [09:47:25]wFMCommunicate OK [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 0D 03 02 [09:47:25]Write to MH i2c: E2 08 00 72 22 80 0D 03 02 00 00 00 00 0F [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0B 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 0B 00 72 22 00 D7 82 6F 39 B0 EB 42 E9 90 00 D7 [09:47:25]RAPDU: D7 82 6F 39 B0 EB 42 E9 90 00 [09:47:25]wFMCommunicate OK [09:47:25]SAM_PROTO_SignData done [09:47:25]FM_MakeSignedData done [09:47:25]CreateOFDProtocolMessage [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 11 00 00 [09:47:25]Write to MH i2c: E2 08 00 73 22 80 11 00 00 00 00 00 00 0F [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:25]Read from MH i2c: E2 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 17 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: E2 17 00 73 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [09:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:47:25]wFMCommunicate OK [09:47:25]CreateOFDProtocolMessage done [09:47:25]OFDSenderStorePacket 69720 [09:47:25]StoreOFDPacket docnum=69720 [09:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 27 FD 04 01 03 B3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 2F 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 10 01 00 35 04 06 00 F1 37 DA CA E1 D1 D7 82 6F 39 B0 EB 42 E9 [09:47:25]CheckFolder [09:47:25]dirname=/storage/ofd_packets [09:47:25]CheckFolder done [09:47:25]ProducePacketName [09:47:25]name=ofd_packets/00069720 [09:47:25]NVStorageSaveData ofd_packets/00069720 [09:47:25]File name is /storage/ofd_packets/00069720 [09:47:25]Write 298 bytes [09:47:25]NVStorageSaveData done [09:47:25]OFDSenderStorePacket done [09:47:25]KKMCreateOFDPacket done [09:47:25]NVStorageSaveData kkm_last_timestamp [09:47:25]File name is /storage/kkm_last_timestamp [09:47:25]Write 4 bytes [09:47:25]NVStorageSaveData done [09:47:25]ExternCall_PrintAddStr [09:47:25]wPrintStart [09:47:25]Write to MH i2c: 01 00 00 74 22 96 [09:47:25]Write i2c OK [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: 01 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: 01 07 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: 01 07 00 74 22 00 00 00 00 00 FF 0F AB [09:47:25]RasterBufferAndPrint [09:47:25]line Счет N : (1)2885459 [09:47:25]line ИНН: 02508201610067 [09:47:25]line Контрольно-Кассовый Чек [09:47:25]line ПРОДАЖА [09:47:25]line ТРК (МРК, ГНК) : 51 [09:47:25]line Товар: 2710194210 [09:47:25]line ДТ-К-5 [09:47:25]line 10.000 * 0.00 [09:47:25]line = 0.00 [09:47:25]line НДС 12% НСП 1% [09:47:25]line > о реализуемом товаре [09:47:25]line ИТОГО: 0.00 [09:47:25]line НСП 1% : 0.00 [09:47:25]line НДС 12% : 0.00 [09:47:25]line Наличными: 0.00 [09:47:25]line Безнал.: 0.00 [09:47:25]line Место: АЗС № 85 "Партнер Нефть" [09:47:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:47:25]line СНО: Общий режим [09:47:25]line Чек 110 21.10.2024 09:47 [09:47:25]line Смена: 194 ФФД: 1.0 [09:47:25]line ЗНМ: 0300000167 [09:47:25]line РНМ: 0000000000156251 [09:47:25]line Версия ККМ: v1.0 [09:47:25]line Талоны: ТК ГПНА Online [09:47:25]line 30100988 [09:47:25]line ФМ: 0000000000963346 [09:47:25]line ФД: 69720 [09:47:25]line ФПД: 265222196224465 [09:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69720&fm=265222196224465&tin=02508201610067®Number=0000000000156251&sum=0 [09:47:26]OFD Sender: Processing packet 69720 [packets to send 18, broken 17] [09:47:26]ProducePacketName [09:47:26]name=ofd_packets/00069720 [09:47:26]OFD Sender: To server: pG, [09:47:26]CommunicateWithHost lk.salyk.kg:30040 [09:47:26]ConnectInit lk.salyk.kg [09:47:26]written 0, free lines is 4095 [09:47:26]Connected sock=10 [09:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 27 FD 04 01 03 B3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 2F 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 10 01 00 35 04 06 00 F1 37 DA CA E1 D1 D7 82 6F 39 B0 EB 42 E9 [09:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 47 57 47 00 35 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 39 36 33 33 34 36 10 04 04 00 58 10 01 00 F4 03 04 00 D3 CC 15 67 B6 04 01 00 00 12 1E 3C 2A BF BF 75 96 [09:47:26]CommunicateWithHost err = 0 [09:47:26]CheckOFDResponse [09:47:26]1017 (14) - 77093643461234 [09:47:26]1041 (16) - 0000000000963346 [09:47:26]1040 (4) - 69720 [09:47:26]1012 (4) - 21.10.2024 03:38 [09:47:26]1206 (1) - 0 [09:47:26]OFD Sender: Remove packet 69720 [09:47:26]ProducePacketName [09:47:26]name=ofd_packets/00069720 [09:47:26]NVStorageDeleteData [09:47:26]Write to MH i2c: 01 00 00 9E 22 C0 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FD 0C D0 [09:47:26]RasterBufferAndPrint [09:47:26]line [09:47:26]line [09:47:26]line [09:47:26]line [09:47:26]line [09:47:26]written 0, free lines is 3334 [09:47:26]MH_Cut [09:47:26]Write to MH i2c: D1 01 00 A5 22 01 99 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: D1 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: D1 01 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: D1 01 00 A5 22 00 98 [09:47:26]Write to MH i2c: 01 00 00 A6 22 C8 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]OFD Sender: No OFD packet to send [09:47:27]*** Cut start [09:47:27]*** Partial cut [09:47:27]*** CUTSNS_PIN = 1 [09:47:27]*** CUTSNS_PIN = 0 [09:47:27]*** Brake cut motor [09:47:27]Read from MH i2c: 01 [09:47:27]MH_I2C_Read... [09:47:27]*** Stop cut motor [09:47:27]*** Cut end [09:47:27]Read from MH i2c: 01 07 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 A6 22 00 00 00 00 00 FF 0F DD [09:47:27]process_action close_receipt done [09:47:27]requested_data is exist [09:47:27]produce_requested_data [09:47:27]requested_item fm.sn is exist - process it [09:47:27]wFMCommunicate request_size=4 [09:47:27]MH_SAM_APDU [09:47:27]CAPDU: 80 11 00 00 [09:47:27]Write to MH i2c: E2 08 00 A7 22 80 11 00 00 00 00 00 00 43 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:27]Read from MH i2c: E2 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 17 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 17 00 A7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [09:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:47:27]wFMCommunicate OK [09:47:27]requested_item fd.num is exist - process it [09:47:27]SAM_PROTO_GetFieldsCounters [09:47:27]wFMCommunicate request_size=4 [09:47:27]MH_SAM_APDU [09:47:27]CAPDU: 80 13 00 00 [09:47:27]Write to MH i2c: E2 08 00 A8 22 80 13 00 00 00 00 00 00 46 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 62 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 62 00 A8 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_GetFieldsCounters done [09:47:28]requested_item shift.num is exist - process it [09:47:28]requested_item shift.opened is exist - process it [09:47:28]req_shift_opened [09:47:28]FM_GetShiftState [09:47:28]SAM_PROTO_GetShiftState [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 13 01 00 [09:47:28]Write to MH i2c: E2 08 00 A9 22 80 13 01 00 00 00 00 00 48 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:28]Read from MH i2c: E2 0E 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0E 00 A9 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 74 [09:47:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_GetShiftState done [09:47:28]FM_GetShiftState done [09:47:28]req_shift_opened done [09:47:28]requested_item shift.open_date is exist - process it [09:47:28]req_shift_open_date [09:47:28]req_shift_open_date done [09:47:28]produce_requested_data done [09:47:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69720,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:47:28]process_action_free close_receipt [09:47:28]json_value_free [09:47:28]json_value_free done [09:47:28]process_json_proto returns [09:47:28]Send response to host [09:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69720,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:47:28]free response buf [09:47:28]execute_script done [09:47:28]execute_script returns [09:47:28]free content buf [09:47:28]Sock 8.Close socket [09:47:28]Sock 8.Thread stoped [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:08]accept exits with 9 [09:48:08]New connection [09:48:08]New thread 3067313508 created [09:48:08]Thread 3067456868 joined [09:48:08]Waiting for new connection... [09:48:08] Sock 9.Parse request [09:48:08]Sock 9.Check first char [09:48:08]Sock 9.First char is OK [09:48:08]request: POST /json_proto HTTP/1.0 [09:48:08]Method: POST [09:48:08]URL: /json_proto [09:48:08]Method is POST - this is cgi request [09:48:08]url: /json_proto [09:48:08]query_string will be loaded in cgi processing [09:48:08]execute_cgi json_proto POST (null) [09:48:08]execute_cgi path=json_proto method=POST [09:48:08]POST find Content-Length [09:48:08]Host: 172.17.50.3:8080 [09:48:08]Content-Length: 686 [09:48:08]Content-Type: application/json [09:48:08] [09:48:08]POST finish read [09:48:08]Found Content-Length = 686 [09:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:48:08]execute_script... [09:48: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)2885458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:48:08]POST & json_proto [09:48:08]process_json_proto [09:48:08]json parsed OK: [09:48:08]protocol is kg_v1.0 [09:48:08]action value=close_receipt [09:48:08]process_action close_receipt [09:48:08]cmd_close_receipt [09:48:08]MH_GetDate [09:48:08]Write to MH i2c: F0 00 00 AA 22 BB [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: F0 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: F0 09 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: F0 09 00 AA 22 00 5B 23 16 67 6B 98 1E 66 46 [09:48:08]GetLastDocTimeStamp 1729504047 [09:48:08]current date 1729504091 [09:48:08]FM_GetShiftState [09:48:08]SAM_PROTO_GetShiftState [09:48:08]wFMCommunicate request_size=4 [09:48:08]MH_SAM_APDU [09:48:08]CAPDU: 80 13 01 00 [09:48:08]Write to MH i2c: E2 08 00 AB 22 80 13 01 00 00 00 00 00 4A [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:08]Read from MH i2c: E2 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: E2 0E 00 AB 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 76 [09:48:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:48:08]wFMCommunicate OK [09:48:08]SAM_PROTO_GetShiftState done [09:48:08]FM_GetShiftState done [09:48:08]opened in 1729469703 [09:48:08]opened+sec_in_day 1729556103 [09:48:08]quantity*price = 100011 [09:48:08]sum+1 = 100013 [09:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 111 21.10.2024 09:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69721 ФПД: 84693827150770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094811&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69721&fm=84693827150770&tin=02508201610067®Number=0000000000156251&sum=100000 [09:48:09]StoreToDocumentArchive [09:48:09]shift 194 fd 69721 [09:48:09]save to /storage/0194/doc_00069721 [09:48:09]save last doc name /storage/0194/doc_00069721 to /storage/kkm_last_doc_name [09:48:09]save OK [09:48:09]Clear old archive folders... [09:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:48:09]tlvbuf is 00C78860 [09:48:09]SAM_PROTO_ClearQueue [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 09 00 00 [09:48:09]Write to MH i2c: E2 08 00 B8 22 80 09 00 00 00 00 00 00 4C [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 B8 22 00 90 00 4E [09:48:09]RAPDU: 90 00 [09:48:09]wFMCommunicate OK [09:48:09]SAM_PROTO_ClearQueue done [09:48:09]KKMCreateOFDPacket [09:48:09]OFDProtocolAddRootSTLVToBuf [09:48:09]FM_MakeSignedData [09:48:09]FM_MakeSignedData [09:48:09]SAM_PROTO_SignData [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 0D 01 02 [09:48:09]Write to MH i2c: E2 08 00 B9 22 80 0D 01 02 00 00 00 00 54 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 B9 22 00 90 00 4F [09:48:09]RAPDU: 90 00 [09:48:09]wFMCommunicate OK [09:48:09]wFMCommunicate request_size=255 [09:48:09]MH_SAM_APDU [09:48:09]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5B 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 10 01 00 35 04 06 00 4D 07 [09:48:09]Write to MH i2c: E2 02 01 BA 22 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5B 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 10 01 00 35 04 06 00 4D 07 00 00 A2 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 BA 22 00 90 00 50 [09:48:09]RAPDU: 90 00 [09:48:09]wFMCommunicate OK [09:48:09]wFMCommunicate request_size=9 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 0D 02 02 04 51 7B 63 B2 [09:48:09]Write to MH i2c: E2 0C 00 BB 22 80 0D 02 02 04 00 51 7B 63 B2 00 00 40 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 03 00 BB 22 00 90 00 51 [09:48:09]RAPDU: 90 00 [09:48:09]wFMCommunicate OK [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 0D 03 02 [09:48:09]Write to MH i2c: E2 08 00 BC 22 80 0D 03 02 00 00 00 00 59 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 0B 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 0B 00 BC 22 00 CB 67 65 CE CD F5 98 C7 90 00 E0 [09:48:09]RAPDU: CB 67 65 CE CD F5 98 C7 90 00 [09:48:09]wFMCommunicate OK [09:48:09]SAM_PROTO_SignData done [09:48:09]FM_MakeSignedData done [09:48:09]CreateOFDProtocolMessage [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 11 00 00 [09:48:09]Write to MH i2c: E2 08 00 BD 22 80 11 00 00 00 00 00 00 59 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:10]Read from MH i2c: E2 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: E2 17 00 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: E2 17 00 BD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [09:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:10]wFMCommunicate OK [09:48:10]CreateOFDProtocolMessage done [09:48:10]OFDSenderStorePacket 69721 [09:48:10]StoreOFDPacket docnum=69721 [09:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 77 E7 06 01 71 A4 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5B 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 10 01 00 35 04 06 00 4D 07 51 7B 63 B2 CB 67 65 CE CD F5 98 C7 [09:48:10]CheckFolder [09:48:10]dirname=/storage/ofd_packets [09:48:10]CheckFolder done [09:48:10]ProducePacketName [09:48:10]name=ofd_packets/00069721 [09:48:10]NVStorageSaveData ofd_packets/00069721 [09:48:10]File name is /storage/ofd_packets/00069721 [09:48:10]Write 300 bytes [09:48:10]NVStorageSaveData done [09:48:10]OFDSenderStorePacket done [09:48:10]KKMCreateOFDPacket done [09:48:10]NVStorageSaveData kkm_last_timestamp [09:48:10]File name is /storage/kkm_last_timestamp [09:48:10]Write 4 bytes [09:48:10]NVStorageSaveData done [09:48:10]ExternCall_PrintAddStr [09:48:10]wPrintStart [09:48:10]Write to MH i2c: 01 00 00 BE 22 E0 [09:48:10]Write i2c OK [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 07 00 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 FF 0F F5 [09:48:10]RasterBufferAndPrint [09:48:10]line Счет N : (1)2885458 [09:48:10]line ИНН: 02508201610067 [09:48:10]line Контрольно-Кассовый Чек [09:48:10]line ПРОДАЖА [09:48:10]line ТРК (МРК, ГНК) : 71 [09:48:10]line Товар: 2711129700 [09:48:10]line ГАЗ-К-3 [09:48:10]line 25.710 * 38.90 [09:48:10]line = 1000.12 [09:48:10]line НДС 12% НСП 1% [09:48:10]line > о реализуемом товаре [09:48:10]line ОКРУГЛЕНИЕ: -0.12 [09:48:10]line ИТОГО: 1000.00 [09:48:10]line Внесено: 1000.00 [09:48:10]line СДАЧА: 0.00 [09:48:10]line НСП 1% : 8.85 [09:48:10]line НДС 12% : 106.21 [09:48:10]line Наличными: 1000.00 [09:48:10]line Безнал.: 0.00 [09:48:10]line Место: АЗС № 85 "Партнер Нефть" [09:48:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:48:10]line СНО: Общий режим [09:48:10]line Чек 111 21.10.2024 09:48 [09:48:10]line Смена: 194 ФФД: 1.0 [09:48:10]line ЗНМ: 0300000167 [09:48:10]line РНМ: 0000000000156251 [09:48:10]line Версия ККМ: v1.0 [09:48:10]line ФМ: 0000000000963346 [09:48:10]line ФД: 69721 [09:48:10]line ФПД: 84693827150770 [09:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094811&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69721&fm=84693827150770&tin=02508201610067®Number=0000000000156251&sum=100000 [09:48:10]OFD Sender: Processing packet 69721 [packets to send 18, broken 17] [09:48:10]ProducePacketName [09:48:10]name=ofd_packets/00069721 [09:48:10]OFD Sender: To server: pG, [09:48:10]CommunicateWithHost lk.salyk.kg:30040 [09:48:10]ConnectInit lk.salyk.kg [09:48:10]written 0, free lines is 4095 [09:48:10]Connected sock=11 [09:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 77 E7 06 01 71 A4 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5B 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 10 01 00 35 04 06 00 4D 07 51 7B 63 B2 CB 67 65 CE CD F5 98 C7 [09:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 92 CA 47 00 5F A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 10 01 00 F4 03 04 00 FF CC 15 67 B6 04 01 00 00 9C 22 61 F4 A4 3F 8D 1B [09:48:10]CommunicateWithHost err = 0 [09:48:10]CheckOFDResponse [09:48:10]1017 (14) - 77093643461234 [09:48:10]1041 (16) - 0000000000963346 [09:48:10]1040 (4) - 69721 [09:48:10]1012 (4) - 21.10.2024 03:39 [09:48:10]1206 (1) - 0 [09:48:10]OFD Sender: Remove packet 69721 [09:48:10]ProducePacketName [09:48:10]name=ofd_packets/00069721 [09:48:10]NVStorageDeleteData [09:48:10]Write to MH i2c: 01 00 00 E9 22 0B [09:48:10]Write i2c OK [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 07 00 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: 01 07 00 E9 22 00 00 00 00 00 EC 0C 0A [09:48:10]RasterBufferAndPrint [09:48:10]line [09:48:10]line [09:48:10]line [09:48:10]line [09:48:10]line [09:48:10]written 0, free lines is 3314 [09:48:10]MH_Cut [09:48:10]Write to MH i2c: D1 01 00 F0 22 01 E4 [09:48:10]Write i2c OK [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: D1 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: D1 01 00 [09:48:10]MH_I2C_Read... [09:48:10]Read from MH i2c: D1 01 00 F0 22 00 E3 [09:48:10]Write to MH i2c: 01 00 00 F1 22 13 [09:48:10]Write i2c OK [09:48:10]MH_I2C_Read... [09:48:11]OFD Sender: No OFD packet to send [09:48:11]*** Cut start [09:48:11]*** Partial cut [09:48:11]*** CUTSNS_PIN = 1 [09:48:11]*** CUTSNS_PIN = 0 [09:48:11]*** Brake cut motor [09:48:12]Read from MH i2c: 01 [09:48:12]MH_I2C_Read... [09:48:12]*** Stop cut motor [09:48:12]*** Cut end [09:48:12]Read from MH i2c: 01 07 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: 01 07 00 F1 22 00 00 00 00 00 FF 0F 28 [09:48:12]process_action close_receipt done [09:48:12]requested_data is exist [09:48:12]produce_requested_data [09:48:12]requested_item fm.sn is exist - process it [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 11 00 00 [09:48:12]Write to MH i2c: E2 08 00 F2 22 80 11 00 00 00 00 00 00 8E [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 17 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 17 00 F2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [09:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:48:12]wFMCommunicate OK [09:48:12]requested_item fd.num is exist - process it [09:48:12]SAM_PROTO_GetFieldsCounters [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 13 00 00 [09:48:12]Write to MH i2c: E2 08 00 F3 22 80 13 00 00 00 00 00 00 91 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 62 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 62 00 F3 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:12]wFMCommunicate OK [09:48:12]SAM_PROTO_GetFieldsCounters done [09:48:12]requested_item shift.num is exist - process it [09:48:12]requested_item shift.opened is exist - process it [09:48:12]req_shift_opened [09:48:12]FM_GetShiftState [09:48:12]SAM_PROTO_GetShiftState [09:48:12]wFMCommunicate request_size=4 [09:48:12]MH_SAM_APDU [09:48:12]CAPDU: 80 13 01 00 [09:48:12]Write to MH i2c: E2 08 00 F4 22 80 13 01 00 00 00 00 00 93 [09:48:12]Write i2c OK [09:48:12]MH_I2C_Read... [09:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:12]Read from MH i2c: E2 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 0E 00 [09:48:12]MH_I2C_Read... [09:48:12]Read from MH i2c: E2 0E 00 F4 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [09:48:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:48:12]wFMCommunicate OK [09:48:12]SAM_PROTO_GetShiftState done [09:48:12]FM_GetShiftState done [09:48:12]req_shift_opened done [09:48:12]requested_item shift.open_date is exist - process it [09:48:12]req_shift_open_date [09:48:12]req_shift_open_date done [09:48:12]produce_requested_data done [09:48:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69721,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:48:12]process_action_free close_receipt [09:48:12]json_value_free [09:48:12]json_value_free done [09:48:12]process_json_proto returns [09:48:12]Send response to host [09:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69721,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:48:12]free response buf [09:48:12]execute_script done [09:48:12]execute_script returns [09:48:12]free content buf [09:48:12]Sock 9.Close socket [09:48:12]Sock 9.Thread stoped [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:04]accept exits with 8 [09:49:04]New connection [09:49:04]New thread 3067456868 created [09:49:04]Thread 3067313508 joined [09:49:04]Waiting for new connection... [09:49:04] Sock 8.Parse request [09:49:04]Sock 8.Check first char [09:49:04]Sock 8.First char is OK [09:49:04]request: POST /json_proto HTTP/1.0 [09:49:04]Method: POST [09:49:04]URL: /json_proto [09:49:04]Method is POST - this is cgi request [09:49:04]url: /json_proto [09:49:04]query_string will be loaded in cgi processing [09:49:04]execute_cgi json_proto POST (null) [09:49:04]execute_cgi path=json_proto method=POST [09:49:04]POST find Content-Length [09:49:04]Host: 172.17.50.3:8080 [09:49:04]Content-Length: 683 [09:49:04]Content-Type: application/json [09:49:04] [09:49:04]POST finish read [09:49:04]Found Content-Length = 683 [09:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.440, "sum" : 1501.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1501.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:04]execute_script... [09:49: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)2885461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.440, "sum" : 1501.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1501.00, "total" : 1501.00, "payments": [ { "type": 0, "sum" : 1501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:04]POST & json_proto [09:49:04]process_json_proto [09:49:04]json parsed OK: [09:49:04]protocol is kg_v1.0 [09:49:04]action value=close_receipt [09:49:04]process_action close_receipt [09:49:04]cmd_close_receipt [09:49:04]MH_GetDate [09:49:04]Write to MH i2c: F0 00 00 F5 22 06 [09:49:04]Write i2c OK [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: F0 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: F0 09 00 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: F0 09 00 F5 22 00 93 23 16 67 6B 98 1E 66 C9 [09:49:04]GetLastDocTimeStamp 1729504091 [09:49:04]current date 1729504147 [09:49:04]FM_GetShiftState [09:49:04]SAM_PROTO_GetShiftState [09:49:04]wFMCommunicate request_size=4 [09:49:04]MH_SAM_APDU [09:49:04]CAPDU: 80 13 01 00 [09:49:04]Write to MH i2c: E2 08 00 F6 22 80 13 01 00 00 00 00 00 95 [09:49:04]Write i2c OK [09:49:04]MH_I2C_Read... [09:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:04]Read from MH i2c: E2 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: E2 0E 00 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: E2 0E 00 F6 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [09:49:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:49:04]wFMCommunicate OK [09:49:04]SAM_PROTO_GetShiftState done [09:49:04]FM_GetShiftState done [09:49:04]opened in 1729469703 [09:49:04]opened+sec_in_day 1729556103 [09:49:04]quantity*price = 150123 [09:49:04]sum+1 = 150125 [09:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1501.00 Внесено: 1501.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.42 Наличными: 1501.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 112 21.10.2024 09:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69722 ФПД: 161421820641377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69722&fm=161421820641377&tin=02508201610067®Number=0000000000156251&sum=150100 [09:49:05]StoreToDocumentArchive [09:49:05]shift 194 fd 69722 [09:49:05]save to /storage/0194/doc_00069722 [09:49:05]save last doc name /storage/0194/doc_00069722 to /storage/kkm_last_doc_name [09:49:05]save OK [09:49:05]Clear old archive folders... [09:49:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:05]tlvbuf is 00C8B360 [09:49:05]SAM_PROTO_ClearQueue [09:49:05]wFMCommunicate request_size=4 [09:49:05]MH_SAM_APDU [09:49:05]CAPDU: 80 09 00 00 [09:49:05]Write to MH i2c: E2 08 00 03 23 80 09 00 00 00 00 00 00 98 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:05]Read from MH i2c: E2 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 03 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 03 00 03 23 00 90 00 9A [09:49:05]RAPDU: 90 00 [09:49:05]wFMCommunicate OK [09:49:05]SAM_PROTO_ClearQueue done [09:49:05]KKMCreateOFDPacket [09:49:05]OFDProtocolAddRootSTLVToBuf [09:49:05]FM_MakeSignedData [09:49:05]FM_MakeSignedData [09:49:05]SAM_PROTO_SignData [09:49:05]wFMCommunicate request_size=4 [09:49:05]MH_SAM_APDU [09:49:05]CAPDU: 80 0D 01 02 [09:49:05]Write to MH i2c: E2 08 00 04 23 80 0D 01 02 00 00 00 00 A0 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:05]Read from MH i2c: E2 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 03 00 [09:49:05]MH_I2C_Read... [09:49:05]Read from MH i2c: E2 03 00 04 23 00 90 00 9B [09:49:05]RAPDU: 90 00 [09:49:05]wFMCommunicate OK [09:49:05]wFMCommunicate request_size=255 [09:49:05]MH_SAM_APDU [09:49: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 A8 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 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 46 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 93 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 10 01 00 35 04 06 00 92 [09:49:05]Write to MH i2c: E2 02 01 05 23 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 A8 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 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 46 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 93 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 10 01 00 35 04 06 00 92 00 00 F2 [09:49:05]Write i2c OK [09:49:05]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 03 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 03 00 05 23 00 90 00 9C [09:49:06]RAPDU: 90 00 [09:49:06]wFMCommunicate OK [09:49:06]wFMCommunicate request_size=10 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 0D 02 02 05 CF F2 47 40 61 [09:49:06]Write to MH i2c: E2 0D 00 06 23 80 0D 02 02 05 00 CF F2 47 40 61 00 00 56 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 03 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 03 00 06 23 00 90 00 9D [09:49:06]RAPDU: 90 00 [09:49:06]wFMCommunicate OK [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 0D 03 02 [09:49:06]Write to MH i2c: E2 08 00 07 23 80 0D 03 02 00 00 00 00 A5 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:06]OFD Sender: No OFD packet to send [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0B 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 0B 00 07 23 00 E5 85 11 2A 34 B7 98 B2 90 00 80 [09:49:06]RAPDU: E5 85 11 2A 34 B7 98 B2 90 00 [09:49:06]wFMCommunicate OK [09:49:06]SAM_PROTO_SignData done [09:49:06]FM_MakeSignedData done [09:49:06]CreateOFDProtocolMessage [09:49:06]wFMCommunicate request_size=4 [09:49:06]MH_SAM_APDU [09:49:06]CAPDU: 80 11 00 00 [09:49:06]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:06]Read from MH i2c: E2 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 17 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [09:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:49:06]wFMCommunicate OK [09:49:06]CreateOFDProtocolMessage done [09:49:06]OFDSenderStorePacket 69722 [09:49:06]StoreOFDPacket docnum=69722 [09:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F 56 07 01 12 BC 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 A8 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 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 46 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 93 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 10 01 00 35 04 06 00 92 CF F2 47 40 61 E5 85 11 2A 34 B7 98 B2 [09:49:06]CheckFolder [09:49:06]dirname=/storage/ofd_packets [09:49:06]CheckFolder done [09:49:06]ProducePacketName [09:49:06]name=ofd_packets/00069722 [09:49:06]NVStorageSaveData ofd_packets/00069722 [09:49:06]File name is /storage/ofd_packets/00069722 [09:49:06]Write 301 bytes [09:49:06]NVStorageSaveData done [09:49:06]OFDSenderStorePacket done [09:49:06]KKMCreateOFDPacket done [09:49:06]NVStorageSaveData kkm_last_timestamp [09:49:06]File name is /storage/kkm_last_timestamp [09:49:06]Write 4 bytes [09:49:06]NVStorageSaveData done [09:49:06]ExternCall_PrintAddStr [09:49:06]wPrintStart [09:49:06]Write to MH i2c: 01 00 00 09 23 2C [09:49:06]Write i2c OK [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: 01 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: 01 07 00 [09:49:06]MH_I2C_Read... [09:49:06]Read from MH i2c: 01 07 00 09 23 00 00 00 00 00 FF 0F 41 [09:49:06]RasterBufferAndPrint [09:49:06]line Счет N : (1)2885461 [09:49:06]line ИНН: 02508201610067 [09:49:06]line Контрольно-Кассовый Чек [09:49:06]line ПРОДАЖА [09:49:06]line ТРК (МРК, ГНК) : 12 [09:49:06]line Товар: 2710124130 [09:49:06]line Аи-92-К-5 [09:49:06]line 22.440 * 66.90 [09:49:06]line = 1501.24 [09:49:06]line НДС 12% НСП 1% [09:49:06]line > о реализуемом товаре [09:49:06]line ОКРУГЛЕНИЕ: -0.24 [09:49:06]line ИТОГО: 1501.00 [09:49:06]line Внесено: 1501.00 [09:49:06]line СДАЧА: 0.00 [09:49:06]line НСП 1% : 13.28 [09:49:06]line НДС 12% : 159.42 [09:49:06]line Наличными: 1501.00 [09:49:06]line Безнал.: 0.00 [09:49:06]line Место: АЗС № 85 "Партнер Нефть" [09:49:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:49:06]line СНО: Общий режим [09:49:06]line Чек 112 21.10.2024 09:49 [09:49:06]line Смена: 194 ФФД: 1.0 [09:49:06]line ЗНМ: 0300000167 [09:49:06]line РНМ: 0000000000156251 [09:49:06]line Версия ККМ: v1.0 [09:49:06]line ФМ: 0000000000963346 [09:49:06]line ФД: 69722 [09:49:06]line ФПД: 161421820641377 [09:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69722&fm=161421820641377&tin=02508201610067®Number=0000000000156251&sum=150100 [09:49:06]OFD Sender: Processing packet 69722 [packets to send 18, broken 17] [09:49:06]ProducePacketName [09:49:06]name=ofd_packets/00069722 [09:49:06]OFD Sender: To server: pG, [09:49:06]CommunicateWithHost lk.salyk.kg:30040 [09:49:06]ConnectInit lk.salyk.kg [09:49:06]written 0, free lines is 4095 [09:49:06]Connected sock=10 [09:49:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F 56 07 01 12 BC 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 A8 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 4A 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 46 3E 00 00 00 00 07 04 06 00 54 4A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 93 23 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 10 01 00 35 04 06 00 92 CF F2 47 40 61 E5 85 11 2A 34 B7 98 B2 [09:49:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 C5 47 00 D0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 10 01 00 F4 03 04 00 37 CD 15 67 B6 04 01 00 00 CB C4 14 BA F5 38 F6 28 [09:49:06]CommunicateWithHost err = 0 [09:49:06]CheckOFDResponse [09:49:06]1017 (14) - 77093643461234 [09:49:06]1041 (16) - 0000000000963346 [09:49:06]1040 (4) - 69722 [09:49:06]1012 (4) - 21.10.2024 03:40 [09:49:06]1206 (1) - 0 [09:49:06]OFD Sender: Remove packet 69722 [09:49:06]ProducePacketName [09:49:06]name=ofd_packets/00069722 [09:49:06]NVStorageDeleteData [09:49:07]Write to MH i2c: 01 00 00 34 23 57 [09:49:07]Write i2c OK [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: 01 [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: 01 07 00 [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: 01 07 00 34 23 00 00 00 00 00 E6 0C 50 [09:49:07]RasterBufferAndPrint [09:49:07]line [09:49:07]line [09:49:07]line [09:49:07]line [09:49:07]line [09:49:07]written 0, free lines is 3312 [09:49:07]MH_Cut [09:49:07]Write to MH i2c: D1 01 00 3B 23 01 30 [09:49:07]Write i2c OK [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: D1 [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: D1 01 00 [09:49:07]MH_I2C_Read... [09:49:07]Read from MH i2c: D1 01 00 3B 23 00 2F [09:49:07]Write to MH i2c: 01 00 00 3C 23 5F [09:49:07]Write i2c OK [09:49:07]MH_I2C_Read... [09:49:07]OFD Sender: No OFD packet to send [09:49:07]*** Cut start [09:49:07]*** Partial cut [09:49:07]*** CUTSNS_PIN = 1 [09:49:07]*** CUTSNS_PIN = 0 [09:49:08]*** Brake cut motor [09:49:08]Read from MH i2c: 01 [09:49:08]MH_I2C_Read... [09:49:08]*** Stop cut motor [09:49:08]*** Cut end [09:49:08]Read from MH i2c: 01 07 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: 01 07 00 3C 23 00 00 00 00 00 FF 0F 74 [09:49:08]process_action close_receipt done [09:49:08]requested_data is exist [09:49:08]produce_requested_data [09:49:08]requested_item fm.sn is exist - process it [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 11 00 00 [09:49:08]Write to MH i2c: E2 08 00 3D 23 80 11 00 00 00 00 00 00 DA [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 17 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 17 00 3D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [09:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:49:08]wFMCommunicate OK [09:49:08]requested_item fd.num is exist - process it [09:49:08]SAM_PROTO_GetFieldsCounters [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 13 00 00 [09:49:08]Write to MH i2c: E2 08 00 3E 23 80 13 00 00 00 00 00 00 DD [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 62 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 62 00 3E 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:49:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:08]wFMCommunicate OK [09:49:08]SAM_PROTO_GetFieldsCounters done [09:49:08]requested_item shift.num is exist - process it [09:49:08]requested_item shift.opened is exist - process it [09:49:08]req_shift_opened [09:49:08]FM_GetShiftState [09:49:08]SAM_PROTO_GetShiftState [09:49:08]wFMCommunicate request_size=4 [09:49:08]MH_SAM_APDU [09:49:08]CAPDU: 80 13 01 00 [09:49:08]Write to MH i2c: E2 08 00 3F 23 80 13 01 00 00 00 00 00 DF [09:49:08]Write i2c OK [09:49:08]MH_I2C_Read... [09:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:08]Read from MH i2c: E2 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 0E 00 [09:49:08]MH_I2C_Read... [09:49:08]Read from MH i2c: E2 0E 00 3F 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0B [09:49:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:49:08]wFMCommunicate OK [09:49:08]SAM_PROTO_GetShiftState done [09:49:08]FM_GetShiftState done [09:49:08]req_shift_opened done [09:49:08]requested_item shift.open_date is exist - process it [09:49:08]req_shift_open_date [09:49:08]req_shift_open_date done [09:49:08]produce_requested_data done [09:49:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69722,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:49:08]process_action_free close_receipt [09:49:08]json_value_free [09:49:08]json_value_free done [09:49:08]process_json_proto returns [09:49:08]Send response to host [09:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69722,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:49:08]free response buf [09:49:08]execute_script done [09:49:08]execute_script returns [09:49:08]free content buf [09:49:08]Sock 8.Close socket [09:49:08]Sock 8.Thread stoped [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:30]accept exits with 9 [09:51:30]New connection [09:51:30]New thread 3067313508 created [09:51:30]Thread 3067456868 joined [09:51:30]Waiting for new connection... [09:51:30] Sock 9.Parse request [09:51:30]Sock 9.Check first char [09:51:30]Sock 9.First char is OK [09:51:30]request: POST /json_proto HTTP/1.0 [09:51:30]Method: POST [09:51:30]URL: /json_proto [09:51:30]Method is POST - this is cgi request [09:51:30]url: /json_proto [09:51:30]query_string will be loaded in cgi processing [09:51:30]execute_cgi json_proto POST (null) [09:51:30]execute_cgi path=json_proto method=POST [09:51:30]POST find Content-Length [09:51:30]Host: 172.17.50.3:8080 [09:51:30]Content-Length: 801 [09:51:30]Content-Type: application/json [09:51:30] [09:51:30]POST finish read [09:51:30]Found Content-Length = 801 [09:51:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885463", "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" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913871", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:30]execute_script... [09:51: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)2885463", "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" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913871", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:30]POST & json_proto [09:51:30]process_json_proto [09:51:30]json parsed OK: [09:51:30]protocol is kg_v1.0 [09:51:30]action value=close_receipt [09:51:30]process_action close_receipt [09:51:30]cmd_close_receipt [09:51:30]MH_GetDate [09:51:30]Write to MH i2c: F0 00 00 40 23 52 [09:51:30]Write i2c OK [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: F0 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: F0 09 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: F0 09 00 40 23 00 25 24 16 67 6B 98 1E 66 A8 [09:51:30]GetLastDocTimeStamp 1729504147 [09:51:30]current date 1729504293 [09:51:30]FM_GetShiftState [09:51:30]SAM_PROTO_GetShiftState [09:51:30]wFMCommunicate request_size=4 [09:51:30]MH_SAM_APDU [09:51:30]CAPDU: 80 13 01 00 [09:51:30]Write to MH i2c: E2 08 00 41 23 80 13 01 00 00 00 00 00 E1 [09:51:30]Write i2c OK [09:51:30]MH_I2C_Read... [09:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:30]Read from MH i2c: E2 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 0E 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 0E 00 41 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0D [09:51:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:51:30]wFMCommunicate OK [09:51:30]SAM_PROTO_GetShiftState done [09:51:30]FM_GetShiftState done [09:51:30]opened in 1729469703 [09:51:30]opened+sec_in_day 1729556103 [09:51:30]quantity*price = 0 [09:51:30]sum+1 = 1 [09:51:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 113 21.10.2024 09:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3913871 ФМ: 0000000000963346 ФД: 69723 ФПД: 18086241168844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095133&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69723&fm=18086241168844&tin=02508201610067®Number=0000000000156251&sum=0 [09:51:31]StoreToDocumentArchive [09:51:31]shift 194 fd 69723 [09:51:31]save to /storage/0194/doc_00069723 [09:51:31]save last doc name /storage/0194/doc_00069723 to /storage/kkm_last_doc_name [09:51:31]save OK [09:51:31]Clear old archive folders... [09:51:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:31]tlvbuf is 00C41140 [09:51:31]SAM_PROTO_ClearQueue [09:51:31]wFMCommunicate request_size=4 [09:51:31]MH_SAM_APDU [09:51:31]CAPDU: 80 09 00 00 [09:51:31]Write to MH i2c: E2 08 00 4E 23 80 09 00 00 00 00 00 00 E3 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 4E 23 00 90 00 E5 [09:51:31]RAPDU: 90 00 [09:51:31]wFMCommunicate OK [09:51:31]SAM_PROTO_ClearQueue done [09:51:31]KKMCreateOFDPacket [09:51:31]OFDProtocolAddRootSTLVToBuf [09:51:31]FM_MakeSignedData [09:51:31]FM_MakeSignedData [09:51:31]SAM_PROTO_SignData [09:51:31]wFMCommunicate request_size=4 [09:51:31]MH_SAM_APDU [09:51:31]CAPDU: 80 0D 01 02 [09:51:31]Write to MH i2c: E2 08 00 4F 23 80 0D 01 02 00 00 00 00 EB [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 4F 23 00 90 00 E6 [09:51:31]RAPDU: 90 00 [09:51:31]wFMCommunicate OK [09:51:31]wFMCommunicate request_size=255 [09:51:31]MH_SAM_APDU [09:51:31]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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 25 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 10 01 00 35 04 06 00 10 [09:51:31]Write to MH i2c: E2 02 01 50 23 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 25 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 10 01 00 35 04 06 00 10 00 00 9B [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:31]Read from MH i2c: E2 03 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 50 23 00 90 00 E7 [09:51:31]RAPDU: 90 00 [09:51:31]wFMCommunicate OK [09:51:31]wFMCommunicate request_size=10 [09:51:31]MH_SAM_APDU [09:51:31]CAPDU: 80 0D 02 02 05 73 07 FA ED CC [09:51:31]Write to MH i2c: E2 0D 00 51 23 80 0D 02 02 05 00 73 07 FA ED CC 00 00 25 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 03 00 51 23 00 90 00 E8 [09:51:31]RAPDU: 90 00 [09:51:31]wFMCommunicate OK [09:51:31]wFMCommunicate request_size=4 [09:51:31]MH_SAM_APDU [09:51:31]CAPDU: 80 0D 03 02 [09:51:31]Write to MH i2c: E2 08 00 52 23 80 0D 03 02 00 00 00 00 F0 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 0B 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 0B 00 52 23 00 FF FB 72 F0 B4 68 75 1E 90 00 FC [09:51:31]RAPDU: FF FB 72 F0 B4 68 75 1E 90 00 [09:51:31]wFMCommunicate OK [09:51:31]SAM_PROTO_SignData done [09:51:31]FM_MakeSignedData done [09:51:31]CreateOFDProtocolMessage [09:51:31]wFMCommunicate request_size=4 [09:51:31]MH_SAM_APDU [09:51:31]CAPDU: 80 11 00 00 [09:51:31]Write to MH i2c: E2 08 00 53 23 80 11 00 00 00 00 00 00 F0 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:31]Read from MH i2c: E2 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: E2 17 00 [09:51:31]MH_I2C_Read... [09:51:32]Read from MH i2c: E2 17 00 53 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [09:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:51:32]wFMCommunicate OK [09:51:32]CreateOFDProtocolMessage done [09:51:32]OFDSenderStorePacket 69723 [09:51:32]StoreOFDPacket docnum=69723 [09:51:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A E1 07 01 66 88 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 25 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 10 01 00 35 04 06 00 10 73 07 FA ED CC FF FB 72 F0 B4 68 75 1E [09:51:32]CheckFolder [09:51:32]dirname=/storage/ofd_packets [09:51:32]CheckFolder done [09:51:32]ProducePacketName [09:51:32]name=ofd_packets/00069723 [09:51:32]NVStorageSaveData ofd_packets/00069723 [09:51:32]File name is /storage/ofd_packets/00069723 [09:51:32]Write 301 bytes [09:51:32]NVStorageSaveData done [09:51:32]OFDSenderStorePacket done [09:51:32]KKMCreateOFDPacket done [09:51:32]NVStorageSaveData kkm_last_timestamp [09:51:32]File name is /storage/kkm_last_timestamp [09:51:32]Write 4 bytes [09:51:32]NVStorageSaveData done [09:51:32]ExternCall_PrintAddStr [09:51:32]wPrintStart [09:51:32]Write to MH i2c: 01 00 00 54 23 77 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 07 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 07 00 54 23 00 00 00 00 00 FF 0F 8C [09:51:32]RasterBufferAndPrint [09:51:32]line Счет N : (1)2885463 [09:51:32]line ИНН: 02508201610067 [09:51:32]line Контрольно-Кассовый Чек [09:51:32]line ПРОДАЖА [09:51:32]line ТРК (МРК, ГНК) : 42 [09:51:32]line Товар: 2710124130 [09:51:32]line Аи-92-К-5 [09:51:32]line 10.000 * 0.00 [09:51:32]line = 0.00 [09:51:32]line НДС 12% НСП 1% [09:51:32]line > о реализуемом товаре [09:51:32]line ИТОГО: 0.00 [09:51:32]line НСП 1% : 0.00 [09:51:32]line НДС 12% : 0.00 [09:51:32]line Наличными: 0.00 [09:51:32]line Безнал.: 0.00 [09:51:32]line Место: АЗС № 85 "Партнер Нефть" [09:51:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:51:32]line СНО: Общий режим [09:51:32]line Чек 113 21.10.2024 09:51 [09:51:32]line Смена: 194 ФФД: 1.0 [09:51:32]line ЗНМ: 0300000167 [09:51:32]line РНМ: 0000000000156251 [09:51:32]line Версия ККМ: v1.0 [09:51:32]line Талоны: Топливные Талоны [09:51:32]line 3913871 [09:51:32]line ФМ: 0000000000963346 [09:51:32]line ФД: 69723 [09:51:32]line ФПД: 18086241168844 [09:51:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095133&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69723&fm=18086241168844&tin=02508201610067®Number=0000000000156251&sum=0 [09:51:32]OFD Sender: Processing packet 69723 [packets to send 18, broken 17] [09:51:32]ProducePacketName [09:51:32]name=ofd_packets/00069723 [09:51:32]OFD Sender: To server: pG, [09:51:32]CommunicateWithHost lk.salyk.kg:30040 [09:51:32]ConnectInit lk.salyk.kg [09:51:32]written 0, free lines is 4095 [09:51:32]Connected sock=10 [09:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A E1 07 01 66 88 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 25 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 10 01 00 35 04 06 00 10 73 07 FA ED CC FF FB 72 F0 B4 68 75 1E [09:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A9 91 47 00 E9 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 10 01 00 F4 03 04 00 C9 CD 15 67 B6 04 01 00 00 B6 63 10 09 67 1E 6D 1B [09:51:32]CommunicateWithHost err = 0 [09:51:32]CheckOFDResponse [09:51:32]1017 (14) - 77093643461234 [09:51:32]1041 (16) - 0000000000963346 [09:51:32]1040 (4) - 69723 [09:51:32]1012 (4) - 21.10.2024 03:43 [09:51:32]1206 (1) - 0 [09:51:32]OFD Sender: Remove packet 69723 [09:51:32]ProducePacketName [09:51:32]name=ofd_packets/00069723 [09:51:32]NVStorageDeleteData [09:51:32]Write to MH i2c: 01 00 00 7E 23 A1 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 07 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: 01 07 00 7E 23 00 00 00 00 00 EF 0C A3 [09:51:32]RasterBufferAndPrint [09:51:32]line [09:51:32]line [09:51:32]line [09:51:32]line [09:51:32]line [09:51:32]written 0, free lines is 3317 [09:51:32]MH_Cut [09:51:32]Write to MH i2c: D1 01 00 85 23 01 7A [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: D1 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: D1 01 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: D1 01 00 85 23 00 79 [09:51:32]Write to MH i2c: 01 00 00 86 23 A9 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:33]OFD Sender: No OFD packet to send [09:51:33]*** Cut start [09:51:33]*** Partial cut [09:51:33]*** CUTSNS_PIN = 1 [09:51:33]*** CUTSNS_PIN = 0 [09:51:33]*** Brake cut motor [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]*** Stop cut motor [09:51:34]*** Cut end [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 86 23 00 00 00 00 00 FF 0F BE [09:51:34]process_action close_receipt done [09:51:34]requested_data is exist [09:51:34]produce_requested_data [09:51:34]requested_item fm.sn is exist - process it [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 11 00 00 [09:51:34]Write to MH i2c: E2 08 00 87 23 80 11 00 00 00 00 00 00 24 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 87 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [09:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:51:34]wFMCommunicate OK [09:51:34]requested_item fd.num is exist - process it [09:51:34]SAM_PROTO_GetFieldsCounters [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 13 00 00 [09:51:34]Write to MH i2c: E2 08 00 88 23 80 13 00 00 00 00 00 00 27 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 62 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 62 00 88 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [09:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_GetFieldsCounters done [09:51:34]requested_item shift.num is exist - process it [09:51:34]requested_item shift.opened is exist - process it [09:51:34]req_shift_opened [09:51:34]FM_GetShiftState [09:51:34]SAM_PROTO_GetShiftState [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 13 01 00 [09:51:34]Write to MH i2c: E2 08 00 89 23 80 13 01 00 00 00 00 00 29 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 89 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 55 [09:51:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_GetShiftState done [09:51:34]FM_GetShiftState done [09:51:34]req_shift_opened done [09:51:34]requested_item shift.open_date is exist - process it [09:51:34]req_shift_open_date [09:51:34]req_shift_open_date done [09:51:34]produce_requested_data done [09:51:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69723,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:51:34]process_action_free close_receipt [09:51:34]json_value_free [09:51:34]json_value_free done [09:51:34]process_json_proto returns [09:51:34]Send response to host [09:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69723,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:51:34]free response buf [09:51:34]execute_script done [09:51:34]execute_script returns [09:51:34]free content buf [09:51:34]Sock 9.Close socket [09:51:34]Sock 9.Thread stoped [09:51:34]accept exits with 8 [09:51:34]New connection [09:51:34]New thread 3067456868 created [09:51:34]Thread 3067313508 joined [09:51:34]Waiting for new connection... [09:51:34] Sock 8.Parse request [09:51:34]Sock 8.Check first char [09:51:34]Sock 8.First char is OK [09:51:34]request: POST /json_proto HTTP/1.0 [09:51:34]Method: POST [09:51:34]URL: /json_proto [09:51:34]Method is POST - this is cgi request [09:51:34]url: /json_proto [09:51:34]query_string will be loaded in cgi processing [09:51:34]execute_cgi json_proto POST (null) [09:51:34]execute_cgi path=json_proto method=POST [09:51:34]POST find Content-Length [09:51:34]Host: 172.17.50.3:8080 [09:51:34]Content-Length: 686 [09:51:34]Content-Type: application/json [09:51:34] [09:51:34]POST finish read [09:51:34]Found Content-Length = 686 [09:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.330, "sum" : 1102.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1102.00, "payments": [ { "type": 0, "sum" : 1102.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:34]execute_script... [09:51: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)2885462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 28.330, "sum" : 1102.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1102.00, "payments": [ { "type": 0, "sum" : 1102.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:34]POST & json_proto [09:51:34]process_json_proto [09:51:34]json parsed OK: [09:51:34]protocol is kg_v1.0 [09:51:34]action value=close_receipt [09:51:34]process_action close_receipt [09:51:34]cmd_close_receipt [09:51:34]MH_GetDate [09:51:34]Write to MH i2c: F0 00 00 8A 23 9C [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: F0 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: F0 09 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: F0 09 00 8A 23 00 29 24 16 67 6B 98 1E 66 F6 [09:51:34]GetLastDocTimeStamp 1729504293 [09:51:34]current date 1729504297 [09:51:34]FM_GetShiftState [09:51:34]SAM_PROTO_GetShiftState [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 13 01 00 [09:51:34]Write to MH i2c: E2 08 00 8B 23 80 13 01 00 00 00 00 00 2B [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 8B 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 57 [09:51:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_GetShiftState done [09:51:34]FM_GetShiftState done [09:51:34]opened in 1729469703 [09:51:34]opened+sec_in_day 1729556103 [09:51:34]quantity*price = 110203 [09:51:34]sum+1 = 110205 [09:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1102.00 Внесено: 3000.00 СДАЧА: 1898.00 НСП 1% : 9.75 НДС 12% : 117.03 Наличными: 1102.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 114 21.10.2024 09:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69724 ФПД: 50062849550337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69724&fm=50062849550337&tin=02508201610067®Number=0000000000156251&sum=110200 [09:51:35]StoreToDocumentArchive [09:51:35]shift 194 fd 69724 [09:51:35]save to /storage/0194/doc_00069724 [09:51:35]save last doc name /storage/0194/doc_00069724 to /storage/kkm_last_doc_name [09:51:35]save OK [09:51:35]Clear old archive folders... [09:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:51:35]tlvbuf is B6E23620 [09:51:35]SAM_PROTO_ClearQueue [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 09 00 00 [09:51:35]Write to MH i2c: E2 08 00 98 23 80 09 00 00 00 00 00 00 2D [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_ClearQueue done [09:51:36]KKMCreateOFDPacket [09:51:36]OFDProtocolAddRootSTLVToBuf [09:51:36]FM_MakeSignedData [09:51:36]FM_MakeSignedData [09:51:36]SAM_PROTO_SignData [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 01 02 [09:51:36]Write to MH i2c: E2 08 00 99 23 80 0D 01 02 00 00 00 00 35 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 99 23 00 90 00 30 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=255 [09:51:36]MH_SAM_APDU [09:51:36]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 33 FF 03 08 00 03 AA 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 2D 00 00 00 00 07 04 06 00 78 AE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 29 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 10 01 00 35 04 06 00 2D 88 [09:51:36]Write to MH i2c: E2 02 01 9A 23 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 33 FF 03 08 00 03 AA 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 2D 00 00 00 00 07 04 06 00 78 AE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 29 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 10 01 00 35 04 06 00 2D 88 00 00 8F [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 9A 23 00 90 00 31 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=9 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 04 2A 5D 28 01 [09:51:36]Write to MH i2c: E2 0C 00 9B 23 80 0D 02 02 04 00 2A 5D 28 01 00 00 F0 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 9B 23 00 90 00 32 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 03 02 [09:51:36]Write to MH i2c: E2 08 00 9C 23 80 0D 03 02 00 00 00 00 3A [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 9C 23 00 A4 35 86 B2 17 B5 D9 EA 90 00 DB [09:51:36]RAPDU: A4 35 86 B2 17 B5 D9 EA 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_SignData done [09:51:36]FM_MakeSignedData done [09:51:36]CreateOFDProtocolMessage [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 11 00 00 [09:51:36]Write to MH i2c: E2 08 00 9D 23 80 11 00 00 00 00 00 00 3A [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 9D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [09:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:51:36]wFMCommunicate OK [09:51:36]CreateOFDProtocolMessage done [09:51:36]OFDSenderStorePacket 69724 [09:51:36]StoreOFDPacket docnum=69724 [09:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0E 6D 06 01 91 1C 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 33 FF 03 08 00 03 AA 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 2D 00 00 00 00 07 04 06 00 78 AE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 29 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 10 01 00 35 04 06 00 2D 88 2A 5D 28 01 A4 35 86 B2 17 B5 D9 EA [09:51:36]CheckFolder [09:51:36]dirname=/storage/ofd_packets [09:51:36]CheckFolder done [09:51:36]ProducePacketName [09:51:36]name=ofd_packets/00069724 [09:51:36]NVStorageSaveData ofd_packets/00069724 [09:51:36]File name is /storage/ofd_packets/00069724 [09:51:36]Write 300 bytes [09:51:36]NVStorageSaveData done [09:51:36]OFDSenderStorePacket done [09:51:36]KKMCreateOFDPacket done [09:51:36]NVStorageSaveData kkm_last_timestamp [09:51:36]File name is /storage/kkm_last_timestamp [09:51:36]Write 4 bytes [09:51:36]NVStorageSaveData done [09:51:36]ExternCall_PrintAddStr [09:51:36]wPrintStart [09:51:36]Write to MH i2c: 01 00 00 9E 23 C1 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 9E 23 00 00 00 00 00 FF 0F D6 [09:51:36]RasterBufferAndPrint [09:51:36]line Счет N : (1)2885462 [09:51:36]line ИНН: 02508201610067 [09:51:36]line Контрольно-Кассовый Чек [09:51:36]line ПРОДАЖА [09:51:36]line ТРК (МРК, ГНК) : 71 [09:51:36]line Товар: 2711129700 [09:51:36]line ГАЗ-К-3 [09:51:36]line 28.330 * 38.90 [09:51:36]line = 1102.04 [09:51:36]line НДС 12% НСП 1% [09:51:36]line > о реализуемом товаре [09:51:36]line ОКРУГЛЕНИЕ: -0.04 [09:51:37]line ИТОГО: 1102.00 [09:51:37]line Внесено: 3000.00 [09:51:37]line СДАЧА: 1898.00 [09:51:37]line НСП 1% : 9.75 [09:51:37]line НДС 12% : 117.03 [09:51:37]line Наличными: 1102.00 [09:51:37]line Безнал.: 0.00 [09:51:37]line Место: АЗС № 85 "Партнер Нефть" [09:51:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 114 21.10.2024 09:51 [09:51:37]line Смена: 194 ФФД: 1.0 [09:51:37]line ЗНМ: 0300000167 [09:51:37]line РНМ: 0000000000156251 [09:51:37]line Версия ККМ: v1.0 [09:51:37]line ФМ: 0000000000963346 [09:51:37]line ФД: 69724 [09:51:37]line ФПД: 50062849550337 [09:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69724&fm=50062849550337&tin=02508201610067®Number=0000000000156251&sum=110200 [09:51:37]OFD Sender: Processing packet 69724 [packets to send 18, broken 17] [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00069724 [09:51:37]OFD Sender: To server: pG, [09:51:37]CommunicateWithHost lk.salyk.kg:30040 [09:51:37]ConnectInit lk.salyk.kg [09:51:37]written 0, free lines is 4095 [09:51:37]Connected sock=10 [09:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0E 6D 06 01 91 1C 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 33 FF 03 08 00 03 AA 6E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 2D 00 00 00 00 07 04 06 00 78 AE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 29 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 10 01 00 35 04 06 00 2D 88 2A 5D 28 01 A4 35 86 B2 17 B5 D9 EA [09:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 95 92 47 00 F1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 10 01 00 F4 03 04 00 CE CD 15 67 B6 04 01 00 00 5E 60 38 5E C2 3B 9A B4 [09:51:37]CommunicateWithHost err = 0 [09:51:37]CheckOFDResponse [09:51:37]1017 (14) - 77093643461234 [09:51:37]1041 (16) - 0000000000963346 [09:51:37]1040 (4) - 69724 [09:51:37]1012 (4) - 21.10.2024 03:43 [09:51:37]1206 (1) - 0 [09:51:37]OFD Sender: Remove packet 69724 [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00069724 [09:51:37]NVStorageDeleteData [09:51:37]Write to MH i2c: 01 00 00 C9 23 EC [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 C9 23 00 00 00 00 00 F1 0C F0 [09:51:37]RasterBufferAndPrint [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]written 0, free lines is 3327 [09:51:37]MH_Cut [09:51:37]Write to MH i2c: D1 01 00 D0 23 01 C5 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 D0 23 00 C4 [09:51:37]Write to MH i2c: 01 00 00 D1 23 F4 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:38]OFD Sender: No OFD packet to send [09:51:38]*** Cut start [09:51:38]*** Partial cut [09:51:38]*** CUTSNS_PIN = 1 [09:51:38]*** CUTSNS_PIN = 0 [09:51:38]*** Brake cut motor [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]*** Stop cut motor [09:51:38]*** Cut end [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 D1 23 00 00 00 00 00 FF 0F 09 [09:51:38]process_action close_receipt done [09:51:38]requested_data is exist [09:51:38]produce_requested_data [09:51:38]requested_item fm.sn is exist - process it [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 11 00 00 [09:51:38]Write to MH i2c: E2 08 00 D2 23 80 11 00 00 00 00 00 00 6F [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 D2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:51:39]wFMCommunicate OK [09:51:39]requested_item fd.num is exist - process it [09:51:39]SAM_PROTO_GetFieldsCounters [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 00 00 [09:51:39]Write to MH i2c: E2 08 00 D3 23 80 13 00 00 00 00 00 00 72 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 D3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetFieldsCounters done [09:51:39]requested_item shift.num is exist - process it [09:51:39]requested_item shift.opened is exist - process it [09:51:39]req_shift_opened [09:51:39]FM_GetShiftState [09:51:39]SAM_PROTO_GetShiftState [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 01 00 [09:51:39]Write to MH i2c: E2 08 00 D4 23 80 13 01 00 00 00 00 00 74 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 D4 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A0 [09:51:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetShiftState done [09:51:39]FM_GetShiftState done [09:51:39]req_shift_opened done [09:51:39]requested_item shift.open_date is exist - process it [09:51:39]req_shift_open_date [09:51:39]req_shift_open_date done [09:51:39]produce_requested_data done [09:51:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69724,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:51:39]process_action_free close_receipt [09:51:39]json_value_free [09:51:39]json_value_free done [09:51:39]process_json_proto returns [09:51:39]Send response to host [09:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69724,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:51:39]free response buf [09:51:39]execute_script done [09:51:39]execute_script returns [09:51:39]free content buf [09:51:39]Sock 8.Close socket [09:51:39]Sock 8.Thread stoped [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:53]accept exits with 9 [09:53:53]New connection [09:53:53]New thread 3067313508 created [09:53:53]Thread 3067456868 joined [09:53:53]Waiting for new connection... [09:53:53] Sock 9.Parse request [09:53:53]Sock 9.Check first char [09:53:53]Sock 9.First char is OK [09:53:53]request: POST /json_proto HTTP/1.0 [09:53:53]Method: POST [09:53:53]URL: /json_proto [09:53:53]Method is POST - this is cgi request [09:53:53]url: /json_proto [09:53:53]query_string will be loaded in cgi processing [09:53:53]execute_cgi json_proto POST (null) [09:53:53]execute_cgi path=json_proto method=POST [09:53:53]POST find Content-Length [09:53:53]Host: 172.17.50.3:8080 [09:53:53]Content-Length: 678 [09:53:53]Content-Type: application/json [09:53:53] [09:53:53]POST finish read [09:53:53]Found Content-Length = 678 [09:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]execute_script... [09:53: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)2885465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:53]POST & json_proto [09:53:53]process_json_proto [09:53:53]json parsed OK: [09:53:53]protocol is kg_v1.0 [09:53:53]action value=close_receipt [09:53:53]process_action close_receipt [09:53:53]cmd_close_receipt [09:53:53]MH_GetDate [09:53:53]Write to MH i2c: F0 00 00 D5 23 E7 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: F0 09 00 D5 23 00 B4 24 16 67 6B 98 1E 66 CC [09:53:53]GetLastDocTimeStamp 1729504297 [09:53:53]current date 1729504436 [09:53:53]FM_GetShiftState [09:53:53]SAM_PROTO_GetShiftState [09:53:53]wFMCommunicate request_size=4 [09:53:53]MH_SAM_APDU [09:53:53]CAPDU: 80 13 01 00 [09:53:53]Write to MH i2c: E2 08 00 D6 23 80 13 01 00 00 00 00 00 76 [09:53:53]Write i2c OK [09:53:53]MH_I2C_Read... [09:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:53]Read from MH i2c: E2 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 [09:53:53]MH_I2C_Read... [09:53:53]Read from MH i2c: E2 0E 00 D6 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A2 [09:53:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:53:53]wFMCommunicate OK [09:53:53]SAM_PROTO_GetShiftState done [09:53:53]FM_GetShiftState done [09:53:53]opened in 1729469703 [09:53:53]opened+sec_in_day 1729556103 [09:53:53]quantity*price = 40006 [09:53:53]sum+1 = 40007 [09:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 115 21.10.2024 09:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69725 ФПД: 77687303654911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69725&fm=77687303654911&tin=02508201610067®Number=0000000000156251&sum=40000 [09:53:54]StoreToDocumentArchive [09:53:54]shift 194 fd 69725 [09:53:54]save to /storage/0194/doc_00069725 [09:53:54]save last doc name /storage/0194/doc_00069725 to /storage/kkm_last_doc_name [09:53:54]save OK [09:53:54]Clear old archive folders... [09:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:54]tlvbuf is 00C8ADB0 [09:53:54]SAM_PROTO_ClearQueue [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 09 00 00 [09:53:54]Write to MH i2c: E2 08 00 E3 23 80 09 00 00 00 00 00 00 78 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 E3 23 00 90 00 7A [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]SAM_PROTO_ClearQueue done [09:53:54]KKMCreateOFDPacket [09:53:54]OFDProtocolAddRootSTLVToBuf [09:53:54]FM_MakeSignedData [09:53:54]FM_MakeSignedData [09:53:54]SAM_PROTO_SignData [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 01 02 [09:53:54]Write to MH i2c: E2 08 00 E4 23 80 0D 01 02 00 00 00 00 80 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 E4 23 00 90 00 7B [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=255 [09:53:54]MH_SAM_APDU [09:53: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B4 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 10 01 00 35 04 06 00 46 [09:53:54]Write to MH i2c: E2 02 01 E5 23 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B4 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 10 01 00 35 04 06 00 46 00 00 16 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 E5 23 00 90 00 7C [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=10 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 02 02 05 A7 FC 23 4D FF [09:53:54]Write to MH i2c: E2 0D 00 E6 23 80 0D 02 02 05 00 A7 FC 23 4D FF 00 00 9F [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 03 00 E6 23 00 90 00 7D [09:53:54]RAPDU: 90 00 [09:53:54]wFMCommunicate OK [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 0D 03 02 [09:53:54]Write to MH i2c: E2 08 00 E7 23 80 0D 03 02 00 00 00 00 85 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 0B 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 0B 00 E7 23 00 CC 05 B7 16 C4 76 A1 D4 90 00 D3 [09:53:54]RAPDU: CC 05 B7 16 C4 76 A1 D4 90 00 [09:53:54]wFMCommunicate OK [09:53:54]SAM_PROTO_SignData done [09:53:54]FM_MakeSignedData done [09:53:54]CreateOFDProtocolMessage [09:53:54]wFMCommunicate request_size=4 [09:53:54]MH_SAM_APDU [09:53:54]CAPDU: 80 11 00 00 [09:53:54]Write to MH i2c: E2 08 00 E8 23 80 11 00 00 00 00 00 00 85 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:54]Read from MH i2c: E2 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 17 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: E2 17 00 E8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [09:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:53:54]wFMCommunicate OK [09:53:54]CreateOFDProtocolMessage done [09:53:54]OFDSenderStorePacket 69725 [09:53:54]StoreOFDPacket docnum=69725 [09:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 47 07 01 73 40 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B4 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 10 01 00 35 04 06 00 46 A7 FC 23 4D FF CC 05 B7 16 C4 76 A1 D4 [09:53:54]CheckFolder [09:53:54]dirname=/storage/ofd_packets [09:53:54]CheckFolder done [09:53:54]ProducePacketName [09:53:54]name=ofd_packets/00069725 [09:53:54]NVStorageSaveData ofd_packets/00069725 [09:53:54]File name is /storage/ofd_packets/00069725 [09:53:54]Write 301 bytes [09:53:54]NVStorageSaveData done [09:53:54]OFDSenderStorePacket done [09:53:54]KKMCreateOFDPacket done [09:53:54]NVStorageSaveData kkm_last_timestamp [09:53:54]File name is /storage/kkm_last_timestamp [09:53:54]Write 4 bytes [09:53:54]NVStorageSaveData done [09:53:54]ExternCall_PrintAddStr [09:53:54]wPrintStart [09:53:54]Write to MH i2c: 01 00 00 E9 23 0C [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 E9 23 00 00 00 00 00 FF 0F 21 [09:53:54]RasterBufferAndPrint [09:53:54]line Счет N : (1)2885465 [09:53:54]line ИНН: 02508201610067 [09:53:54]line Контрольно-Кассовый Чек [09:53:54]line ПРОДАЖА [09:53:54]line ТРК (МРК, ГНК) : 22 [09:53:54]line Товар: 2710124130 [09:53:54]line Аи-92-К-5 [09:53:54]line 5.980 * 66.90 [09:53:54]line = 400.06 [09:53:54]line НДС 12% НСП 1% [09:53:54]line > о реализуемом товаре [09:53:54]line ОКРУГЛЕНИЕ: -0.06 [09:53:54]line ИТОГО: 400.00 [09:53:54]line Внесено: 400.00 [09:53:54]line СДАЧА: 0.00 [09:53:54]line НСП 1% : 3.54 [09:53:54]line НДС 12% : 42.48 [09:53:54]line Наличными: 400.00 [09:53:54]line Безнал.: 0.00 [09:53:54]line Место: АЗС № 85 "Партнер Нефть" [09:53:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:53:54]line СНО: Общий режим [09:53:54]line Чек 115 21.10.2024 09:53 [09:53:54]line Смена: 194 ФФД: 1.0 [09:53:54]line ЗНМ: 0300000167 [09:53:54]line РНМ: 0000000000156251 [09:53:54]line Версия ККМ: v1.0 [09:53:54]line ФМ: 0000000000963346 [09:53:54]line ФД: 69725 [09:53:54]line ФПД: 77687303654911 [09:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69725&fm=77687303654911&tin=02508201610067®Number=0000000000156251&sum=40000 [09:53:55]OFD Sender: Processing packet 69725 [packets to send 18, broken 17] [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00069725 [09:53:55]OFD Sender: To server: pG, [09:53:55]CommunicateWithHost lk.salyk.kg:30040 [09:53:55]ConnectInit lk.salyk.kg [09:53:55]written 0, free lines is 4095 [09:53:55]Connected sock=10 [09:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 47 07 01 73 40 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B4 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 10 01 00 35 04 06 00 46 A7 FC 23 4D FF CC 05 B7 16 C4 76 A1 D4 [09:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 40 18 47 00 42 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 10 01 00 F4 03 04 00 58 CE 15 67 B6 04 01 00 00 4F DE CE D2 F5 4D 97 F2 [09:53:55]CommunicateWithHost err = 0 [09:53:55]CheckOFDResponse [09:53:55]1017 (14) - 77093643461234 [09:53:55]1041 (16) - 0000000000963346 [09:53:55]1040 (4) - 69725 [09:53:55]1012 (4) - 21.10.2024 03:45 [09:53:55]1206 (1) - 0 [09:53:55]OFD Sender: Remove packet 69725 [09:53:55]ProducePacketName [09:53:55]name=ofd_packets/00069725 [09:53:55]NVStorageDeleteData [09:53:55]Write to MH i2c: 01 00 00 14 24 38 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 EF 0C 3A [09:53:55]RasterBufferAndPrint [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]line [09:53:55]written 0, free lines is 3317 [09:53:55]MH_Cut [09:53:55]Write to MH i2c: D1 01 00 1B 24 01 11 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 01 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: D1 01 00 1B 24 00 10 [09:53:55]Write to MH i2c: 01 00 00 1C 24 40 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:56]OFD Sender: No OFD packet to send [09:53:56]*** Cut start [09:53:56]*** Partial cut [09:53:56]*** CUTSNS_PIN = 1 [09:53:56]*** CUTSNS_PIN = 0 [09:53:56]*** Brake cut motor [09:53:57]Read from MH i2c: 01 [09:53:57]MH_I2C_Read... [09:53:57]*** Stop cut motor [09:53:57]*** Cut end [09:53:57]Read from MH i2c: 01 07 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [09:53:57]process_action close_receipt done [09:53:57]requested_data is exist [09:53:57]produce_requested_data [09:53:57]requested_item fm.sn is exist - process it [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 11 00 00 [09:53:57]Write to MH i2c: E2 08 00 1D 24 80 11 00 00 00 00 00 00 BB [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:57]Read from MH i2c: E2 17 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 1D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [09:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:53:57]wFMCommunicate OK [09:53:57]requested_item fd.num is exist - process it [09:53:57]SAM_PROTO_GetFieldsCounters [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 13 00 00 [09:53:57]Write to MH i2c: E2 08 00 1E 24 80 13 00 00 00 00 00 00 BE [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 62 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 62 00 1E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_GetFieldsCounters done [09:53:57]requested_item shift.num is exist - process it [09:53:57]requested_item shift.opened is exist - process it [09:53:57]req_shift_opened [09:53:57]FM_GetShiftState [09:53:57]SAM_PROTO_GetShiftState [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 13 01 00 [09:53:57]Write to MH i2c: E2 08 00 1F 24 80 13 01 00 00 00 00 00 C0 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0E 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0E 00 1F 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EC [09:53:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_GetShiftState done [09:53:57]FM_GetShiftState done [09:53:57]req_shift_opened done [09:53:57]requested_item shift.open_date is exist - process it [09:53:57]req_shift_open_date [09:53:57]req_shift_open_date done [09:53:57]produce_requested_data done [09:53:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69725,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:53:57]process_action_free close_receipt [09:53:57]json_value_free [09:53:57]json_value_free done [09:53:57]process_json_proto returns [09:53:57]Send response to host [09:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69725,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:53:57]free response buf [09:53:57]execute_script done [09:53:57]execute_script returns [09:53:57]free content buf [09:53:57]Sock 9.Close socket [09:53:57]Sock 9.Thread stoped [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:36]accept exits with 8 [09:54:36]New connection [09:54:36]New thread 3067456868 created [09:54:36]Thread 3067313508 joined [09:54:36]Waiting for new connection... [09:54:36] Sock 8.Parse request [09:54:36]Sock 8.Check first char [09:54:36]Sock 8.First char is OK [09:54:36]request: POST /json_proto HTTP/1.0 [09:54:36]Method: POST [09:54:36]URL: /json_proto [09:54:36]Method is POST - this is cgi request [09:54:36]url: /json_proto [09:54:36]query_string will be loaded in cgi processing [09:54:36]execute_cgi json_proto POST (null) [09:54:36]execute_cgi path=json_proto method=POST [09:54:36]POST find Content-Length [09:54:36]Host: 172.17.50.3:8080 [09:54:36]Content-Length: 682 [09:54:36]Content-Type: application/json [09:54:36] [09:54:36]POST finish read [09:54:36]Found Content-Length = 682 [09:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 23.660, "sum" : 920.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]execute_script... [09:54: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)2885464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 23.660, "sum" : 920.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]POST & json_proto [09:54:36]process_json_proto [09:54:36]json parsed OK: [09:54:36]protocol is kg_v1.0 [09:54:36]action value=close_receipt [09:54:36]process_action close_receipt [09:54:36]cmd_close_receipt [09:54:36]MH_GetDate [09:54:36]Write to MH i2c: F0 00 00 20 24 33 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 20 24 00 DF 24 16 67 6B 98 1E 66 43 [09:54:36]GetLastDocTimeStamp 1729504436 [09:54:36]current date 1729504479 [09:54:36]FM_GetShiftState [09:54:36]SAM_PROTO_GetShiftState [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 13 01 00 [09:54:36]Write to MH i2c: E2 08 00 21 24 80 13 01 00 00 00 00 00 C2 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:36]Read from MH i2c: E2 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 21 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EE [09:54:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:54:36]wFMCommunicate OK [09:54:36]SAM_PROTO_GetShiftState done [09:54:36]FM_GetShiftState done [09:54:36]opened in 1729469703 [09:54:36]opened+sec_in_day 1729556103 [09:54:36]quantity*price = 92037 [09:54:36]sum+1 = 92038 [09:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 920.00 Внесено: 920.00 СДАЧА: 0.00 НСП 1% : 8.14 НДС 12% : 97.74 Наличными: 920.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 116 21.10.2024 09:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69726 ФПД: 49691882909359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69726&fm=49691882909359&tin=02508201610067®Number=0000000000156251&sum=92000 [09:54:37]StoreToDocumentArchive [09:54:37]shift 194 fd 69726 [09:54:37]save to /storage/0194/doc_00069726 [09:54:37]save last doc name /storage/0194/doc_00069726 to /storage/kkm_last_doc_name [09:54:37]save OK [09:54:37]Clear old archive folders... [09:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:54:37]tlvbuf is 00C418A0 [09:54:37]SAM_PROTO_ClearQueue [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 09 00 00 [09:54:37]Write to MH i2c: E2 08 00 2E 24 80 09 00 00 00 00 00 00 C4 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]SAM_PROTO_ClearQueue done [09:54:37]KKMCreateOFDPacket [09:54:37]OFDProtocolAddRootSTLVToBuf [09:54:37]FM_MakeSignedData [09:54:37]FM_MakeSignedData [09:54:37]SAM_PROTO_SignData [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 01 02 [09:54:37]Write to MH i2c: E2 08 00 2F 24 80 0D 01 02 00 00 00 00 CC [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=255 [09:54:37]MH_SAM_APDU [09:54:37]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 33 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DF 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 10 01 00 35 04 06 00 2D 31 [09:54:37]Write to MH i2c: E2 02 01 30 24 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 33 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DF 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 10 01 00 35 04 06 00 2D 31 00 00 0C [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=9 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 02 02 04 CB 07 6E AF [09:54:38]Write to MH i2c: E2 0C 00 31 24 80 0D 02 02 04 00 CB 07 6E AF 00 00 C6 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 03 02 [09:54:38]Write to MH i2c: E2 08 00 32 24 80 0D 03 02 00 00 00 00 D1 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 32 24 00 FF 1A 22 1A E5 9F F4 72 90 00 11 [09:54:38]RAPDU: FF 1A 22 1A E5 9F F4 72 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_SignData done [09:54:38]FM_MakeSignedData done [09:54:38]CreateOFDProtocolMessage [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 11 00 00 [09:54:38]Write to MH i2c: E2 08 00 33 24 80 11 00 00 00 00 00 00 D1 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 33 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [09:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:54:38]wFMCommunicate OK [09:54:38]CreateOFDProtocolMessage done [09:54:38]OFDSenderStorePacket 69726 [09:54:38]StoreOFDPacket docnum=69726 [09:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 82 BE 06 01 59 A1 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 33 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DF 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 10 01 00 35 04 06 00 2D 31 CB 07 6E AF FF 1A 22 1A E5 9F F4 72 [09:54:38]CheckFolder [09:54:38]dirname=/storage/ofd_packets [09:54:38]CheckFolder done [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00069726 [09:54:38]NVStorageSaveData ofd_packets/00069726 [09:54:38]File name is /storage/ofd_packets/00069726 [09:54:38]Write 300 bytes [09:54:38]NVStorageSaveData done [09:54:38]OFDSenderStorePacket done [09:54:38]KKMCreateOFDPacket done [09:54:38]NVStorageSaveData kkm_last_timestamp [09:54:38]File name is /storage/kkm_last_timestamp [09:54:38]Write 4 bytes [09:54:38]NVStorageSaveData done [09:54:38]ExternCall_PrintAddStr [09:54:38]wPrintStart [09:54:38]Write to MH i2c: 01 00 00 34 24 58 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [09:54:38]RasterBufferAndPrint [09:54:38]line Счет N : (1)2885464 [09:54:38]line ИНН: 02508201610067 [09:54:38]line Контрольно-Кассовый Чек [09:54:38]line ПРОДАЖА [09:54:38]line ТРК (МРК, ГНК) : 71 [09:54:38]line Товар: 2711129700 [09:54:38]line ГАЗ-К-3 [09:54:38]line 23.660 * 38.90 [09:54:38]line = 920.37 [09:54:38]line НДС 12% НСП 1% [09:54:38]line > о реализуемом товаре [09:54:38]line ОКРУГЛЕНИЕ: -0.37 [09:54:38]line ИТОГО: 920.00 [09:54:38]line Внесено: 920.00 [09:54:38]line СДАЧА: 0.00 [09:54:38]line НСП 1% : 8.14 [09:54:38]line НДС 12% : 97.74 [09:54:38]line Наличными: 920.00 [09:54:38]line Безнал.: 0.00 [09:54:38]line Место: АЗС № 85 "Партнер Нефть" [09:54:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:54:38]line СНО: Общий режим [09:54:38]line Чек 116 21.10.2024 09:54 [09:54:38]line Смена: 194 ФФД: 1.0 [09:54:38]line ЗНМ: 0300000167 [09:54:38]line РНМ: 0000000000156251 [09:54:38]line Версия ККМ: v1.0 [09:54:38]line ФМ: 0000000000963346 [09:54:38]line ФД: 69726 [09:54:38]line ФПД: 49691882909359 [09:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095439&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69726&fm=49691882909359&tin=02508201610067®Number=0000000000156251&sum=92000 [09:54:38]OFD Sender: Processing packet 69726 [packets to send 18, broken 17] [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00069726 [09:54:38]OFD Sender: To server: pG, [09:54:38]CommunicateWithHost lk.salyk.kg:30040 [09:54:38]ConnectInit lk.salyk.kg [09:54:38]written 0, free lines is 4095 [09:54:38]Connected sock=10 [09:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 82 BE 06 01 59 A1 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 33 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 85 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DF 24 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 10 01 00 35 04 06 00 2D 31 CB 07 6E AF FF 1A 22 1A E5 9F F4 72 [09:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6D 9A 47 00 BD 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 39 36 33 33 34 36 10 04 04 00 5E 10 01 00 F4 03 04 00 83 CE 15 67 B6 04 01 00 00 30 20 D1 DC 67 E5 67 5A [09:54:38]CommunicateWithHost err = 0 [09:54:38]CheckOFDResponse [09:54:38]1017 (14) - 77093643461234 [09:54:38]1041 (16) - 0000000000963346 [09:54:38]1040 (4) - 69726 [09:54:38]1012 (4) - 21.10.2024 03:46 [09:54:38]1206 (1) - 0 [09:54:38]OFD Sender: Remove packet 69726 [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00069726 [09:54:38]NVStorageDeleteData [09:54:39]Write to MH i2c: 01 00 00 5F 24 83 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 5F 24 00 00 00 00 00 E4 0C 7A [09:54:39]RasterBufferAndPrint [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]written 0, free lines is 3306 [09:54:39]MH_Cut [09:54:39]Write to MH i2c: D1 01 00 66 24 01 5C [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 66 24 00 5B [09:54:39]Write to MH i2c: 01 00 00 67 24 8B [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]OFD Sender: No OFD packet to send [09:54:39]*** Cut start [09:54:39]*** Partial cut [09:54:39]*** CUTSNS_PIN = 1 [09:54:39]*** CUTSNS_PIN = 0 [09:54:40]*** Brake cut motor [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]*** Stop cut motor [09:54:40]*** Cut end [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 67 24 00 00 00 00 00 FF 0F A0 [09:54:40]process_action close_receipt done [09:54:40]requested_data is exist [09:54:40]produce_requested_data [09:54:40]requested_item fm.sn is exist - process it [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 68 24 80 11 00 00 00 00 00 00 06 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 68 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [09:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:54:40]wFMCommunicate OK [09:54:40]requested_item fd.num is exist - process it [09:54:40]SAM_PROTO_GetFieldsCounters [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 00 00 [09:54:40]Write to MH i2c: E2 08 00 69 24 80 13 00 00 00 00 00 00 09 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 69 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetFieldsCounters done [09:54:40]requested_item shift.num is exist - process it [09:54:40]requested_item shift.opened is exist - process it [09:54:40]req_shift_opened [09:54:40]FM_GetShiftState [09:54:40]SAM_PROTO_GetShiftState [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 01 00 [09:54:40]Write to MH i2c: E2 08 00 6A 24 80 13 01 00 00 00 00 00 0B [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 6A 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 37 [09:54:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetShiftState done [09:54:40]FM_GetShiftState done [09:54:40]req_shift_opened done [09:54:40]requested_item shift.open_date is exist - process it [09:54:40]req_shift_open_date [09:54:40]req_shift_open_date done [09:54:40]produce_requested_data done [09:54:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69726,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:54:40]process_action_free close_receipt [09:54:40]json_value_free [09:54:40]json_value_free done [09:54:40]process_json_proto returns [09:54:40]Send response to host [09:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69726,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:54:40]free response buf [09:54:40]execute_script done [09:54:40]execute_script returns [09:54:40]free content buf [09:54:40]Sock 8.Close socket [09:54:40]Sock 8.Thread stoped [09:54:44]OFD Sender: No OFD packet to send [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]accept exits with 9 [09:55:29]New connection [09:55:29]New thread 3067313508 created [09:55:29]Thread 3067456868 joined [09:55:29]Waiting for new connection... [09:55:29] Sock 9.Parse request [09:55:29]Sock 9.Check first char [09:55:29]Sock 9.First char is OK [09:55:29]request: POST /json_proto HTTP/1.0 [09:55:29]Method: POST [09:55:29]URL: /json_proto [09:55:29]Method is POST - this is cgi request [09:55:29]url: /json_proto [09:55:29]query_string will be loaded in cgi processing [09:55:29]execute_cgi json_proto POST (null) [09:55:29]execute_cgi path=json_proto method=POST [09:55:29]POST find Content-Length [09:55:29]Host: 172.17.50.3:8080 [09:55:29]Content-Length: 683 [09:55:29]Content-Type: application/json [09:55:29] [09:55:29]POST finish read [09:55:29]Found Content-Length = 683 [09:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885466", "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:55:29]execute_script... [09:55: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)2885466", "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:55:29]POST & json_proto [09:55:29]process_json_proto [09:55:29]json parsed OK: [09:55:29]protocol is kg_v1.0 [09:55:29]action value=close_receipt [09:55:29]process_action close_receipt [09:55:29]cmd_close_receipt [09:55:29]MH_GetDate [09:55:29]Write to MH i2c: F0 00 00 6B 24 7E [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: F0 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: F0 09 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: F0 09 00 6B 24 00 14 25 16 67 6B 98 1E 66 C4 [09:55:29]GetLastDocTimeStamp 1729504479 [09:55:29]current date 1729504532 [09:55:29]FM_GetShiftState [09:55:29]SAM_PROTO_GetShiftState [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 13 01 00 [09:55:29]Write to MH i2c: E2 08 00 6C 24 80 13 01 00 00 00 00 00 0D [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0E 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0E 00 6C 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 39 [09:55:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:55:29]wFMCommunicate OK [09:55:29]SAM_PROTO_GetShiftState done [09:55:29]FM_GetShiftState done [09:55:29]opened in 1729469703 [09:55:29]opened+sec_in_day 1729556103 [09:55:29]quantity*price = 100021 [09:55:29]sum+1 = 100023 [09:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 117 21.10.2024 09:55 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69727 ФПД: 154314314387152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69727&fm=154314314387152&tin=02508201610067®Number=0000000000156251&sum=100000 [09:55:30]StoreToDocumentArchive [09:55:30]shift 194 fd 69727 [09:55:30]save to /storage/0194/doc_00069727 [09:55:30]save last doc name /storage/0194/doc_00069727 to /storage/kkm_last_doc_name [09:55:30]save OK [09:55:30]Clear old archive folders... [09:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:30]tlvbuf is B6FD3A60 [09:55:30]SAM_PROTO_ClearQueue [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 09 00 00 [09:55:30]Write to MH i2c: E2 08 00 79 24 80 09 00 00 00 00 00 00 0F [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 79 24 00 90 00 11 [09:55:30]RAPDU: 90 00 [09:55:30]wFMCommunicate OK [09:55:30]SAM_PROTO_ClearQueue done [09:55:30]KKMCreateOFDPacket [09:55:30]OFDProtocolAddRootSTLVToBuf [09:55:30]FM_MakeSignedData [09:55:30]FM_MakeSignedData [09:55:30]SAM_PROTO_SignData [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 0D 01 02 [09:55:30]Write to MH i2c: E2 08 00 7A 24 80 0D 01 02 00 00 00 00 17 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 7A 24 00 90 00 12 [09:55:30]RAPDU: 90 00 [09:55:30]wFMCommunicate OK [09:55:30]wFMCommunicate request_size=255 [09:55:30]MH_SAM_APDU [09:55: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 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 75 00 00 00 F4 03 04 00 14 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 10 01 00 35 04 06 00 8C [09:55:30]Write to MH i2c: E2 02 01 7B 24 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 75 00 00 00 F4 03 04 00 14 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 10 01 00 35 04 06 00 8C 00 00 A6 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 7B 24 00 90 00 13 [09:55:30]RAPDU: 90 00 [09:55:30]wFMCommunicate OK [09:55:30]wFMCommunicate request_size=10 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 0D 02 02 05 59 19 E4 8E D0 [09:55:30]Write to MH i2c: E2 0D 00 7C 24 80 0D 02 02 05 00 59 19 E4 8E D0 00 00 D8 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 03 00 7C 24 00 90 00 14 [09:55:30]RAPDU: 90 00 [09:55:30]wFMCommunicate OK [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 0D 03 02 [09:55:30]Write to MH i2c: E2 08 00 7D 24 80 0D 03 02 00 00 00 00 1C [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0B 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0B 00 7D 24 00 9F 69 F4 4B 95 E6 C0 46 90 00 E5 [09:55:30]RAPDU: 9F 69 F4 4B 95 E6 C0 46 90 00 [09:55:30]wFMCommunicate OK [09:55:30]SAM_PROTO_SignData done [09:55:30]FM_MakeSignedData done [09:55:30]CreateOFDProtocolMessage [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 11 00 00 [09:55:30]Write to MH i2c: E2 08 00 7E 24 80 11 00 00 00 00 00 00 1C [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 17 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 17 00 7E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [09:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:55:30]wFMCommunicate OK [09:55:30]CreateOFDProtocolMessage done [09:55:30]OFDSenderStorePacket 69727 [09:55:30]StoreOFDPacket docnum=69727 [09:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B A1 07 01 79 88 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 75 00 00 00 F4 03 04 00 14 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 10 01 00 35 04 06 00 8C 59 19 E4 8E D0 9F 69 F4 4B 95 E6 C0 46 [09:55:30]CheckFolder [09:55:30]dirname=/storage/ofd_packets [09:55:30]CheckFolder done [09:55:30]ProducePacketName [09:55:30]name=ofd_packets/00069727 [09:55:30]NVStorageSaveData ofd_packets/00069727 [09:55:30]File name is /storage/ofd_packets/00069727 [09:55:30]Write 301 bytes [09:55:30]NVStorageSaveData done [09:55:30]OFDSenderStorePacket done [09:55:30]KKMCreateOFDPacket done [09:55:30]NVStorageSaveData kkm_last_timestamp [09:55:30]File name is /storage/kkm_last_timestamp [09:55:30]Write 4 bytes [09:55:30]NVStorageSaveData done [09:55:30]ExternCall_PrintAddStr [09:55:30]wPrintStart [09:55:30]Write to MH i2c: 01 00 00 7F 24 A3 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 7F 24 00 00 00 00 00 FF 0F B8 [09:55:30]RasterBufferAndPrint [09:55:30]line Счет N : (1)2885466 [09:55:30]line ИНН: 02508201610067 [09:55:30]line Контрольно-Кассовый Чек [09:55:30]line ПРОДАЖА [09:55:30]line ТРК (МРК, ГНК) : 33 [09:55:30]line Товар: 2710124500 [09:55:30]line Аи-95-К-5 [09:55:30]line 13.480 * 74.20 [09:55:30]line = 1000.22 [09:55:30]line НДС 12% НСП 1% [09:55:30]line > о реализуемом товаре [09:55:30]line ОКРУГЛЕНИЕ: -0.22 [09:55:30]line ИТОГО: 1000.00 [09:55:30]line Внесено: 1000.00 [09:55:30]line СДАЧА: 0.00 [09:55:30]line НСП 1% : 8.85 [09:55:30]line НДС 12% : 106.22 [09:55:30]line Наличными: 1000.00 [09:55:30]line Безнал.: 0.00 [09:55:30]line Место: АЗС № 85 "Партнер Нефть" [09:55:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:55:30]line СНО: Общий режим [09:55:30]line Чек 117 21.10.2024 09:55 [09:55:30]line Смена: 194 ФФД: 1.0 [09:55:30]line ЗНМ: 0300000167 [09:55:30]line РНМ: 0000000000156251 [09:55:30]line Версия ККМ: v1.0 [09:55:30]line ФМ: 0000000000963346 [09:55:30]line ФД: 69727 [09:55:30]line ФПД: 154314314387152 [09:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69727&fm=154314314387152&tin=02508201610067®Number=0000000000156251&sum=100000 [09:55:31]OFD Sender: Processing packet 69727 [packets to send 18, broken 17] [09:55:31]ProducePacketName [09:55:31]name=ofd_packets/00069727 [09:55:31]OFD Sender: To server: pG, [09:55:31]CommunicateWithHost lk.salyk.kg:30040 [09:55:31]ConnectInit lk.salyk.kg [09:55:31]written 0, free lines is 4095 [09:55:31]Connected sock=10 [09:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B A1 07 01 79 88 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 75 00 00 00 F4 03 04 00 14 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 10 01 00 35 04 06 00 8C 59 19 E4 8E D0 9F 69 F4 4B 95 E6 C0 46 [09:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A7 48 47 00 49 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 10 01 00 F4 03 04 00 B8 CE 15 67 B6 04 01 00 00 F6 B6 B6 CC CC 89 DC 66 [09:55:31]CommunicateWithHost err = 0 [09:55:31]CheckOFDResponse [09:55:31]1017 (14) - 77093643461234 [09:55:31]1041 (16) - 0000000000963346 [09:55:31]1040 (4) - 69727 [09:55:31]1012 (4) - 21.10.2024 03:47 [09:55:31]1206 (1) - 0 [09:55:31]OFD Sender: Remove packet 69727 [09:55:31]ProducePacketName [09:55:31]name=ofd_packets/00069727 [09:55:31]NVStorageDeleteData [09:55:31]Write to MH i2c: 01 00 00 AA 24 CE [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 07 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 E4 0C C5 [09:55:31]RasterBufferAndPrint [09:55:31]line [09:55:31]line [09:55:31]line [09:55:31]line [09:55:31]line [09:55:31]written 0, free lines is 3306 [09:55:31]MH_Cut [09:55:31]Write to MH i2c: D1 01 00 B1 24 01 A7 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: D1 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: D1 01 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: D1 01 00 B1 24 00 A6 [09:55:31]Write to MH i2c: 01 00 00 B2 24 D6 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:32]OFD Sender: No OFD packet to send [09:55:32]*** Cut start [09:55:32]*** Partial cut [09:55:32]*** CUTSNS_PIN = 1 [09:55:32]*** CUTSNS_PIN = 0 [09:55:32]*** Brake cut motor [09:55:33]Read from MH i2c: 01 [09:55:33]MH_I2C_Read... [09:55:33]*** Stop cut motor [09:55:33]*** Cut end [09:55:33]Read from MH i2c: 01 07 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: 01 07 00 B2 24 00 00 00 00 00 FF 0F EB [09:55:33]process_action close_receipt done [09:55:33]requested_data is exist [09:55:33]produce_requested_data [09:55:33]requested_item fm.sn is exist - process it [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 11 00 00 [09:55:33]Write to MH i2c: E2 08 00 B3 24 80 11 00 00 00 00 00 00 51 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 17 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 17 00 B3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [09:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:55:33]wFMCommunicate OK [09:55:33]requested_item fd.num is exist - process it [09:55:33]SAM_PROTO_GetFieldsCounters [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 13 00 00 [09:55:33]Write to MH i2c: E2 08 00 B4 24 80 13 00 00 00 00 00 00 54 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 62 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 62 00 B4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_GetFieldsCounters done [09:55:33]requested_item shift.num is exist - process it [09:55:33]requested_item shift.opened is exist - process it [09:55:33]req_shift_opened [09:55:33]FM_GetShiftState [09:55:33]SAM_PROTO_GetShiftState [09:55:33]wFMCommunicate request_size=4 [09:55:33]MH_SAM_APDU [09:55:33]CAPDU: 80 13 01 00 [09:55:33]Write to MH i2c: E2 08 00 B5 24 80 13 01 00 00 00 00 00 56 [09:55:33]Write i2c OK [09:55:33]MH_I2C_Read... [09:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:33]Read from MH i2c: E2 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 [09:55:33]MH_I2C_Read... [09:55:33]Read from MH i2c: E2 0E 00 B5 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 82 [09:55:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:55:33]wFMCommunicate OK [09:55:33]SAM_PROTO_GetShiftState done [09:55:33]FM_GetShiftState done [09:55:33]req_shift_opened done [09:55:33]requested_item shift.open_date is exist - process it [09:55:33]req_shift_open_date [09:55:33]req_shift_open_date done [09:55:33]produce_requested_data done [09:55:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69727,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:55:33]process_action_free close_receipt [09:55:33]json_value_free [09:55:33]json_value_free done [09:55:33]process_json_proto returns [09:55:33]Send response to host [09:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69727,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:55:33]free response buf [09:55:33]execute_script done [09:55:33]execute_script returns [09:55:33]free content buf [09:55:33]Sock 9.Close socket [09:55:33]Sock 9.Thread stoped [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:26]accept exits with 8 [09:56:26]New connection [09:56:26]New thread 3067456868 created [09:56:26]Thread 3067313508 joined [09:56:26]Waiting for new connection... [09:56:26] Sock 8.Parse request [09:56:26]Sock 8.Check first char [09:56:26]Sock 8.First char is OK [09:56:26]request: POST /json_proto HTTP/1.0 [09:56:26]Method: POST [09:56:26]URL: /json_proto [09:56:26]Method is POST - this is cgi request [09:56:26]url: /json_proto [09:56:26]query_string will be loaded in cgi processing [09:56:26]execute_cgi json_proto POST (null) [09:56:26]execute_cgi path=json_proto method=POST [09:56:26]POST find Content-Length [09:56:26]Host: 172.17.50.3:8080 [09:56:26]Content-Length: 683 [09:56:26]Content-Type: application/json [09:56:26] [09:56:26]POST finish read [09:56:26]Found Content-Length = 683 [09:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:56:26]execute_script... [09:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:56:26]POST & json_proto [09:56:26]process_json_proto [09:56:26]json parsed OK: [09:56:26]protocol is kg_v1.0 [09:56:26]action value=close_receipt [09:56:26]process_action close_receipt [09:56:26]cmd_close_receipt [09:56:26]MH_GetDate [09:56:26]Write to MH i2c: F0 00 00 B6 24 C9 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 09 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 09 00 B6 24 00 4D 25 16 67 6B 98 1E 66 48 [09:56:26]GetLastDocTimeStamp 1729504532 [09:56:26]current date 1729504589 [09:56:26]FM_GetShiftState [09:56:26]SAM_PROTO_GetShiftState [09:56:26]wFMCommunicate request_size=4 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 13 01 00 [09:56:26]Write to MH i2c: E2 08 00 B7 24 80 13 01 00 00 00 00 00 58 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 B7 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 84 [09:56:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:56:26]wFMCommunicate OK [09:56:26]SAM_PROTO_GetShiftState done [09:56:26]FM_GetShiftState done [09:56:26]opened in 1729469703 [09:56:26]opened+sec_in_day 1729556103 [09:56:26]quantity*price = 150056 [09:56:26]sum+1 = 150058 [09:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 118 21.10.2024 09:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69728 ФПД: 242739245739829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69728&fm=242739245739829&tin=02508201610067®Number=0000000000156251&sum=150000 [09:56:27]StoreToDocumentArchive [09:56:27]shift 194 fd 69728 [09:56:27]save to /storage/0194/doc_00069728 [09:56:27]save last doc name /storage/0194/doc_00069728 to /storage/kkm_last_doc_name [09:56:27]save OK [09:56:27]Clear old archive folders... [09:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:27]tlvbuf is 00C485D0 [09:56:27]SAM_PROTO_ClearQueue [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 09 00 00 [09:56:27]Write to MH i2c: E2 08 00 C4 24 80 09 00 00 00 00 00 00 5A [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [09:56:27]RAPDU: 90 00 [09:56:27]wFMCommunicate OK [09:56:27]SAM_PROTO_ClearQueue done [09:56:27]KKMCreateOFDPacket [09:56:27]OFDProtocolAddRootSTLVToBuf [09:56:27]FM_MakeSignedData [09:56:27]FM_MakeSignedData [09:56:27]SAM_PROTO_SignData [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 0D 01 02 [09:56:27]Write to MH i2c: E2 08 00 C5 24 80 0D 01 02 00 00 00 00 62 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [09:56:27]RAPDU: 90 00 [09:56:27]wFMCommunicate OK [09:56:27]wFMCommunicate request_size=255 [09:56:27]MH_SAM_APDU [09:56: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 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 76 00 00 00 F4 03 04 00 4D 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 10 01 00 35 04 06 00 DC [09:56:27]Write to MH i2c: E2 02 01 C6 24 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 76 00 00 00 F4 03 04 00 4D 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 10 01 00 35 04 06 00 DC 00 00 A8 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 03 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [09:56:28]RAPDU: 90 00 [09:56:28]wFMCommunicate OK [09:56:28]wFMCommunicate request_size=10 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 0D 02 02 05 C5 22 83 EF 35 [09:56:28]Write to MH i2c: E2 0D 00 C7 24 80 0D 02 02 05 00 C5 22 83 EF 35 00 00 FD [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 03 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [09:56:28]RAPDU: 90 00 [09:56:28]wFMCommunicate OK [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 0D 03 02 [09:56:28]Write to MH i2c: E2 08 00 C8 24 80 0D 03 02 00 00 00 00 67 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0B 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0B 00 C8 24 00 AF F8 F7 B2 B8 9B EC 25 90 00 1C [09:56:28]RAPDU: AF F8 F7 B2 B8 9B EC 25 90 00 [09:56:28]wFMCommunicate OK [09:56:28]SAM_PROTO_SignData done [09:56:28]FM_MakeSignedData done [09:56:28]CreateOFDProtocolMessage [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 11 00 00 [09:56:28]Write to MH i2c: E2 08 00 C9 24 80 11 00 00 00 00 00 00 67 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 17 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 17 00 C9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [09:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:56:28]wFMCommunicate OK [09:56:28]CreateOFDProtocolMessage done [09:56:28]OFDSenderStorePacket 69728 [09:56:28]StoreOFDPacket docnum=69728 [09:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CF 5B 07 01 CE A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 76 00 00 00 F4 03 04 00 4D 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 10 01 00 35 04 06 00 DC C5 22 83 EF 35 AF F8 F7 B2 B8 9B EC 25 [09:56:28]CheckFolder [09:56:28]dirname=/storage/ofd_packets [09:56:28]CheckFolder done [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00069728 [09:56:28]NVStorageSaveData ofd_packets/00069728 [09:56:28]File name is /storage/ofd_packets/00069728 [09:56:28]Write 301 bytes [09:56:28]NVStorageSaveData done [09:56:28]OFDSenderStorePacket done [09:56:28]KKMCreateOFDPacket done [09:56:28]NVStorageSaveData kkm_last_timestamp [09:56:28]File name is /storage/kkm_last_timestamp [09:56:28]Write 4 bytes [09:56:28]NVStorageSaveData done [09:56:28]ExternCall_PrintAddStr [09:56:28]wPrintStart [09:56:28]Write to MH i2c: 01 00 00 CA 24 EE [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 CA 24 00 00 00 00 00 FF 0F 03 [09:56:28]RasterBufferAndPrint [09:56:28]line Счет N : (1)2885468 [09:56:28]line ИНН: 02508201610067 [09:56:28]line Контрольно-Кассовый Чек [09:56:28]line ПРОДАЖА [09:56:28]line ТРК (МРК, ГНК) : 12 [09:56:28]line Товар: 2710124130 [09:56:28]line Аи-92-К-5 [09:56:28]line 22.430 * 66.90 [09:56:28]line = 1500.57 [09:56:28]line НДС 12% НСП 1% [09:56:28]line > о реализуемом товаре [09:56:28]line ОКРУГЛЕНИЕ: -0.57 [09:56:28]line ИТОГО: 1500.00 [09:56:28]line Внесено: 1500.00 [09:56:28]line СДАЧА: 0.00 [09:56:28]line НСП 1% : 13.28 [09:56:28]line НДС 12% : 159.35 [09:56:28]line Наличными: 1500.00 [09:56:28]line Безнал.: 0.00 [09:56:28]line Место: АЗС № 85 "Партнер Нефть" [09:56:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:56:28]line СНО: Общий режим [09:56:28]line Чек 118 21.10.2024 09:56 [09:56:28]line Смена: 194 ФФД: 1.0 [09:56:28]line ЗНМ: 0300000167 [09:56:28]line РНМ: 0000000000156251 [09:56:28]line Версия ККМ: v1.0 [09:56:28]line ФМ: 0000000000963346 [09:56:28]line ФД: 69728 [09:56:28]line ФПД: 242739245739829 [09:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095629&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69728&fm=242739245739829&tin=02508201610067®Number=0000000000156251&sum=150000 [09:56:28]OFD Sender: Processing packet 69728 [packets to send 18, broken 17] [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00069728 [09:56:28]OFD Sender: To server: pG, [09:56:28]CommunicateWithHost lk.salyk.kg:30040 [09:56:28]ConnectInit lk.salyk.kg [09:56:28]written 0, free lines is 4095 [09:56:28]Connected sock=10 [09:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CF 5B 07 01 CE A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 76 00 00 00 F4 03 04 00 4D 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 10 01 00 35 04 06 00 DC C5 22 83 EF 35 AF F8 F7 B2 B8 9B EC 25 [09:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8E 57 47 00 33 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 10 01 00 F4 03 04 00 F1 CE 15 67 B6 04 01 00 00 A8 59 8F 31 07 7D 19 93 [09:56:28]CommunicateWithHost err = 0 [09:56:28]CheckOFDResponse [09:56:28]1017 (14) - 77093643461234 [09:56:28]1041 (16) - 0000000000963346 [09:56:28]1040 (4) - 69728 [09:56:28]1012 (4) - 21.10.2024 03:48 [09:56:28]1206 (1) - 0 [09:56:28]OFD Sender: Remove packet 69728 [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00069728 [09:56:28]NVStorageDeleteData [09:56:29]Write to MH i2c: 01 00 00 F5 24 19 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 07 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: 01 07 00 F5 24 00 00 00 00 00 E6 0C 12 [09:56:29]RasterBufferAndPrint [09:56:29]line [09:56:29]line [09:56:29]line [09:56:29]line [09:56:29]line [09:56:29]written 0, free lines is 3309 [09:56:29]MH_Cut [09:56:29]Write to MH i2c: D1 01 00 FC 24 01 F2 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: D1 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: D1 01 00 [09:56:29]MH_I2C_Read... [09:56:29]Read from MH i2c: D1 01 00 FC 24 00 F1 [09:56:29]Write to MH i2c: 01 00 00 FD 24 21 [09:56:29]Write i2c OK [09:56:29]MH_I2C_Read... [09:56:29]OFD Sender: No OFD packet to send [09:56:29]*** Cut start [09:56:29]*** Partial cut [09:56:29]*** CUTSNS_PIN = 1 [09:56:29]*** CUTSNS_PIN = 0 [09:56:30]*** Brake cut motor [09:56:30]Read from MH i2c: 01 [09:56:30]MH_I2C_Read... [09:56:30]*** Stop cut motor [09:56:30]*** Cut end [09:56:30]Read from MH i2c: 01 07 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: 01 07 00 FD 24 00 00 00 00 00 FF 0F 36 [09:56:30]process_action close_receipt done [09:56:30]requested_data is exist [09:56:30]produce_requested_data [09:56:30]requested_item fm.sn is exist - process it [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 11 00 00 [09:56:30]Write to MH i2c: E2 08 00 FE 24 80 11 00 00 00 00 00 00 9C [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:30]Read from MH i2c: E2 17 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 17 00 FE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [09:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:56:30]wFMCommunicate OK [09:56:30]requested_item fd.num is exist - process it [09:56:30]SAM_PROTO_GetFieldsCounters [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 13 00 00 [09:56:30]Write to MH i2c: E2 08 00 FF 24 80 13 00 00 00 00 00 00 9F [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 62 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 62 00 FF 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [09:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:30]wFMCommunicate OK [09:56:30]SAM_PROTO_GetFieldsCounters done [09:56:30]requested_item shift.num is exist - process it [09:56:30]requested_item shift.opened is exist - process it [09:56:30]req_shift_opened [09:56:30]FM_GetShiftState [09:56:30]SAM_PROTO_GetShiftState [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 13 01 00 [09:56:30]Write to MH i2c: E2 08 00 00 25 80 13 01 00 00 00 00 00 A2 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 0E 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 0E 00 00 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CE [09:56:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:56:30]wFMCommunicate OK [09:56:30]SAM_PROTO_GetShiftState done [09:56:30]FM_GetShiftState done [09:56:30]req_shift_opened done [09:56:30]requested_item shift.open_date is exist - process it [09:56:30]req_shift_open_date [09:56:30]req_shift_open_date done [09:56:30]produce_requested_data done [09:56:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69728,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:56:30]process_action_free close_receipt [09:56:30]json_value_free [09:56:30]json_value_free done [09:56:30]process_json_proto returns [09:56:30]Send response to host [09:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69728,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:56:30]free response buf [09:56:30]execute_script done [09:56:30]execute_script returns [09:56:30]free content buf [09:56:30]Sock 8.Close socket [09:56:30]Sock 8.Thread stoped [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:40]accept exits with 9 [09:56:40]New connection [09:56:40]New thread 3067313508 created [09:56:40]Thread 3067456868 joined [09:56:40]Waiting for new connection... [09:56:40] Sock 9.Parse request [09:56:40]Sock 9.Check first char [09:56:40]Sock 9.First char is OK [09:56:40]request: POST /json_proto HTTP/1.0 [09:56:40]Method: POST [09:56:40]URL: /json_proto [09:56:40]Method is POST - this is cgi request [09:56:40]url: /json_proto [09:56:40]query_string will be loaded in cgi processing [09:56:40]execute_cgi json_proto POST (null) [09:56:40]execute_cgi path=json_proto method=POST [09:56:40]POST find Content-Length [09:56:40]Host: 172.17.50.3:8080 [09:56:40]Content-Length: 675 [09:56:40]Content-Type: application/json [09:56:40] [09:56:40]POST finish read [09:56:40]Found Content-Length = 675 [09:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:56:40]execute_script... [09:56: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)2885467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:56:40]POST & json_proto [09:56:40]process_json_proto [09:56:40]json parsed OK: [09:56:40]protocol is kg_v1.0 [09:56:40]action value=close_receipt [09:56:40]process_action close_receipt [09:56:40]cmd_close_receipt [09:56:40]MH_GetDate [09:56:40]Write to MH i2c: F0 00 00 01 25 15 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: F0 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: F0 09 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: F0 09 00 01 25 00 5B 25 16 67 6B 98 1E 66 A2 [09:56:40]GetLastDocTimeStamp 1729504589 [09:56:40]current date 1729504603 [09:56:40]FM_GetShiftState [09:56:40]SAM_PROTO_GetShiftState [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 13 01 00 [09:56:40]Write to MH i2c: E2 08 00 02 25 80 13 01 00 00 00 00 00 A4 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0E 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0E 00 02 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D0 [09:56:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:56:40]wFMCommunicate OK [09:56:40]SAM_PROTO_GetShiftState done [09:56:40]FM_GetShiftState done [09:56:40]opened in 1729469703 [09:56:40]opened+sec_in_day 1729556103 [09:56:40]quantity*price = 50063 [09:56:40]sum+1 = 50064 [09:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 119 21.10.2024 09:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69729 ФПД: 80182132248667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69729&fm=80182132248667&tin=02508201610067®Number=0000000000156251&sum=50000 [09:56:41]StoreToDocumentArchive [09:56:41]shift 194 fd 69729 [09:56:41]save to /storage/0194/doc_00069729 [09:56:41]save last doc name /storage/0194/doc_00069729 to /storage/kkm_last_doc_name [09:56:41]save OK [09:56:41]Clear old archive folders... [09:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:41]tlvbuf is B6F559D0 [09:56:41]SAM_PROTO_ClearQueue [09:56:41]wFMCommunicate request_size=4 [09:56:41]MH_SAM_APDU [09:56:41]CAPDU: 80 09 00 00 [09:56:41]Write to MH i2c: E2 08 00 0F 25 80 09 00 00 00 00 00 00 A6 [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:41]Read from MH i2c: E2 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: E2 03 00 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [09:56:41]RAPDU: 90 00 [09:56:41]wFMCommunicate OK [09:56:41]SAM_PROTO_ClearQueue done [09:56:41]KKMCreateOFDPacket [09:56:41]OFDProtocolAddRootSTLVToBuf [09:56:41]FM_MakeSignedData [09:56:41]FM_MakeSignedData [09:56:41]SAM_PROTO_SignData [09:56:41]wFMCommunicate request_size=4 [09:56:41]MH_SAM_APDU [09:56:41]CAPDU: 80 0D 01 02 [09:56:41]Write to MH i2c: E2 08 00 10 25 80 0D 01 02 00 00 00 00 AE [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:41]Read from MH i2c: E2 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: E2 03 00 [09:56:41]MH_I2C_Read... [09:56:41]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [09:56:41]RAPDU: 90 00 [09:56:41]wFMCommunicate OK [09:56:41]wFMCommunicate request_size=255 [09:56:41]MH_SAM_APDU [09:56:41]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 77 00 00 00 F4 03 04 00 5B 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 10 01 00 35 04 06 00 48 EC DB 82 [09:56:41]Write to MH i2c: E2 02 01 11 25 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 77 00 00 00 F4 03 04 00 5B 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 10 01 00 35 04 06 00 48 EC DB 82 00 00 EE [09:56:41]Write i2c OK [09:56:41]MH_I2C_Read... [09:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:42]Read from MH i2c: E2 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 03 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [09:56:42]RAPDU: 90 00 [09:56:42]wFMCommunicate OK [09:56:42]wFMCommunicate request_size=7 [09:56:42]MH_SAM_APDU [09:56:42]CAPDU: 80 0D 02 02 02 90 5B [09:56:42]Write to MH i2c: E2 0A 00 12 25 80 0D 02 02 02 00 90 5B 00 00 A0 [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:42]Read from MH i2c: E2 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 03 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [09:56:42]RAPDU: 90 00 [09:56:42]wFMCommunicate OK [09:56:42]wFMCommunicate request_size=4 [09:56:42]MH_SAM_APDU [09:56:42]CAPDU: 80 0D 03 02 [09:56:42]Write to MH i2c: E2 08 00 13 25 80 0D 03 02 00 00 00 00 B3 [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:42]Read from MH i2c: E2 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 0B 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 0B 00 13 25 00 E8 A4 DD 01 37 E1 07 85 90 00 C2 [09:56:42]RAPDU: E8 A4 DD 01 37 E1 07 85 90 00 [09:56:42]wFMCommunicate OK [09:56:42]SAM_PROTO_SignData done [09:56:42]FM_MakeSignedData done [09:56:42]CreateOFDProtocolMessage [09:56:42]wFMCommunicate request_size=4 [09:56:42]MH_SAM_APDU [09:56:42]CAPDU: 80 11 00 00 [09:56:42]Write to MH i2c: E2 08 00 14 25 80 11 00 00 00 00 00 00 B3 [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:42]Read from MH i2c: E2 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 17 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: E2 17 00 14 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [09:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:56:42]wFMCommunicate OK [09:56:42]CreateOFDProtocolMessage done [09:56:42]OFDSenderStorePacket 69729 [09:56:42]StoreOFDPacket docnum=69729 [09:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B0 AC 04 01 50 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 77 00 00 00 F4 03 04 00 5B 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 10 01 00 35 04 06 00 48 EC DB 82 90 5B E8 A4 DD 01 37 E1 07 85 [09:56:42]CheckFolder [09:56:42]dirname=/storage/ofd_packets [09:56:42]CheckFolder done [09:56:42]ProducePacketName [09:56:42]name=ofd_packets/00069729 [09:56:42]NVStorageSaveData ofd_packets/00069729 [09:56:42]File name is /storage/ofd_packets/00069729 [09:56:42]Write 298 bytes [09:56:42]NVStorageSaveData done [09:56:42]OFDSenderStorePacket done [09:56:42]KKMCreateOFDPacket done [09:56:42]NVStorageSaveData kkm_last_timestamp [09:56:42]File name is /storage/kkm_last_timestamp [09:56:42]Write 4 bytes [09:56:42]NVStorageSaveData done [09:56:42]ExternCall_PrintAddStr [09:56:42]wPrintStart [09:56:42]Write to MH i2c: 01 00 00 15 25 3A [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 07 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 07 00 15 25 00 00 00 00 00 FF 0F 4F [09:56:42]RasterBufferAndPrint [09:56:42]line Счет N : (1)2885467 [09:56:42]line ИНН: 02508201610067 [09:56:42]line Контрольно-Кассовый Чек [09:56:42]line ПРОДАЖА [09:56:42]line ТРК (МРК, ГНК) : 51 [09:56:42]line Товар: 2710194210 [09:56:42]line ДТ-К-5 [09:56:42]line 6.570 * 76.20 [09:56:42]line = 500.63 [09:56:42]line НДС 12% НСП 1% [09:56:42]line > о реализуемом товаре [09:56:42]line ОКРУГЛЕНИЕ: -0.63 [09:56:42]line ИТОГО: 500.00 [09:56:42]line Внесено: 500.00 [09:56:42]line СДАЧА: 0.00 [09:56:42]line НСП 1% : 4.43 [09:56:42]line НДС 12% : 53.16 [09:56:42]line Наличными: 500.00 [09:56:42]line Безнал.: 0.00 [09:56:42]line Место: АЗС № 85 "Партнер Нефть" [09:56:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:56:42]line СНО: Общий режим [09:56:42]line Чек 119 21.10.2024 09:56 [09:56:42]line Смена: 194 ФФД: 1.0 [09:56:42]line ЗНМ: 0300000167 [09:56:42]line РНМ: 0000000000156251 [09:56:42]line Версия ККМ: v1.0 [09:56:42]line ФМ: 0000000000963346 [09:56:42]line ФД: 69729 [09:56:42]line ФПД: 80182132248667 [09:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69729&fm=80182132248667&tin=02508201610067®Number=0000000000156251&sum=50000 [09:56:42]OFD Sender: Processing packet 69729 [packets to send 18, broken 17] [09:56:42]ProducePacketName [09:56:42]name=ofd_packets/00069729 [09:56:42]OFD Sender: To server: pG, [09:56:42]CommunicateWithHost lk.salyk.kg:30040 [09:56:42]ConnectInit lk.salyk.kg [09:56:42]written 0, free lines is 4095 [09:56:42]Connected sock=10 [09:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B0 AC 04 01 50 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 77 00 00 00 F4 03 04 00 5B 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 10 01 00 35 04 06 00 48 EC DB 82 90 5B E8 A4 DD 01 37 E1 07 85 [09:56:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 92 2B 47 00 B2 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 39 36 33 33 34 36 10 04 04 00 61 10 01 00 F4 03 04 00 FF CE 15 67 B6 04 01 00 00 B7 75 A7 EB D8 C8 F1 43 [09:56:42]CommunicateWithHost err = 0 [09:56:42]CheckOFDResponse [09:56:42]1017 (14) - 77093643461234 [09:56:42]1041 (16) - 0000000000963346 [09:56:42]1040 (4) - 69729 [09:56:42]1012 (4) - 21.10.2024 03:48 [09:56:42]1206 (1) - 0 [09:56:42]OFD Sender: Remove packet 69729 [09:56:42]ProducePacketName [09:56:42]name=ofd_packets/00069729 [09:56:42]NVStorageDeleteData [09:56:42]Write to MH i2c: 01 00 00 40 25 65 [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 07 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: 01 07 00 40 25 00 00 00 00 00 E0 0C 58 [09:56:42]RasterBufferAndPrint [09:56:42]line [09:56:42]line [09:56:42]line [09:56:42]line [09:56:42]line [09:56:42]written 0, free lines is 3305 [09:56:42]MH_Cut [09:56:42]Write to MH i2c: D1 01 00 47 25 01 3E [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: D1 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: D1 01 00 [09:56:42]MH_I2C_Read... [09:56:42]Read from MH i2c: D1 01 00 47 25 00 3D [09:56:42]Write to MH i2c: 01 00 00 48 25 6D [09:56:42]Write i2c OK [09:56:42]MH_I2C_Read... [09:56:43]OFD Sender: No OFD packet to send [09:56:43]*** Cut start [09:56:43]*** Partial cut [09:56:43]*** CUTSNS_PIN = 1 [09:56:43]*** CUTSNS_PIN = 0 [09:56:43]*** Brake cut motor [09:56:44]Read from MH i2c: 01 [09:56:44]*** Stop cut motor [09:56:44]*** Cut end [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: 01 07 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: 01 07 00 48 25 00 00 00 00 00 FF 0F 82 [09:56:44]process_action close_receipt done [09:56:44]requested_data is exist [09:56:44]produce_requested_data [09:56:44]requested_item fm.sn is exist - process it [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 11 00 00 [09:56:44]Write to MH i2c: E2 08 00 49 25 80 11 00 00 00 00 00 00 E8 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 17 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 17 00 49 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [09:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:56:44]wFMCommunicate OK [09:56:44]requested_item fd.num is exist - process it [09:56:44]SAM_PROTO_GetFieldsCounters [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 13 00 00 [09:56:44]Write to MH i2c: E2 08 00 4A 25 80 13 00 00 00 00 00 00 EB [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 62 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 62 00 4A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:44]wFMCommunicate OK [09:56:44]SAM_PROTO_GetFieldsCounters done [09:56:44]requested_item shift.num is exist - process it [09:56:44]requested_item shift.opened is exist - process it [09:56:44]req_shift_opened [09:56:44]FM_GetShiftState [09:56:44]SAM_PROTO_GetShiftState [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 13 01 00 [09:56:44]Write to MH i2c: E2 08 00 4B 25 80 13 01 00 00 00 00 00 ED [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 0E 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 0E 00 4B 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 19 [09:56:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:56:44]wFMCommunicate OK [09:56:44]SAM_PROTO_GetShiftState done [09:56:44]FM_GetShiftState done [09:56:44]req_shift_opened done [09:56:44]requested_item shift.open_date is exist - process it [09:56:44]req_shift_open_date [09:56:44]req_shift_open_date done [09:56:44]produce_requested_data done [09:56:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69729,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:56:44]process_action_free close_receipt [09:56:44]json_value_free [09:56:44]json_value_free done [09:56:44]process_json_proto returns [09:56:44]Send response to host [09:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69729,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:56:44]free response buf [09:56:44]execute_script done [09:56:44]execute_script returns [09:56:44]free content buf [09:56:44]Sock 9.Close socket [09:56:44]Sock 9.Thread stoped [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:42]accept exits with 8 [09:57:42]New connection [09:57:42]New thread 3067456868 created [09:57:42]Thread 3067313508 joined [09:57:42]Waiting for new connection... [09:57:42] Sock 8.Parse request [09:57:42]Sock 8.Check first char [09:57:42]Sock 8.First char is OK [09:57:42]request: POST /json_proto HTTP/1.0 [09:57:42]Method: POST [09:57:42]URL: /json_proto [09:57:42]Method is POST - this is cgi request [09:57:42]url: /json_proto [09:57:42]query_string will be loaded in cgi processing [09:57:42]execute_cgi json_proto POST (null) [09:57:42]execute_cgi path=json_proto method=POST [09:57:42]POST find Content-Length [09:57:42]Host: 172.17.50.3:8080 [09:57:42]Content-Length: 978 [09:57:42]Content-Type: application/json [09:57:42] [09:57:42]POST finish read [09:57:42]Found Content-Length = 978 [09:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:42]execute_script... [09:57:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:42]POST & json_proto [09:57:42]process_json_proto [09:57:42]json parsed OK: [09:57:42]protocol is kg_v1.0 [09:57:42]action value=close_receipt [09:57:42]process_action close_receipt [09:57:42]cmd_close_receipt [09:57:42]MH_GetDate [09:57:42]Write to MH i2c: F0 00 00 4C 25 60 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: F0 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: F0 09 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: F0 09 00 4C 25 00 99 25 16 67 6B 98 1E 66 2B [09:57:42]GetLastDocTimeStamp 1729504603 [09:57:42]current date 1729504665 [09:57:42]FM_GetShiftState [09:57:42]SAM_PROTO_GetShiftState [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 13 01 00 [09:57:42]Write to MH i2c: E2 08 00 4D 25 80 13 01 00 00 00 00 00 EF [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0E 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0E 00 4D 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1B [09:57:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:57:42]wFMCommunicate OK [09:57:42]SAM_PROTO_GetShiftState done [09:57:42]FM_GetShiftState done [09:57:42]opened in 1729469703 [09:57:42]opened+sec_in_day 1729556103 [09:57:42]quantity*price = 500004 [09:57:42]sum+1 = 500006 [09:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 120 21.10.2024 09:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69730 ФПД: 63784791316262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69730&fm=63784791316262&tin=02508201610067®Number=0000000000156251&sum=500000 [09:57:43]StoreToDocumentArchive [09:57:43]shift 194 fd 69730 [09:57:43]save to /storage/0194/doc_00069730 [09:57:43]save last doc name /storage/0194/doc_00069730 to /storage/kkm_last_doc_name [09:57:43]save OK [09:57:43]Clear old archive folders... [09:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:43]tlvbuf is B6FD3230 [09:57:43]SAM_PROTO_ClearQueue [09:57:43]wFMCommunicate request_size=4 [09:57:43]MH_SAM_APDU [09:57:43]CAPDU: 80 09 00 00 [09:57:43]Write to MH i2c: E2 08 00 5A 25 80 09 00 00 00 00 00 00 F1 [09:57:43]Write i2c OK [09:57:43]MH_I2C_Read... [09:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:43]Read from MH i2c: E2 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: E2 03 00 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: E2 03 00 5A 25 00 90 00 F3 [09:57:43]RAPDU: 90 00 [09:57:43]wFMCommunicate OK [09:57:43]SAM_PROTO_ClearQueue done [09:57:43]KKMCreateOFDPacket [09:57:43]OFDProtocolAddRootSTLVToBuf [09:57:43]FM_MakeSignedData [09:57:43]FM_MakeSignedData [09:57:43]SAM_PROTO_SignData [09:57:43]wFMCommunicate request_size=4 [09:57:43]MH_SAM_APDU [09:57:43]CAPDU: 80 0D 01 02 [09:57:43]Write to MH i2c: E2 08 00 5B 25 80 0D 01 02 00 00 00 00 F9 [09:57:43]Write i2c OK [09:57:43]MH_I2C_Read... [09:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:43]Read from MH i2c: E2 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: E2 03 00 [09:57:43]MH_I2C_Read... [09:57:43]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [09:57:43]RAPDU: 90 00 [09:57:43]wFMCommunicate OK [09:57:43]wFMCommunicate request_size=255 [09:57:43]MH_SAM_APDU [09:57: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 99 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 10 01 00 35 04 06 00 3A 03 0D D4 [09:57:43]Write to MH i2c: E2 02 01 5C 25 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 99 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 10 01 00 35 04 06 00 3A 03 0D D4 00 00 81 [09:57:43]Write i2c OK [09:57:43]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 03 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [09:57:44]RAPDU: 90 00 [09:57:44]wFMCommunicate OK [09:57:44]wFMCommunicate request_size=7 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 0D 02 02 02 17 26 [09:57:44]Write to MH i2c: E2 0A 00 5D 25 80 0D 02 02 02 00 17 26 00 00 3D [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 03 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [09:57:44]RAPDU: 90 00 [09:57:44]wFMCommunicate OK [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 0D 03 02 [09:57:44]Write to MH i2c: E2 08 00 5E 25 80 0D 03 02 00 00 00 00 FE [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0B 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0B 00 5E 25 00 EB FE 31 EB D2 70 C6 D5 90 00 E1 [09:57:44]RAPDU: EB FE 31 EB D2 70 C6 D5 90 00 [09:57:44]wFMCommunicate OK [09:57:44]SAM_PROTO_SignData done [09:57:44]FM_MakeSignedData done [09:57:44]CreateOFDProtocolMessage [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 11 00 00 [09:57:44]Write to MH i2c: E2 08 00 5F 25 80 11 00 00 00 00 00 00 FE [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 5F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [09:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:57:44]wFMCommunicate OK [09:57:44]CreateOFDProtocolMessage done [09:57:44]OFDSenderStorePacket 69730 [09:57:44]StoreOFDPacket docnum=69730 [09:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E5 30 04 01 56 5E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 99 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 10 01 00 35 04 06 00 3A 03 0D D4 17 26 EB FE 31 EB D2 70 C6 D5 [09:57:44]CheckFolder [09:57:44]dirname=/storage/ofd_packets [09:57:44]CheckFolder done [09:57:44]ProducePacketName [09:57:44]name=ofd_packets/00069730 [09:57:44]NVStorageSaveData ofd_packets/00069730 [09:57:44]File name is /storage/ofd_packets/00069730 [09:57:44]Write 298 bytes [09:57:44]NVStorageSaveData done [09:57:44]OFDSenderStorePacket done [09:57:44]KKMCreateOFDPacket done [09:57:44]NVStorageSaveData kkm_last_timestamp [09:57:44]File name is /storage/kkm_last_timestamp [09:57:44]Write 4 bytes [09:57:44]NVStorageSaveData done [09:57:44]ExternCall_PrintAddStr [09:57:44]wPrintStart [09:57:44]Write to MH i2c: 01 00 00 60 25 85 [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: 01 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: 01 07 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 FF 0F 9A [09:57:44]RasterBufferAndPrint [09:57:44]line Счет N : (1)2885469 [09:57:44]line ИНН: 02508201610067 [09:57:44]line Контрольно-Кассовый Чек [09:57:44]line ПРОДАЖА [09:57:44]line ТРК (МРК, ГНК) : 61 [09:57:44]line Товар: 2710194210 [09:57:44]line ДТ-К-5 [09:57:44]line 66.490 * 75.20 [09:57:44]line = 5000.05 [09:57:44]line НДС 12% НСП 1% [09:57:44]line > о реализуемом товаре [09:57:44]line ОКРУГЛЕНИЕ: -0.05 [09:57:44]line ИТОГО: 5000.00 [09:57:44]line Внесено: 5000.00 [09:57:44]line СДАЧА: 0.00 [09:57:44]line НСП 1% : 44.25 [09:57:44]line НДС 12% : 530.98 [09:57:44]line Наличными: 5000.00 [09:57:44]line Безнал.: 0.00 [09:57:44]line Место: АЗС № 85 "Партнер Нефть" [09:57:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:57:44]line СНО: Общий режим [09:57:44]line Чек 120 21.10.2024 09:57 [09:57:44]line Смена: 194 ФФД: 1.0 [09:57:44]line ЗНМ: 0300000167 [09:57:44]line РНМ: 0000000000156251 [09:57:44]line Версия ККМ: v1.0 [09:57:44]line [09:57:44]line Дисконтная программа [09:57:44]line ДТ [09:57:44]line номер 85 [09:57:44]line сэкономлено 66.49 сом [09:57:44]line ФМ: 0000000000963346 [09:57:44]line ФД: 69730 [09:57:44]line ФПД: 63784791316262 [09:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69730&fm=63784791316262&tin=02508201610067®Number=0000000000156251&sum=500000 [09:57:44]OFD Sender: Processing packet 69730 [packets to send 18, broken 17] [09:57:44]ProducePacketName [09:57:44]name=ofd_packets/00069730 [09:57:44]OFD Sender: To server: pG, [09:57:44]CommunicateWithHost lk.salyk.kg:30040 [09:57:44]ConnectInit lk.salyk.kg [09:57:44]written 0, free lines is 4095 [09:57:44]Connected sock=10 [09:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E5 30 04 01 56 5E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 99 25 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 10 01 00 35 04 06 00 3A 03 0D D4 17 26 EB FE 31 EB D2 70 C6 D5 [09:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 39 B6 47 00 E7 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 10 01 00 F4 03 04 00 3D CF 15 67 B6 04 01 00 00 AF 37 3E B3 CA AB C9 75 [09:57:44]CommunicateWithHost err = 0 [09:57:44]CheckOFDResponse [09:57:44]1017 (14) - 77093643461234 [09:57:44]1041 (16) - 0000000000963346 [09:57:44]1040 (4) - 69730 [09:57:44]1012 (4) - 21.10.2024 03:49 [09:57:44]1206 (1) - 0 [09:57:44]OFD Sender: Remove packet 69730 [09:57:44]ProducePacketName [09:57:44]name=ofd_packets/00069730 [09:57:44]NVStorageDeleteData [09:57:45]Write to MH i2c: 01 00 00 90 25 B5 [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: 01 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: 01 07 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: 01 07 00 90 25 00 00 00 00 00 98 0C 60 [09:57:45]RasterBufferAndPrint [09:57:45]line [09:57:45]line [09:57:45]line [09:57:45]line [09:57:45]line [09:57:45]written 0, free lines is 3230 [09:57:45]MH_Cut [09:57:45]Write to MH i2c: D1 01 00 97 25 01 8E [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: D1 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: D1 01 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: D1 01 00 97 25 00 8D [09:57:45]Write to MH i2c: 01 00 00 98 25 BD [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]OFD Sender: No OFD packet to send [09:57:45]*** Cut start [09:57:45]*** Partial cut [09:57:45]*** CUTSNS_PIN = 1 [09:57:45]*** CUTSNS_PIN = 0 [09:57:46]*** Brake cut motor [09:57:46]Read from MH i2c: 01 [09:57:46]MH_I2C_Read... [09:57:46]*** Stop cut motor [09:57:46]*** Cut end [09:57:46]Read from MH i2c: 01 07 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: 01 07 00 98 25 00 00 00 00 00 FF 0F D2 [09:57:46]process_action close_receipt done [09:57:46]requested_data is exist [09:57:46]produce_requested_data [09:57:46]requested_item fm.sn is exist - process it [09:57:46]wFMCommunicate request_size=4 [09:57:46]MH_SAM_APDU [09:57:46]CAPDU: 80 11 00 00 [09:57:46]Write to MH i2c: E2 08 00 99 25 80 11 00 00 00 00 00 00 38 [09:57:46]Write i2c OK [09:57:46]MH_I2C_Read... [09:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:46]Read from MH i2c: E2 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 17 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 17 00 99 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [09:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:57:46]wFMCommunicate OK [09:57:46]requested_item fd.num is exist - process it [09:57:46]SAM_PROTO_GetFieldsCounters [09:57:46]wFMCommunicate request_size=4 [09:57:46]MH_SAM_APDU [09:57:46]CAPDU: 80 13 00 00 [09:57:46]Write to MH i2c: E2 08 00 9A 25 80 13 00 00 00 00 00 00 3B [09:57:46]Write i2c OK [09:57:46]MH_I2C_Read... [09:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:46]Read from MH i2c: E2 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 62 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 62 00 9A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:46]wFMCommunicate OK [09:57:46]SAM_PROTO_GetFieldsCounters done [09:57:46]requested_item shift.num is exist - process it [09:57:46]requested_item shift.opened is exist - process it [09:57:46]req_shift_opened [09:57:46]FM_GetShiftState [09:57:46]SAM_PROTO_GetShiftState [09:57:46]wFMCommunicate request_size=4 [09:57:46]MH_SAM_APDU [09:57:46]CAPDU: 80 13 01 00 [09:57:46]Write to MH i2c: E2 08 00 9B 25 80 13 01 00 00 00 00 00 3D [09:57:46]Write i2c OK [09:57:46]MH_I2C_Read... [09:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:46]Read from MH i2c: E2 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 0E 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 0E 00 9B 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 69 [09:57:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [09:57:46]wFMCommunicate OK [09:57:46]SAM_PROTO_GetShiftState done [09:57:46]FM_GetShiftState done [09:57:46]req_shift_opened done [09:57:46]requested_item shift.open_date is exist - process it [09:57:46]req_shift_open_date [09:57:46]req_shift_open_date done [09:57:46]produce_requested_data done [09:57:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69730,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [09:57:46]process_action_free close_receipt [09:57:46]json_value_free [09:57:46]json_value_free done [09:57:46]process_json_proto returns [09:57:46]Send response to host [09:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69730,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [09:57:46]free response buf [09:57:46]execute_script done [09:57:46]execute_script returns [09:57:46]free content buf [09:57:46]Sock 8.Close socket [09:57:46]Sock 8.Thread stoped [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:04]accept exits with 9 [10:00:04]New connection [10:00:04]New thread 3067313508 created [10:00:04]Thread 3067456868 joined [10:00:04]Waiting for new connection... [10:00:04] Sock 9.Parse request [10:00:04]Sock 9.Check first char [10:00:04]Sock 9.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.50.3:8080 [10:00:04]Content-Length: 978 [10:00:04]Content-Type: application/json [10:00:04] [10:00:04]POST finish read [10:00:04]Found Content-Length = 978 [10:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "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" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "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=close_receipt [10:00:04]process_action close_receipt [10:00:04]cmd_close_receipt [10:00:04]MH_GetDate [10:00:04]Write to MH i2c: F0 00 00 9C 25 B0 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 09 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: F0 09 00 9C 25 00 27 26 16 67 6B 98 1E 66 0A [10:00:04]GetLastDocTimeStamp 1729504665 [10:00:04]current date 1729504807 [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 9D 25 80 13 01 00 00 00 00 00 3F [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 9D 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6B [10:00:04]RAPDU: 09 00 01 07 9D 15 67 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]opened in 1729469703 [10:00:04]opened+sec_in_day 1729556103 [10:00:04]quantity*price = 500004 [10:00:04]sum+1 = 500006 [10:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 121 21.10.2024 10:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69731 ФПД: 31237250168743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69731&fm=31237250168743&tin=02508201610067®Number=0000000000156251&sum=500000 [10:00:05]StoreToDocumentArchive [10:00:05]shift 194 fd 69731 [10:00:05]save to /storage/0194/doc_00069731 [10:00:05]save last doc name /storage/0194/doc_00069731 to /storage/kkm_last_doc_name [10:00:05]save OK [10:00:05]Clear old archive folders... [10:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:05]tlvbuf is 00C6C7D0 [10:00:05]SAM_PROTO_ClearQueue [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 09 00 00 [10:00:05]Write to MH i2c: E2 08 00 AA 25 80 09 00 00 00 00 00 00 41 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:05]Read from MH i2c: E2 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: E2 03 00 AA 25 00 90 00 43 [10:00:05]RAPDU: 90 00 [10:00:05]wFMCommunicate OK [10:00:05]SAM_PROTO_ClearQueue done [10:00:05]KKMCreateOFDPacket [10:00:05]OFDProtocolAddRootSTLVToBuf [10:00:05]FM_MakeSignedData [10:00:05]FM_MakeSignedData [10:00:05]SAM_PROTO_SignData [10:00:05]wFMCommunicate request_size=4 [10:00:05]MH_SAM_APDU [10:00:05]CAPDU: 80 0D 01 02 [10:00:05]Write to MH i2c: E2 08 00 AB 25 80 0D 01 02 00 00 00 00 49 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [10:00:06]RAPDU: 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=255 [10:00:06]MH_SAM_APDU [10:00:06]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 27 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 10 01 00 35 04 06 00 1C 68 FD 33 [10:00:06]Write to MH i2c: E2 02 01 AC 25 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 27 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 10 01 00 35 04 06 00 1C 68 FD 33 00 00 F8 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [10:00:06]RAPDU: 90 00 [10:00:06]wFMCommunicate OK [10:00:06]wFMCommunicate request_size=7 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 0D 02 02 02 37 A7 [10:00:06]Write to MH i2c: E2 0A 00 AD 25 80 0D 02 02 02 00 37 A7 00 00 2E [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [10:00:06]RAPDU: 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 0D 03 02 [10:00:06]Write to MH i2c: E2 08 00 AE 25 80 0D 03 02 00 00 00 00 4E [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0B 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0B 00 AE 25 00 29 C7 C9 A4 10 CB E3 24 90 00 8E [10:00:06]RAPDU: 29 C7 C9 A4 10 CB E3 24 90 00 [10:00:06]wFMCommunicate OK [10:00:06]SAM_PROTO_SignData done [10:00:06]FM_MakeSignedData done [10:00:06]CreateOFDProtocolMessage [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 11 00 00 [10:00:06]Write to MH i2c: E2 08 00 AF 25 80 11 00 00 00 00 00 00 4E [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 AF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [10:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:00:06]wFMCommunicate OK [10:00:06]CreateOFDProtocolMessage done [10:00:06]OFDSenderStorePacket 69731 [10:00:06]StoreOFDPacket docnum=69731 [10:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1A CC 04 01 16 B3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 27 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 10 01 00 35 04 06 00 1C 68 FD 33 37 A7 29 C7 C9 A4 10 CB E3 24 [10:00:06]CheckFolder [10:00:06]dirname=/storage/ofd_packets [10:00:06]CheckFolder done [10:00:06]ProducePacketName [10:00:06]name=ofd_packets/00069731 [10:00:06]NVStorageSaveData ofd_packets/00069731 [10:00:06]File name is /storage/ofd_packets/00069731 [10:00:06]Write 298 bytes [10:00:06]NVStorageSaveData done [10:00:06]OFDSenderStorePacket done [10:00:06]KKMCreateOFDPacket done [10:00:06]NVStorageSaveData kkm_last_timestamp [10:00:06]File name is /storage/kkm_last_timestamp [10:00:06]Write 4 bytes [10:00:06]NVStorageSaveData done [10:00:06]ExternCall_PrintAddStr [10:00:06]wPrintStart [10:00:06]Write to MH i2c: 01 00 00 B0 25 D5 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [10:00:06]RasterBufferAndPrint [10:00:06]line Счет N : (1)2885470 [10:00:06]line ИНН: 02508201610067 [10:00:06]line Контрольно-Кассовый Чек [10:00:06]line ПРОДАЖА [10:00:06]line ТРК (МРК, ГНК) : 61 [10:00:06]line Товар: 2710194210 [10:00:06]line ДТ-К-5 [10:00:06]line 66.490 * 75.20 [10:00:06]line = 5000.05 [10:00:06]line НДС 12% НСП 1% [10:00:06]line > о реализуемом товаре [10:00:06]line ОКРУГЛЕНИЕ: -0.05 [10:00:06]line ИТОГО: 5000.00 [10:00:06]line Внесено: 5000.00 [10:00:06]line СДАЧА: 0.00 [10:00:06]line НСП 1% : 44.25 [10:00:06]line НДС 12% : 530.98 [10:00:06]line Наличными: 5000.00 [10:00:06]line Безнал.: 0.00 [10:00:06]line Место: АЗС № 85 "Партнер Нефть" [10:00:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:00:06]line СНО: Общий режим [10:00:06]line Чек 121 21.10.2024 10:00 [10:00:06]line Смена: 194 ФФД: 1.0 [10:00:06]line ЗНМ: 0300000167 [10:00:06]line РНМ: 0000000000156251 [10:00:06]line Версия ККМ: v1.0 [10:00:06]line [10:00:06]line Дисконтная программа [10:00:06]line ДТ [10:00:06]line номер 85 [10:00:06]line сэкономлено 66.49 сом [10:00:06]line ФМ: 0000000000963346 [10:00:06]line ФД: 69731 [10:00:06]line ФПД: 31237250168743 [10:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69731&fm=31237250168743&tin=02508201610067®Number=0000000000156251&sum=500000 [10:00:06]OFD Sender: Processing packet 69731 [packets to send 18, broken 17] [10:00:06]ProducePacketName [10:00:06]name=ofd_packets/00069731 [10:00:06]OFD Sender: To server: pG, [10:00:06]CommunicateWithHost lk.salyk.kg:30040 [10:00:06]ConnectInit lk.salyk.kg [10:00:06]written 0, free lines is 4095 [10:00:06]Connected sock=10 [10:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1A CC 04 01 16 B3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 27 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 10 01 00 35 04 06 00 1C 68 FD 33 37 A7 29 C7 C9 A4 10 CB E3 24 [10:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6E F6 47 00 9C 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 10 01 00 F4 03 04 00 CC CF 15 67 B6 04 01 00 00 60 A1 0D 7E C1 50 A3 34 [10:00:07]CommunicateWithHost err = 0 [10:00:07]CheckOFDResponse [10:00:07]1017 (14) - 77093643461234 [10:00:07]1041 (16) - 0000000000963346 [10:00:07]1040 (4) - 69731 [10:00:07]1012 (4) - 21.10.2024 03:51 [10:00:07]1206 (1) - 0 [10:00:07]OFD Sender: Remove packet 69731 [10:00:07]ProducePacketName [10:00:07]name=ofd_packets/00069731 [10:00:07]NVStorageDeleteData [10:00:07]Write to MH i2c: 01 00 00 E0 25 05 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: 01 07 00 E0 25 00 00 00 00 00 8A 0C A2 [10:00:07]RasterBufferAndPrint [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]line [10:00:07]written 0, free lines is 3217 [10:00:07]MH_Cut [10:00:07]Write to MH i2c: D1 01 00 E7 25 01 DE [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 01 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: D1 01 00 E7 25 00 DD [10:00:07]Write to MH i2c: 01 00 00 E8 25 0D [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]OFD Sender: No OFD packet to send [10:00:08]*** Cut start [10:00:08]*** Partial cut [10:00:08]*** CUTSNS_PIN = 1 [10:00:08]*** CUTSNS_PIN = 0 [10:00:08]*** Brake cut motor [10:00:08]Read from MH i2c: 01 [10:00:08]MH_I2C_Read... [10:00:08]*** Stop cut motor [10:00:08]*** Cut end [10:00:08]Read from MH i2c: 01 07 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [10:00:08]process_action close_receipt done [10:00:08]requested_data is exist [10:00:08]produce_requested_data [10:00:08]requested_item fm.sn is exist - process it [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 11 00 00 [10:00:08]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [10:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:00:08]wFMCommunicate OK [10:00:08]requested_item fd.num is exist - process it [10:00:08]SAM_PROTO_GetFieldsCounters [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 00 00 [10:00:08]Write to MH i2c: E2 08 00 EA 25 80 13 00 00 00 00 00 00 8B [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 62 00 EA 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetFieldsCounters done [10:00:08]requested_item shift.num is exist - process it [10:00:08]requested_item shift.opened is exist - process it [10:00:08]req_shift_opened [10:00:08]FM_GetShiftState [10:00:08]SAM_PROTO_GetShiftState [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 13 01 00 [10:00:08]Write to MH i2c: E2 08 00 EB 25 80 13 01 00 00 00 00 00 8D [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 0E 00 EB 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B9 [10:00:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_GetShiftState done [10:00:08]FM_GetShiftState done [10:00:08]req_shift_opened done [10:00:08]requested_item shift.open_date is exist - process it [10:00:08]req_shift_open_date [10:00:08]req_shift_open_date done [10:00:08]produce_requested_data done [10:00:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69731,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:00:08]process_action_free close_receipt [10:00:08]json_value_free [10:00:08]json_value_free done [10:00:08]process_json_proto returns [10:00:08]Send response to host [10:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69731,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:00:08]free response buf [10:00:08]execute_script done [10:00:08]execute_script returns [10:00:08]free content buf [10:00:08]Sock 9.Close socket [10:00:08]Sock 9.Thread stoped [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:14]accept exits with 8 [10:02:14]New connection [10:02:14]New thread 3067456868 created [10:02:14]Thread 3067313508 joined [10:02:14]Waiting for new connection... [10:02:14] Sock 8.Parse request [10:02:14]Sock 8.Check first char [10:02:14]Sock 8.First char is OK [10:02:14]request: POST /json_proto HTTP/1.0 [10:02:14]Method: POST [10:02:14]URL: /json_proto [10:02:14]Method is POST - this is cgi request [10:02:14]url: /json_proto [10:02:14]query_string will be loaded in cgi processing [10:02:14]execute_cgi json_proto POST (null) [10:02:14]execute_cgi path=json_proto method=POST [10:02:14]POST find Content-Length [10:02:14]Host: 172.17.50.3:8080 [10:02:14]Content-Length: 680 [10:02:14]Content-Type: application/json [10:02:14] [10:02:14]POST finish read [10:02:14]Found Content-Length = 680 [10:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:02:14]execute_script... [10:02: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)2885471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:02:14]POST & json_proto [10:02:14]process_json_proto [10:02:14]json parsed OK: [10:02:14]protocol is kg_v1.0 [10:02:14]action value=close_receipt [10:02:14]process_action close_receipt [10:02:14]cmd_close_receipt [10:02:14]MH_GetDate [10:02:14]Write to MH i2c: F0 00 00 EC 25 00 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 09 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 09 00 EC 25 00 A9 26 16 67 6B 98 1E 66 DC [10:02:14]GetLastDocTimeStamp 1729504807 [10:02:14]current date 1729504937 [10:02:14]FM_GetShiftState [10:02:14]SAM_PROTO_GetShiftState [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 13 01 00 [10:02:14]Write to MH i2c: E2 08 00 ED 25 80 13 01 00 00 00 00 00 8F [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 ED 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BB [10:02:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:02:14]wFMCommunicate OK [10:02:14]SAM_PROTO_GetShiftState done [10:02:14]FM_GetShiftState done [10:02:14]opened in 1729469703 [10:02:14]opened+sec_in_day 1729556103 [10:02:14]quantity*price = 100050 [10:02:14]sum+1 = 100052 [10:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 122 21.10.2024 10:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69732 ФПД: 204444096120768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69732&fm=204444096120768&tin=02508201610067®Number=0000000000156251&sum=100000 [10:02:15]StoreToDocumentArchive [10:02:15]shift 194 fd 69732 [10:02:15]save to /storage/0194/doc_00069732 [10:02:15]save last doc name /storage/0194/doc_00069732 to /storage/kkm_last_doc_name [10:02:15]save OK [10:02:15]Clear old archive folders... [10:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:15]tlvbuf is B6FD3750 [10:02:15]SAM_PROTO_ClearQueue [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 09 00 00 [10:02:15]Write to MH i2c: E2 08 00 FA 25 80 09 00 00 00 00 00 00 91 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_ClearQueue done [10:02:15]KKMCreateOFDPacket [10:02:15]OFDProtocolAddRootSTLVToBuf [10:02:15]FM_MakeSignedData [10:02:15]FM_MakeSignedData [10:02:15]SAM_PROTO_SignData [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 01 02 [10:02:15]Write to MH i2c: E2 08 00 FB 25 80 0D 01 02 00 00 00 00 99 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=255 [10:02:15]MH_SAM_APDU [10:02: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 32 31 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 7A 00 00 00 F4 03 04 00 A9 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 10 01 00 35 04 06 00 B9 F0 D9 B9 [10:02:15]Write to MH i2c: E2 02 01 FC 25 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 32 31 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 7A 00 00 00 F4 03 04 00 A9 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 10 01 00 35 04 06 00 B9 F0 D9 B9 00 00 50 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=7 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 02 02 02 C7 C0 [10:02:15]Write to MH i2c: E2 0A 00 FD 25 80 0D 02 02 02 00 C7 C0 00 00 27 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 03 02 [10:02:15]Write to MH i2c: E2 08 00 FE 25 80 0D 03 02 00 00 00 00 9E [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 FE 25 00 23 09 B4 4C 1D 53 03 BD 90 00 FB [10:02:15]RAPDU: 23 09 B4 4C 1D 53 03 BD 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_SignData done [10:02:15]FM_MakeSignedData done [10:02:15]CreateOFDProtocolMessage [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:15]wFMCommunicate OK [10:02:15]CreateOFDProtocolMessage done [10:02:15]OFDSenderStorePacket 69732 [10:02:15]StoreOFDPacket docnum=69732 [10:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 0A 4F 04 01 A5 73 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 32 31 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 7A 00 00 00 F4 03 04 00 A9 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 10 01 00 35 04 06 00 B9 F0 D9 B9 C7 C0 23 09 B4 4C 1D 53 03 BD [10:02:15]CheckFolder [10:02:15]dirname=/storage/ofd_packets [10:02:15]CheckFolder done [10:02:15]ProducePacketName [10:02:15]name=ofd_packets/00069732 [10:02:15]NVStorageSaveData ofd_packets/00069732 [10:02:15]File name is /storage/ofd_packets/00069732 [10:02:15]Write 298 bytes [10:02:15]NVStorageSaveData done [10:02:15]OFDSenderStorePacket done [10:02:15]KKMCreateOFDPacket done [10:02:15]NVStorageSaveData kkm_last_timestamp [10:02:15]File name is /storage/kkm_last_timestamp [10:02:15]Write 4 bytes [10:02:15]NVStorageSaveData done [10:02:15]ExternCall_PrintAddStr [10:02:15]wPrintStart [10:02:15]Write to MH i2c: 01 00 00 00 26 26 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [10:02:16]RasterBufferAndPrint [10:02:16]line Счет N : (1)2885471 [10:02:16]line ИНН: 02508201610067 [10:02:16]line Контрольно-Кассовый Чек [10:02:16]line ПРОДАЖА [10:02:16]line ТРК (МРК, ГНК) : 51 [10:02:16]line Товар: 2710194210 [10:02:16]line ДТ-К-5 [10:02:16]line 13.130 * 76.20 [10:02:16]line = 1000.51 [10:02:16]line НДС 12% НСП 1% [10:02:16]line > о реализуемом товаре [10:02:16]line ОКРУГЛЕНИЕ: -0.51 [10:02:16]line ИТОГО: 1000.00 [10:02:16]line Внесено: 1000.00 [10:02:16]line СДАЧА: 0.00 [10:02:16]line НСП 1% : 8.85 [10:02:16]line НДС 12% : 106.25 [10:02:16]line Наличными: 1000.00 [10:02:16]line Безнал.: 0.00 [10:02:16]line Место: АЗС № 85 "Партнер Нефть" [10:02:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:02:16]line СНО: Общий режим [10:02:16]line Чек 122 21.10.2024 10:02 [10:02:16]line Смена: 194 ФФД: 1.0 [10:02:16]line ЗНМ: 0300000167 [10:02:16]line РНМ: 0000000000156251 [10:02:16]line Версия ККМ: v1.0 [10:02:16]line ФМ: 0000000000963346 [10:02:16]line ФД: 69732 [10:02:16]line ФПД: 204444096120768 [10:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69732&fm=204444096120768&tin=02508201610067®Number=0000000000156251&sum=100000 [10:02:16]OFD Sender: Processing packet 69732 [packets to send 18, broken 17] [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00069732 [10:02:16]OFD Sender: To server: pG, [10:02:16]CommunicateWithHost lk.salyk.kg:30040 [10:02:16]ConnectInit lk.salyk.kg [10:02:16]written 0, free lines is 4095 [10:02:16]Connected sock=10 [10:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 0A 4F 04 01 A5 73 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 32 31 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 7A 00 00 00 F4 03 04 00 A9 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 10 01 00 35 04 06 00 B9 F0 D9 B9 C7 C0 23 09 B4 4C 1D 53 03 BD [10:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4E C1 47 00 87 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 10 01 00 F4 03 04 00 4D D0 15 67 B6 04 01 00 00 D1 53 54 B5 5D 46 B1 AA [10:02:16]CommunicateWithHost err = 0 [10:02:16]CheckOFDResponse [10:02:16]1017 (14) - 77093643461234 [10:02:16]1041 (16) - 0000000000963346 [10:02:16]1040 (4) - 69732 [10:02:16]1012 (4) - 21.10.2024 03:53 [10:02:16]1206 (1) - 0 [10:02:16]OFD Sender: Remove packet 69732 [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00069732 [10:02:16]NVStorageDeleteData [10:02:16]Write to MH i2c: 01 00 00 2B 26 51 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 2B 26 00 00 00 00 00 E4 0C 48 [10:02:16]RasterBufferAndPrint [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]written 0, free lines is 3306 [10:02:16]MH_Cut [10:02:16]Write to MH i2c: D1 01 00 32 26 01 2A [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 01 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 01 00 32 26 00 29 [10:02:16]Write to MH i2c: 01 00 00 33 26 59 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:17]OFD Sender: No OFD packet to send [10:02:17]*** Cut start [10:02:17]*** Partial cut [10:02:17]*** CUTSNS_PIN = 1 [10:02:17]*** CUTSNS_PIN = 0 [10:02:17]*** Brake cut motor [10:02:18]Read from MH i2c: 01 [10:02:18]MH_I2C_Read... [10:02:18]*** Stop cut motor [10:02:18]*** Cut end [10:02:18]Read from MH i2c: 01 07 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [10:02:18]process_action close_receipt done [10:02:18]requested_data is exist [10:02:18]produce_requested_data [10:02:18]requested_item fm.sn is exist - process it [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 11 00 00 [10:02:18]Write to MH i2c: E2 08 00 34 26 80 11 00 00 00 00 00 00 D4 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 17 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 17 00 34 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [10:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:18]wFMCommunicate OK [10:02:18]requested_item fd.num is exist - process it [10:02:18]SAM_PROTO_GetFieldsCounters [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 13 00 00 [10:02:18]Write to MH i2c: E2 08 00 35 26 80 13 00 00 00 00 00 00 D7 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 62 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 62 00 35 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [10:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:18]wFMCommunicate OK [10:02:18]SAM_PROTO_GetFieldsCounters done [10:02:18]requested_item shift.num is exist - process it [10:02:18]requested_item shift.opened is exist - process it [10:02:18]req_shift_opened [10:02:18]FM_GetShiftState [10:02:18]SAM_PROTO_GetShiftState [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 13 01 00 [10:02:18]Write to MH i2c: E2 08 00 36 26 80 13 01 00 00 00 00 00 D9 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 36 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 05 [10:02:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:02:18]wFMCommunicate OK [10:02:18]SAM_PROTO_GetShiftState done [10:02:18]FM_GetShiftState done [10:02:18]req_shift_opened done [10:02:18]requested_item shift.open_date is exist - process it [10:02:18]req_shift_open_date [10:02:18]req_shift_open_date done [10:02:18]produce_requested_data done [10:02:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69732,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:02:18]process_action_free close_receipt [10:02:18]json_value_free [10:02:18]json_value_free done [10:02:18]process_json_proto returns [10:02:18]Send response to host [10:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69732,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:02:18]free response buf [10:02:18]execute_script done [10:02:18]execute_script returns [10:02:18]free content buf [10:02:18]Sock 8.Close socket [10:02:18]Sock 8.Thread stoped [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:45]accept exits with 9 [10:02:45]New connection [10:02:45]New thread 3067313508 created [10:02:45]Thread 3067456868 joined [10:02:45]Waiting for new connection... [10:02:45] Sock 9.Parse request [10:02:45]Sock 9.Check first char [10:02:45]Sock 9.First char is OK [10:02:45]request: POST /json_proto HTTP/1.0 [10:02:45]Method: POST [10:02:45]URL: /json_proto [10:02:45]Method is POST - this is cgi request [10:02:45]url: /json_proto [10:02:45]query_string will be loaded in cgi processing [10:02:45]execute_cgi json_proto POST (null) [10:02:45]execute_cgi path=json_proto method=POST [10:02:45]POST find Content-Length [10:02:45]Host: 172.17.50.3:8080 [10:02:45]Content-Length: 678 [10:02:45]Content-Type: application/json [10:02:45] [10:02:45]POST finish read [10:02:45]Found Content-Length = 678 [10:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885472", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:45]execute_script... [10:02: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)2885472", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:45]POST & json_proto [10:02:45]process_json_proto [10:02:45]json parsed OK: [10:02:45]protocol is kg_v1.0 [10:02:45]action value=close_receipt [10:02:45]process_action close_receipt [10:02:45]cmd_close_receipt [10:02:45]MH_GetDate [10:02:45]Write to MH i2c: F0 00 00 37 26 4C [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: F0 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: F0 09 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: F0 09 00 37 26 00 C8 26 16 67 6B 98 1E 66 47 [10:02:45]GetLastDocTimeStamp 1729504937 [10:02:45]current date 1729504968 [10:02:45]FM_GetShiftState [10:02:45]SAM_PROTO_GetShiftState [10:02:45]wFMCommunicate request_size=4 [10:02:45]MH_SAM_APDU [10:02:45]CAPDU: 80 13 01 00 [10:02:45]Write to MH i2c: E2 08 00 38 26 80 13 01 00 00 00 00 00 DB [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:45]Read from MH i2c: E2 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 38 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 07 [10:02:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:02:45]wFMCommunicate OK [10:02:45]SAM_PROTO_GetShiftState done [10:02:45]FM_GetShiftState done [10:02:45]opened in 1729469703 [10:02:45]opened+sec_in_day 1729556103 [10:02:45]quantity*price = 50041 [10:02:45]sum+1 = 50042 [10:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 123 21.10.2024 10:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69733 ФПД: 33213422794510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69733&fm=33213422794510&tin=02508201610067®Number=0000000000156251&sum=50000 [10:02:46]StoreToDocumentArchive [10:02:46]shift 194 fd 69733 [10:02:46]save to /storage/0194/doc_00069733 [10:02:46]save last doc name /storage/0194/doc_00069733 to /storage/kkm_last_doc_name [10:02:46]save OK [10:02:46]Clear old archive folders... [10:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:46]tlvbuf is 00C78DD0 [10:02:46]SAM_PROTO_ClearQueue [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 09 00 00 [10:02:46]Write to MH i2c: E2 08 00 45 26 80 09 00 00 00 00 00 00 DD [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [10:02:46]RAPDU: 90 00 [10:02:46]wFMCommunicate OK [10:02:46]SAM_PROTO_ClearQueue done [10:02:46]KKMCreateOFDPacket [10:02:46]OFDProtocolAddRootSTLVToBuf [10:02:46]FM_MakeSignedData [10:02:46]FM_MakeSignedData [10:02:46]SAM_PROTO_SignData [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 0D 01 02 [10:02:46]Write to MH i2c: E2 08 00 46 26 80 0D 01 02 00 00 00 00 E5 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [10:02:46]RAPDU: 90 00 [10:02:46]wFMCommunicate OK [10:02:46]wFMCommunicate request_size=255 [10:02:46]MH_SAM_APDU [10:02: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C8 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 10 01 00 35 04 06 00 1E [10:02:46]Write to MH i2c: E2 02 01 47 26 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C8 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 10 01 00 35 04 06 00 1E 00 00 AA [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [10:02:46]RAPDU: 90 00 [10:02:46]wFMCommunicate OK [10:02:46]wFMCommunicate request_size=10 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 0D 02 02 05 35 1A 44 77 0E [10:02:46]Write to MH i2c: E2 0D 00 48 26 80 0D 02 02 05 00 35 1A 44 77 0E 00 00 0A [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:46]Read from MH i2c: E2 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: E2 03 00 48 26 00 90 00 E2 [10:02:46]RAPDU: 90 00 [10:02:46]wFMCommunicate OK [10:02:46]wFMCommunicate request_size=4 [10:02:46]MH_SAM_APDU [10:02:46]CAPDU: 80 0D 03 02 [10:02:46]Write to MH i2c: E2 08 00 49 26 80 0D 03 02 00 00 00 00 EA [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 0B 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 0B 00 49 26 00 BE 12 23 AF DC 36 29 74 90 00 3C [10:02:47]RAPDU: BE 12 23 AF DC 36 29 74 90 00 [10:02:47]wFMCommunicate OK [10:02:47]SAM_PROTO_SignData done [10:02:47]FM_MakeSignedData done [10:02:47]CreateOFDProtocolMessage [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 11 00 00 [10:02:47]Write to MH i2c: E2 08 00 4A 26 80 11 00 00 00 00 00 00 EA [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 4A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [10:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:47]wFMCommunicate OK [10:02:47]CreateOFDProtocolMessage done [10:02:47]OFDSenderStorePacket 69733 [10:02:47]StoreOFDPacket docnum=69733 [10:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E C4 07 01 D1 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C8 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 10 01 00 35 04 06 00 1E 35 1A 44 77 0E BE 12 23 AF DC 36 29 74 [10:02:47]CheckFolder [10:02:47]dirname=/storage/ofd_packets [10:02:47]CheckFolder done [10:02:47]ProducePacketName [10:02:47]name=ofd_packets/00069733 [10:02:47]NVStorageSaveData ofd_packets/00069733 [10:02:47]File name is /storage/ofd_packets/00069733 [10:02:47]Write 301 bytes [10:02:47]NVStorageSaveData done [10:02:47]OFDSenderStorePacket done [10:02:47]KKMCreateOFDPacket done [10:02:47]NVStorageSaveData kkm_last_timestamp [10:02:47]File name is /storage/kkm_last_timestamp [10:02:47]Write 4 bytes [10:02:47]NVStorageSaveData done [10:02:47]ExternCall_PrintAddStr [10:02:47]wPrintStart [10:02:47]Write to MH i2c: 01 00 00 4B 26 71 [10:02:47]OFD Sender: Processing packet 69733 [packets to send 18, broken 17] [10:02:47]ProducePacketName [10:02:47]name=ofd_packets/00069733 [10:02:47]OFD Sender: To server: pG, [10:02:47]CommunicateWithHost lk.salyk.kg:30040 [10:02:47]ConnectInit lk.salyk.kg [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [10:02:47]RasterBufferAndPrint [10:02:47]line Счет N : (1)2885472 [10:02:47]line ИНН: 02508201610067 [10:02:47]line Контрольно-Кассовый Чек [10:02:47]line ПРОДАЖА [10:02:47]line ТРК (МРК, ГНК) : 32 [10:02:47]line Товар: 2710124130 [10:02:47]line Аи-92-К-5 [10:02:47]line 7.480 * 66.90 [10:02:47]line = 500.41 [10:02:47]line НДС 12% НСП 1% [10:02:47]line > о реализуемом товаре [10:02:47]line ОКРУГЛЕНИЕ: -0.41 [10:02:47]line ИТОГО: 500.00 [10:02:47]line Внесено: 500.00 [10:02:47]line СДАЧА: 0.00 [10:02:47]line НСП 1% : 4.43 [10:02:47]line НДС 12% : 53.14 [10:02:47]line Наличными: 500.00 [10:02:47]line Безнал.: 0.00 [10:02:47]line Место: АЗС № 85 "Партнер Нефть" [10:02:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:02:47]line СНО: Общий режим [10:02:47]line Чек 123 21.10.2024 10:02 [10:02:47]line Смена: 194 ФФД: 1.0 [10:02:47]line ЗНМ: 0300000167 [10:02:47]line РНМ: 0000000000156251 [10:02:47]line Версия ККМ: v1.0 [10:02:47]line ФМ: 0000000000963346 [10:02:47]line ФД: 69733 [10:02:47]line ФПД: 33213422794510 [10:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69733&fm=33213422794510&tin=02508201610067®Number=0000000000156251&sum=50000 [10:02:47]Connected sock=10 [10:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E C4 07 01 D1 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C8 26 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 10 01 00 35 04 06 00 1E 35 1A 44 77 0E BE 12 23 AF DC 36 29 74 [10:02:47]written 0, free lines is 4095 [10:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 12 16 47 00 F9 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 10 01 00 F4 03 04 00 6C D0 15 67 B6 04 01 00 00 27 0F 60 31 81 3F F1 4B [10:02:47]CommunicateWithHost err = 0 [10:02:47]CheckOFDResponse [10:02:47]1017 (14) - 77093643461234 [10:02:47]1041 (16) - 0000000000963346 [10:02:47]1040 (4) - 69733 [10:02:47]1012 (4) - 21.10.2024 03:54 [10:02:47]1206 (1) - 0 [10:02:47]OFD Sender: Remove packet 69733 [10:02:47]ProducePacketName [10:02:47]name=ofd_packets/00069733 [10:02:47]NVStorageDeleteData [10:02:47]Write to MH i2c: 01 00 00 76 26 9C [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 76 26 00 00 00 00 00 DD 0C 8C [10:02:47]RasterBufferAndPrint [10:02:47]line [10:02:47]line [10:02:47]line [10:02:47]line [10:02:47]line [10:02:47]written 0, free lines is 3302 [10:02:47]MH_Cut [10:02:47]Write to MH i2c: D1 01 00 7D 26 01 75 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: D1 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: D1 01 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: D1 01 00 7D 26 00 74 [10:02:47]Write to MH i2c: 01 00 00 7E 26 A4 [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:48]OFD Sender: No OFD packet to send [10:02:48]*** Cut start [10:02:48]*** Partial cut [10:02:48]*** CUTSNS_PIN = 1 [10:02:48]*** CUTSNS_PIN = 0 [10:02:48]*** Brake cut motor [10:02:49]Read from MH i2c: 01 [10:02:49]MH_I2C_Read... [10:02:49]*** Stop cut motor [10:02:49]*** Cut end [10:02:49]Read from MH i2c: 01 07 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: 01 07 00 7E 26 00 00 00 00 00 FF 0F B9 [10:02:49]process_action close_receipt done [10:02:49]requested_data is exist [10:02:49]produce_requested_data [10:02:49]requested_item fm.sn is exist - process it [10:02:49]wFMCommunicate request_size=4 [10:02:49]MH_SAM_APDU [10:02:49]CAPDU: 80 11 00 00 [10:02:49]Write to MH i2c: E2 08 00 7F 26 80 11 00 00 00 00 00 00 1F [10:02:49]Write i2c OK [10:02:49]MH_I2C_Read... [10:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:49]Read from MH i2c: E2 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 17 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 17 00 7F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [10:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:02:49]wFMCommunicate OK [10:02:49]requested_item fd.num is exist - process it [10:02:49]SAM_PROTO_GetFieldsCounters [10:02:49]wFMCommunicate request_size=4 [10:02:49]MH_SAM_APDU [10:02:49]CAPDU: 80 13 00 00 [10:02:49]Write to MH i2c: E2 08 00 80 26 80 13 00 00 00 00 00 00 22 [10:02:49]Write i2c OK [10:02:49]MH_I2C_Read... [10:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:49]Read from MH i2c: E2 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 62 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 62 00 80 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [10:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:49]wFMCommunicate OK [10:02:49]SAM_PROTO_GetFieldsCounters done [10:02:49]requested_item shift.num is exist - process it [10:02:49]requested_item shift.opened is exist - process it [10:02:49]req_shift_opened [10:02:49]FM_GetShiftState [10:02:49]SAM_PROTO_GetShiftState [10:02:49]wFMCommunicate request_size=4 [10:02:49]MH_SAM_APDU [10:02:49]CAPDU: 80 13 01 00 [10:02:49]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [10:02:49]Write i2c OK [10:02:49]MH_I2C_Read... [10:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:49]Read from MH i2c: E2 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 50 [10:02:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:02:49]wFMCommunicate OK [10:02:49]SAM_PROTO_GetShiftState done [10:02:49]FM_GetShiftState done [10:02:49]req_shift_opened done [10:02:49]requested_item shift.open_date is exist - process it [10:02:49]req_shift_open_date [10:02:49]req_shift_open_date done [10:02:49]produce_requested_data done [10:02:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69733,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:02:49]process_action_free close_receipt [10:02:49]json_value_free [10:02:49]json_value_free done [10:02:49]process_json_proto returns [10:02:49]Send response to host [10:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69733,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:02:49]free response buf [10:02:49]execute_script done [10:02:49]execute_script returns [10:02:49]free content buf [10:02:49]Sock 9.Close socket [10:02:49]Sock 9.Thread stoped [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:04:58]accept exits with 8 [10:04:58]New connection [10:04:58]New thread 3067456868 created [10:04:58]Thread 3067313508 joined [10:04:58]Waiting for new connection... [10:04:58] Sock 8.Parse request [10:04:58]Sock 8.Check first char [10:04:58]Sock 8.First char is OK [10:04:58]request: POST /json_proto HTTP/1.0 [10:04:58]Method: POST [10:04:58]URL: /json_proto [10:04:58]Method is POST - this is cgi request [10:04:58]url: /json_proto [10:04:58]query_string will be loaded in cgi processing [10:04:58]execute_cgi json_proto POST (null) [10:04:58]execute_cgi path=json_proto method=POST [10:04:58]POST find Content-Length [10:04:58]Host: 172.17.50.3:8080 [10:04:58]Content-Length: 770 [10:04:58]Content-Type: application/json [10:04:58] [10:04:58]POST finish read [10:04:58]Found Content-Length = 770 [10:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:58]execute_script... [10:04: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)2885473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:58]POST & json_proto [10:04:58]process_json_proto [10:04:58]json parsed OK: [10:04:58]protocol is kg_v1.0 [10:04:58]action value=close_receipt [10:04:58]process_action close_receipt [10:04:58]cmd_close_receipt [10:04:58]MH_GetDate [10:04:58]Write to MH i2c: F0 00 00 82 26 97 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 09 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 09 00 82 26 00 4D 27 16 67 6B 98 1E 66 18 [10:04:58]GetLastDocTimeStamp 1729504968 [10:04:58]current date 1729505101 [10:04:58]FM_GetShiftState [10:04:58]SAM_PROTO_GetShiftState [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 13 01 00 [10:04:58]Write to MH i2c: E2 08 00 83 26 80 13 01 00 00 00 00 00 26 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0E 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0E 00 83 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 52 [10:04:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_GetShiftState done [10:04:58]FM_GetShiftState done [10:04:58]opened in 1729469703 [10:04:58]opened+sec_in_day 1729556103 [10:04:58]quantity*price = 100015 [10:04:58]sum+1 = 100017 [10:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 124 21.10.2024 10:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69734 ФПД: 154110613544796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69734&fm=154110613544796&tin=02508201610067®Number=0000000000156251&sum=100016 [10:04:59]StoreToDocumentArchive [10:04:59]shift 194 fd 69734 [10:04:59]save to /storage/0194/doc_00069734 [10:04:59]save last doc name /storage/0194/doc_00069734 to /storage/kkm_last_doc_name [10:04:59]save OK [10:04:59]Clear old archive folders... [10:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:59]tlvbuf is 00C92970 [10:04:59]SAM_PROTO_ClearQueue [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 09 00 00 [10:04:59]Write to MH i2c: E2 08 00 90 26 80 09 00 00 00 00 00 00 28 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_ClearQueue done [10:04:59]KKMCreateOFDPacket [10:04:59]OFDProtocolAddRootSTLVToBuf [10:04:59]FM_MakeSignedData [10:04:59]FM_MakeSignedData [10:04:59]SAM_PROTO_SignData [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 01 02 [10:04:59]Write to MH i2c: E2 08 00 91 26 80 0D 01 02 00 00 00 00 30 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [10:05:00]RAPDU: 90 00 [10:05:00]wFMCommunicate OK [10:05:00]wFMCommunicate request_size=255 [10:05:00]MH_SAM_APDU [10:05:00]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4D 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 10 01 00 35 04 06 00 8C [10:05:00]Write to MH i2c: E2 02 01 92 26 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4D 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 10 01 00 35 04 06 00 8C 00 00 05 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [10:05:00]RAPDU: 90 00 [10:05:00]wFMCommunicate OK [10:05:00]wFMCommunicate request_size=10 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 0D 02 02 05 29 AC 60 5F 5C [10:05:00]Write to MH i2c: E2 0D 00 93 26 80 0D 02 02 05 00 29 AC 60 5F 5C 00 00 2D [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [10:05:00]RAPDU: 90 00 [10:05:00]wFMCommunicate OK [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 0D 03 02 [10:05:00]Write to MH i2c: E2 08 00 94 26 80 0D 03 02 00 00 00 00 35 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0B 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0B 00 94 26 00 7F 46 02 23 27 B4 E9 66 90 00 4A [10:05:00]RAPDU: 7F 46 02 23 27 B4 E9 66 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_SignData done [10:05:00]FM_MakeSignedData done [10:05:00]CreateOFDProtocolMessage [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 11 00 00 [10:05:00]Write to MH i2c: E2 08 00 95 26 80 11 00 00 00 00 00 00 35 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 95 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [10:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:05:00]wFMCommunicate OK [10:05:00]CreateOFDProtocolMessage done [10:05:00]OFDSenderStorePacket 69734 [10:05:00]StoreOFDPacket docnum=69734 [10:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 7F 07 01 36 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4D 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 10 01 00 35 04 06 00 8C 29 AC 60 5F 5C 7F 46 02 23 27 B4 E9 66 [10:05:00]CheckFolder [10:05:00]dirname=/storage/ofd_packets [10:05:00]CheckFolder done [10:05:00]ProducePacketName [10:05:00]name=ofd_packets/00069734 [10:05:00]NVStorageSaveData ofd_packets/00069734 [10:05:00]File name is /storage/ofd_packets/00069734 [10:05:00]Write 301 bytes [10:05:00]NVStorageSaveData done [10:05:00]OFDSenderStorePacket done [10:05:00]KKMCreateOFDPacket done [10:05:00]NVStorageSaveData kkm_last_timestamp [10:05:00]File name is /storage/kkm_last_timestamp [10:05:00]Write 4 bytes [10:05:00]NVStorageSaveData done [10:05:00]ExternCall_PrintAddStr [10:05:00]wPrintStart [10:05:00]Write to MH i2c: 01 00 00 96 26 BC [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 96 26 00 00 00 00 00 FF 0F D1 [10:05:00]RasterBufferAndPrint [10:05:00]line Счет N : (1)2885473 [10:05:00]line ИНН: 02508201610067 [10:05:00]line Контрольно-Кассовый Чек [10:05:00]line ПРОДАЖА [10:05:00]line ТРК (МРК, ГНК) : 12 [10:05:00]line Товар: 2710124130 [10:05:00]line Аи-92-К-5 [10:05:00]line 14.950 * 66.90 [10:05:00]line = 1000.16 [10:05:00]line НДС 12% НСП 1% [10:05:00]line > о реализуемом товаре [10:05:00]line ИТОГО: 1000.16 [10:05:00]line НСП 1% : 8.85 [10:05:00]line НДС 12% : 106.21 [10:05:00]line Наличными: 0.00 [10:05:00]line Безнал.: 1000.16 [10:05:00]line Место: АЗС № 85 "Партнер Нефть" [10:05:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:05:00]line СНО: Общий режим [10:05:00]line Чек 124 21.10.2024 10:05 [10:05:00]line Смена: 194 ФФД: 1.0 [10:05:00]line ЗНМ: 0300000167 [10:05:00]line РНМ: 0000000000156251 [10:05:00]line Версия ККМ: v1.0 [10:05:00]line Платежная система: Mbank [10:05:00]line ФМ: 0000000000963346 [10:05:00]line ФД: 69734 [10:05:00]line ФПД: 154110613544796 [10:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100501&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69734&fm=154110613544796&tin=02508201610067®Number=0000000000156251&sum=100016 [10:05:00]OFD Sender: Processing packet 69734 [packets to send 18, broken 17] [10:05:00]ProducePacketName [10:05:00]name=ofd_packets/00069734 [10:05:00]OFD Sender: To server: pG, [10:05:00]CommunicateWithHost lk.salyk.kg:30040 [10:05:00]ConnectInit lk.salyk.kg [10:05:00]written 0, free lines is 4095 [10:05:00]Connected sock=10 [10:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 7F 07 01 36 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4D 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 10 01 00 35 04 06 00 8C 29 AC 60 5F 5C 7F 46 02 23 27 B4 E9 66 [10:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 60 47 00 6D 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 39 36 33 33 34 36 10 04 04 00 66 10 01 00 F4 03 04 00 F2 D0 15 67 B6 04 01 00 00 18 AE F7 9D F9 59 71 2F [10:05:01]CommunicateWithHost err = 0 [10:05:01]CheckOFDResponse [10:05:01]1017 (14) - 77093643461234 [10:05:01]1041 (16) - 0000000000963346 [10:05:01]1040 (4) - 69734 [10:05:01]1012 (4) - 21.10.2024 03:56 [10:05:01]1206 (1) - 0 [10:05:01]OFD Sender: Remove packet 69734 [10:05:01]ProducePacketName [10:05:01]name=ofd_packets/00069734 [10:05:01]NVStorageDeleteData [10:05:01]Write to MH i2c: 01 00 00 BF 26 E5 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 BF 26 00 00 00 00 00 04 0D FD [10:05:01]RasterBufferAndPrint [10:05:01]line [10:05:01]line [10:05:01]line [10:05:01]line [10:05:01]line [10:05:01]written 0, free lines is 3338 [10:05:01]MH_Cut [10:05:01]Write to MH i2c: D1 01 00 C6 26 01 BE [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: D1 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: D1 01 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: D1 01 00 C6 26 00 BD [10:05:01]Write to MH i2c: 01 00 00 C7 26 ED [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]OFD Sender: No OFD packet to send [10:05:01]*** Cut start [10:05:01]*** Partial cut [10:05:01]*** CUTSNS_PIN = 1 [10:05:01]*** CUTSNS_PIN = 0 [10:05:02]*** Brake cut motor [10:05:02]Read from MH i2c: 01 [10:05:02]MH_I2C_Read... [10:05:02]*** Stop cut motor [10:05:02]*** Cut end [10:05:02]Read from MH i2c: 01 07 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 C7 26 00 00 00 00 00 FF 0F 02 [10:05:02]process_action close_receipt done [10:05:02]requested_data is exist [10:05:02]produce_requested_data [10:05:02]requested_item fm.sn is exist - process it [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 11 00 00 [10:05:02]Write to MH i2c: E2 08 00 C8 26 80 11 00 00 00 00 00 00 68 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 17 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 17 00 C8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [10:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:05:02]wFMCommunicate OK [10:05:02]requested_item fd.num is exist - process it [10:05:02]SAM_PROTO_GetFieldsCounters [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 13 00 00 [10:05:02]Write to MH i2c: E2 08 00 C9 26 80 13 00 00 00 00 00 00 6B [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 62 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 62 00 C9 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:02]wFMCommunicate OK [10:05:02]SAM_PROTO_GetFieldsCounters done [10:05:02]requested_item shift.num is exist - process it [10:05:02]requested_item shift.opened is exist - process it [10:05:02]req_shift_opened [10:05:02]FM_GetShiftState [10:05:02]SAM_PROTO_GetShiftState [10:05:02]wFMCommunicate request_size=4 [10:05:02]MH_SAM_APDU [10:05:02]CAPDU: 80 13 01 00 [10:05:02]Write to MH i2c: E2 08 00 CA 26 80 13 01 00 00 00 00 00 6D [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0E 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0E 00 CA 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 99 [10:05:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:05:02]wFMCommunicate OK [10:05:02]SAM_PROTO_GetShiftState done [10:05:02]FM_GetShiftState done [10:05:02]req_shift_opened done [10:05:02]requested_item shift.open_date is exist - process it [10:05:02]req_shift_open_date [10:05:02]req_shift_open_date done [10:05:02]produce_requested_data done [10:05:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69734,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:05:02]process_action_free close_receipt [10:05:02]json_value_free [10:05:02]json_value_free done [10:05:02]process_json_proto returns [10:05:02]Send response to host [10:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69734,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:05:02]free response buf [10:05:02]execute_script done [10:05:02]execute_script returns [10:05:02]free content buf [10:05:02]Sock 8.Close socket [10:05:02]Sock 8.Thread stoped [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:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:08]accept exits with 9 [10:06:08]New connection [10:06:08]New thread 3067313508 created [10:06:08]Thread 3067456868 joined [10:06:08]Waiting for new connection... [10:06:08] Sock 9.Parse request [10:06:08]Sock 9.Check first char [10:06:08]Sock 9.First char is OK [10:06:08]request: POST /json_proto HTTP/1.0 [10:06:08]Method: POST [10:06:08]URL: /json_proto [10:06:08]Method is POST - this is cgi request [10:06:08]url: /json_proto [10:06:08]query_string will be loaded in cgi processing [10:06:08]execute_cgi json_proto POST (null) [10:06:08]execute_cgi path=json_proto method=POST [10:06:08]POST find Content-Length [10:06:08]Host: 172.17.50.3:8080 [10:06:08]Content-Length: 680 [10:06:08]Content-Type: application/json [10:06:08] [10:06:08]POST finish read [10:06:08]Found Content-Length = 680 [10:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [10:06:08]execute_script... [10:06: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)2885474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [10:06:08]POST & json_proto [10:06:08]process_json_proto [10:06:08]json parsed OK: [10:06:08]protocol is kg_v1.0 [10:06:08]action value=close_receipt [10:06:08]process_action close_receipt [10:06:08]cmd_close_receipt [10:06:08]MH_GetDate [10:06:08]Write to MH i2c: F0 00 00 CB 26 E0 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 09 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: F0 09 00 CB 26 00 93 27 16 67 6B 98 1E 66 A7 [10:06:08]GetLastDocTimeStamp 1729505101 [10:06:08]current date 1729505171 [10:06:08]FM_GetShiftState [10:06:08]SAM_PROTO_GetShiftState [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 13 01 00 [10:06:08]Write to MH i2c: E2 08 00 CC 26 80 13 01 00 00 00 00 00 6F [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 CC 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9B [10:06:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:06:08]wFMCommunicate OK [10:06:08]SAM_PROTO_GetShiftState done [10:06:08]FM_GetShiftState done [10:06:08]opened in 1729469703 [10:06:08]opened+sec_in_day 1729556103 [10:06:08]quantity*price = 200025 [10:06:08]sum+1 = 200026 [10:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 125 21.10.2024 10:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69735 ФПД: 21687014459499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69735&fm=21687014459499&tin=02508201610067®Number=0000000000156251&sum=200000 [10:06:09]StoreToDocumentArchive [10:06:09]shift 194 fd 69735 [10:06:09]save to /storage/0194/doc_00069735 [10:06:09]save last doc name /storage/0194/doc_00069735 to /storage/kkm_last_doc_name [10:06:09]save OK [10:06:09]Clear old archive folders... [10:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:06:09]tlvbuf is 00CAF310 [10:06:09]SAM_PROTO_ClearQueue [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 09 00 00 [10:06:09]Write to MH i2c: E2 08 00 D9 26 80 09 00 00 00 00 00 00 71 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_ClearQueue done [10:06:09]KKMCreateOFDPacket [10:06:09]OFDProtocolAddRootSTLVToBuf [10:06:09]FM_MakeSignedData [10:06:09]FM_MakeSignedData [10:06:09]SAM_PROTO_SignData [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 01 02 [10:06:09]Write to MH i2c: E2 08 00 DA 26 80 0D 01 02 00 00 00 00 79 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=255 [10:06:09]MH_SAM_APDU [10:06:09]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 32 31 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 7D 00 00 00 F4 03 04 00 93 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 10 01 00 35 04 06 00 13 B9 66 CB [10:06:09]Write to MH i2c: E2 02 01 DB 26 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 32 31 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 7D 00 00 00 F4 03 04 00 93 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 10 01 00 35 04 06 00 13 B9 66 CB 00 00 D1 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=7 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 02 02 02 08 6B [10:06:09]Write to MH i2c: E2 0A 00 DC 26 80 0D 02 02 02 00 08 6B 00 00 F3 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 03 02 [10:06:09]Write to MH i2c: E2 08 00 DD 26 80 0D 03 02 00 00 00 00 7E [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0B 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0B 00 DD 26 00 05 63 F0 77 E9 0C E5 44 90 00 6C [10:06:09]RAPDU: 05 63 F0 77 E9 0C E5 44 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_SignData done [10:06:09]FM_MakeSignedData done [10:06:09]CreateOFDProtocolMessage [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 11 00 00 [10:06:09]Write to MH i2c: E2 08 00 DE 26 80 11 00 00 00 00 00 00 7E [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 17 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 17 00 DE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [10:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:06:09]wFMCommunicate OK [10:06:09]CreateOFDProtocolMessage done [10:06:09]OFDSenderStorePacket 69735 [10:06:09]StoreOFDPacket docnum=69735 [10:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2F 9F 04 01 32 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 32 31 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 7D 00 00 00 F4 03 04 00 93 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 10 01 00 35 04 06 00 13 B9 66 CB 08 6B 05 63 F0 77 E9 0C E5 44 [10:06:09]CheckFolder [10:06:09]dirname=/storage/ofd_packets [10:06:09]CheckFolder done [10:06:09]ProducePacketName [10:06:09]name=ofd_packets/00069735 [10:06:09]NVStorageSaveData ofd_packets/00069735 [10:06:09]File name is /storage/ofd_packets/00069735 [10:06:09]Write 298 bytes [10:06:09]NVStorageSaveData done [10:06:09]OFDSenderStorePacket done [10:06:09]KKMCreateOFDPacket done [10:06:09]NVStorageSaveData kkm_last_timestamp [10:06:09]File name is /storage/kkm_last_timestamp [10:06:09]Write 4 bytes [10:06:09]NVStorageSaveData done [10:06:09]ExternCall_PrintAddStr [10:06:09]wPrintStart [10:06:09]Write to MH i2c: 01 00 00 DF 26 05 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [10:06:09]RasterBufferAndPrint [10:06:09]line Счет N : (1)2885474 [10:06:09]line ИНН: 02508201610067 [10:06:09]line Контрольно-Кассовый Чек [10:06:09]line ПРОДАЖА [10:06:09]line ТРК (МРК, ГНК) : 61 [10:06:09]line Товар: 2710194210 [10:06:09]line ДТ-К-5 [10:06:09]line 26.250 * 76.20 [10:06:09]line = 2000.25 [10:06:09]line НДС 12% НСП 1% [10:06:09]line > о реализуемом товаре [10:06:09]line ОКРУГЛЕНИЕ: -0.25 [10:06:09]line ИТОГО: 2000.00 [10:06:09]line Внесено: 2000.00 [10:06:09]line СДАЧА: 0.00 [10:06:09]line НСП 1% : 17.70 [10:06:09]line НДС 12% : 212.42 [10:06:09]line Наличными: 2000.00 [10:06:09]line Безнал.: 0.00 [10:06:09]line Место: АЗС № 85 "Партнер Нефть" [10:06:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:06:09]line СНО: Общий режим [10:06:09]line Чек 125 21.10.2024 10:06 [10:06:09]line Смена: 194 ФФД: 1.0 [10:06:09]line ЗНМ: 0300000167 [10:06:09]line РНМ: 0000000000156251 [10:06:09]line Версия ККМ: v1.0 [10:06:09]line ФМ: 0000000000963346 [10:06:09]line ФД: 69735 [10:06:09]line ФПД: 21687014459499 [10:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100611&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69735&fm=21687014459499&tin=02508201610067®Number=0000000000156251&sum=200000 [10:06:10]OFD Sender: Processing packet 69735 [packets to send 18, broken 17] [10:06:10]ProducePacketName [10:06:10]name=ofd_packets/00069735 [10:06:10]OFD Sender: To server: pG, [10:06:10]CommunicateWithHost lk.salyk.kg:30040 [10:06:10]ConnectInit lk.salyk.kg [10:06:10]written 0, free lines is 4095 [10:06:10]Connected sock=10 [10:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2F 9F 04 01 32 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 32 31 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 7D 00 00 00 F4 03 04 00 93 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 10 01 00 35 04 06 00 13 B9 66 CB 08 6B 05 63 F0 77 E9 0C E5 44 [10:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B8 54 47 00 F2 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 10 01 00 F4 03 04 00 37 D1 15 67 B6 04 01 00 00 66 45 F5 0D 10 F1 F0 35 [10:06:10]CommunicateWithHost err = 0 [10:06:10]CheckOFDResponse [10:06:10]1017 (14) - 77093643461234 [10:06:10]1041 (16) - 0000000000963346 [10:06:10]1040 (4) - 69735 [10:06:10]1012 (4) - 21.10.2024 03:57 [10:06:10]1206 (1) - 0 [10:06:10]OFD Sender: Remove packet 69735 [10:06:10]ProducePacketName [10:06:10]name=ofd_packets/00069735 [10:06:10]NVStorageDeleteData [10:06:10]Write to MH i2c: 01 00 00 0A 27 31 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 0A 27 00 00 00 00 00 E4 0C 28 [10:06:10]RasterBufferAndPrint [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]written 0, free lines is 3306 [10:06:10]MH_Cut [10:06:10]Write to MH i2c: D1 01 00 11 27 01 0A [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 01 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 01 00 11 27 00 09 [10:06:10]Write to MH i2c: 01 00 00 12 27 39 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]OFD Sender: No OFD packet to send [10:06:11]*** Cut start [10:06:11]*** Partial cut [10:06:11]*** CUTSNS_PIN = 1 [10:06:11]*** CUTSNS_PIN = 0 [10:06:11]*** Brake cut motor [10:06:11]Read from MH i2c: 01 [10:06:11]MH_I2C_Read... [10:06:11]*** Stop cut motor [10:06:11]*** Cut end [10:06:11]Read from MH i2c: 01 07 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 FF 0F 4E [10:06:11]process_action close_receipt done [10:06:11]requested_data is exist [10:06:11]produce_requested_data [10:06:11]requested_item fm.sn is exist - process it [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 11 00 00 [10:06:11]Write to MH i2c: E2 08 00 13 27 80 11 00 00 00 00 00 00 B4 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 13 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [10:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:06:11]wFMCommunicate OK [10:06:11]requested_item fd.num is exist - process it [10:06:11]SAM_PROTO_GetFieldsCounters [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 13 00 00 [10:06:11]Write to MH i2c: E2 08 00 14 27 80 13 00 00 00 00 00 00 B7 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 14 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [10:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetFieldsCounters done [10:06:12]requested_item shift.num is exist - process it [10:06:12]requested_item shift.opened is exist - process it [10:06:12]req_shift_opened [10:06:12]FM_GetShiftState [10:06:12]SAM_PROTO_GetShiftState [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 13 01 00 [10:06:12]Write to MH i2c: E2 08 00 15 27 80 13 01 00 00 00 00 00 B9 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 15 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E5 [10:06:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetShiftState done [10:06:12]FM_GetShiftState done [10:06:12]req_shift_opened done [10:06:12]requested_item shift.open_date is exist - process it [10:06:12]req_shift_open_date [10:06:12]req_shift_open_date done [10:06:12]produce_requested_data done [10:06:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69735,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:06:12]process_action_free close_receipt [10:06:12]json_value_free [10:06:12]json_value_free done [10:06:12]process_json_proto returns [10:06:12]Send response to host [10:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69735,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:06:12]free response buf [10:06:12]execute_script done [10:06:12]execute_script returns [10:06:12]free content buf [10:06:12]Sock 9.Close socket [10:06:12]Sock 9.Thread stoped [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]accept exits with 8 [10:07:15]New connection [10:07:15]New thread 3067456868 created [10:07:15]Thread 3067313508 joined [10:07:15]Waiting for new connection... [10:07:15] Sock 8.Parse request [10:07:15]Sock 8.Check first char [10:07:15]Sock 8.First char is OK [10:07:15]request: POST /json_proto HTTP/1.0 [10:07:15]Method: POST [10:07:15]URL: /json_proto [10:07:15]Method is POST - this is cgi request [10:07:15]url: /json_proto [10:07:15]query_string will be loaded in cgi processing [10:07:15]execute_cgi json_proto POST (null) [10:07:15]execute_cgi path=json_proto method=POST [10:07:15]POST find Content-Length [10:07:15]Host: 172.17.50.3:8080 [10:07:15]Content-Length: 678 [10:07:15]Content-Type: application/json [10:07:15] [10:07:15]POST finish read [10:07:15]Found Content-Length = 678 [10:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:15]execute_script... [10:07: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)2885475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:15]POST & json_proto [10:07:15]process_json_proto [10:07:15]json parsed OK: [10:07:15]protocol is kg_v1.0 [10:07:15]action value=close_receipt [10:07:15]process_action close_receipt [10:07:15]cmd_close_receipt [10:07:15]MH_GetDate [10:07:15]Write to MH i2c: F0 00 00 16 27 2C [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: F0 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: F0 09 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: F0 09 00 16 27 00 D7 27 16 67 6B 98 1E 66 37 [10:07:15]GetLastDocTimeStamp 1729505171 [10:07:15]current date 1729505239 [10:07:15]FM_GetShiftState [10:07:15]SAM_PROTO_GetShiftState [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 13 01 00 [10:07:15]Write to MH i2c: E2 08 00 17 27 80 13 01 00 00 00 00 00 BB [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0E 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0E 00 17 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [10:07:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:07:15]wFMCommunicate OK [10:07:15]SAM_PROTO_GetShiftState done [10:07:15]FM_GetShiftState done [10:07:15]opened in 1729469703 [10:07:15]opened+sec_in_day 1729556103 [10:07:15]quantity*price = 40006 [10:07:15]sum+1 = 40007 [10:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 126 21.10.2024 10:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69736 ФПД: 250247251857675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100719&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69736&fm=250247251857675&tin=02508201610067®Number=0000000000156251&sum=40000 [10:07:17]StoreToDocumentArchive [10:07:17]shift 194 fd 69736 [10:07:17]save to /storage/0194/doc_00069736 [10:07:17]save last doc name /storage/0194/doc_00069736 to /storage/kkm_last_doc_name [10:07:17]save OK [10:07:17]Clear old archive folders... [10:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:17]tlvbuf is 00CA0F20 [10:07:17]SAM_PROTO_ClearQueue [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 09 00 00 [10:07:17]Write to MH i2c: E2 08 00 24 27 80 09 00 00 00 00 00 00 BD [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [10:07:17]RAPDU: 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_ClearQueue done [10:07:17]KKMCreateOFDPacket [10:07:17]OFDProtocolAddRootSTLVToBuf [10:07:17]FM_MakeSignedData [10:07:17]FM_MakeSignedData [10:07:17]SAM_PROTO_SignData [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 0D 01 02 [10:07:17]Write to MH i2c: E2 08 00 25 27 80 0D 01 02 00 00 00 00 C5 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [10:07:17]RAPDU: 90 00 [10:07:17]wFMCommunicate OK [10:07:17]wFMCommunicate request_size=255 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D7 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 10 01 00 35 04 06 00 E3 [10:07:17]Write to MH i2c: E2 02 01 26 27 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D7 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 10 01 00 35 04 06 00 E3 00 00 34 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [10:07:17]RAPDU: 90 00 [10:07:17]wFMCommunicate OK [10:07:17]wFMCommunicate request_size=10 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 0D 02 02 05 99 3A 8D 91 0B [10:07:17]Write to MH i2c: E2 0D 00 27 27 80 0D 02 02 05 00 99 3A 8D 91 0B 00 00 CE [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [10:07:17]RAPDU: 90 00 [10:07:17]wFMCommunicate OK [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 0D 03 02 [10:07:17]Write to MH i2c: E2 08 00 28 27 80 0D 03 02 00 00 00 00 CA [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0B 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0B 00 28 27 00 B6 F3 0B 87 67 1B 4B 65 90 00 38 [10:07:17]RAPDU: B6 F3 0B 87 67 1B 4B 65 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_SignData done [10:07:17]FM_MakeSignedData done [10:07:17]CreateOFDProtocolMessage [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 11 00 00 [10:07:17]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [10:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:07:17]wFMCommunicate OK [10:07:17]CreateOFDProtocolMessage done [10:07:17]OFDSenderStorePacket 69736 [10:07:17]StoreOFDPacket docnum=69736 [10:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9B C0 07 01 78 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D7 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 10 01 00 35 04 06 00 E3 99 3A 8D 91 0B B6 F3 0B 87 67 1B 4B 65 [10:07:17]CheckFolder [10:07:17]dirname=/storage/ofd_packets [10:07:17]CheckFolder done [10:07:17]ProducePacketName [10:07:17]name=ofd_packets/00069736 [10:07:17]NVStorageSaveData ofd_packets/00069736 [10:07:17]File name is /storage/ofd_packets/00069736 [10:07:17]Write 301 bytes [10:07:17]NVStorageSaveData done [10:07:17]OFDSenderStorePacket done [10:07:17]KKMCreateOFDPacket done [10:07:17]NVStorageSaveData kkm_last_timestamp [10:07:17]File name is /storage/kkm_last_timestamp [10:07:17]Write 4 bytes [10:07:17]NVStorageSaveData done [10:07:17]ExternCall_PrintAddStr [10:07:17]wPrintStart [10:07:17]Write to MH i2c: 01 00 00 2A 27 51 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 FF 0F 66 [10:07:17]RasterBufferAndPrint [10:07:17]line Счет N : (1)2885475 [10:07:17]line ИНН: 02508201610067 [10:07:17]line Контрольно-Кассовый Чек [10:07:17]line ПРОДАЖА [10:07:17]line ТРК (МРК, ГНК) : 22 [10:07:17]line Товар: 2710124130 [10:07:17]line Аи-92-К-5 [10:07:17]line 5.980 * 66.90 [10:07:17]line = 400.06 [10:07:17]line НДС 12% НСП 1% [10:07:17]line > о реализуемом товаре [10:07:17]line ОКРУГЛЕНИЕ: -0.06 [10:07:17]line ИТОГО: 400.00 [10:07:17]line Внесено: 400.00 [10:07:17]line СДАЧА: 0.00 [10:07:17]line НСП 1% : 3.54 [10:07:17]line НДС 12% : 42.48 [10:07:17]line Наличными: 400.00 [10:07:17]line Безнал.: 0.00 [10:07:17]line Место: АЗС № 85 "Партнер Нефть" [10:07:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:07:17]line СНО: Общий режим [10:07:17]line Чек 126 21.10.2024 10:07 [10:07:17]line Смена: 194 ФФД: 1.0 [10:07:17]line ЗНМ: 0300000167 [10:07:17]line РНМ: 0000000000156251 [10:07:17]line Версия ККМ: v1.0 [10:07:17]line ФМ: 0000000000963346 [10:07:17]line ФД: 69736 [10:07:17]line ФПД: 250247251857675 [10:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100719&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69736&fm=250247251857675&tin=02508201610067®Number=0000000000156251&sum=40000 [10:07:17]OFD Sender: Processing packet 69736 [packets to send 18, broken 17] [10:07:17]ProducePacketName [10:07:17]name=ofd_packets/00069736 [10:07:17]OFD Sender: To server: pG, [10:07:17]CommunicateWithHost lk.salyk.kg:30040 [10:07:17]ConnectInit lk.salyk.kg [10:07:17]written 0, free lines is 4095 [10:07:17]Connected sock=10 [10:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9B C0 07 01 78 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D7 27 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 10 01 00 35 04 06 00 E3 99 3A 8D 91 0B B6 F3 0B 87 67 1B 4B 65 [10:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9B C6 47 00 7F F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 10 01 00 F4 03 04 00 7B D1 15 67 B6 04 01 00 00 C0 B5 4D C9 AC FC 0F 69 [10:07:18]CommunicateWithHost err = 0 [10:07:18]CheckOFDResponse [10:07:18]1017 (14) - 77093643461234 [10:07:18]1041 (16) - 0000000000963346 [10:07:18]1040 (4) - 69736 [10:07:18]1012 (4) - 21.10.2024 03:58 [10:07:18]1206 (1) - 0 [10:07:18]OFD Sender: Remove packet 69736 [10:07:18]ProducePacketName [10:07:18]name=ofd_packets/00069736 [10:07:18]NVStorageDeleteData [10:07:18]Write to MH i2c: 01 00 00 55 27 7C [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: 01 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: 01 07 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: 01 07 00 55 27 00 00 00 00 00 EC 0C 7B [10:07:18]RasterBufferAndPrint [10:07:18]line [10:07:18]line [10:07:18]line [10:07:18]line [10:07:18]line [10:07:18]written 0, free lines is 3314 [10:07:18]MH_Cut [10:07:18]Write to MH i2c: D1 01 00 5C 27 01 55 [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: D1 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: D1 01 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: D1 01 00 5C 27 00 54 [10:07:18]Write to MH i2c: 01 00 00 5D 27 84 [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]OFD Sender: No OFD packet to send [10:07:19]*** Cut start [10:07:19]*** Partial cut [10:07:19]*** CUTSNS_PIN = 1 [10:07:19]*** CUTSNS_PIN = 0 [10:07:19]*** Brake cut motor [10:07:19]Read from MH i2c: 01 [10:07:19]MH_I2C_Read... [10:07:19]*** Stop cut motor [10:07:19]*** Cut end [10:07:19]Read from MH i2c: 01 07 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 FF 0F 99 [10:07:19]process_action close_receipt done [10:07:19]requested_data is exist [10:07:19]produce_requested_data [10:07:19]requested_item fm.sn is exist - process it [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 11 00 00 [10:07:19]Write to MH i2c: E2 08 00 5E 27 80 11 00 00 00 00 00 00 FF [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 17 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 17 00 5E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [10:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:07:19]wFMCommunicate OK [10:07:19]requested_item fd.num is exist - process it [10:07:19]SAM_PROTO_GetFieldsCounters [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 13 00 00 [10:07:19]Write to MH i2c: E2 08 00 5F 27 80 13 00 00 00 00 00 00 02 [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 62 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 62 00 5F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [10:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:19]wFMCommunicate OK [10:07:19]SAM_PROTO_GetFieldsCounters done [10:07:19]requested_item shift.num is exist - process it [10:07:19]requested_item shift.opened is exist - process it [10:07:19]req_shift_opened [10:07:19]FM_GetShiftState [10:07:19]SAM_PROTO_GetShiftState [10:07:19]wFMCommunicate request_size=4 [10:07:19]MH_SAM_APDU [10:07:19]CAPDU: 80 13 01 00 [10:07:19]Write to MH i2c: E2 08 00 60 27 80 13 01 00 00 00 00 00 04 [10:07:19]Write i2c OK [10:07:19]MH_I2C_Read... [10:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:19]Read from MH i2c: E2 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 0E 00 [10:07:19]MH_I2C_Read... [10:07:19]Read from MH i2c: E2 0E 00 60 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 30 [10:07:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:07:19]wFMCommunicate OK [10:07:19]SAM_PROTO_GetShiftState done [10:07:19]FM_GetShiftState done [10:07:19]req_shift_opened done [10:07:19]requested_item shift.open_date is exist - process it [10:07:19]req_shift_open_date [10:07:19]req_shift_open_date done [10:07:19]produce_requested_data done [10:07:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69736,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:07:19]process_action_free close_receipt [10:07:19]json_value_free [10:07:19]json_value_free done [10:07:19]process_json_proto returns [10:07:19]Send response to host [10:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69736,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:07:19]free response buf [10:07:19]execute_script done [10:07:19]execute_script returns [10:07:19]free content buf [10:07:19]Sock 8.Close socket [10:07:19]Sock 8.Thread stoped [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:07:59]accept exits with 9 [10:07:59]New connection [10:07:59]New thread 3067313508 created [10:07:59]Thread 3067456868 joined [10:07:59]Waiting for new connection... [10:07:59] Sock 9.Parse request [10:07:59]Sock 9.Check first char [10:07:59]Sock 9.First char is OK [10:07:59]request: POST /json_proto HTTP/1.0 [10:07:59]Method: POST [10:07:59]URL: /json_proto [10:07:59]Method is POST - this is cgi request [10:07:59]url: /json_proto [10:07:59]query_string will be loaded in cgi processing [10:07:59]execute_cgi json_proto POST (null) [10:07:59]execute_cgi path=json_proto method=POST [10:07:59]POST find Content-Length [10:07:59]Host: 172.17.50.3:8080 [10:07:59]Content-Length: 683 [10:07:59]Content-Type: application/json [10:07:59] [10:07:59]POST finish read [10:07:59]Found Content-Length = 683 [10:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885476", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:59]execute_script... [10:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885476", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:59]POST & json_proto [10:07:59]process_json_proto [10:07:59]json parsed OK: [10:07:59]protocol is kg_v1.0 [10:07:59]action value=close_receipt [10:07:59]process_action close_receipt [10:07:59]cmd_close_receipt [10:07:59]MH_GetDate [10:07:59]Write to MH i2c: F0 00 00 61 27 77 [10:07:59]Write i2c OK [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 09 00 [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 09 00 61 27 00 03 28 16 67 6B 98 1E 66 AF [10:07:59]GetLastDocTimeStamp 1729505239 [10:07:59]current date 1729505283 [10:07:59]FM_GetShiftState [10:07:59]SAM_PROTO_GetShiftState [10:07:59]wFMCommunicate request_size=4 [10:07:59]MH_SAM_APDU [10:07:59]CAPDU: 80 13 01 00 [10:07:59]Write to MH i2c: E2 08 00 62 27 80 13 01 00 00 00 00 00 06 [10:07:59]Write i2c OK [10:07:59]MH_I2C_Read... [10:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:00]Read from MH i2c: E2 [10:08:00]MH_I2C_Read... [10:08:00]Read from MH i2c: E2 0E 00 [10:08:00]MH_I2C_Read... [10:08:00]Read from MH i2c: E2 0E 00 62 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [10:08:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:08:00]wFMCommunicate OK [10:08:00]SAM_PROTO_GetShiftState done [10:08:00]FM_GetShiftState done [10:08:00]opened in 1729469703 [10:08:00]opened+sec_in_day 1729556103 [10:08:00]quantity*price = 100015 [10:08:00]sum+1 = 100017 [10:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 127 21.10.2024 10:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69737 ФПД: 82807181338389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69737&fm=82807181338389&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:01]StoreToDocumentArchive [10:08:01]shift 194 fd 69737 [10:08:01]save to /storage/0194/doc_00069737 [10:08:01]save last doc name /storage/0194/doc_00069737 to /storage/kkm_last_doc_name [10:08:01]save OK [10:08:01]Clear old archive folders... [10:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:01]tlvbuf is 00C74E40 [10:08:01]SAM_PROTO_ClearQueue [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 09 00 00 [10:08:01]Write to MH i2c: E2 08 00 6F 27 80 09 00 00 00 00 00 00 08 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_ClearQueue done [10:08:01]KKMCreateOFDPacket [10:08:01]OFDProtocolAddRootSTLVToBuf [10:08:01]FM_MakeSignedData [10:08:01]FM_MakeSignedData [10:08:01]SAM_PROTO_SignData [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 01 02 [10:08:01]Write to MH i2c: E2 08 00 70 27 80 0D 01 02 00 00 00 00 10 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=255 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 03 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 10 01 00 35 04 06 00 4B [10:08:01]Write to MH i2c: E2 02 01 71 27 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 03 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 10 01 00 35 04 06 00 4B 00 00 41 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=10 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 02 02 05 50 0C A0 E7 15 [10:08:01]Write to MH i2c: E2 0D 00 72 27 80 0D 02 02 05 00 50 0C A0 E7 15 00 00 15 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 03 02 [10:08:01]Write to MH i2c: E2 08 00 73 27 80 0D 03 02 00 00 00 00 15 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0B 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0B 00 73 27 00 C7 F3 61 76 F2 EC 4E 7F 90 00 52 [10:08:01]RAPDU: C7 F3 61 76 F2 EC 4E 7F 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_SignData done [10:08:01]FM_MakeSignedData done [10:08:01]CreateOFDProtocolMessage [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 11 00 00 [10:08:01]Write to MH i2c: E2 08 00 74 27 80 11 00 00 00 00 00 00 15 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 17 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 17 00 74 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [10:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:08:01]wFMCommunicate OK [10:08:01]CreateOFDProtocolMessage done [10:08:01]OFDSenderStorePacket 69737 [10:08:01]StoreOFDPacket docnum=69737 [10:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D A4 07 01 5F 91 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 03 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 10 01 00 35 04 06 00 4B 50 0C A0 E7 15 C7 F3 61 76 F2 EC 4E 7F [10:08:01]CheckFolder [10:08:01]dirname=/storage/ofd_packets [10:08:01]CheckFolder done [10:08:01]ProducePacketName [10:08:01]name=ofd_packets/00069737 [10:08:01]NVStorageSaveData ofd_packets/00069737 [10:08:01]File name is /storage/ofd_packets/00069737 [10:08:01]Write 301 bytes [10:08:01]NVStorageSaveData done [10:08:01]OFDSenderStorePacket done [10:08:01]KKMCreateOFDPacket done [10:08:01]NVStorageSaveData kkm_last_timestamp [10:08:01]File name is /storage/kkm_last_timestamp [10:08:01]Write 4 bytes [10:08:01]NVStorageSaveData done [10:08:01]ExternCall_PrintAddStr [10:08:01]wPrintStart [10:08:01]Write to MH i2c: 01 00 00 75 27 9C [10:08:01]OFD Sender: Processing packet 69737 [packets to send 18, broken 17] [10:08:01]ProducePacketName [10:08:01]name=ofd_packets/00069737 [10:08:01]OFD Sender: To server: pG, [10:08:01]CommunicateWithHost lk.salyk.kg:30040 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]ConnectInit lk.salyk.kg [10:08:01]Read from MH i2c: 01 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: 01 07 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [10:08:01]RasterBufferAndPrint [10:08:01]line Счет N : (1)2885476 [10:08:01]line ИНН: 02508201610067 [10:08:01]line Контрольно-Кассовый Чек [10:08:01]line ПРОДАЖА [10:08:01]line ТРК (МРК, ГНК) : 42 [10:08:01]line Товар: 2710124130 [10:08:01]line Аи-92-К-5 [10:08:01]line 14.950 * 66.90 [10:08:01]line = 1000.16 [10:08:01]line НДС 12% НСП 1% [10:08:01]line > о реализуемом товаре [10:08:01]line ОКРУГЛЕНИЕ: -0.16 [10:08:01]line ИТОГО: 1000.00 [10:08:01]line Внесено: 1000.00 [10:08:01]line СДАЧА: 0.00 [10:08:01]line НСП 1% : 8.85 [10:08:01]line НДС 12% : 106.21 [10:08:01]line Наличными: 1000.00 [10:08:01]line Безнал.: 0.00 [10:08:01]line Место: АЗС № 85 "Партнер Нефть" [10:08:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:08:01]line СНО: Общий режим [10:08:01]line Чек 127 21.10.2024 10:08 [10:08:01]line Смена: 194 ФФД: 1.0 [10:08:01]line ЗНМ: 0300000167 [10:08:01]line РНМ: 0000000000156251 [10:08:01]line Версия ККМ: v1.0 [10:08:01]line ФМ: 0000000000963346 [10:08:01]line ФД: 69737 [10:08:01]line ФПД: 82807181338389 [10:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69737&fm=82807181338389&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:02]Connected sock=10 [10:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D A4 07 01 5F 91 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 03 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 10 01 00 35 04 06 00 4B 50 0C A0 E7 15 C7 F3 61 76 F2 EC 4E 7F [10:08:02]written 0, free lines is 4095 [10:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 DA 47 00 76 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 10 01 00 F4 03 04 00 A7 D1 15 67 B6 04 01 00 00 53 2A 41 06 FA 46 2B 99 [10:08:02]CommunicateWithHost err = 0 [10:08:02]CheckOFDResponse [10:08:02]1017 (14) - 77093643461234 [10:08:02]1041 (16) - 0000000000963346 [10:08:02]1040 (4) - 69737 [10:08:02]1012 (4) - 21.10.2024 03:59 [10:08:02]1206 (1) - 0 [10:08:02]OFD Sender: Remove packet 69737 [10:08:02]ProducePacketName [10:08:02]name=ofd_packets/00069737 [10:08:02]NVStorageDeleteData [10:08:02]Write to MH i2c: 01 00 00 A0 27 C7 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 07 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 07 00 A0 27 00 00 00 00 00 F0 0C CA [10:08:02]RasterBufferAndPrint [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]written 0, free lines is 3318 [10:08:02]MH_Cut [10:08:02]Write to MH i2c: D1 01 00 A7 27 01 A0 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 01 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 01 00 A7 27 00 9F [10:08:02]Write to MH i2c: 01 00 00 A8 27 CF [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]OFD Sender: No OFD packet to send [10:08:03]*** Cut start [10:08:03]*** Partial cut [10:08:03]*** CUTSNS_PIN = 1 [10:08:03]*** CUTSNS_PIN = 0 [10:08:03]*** Brake cut motor [10:08:03]Read from MH i2c: 01 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 [10:08:03]MH_I2C_Read... [10:08:03]*** Stop cut motor [10:08:03]*** Cut end [10:08:03]Read from MH i2c: 01 07 00 A8 27 00 00 00 00 00 FF 0F E4 [10:08:03]process_action close_receipt done [10:08:03]requested_data is exist [10:08:03]produce_requested_data [10:08:03]requested_item fm.sn is exist - process it [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 11 00 00 [10:08:03]Write to MH i2c: E2 08 00 A9 27 80 11 00 00 00 00 00 00 4A [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 A9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [10:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:08:03]wFMCommunicate OK [10:08:03]requested_item fd.num is exist - process it [10:08:03]SAM_PROTO_GetFieldsCounters [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 00 00 [10:08:03]Write to MH i2c: E2 08 00 AA 27 80 13 00 00 00 00 00 00 4D [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 62 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 62 00 AA 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_GetFieldsCounters done [10:08:03]requested_item shift.num is exist - process it [10:08:03]requested_item shift.opened is exist - process it [10:08:03]req_shift_opened [10:08:03]FM_GetShiftState [10:08:03]SAM_PROTO_GetShiftState [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 01 00 [10:08:03]Write to MH i2c: E2 08 00 AB 27 80 13 01 00 00 00 00 00 4F [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0E 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0E 00 AB 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7B [10:08:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:08:04]wFMCommunicate OK [10:08:04]SAM_PROTO_GetShiftState done [10:08:04]FM_GetShiftState done [10:08:04]req_shift_opened done [10:08:04]requested_item shift.open_date is exist - process it [10:08:04]req_shift_open_date [10:08:04]req_shift_open_date done [10:08:04]produce_requested_data done [10:08:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69737,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:08:04]process_action_free close_receipt [10:08:04]json_value_free [10:08:04]json_value_free done [10:08:04]process_json_proto returns [10:08:04]Send response to host [10:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69737,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:08:04]free response buf [10:08:04]execute_script done [10:08:04]execute_script returns [10:08:04]free content buf [10:08:04]Sock 9.Close socket [10:08:04]Sock 9.Thread stoped [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: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:04]accept exits with 8 [10:10:04]New connection [10:10:04]New thread 3067456868 created [10:10:04]Thread 3067313508 joined [10:10:04]Waiting for new connection... [10:10:04] Sock 8.Parse request [10:10:04]Sock 8.Check first char [10:10:04]Sock 8.First char is OK [10:10:04]request: POST /json_proto HTTP/1.0 [10:10:04]Method: POST [10:10:04]URL: /json_proto [10:10:04]Method is POST - this is cgi request [10:10:04]url: /json_proto [10:10:04]query_string will be loaded in cgi processing [10:10:04]execute_cgi json_proto POST (null) [10:10:04]execute_cgi path=json_proto method=POST [10:10:04]POST find Content-Length [10:10:04]Host: 172.17.50.3:8080 [10:10:04]Content-Length: 755 [10:10:04]Content-Type: application/json [10:10:04] [10:10:04]POST finish read [10:10:04]Found Content-Length = 755 [10:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885477", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30052676", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:04]execute_script... [10:10: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)2885477", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30052676", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:04]POST & json_proto [10:10:04]process_json_proto [10:10:04]json parsed OK: [10:10:04]protocol is kg_v1.0 [10:10:04]action value=close_receipt [10:10:04]process_action close_receipt [10:10:04]cmd_close_receipt [10:10:04]MH_GetDate [10:10:04]Write to MH i2c: F0 00 00 AC 27 C2 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: F0 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: F0 09 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: F0 09 00 AC 27 00 7F 28 16 67 6B 98 1E 66 76 [10:10:04]GetLastDocTimeStamp 1729505283 [10:10:04]current date 1729505407 [10:10:04]FM_GetShiftState [10:10:04]SAM_PROTO_GetShiftState [10:10:04]wFMCommunicate request_size=4 [10:10:04]MH_SAM_APDU [10:10:04]CAPDU: 80 13 01 00 [10:10:04]Write to MH i2c: E2 08 00 AD 27 80 13 01 00 00 00 00 00 51 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 AD 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7D [10:10:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:04]wFMCommunicate OK [10:10:04]SAM_PROTO_GetShiftState done [10:10:04]FM_GetShiftState done [10:10:04]opened in 1729469703 [10:10:04]opened+sec_in_day 1729556103 [10:10:04]quantity*price = 0 [10:10:04]sum+1 = 1 [10:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 128 21.10.2024 10:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30052676 ФМ: 0000000000963346 ФД: 69738 ФПД: 208165975551813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69738&fm=208165975551813&tin=02508201610067®Number=0000000000156251&sum=0 [10:10:05]StoreToDocumentArchive [10:10:05]shift 194 fd 69738 [10:10:05]save to /storage/0194/doc_00069738 [10:10:05]save last doc name /storage/0194/doc_00069738 to /storage/kkm_last_doc_name [10:10:05]save OK [10:10:05]Clear old archive folders... [10:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:05]tlvbuf is 00C8AD50 [10:10:05]SAM_PROTO_ClearQueue [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 09 00 00 [10:10:05]Write to MH i2c: E2 08 00 BA 27 80 09 00 00 00 00 00 00 53 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 03 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 03 00 BA 27 00 90 00 55 [10:10:05]RAPDU: 90 00 [10:10:05]wFMCommunicate OK [10:10:05]SAM_PROTO_ClearQueue done [10:10:05]KKMCreateOFDPacket [10:10:05]OFDProtocolAddRootSTLVToBuf [10:10:05]FM_MakeSignedData [10:10:05]FM_MakeSignedData [10:10:05]SAM_PROTO_SignData [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 0D 01 02 [10:10:05]Write to MH i2c: E2 08 00 BB 27 80 0D 01 02 00 00 00 00 5B [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 03 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 03 00 BB 27 00 90 00 56 [10:10:05]RAPDU: 90 00 [10:10:05]wFMCommunicate OK [10:10:05]wFMCommunicate request_size=255 [10:10:05]MH_SAM_APDU [10:10: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 10 01 00 35 04 06 00 BD [10:10:05]Write to MH i2c: E2 02 01 BC 27 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 10 01 00 35 04 06 00 BD 00 00 CF [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:06]Read from MH i2c: E2 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 03 00 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 03 00 BC 27 00 90 00 57 [10:10:06]RAPDU: 90 00 [10:10:06]wFMCommunicate OK [10:10:06]wFMCommunicate request_size=10 [10:10:06]MH_SAM_APDU [10:10:06]CAPDU: 80 0D 02 02 05 53 6B 06 EF 45 [10:10:06]Write to MH i2c: E2 0D 00 BD 27 80 0D 02 02 05 00 53 6B 06 EF 45 00 00 60 [10:10:06]Write i2c OK [10:10:06]MH_I2C_Read... [10:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:06]Read from MH i2c: E2 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 03 00 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 03 00 BD 27 00 90 00 58 [10:10:06]RAPDU: 90 00 [10:10:06]wFMCommunicate OK [10:10:06]wFMCommunicate request_size=4 [10:10:06]MH_SAM_APDU [10:10:06]CAPDU: 80 0D 03 02 [10:10:06]Write to MH i2c: E2 08 00 BE 27 80 0D 03 02 00 00 00 00 60 [10:10:06]Write i2c OK [10:10:06]MH_I2C_Read... [10:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:06]Read from MH i2c: E2 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 0B 00 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 0B 00 BE 27 00 79 3E 4A 6C 88 41 3F 40 90 00 16 [10:10:06]RAPDU: 79 3E 4A 6C 88 41 3F 40 90 00 [10:10:06]wFMCommunicate OK [10:10:06]SAM_PROTO_SignData done [10:10:06]FM_MakeSignedData done [10:10:06]CreateOFDProtocolMessage [10:10:06]wFMCommunicate request_size=4 [10:10:06]MH_SAM_APDU [10:10:06]CAPDU: 80 11 00 00 [10:10:06]Write to MH i2c: E2 08 00 BF 27 80 11 00 00 00 00 00 00 60 [10:10:06]Write i2c OK [10:10:06]MH_I2C_Read... [10:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:06]Read from MH i2c: E2 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 17 00 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: E2 17 00 BF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [10:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:06]wFMCommunicate OK [10:10:06]CreateOFDProtocolMessage done [10:10:06]OFDSenderStorePacket 69738 [10:10:06]StoreOFDPacket docnum=69738 [10:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5C 64 07 01 37 17 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 10 01 00 35 04 06 00 BD 53 6B 06 EF 45 79 3E 4A 6C 88 41 3F 40 [10:10:06]CheckFolder [10:10:06]dirname=/storage/ofd_packets [10:10:06]CheckFolder done [10:10:06]ProducePacketName [10:10:06]name=ofd_packets/00069738 [10:10:06]NVStorageSaveData ofd_packets/00069738 [10:10:06]File name is /storage/ofd_packets/00069738 [10:10:06]Write 301 bytes [10:10:06]NVStorageSaveData done [10:10:06]OFDSenderStorePacket done [10:10:06]KKMCreateOFDPacket done [10:10:06]NVStorageSaveData kkm_last_timestamp [10:10:06]File name is /storage/kkm_last_timestamp [10:10:06]Write 4 bytes [10:10:06]NVStorageSaveData done [10:10:06]ExternCall_PrintAddStr [10:10:06]wPrintStart [10:10:06]Write to MH i2c: 01 00 00 C0 27 E7 [10:10:06]Write i2c OK [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: 01 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: 01 07 00 [10:10:06]MH_I2C_Read... [10:10:06]Read from MH i2c: 01 07 00 C0 27 00 00 00 00 00 FF 0F FC [10:10:06]RasterBufferAndPrint [10:10:06]line Счет N : (1)2885477 [10:10:06]line ИНН: 02508201610067 [10:10:06]line Контрольно-Кассовый Чек [10:10:06]line ПРОДАЖА [10:10:06]line ТРК (МРК, ГНК) : 32 [10:10:06]line Товар: 2710124130 [10:10:06]line Аи-92-К-5 [10:10:06]line 15.000 * 0.00 [10:10:06]line = 0.00 [10:10:06]line НДС 12% НСП 1% [10:10:06]line > о реализуемом товаре [10:10:06]line ИТОГО: 0.00 [10:10:06]line НСП 1% : 0.00 [10:10:06]line НДС 12% : 0.00 [10:10:06]line Наличными: 0.00 [10:10:06]line Безнал.: 0.00 [10:10:06]line Место: АЗС № 85 "Партнер Нефть" [10:10:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:10:06]line СНО: Общий режим [10:10:06]line Чек 128 21.10.2024 10:10 [10:10:06]line Смена: 194 ФФД: 1.0 [10:10:06]line ЗНМ: 0300000167 [10:10:06]line РНМ: 0000000000156251 [10:10:06]line Версия ККМ: v1.0 [10:10:06]line Талоны: ТК ГПНА Online [10:10:06]line 30052676 [10:10:06]line ФМ: 0000000000963346 [10:10:06]line ФД: 69738 [10:10:06]line ФПД: 208165975551813 [10:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101007&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69738&fm=208165975551813&tin=02508201610067®Number=0000000000156251&sum=0 [10:10:06]OFD Sender: Processing packet 69738 [packets to send 18, broken 17] [10:10:06]ProducePacketName [10:10:06]name=ofd_packets/00069738 [10:10:06]OFD Sender: To server: pG, [10:10:06]CommunicateWithHost lk.salyk.kg:30040 [10:10:06]ConnectInit lk.salyk.kg [10:10:06]written 0, free lines is 4095 [10:10:06]Connected sock=10 [10:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5C 64 07 01 37 17 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 10 01 00 35 04 06 00 BD 53 6B 06 EF 45 79 3E 4A 6C 88 41 3F 40 [10:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AB B8 47 00 61 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 10 01 00 F4 03 04 00 23 D2 15 67 B6 04 01 00 00 CA 73 04 68 9F 42 2A B9 [10:10:07]CommunicateWithHost err = 0 [10:10:07]CheckOFDResponse [10:10:07]1017 (14) - 77093643461234 [10:10:07]1041 (16) - 0000000000963346 [10:10:07]1040 (4) - 69738 [10:10:07]1012 (4) - 21.10.2024 04:01 [10:10:07]1206 (1) - 0 [10:10:07]OFD Sender: Remove packet 69738 [10:10:07]ProducePacketName [10:10:07]name=ofd_packets/00069738 [10:10:07]NVStorageDeleteData [10:10:07]Write to MH i2c: 01 00 00 EA 27 11 [10:10:07]Write i2c OK [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: 01 [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: 01 07 00 [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: 01 07 00 EA 27 00 00 00 00 00 F0 0C 14 [10:10:07]RasterBufferAndPrint [10:10:07]line [10:10:07]line [10:10:07]line [10:10:07]line [10:10:07]line [10:10:07]written 0, free lines is 3318 [10:10:07]MH_Cut [10:10:07]Write to MH i2c: D1 01 00 F1 27 01 EA [10:10:07]Write i2c OK [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: D1 [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: D1 01 00 [10:10:07]MH_I2C_Read... [10:10:07]Read from MH i2c: D1 01 00 F1 27 00 E9 [10:10:07]Write to MH i2c: 01 00 00 F2 27 19 [10:10:07]Write i2c OK [10:10:07]MH_I2C_Read... [10:10:07]OFD Sender: No OFD packet to send [10:10:07]*** Cut start [10:10:07]*** Partial cut [10:10:07]*** CUTSNS_PIN = 1 [10:10:07]*** CUTSNS_PIN = 0 [10:10:08]*** Brake cut motor [10:10:08]Read from MH i2c: 01 [10:10:08]MH_I2C_Read... [10:10:08]*** Stop cut motor [10:10:08]*** Cut end [10:10:08]Read from MH i2c: 01 07 00 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: 01 07 00 F2 27 00 00 00 00 00 FF 0F 2E [10:10:08]process_action close_receipt done [10:10:08]requested_data is exist [10:10:08]produce_requested_data [10:10:08]requested_item fm.sn is exist - process it [10:10:08]wFMCommunicate request_size=4 [10:10:08]MH_SAM_APDU [10:10:08]CAPDU: 80 11 00 00 [10:10:08]Write to MH i2c: E2 08 00 F3 27 80 11 00 00 00 00 00 00 94 [10:10:08]Write i2c OK [10:10:08]MH_I2C_Read... [10:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:08]Read from MH i2c: E2 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 17 00 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 17 00 F3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [10:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:08]wFMCommunicate OK [10:10:08]requested_item fd.num is exist - process it [10:10:08]SAM_PROTO_GetFieldsCounters [10:10:08]wFMCommunicate request_size=4 [10:10:08]MH_SAM_APDU [10:10:08]CAPDU: 80 13 00 00 [10:10:08]Write to MH i2c: E2 08 00 F4 27 80 13 00 00 00 00 00 00 97 [10:10:08]Write i2c OK [10:10:08]MH_I2C_Read... [10:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:08]Read from MH i2c: E2 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 62 00 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 62 00 F4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:08]wFMCommunicate OK [10:10:08]SAM_PROTO_GetFieldsCounters done [10:10:08]requested_item shift.num is exist - process it [10:10:08]requested_item shift.opened is exist - process it [10:10:08]req_shift_opened [10:10:08]FM_GetShiftState [10:10:08]SAM_PROTO_GetShiftState [10:10:08]wFMCommunicate request_size=4 [10:10:08]MH_SAM_APDU [10:10:08]CAPDU: 80 13 01 00 [10:10:08]Write to MH i2c: E2 08 00 F5 27 80 13 01 00 00 00 00 00 99 [10:10:08]Write i2c OK [10:10:08]MH_I2C_Read... [10:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:08]Read from MH i2c: E2 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 0E 00 [10:10:08]MH_I2C_Read... [10:10:08]Read from MH i2c: E2 0E 00 F5 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [10:10:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:08]wFMCommunicate OK [10:10:08]SAM_PROTO_GetShiftState done [10:10:08]FM_GetShiftState done [10:10:08]req_shift_opened done [10:10:08]requested_item shift.open_date is exist - process it [10:10:08]req_shift_open_date [10:10:08]req_shift_open_date done [10:10:08]produce_requested_data done [10:10:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69738,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:10:08]process_action_free close_receipt [10:10:08]json_value_free [10:10:08]json_value_free done [10:10:08]process_json_proto returns [10:10:08]Send response to host [10:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69738,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:10:08]free response buf [10:10:08]execute_script done [10:10:08]execute_script returns [10:10:08]free content buf [10:10:08]Sock 8.Close socket [10:10:08]Sock 8.Thread stoped [10:10:09]accept exits with 9 [10:10:09]New connection [10:10:09]New thread 3067313508 created [10:10:09]Thread 3067456868 joined [10:10:09]Waiting for new connection... [10:10:09] Sock 9.Parse request [10:10:09]Sock 9.Check first char [10:10:09]Sock 9.First char is OK [10:10:09]request: POST /json_proto HTTP/1.0 [10:10:09]Method: POST [10:10:09]URL: /json_proto [10:10:09]Method is POST - this is cgi request [10:10:09]url: /json_proto [10:10:09]query_string will be loaded in cgi processing [10:10:09]execute_cgi json_proto POST (null) [10:10:09]execute_cgi path=json_proto method=POST [10:10:09]POST find Content-Length [10:10:09]Host: 172.17.50.3:8080 [10:10:09]Content-Length: 678 [10:10:09]Content-Type: application/json [10:10:09] [10:10:09]POST finish read [10:10:09]Found Content-Length = 678 [10:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:09]execute_script... [10:10:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:09]POST & json_proto [10:10:09]process_json_proto [10:10:09]json parsed OK: [10:10:09]protocol is kg_v1.0 [10:10:09]action value=close_receipt [10:10:09]process_action close_receipt [10:10:09]cmd_close_receipt [10:10:09]MH_GetDate [10:10:09]Write to MH i2c: F0 00 00 F6 27 0C [10:10:09]Write i2c OK [10:10:09]MH_I2C_Read... [10:10:09]Read from MH i2c: F0 [10:10:09]MH_I2C_Read... [10:10:09]Read from MH i2c: F0 09 00 [10:10:09]MH_I2C_Read... [10:10:09]Read from MH i2c: F0 09 00 F6 27 00 84 28 16 67 6B 98 1E 66 C5 [10:10:09]GetLastDocTimeStamp 1729505407 [10:10:09]current date 1729505412 [10:10:09]FM_GetShiftState [10:10:09]SAM_PROTO_GetShiftState [10:10:09]wFMCommunicate request_size=4 [10:10:09]MH_SAM_APDU [10:10:09]CAPDU: 80 13 01 00 [10:10:09]Write to MH i2c: E2 08 00 F7 27 80 13 01 00 00 00 00 00 9B [10:10:09]Write i2c OK [10:10:09]MH_I2C_Read... [10:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:09]Read from MH i2c: E2 [10:10:09]MH_I2C_Read... [10:10:09]Read from MH i2c: E2 0E 00 [10:10:09]MH_I2C_Read... [10:10:09]Read from MH i2c: E2 0E 00 F7 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C7 [10:10:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:09]wFMCommunicate OK [10:10:09]SAM_PROTO_GetShiftState done [10:10:09]FM_GetShiftState done [10:10:09]opened in 1729469703 [10:10:09]opened+sec_in_day 1729556103 [10:10:09]quantity*price = 60009 [10:10:09]sum+1 = 60010 [10:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 129 21.10.2024 10:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69739 ФПД: 198716694511586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69739&fm=198716694511586&tin=02508201610067®Number=0000000000156251&sum=60000 [10:10:10]StoreToDocumentArchive [10:10:10]shift 194 fd 69739 [10:10:10]save to /storage/0194/doc_00069739 [10:10:10]save last doc name /storage/0194/doc_00069739 to /storage/kkm_last_doc_name [10:10:10]save OK [10:10:10]Clear old archive folders... [10:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:10]tlvbuf is 00CA53C0 [10:10:10]SAM_PROTO_ClearQueue [10:10:10]wFMCommunicate request_size=4 [10:10:10]MH_SAM_APDU [10:10:10]CAPDU: 80 09 00 00 [10:10:10]Write to MH i2c: E2 08 00 04 28 80 09 00 00 00 00 00 00 9E [10:10:10]Write i2c OK [10:10:10]MH_I2C_Read... [10:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:10]Read from MH i2c: E2 [10:10:10]MH_I2C_Read... [10:10:10]Read from MH i2c: E2 03 00 [10:10:10]MH_I2C_Read... [10:10:10]Read from MH i2c: E2 03 00 04 28 00 90 00 A0 [10:10:10]RAPDU: 90 00 [10:10:10]wFMCommunicate OK [10:10:10]SAM_PROTO_ClearQueue done [10:10:10]KKMCreateOFDPacket [10:10:10]OFDProtocolAddRootSTLVToBuf [10:10:10]FM_MakeSignedData [10:10:10]FM_MakeSignedData [10:10:10]SAM_PROTO_SignData [10:10:10]wFMCommunicate request_size=4 [10:10:10]MH_SAM_APDU [10:10:10]CAPDU: 80 0D 01 02 [10:10:10]Write to MH i2c: E2 08 00 05 28 80 0D 01 02 00 00 00 00 A6 [10:10:10]Write i2c OK [10:10:10]MH_I2C_Read... [10:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:10]Read from MH i2c: E2 [10:10:10]MH_I2C_Read... [10:10:10]Read from MH i2c: E2 03 00 [10:10:10]MH_I2C_Read... [10:10:10]Read from MH i2c: E2 03 00 05 28 00 90 00 A1 [10:10:10]RAPDU: 90 00 [10:10:10]wFMCommunicate OK [10:10:10]wFMCommunicate request_size=255 [10:10:10]MH_SAM_APDU [10:10:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 84 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 10 01 00 35 04 06 00 B4 [10:10:10]Write to MH i2c: E2 02 01 06 28 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 84 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 10 01 00 35 04 06 00 B4 00 00 A8 [10:10:10]Write i2c OK [10:10:10]MH_I2C_Read... [10:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:11]Read from MH i2c: E2 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 03 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 03 00 06 28 00 90 00 A2 [10:10:11]RAPDU: 90 00 [10:10:11]wFMCommunicate OK [10:10:11]wFMCommunicate request_size=10 [10:10:11]MH_SAM_APDU [10:10:11]CAPDU: 80 0D 02 02 05 BB 55 FC BF E2 [10:10:11]Write to MH i2c: E2 0D 00 07 28 80 0D 02 02 05 00 BB 55 FC BF E2 00 00 60 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:11]Read from MH i2c: E2 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 03 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 03 00 07 28 00 90 00 A3 [10:10:11]RAPDU: 90 00 [10:10:11]wFMCommunicate OK [10:10:11]wFMCommunicate request_size=4 [10:10:11]MH_SAM_APDU [10:10:11]CAPDU: 80 0D 03 02 [10:10:11]Write to MH i2c: E2 08 00 08 28 80 0D 03 02 00 00 00 00 AB [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:11]Read from MH i2c: E2 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 0B 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 0B 00 08 28 00 74 AC DF 77 F3 33 D5 0C 90 00 29 [10:10:11]RAPDU: 74 AC DF 77 F3 33 D5 0C 90 00 [10:10:11]wFMCommunicate OK [10:10:11]SAM_PROTO_SignData done [10:10:11]FM_MakeSignedData done [10:10:11]CreateOFDProtocolMessage [10:10:11]wFMCommunicate request_size=4 [10:10:11]MH_SAM_APDU [10:10:11]CAPDU: 80 11 00 00 [10:10:11]Write to MH i2c: E2 08 00 09 28 80 11 00 00 00 00 00 00 AB [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:11]Read from MH i2c: E2 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 17 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 17 00 09 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [10:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:11]wFMCommunicate OK [10:10:11]CreateOFDProtocolMessage done [10:10:11]OFDSenderStorePacket 69739 [10:10:11]StoreOFDPacket docnum=69739 [10:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 45 07 01 CC 20 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 84 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 10 01 00 35 04 06 00 B4 BB 55 FC BF E2 74 AC DF 77 F3 33 D5 0C [10:10:11]CheckFolder [10:10:11]dirname=/storage/ofd_packets [10:10:11]CheckFolder done [10:10:11]ProducePacketName [10:10:11]name=ofd_packets/00069739 [10:10:11]NVStorageSaveData ofd_packets/00069739 [10:10:11]File name is /storage/ofd_packets/00069739 [10:10:11]Write 301 bytes [10:10:11]NVStorageSaveData done [10:10:11]OFDSenderStorePacket done [10:10:11]KKMCreateOFDPacket done [10:10:11]NVStorageSaveData kkm_last_timestamp [10:10:11]File name is /storage/kkm_last_timestamp [10:10:11]Write 4 bytes [10:10:11]NVStorageSaveData done [10:10:11]ExternCall_PrintAddStr [10:10:11]wPrintStart [10:10:11]Write to MH i2c: 01 00 00 0A 28 32 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 07 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 07 00 0A 28 00 00 00 00 00 FF 0F 47 [10:10:11]RasterBufferAndPrint [10:10:11]line Счет N : (1)2885478 [10:10:11]line ИНН: 02508201610067 [10:10:11]line Контрольно-Кассовый Чек [10:10:11]line ПРОДАЖА [10:10:11]line ТРК (МРК, ГНК) : 12 [10:10:11]line Товар: 2710124130 [10:10:11]line Аи-92-К-5 [10:10:11]line 8.970 * 66.90 [10:10:11]line = 600.09 [10:10:11]line НДС 12% НСП 1% [10:10:11]line > о реализуемом товаре [10:10:11]line ОКРУГЛЕНИЕ: -0.09 [10:10:11]line ИТОГО: 600.00 [10:10:11]line Внесено: 600.00 [10:10:11]line СДАЧА: 0.00 [10:10:11]line НСП 1% : 5.31 [10:10:11]line НДС 12% : 63.73 [10:10:11]line Наличными: 600.00 [10:10:11]line Безнал.: 0.00 [10:10:11]line Место: АЗС № 85 "Партнер Нефть" [10:10:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:10:11]line СНО: Общий режим [10:10:11]line Чек 129 21.10.2024 10:10 [10:10:11]line Смена: 194 ФФД: 1.0 [10:10:11]line ЗНМ: 0300000167 [10:10:11]line РНМ: 0000000000156251 [10:10:11]line Версия ККМ: v1.0 [10:10:11]line ФМ: 0000000000963346 [10:10:11]line ФД: 69739 [10:10:11]line ФПД: 198716694511586 [10:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69739&fm=198716694511586&tin=02508201610067®Number=0000000000156251&sum=60000 [10:10:11]written 0, free lines is 4095 [10:10:11]OFD Sender: Processing packet 69739 [packets to send 18, broken 17] [10:10:11]ProducePacketName [10:10:11]name=ofd_packets/00069739 [10:10:11]OFD Sender: To server: pG, [10:10:11]CommunicateWithHost lk.salyk.kg:30040 [10:10:11]ConnectInit lk.salyk.kg [10:10:11]Connected sock=10 [10:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 45 07 01 CC 20 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 84 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 10 01 00 35 04 06 00 B4 BB 55 FC BF E2 74 AC DF 77 F3 33 D5 0C [10:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 A2 47 00 A4 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 10 01 00 F4 03 04 00 28 D2 15 67 B6 04 01 00 00 9D 13 0E 8E 67 7E 6B 0F [10:10:11]CommunicateWithHost err = 0 [10:10:11]CheckOFDResponse [10:10:11]1017 (14) - 77093643461234 [10:10:11]1041 (16) - 0000000000963346 [10:10:11]1040 (4) - 69739 [10:10:11]1012 (4) - 21.10.2024 04:01 [10:10:11]1206 (1) - 0 [10:10:11]OFD Sender: Remove packet 69739 [10:10:11]ProducePacketName [10:10:11]name=ofd_packets/00069739 [10:10:11]NVStorageDeleteData [10:10:11]Write to MH i2c: 01 00 00 35 28 5D [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 07 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: 01 07 00 35 28 00 00 00 00 00 F0 0C 60 [10:10:11]RasterBufferAndPrint [10:10:11]line [10:10:11]line [10:10:11]line [10:10:11]line [10:10:11]line [10:10:11]written 0, free lines is 3328 [10:10:11]MH_Cut [10:10:11]Write to MH i2c: D1 01 00 3C 28 01 36 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: D1 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: D1 01 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: D1 01 00 3C 28 00 35 [10:10:11]Write to MH i2c: 01 00 00 3D 28 65 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:12]OFD Sender: No OFD packet to send [10:10:12]*** Cut start [10:10:12]*** Partial cut [10:10:12]*** CUTSNS_PIN = 1 [10:10:12]*** CUTSNS_PIN = 0 [10:10:12]*** Brake cut motor [10:10:12]Read from MH i2c: 01 [10:10:12]MH_I2C_Read... [10:10:12]*** Stop cut motor [10:10:13]*** Cut end [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 3D 28 00 00 00 00 00 FF 0F 7A [10:10:13]process_action close_receipt done [10:10:13]requested_data is exist [10:10:13]produce_requested_data [10:10:13]requested_item fm.sn is exist - process it [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 11 00 00 [10:10:13]Write to MH i2c: E2 08 00 3E 28 80 11 00 00 00 00 00 00 E0 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 3E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [10:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:13]wFMCommunicate OK [10:10:13]requested_item fd.num is exist - process it [10:10:13]SAM_PROTO_GetFieldsCounters [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 13 00 00 [10:10:13]Write to MH i2c: E2 08 00 3F 28 80 13 00 00 00 00 00 00 E3 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 62 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 62 00 3F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:10:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:13]wFMCommunicate OK [10:10:13]SAM_PROTO_GetFieldsCounters done [10:10:13]requested_item shift.num is exist - process it [10:10:13]requested_item shift.opened is exist - process it [10:10:13]req_shift_opened [10:10:13]FM_GetShiftState [10:10:13]SAM_PROTO_GetShiftState [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 13 01 00 [10:10:13]Write to MH i2c: E2 08 00 40 28 80 13 01 00 00 00 00 00 E5 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0E 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0E 00 40 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [10:10:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:13]wFMCommunicate OK [10:10:13]SAM_PROTO_GetShiftState done [10:10:13]FM_GetShiftState done [10:10:13]req_shift_opened done [10:10:13]requested_item shift.open_date is exist - process it [10:10:13]req_shift_open_date [10:10:13]req_shift_open_date done [10:10:13]produce_requested_data done [10:10:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69739,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:10:13]process_action_free close_receipt [10:10:13]json_value_free [10:10:13]json_value_free done [10:10:13]process_json_proto returns [10:10:13]Send response to host [10:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69739,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:10:13]free response buf [10:10:13]execute_script done [10:10:13]execute_script returns [10:10:13]free content buf [10:10:13]Sock 9.Close socket [10:10:13]Sock 9.Thread stoped [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:46]accept exits with 8 [10:10:46]New connection [10:10:46]New thread 3067456868 created [10:10:46]Thread 3067313508 joined [10:10:46]Waiting for new connection... [10:10:46] Sock 8.Parse request [10:10:46]Sock 8.Check first char [10:10:46]Sock 8.First char is OK [10:10:46]request: POST /json_proto HTTP/1.0 [10:10:46]Method: POST [10:10:46]URL: /json_proto [10:10:46]Method is POST - this is cgi request [10:10:46]url: /json_proto [10:10:46]query_string will be loaded in cgi processing [10:10:46]execute_cgi json_proto POST (null) [10:10:46]execute_cgi path=json_proto method=POST [10:10:46]POST find Content-Length [10:10:46]Host: 172.17.50.3:8080 [10:10:46]Content-Length: 678 [10:10:46]Content-Type: application/json [10:10:46] [10:10:46]POST finish read [10:10:46]Found Content-Length = 678 [10:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885479", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:46]execute_script... [10:10: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)2885479", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:46]POST & json_proto [10:10:46]process_json_proto [10:10:46]json parsed OK: [10:10:46]protocol is kg_v1.0 [10:10:46]action value=close_receipt [10:10:46]process_action close_receipt [10:10:46]cmd_close_receipt [10:10:46]MH_GetDate [10:10:46]Write to MH i2c: F0 00 00 41 28 58 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: F0 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: F0 09 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: F0 09 00 41 28 00 A9 28 16 67 6B 98 1E 66 36 [10:10:46]GetLastDocTimeStamp 1729505412 [10:10:46]current date 1729505449 [10:10:46]FM_GetShiftState [10:10:46]SAM_PROTO_GetShiftState [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 13 01 00 [10:10:46]Write to MH i2c: E2 08 00 42 28 80 13 01 00 00 00 00 00 E7 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0E 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0E 00 42 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [10:10:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_GetShiftState done [10:10:46]FM_GetShiftState done [10:10:46]opened in 1729469703 [10:10:46]opened+sec_in_day 1729556103 [10:10:46]quantity*price = 50041 [10:10:46]sum+1 = 50042 [10:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 130 21.10.2024 10:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69740 ФПД: 7695404376762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69740&fm=7695404376762&tin=02508201610067®Number=0000000000156251&sum=50000 [10:10:47]StoreToDocumentArchive [10:10:47]shift 194 fd 69740 [10:10:47]save to /storage/0194/doc_00069740 [10:10:47]save last doc name /storage/0194/doc_00069740 to /storage/kkm_last_doc_name [10:10:47]save OK [10:10:47]Clear old archive folders... [10:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:47]tlvbuf is 00C6BF00 [10:10:47]SAM_PROTO_ClearQueue [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 09 00 00 [10:10:47]Write to MH i2c: E2 08 00 4F 28 80 09 00 00 00 00 00 00 E9 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 4F 28 00 90 00 EB [10:10:47]RAPDU: 90 00 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_ClearQueue done [10:10:47]KKMCreateOFDPacket [10:10:47]OFDProtocolAddRootSTLVToBuf [10:10:47]FM_MakeSignedData [10:10:47]FM_MakeSignedData [10:10:47]SAM_PROTO_SignData [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 0D 01 02 [10:10:47]Write to MH i2c: E2 08 00 50 28 80 0D 01 02 00 00 00 00 F1 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 50 28 00 90 00 EC [10:10:47]RAPDU: 90 00 [10:10:47]wFMCommunicate OK [10:10:47]wFMCommunicate request_size=255 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A9 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 10 01 00 35 04 06 00 06 [10:10:47]Write to MH i2c: E2 02 01 51 28 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A9 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 10 01 00 35 04 06 00 06 00 00 8F [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 51 28 00 90 00 ED [10:10:47]RAPDU: 90 00 [10:10:47]wFMCommunicate OK [10:10:47]wFMCommunicate request_size=10 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 0D 02 02 05 FF B9 D8 22 BA [10:10:47]Write to MH i2c: E2 0D 00 52 28 80 0D 02 02 05 00 FF B9 D8 22 BA 00 00 6A [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 03 00 52 28 00 90 00 EE [10:10:47]RAPDU: 90 00 [10:10:47]wFMCommunicate OK [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 0D 03 02 [10:10:47]Write to MH i2c: E2 08 00 53 28 80 0D 03 02 00 00 00 00 F6 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0B 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0B 00 53 28 00 B8 5A 7C 5E 59 FB 21 BD 90 00 15 [10:10:47]RAPDU: B8 5A 7C 5E 59 FB 21 BD 90 00 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_SignData done [10:10:47]FM_MakeSignedData done [10:10:47]CreateOFDProtocolMessage [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 11 00 00 [10:10:47]Write to MH i2c: E2 08 00 54 28 80 11 00 00 00 00 00 00 F6 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 17 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 17 00 54 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [10:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:47]wFMCommunicate OK [10:10:47]CreateOFDProtocolMessage done [10:10:47]OFDSenderStorePacket 69740 [10:10:47]StoreOFDPacket docnum=69740 [10:10:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 BC 07 01 6A 89 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A9 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 10 01 00 35 04 06 00 06 FF B9 D8 22 BA B8 5A 7C 5E 59 FB 21 BD [10:10:47]CheckFolder [10:10:47]dirname=/storage/ofd_packets [10:10:47]CheckFolder done [10:10:47]ProducePacketName [10:10:47]name=ofd_packets/00069740 [10:10:47]NVStorageSaveData ofd_packets/00069740 [10:10:47]File name is /storage/ofd_packets/00069740 [10:10:47]Write 301 bytes [10:10:47]NVStorageSaveData done [10:10:47]OFDSenderStorePacket done [10:10:47]KKMCreateOFDPacket done [10:10:47]NVStorageSaveData kkm_last_timestamp [10:10:47]File name is /storage/kkm_last_timestamp [10:10:47]Write 4 bytes [10:10:47]NVStorageSaveData done [10:10:47]ExternCall_PrintAddStr [10:10:47]wPrintStart [10:10:47]Write to MH i2c: 01 00 00 55 28 7D [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 55 28 00 00 00 00 00 FF 0F 92 [10:10:47]RasterBufferAndPrint [10:10:47]line Счет N : (1)2885479 [10:10:47]line ИНН: 02508201610067 [10:10:47]line Контрольно-Кассовый Чек [10:10:47]line ПРОДАЖА [10:10:47]line ТРК (МРК, ГНК) : 42 [10:10:47]line Товар: 2710124130 [10:10:47]line Аи-92-К-5 [10:10:47]line 7.480 * 66.90 [10:10:47]line = 500.41 [10:10:47]line НДС 12% НСП 1% [10:10:47]line > о реализуемом товаре [10:10:47]line ОКРУГЛЕНИЕ: -0.41 [10:10:47]line ИТОГО: 500.00 [10:10:47]line Внесено: 500.00 [10:10:47]line СДАЧА: 0.00 [10:10:47]line НСП 1% : 4.43 [10:10:47]line НДС 12% : 53.14 [10:10:47]line Наличными: 500.00 [10:10:47]line Безнал.: 0.00 [10:10:47]line Место: АЗС № 85 "Партнер Нефть" [10:10:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:10:47]line СНО: Общий режим [10:10:47]line Чек 130 21.10.2024 10:10 [10:10:47]line Смена: 194 ФФД: 1.0 [10:10:47]line ЗНМ: 0300000167 [10:10:47]line РНМ: 0000000000156251 [10:10:47]line Версия ККМ: v1.0 [10:10:47]line ФМ: 0000000000963346 [10:10:47]line ФД: 69740 [10:10:47]line ФПД: 7695404376762 [10:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69740&fm=7695404376762&tin=02508201610067®Number=0000000000156251&sum=50000 [10:10:48]OFD Sender: Processing packet 69740 [packets to send 18, broken 17] [10:10:48]ProducePacketName [10:10:48]name=ofd_packets/00069740 [10:10:48]OFD Sender: To server: pG, [10:10:48]CommunicateWithHost lk.salyk.kg:30040 [10:10:48]ConnectInit lk.salyk.kg [10:10:48]written 0, free lines is 4095 [10:10:48]Connected sock=10 [10:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 BC 07 01 6A 89 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A9 28 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 10 01 00 35 04 06 00 06 FF B9 D8 22 BA B8 5A 7C 5E 59 FB 21 BD [10:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 6F 47 00 C4 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 39 36 33 33 34 36 10 04 04 00 6C 10 01 00 F4 03 04 00 4D D2 15 67 B6 04 01 00 00 48 87 72 63 4F 0F EB 50 [10:10:48]CommunicateWithHost err = 0 [10:10:48]CheckOFDResponse [10:10:48]1017 (14) - 77093643461234 [10:10:48]1041 (16) - 0000000000963346 [10:10:48]1040 (4) - 69740 [10:10:48]1012 (4) - 21.10.2024 04:02 [10:10:48]1206 (1) - 0 [10:10:48]OFD Sender: Remove packet 69740 [10:10:48]ProducePacketName [10:10:48]name=ofd_packets/00069740 [10:10:48]NVStorageDeleteData [10:10:48]Write to MH i2c: 01 00 00 80 28 A8 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 80 28 00 00 00 00 00 F1 0C AC [10:10:48]RasterBufferAndPrint [10:10:48]line [10:10:48]line [10:10:48]line [10:10:48]line [10:10:48]line [10:10:48]written 0, free lines is 3319 [10:10:48]MH_Cut [10:10:48]Write to MH i2c: D1 01 00 87 28 01 81 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: D1 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: D1 01 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: D1 01 00 87 28 00 80 [10:10:48]Write to MH i2c: 01 00 00 88 28 B0 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]OFD Sender: No OFD packet to send [10:10:49]*** Cut start [10:10:49]*** Partial cut [10:10:49]*** CUTSNS_PIN = 1 [10:10:49]*** CUTSNS_PIN = 0 [10:10:49]*** Brake cut motor [10:10:49]Read from MH i2c: 01 [10:10:49]MH_I2C_Read... [10:10:49]*** Stop cut motor [10:10:49]*** Cut end [10:10:49]Read from MH i2c: 01 07 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: 01 07 00 88 28 00 00 00 00 00 FF 0F C5 [10:10:49]process_action close_receipt done [10:10:49]requested_data is exist [10:10:49]produce_requested_data [10:10:49]requested_item fm.sn is exist - process it [10:10:49]wFMCommunicate request_size=4 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 11 00 00 [10:10:49]Write to MH i2c: E2 08 00 89 28 80 11 00 00 00 00 00 00 2B [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:49]Read from MH i2c: E2 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 17 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 17 00 89 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [10:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:10:49]wFMCommunicate OK [10:10:49]requested_item fd.num is exist - process it [10:10:49]SAM_PROTO_GetFieldsCounters [10:10:49]wFMCommunicate request_size=4 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 13 00 00 [10:10:49]Write to MH i2c: E2 08 00 8A 28 80 13 00 00 00 00 00 00 2E [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 62 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 62 00 8A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:10:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_GetFieldsCounters done [10:10:50]requested_item shift.num is exist - process it [10:10:50]requested_item shift.opened is exist - process it [10:10:50]req_shift_opened [10:10:50]FM_GetShiftState [10:10:50]SAM_PROTO_GetShiftState [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 13 01 00 [10:10:50]Write to MH i2c: E2 08 00 8B 28 80 13 01 00 00 00 00 00 30 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0E 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0E 00 8B 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5C [10:10:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_GetShiftState done [10:10:50]FM_GetShiftState done [10:10:50]req_shift_opened done [10:10:50]requested_item shift.open_date is exist - process it [10:10:50]req_shift_open_date [10:10:50]req_shift_open_date done [10:10:50]produce_requested_data done [10:10:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69740,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:10:50]process_action_free close_receipt [10:10:50]json_value_free [10:10:50]json_value_free done [10:10:50]process_json_proto returns [10:10:50]Send response to host [10:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69740,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:10:50]free response buf [10:10:50]execute_script done [10:10:50]execute_script returns [10:10:50]free content buf [10:10:50]Sock 8.Close socket [10:10:50]Sock 8.Thread stoped [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]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:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:57]accept exits with 9 [10:13:57]New connection [10:13:57]New thread 3067313508 created [10:13:57]Thread 3067456868 joined [10:13:57]Waiting for new connection... [10:13:57] Sock 9.Parse request [10:13:57]Sock 9.Check first char [10:13:57]Sock 9.First char is OK [10:13:57]request: POST /json_proto HTTP/1.0 [10:13:57]Method: POST [10:13:57]URL: /json_proto [10:13:57]Method is POST - this is cgi request [10:13:57]url: /json_proto [10:13:57]query_string will be loaded in cgi processing [10:13:57]execute_cgi json_proto POST (null) [10:13:57]execute_cgi path=json_proto method=POST [10:13:57]POST find Content-Length [10:13:57]Host: 172.17.50.3:8080 [10:13:57]Content-Length: 675 [10:13:57]Content-Type: application/json [10:13:57] [10:13:57]POST finish read [10:13:57]Found Content-Length = 675 [10:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:57]execute_script... [10:13: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)2885480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:57]POST & json_proto [10:13:57]process_json_proto [10:13:57]json parsed OK: [10:13:57]protocol is kg_v1.0 [10:13:57]action value=close_receipt [10:13:57]process_action close_receipt [10:13:57]cmd_close_receipt [10:13:57]MH_GetDate [10:13:57]Write to MH i2c: F0 00 00 8C 28 A3 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 09 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 09 00 8C 28 00 68 29 16 67 6B 98 1E 66 41 [10:13:57]GetLastDocTimeStamp 1729505449 [10:13:57]current date 1729505640 [10:13:57]FM_GetShiftState [10:13:57]SAM_PROTO_GetShiftState [10:13:57]wFMCommunicate request_size=4 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 13 01 00 [10:13:57]Write to MH i2c: E2 08 00 8D 28 80 13 01 00 00 00 00 00 32 [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0E 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0E 00 8D 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [10:13:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:13:57]wFMCommunicate OK [10:13:57]SAM_PROTO_GetShiftState done [10:13:57]FM_GetShiftState done [10:13:57]opened in 1729469703 [10:13:57]opened+sec_in_day 1729556103 [10:13:57]quantity*price = 50063 [10:13:57]sum+1 = 50064 [10:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 131 21.10.2024 10:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69741 ФПД: 125774135093187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69741&fm=125774135093187&tin=02508201610067®Number=0000000000156251&sum=50000 [10:13:58]StoreToDocumentArchive [10:13:58]shift 194 fd 69741 [10:13:58]save to /storage/0194/doc_00069741 [10:13:58]save last doc name /storage/0194/doc_00069741 to /storage/kkm_last_doc_name [10:13:58]save OK [10:13:58]Clear old archive folders... [10:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:13:58]tlvbuf is 00C8B040 [10:13:58]SAM_PROTO_ClearQueue [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 09 00 00 [10:13:58]Write to MH i2c: E2 08 00 9A 28 80 09 00 00 00 00 00 00 34 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 9A 28 00 90 00 36 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]SAM_PROTO_ClearQueue done [10:13:58]KKMCreateOFDPacket [10:13:58]OFDProtocolAddRootSTLVToBuf [10:13:58]FM_MakeSignedData [10:13:58]FM_MakeSignedData [10:13:58]SAM_PROTO_SignData [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 01 02 [10:13:58]Write to MH i2c: E2 08 00 9B 28 80 0D 01 02 00 00 00 00 3C [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 9B 28 00 90 00 37 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]wFMCommunicate request_size=255 [10:13:58]MH_SAM_APDU [10:13: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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 83 00 00 00 F4 03 04 00 68 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 10 01 00 35 04 06 00 72 64 12 A4 [10:13:58]Write to MH i2c: E2 02 01 9C 28 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 83 00 00 00 F4 03 04 00 68 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 10 01 00 35 04 06 00 72 64 12 A4 00 00 A0 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]wFMCommunicate request_size=7 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 02 02 02 E7 C3 [10:13:58]Write to MH i2c: E2 0A 00 9D 28 80 0D 02 02 02 00 E7 C3 00 00 ED [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 9D 28 00 90 00 39 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 03 02 [10:13:58]Write to MH i2c: E2 08 00 9E 28 80 0D 03 02 00 00 00 00 41 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 0B 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 0B 00 9E 28 00 19 29 CD A3 61 92 FE 9A 90 00 7F [10:13:58]RAPDU: 19 29 CD A3 61 92 FE 9A 90 00 [10:13:58]wFMCommunicate OK [10:13:58]SAM_PROTO_SignData done [10:13:58]FM_MakeSignedData done [10:13:58]CreateOFDProtocolMessage [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 11 00 00 [10:13:58]Write to MH i2c: E2 08 00 9F 28 80 11 00 00 00 00 00 00 41 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 17 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 17 00 9F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [10:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:13:58]wFMCommunicate OK [10:13:58]CreateOFDProtocolMessage done [10:13:58]OFDSenderStorePacket 69741 [10:13:58]StoreOFDPacket docnum=69741 [10:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A8 B4 04 01 BA A8 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 83 00 00 00 F4 03 04 00 68 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 10 01 00 35 04 06 00 72 64 12 A4 E7 C3 19 29 CD A3 61 92 FE 9A [10:13:58]CheckFolder [10:13:58]dirname=/storage/ofd_packets [10:13:58]CheckFolder done [10:13:58]ProducePacketName [10:13:58]name=ofd_packets/00069741 [10:13:58]NVStorageSaveData ofd_packets/00069741 [10:13:58]File name is /storage/ofd_packets/00069741 [10:13:58]Write 298 bytes [10:13:58]NVStorageSaveData done [10:13:58]OFDSenderStorePacket done [10:13:58]KKMCreateOFDPacket done [10:13:58]NVStorageSaveData kkm_last_timestamp [10:13:58]File name is /storage/kkm_last_timestamp [10:13:58]Write 4 bytes [10:13:58]NVStorageSaveData done [10:13:58]ExternCall_PrintAddStr [10:13:58]wPrintStart [10:13:58]Write to MH i2c: 01 00 00 A0 28 C8 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 07 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: 01 07 00 A0 28 00 00 00 00 00 FF 0F DD [10:13:58]RasterBufferAndPrint [10:13:58]line Счет N : (1)2885480 [10:13:58]line ИНН: 02508201610067 [10:13:58]line Контрольно-Кассовый Чек [10:13:58]line ПРОДАЖА [10:13:58]line ТРК (МРК, ГНК) : 51 [10:13:58]line Товар: 2710194210 [10:13:58]line ДТ-К-5 [10:13:58]line 6.570 * 76.20 [10:13:58]line = 500.63 [10:13:58]line НДС 12% НСП 1% [10:13:58]line > о реализуемом товаре [10:13:58]line ОКРУГЛЕНИЕ: -0.63 [10:13:58]line ИТОГО: 500.00 [10:13:58]line Внесено: 500.00 [10:13:58]line СДАЧА: 0.00 [10:13:58]line НСП 1% : 4.43 [10:13:58]line НДС 12% : 53.16 [10:13:58]line Наличными: 500.00 [10:13:58]line Безнал.: 0.00 [10:13:58]line Место: АЗС № 85 "Партнер Нефть" [10:13:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:13:58]line СНО: Общий режим [10:13:58]line Чек 131 21.10.2024 10:14 [10:13:58]line Смена: 194 ФФД: 1.0 [10:13:58]line ЗНМ: 0300000167 [10:13:58]line РНМ: 0000000000156251 [10:13:58]line Версия ККМ: v1.0 [10:13:58]line ФМ: 0000000000963346 [10:13:58]line ФД: 69741 [10:13:59]line ФПД: 125774135093187 [10:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69741&fm=125774135093187&tin=02508201610067®Number=0000000000156251&sum=50000 [10:13:59]OFD Sender: Processing packet 69741 [packets to send 18, broken 17] [10:13:59]ProducePacketName [10:13:59]name=ofd_packets/00069741 [10:13:59]OFD Sender: To server: pG, [10:13:59]CommunicateWithHost lk.salyk.kg:30040 [10:13:59]ConnectInit lk.salyk.kg [10:13:59]written 0, free lines is 4095 [10:13:59]Connected sock=10 [10:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A8 B4 04 01 BA A8 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 83 00 00 00 F4 03 04 00 68 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 10 01 00 35 04 06 00 72 64 12 A4 E7 C3 19 29 CD A3 61 92 FE 9A [10:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E 66 47 00 80 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 10 01 00 F4 03 04 00 0C D3 15 67 B6 04 01 00 00 65 6D 7A FD 37 AE 36 8F [10:13:59]CommunicateWithHost err = 0 [10:13:59]CheckOFDResponse [10:13:59]1017 (14) - 77093643461234 [10:13:59]1041 (16) - 0000000000963346 [10:13:59]1040 (4) - 69741 [10:13:59]1012 (4) - 21.10.2024 04:05 [10:13:59]1206 (1) - 0 [10:13:59]OFD Sender: Remove packet 69741 [10:13:59]ProducePacketName [10:13:59]name=ofd_packets/00069741 [10:13:59]NVStorageDeleteData [10:13:59]Write to MH i2c: 01 00 00 CB 28 F3 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 CB 28 00 00 00 00 00 D9 0C DF [10:13:59]RasterBufferAndPrint [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]written 0, free lines is 3296 [10:13:59]MH_Cut [10:13:59]Write to MH i2c: D1 01 00 D2 28 01 CC [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 D2 28 00 CB [10:13:59]Write to MH i2c: 01 00 00 D3 28 FB [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]OFD Sender: No OFD packet to send [10:14:00]*** Cut start [10:14:00]*** Partial cut [10:14:00]*** CUTSNS_PIN = 1 [10:14:00]*** CUTSNS_PIN = 0 [10:14:00]*** Brake cut motor [10:14:00]Read from MH i2c: 01 [10:14:00]MH_I2C_Read... [10:14:00]*** Stop cut motor [10:14:00]*** Cut end [10:14:00]Read from MH i2c: 01 07 00 [10:14:00]MH_I2C_Read... [10:14:00]Read from MH i2c: 01 07 00 D3 28 00 00 00 00 00 FF 0F 10 [10:14:00]process_action close_receipt done [10:14:00]requested_data is exist [10:14:00]produce_requested_data [10:14:00]requested_item fm.sn is exist - process it [10:14:00]wFMCommunicate request_size=4 [10:14:00]MH_SAM_APDU [10:14:00]CAPDU: 80 11 00 00 [10:14:00]Write to MH i2c: E2 08 00 D4 28 80 11 00 00 00 00 00 00 76 [10:14:00]Write i2c OK [10:14:00]MH_I2C_Read... [10:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:00]Read from MH i2c: E2 [10:14:00]MH_I2C_Read... [10:14:00]Read from MH i2c: E2 17 00 [10:14:00]MH_I2C_Read... [10:14:00]Read from MH i2c: E2 17 00 D4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [10:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:14:00]wFMCommunicate OK [10:14:00]requested_item fd.num is exist - process it [10:14:00]SAM_PROTO_GetFieldsCounters [10:14:00]wFMCommunicate request_size=4 [10:14:00]MH_SAM_APDU [10:14:00]CAPDU: 80 13 00 00 [10:14:00]Write to MH i2c: E2 08 00 D5 28 80 13 00 00 00 00 00 00 79 [10:14:00]Write i2c OK [10:14:00]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 62 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 62 00 D5 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [10:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetFieldsCounters done [10:14:01]requested_item shift.num is exist - process it [10:14:01]requested_item shift.opened is exist - process it [10:14:01]req_shift_opened [10:14:01]FM_GetShiftState [10:14:01]SAM_PROTO_GetShiftState [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 01 00 [10:14:01]Write to MH i2c: E2 08 00 D6 28 80 13 01 00 00 00 00 00 7B [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 D6 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A7 [10:14:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetShiftState done [10:14:01]FM_GetShiftState done [10:14:01]req_shift_opened done [10:14:01]requested_item shift.open_date is exist - process it [10:14:01]req_shift_open_date [10:14:01]req_shift_open_date done [10:14:01]produce_requested_data done [10:14:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69741,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:14:01]process_action_free close_receipt [10:14:01]json_value_free [10:14:01]json_value_free done [10:14:01]process_json_proto returns [10:14:01]Send response to host [10:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69741,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:14:01]free response buf [10:14:01]execute_script done [10:14:01]execute_script returns [10:14:01]free content buf [10:14:01]Sock 9.Close socket [10:14:01]Sock 9.Thread stoped [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:43]accept exits with 8 [10:14:43]New connection [10:14:43]New thread 3067456868 created [10:14:43]Thread 3067313508 joined [10:14:43]Waiting for new connection... [10:14:43] Sock 8.Parse request [10:14:43]Sock 8.Check first char [10:14:43]Sock 8.First char is OK [10:14:43]request: POST /json_proto HTTP/1.0 [10:14:43]Method: POST [10:14:43]URL: /json_proto [10:14:43]Method is POST - this is cgi request [10:14:43]url: /json_proto [10:14:43]query_string will be loaded in cgi processing [10:14:43]execute_cgi json_proto POST (null) [10:14:43]execute_cgi path=json_proto method=POST [10:14:43]POST find Content-Length [10:14:43]Host: 172.17.50.3:8080 [10:14:43]Content-Length: 679 [10:14:43]Content-Type: application/json [10:14:43] [10:14:43]POST finish read [10:14:43]Found Content-Length = 679 [10:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:43]execute_script... [10:14: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)2885482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:43]POST & json_proto [10:14:43]process_json_proto [10:14:43]json parsed OK: [10:14:43]protocol is kg_v1.0 [10:14:43]action value=close_receipt [10:14:43]process_action close_receipt [10:14:43]cmd_close_receipt [10:14:43]MH_GetDate [10:14:43]Write to MH i2c: F0 00 00 D7 28 EE [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 09 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: F0 09 00 D7 28 00 96 29 16 67 6B 98 1E 66 BA [10:14:43]GetLastDocTimeStamp 1729505640 [10:14:43]current date 1729505686 [10:14:43]FM_GetShiftState [10:14:43]SAM_PROTO_GetShiftState [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 13 01 00 [10:14:43]Write to MH i2c: E2 08 00 D8 28 80 13 01 00 00 00 00 00 7D [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 D8 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [10:14:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetShiftState done [10:14:43]FM_GetShiftState done [10:14:43]opened in 1729469703 [10:14:43]opened+sec_in_day 1729556103 [10:14:43]quantity*price = 90004 [10:14:43]sum+1 = 90006 [10:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 132 21.10.2024 10:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69742 ФПД: 162396512374238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101446&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69742&fm=162396512374238&tin=02508201610067®Number=0000000000156251&sum=90000 [10:14:44]StoreToDocumentArchive [10:14:44]shift 194 fd 69742 [10:14:44]save to /storage/0194/doc_00069742 [10:14:44]save last doc name /storage/0194/doc_00069742 to /storage/kkm_last_doc_name [10:14:44]save OK [10:14:44]Clear old archive folders... [10:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:44]tlvbuf is 00C5A8E0 [10:14:44]SAM_PROTO_ClearQueue [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 09 00 00 [10:14:44]Write to MH i2c: E2 08 00 E5 28 80 09 00 00 00 00 00 00 7F [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]SAM_PROTO_ClearQueue done [10:14:44]KKMCreateOFDPacket [10:14:44]OFDProtocolAddRootSTLVToBuf [10:14:44]FM_MakeSignedData [10:14:44]FM_MakeSignedData [10:14:44]SAM_PROTO_SignData [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 01 02 [10:14:44]Write to MH i2c: E2 08 00 E6 28 80 0D 01 02 00 00 00 00 87 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 E6 28 00 90 00 82 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=255 [10:14:44]MH_SAM_APDU [10:14:44]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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 96 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 10 01 00 35 04 06 00 93 [10:14:44]Write to MH i2c: E2 02 01 E7 28 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 96 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 10 01 00 35 04 06 00 93 00 00 3B [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 E7 28 00 90 00 83 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=10 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 02 02 05 B2 E2 6E CD DE [10:14:44]Write to MH i2c: E2 0D 00 E8 28 80 0D 02 02 05 00 B2 E2 6E CD DE 00 00 41 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 03 00 E8 28 00 90 00 84 [10:14:44]RAPDU: 90 00 [10:14:44]wFMCommunicate OK [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 0D 03 02 [10:14:44]Write to MH i2c: E2 08 00 E9 28 80 0D 03 02 00 00 00 00 8C [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 0B 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 0B 00 E9 28 00 B7 B2 69 75 23 52 E5 2D 90 00 5B [10:14:44]RAPDU: B7 B2 69 75 23 52 E5 2D 90 00 [10:14:44]wFMCommunicate OK [10:14:44]SAM_PROTO_SignData done [10:14:44]FM_MakeSignedData done [10:14:44]CreateOFDProtocolMessage [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 11 00 00 [10:14:44]Write to MH i2c: E2 08 00 EA 28 80 11 00 00 00 00 00 00 8C [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 EA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [10:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:14:44]wFMCommunicate OK [10:14:44]CreateOFDProtocolMessage done [10:14:44]OFDSenderStorePacket 69742 [10:14:44]StoreOFDPacket docnum=69742 [10:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A BE 07 01 11 89 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 96 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 10 01 00 35 04 06 00 93 B2 E2 6E CD DE B7 B2 69 75 23 52 E5 2D [10:14:44]CheckFolder [10:14:44]dirname=/storage/ofd_packets [10:14:44]CheckFolder done [10:14:44]ProducePacketName [10:14:44]name=ofd_packets/00069742 [10:14:44]NVStorageSaveData ofd_packets/00069742 [10:14:44]File name is /storage/ofd_packets/00069742 [10:14:44]Write 301 bytes [10:14:44]NVStorageSaveData done [10:14:44]OFDSenderStorePacket done [10:14:44]KKMCreateOFDPacket done [10:14:44]NVStorageSaveData kkm_last_timestamp [10:14:44]File name is /storage/kkm_last_timestamp [10:14:44]Write 4 bytes [10:14:44]NVStorageSaveData done [10:14:44]ExternCall_PrintAddStr [10:14:44]wPrintStart [10:14:44]Write to MH i2c: 01 00 00 EB 28 13 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 EB 28 00 00 00 00 00 FF 0F 28 [10:14:44]RasterBufferAndPrint [10:14:44]line Счет N : (1)2885482 [10:14:44]line ИНН: 02508201610067 [10:14:44]line Контрольно-Кассовый Чек [10:14:44]line ПРОДАЖА [10:14:44]line ТРК (МРК, ГНК) : 13 [10:14:44]line Товар: 2710124500 [10:14:44]line Аи-95-К-5 [10:14:44]line 12.130 * 74.20 [10:14:44]line = 900.05 [10:14:44]line НДС 12% НСП 1% [10:14:44]line > о реализуемом товаре [10:14:44]line ОКРУГЛЕНИЕ: -0.05 [10:14:44]line ИТОГО: 900.00 [10:14:44]line Внесено: 900.00 [10:14:44]line СДАЧА: 0.00 [10:14:44]line НСП 1% : 7.96 [10:14:44]line НДС 12% : 95.58 [10:14:44]line Наличными: 900.00 [10:14:44]line Безнал.: 0.00 [10:14:44]line Место: АЗС № 85 "Партнер Нефть" [10:14:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:14:44]line СНО: Общий режим [10:14:44]line Чек 132 21.10.2024 10:14 [10:14:44]line Смена: 194 ФФД: 1.0 [10:14:44]line ЗНМ: 0300000167 [10:14:45]line РНМ: 0000000000156251 [10:14:45]line Версия ККМ: v1.0 [10:14:45]line ФМ: 0000000000963346 [10:14:45]line ФД: 69742 [10:14:45]line ФПД: 162396512374238 [10:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101446&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69742&fm=162396512374238&tin=02508201610067®Number=0000000000156251&sum=90000 [10:14:45]OFD Sender: Processing packet 69742 [packets to send 18, broken 17] [10:14:45]ProducePacketName [10:14:45]name=ofd_packets/00069742 [10:14:45]OFD Sender: To server: pG, [10:14:45]CommunicateWithHost lk.salyk.kg:30040 [10:14:45]ConnectInit lk.salyk.kg [10:14:45]written 0, free lines is 4095 [10:14:45]Connected sock=10 [10:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A BE 07 01 11 89 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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 96 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 10 01 00 35 04 06 00 93 B2 E2 6E CD DE B7 B2 69 75 23 52 E5 2D [10:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE 87 47 00 F5 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 39 36 33 33 34 36 10 04 04 00 6E 10 01 00 F4 03 04 00 3A D3 15 67 B6 04 01 00 00 AC D2 D0 6E 28 80 A9 C1 [10:14:45]CommunicateWithHost err = 0 [10:14:45]CheckOFDResponse [10:14:45]1017 (14) - 77093643461234 [10:14:45]1041 (16) - 0000000000963346 [10:14:45]1040 (4) - 69742 [10:14:45]1012 (4) - 21.10.2024 04:06 [10:14:45]1206 (1) - 0 [10:14:45]OFD Sender: Remove packet 69742 [10:14:45]ProducePacketName [10:14:45]name=ofd_packets/00069742 [10:14:45]NVStorageDeleteData [10:14:45]Write to MH i2c: 01 00 00 16 29 3F [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: 01 07 00 16 29 00 00 00 00 00 F3 0C 45 [10:14:45]RasterBufferAndPrint [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]line [10:14:45]written 0, free lines is 3321 [10:14:45]MH_Cut [10:14:45]Write to MH i2c: D1 01 00 1D 29 01 18 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 01 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: D1 01 00 1D 29 00 17 [10:14:45]Write to MH i2c: 01 00 00 1E 29 47 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]OFD Sender: No OFD packet to send [10:14:46]*** Cut start [10:14:46]*** Partial cut [10:14:46]*** CUTSNS_PIN = 1 [10:14:46]*** CUTSNS_PIN = 0 [10:14:46]*** Brake cut motor [10:14:46]Read from MH i2c: 01 [10:14:46]MH_I2C_Read... [10:14:46]*** Stop cut motor [10:14:46]*** Cut end [10:14:46]Read from MH i2c: 01 07 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 1E 29 00 00 00 00 00 FF 0F 5C [10:14:46]process_action close_receipt done [10:14:46]requested_data is exist [10:14:46]produce_requested_data [10:14:46]requested_item fm.sn is exist - process it [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 11 00 00 [10:14:46]Write to MH i2c: E2 08 00 1F 29 80 11 00 00 00 00 00 00 C2 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 17 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 17 00 1F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [10:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:14:46]wFMCommunicate OK [10:14:46]requested_item fd.num is exist - process it [10:14:46]SAM_PROTO_GetFieldsCounters [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 13 00 00 [10:14:46]Write to MH i2c: E2 08 00 20 29 80 13 00 00 00 00 00 00 C5 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 20 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [10:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetFieldsCounters done [10:14:47]requested_item shift.num is exist - process it [10:14:47]requested_item shift.opened is exist - process it [10:14:47]req_shift_opened [10:14:47]FM_GetShiftState [10:14:47]SAM_PROTO_GetShiftState [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 01 00 [10:14:47]Write to MH i2c: E2 08 00 21 29 80 13 01 00 00 00 00 00 C7 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 21 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F3 [10:14:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetShiftState done [10:14:47]FM_GetShiftState done [10:14:47]req_shift_opened done [10:14:47]requested_item shift.open_date is exist - process it [10:14:47]req_shift_open_date [10:14:47]req_shift_open_date done [10:14:47]produce_requested_data done [10:14:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69742,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:14:47]process_action_free close_receipt [10:14:47]json_value_free [10:14:47]json_value_free done [10:14:47]process_json_proto returns [10:14:47]Send response to host [10:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69742,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:14:47]free response buf [10:14:47]execute_script done [10:14:47]execute_script returns [10:14:47]free content buf [10:14:47]Sock 8.Close socket [10:14:47]Sock 8.Thread stoped [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:03]accept exits with 9 [10:15:03]New connection [10:15:03]New thread 3067313508 created [10:15:03]Thread 3067456868 joined [10:15:03]Waiting for new connection... [10:15:03] Sock 9.Parse request [10:15:03]Sock 9.Check first char [10:15:03]Sock 9.First char is OK [10:15:03]request: POST /json_proto HTTP/1.0 [10:15:03]Method: POST [10:15:03]URL: /json_proto [10:15:03]Method is POST - this is cgi request [10:15:03]url: /json_proto [10:15:03]query_string will be loaded in cgi processing [10:15:03]execute_cgi json_proto POST (null) [10:15:03]execute_cgi path=json_proto method=POST [10:15:03]POST find Content-Length [10:15:03]Host: 172.17.50.3:8080 [10:15:03]Content-Length: 683 [10:15:03]Content-Type: application/json [10:15:03] [10:15:03]POST finish read [10:15:03]Found Content-Length = 683 [10:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:03]execute_script... [10:15: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)2885483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:03]POST & json_proto [10:15:03]process_json_proto [10:15:03]json parsed OK: [10:15:03]protocol is kg_v1.0 [10:15:03]action value=close_receipt [10:15:03]process_action close_receipt [10:15:03]cmd_close_receipt [10:15:03]MH_GetDate [10:15:03]Write to MH i2c: F0 00 00 22 29 3A [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: F0 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: F0 09 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: F0 09 00 22 29 00 AB 29 16 67 6B 98 1E 66 1B [10:15:03]GetLastDocTimeStamp 1729505686 [10:15:03]current date 1729505707 [10:15:03]FM_GetShiftState [10:15:03]SAM_PROTO_GetShiftState [10:15:03]wFMCommunicate request_size=4 [10:15:03]MH_SAM_APDU [10:15:03]CAPDU: 80 13 01 00 [10:15:03]Write to MH i2c: E2 08 00 23 29 80 13 01 00 00 00 00 00 C9 [10:15:03]Write i2c OK [10:15:03]MH_I2C_Read... [10:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:03]Read from MH i2c: E2 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 0E 00 [10:15:03]MH_I2C_Read... [10:15:03]Read from MH i2c: E2 0E 00 23 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [10:15:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:15:03]wFMCommunicate OK [10:15:03]SAM_PROTO_GetShiftState done [10:15:03]FM_GetShiftState done [10:15:03]opened in 1729469703 [10:15:03]opened+sec_in_day 1729556103 [10:15:03]quantity*price = 100015 [10:15:03]sum+1 = 100017 [10:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 133 21.10.2024 10:15 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69743 ФПД: 161671121645663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69743&fm=161671121645663&tin=02508201610067®Number=0000000000156251&sum=100000 [10:15:05]StoreToDocumentArchive [10:15:05]shift 194 fd 69743 [10:15:05]save to /storage/0194/doc_00069743 [10:15:05]save last doc name /storage/0194/doc_00069743 to /storage/kkm_last_doc_name [10:15:05]save OK [10:15:05]Clear old archive folders... [10:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:05]tlvbuf is 00C92500 [10:15:05]SAM_PROTO_ClearQueue [10:15:05]wFMCommunicate request_size=4 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 09 00 00 [10:15:05]Write to MH i2c: E2 08 00 30 29 80 09 00 00 00 00 00 00 CB [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [10:15:05]RAPDU: 90 00 [10:15:05]wFMCommunicate OK [10:15:05]SAM_PROTO_ClearQueue done [10:15:05]KKMCreateOFDPacket [10:15:05]OFDProtocolAddRootSTLVToBuf [10:15:05]FM_MakeSignedData [10:15:05]FM_MakeSignedData [10:15:05]SAM_PROTO_SignData [10:15:05]wFMCommunicate request_size=4 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 0D 01 02 [10:15:05]Write to MH i2c: E2 08 00 31 29 80 0D 01 02 00 00 00 00 D3 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 31 29 00 90 00 CE [10:15:05]RAPDU: 90 00 [10:15:05]wFMCommunicate OK [10:15:05]wFMCommunicate request_size=255 [10:15:05]MH_SAM_APDU [10:15: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 AB 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 10 01 00 35 04 06 00 93 [10:15:05]Write to MH i2c: E2 02 01 32 29 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 AB 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 10 01 00 35 04 06 00 93 00 00 01 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 32 29 00 90 00 CF [10:15:05]RAPDU: 90 00 [10:15:05]wFMCommunicate OK [10:15:05]wFMCommunicate request_size=10 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 0D 02 02 05 09 FD C6 B0 5F [10:15:05]Write to MH i2c: E2 0D 00 33 29 80 0D 02 02 05 00 09 FD C6 B0 5F 00 00 BB [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 03 00 33 29 00 90 00 D0 [10:15:05]RAPDU: 90 00 [10:15:05]wFMCommunicate OK [10:15:05]wFMCommunicate request_size=4 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 0D 03 02 [10:15:05]Write to MH i2c: E2 08 00 34 29 80 0D 03 02 00 00 00 00 D8 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 0B 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 0B 00 34 29 00 BE E5 38 FB C6 F7 ED 93 90 00 EC [10:15:05]RAPDU: BE E5 38 FB C6 F7 ED 93 90 00 [10:15:05]wFMCommunicate OK [10:15:05]SAM_PROTO_SignData done [10:15:05]FM_MakeSignedData done [10:15:05]CreateOFDProtocolMessage [10:15:05]wFMCommunicate request_size=4 [10:15:05]MH_SAM_APDU [10:15:05]CAPDU: 80 11 00 00 [10:15:05]Write to MH i2c: E2 08 00 35 29 80 11 00 00 00 00 00 00 D8 [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:05]Read from MH i2c: E2 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 17 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: E2 17 00 35 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [10:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:05]wFMCommunicate OK [10:15:05]CreateOFDProtocolMessage done [10:15:05]OFDSenderStorePacket 69743 [10:15:05]StoreOFDPacket docnum=69743 [10:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A3 9E 07 01 0E E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 AB 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 10 01 00 35 04 06 00 93 09 FD C6 B0 5F BE E5 38 FB C6 F7 ED 93 [10:15:05]CheckFolder [10:15:05]dirname=/storage/ofd_packets [10:15:05]CheckFolder done [10:15:05]ProducePacketName [10:15:05]name=ofd_packets/00069743 [10:15:05]NVStorageSaveData ofd_packets/00069743 [10:15:05]File name is /storage/ofd_packets/00069743 [10:15:05]Write 301 bytes [10:15:05]NVStorageSaveData done [10:15:05]OFDSenderStorePacket done [10:15:05]KKMCreateOFDPacket done [10:15:05]NVStorageSaveData kkm_last_timestamp [10:15:05]File name is /storage/kkm_last_timestamp [10:15:05]Write 4 bytes [10:15:05]NVStorageSaveData done [10:15:05]ExternCall_PrintAddStr [10:15:05]wPrintStart [10:15:05]Write to MH i2c: 01 00 00 36 29 5F [10:15:05]Write i2c OK [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: 01 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: 01 07 00 [10:15:05]MH_I2C_Read... [10:15:05]Read from MH i2c: 01 07 00 36 29 00 00 00 00 00 FF 0F 74 [10:15:05]RasterBufferAndPrint [10:15:05]line Счет N : (1)2885483 [10:15:05]line ИНН: 02508201610067 [10:15:05]line Контрольно-Кассовый Чек [10:15:05]line ПРОДАЖА [10:15:05]line ТРК (МРК, ГНК) : 22 [10:15:05]line Товар: 2710124130 [10:15:05]line Аи-92-К-5 [10:15:05]line 14.950 * 66.90 [10:15:05]line = 1000.16 [10:15:05]line НДС 12% НСП 1% [10:15:05]line > о реализуемом товаре [10:15:05]line ОКРУГЛЕНИЕ: -0.16 [10:15:05]line ИТОГО: 1000.00 [10:15:05]line Внесено: 1000.00 [10:15:05]line СДАЧА: 0.00 [10:15:05]line НСП 1% : 8.85 [10:15:05]line НДС 12% : 106.21 [10:15:05]line Наличными: 1000.00 [10:15:05]line Безнал.: 0.00 [10:15:05]line Место: АЗС № 85 "Партнер Нефть" [10:15:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:05]line СНО: Общий режим [10:15:05]line Чек 133 21.10.2024 10:15 [10:15:05]line Смена: 194 ФФД: 1.0 [10:15:05]line ЗНМ: 0300000167 [10:15:05]line РНМ: 0000000000156251 [10:15:05]line Версия ККМ: v1.0 [10:15:05]line ФМ: 0000000000963346 [10:15:05]line ФД: 69743 [10:15:05]line ФПД: 161671121645663 [10:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69743&fm=161671121645663&tin=02508201610067®Number=0000000000156251&sum=100000 [10:15:05]OFD Sender: Processing packet 69743 [packets to send 18, broken 17] [10:15:05]ProducePacketName [10:15:05]name=ofd_packets/00069743 [10:15:05]OFD Sender: To server: pG, [10:15:05]CommunicateWithHost lk.salyk.kg:30040 [10:15:05]ConnectInit lk.salyk.kg [10:15:05]written 0, free lines is 4095 [10:15:05]Connected sock=10 [10:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A3 9E 07 01 0E E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 AB 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 10 01 00 35 04 06 00 93 09 FD C6 B0 5F BE E5 38 FB C6 F7 ED 93 [10:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 09 3D 47 00 5C 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 39 36 33 33 34 36 10 04 04 00 6F 10 01 00 F4 03 04 00 4F D3 15 67 B6 04 01 00 00 C5 E4 55 FE BE DF 70 C5 [10:15:06]CommunicateWithHost err = 0 [10:15:06]CheckOFDResponse [10:15:06]1017 (14) - 77093643461234 [10:15:06]1041 (16) - 0000000000963346 [10:15:06]1040 (4) - 69743 [10:15:06]1012 (4) - 21.10.2024 04:06 [10:15:06]1206 (1) - 0 [10:15:06]OFD Sender: Remove packet 69743 [10:15:06]ProducePacketName [10:15:06]name=ofd_packets/00069743 [10:15:06]NVStorageDeleteData [10:15:06]Write to MH i2c: 01 00 00 61 29 8A [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: 01 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: 01 07 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: 01 07 00 61 29 00 00 00 00 00 F3 0C 90 [10:15:06]RasterBufferAndPrint [10:15:06]line [10:15:06]line [10:15:06]line [10:15:06]line [10:15:06]line [10:15:06]written 0, free lines is 3321 [10:15:06]MH_Cut [10:15:06]Write to MH i2c: D1 01 00 68 29 01 63 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: D1 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: D1 01 00 [10:15:06]MH_I2C_Read... [10:15:06]Read from MH i2c: D1 01 00 68 29 00 62 [10:15:06]Write to MH i2c: 01 00 00 69 29 92 [10:15:06]Write i2c OK [10:15:06]MH_I2C_Read... [10:15:06]OFD Sender: No OFD packet to send [10:15:07]*** Cut start [10:15:07]*** Partial cut [10:15:07]*** CUTSNS_PIN = 1 [10:15:07]*** CUTSNS_PIN = 0 [10:15:07]*** Brake cut motor [10:15:07]Read from MH i2c: 01 [10:15:07]MH_I2C_Read... [10:15:07]*** Stop cut motor [10:15:07]*** Cut end [10:15:07]Read from MH i2c: 01 07 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: 01 07 00 69 29 00 00 00 00 00 FF 0F A7 [10:15:07]process_action close_receipt done [10:15:07]requested_data is exist [10:15:07]produce_requested_data [10:15:07]requested_item fm.sn is exist - process it [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 11 00 00 [10:15:07]Write to MH i2c: E2 08 00 6A 29 80 11 00 00 00 00 00 00 0D [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 17 00 6A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [10:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:07]wFMCommunicate OK [10:15:07]requested_item fd.num is exist - process it [10:15:07]SAM_PROTO_GetFieldsCounters [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 13 00 00 [10:15:07]Write to MH i2c: E2 08 00 6B 29 80 13 00 00 00 00 00 00 10 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 62 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 62 00 6B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_GetFieldsCounters done [10:15:07]requested_item shift.num is exist - process it [10:15:07]requested_item shift.opened is exist - process it [10:15:07]req_shift_opened [10:15:07]FM_GetShiftState [10:15:07]SAM_PROTO_GetShiftState [10:15:07]wFMCommunicate request_size=4 [10:15:07]MH_SAM_APDU [10:15:07]CAPDU: 80 13 01 00 [10:15:07]Write to MH i2c: E2 08 00 6C 29 80 13 01 00 00 00 00 00 12 [10:15:07]Write i2c OK [10:15:07]MH_I2C_Read... [10:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:07]Read from MH i2c: E2 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0E 00 [10:15:07]MH_I2C_Read... [10:15:07]Read from MH i2c: E2 0E 00 6C 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3E [10:15:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:15:07]wFMCommunicate OK [10:15:07]SAM_PROTO_GetShiftState done [10:15:07]FM_GetShiftState done [10:15:07]req_shift_opened done [10:15:07]requested_item shift.open_date is exist - process it [10:15:07]req_shift_open_date [10:15:07]req_shift_open_date done [10:15:07]produce_requested_data done [10:15:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69743,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:15:07]process_action_free close_receipt [10:15:07]json_value_free [10:15:07]json_value_free done [10:15:07]process_json_proto returns [10:15:07]Send response to host [10:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69743,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:15:07]free response buf [10:15:07]execute_script done [10:15:07]execute_script returns [10:15:07]free content buf [10:15:07]Sock 9.Close socket [10:15:07]Sock 9.Thread stoped [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:17]accept exits with 8 [10:16:17]New connection [10:16:17]New thread 3067456868 created [10:16:17]Thread 3067313508 joined [10:16:17]Waiting for new connection... [10:16:17] Sock 8.Parse request [10:16:17]Sock 8.Check first char [10:16:17]Sock 8.First char is OK [10:16:17]request: POST /json_proto HTTP/1.0 [10:16:17]Method: POST [10:16:17]URL: /json_proto [10:16:17]Method is POST - this is cgi request [10:16:17]url: /json_proto [10:16:17]query_string will be loaded in cgi processing [10:16:17]execute_cgi json_proto POST (null) [10:16:17]execute_cgi path=json_proto method=POST [10:16:17]POST find Content-Length [10:16:17]Host: 172.17.50.3:8080 [10:16:17]Content-Length: 678 [10:16:17]Content-Type: application/json [10:16:17] [10:16:17]POST finish read [10:16:17]Found Content-Length = 678 [10:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885484", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:17]execute_script... [10:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885484", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:17]POST & json_proto [10:16:17]process_json_proto [10:16:17]json parsed OK: [10:16:17]protocol is kg_v1.0 [10:16:17]action value=close_receipt [10:16:17]process_action close_receipt [10:16:17]cmd_close_receipt [10:16:17]MH_GetDate [10:16:17]Write to MH i2c: F0 00 00 6D 29 85 [10:16:17]Write i2c OK [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: F0 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: F0 09 00 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: F0 09 00 6D 29 00 F4 29 16 67 6B 98 1E 66 AF [10:16:17]GetLastDocTimeStamp 1729505707 [10:16:17]current date 1729505780 [10:16:17]FM_GetShiftState [10:16:17]SAM_PROTO_GetShiftState [10:16:17]wFMCommunicate request_size=4 [10:16:17]MH_SAM_APDU [10:16:17]CAPDU: 80 13 01 00 [10:16:17]Write to MH i2c: E2 08 00 6E 29 80 13 01 00 00 00 00 00 14 [10:16:17]Write i2c OK [10:16:17]MH_I2C_Read... [10:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:17]Read from MH i2c: E2 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: E2 0E 00 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: E2 0E 00 6E 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [10:16:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:16:17]wFMCommunicate OK [10:16:17]SAM_PROTO_GetShiftState done [10:16:17]FM_GetShiftState done [10:16:17]opened in 1729469703 [10:16:17]opened+sec_in_day 1729556103 [10:16:17]quantity*price = 30038 [10:16:17]sum+1 = 30039 [10:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 134 21.10.2024 10:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69744 ФПД: 260720756792686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69744&fm=260720756792686&tin=02508201610067®Number=0000000000156251&sum=30000 [10:16:18]StoreToDocumentArchive [10:16:18]shift 194 fd 69744 [10:16:18]save to /storage/0194/doc_00069744 [10:16:18]save last doc name /storage/0194/doc_00069744 to /storage/kkm_last_doc_name [10:16:18]save OK [10:16:18]Clear old archive folders... [10:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:18]tlvbuf is 00C74840 [10:16:18]SAM_PROTO_ClearQueue [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 09 00 00 [10:16:18]Write to MH i2c: E2 08 00 7B 29 80 09 00 00 00 00 00 00 16 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [10:16:18]RAPDU: 90 00 [10:16:18]wFMCommunicate OK [10:16:18]SAM_PROTO_ClearQueue done [10:16:18]KKMCreateOFDPacket [10:16:18]OFDProtocolAddRootSTLVToBuf [10:16:18]FM_MakeSignedData [10:16:18]FM_MakeSignedData [10:16:18]SAM_PROTO_SignData [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 0D 01 02 [10:16:18]Write to MH i2c: E2 08 00 7C 29 80 0D 01 02 00 00 00 00 1E [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [10:16:18]RAPDU: 90 00 [10:16:18]wFMCommunicate OK [10:16:18]wFMCommunicate request_size=255 [10:16:18]MH_SAM_APDU [10:16: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F4 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 10 01 00 35 04 06 00 ED [10:16:18]Write to MH i2c: E2 02 01 7D 29 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F4 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 10 01 00 35 04 06 00 ED 00 00 EB [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [10:16:18]RAPDU: 90 00 [10:16:18]wFMCommunicate OK [10:16:18]wFMCommunicate request_size=10 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 0D 02 02 05 1F C8 18 1D 6E [10:16:18]Write to MH i2c: E2 0D 00 7E 29 80 0D 02 02 05 00 1F C8 18 1D 6E 00 00 B5 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 03 00 7E 29 00 90 00 1B [10:16:18]RAPDU: 90 00 [10:16:18]wFMCommunicate OK [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 0D 03 02 [10:16:18]Write to MH i2c: E2 08 00 7F 29 80 0D 03 02 00 00 00 00 23 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 0B 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 0B 00 7F 29 00 4C 91 20 02 6E 58 1B 29 90 00 2D [10:16:18]RAPDU: 4C 91 20 02 6E 58 1B 29 90 00 [10:16:18]wFMCommunicate OK [10:16:18]SAM_PROTO_SignData done [10:16:18]FM_MakeSignedData done [10:16:18]CreateOFDProtocolMessage [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 11 00 00 [10:16:18]Write to MH i2c: E2 08 00 80 29 80 11 00 00 00 00 00 00 23 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 17 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 17 00 80 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [10:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:18]wFMCommunicate OK [10:16:18]CreateOFDProtocolMessage done [10:16:18]OFDSenderStorePacket 69744 [10:16:18]StoreOFDPacket docnum=69744 [10:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 92 07 01 64 64 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F4 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 10 01 00 35 04 06 00 ED 1F C8 18 1D 6E 4C 91 20 02 6E 58 1B 29 [10:16:18]CheckFolder [10:16:18]dirname=/storage/ofd_packets [10:16:18]CheckFolder done [10:16:18]ProducePacketName [10:16:18]name=ofd_packets/00069744 [10:16:18]NVStorageSaveData ofd_packets/00069744 [10:16:18]File name is /storage/ofd_packets/00069744 [10:16:18]Write 301 bytes [10:16:18]NVStorageSaveData done [10:16:18]OFDSenderStorePacket done [10:16:18]KKMCreateOFDPacket done [10:16:18]NVStorageSaveData kkm_last_timestamp [10:16:18]File name is /storage/kkm_last_timestamp [10:16:18]Write 4 bytes [10:16:18]NVStorageSaveData done [10:16:18]ExternCall_PrintAddStr [10:16:18]wPrintStart [10:16:18]Write to MH i2c: 01 00 00 81 29 AA [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: 01 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: 01 07 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: 01 07 00 81 29 00 00 00 00 00 FF 0F BF [10:16:18]RasterBufferAndPrint [10:16:18]line Счет N : (1)2885484 [10:16:18]line ИНН: 02508201610067 [10:16:18]line Контрольно-Кассовый Чек [10:16:18]line ПРОДАЖА [10:16:18]line ТРК (МРК, ГНК) : 42 [10:16:18]line Товар: 2710124130 [10:16:18]line Аи-92-К-5 [10:16:18]line 4.490 * 66.90 [10:16:18]line = 300.38 [10:16:18]line НДС 12% НСП 1% [10:16:18]line > о реализуемом товаре [10:16:18]line ОКРУГЛЕНИЕ: -0.38 [10:16:18]line ИТОГО: 300.00 [10:16:18]line Внесено: 300.00 [10:16:18]line СДАЧА: 0.00 [10:16:18]line НСП 1% : 2.66 [10:16:18]line НДС 12% : 31.90 [10:16:18]line Наличными: 300.00 [10:16:18]line Безнал.: 0.00 [10:16:18]line Место: АЗС № 85 "Партнер Нефть" [10:16:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:16:18]line СНО: Общий режим [10:16:18]line Чек 134 21.10.2024 10:16 [10:16:18]line Смена: 194 ФФД: 1.0 [10:16:18]line ЗНМ: 0300000167 [10:16:18]line РНМ: 0000000000156251 [10:16:18]line Версия ККМ: v1.0 [10:16:18]line ФМ: 0000000000963346 [10:16:18]line ФД: 69744 [10:16:18]line ФПД: 260720756792686 [10:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69744&fm=260720756792686&tin=02508201610067®Number=0000000000156251&sum=30000 [10:16:19]OFD Sender: Processing packet 69744 [packets to send 18, broken 17] [10:16:19]ProducePacketName [10:16:19]name=ofd_packets/00069744 [10:16:19]OFD Sender: To server: pG, [10:16:19]CommunicateWithHost lk.salyk.kg:30040 [10:16:19]ConnectInit lk.salyk.kg [10:16:19]written 0, free lines is 4095 [10:16:19]Connected sock=11 [10:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 92 07 01 64 64 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F4 29 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 10 01 00 35 04 06 00 ED 1F C8 18 1D 6E 4C 91 20 02 6E 58 1B 29 [10:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EF F9 47 00 1A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 10 01 00 F4 03 04 00 98 D3 15 67 B6 04 01 00 00 46 37 5D BA F9 48 AB 35 [10:16:19]CommunicateWithHost err = 0 [10:16:19]CheckOFDResponse [10:16:19]1017 (14) - 77093643461234 [10:16:19]1041 (16) - 0000000000963346 [10:16:19]1040 (4) - 69744 [10:16:19]1012 (4) - 21.10.2024 04:07 [10:16:19]1206 (1) - 0 [10:16:19]OFD Sender: Remove packet 69744 [10:16:19]ProducePacketName [10:16:19]name=ofd_packets/00069744 [10:16:19]NVStorageDeleteData [10:16:19]Write to MH i2c: 01 00 00 AC 29 D5 [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: 01 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: 01 07 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 F6 0C DE [10:16:19]RasterBufferAndPrint [10:16:19]line [10:16:19]line [10:16:19]line [10:16:19]line [10:16:19]line [10:16:19]written 0, free lines is 3324 [10:16:19]MH_Cut [10:16:19]Write to MH i2c: D1 01 00 B3 29 01 AE [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: D1 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: D1 01 00 [10:16:19]MH_I2C_Read... [10:16:19]Read from MH i2c: D1 01 00 B3 29 00 AD [10:16:19]Write to MH i2c: 01 00 00 B4 29 DD [10:16:19]Write i2c OK [10:16:19]MH_I2C_Read... [10:16:20]OFD Sender: No OFD packet to send [10:16:20]*** Cut start [10:16:20]*** Partial cut [10:16:20]*** CUTSNS_PIN = 1 [10:16:20]*** CUTSNS_PIN = 0 [10:16:20]*** Brake cut motor [10:16:20]Read from MH i2c: 01 [10:16:20]MH_I2C_Read... [10:16:20]*** Stop cut motor [10:16:20]*** Cut end [10:16:20]Read from MH i2c: 01 07 00 [10:16:20]MH_I2C_Read... [10:16:20]Read from MH i2c: 01 07 00 B4 29 00 00 00 00 00 FF 0F F2 [10:16:20]process_action close_receipt done [10:16:20]requested_data is exist [10:16:20]produce_requested_data [10:16:20]requested_item fm.sn is exist - process it [10:16:20]wFMCommunicate request_size=4 [10:16:20]MH_SAM_APDU [10:16:20]CAPDU: 80 11 00 00 [10:16:20]Write to MH i2c: E2 08 00 B5 29 80 11 00 00 00 00 00 00 58 [10:16:20]Write i2c OK [10:16:20]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 17 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 17 00 B5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [10:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:21]wFMCommunicate OK [10:16:21]requested_item fd.num is exist - process it [10:16:21]SAM_PROTO_GetFieldsCounters [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 13 00 00 [10:16:21]Write to MH i2c: E2 08 00 B6 29 80 13 00 00 00 00 00 00 5B [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 62 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 62 00 B6 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [10:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_GetFieldsCounters done [10:16:21]requested_item shift.num is exist - process it [10:16:21]requested_item shift.opened is exist - process it [10:16:21]req_shift_opened [10:16:21]FM_GetShiftState [10:16:21]SAM_PROTO_GetShiftState [10:16:21]wFMCommunicate request_size=4 [10:16:21]MH_SAM_APDU [10:16:21]CAPDU: 80 13 01 00 [10:16:21]Write to MH i2c: E2 08 00 B7 29 80 13 01 00 00 00 00 00 5D [10:16:21]Write i2c OK [10:16:21]MH_I2C_Read... [10:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:21]Read from MH i2c: E2 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0E 00 [10:16:21]MH_I2C_Read... [10:16:21]Read from MH i2c: E2 0E 00 B7 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 89 [10:16:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:16:21]wFMCommunicate OK [10:16:21]SAM_PROTO_GetShiftState done [10:16:21]FM_GetShiftState done [10:16:21]req_shift_opened done [10:16:21]requested_item shift.open_date is exist - process it [10:16:21]req_shift_open_date [10:16:21]req_shift_open_date done [10:16:21]produce_requested_data done [10:16:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69744,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:16:21]process_action_free close_receipt [10:16:21]json_value_free [10:16:21]json_value_free done [10:16:21]process_json_proto returns [10:16:21]Send response to host [10:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69744,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:16:21]free response buf [10:16:21]execute_script done [10:16:21]execute_script returns [10:16:21]free content buf [10:16:21]Sock 8.Close socket [10:16:21]Sock 8.Thread stoped [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:36]accept exits with 9 [10:16:36]New connection [10:16:36]New thread 3067313508 created [10:16:36]Thread 3067456868 joined [10:16:36]Waiting for new connection... [10:16:36] Sock 9.Parse request [10:16:36]Sock 9.Check first char [10:16:36]Sock 9.First char is OK [10:16:36]request: POST /json_proto HTTP/1.0 [10:16:36]Method: POST [10:16:36]URL: /json_proto [10:16:36]Method is POST - this is cgi request [10:16:36]url: /json_proto [10:16:36]query_string will be loaded in cgi processing [10:16:36]execute_cgi json_proto POST (null) [10:16:36]execute_cgi path=json_proto method=POST [10:16:36]POST find Content-Length [10:16:36]Host: 172.17.50.3:8080 [10:16:36]Content-Length: 768 [10:16:36]Content-Type: application/json [10:16:36] [10:16:36]POST finish read [10:16:36]Found Content-Length = 768 [10:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885485", "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" : 10.920, "sum" : 810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 810.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:36]execute_script... [10:16: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)2885485", "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" : 10.920, "sum" : 810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 810.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:36]POST & json_proto [10:16:36]process_json_proto [10:16:36]json parsed OK: [10:16:36]protocol is kg_v1.0 [10:16:36]action value=close_receipt [10:16:36]process_action close_receipt [10:16:36]cmd_close_receipt [10:16:36]MH_GetDate [10:16:36]Write to MH i2c: F0 00 00 B8 29 D0 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 09 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: F0 09 00 B8 29 00 07 2A 16 67 6B 98 1E 66 0E [10:16:36]GetLastDocTimeStamp 1729505780 [10:16:36]current date 1729505799 [10:16:36]FM_GetShiftState [10:16:36]SAM_PROTO_GetShiftState [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 01 00 [10:16:36]Write to MH i2c: E2 08 00 B9 29 80 13 01 00 00 00 00 00 5F [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 B9 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [10:16:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetShiftState done [10:16:36]FM_GetShiftState done [10:16:36]opened in 1729469703 [10:16:36]opened+sec_in_day 1729556103 [10:16:36]quantity*price = 81026 [10:16:36]sum+1 = 81027 [10:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 810.26 НСП 1% : 7.17 НДС 12% : 86.04 Наличными: 0.00 Безнал.: 810.26 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 135 21.10.2024 10:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69745 ФПД: 118204066046808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69745&fm=118204066046808&tin=02508201610067®Number=0000000000156251&sum=81026 [10:16:37]StoreToDocumentArchive [10:16:37]shift 194 fd 69745 [10:16:37]save to /storage/0194/doc_00069745 [10:16:37]save last doc name /storage/0194/doc_00069745 to /storage/kkm_last_doc_name [10:16:37]save OK [10:16:37]Clear old archive folders... [10:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:37]tlvbuf is 00CAF7A0 [10:16:37]SAM_PROTO_ClearQueue [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 09 00 00 [10:16:37]Write to MH i2c: E2 08 00 C6 29 80 09 00 00 00 00 00 00 61 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_ClearQueue done [10:16:37]KKMCreateOFDPacket [10:16:37]OFDProtocolAddRootSTLVToBuf [10:16:37]FM_MakeSignedData [10:16:37]FM_MakeSignedData [10:16:37]SAM_PROTO_SignData [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 01 02 [10:16:37]Write to MH i2c: E2 08 00 C7 29 80 0D 01 02 00 00 00 00 69 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=255 [10:16:37]MH_SAM_APDU [10:16:37]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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 3C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 10 01 00 35 04 06 00 6B [10:16:37]Write to MH i2c: E2 02 01 C8 29 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 3C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 10 01 00 35 04 06 00 6B 00 00 08 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=10 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 05 81 87 5E 23 58 [10:16:37]Write to MH i2c: E2 0D 00 C9 29 80 0D 02 02 05 00 81 87 5E 23 58 00 00 57 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 03 02 [10:16:37]Write to MH i2c: E2 08 00 CA 29 80 0D 03 02 00 00 00 00 6E [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 CA 29 00 7E CA 9B 2F 52 42 14 41 90 00 6A [10:16:37]RAPDU: 7E CA 9B 2F 52 42 14 41 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_SignData done [10:16:37]FM_MakeSignedData done [10:16:37]CreateOFDProtocolMessage [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 11 00 00 [10:16:37]Write to MH i2c: E2 08 00 CB 29 80 11 00 00 00 00 00 00 6E [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 CB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [10:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:37]wFMCommunicate OK [10:16:37]CreateOFDProtocolMessage done [10:16:37]OFDSenderStorePacket 69745 [10:16:37]StoreOFDPacket docnum=69745 [10:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 E0 07 01 6E 31 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 3C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 10 01 00 35 04 06 00 6B 81 87 5E 23 58 7E CA 9B 2F 52 42 14 41 [10:16:37]CheckFolder [10:16:37]dirname=/storage/ofd_packets [10:16:37]CheckFolder done [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00069745 [10:16:37]NVStorageSaveData ofd_packets/00069745 [10:16:37]File name is /storage/ofd_packets/00069745 [10:16:37]Write 301 bytes [10:16:37]NVStorageSaveData done [10:16:37]OFDSenderStorePacket done [10:16:37]KKMCreateOFDPacket done [10:16:37]NVStorageSaveData kkm_last_timestamp [10:16:37]File name is /storage/kkm_last_timestamp [10:16:37]Write 4 bytes [10:16:37]NVStorageSaveData done [10:16:37]OFD Sender: Processing packet 69745 [packets to send 18, broken 17] [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00069745 [10:16:37]OFD Sender: To server: pG, [10:16:37]CommunicateWithHost lk.salyk.kg:30040 [10:16:37]ConnectInit lk.salyk.kg [10:16:37]ExternCall_PrintAddStr [10:16:37]wPrintStart [10:16:37]Write to MH i2c: 01 00 00 CC 29 F5 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 CC 29 00 00 00 00 00 FF 0F 0A [10:16:37]RasterBufferAndPrint [10:16:37]line Счет N : (1)2885485 [10:16:37]line ИНН: 02508201610067 [10:16:37]line Контрольно-Кассовый Чек [10:16:37]line ПРОДАЖА [10:16:37]line ТРК (МРК, ГНК) : 33 [10:16:37]line Товар: 2710124500 [10:16:37]line Аи-95-К-5 [10:16:37]line 10.920 * 74.20 [10:16:37]line = 810.26 [10:16:37]line НДС 12% НСП 1% [10:16:37]line > о реализуемом товаре [10:16:37]line ИТОГО: 810.26 [10:16:37]line НСП 1% : 7.17 [10:16:37]line НДС 12% : 86.04 [10:16:37]line Наличными: 0.00 [10:16:37]line Безнал.: 810.26 [10:16:37]line Место: АЗС № 85 "Партнер Нефть" [10:16:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:16:37]line СНО: Общий режим [10:16:37]line Чек 135 21.10.2024 10:16 [10:16:37]line Смена: 194 ФФД: 1.0 [10:16:37]line ЗНМ: 0300000167 [10:16:37]line РНМ: 0000000000156251 [10:16:37]line Версия ККМ: v1.0 [10:16:38]line Платежная система: Mbank [10:16:38]line ФМ: 0000000000963346 [10:16:38]line ФД: 69745 [10:16:38]line ФПД: 118204066046808 [10:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101639&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69745&fm=118204066046808&tin=02508201610067®Number=0000000000156251&sum=81026 [10:16:38]Connected sock=10 [10:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 E0 07 01 6E 31 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 3C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 10 01 00 35 04 06 00 6B 81 87 5E 23 58 7E CA 9B 2F 52 42 14 41 [10:16:38]written 0, free lines is 4095 [10:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D6 09 47 00 80 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 10 01 00 F4 03 04 00 AB D3 15 67 B6 04 01 00 00 A5 D5 92 C7 B6 B0 76 04 [10:16:38]CommunicateWithHost err = 0 [10:16:38]CheckOFDResponse [10:16:38]1017 (14) - 77093643461234 [10:16:38]1041 (16) - 0000000000963346 [10:16:38]1040 (4) - 69745 [10:16:38]1012 (4) - 21.10.2024 04:08 [10:16:38]1206 (1) - 0 [10:16:38]OFD Sender: Remove packet 69745 [10:16:38]ProducePacketName [10:16:38]name=ofd_packets/00069745 [10:16:38]NVStorageDeleteData [10:16:38]Write to MH i2c: 01 00 00 F5 29 1E [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 F5 29 00 00 00 00 00 16 0D 48 [10:16:38]RasterBufferAndPrint [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]written 0, free lines is 3358 [10:16:38]MH_Cut [10:16:38]Write to MH i2c: D1 01 00 FC 29 01 F7 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 FC 29 00 F6 [10:16:38]Write to MH i2c: 01 00 00 FD 29 26 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]OFD Sender: No OFD packet to send [10:16:39]*** Cut start [10:16:39]*** Partial cut [10:16:39]*** CUTSNS_PIN = 1 [10:16:39]*** CUTSNS_PIN = 0 [10:16:39]*** Brake cut motor [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]*** Stop cut motor [10:16:39]*** Cut end [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 FF 0F 3B [10:16:39]process_action close_receipt done [10:16:39]requested_data is exist [10:16:39]produce_requested_data [10:16:39]requested_item fm.sn is exist - process it [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 11 00 00 [10:16:39]Write to MH i2c: E2 08 00 FE 29 80 11 00 00 00 00 00 00 A1 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 FE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [10:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:39]wFMCommunicate OK [10:16:39]requested_item fd.num is exist - process it [10:16:39]SAM_PROTO_GetFieldsCounters [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 00 00 [10:16:39]Write to MH i2c: E2 08 00 FF 29 80 13 00 00 00 00 00 00 A4 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:40]Read from MH i2c: E2 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 62 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 62 00 FF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:40]wFMCommunicate OK [10:16:40]SAM_PROTO_GetFieldsCounters done [10:16:40]requested_item shift.num is exist - process it [10:16:40]requested_item shift.opened is exist - process it [10:16:40]req_shift_opened [10:16:40]FM_GetShiftState [10:16:40]SAM_PROTO_GetShiftState [10:16:40]wFMCommunicate request_size=4 [10:16:40]MH_SAM_APDU [10:16:40]CAPDU: 80 13 01 00 [10:16:40]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:40]Read from MH i2c: E2 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 0E 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D3 [10:16:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:16:40]wFMCommunicate OK [10:16:40]SAM_PROTO_GetShiftState done [10:16:40]FM_GetShiftState done [10:16:40]req_shift_opened done [10:16:40]requested_item shift.open_date is exist - process it [10:16:40]req_shift_open_date [10:16:40]req_shift_open_date done [10:16:40]produce_requested_data done [10:16:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69745,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:16:40]process_action_free close_receipt [10:16:40]json_value_free [10:16:40]json_value_free done [10:16:40]process_json_proto returns [10:16:40]Send response to host [10:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69745,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:16:40]free response buf [10:16:40]execute_script done [10:16:40]execute_script returns [10:16:40]free content buf [10:16:40]Sock 9.Close socket [10:16:40]Sock 9.Thread stoped [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:14]accept exits with 8 [10:17:14]New connection [10:17:14]New thread 3067456868 created [10:17:14]Thread 3067313508 joined [10:17:14]Waiting for new connection... [10:17:14] Sock 8.Parse request [10:17:14]Sock 8.Check first char [10:17:14]Sock 8.First char is OK [10:17:14]request: POST /json_proto HTTP/1.0 [10:17:14]Method: POST [10:17:14]URL: /json_proto [10:17:14]Method is POST - this is cgi request [10:17:14]url: /json_proto [10:17:14]query_string will be loaded in cgi processing [10:17:14]execute_cgi json_proto POST (null) [10:17:14]execute_cgi path=json_proto method=POST [10:17:14]POST find Content-Length [10:17:14]Host: 172.17.50.3:8080 [10:17:14]Content-Length: 678 [10:17:14]Content-Type: application/json [10:17:14] [10:17:14]POST finish read [10:17:14]Found Content-Length = 678 [10:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:14]execute_script... [10:17: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)2885486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:14]POST & json_proto [10:17:14]process_json_proto [10:17:14]json parsed OK: [10:17:14]protocol is kg_v1.0 [10:17:14]action value=close_receipt [10:17:14]process_action close_receipt [10:17:14]cmd_close_receipt [10:17:14]MH_GetDate [10:17:14]Write to MH i2c: F0 00 00 01 2A 1A [10:17:14]Write i2c OK [10:17:14]MH_I2C_Read... [10:17:14]Read from MH i2c: F0 [10:17:14]MH_I2C_Read... [10:17:14]Read from MH i2c: F0 09 00 [10:17:14]MH_I2C_Read... [10:17:14]Read from MH i2c: F0 09 00 01 2A 00 2D 2A 16 67 6B 98 1E 66 7E [10:17:14]GetLastDocTimeStamp 1729505799 [10:17:14]current date 1729505837 [10:17:14]FM_GetShiftState [10:17:14]SAM_PROTO_GetShiftState [10:17:14]wFMCommunicate request_size=4 [10:17:14]MH_SAM_APDU [10:17:14]CAPDU: 80 13 01 00 [10:17:14]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [10:17:14]Write i2c OK [10:17:14]MH_I2C_Read... [10:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:14]Read from MH i2c: E2 [10:17:14]MH_I2C_Read... [10:17:14]Read from MH i2c: E2 0E 00 [10:17:14]MH_I2C_Read... [10:17:14]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D5 [10:17:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:17:14]wFMCommunicate OK [10:17:14]SAM_PROTO_GetShiftState done [10:17:14]FM_GetShiftState done [10:17:14]opened in 1729469703 [10:17:14]opened+sec_in_day 1729556103 [10:17:14]quantity*price = 30038 [10:17:14]sum+1 = 30039 [10:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 136 21.10.2024 10:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69746 ФПД: 276625483384420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69746&fm=276625483384420&tin=02508201610067®Number=0000000000156251&sum=30000 [10:17:15]StoreToDocumentArchive [10:17:15]shift 194 fd 69746 [10:17:15]save to /storage/0194/doc_00069746 [10:17:15]save last doc name /storage/0194/doc_00069746 to /storage/kkm_last_doc_name [10:17:15]save OK [10:17:15]Clear old archive folders... [10:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:15]tlvbuf is 00C74E40 [10:17:15]SAM_PROTO_ClearQueue [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 09 00 00 [10:17:15]Write to MH i2c: E2 08 00 0F 2A 80 09 00 00 00 00 00 00 AB [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [10:17:15]RAPDU: 90 00 [10:17:15]wFMCommunicate OK [10:17:15]SAM_PROTO_ClearQueue done [10:17:15]KKMCreateOFDPacket [10:17:15]OFDProtocolAddRootSTLVToBuf [10:17:15]FM_MakeSignedData [10:17:15]FM_MakeSignedData [10:17:15]SAM_PROTO_SignData [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 0D 01 02 [10:17:15]Write to MH i2c: E2 08 00 10 2A 80 0D 01 02 00 00 00 00 B3 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [10:17:15]RAPDU: 90 00 [10:17:15]wFMCommunicate OK [10:17:15]wFMCommunicate request_size=255 [10:17:15]MH_SAM_APDU [10:17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2D 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 10 01 00 35 04 06 00 FB [10:17:15]Write to MH i2c: E2 02 01 11 2A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2D 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 10 01 00 35 04 06 00 FB 00 00 CC [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [10:17:15]RAPDU: 90 00 [10:17:15]wFMCommunicate OK [10:17:15]wFMCommunicate request_size=10 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 0D 02 02 05 96 E3 AC 46 64 [10:17:15]Write to MH i2c: E2 0D 00 12 2A 80 0D 02 02 05 00 96 E3 AC 46 64 00 00 8F [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [10:17:15]RAPDU: 90 00 [10:17:15]wFMCommunicate OK [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 0D 03 02 [10:17:15]Write to MH i2c: E2 08 00 13 2A 80 0D 03 02 00 00 00 00 B8 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 0B 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 0B 00 13 2A 00 AA 5B 4F D6 C1 58 A9 9D 90 00 42 [10:17:15]RAPDU: AA 5B 4F D6 C1 58 A9 9D 90 00 [10:17:15]wFMCommunicate OK [10:17:15]SAM_PROTO_SignData done [10:17:15]FM_MakeSignedData done [10:17:15]CreateOFDProtocolMessage [10:17:15]wFMCommunicate request_size=4 [10:17:15]MH_SAM_APDU [10:17:15]CAPDU: 80 11 00 00 [10:17:15]Write to MH i2c: E2 08 00 14 2A 80 11 00 00 00 00 00 00 B8 [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:15]Read from MH i2c: E2 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 17 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: E2 17 00 14 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [10:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:15]wFMCommunicate OK [10:17:15]CreateOFDProtocolMessage done [10:17:15]OFDSenderStorePacket 69746 [10:17:15]StoreOFDPacket docnum=69746 [10:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B5 F3 07 01 D8 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2D 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 10 01 00 35 04 06 00 FB 96 E3 AC 46 64 AA 5B 4F D6 C1 58 A9 9D [10:17:15]CheckFolder [10:17:15]dirname=/storage/ofd_packets [10:17:15]CheckFolder done [10:17:15]ProducePacketName [10:17:15]name=ofd_packets/00069746 [10:17:15]NVStorageSaveData ofd_packets/00069746 [10:17:15]File name is /storage/ofd_packets/00069746 [10:17:15]Write 301 bytes [10:17:15]NVStorageSaveData done [10:17:15]OFDSenderStorePacket done [10:17:15]KKMCreateOFDPacket done [10:17:15]NVStorageSaveData kkm_last_timestamp [10:17:15]File name is /storage/kkm_last_timestamp [10:17:15]Write 4 bytes [10:17:15]NVStorageSaveData done [10:17:15]ExternCall_PrintAddStr [10:17:15]wPrintStart [10:17:15]Write to MH i2c: 01 00 00 15 2A 3F [10:17:15]Write i2c OK [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: 01 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: 01 07 00 [10:17:15]MH_I2C_Read... [10:17:15]Read from MH i2c: 01 07 00 15 2A 00 00 00 00 00 FF 0F 54 [10:17:15]RasterBufferAndPrint [10:17:15]line Счет N : (1)2885486 [10:17:15]line ИНН: 02508201610067 [10:17:15]line Контрольно-Кассовый Чек [10:17:15]line ПРОДАЖА [10:17:15]line ТРК (МРК, ГНК) : 12 [10:17:15]line Товар: 2710124130 [10:17:15]line Аи-92-К-5 [10:17:15]line 4.490 * 66.90 [10:17:15]line = 300.38 [10:17:15]line НДС 12% НСП 1% [10:17:15]line > о реализуемом товаре [10:17:15]line ОКРУГЛЕНИЕ: -0.38 [10:17:15]line ИТОГО: 300.00 [10:17:15]line Внесено: 300.00 [10:17:15]line СДАЧА: 0.00 [10:17:15]line НСП 1% : 2.66 [10:17:15]line НДС 12% : 31.90 [10:17:15]line Наличными: 300.00 [10:17:15]line Безнал.: 0.00 [10:17:15]line Место: АЗС № 85 "Партнер Нефть" [10:17:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:17:15]line СНО: Общий режим [10:17:15]line Чек 136 21.10.2024 10:17 [10:17:15]line Смена: 194 ФФД: 1.0 [10:17:15]line ЗНМ: 0300000167 [10:17:15]line РНМ: 0000000000156251 [10:17:15]line Версия ККМ: v1.0 [10:17:15]line ФМ: 0000000000963346 [10:17:15]line ФД: 69746 [10:17:15]line ФПД: 276625483384420 [10:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69746&fm=276625483384420&tin=02508201610067®Number=0000000000156251&sum=30000 [10:17:16]OFD Sender: Processing packet 69746 [packets to send 18, broken 17] [10:17:16]ProducePacketName [10:17:16]name=ofd_packets/00069746 [10:17:16]OFD Sender: To server: pG, [10:17:16]CommunicateWithHost lk.salyk.kg:30040 [10:17:16]ConnectInit lk.salyk.kg [10:17:16]written 0, free lines is 4095 [10:17:16]Connected sock=10 [10:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B5 F3 07 01 D8 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2D 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 10 01 00 35 04 06 00 FB 96 E3 AC 46 64 AA 5B 4F D6 C1 58 A9 9D [10:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E8 67 47 00 89 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 10 01 00 F4 03 04 00 D1 D3 15 67 B6 04 01 00 00 21 7E BD 45 EE 4E 5C 99 [10:17:16]CommunicateWithHost err = 0 [10:17:16]CheckOFDResponse [10:17:16]1017 (14) - 77093643461234 [10:17:16]1041 (16) - 0000000000963346 [10:17:16]1040 (4) - 69746 [10:17:16]1012 (4) - 21.10.2024 04:08 [10:17:16]1206 (1) - 0 [10:17:16]OFD Sender: Remove packet 69746 [10:17:16]ProducePacketName [10:17:16]name=ofd_packets/00069746 [10:17:16]NVStorageDeleteData [10:17:16]Write to MH i2c: 01 00 00 40 2A 6A [10:17:16]Write i2c OK [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: 01 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: 01 07 00 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FC 0C 79 [10:17:16]RasterBufferAndPrint [10:17:16]line [10:17:16]line [10:17:16]line [10:17:16]line [10:17:16]line [10:17:16]written 0, free lines is 3333 [10:17:16]MH_Cut [10:17:16]Write to MH i2c: D1 01 00 47 2A 01 43 [10:17:16]Write i2c OK [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: D1 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: D1 01 00 [10:17:16]MH_I2C_Read... [10:17:16]Read from MH i2c: D1 01 00 47 2A 00 42 [10:17:16]Write to MH i2c: 01 00 00 48 2A 72 [10:17:16]Write i2c OK [10:17:16]MH_I2C_Read... [10:17:16]OFD Sender: No OFD packet to send [10:17:17]*** Cut start [10:17:17]*** Partial cut [10:17:17]*** CUTSNS_PIN = 1 [10:17:17]*** CUTSNS_PIN = 0 [10:17:17]*** Brake cut motor [10:17:17]Read from MH i2c: 01 [10:17:17]MH_I2C_Read... [10:17:17]*** Stop cut motor [10:17:17]*** Cut end [10:17:17]Read from MH i2c: 01 07 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: 01 07 00 48 2A 00 00 00 00 00 FF 0F 87 [10:17:17]process_action close_receipt done [10:17:17]requested_data is exist [10:17:17]produce_requested_data [10:17:17]requested_item fm.sn is exist - process it [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 11 00 00 [10:17:17]Write to MH i2c: E2 08 00 49 2A 80 11 00 00 00 00 00 00 ED [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:17]Read from MH i2c: E2 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 17 00 [10:17:17]MH_I2C_Read... [10:17:17]Read from MH i2c: E2 17 00 49 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [10:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:17:17]wFMCommunicate OK [10:17:17]requested_item fd.num is exist - process it [10:17:17]SAM_PROTO_GetFieldsCounters [10:17:17]wFMCommunicate request_size=4 [10:17:17]MH_SAM_APDU [10:17:17]CAPDU: 80 13 00 00 [10:17:17]Write to MH i2c: E2 08 00 4A 2A 80 13 00 00 00 00 00 00 F0 [10:17:17]Write i2c OK [10:17:17]MH_I2C_Read... [10:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:18]Read from MH i2c: E2 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: E2 62 00 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: E2 62 00 4A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:18]wFMCommunicate OK [10:17:18]SAM_PROTO_GetFieldsCounters done [10:17:18]requested_item shift.num is exist - process it [10:17:18]requested_item shift.opened is exist - process it [10:17:18]req_shift_opened [10:17:18]FM_GetShiftState [10:17:18]SAM_PROTO_GetShiftState [10:17:18]wFMCommunicate request_size=4 [10:17:18]MH_SAM_APDU [10:17:18]CAPDU: 80 13 01 00 [10:17:18]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [10:17:18]Write i2c OK [10:17:18]MH_I2C_Read... [10:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:18]Read from MH i2c: E2 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: E2 0E 00 [10:17:18]MH_I2C_Read... [10:17:18]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1E [10:17:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:17:18]wFMCommunicate OK [10:17:18]SAM_PROTO_GetShiftState done [10:17:18]FM_GetShiftState done [10:17:18]req_shift_opened done [10:17:18]requested_item shift.open_date is exist - process it [10:17:18]req_shift_open_date [10:17:18]req_shift_open_date done [10:17:18]produce_requested_data done [10:17:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69746,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:17:18]process_action_free close_receipt [10:17:18]json_value_free [10:17:18]json_value_free done [10:17:18]process_json_proto returns [10:17:18]Send response to host [10:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69746,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:17:18]free response buf [10:17:18]execute_script done [10:17:18]execute_script returns [10:17:18]free content buf [10:17:18]Sock 8.Close socket [10:17:18]Sock 8.Thread stoped [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:48]accept exits with 9 [10:19:48]New connection [10:19:48]New thread 3067313508 created [10:19:48]Thread 3067456868 joined [10:19:48]Waiting for new connection... [10:19:48] Sock 9.Parse request [10:19:48]Sock 9.Check first char [10:19:48]Sock 9.First char is OK [10:19:48]request: POST /json_proto HTTP/1.0 [10:19:48]Method: POST [10:19:48]URL: /json_proto [10:19:48]Method is POST - this is cgi request [10:19:48]url: /json_proto [10:19:48]query_string will be loaded in cgi processing [10:19:48]execute_cgi json_proto POST (null) [10:19:48]execute_cgi path=json_proto method=POST [10:19:48]POST find Content-Length [10:19:48]Host: 172.17.50.3:8080 [10:19:48]Content-Length: 770 [10:19:48]Content-Type: application/json [10:19:48] [10:19:48]POST finish read [10:19:48]Found Content-Length = 770 [10:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885487", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:48]execute_script... [10:19: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)2885487", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:48]POST & json_proto [10:19:48]process_json_proto [10:19:48]json parsed OK: [10:19:48]protocol is kg_v1.0 [10:19:48]action value=close_receipt [10:19:48]process_action close_receipt [10:19:48]cmd_close_receipt [10:19:48]MH_GetDate [10:19:48]Write to MH i2c: F0 00 00 4C 2A 65 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: F0 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: F0 09 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: F0 09 00 4C 2A 00 C8 2A 16 67 6B 98 1E 66 64 [10:19:48]GetLastDocTimeStamp 1729505837 [10:19:48]current date 1729505992 [10:19:48]FM_GetShiftState [10:19:48]SAM_PROTO_GetShiftState [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 13 01 00 [10:19:48]Write to MH i2c: E2 08 00 4D 2A 80 13 01 00 00 00 00 00 F4 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0E 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0E 00 4D 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 20 [10:19:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_GetShiftState done [10:19:48]FM_GetShiftState done [10:19:48]opened in 1729469703 [10:19:48]opened+sec_in_day 1729556103 [10:19:48]quantity*price = 100015 [10:19:48]sum+1 = 100017 [10:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 137 21.10.2024 10:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69747 ФПД: 38673186294055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69747&fm=38673186294055&tin=02508201610067®Number=0000000000156251&sum=100016 [10:19:50]StoreToDocumentArchive [10:19:50]shift 194 fd 69747 [10:19:50]save to /storage/0194/doc_00069747 [10:19:50]save last doc name /storage/0194/doc_00069747 to /storage/kkm_last_doc_name [10:19:50]save OK [10:19:50]Clear old archive folders... [10:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:50]tlvbuf is 00CCDE30 [10:19:50]SAM_PROTO_ClearQueue [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 09 00 00 [10:19:50]Write to MH i2c: E2 08 00 5A 2A 80 09 00 00 00 00 00 00 F6 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_ClearQueue done [10:19:50]KKMCreateOFDPacket [10:19:50]OFDProtocolAddRootSTLVToBuf [10:19:50]FM_MakeSignedData [10:19:50]FM_MakeSignedData [10:19:50]SAM_PROTO_SignData [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 01 02 [10:19:50]Write to MH i2c: E2 08 00 5B 2A 80 0D 01 02 00 00 00 00 FE [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=255 [10:19:50]MH_SAM_APDU [10:19: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C8 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 10 01 00 35 04 06 00 23 [10:19:50]Write to MH i2c: E2 02 01 5C 2A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C8 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 10 01 00 35 04 06 00 23 00 00 02 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=10 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 02 02 05 2C 4D 88 09 27 [10:19:50]Write to MH i2c: E2 0D 00 5D 2A 80 0D 02 02 05 00 2C 4D 88 09 27 00 00 3C [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 03 02 [10:19:50]Write to MH i2c: E2 08 00 5E 2A 80 0D 03 02 00 00 00 00 03 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 0B 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 0B 00 5E 2A 00 1A E9 A9 6D 8A D9 60 85 90 00 65 [10:19:50]RAPDU: 1A E9 A9 6D 8A D9 60 85 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_SignData done [10:19:50]FM_MakeSignedData done [10:19:50]CreateOFDProtocolMessage [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 11 00 00 [10:19:50]Write to MH i2c: E2 08 00 5F 2A 80 11 00 00 00 00 00 00 03 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 17 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 17 00 5F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [10:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:19:50]wFMCommunicate OK [10:19:50]CreateOFDProtocolMessage done [10:19:50]OFDSenderStorePacket 69747 [10:19:50]StoreOFDPacket docnum=69747 [10:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FE 2E 07 01 81 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C8 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 10 01 00 35 04 06 00 23 2C 4D 88 09 27 1A E9 A9 6D 8A D9 60 85 [10:19:50]CheckFolder [10:19:50]dirname=/storage/ofd_packets [10:19:50]CheckFolder done [10:19:50]ProducePacketName [10:19:50]name=ofd_packets/00069747 [10:19:50]NVStorageSaveData ofd_packets/00069747 [10:19:50]File name is /storage/ofd_packets/00069747 [10:19:50]Write 301 bytes [10:19:50]NVStorageSaveData done [10:19:50]OFDSenderStorePacket done [10:19:50]KKMCreateOFDPacket done [10:19:50]NVStorageSaveData kkm_last_timestamp [10:19:50]File name is /storage/kkm_last_timestamp [10:19:50]Write 4 bytes [10:19:50]NVStorageSaveData done [10:19:50]ExternCall_PrintAddStr [10:19:50]wPrintStart [10:19:50]Write to MH i2c: 01 00 00 60 2A 8A [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 07 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: 01 07 00 60 2A 00 00 00 00 00 FF 0F 9F [10:19:50]RasterBufferAndPrint [10:19:50]line Счет N : (1)2885487 [10:19:50]line ИНН: 02508201610067 [10:19:50]line Контрольно-Кассовый Чек [10:19:50]line ПРОДАЖА [10:19:50]line ТРК (МРК, ГНК) : 32 [10:19:50]line Товар: 2710124130 [10:19:50]line Аи-92-К-5 [10:19:50]line 14.950 * 66.90 [10:19:50]line = 1000.16 [10:19:50]line НДС 12% НСП 1% [10:19:50]line > о реализуемом товаре [10:19:50]line ИТОГО: 1000.16 [10:19:50]line НСП 1% : 8.85 [10:19:50]line НДС 12% : 106.21 [10:19:50]line Наличными: 0.00 [10:19:50]line Безнал.: 1000.16 [10:19:50]line Место: АЗС № 85 "Партнер Нефть" [10:19:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:19:50]line СНО: Общий режим [10:19:50]line Чек 137 21.10.2024 10:19 [10:19:50]line Смена: 194 ФФД: 1.0 [10:19:50]line ЗНМ: 0300000167 [10:19:50]line РНМ: 0000000000156251 [10:19:50]line Версия ККМ: v1.0 [10:19:50]line Платежная система: Mbank [10:19:50]line ФМ: 0000000000963346 [10:19:50]line ФД: 69747 [10:19:50]line ФПД: 38673186294055 [10:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69747&fm=38673186294055&tin=02508201610067®Number=0000000000156251&sum=100016 [10:19:50]OFD Sender: Processing packet 69747 [packets to send 18, broken 17] [10:19:50]ProducePacketName [10:19:50]name=ofd_packets/00069747 [10:19:50]OFD Sender: To server: pG, [10:19:50]CommunicateWithHost lk.salyk.kg:30040 [10:19:50]ConnectInit lk.salyk.kg [10:19:50]written 0, free lines is 4095 [10:19:50]Connected sock=10 [10:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FE 2E 07 01 81 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C8 2A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 10 01 00 35 04 06 00 23 2C 4D 88 09 27 1A E9 A9 6D 8A D9 60 85 [10:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E CC 47 00 7E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 10 01 00 F4 03 04 00 6C D4 15 67 B6 04 01 00 00 3F 8A AE 1F FE 4A 3B 62 [10:19:51]CommunicateWithHost err = 0 [10:19:51]CheckOFDResponse [10:19:51]1017 (14) - 77093643461234 [10:19:51]1041 (16) - 0000000000963346 [10:19:51]1040 (4) - 69747 [10:19:51]1012 (4) - 21.10.2024 04:11 [10:19:51]1206 (1) - 0 [10:19:51]OFD Sender: Remove packet 69747 [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00069747 [10:19:51]NVStorageDeleteData [10:19:51]Write to MH i2c: 01 00 00 89 2A B3 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 17 0D DE [10:19:51]RasterBufferAndPrint [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]written 0, free lines is 3358 [10:19:51]MH_Cut [10:19:51]Write to MH i2c: D1 01 00 90 2A 01 8C [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 90 2A 00 8B [10:19:51]Write to MH i2c: 01 00 00 91 2A BB [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]OFD Sender: No OFD packet to send [10:19:51]*** Cut start [10:19:51]*** Partial cut [10:19:51]*** CUTSNS_PIN = 1 [10:19:52]*** CUTSNS_PIN = 0 [10:19:52]*** Brake cut motor [10:19:52]Read from MH i2c: 01 [10:19:52]MH_I2C_Read... [10:19:52]*** Stop cut motor [10:19:52]*** Cut end [10:19:52]Read from MH i2c: 01 07 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [10:19:52]process_action close_receipt done [10:19:52]requested_data is exist [10:19:52]produce_requested_data [10:19:52]requested_item fm.sn is exist - process it [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 11 00 00 [10:19:52]Write to MH i2c: E2 08 00 92 2A 80 11 00 00 00 00 00 00 36 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 92 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [10:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:19:52]wFMCommunicate OK [10:19:52]requested_item fd.num is exist - process it [10:19:52]SAM_PROTO_GetFieldsCounters [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 00 00 [10:19:52]Write to MH i2c: E2 08 00 93 2A 80 13 00 00 00 00 00 00 39 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 93 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [10:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetFieldsCounters done [10:19:52]requested_item shift.num is exist - process it [10:19:52]requested_item shift.opened is exist - process it [10:19:52]req_shift_opened [10:19:52]FM_GetShiftState [10:19:52]SAM_PROTO_GetShiftState [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 01 00 [10:19:52]Write to MH i2c: E2 08 00 94 2A 80 13 01 00 00 00 00 00 3B [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 94 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 67 [10:19:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetShiftState done [10:19:52]FM_GetShiftState done [10:19:52]req_shift_opened done [10:19:52]requested_item shift.open_date is exist - process it [10:19:52]req_shift_open_date [10:19:52]req_shift_open_date done [10:19:52]produce_requested_data done [10:19:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69747,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:19:52]process_action_free close_receipt [10:19:52]json_value_free [10:19:52]json_value_free done [10:19:52]process_json_proto returns [10:19:52]Send response to host [10:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69747,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:19:52]free response buf [10:19:52]execute_script done [10:19:52]execute_script returns [10:19:52]free content buf [10:19:52]Sock 9.Close socket [10:19:52]Sock 9.Thread stoped [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:18]accept exits with 8 [10:22:18]New connection [10:22:18]New thread 3067456868 created [10:22:18]Thread 3067313508 joined [10:22:18]Waiting for new connection... [10:22:18] Sock 8.Parse request [10:22:18]Sock 8.Check first char [10:22:18]Sock 8.First char is OK [10:22:18]request: POST /json_proto HTTP/1.0 [10:22:18]Method: POST [10:22:18]URL: /json_proto [10:22:18]Method is POST - this is cgi request [10:22:18]url: /json_proto [10:22:18]query_string will be loaded in cgi processing [10:22:18]execute_cgi json_proto POST (null) [10:22:18]execute_cgi path=json_proto method=POST [10:22:18]POST find Content-Length [10:22:18]Host: 172.17.50.3:8080 [10:22:18]Content-Length: 683 [10:22:18]Content-Type: application/json [10:22:18] [10:22:18]POST finish read [10:22:18]Found Content-Length = 683 [10:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "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:22:18]execute_script... [10: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)2885488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "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:22:18]POST & json_proto [10:22:18]process_json_proto [10:22:18]json parsed OK: [10:22:18]protocol is kg_v1.0 [10:22:18]action value=close_receipt [10:22:18]process_action close_receipt [10:22:18]cmd_close_receipt [10:22:18]MH_GetDate [10:22:18]Write to MH i2c: F0 00 00 95 2A AE [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 95 2A 00 5D 2B 16 67 6B 98 1E 66 43 [10:22:18]GetLastDocTimeStamp 1729505992 [10:22:18]current date 1729506141 [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 69 [10:22:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]opened in 1729469703 [10:22:18]opened+sec_in_day 1729556103 [10:22:18]quantity*price = 120055 [10:22:18]sum+1 = 120057 [10:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 138 21.10.2024 10:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69748 ФПД: 26631943752482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69748&fm=26631943752482&tin=02508201610067®Number=0000000000156251&sum=120000 [10:22:19]StoreToDocumentArchive [10:22:19]shift 194 fd 69748 [10:22:19]save to /storage/0194/doc_00069748 [10:22:19]save last doc name /storage/0194/doc_00069748 to /storage/kkm_last_doc_name [10:22:19]save OK [10:22:19]Clear old archive folders... [10:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:19]tlvbuf is 00D173A0 [10:22:19]SAM_PROTO_ClearQueue [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 09 00 00 [10:22:19]Write to MH i2c: E2 08 00 A3 2A 80 09 00 00 00 00 00 00 3F [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_ClearQueue done [10:22:19]KKMCreateOFDPacket [10:22:19]OFDProtocolAddRootSTLVToBuf [10:22:19]FM_MakeSignedData [10:22:19]FM_MakeSignedData [10:22:19]SAM_PROTO_SignData [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 01 02 [10:22:19]Write to MH i2c: E2 08 00 A4 2A 80 0D 01 02 00 00 00 00 47 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=255 [10:22:19]MH_SAM_APDU [10:22:19]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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 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 8A 00 00 00 F4 03 04 00 5D 2B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 10 01 00 35 04 06 00 18 [10:22:19]Write to MH i2c: E2 02 01 A5 2A 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 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 8A 00 00 00 F4 03 04 00 5D 2B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 10 01 00 35 04 06 00 18 00 00 E7 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=10 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 05 38 BB 8C 0B 22 [10:22:19]Write to MH i2c: E2 0D 00 A6 2A 80 0D 02 02 05 00 38 BB 8C 0B 22 00 00 00 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 03 02 [10:22:19]Write to MH i2c: E2 08 00 A7 2A 80 0D 03 02 00 00 00 00 4C [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 A7 2A 00 C7 66 D1 76 8B 16 7A 42 90 00 1E [10:22:19]RAPDU: C7 66 D1 76 8B 16 7A 42 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_SignData done [10:22:19]FM_MakeSignedData done [10:22:19]CreateOFDProtocolMessage [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 11 00 00 [10:22:19]Write to MH i2c: E2 08 00 A8 2A 80 11 00 00 00 00 00 00 4C [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 17 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 17 00 A8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [10:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:22:19]wFMCommunicate OK [10:22:19]CreateOFDProtocolMessage done [10:22:19]OFDSenderStorePacket 69748 [10:22:19]StoreOFDPacket docnum=69748 [10:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 99 07 01 A6 87 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 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 8A 00 00 00 F4 03 04 00 5D 2B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 10 01 00 35 04 06 00 18 38 BB 8C 0B 22 C7 66 D1 76 8B 16 7A 42 [10:22:19]CheckFolder [10:22:19]dirname=/storage/ofd_packets [10:22:19]CheckFolder done [10:22:19]ProducePacketName [10:22:19]name=ofd_packets/00069748 [10:22:19]NVStorageSaveData ofd_packets/00069748 [10:22:19]File name is /storage/ofd_packets/00069748 [10:22:19]Write 301 bytes [10:22:19]NVStorageSaveData done [10:22:19]OFDSenderStorePacket done [10:22:19]KKMCreateOFDPacket done [10:22:19]NVStorageSaveData kkm_last_timestamp [10:22:19]File name is /storage/kkm_last_timestamp [10:22:19]Write 4 bytes [10:22:19]NVStorageSaveData done [10:22:19]ExternCall_PrintAddStr [10:22:19]wPrintStart [10:22:19]Write to MH i2c: 01 00 00 A9 2A D3 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 A9 2A 00 00 00 00 00 FF 0F E8 [10:22:19]RasterBufferAndPrint [10:22:19]line Счет N : (1)2885488 [10:22:19]line ИНН: 02508201610067 [10:22:19]line Контрольно-Кассовый Чек [10:22:19]line ПРОДАЖА [10:22:19]line ТРК (МРК, ГНК) : 13 [10:22:19]line Товар: 2710124500 [10:22:19]line Аи-95-К-5 [10:22:19]line 16.180 * 74.20 [10:22:19]line = 1200.56 [10:22:19]line НДС 12% НСП 1% [10:22:19]line > о реализуемом товаре [10:22:19]line ОКРУГЛЕНИЕ: -0.56 [10:22:19]line ИТОГО: 1200.00 [10:22:19]line Внесено: 1200.00 [10:22:19]line СДАЧА: 0.00 [10:22:19]line НСП 1% : 10.62 [10:22:19]line НДС 12% : 127.49 [10:22:19]line Наличными: 1200.00 [10:22:19]line Безнал.: 0.00 [10:22:19]line Место: АЗС № 85 "Партнер Нефть" [10:22:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:22:19]line СНО: Общий режим [10:22:19]line Чек 138 21.10.2024 10:22 [10:22:19]line Смена: 194 ФФД: 1.0 [10:22:19]line ЗНМ: 0300000167 [10:22:19]line РНМ: 0000000000156251 [10:22:19]line Версия ККМ: v1.0 [10:22:19]line ФМ: 0000000000963346 [10:22:19]line ФД: 69748 [10:22:19]line ФПД: 26631943752482 [10:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69748&fm=26631943752482&tin=02508201610067®Number=0000000000156251&sum=120000 [10:22:20]OFD Sender: Processing packet 69748 [packets to send 18, broken 17] [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00069748 [10:22:20]OFD Sender: To server: pG, [10:22:20]CommunicateWithHost lk.salyk.kg:30040 [10:22:20]ConnectInit lk.salyk.kg [10:22:20]written 0, free lines is 4095 [10:22:20]Connected sock=9 [10:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 99 07 01 A6 87 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 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 8A 00 00 00 F4 03 04 00 5D 2B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 10 01 00 35 04 06 00 18 38 BB 8C 0B 22 C7 66 D1 76 8B 16 7A 42 [10:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5A 9B 47 00 B8 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 10 01 00 F4 03 04 00 01 D5 15 67 B6 04 01 00 00 88 DC F0 36 06 48 4F A6 [10:22:20]CommunicateWithHost err = 0 [10:22:20]CheckOFDResponse [10:22:20]1017 (14) - 77093643461234 [10:22:20]1041 (16) - 0000000000963346 [10:22:20]1040 (4) - 69748 [10:22:20]1012 (4) - 21.10.2024 04:13 [10:22:20]1206 (1) - 0 [10:22:20]OFD Sender: Remove packet 69748 [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00069748 [10:22:20]NVStorageDeleteData [10:22:20]Write to MH i2c: 01 00 00 D4 2A FE [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 F5 0C 06 [10:22:20]RasterBufferAndPrint [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]written 0, free lines is 3327 [10:22:20]MH_Cut [10:22:20]Write to MH i2c: D1 01 00 DB 2A 01 D7 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 DB 2A 00 D6 [10:22:20]Write to MH i2c: 01 00 00 DC 2A 06 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]OFD Sender: No OFD packet to send [10:22:21]*** Cut start [10:22:21]*** Partial cut [10:22:21]*** CUTSNS_PIN = 1 [10:22:21]*** CUTSNS_PIN = 0 [10:22:21]*** Brake cut motor [10:22:21]Read from MH i2c: 01 [10:22:21]MH_I2C_Read... [10:22:21]*** Stop cut motor [10:22:21]*** Cut end [10:22:21]Read from MH i2c: 01 07 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: 01 07 00 DC 2A 00 00 00 00 00 FF 0F 1B [10:22:21]process_action close_receipt done [10:22:21]requested_data is exist [10:22:21]produce_requested_data [10:22:21]requested_item fm.sn is exist - process it [10:22:21]wFMCommunicate request_size=4 [10:22:21]MH_SAM_APDU [10:22:21]CAPDU: 80 11 00 00 [10:22:21]Write to MH i2c: E2 08 00 DD 2A 80 11 00 00 00 00 00 00 81 [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 DD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [10:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:22:22]wFMCommunicate OK [10:22:22]requested_item fd.num is exist - process it [10:22:22]SAM_PROTO_GetFieldsCounters [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 13 00 00 [10:22:22]Write to MH i2c: E2 08 00 DE 2A 80 13 00 00 00 00 00 00 84 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 62 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 62 00 DE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_GetFieldsCounters done [10:22:22]requested_item shift.num is exist - process it [10:22:22]requested_item shift.opened is exist - process it [10:22:22]req_shift_opened [10:22:22]FM_GetShiftState [10:22:22]SAM_PROTO_GetShiftState [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 13 01 00 [10:22:22]Write to MH i2c: E2 08 00 DF 2A 80 13 01 00 00 00 00 00 86 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0E 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0E 00 DF 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B2 [10:22:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_GetShiftState done [10:22:22]FM_GetShiftState done [10:22:22]req_shift_opened done [10:22:22]requested_item shift.open_date is exist - process it [10:22:22]req_shift_open_date [10:22:22]req_shift_open_date done [10:22:22]produce_requested_data done [10:22:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69748,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:22:22]process_action_free close_receipt [10:22:22]json_value_free [10:22:22]json_value_free done [10:22:22]process_json_proto returns [10:22:22]Send response to host [10:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69748,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:22:22]free response buf [10:22:22]execute_script done [10:22:22]execute_script returns [10:22:22]free content buf [10:22:22]Sock 8.Close socket [10:22:22]Sock 8.Thread stoped [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:46]accept exits with 10 [10:25:46]New connection [10:25:46]New thread 3067313508 created [10:25:46]Thread 3067456868 joined [10:25:46]Waiting for new connection... [10:25:46] Sock 10.Parse request [10:25:46]Sock 10.Check first char [10:25:46]Sock 10.First char is OK [10:25:46]request: POST /json_proto HTTP/1.0 [10:25:46]Method: POST [10:25:46]URL: /json_proto [10:25:46]Method is POST - this is cgi request [10:25:46]url: /json_proto [10:25:46]query_string will be loaded in cgi processing [10:25:46]execute_cgi json_proto POST (null) [10:25:46]execute_cgi path=json_proto method=POST [10:25:46]POST find Content-Length [10:25:46]Host: 172.17.50.3:8080 [10:25:46]Content-Length: 755 [10:25:46]Content-Type: application/json [10:25:46] [10:25:46]POST finish read [10:25:46]Found Content-Length = 755 [10:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885490", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154191", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]execute_script... [10:25: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)2885490", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154191", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]POST & json_proto [10:25:46]process_json_proto [10:25:46]json parsed OK: [10:25:46]protocol is kg_v1.0 [10:25:46]action value=close_receipt [10:25:46]process_action close_receipt [10:25:46]cmd_close_receipt [10:25:46]MH_GetDate [10:25:46]Write to MH i2c: F0 00 00 E0 2A F9 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 E0 2A 00 2D 2C 16 67 6B 98 1E 66 5F [10:25:46]GetLastDocTimeStamp 1729506141 [10:25:46]current date 1729506349 [10:25:46]FM_GetShiftState [10:25:46]SAM_PROTO_GetShiftState [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 01 00 [10:25:46]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B4 [10:25:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]opened in 1729469703 [10:25:46]opened+sec_in_day 1729556103 [10:25:46]quantity*price = 0 [10:25:46]sum+1 = 1 [10:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 139 21.10.2024 10:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30154191 ФМ: 0000000000963346 ФД: 69749 ФПД: 247746582340032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69749&fm=247746582340032&tin=02508201610067®Number=0000000000156251&sum=0 [10:25:47]StoreToDocumentArchive [10:25:47]shift 194 fd 69749 [10:25:47]save to /storage/0194/doc_00069749 [10:25:47]save last doc name /storage/0194/doc_00069749 to /storage/kkm_last_doc_name [10:25:47]save OK [10:25:47]Clear old archive folders... [10:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:47]tlvbuf is 00C41390 [10:25:47]SAM_PROTO_ClearQueue [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 09 00 00 [10:25:47]Write to MH i2c: E2 08 00 EE 2A 80 09 00 00 00 00 00 00 8A [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]SAM_PROTO_ClearQueue done [10:25:47]KKMCreateOFDPacket [10:25:47]OFDProtocolAddRootSTLVToBuf [10:25:47]FM_MakeSignedData [10:25:47]FM_MakeSignedData [10:25:47]SAM_PROTO_SignData [10:25:47]wFMCommunicate request_size=4 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 01 02 [10:25:47]Write to MH i2c: E2 08 00 EF 2A 80 0D 01 02 00 00 00 00 92 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=255 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 10 01 00 35 04 06 00 E1 [10:25:47]Write to MH i2c: E2 02 01 F0 2A 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 10 01 00 35 04 06 00 E1 00 00 8E [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:47]Read from MH i2c: E2 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [10:25:47]RAPDU: 90 00 [10:25:47]wFMCommunicate OK [10:25:47]wFMCommunicate request_size=10 [10:25:47]MH_SAM_APDU [10:25:47]CAPDU: 80 0D 02 02 05 52 FF 08 E1 C0 [10:25:47]Write to MH i2c: E2 0D 00 F1 2A 80 0D 02 02 05 00 52 FF 08 E1 C0 00 00 99 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [10:25:48]RAPDU: 90 00 [10:25:48]wFMCommunicate OK [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 0D 03 02 [10:25:48]Write to MH i2c: E2 08 00 F2 2A 80 0D 03 02 00 00 00 00 97 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0B 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0B 00 F2 2A 00 D5 FC 51 CD 86 ED ED B6 90 00 9D [10:25:48]RAPDU: D5 FC 51 CD 86 ED ED B6 90 00 [10:25:48]wFMCommunicate OK [10:25:48]SAM_PROTO_SignData done [10:25:48]FM_MakeSignedData done [10:25:48]CreateOFDProtocolMessage [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 11 00 00 [10:25:48]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 17 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [10:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:25:48]wFMCommunicate OK [10:25:48]CreateOFDProtocolMessage done [10:25:48]OFDSenderStorePacket 69749 [10:25:48]StoreOFDPacket docnum=69749 [10:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 33 3E 07 01 C9 DA 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 10 01 00 35 04 06 00 E1 52 FF 08 E1 C0 D5 FC 51 CD 86 ED ED B6 [10:25:48]CheckFolder [10:25:48]dirname=/storage/ofd_packets [10:25:48]CheckFolder done [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00069749 [10:25:48]NVStorageSaveData ofd_packets/00069749 [10:25:48]File name is /storage/ofd_packets/00069749 [10:25:48]Write 301 bytes [10:25:48]NVStorageSaveData done [10:25:48]OFDSenderStorePacket done [10:25:48]KKMCreateOFDPacket done [10:25:48]NVStorageSaveData kkm_last_timestamp [10:25:48]File name is /storage/kkm_last_timestamp [10:25:48]Write 4 bytes [10:25:48]NVStorageSaveData done [10:25:48]ExternCall_PrintAddStr [10:25:48]wPrintStart [10:25:48]Write to MH i2c: 01 00 00 F4 2A 1E [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [10:25:48]RasterBufferAndPrint [10:25:48]line Счет N : (1)2885490 [10:25:48]line ИНН: 02508201610067 [10:25:48]line Контрольно-Кассовый Чек [10:25:48]line ПРОДАЖА [10:25:48]line ТРК (МРК, ГНК) : 42 [10:25:48]line Товар: 2710124130 [10:25:48]line Аи-92-К-5 [10:25:48]line 20.000 * 0.00 [10:25:48]line = 0.00 [10:25:48]line НДС 12% НСП 1% [10:25:48]line > о реализуемом товаре [10:25:48]line ИТОГО: 0.00 [10:25:48]line НСП 1% : 0.00 [10:25:48]line НДС 12% : 0.00 [10:25:48]line Наличными: 0.00 [10:25:48]line Безнал.: 0.00 [10:25:48]line Место: АЗС № 85 "Партнер Нефть" [10:25:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:25:48]line СНО: Общий режим [10:25:48]line Чек 139 21.10.2024 10:25 [10:25:48]line Смена: 194 ФФД: 1.0 [10:25:48]line ЗНМ: 0300000167 [10:25:48]line РНМ: 0000000000156251 [10:25:48]line Версия ККМ: v1.0 [10:25:48]line Талоны: ТК ГПНА Online [10:25:48]line 30154191 [10:25:48]line ФМ: 0000000000963346 [10:25:48]line ФД: 69749 [10:25:48]line ФПД: 247746582340032 [10:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69749&fm=247746582340032&tin=02508201610067®Number=0000000000156251&sum=0 [10:25:48]OFD Sender: Processing packet 69749 [packets to send 18, broken 17] [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00069749 [10:25:48]OFD Sender: To server: pG, [10:25:48]CommunicateWithHost lk.salyk.kg:30040 [10:25:48]ConnectInit lk.salyk.kg [10:25:48]written 0, free lines is 4095 [10:25:48]Connected sock=9 [10:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 33 3E 07 01 C9 DA 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2D 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 10 01 00 35 04 06 00 E1 52 FF 08 E1 C0 D5 FC 51 CD 86 ED ED B6 [10:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 42 47 00 81 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 10 01 00 F4 03 04 00 D1 D5 15 67 B6 04 01 00 00 FA 10 22 A4 FC 07 44 AF [10:25:48]CommunicateWithHost err = 0 [10:25:48]CheckOFDResponse [10:25:48]1017 (14) - 77093643461234 [10:25:48]1041 (16) - 0000000000963346 [10:25:48]1040 (4) - 69749 [10:25:48]1012 (4) - 21.10.2024 04:17 [10:25:48]1206 (1) - 0 [10:25:48]OFD Sender: Remove packet 69749 [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00069749 [10:25:48]NVStorageDeleteData [10:25:48]Write to MH i2c: 01 00 00 1E 2B 49 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 1E 2B 00 00 00 00 00 01 0D 5E [10:25:48]RasterBufferAndPrint [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]line [10:25:48]written 0, free lines is 3339 [10:25:48]MH_Cut [10:25:48]Write to MH i2c: D1 01 00 25 2B 01 22 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: D1 01 00 25 2B 00 21 [10:25:48]Write to MH i2c: 01 00 00 26 2B 51 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:49]OFD Sender: No OFD packet to send [10:25:49]*** Cut start [10:25:49]*** Partial cut [10:25:49]*** CUTSNS_PIN = 1 [10:25:49]*** CUTSNS_PIN = 0 [10:25:49]*** Brake cut motor [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]*** Stop cut motor [10:25:50]*** Cut end [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 26 2B 00 00 00 00 00 FF 0F 66 [10:25:50]process_action close_receipt done [10:25:50]requested_data is exist [10:25:50]produce_requested_data [10:25:50]requested_item fm.sn is exist - process it [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 11 00 00 [10:25:50]Write to MH i2c: E2 08 00 27 2B 80 11 00 00 00 00 00 00 CC [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 27 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [10:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:25:50]wFMCommunicate OK [10:25:50]requested_item fd.num is exist - process it [10:25:50]SAM_PROTO_GetFieldsCounters [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 00 00 [10:25:50]Write to MH i2c: E2 08 00 28 2B 80 13 00 00 00 00 00 00 CF [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 28 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetFieldsCounters done [10:25:50]requested_item shift.num is exist - process it [10:25:50]requested_item shift.opened is exist - process it [10:25:50]req_shift_opened [10:25:50]FM_GetShiftState [10:25:50]SAM_PROTO_GetShiftState [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 01 00 [10:25:50]Write to MH i2c: E2 08 00 29 2B 80 13 01 00 00 00 00 00 D1 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 29 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FD [10:25:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetShiftState done [10:25:50]FM_GetShiftState done [10:25:50]req_shift_opened done [10:25:50]requested_item shift.open_date is exist - process it [10:25:50]req_shift_open_date [10:25:50]req_shift_open_date done [10:25:50]produce_requested_data done [10:25:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69749,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:25:50]process_action_free close_receipt [10:25:50]json_value_free [10:25:50]json_value_free done [10:25:50]process_json_proto returns [10:25:50]Send response to host [10:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69749,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:25:50]free response buf [10:25:50]execute_script done [10:25:50]execute_script returns [10:25:50]free content buf [10:25:50]Sock 10.Close socket [10:25:50]Sock 10.Thread stoped [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:40]accept exits with 8 [10:26:40]New connection [10:26:40]New thread 3067456868 created [10:26:40]Thread 3067313508 joined [10:26:40]Waiting for new connection... [10:26:40] Sock 8.Parse request [10:26:40]Sock 8.Check first char [10:26:40]Sock 8.First char is OK [10:26:40]request: POST /json_proto HTTP/1.0 [10:26:40]Method: POST [10:26:40]URL: /json_proto [10:26:40]Method is POST - this is cgi request [10:26:40]url: /json_proto [10:26:40]query_string will be loaded in cgi processing [10:26:40]execute_cgi json_proto POST (null) [10:26:40]execute_cgi path=json_proto method=POST [10:26:40]POST find Content-Length [10:26:40]Host: 172.17.50.3:8080 [10:26:40]Content-Length: 683 [10:26:40]Content-Type: application/json [10:26:40] [10:26:40]POST finish read [10:26:40]Found Content-Length = 683 [10:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:26:40]execute_script... [10:26: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)2885491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [10:26:40]POST & json_proto [10:26:40]process_json_proto [10:26:40]json parsed OK: [10:26:40]protocol is kg_v1.0 [10:26:40]action value=close_receipt [10:26:40]process_action close_receipt [10:26:40]cmd_close_receipt [10:26:40]MH_GetDate [10:26:40]Write to MH i2c: F0 00 00 2A 2B 44 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 09 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 09 00 2A 2B 00 64 2C 16 67 6B 98 1E 66 E1 [10:26:40]GetLastDocTimeStamp 1729506349 [10:26:40]current date 1729506404 [10:26:40]FM_GetShiftState [10:26:40]SAM_PROTO_GetShiftState [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 13 01 00 [10:26:40]Write to MH i2c: E2 08 00 2B 2B 80 13 01 00 00 00 00 00 D3 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 2B 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FF [10:26:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_GetShiftState done [10:26:40]FM_GetShiftState done [10:26:40]opened in 1729469703 [10:26:40]opened+sec_in_day 1729556103 [10:26:40]quantity*price = 100021 [10:26:40]sum+1 = 100023 [10:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 140 21.10.2024 10:26 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69750 ФПД: 62905582074630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69750&fm=62905582074630&tin=02508201610067®Number=0000000000156251&sum=100000 [10:26:41]StoreToDocumentArchive [10:26:41]shift 194 fd 69750 [10:26:41]save to /storage/0194/doc_00069750 [10:26:41]save last doc name /storage/0194/doc_00069750 to /storage/kkm_last_doc_name [10:26:41]save OK [10:26:41]Clear old archive folders... [10:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:41]tlvbuf is 00CAF260 [10:26:41]SAM_PROTO_ClearQueue [10:26:41]wFMCommunicate request_size=4 [10:26:41]MH_SAM_APDU [10:26:41]CAPDU: 80 09 00 00 [10:26:41]Write to MH i2c: E2 08 00 38 2B 80 09 00 00 00 00 00 00 D5 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 38 2B 00 90 00 D7 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]SAM_PROTO_ClearQueue done [10:26:42]KKMCreateOFDPacket [10:26:42]OFDProtocolAddRootSTLVToBuf [10:26:42]FM_MakeSignedData [10:26:42]FM_MakeSignedData [10:26:42]SAM_PROTO_SignData [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 01 02 [10:26:42]Write to MH i2c: E2 08 00 39 2B 80 0D 01 02 00 00 00 00 DD [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=255 [10:26:42]MH_SAM_APDU [10:26: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 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 8C 00 00 00 F4 03 04 00 64 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 10 01 00 35 04 06 00 39 [10:26:42]Write to MH i2c: E2 02 01 3A 2B 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 8C 00 00 00 F4 03 04 00 64 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 10 01 00 35 04 06 00 39 00 00 9E [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=10 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 02 02 05 36 58 DF BB 06 [10:26:42]Write to MH i2c: E2 0D 00 3B 2B 80 0D 02 02 05 00 36 58 DF BB 06 00 00 18 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 03 02 [10:26:42]Write to MH i2c: E2 08 00 3C 2B 80 0D 03 02 00 00 00 00 E2 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0B 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0B 00 3C 2B 00 9B 81 E8 03 EF B0 D9 F5 90 00 57 [10:26:42]RAPDU: 9B 81 E8 03 EF B0 D9 F5 90 00 [10:26:42]wFMCommunicate OK [10:26:42]SAM_PROTO_SignData done [10:26:42]FM_MakeSignedData done [10:26:42]CreateOFDProtocolMessage [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 11 00 00 [10:26:42]Write to MH i2c: E2 08 00 3D 2B 80 11 00 00 00 00 00 00 E2 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 3D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [10:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:42]wFMCommunicate OK [10:26:42]CreateOFDProtocolMessage done [10:26:42]OFDSenderStorePacket 69750 [10:26:42]StoreOFDPacket docnum=69750 [10:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 DC 07 01 42 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 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 8C 00 00 00 F4 03 04 00 64 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 10 01 00 35 04 06 00 39 36 58 DF BB 06 9B 81 E8 03 EF B0 D9 F5 [10:26:42]CheckFolder [10:26:42]dirname=/storage/ofd_packets [10:26:42]CheckFolder done [10:26:42]ProducePacketName [10:26:42]name=ofd_packets/00069750 [10:26:42]NVStorageSaveData ofd_packets/00069750 [10:26:42]File name is /storage/ofd_packets/00069750 [10:26:42]Write 301 bytes [10:26:42]NVStorageSaveData done [10:26:42]OFDSenderStorePacket done [10:26:42]KKMCreateOFDPacket done [10:26:42]NVStorageSaveData kkm_last_timestamp [10:26:42]File name is /storage/kkm_last_timestamp [10:26:42]Write 4 bytes [10:26:42]NVStorageSaveData done [10:26:42]ExternCall_PrintAddStr [10:26:42]wPrintStart [10:26:42]Write to MH i2c: 01 00 00 3E 2B 69 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 07 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 07 00 3E 2B 00 00 00 00 00 FF 0F 7E [10:26:42]RasterBufferAndPrint [10:26:42]line Счет N : (1)2885491 [10:26:42]line ИНН: 02508201610067 [10:26:42]line Контрольно-Кассовый Чек [10:26:42]line ПРОДАЖА [10:26:42]line ТРК (МРК, ГНК) : 23 [10:26:42]line Товар: 2710124500 [10:26:42]line Аи-95-К-5 [10:26:42]line 13.480 * 74.20 [10:26:42]line = 1000.22 [10:26:42]line НДС 12% НСП 1% [10:26:42]line > о реализуемом товаре [10:26:42]line ОКРУГЛЕНИЕ: -0.22 [10:26:42]line ИТОГО: 1000.00 [10:26:42]line Внесено: 1000.00 [10:26:42]line СДАЧА: 0.00 [10:26:42]line НСП 1% : 8.85 [10:26:42]line НДС 12% : 106.22 [10:26:42]line Наличными: 1000.00 [10:26:42]line Безнал.: 0.00 [10:26:42]line Место: АЗС № 85 "Партнер Нефть" [10:26:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:26:42]line СНО: Общий режим [10:26:42]line Чек 140 21.10.2024 10:26 [10:26:42]line Смена: 194 ФФД: 1.0 [10:26:42]line ЗНМ: 0300000167 [10:26:42]line РНМ: 0000000000156251 [10:26:42]line Версия ККМ: v1.0 [10:26:42]line ФМ: 0000000000963346 [10:26:42]line ФД: 69750 [10:26:42]line ФПД: 62905582074630 [10:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102644&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69750&fm=62905582074630&tin=02508201610067®Number=0000000000156251&sum=100000 [10:26:42]OFD Sender: Processing packet 69750 [packets to send 18, broken 17] [10:26:42]ProducePacketName [10:26:42]name=ofd_packets/00069750 [10:26:42]OFD Sender: To server: pG, [10:26:42]CommunicateWithHost lk.salyk.kg:30040 [10:26:42]ConnectInit lk.salyk.kg [10:26:42]written 0, free lines is 4095 [10:26:42]Connected sock=10 [10:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 DC 07 01 42 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 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 8C 00 00 00 F4 03 04 00 64 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 10 01 00 35 04 06 00 39 36 58 DF BB 06 9B 81 E8 03 EF B0 D9 F5 [10:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CC 2C 47 00 9F 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 10 01 00 F4 03 04 00 08 D6 15 67 B6 04 01 00 00 A2 91 3D FD 24 E3 27 9B [10:26:43]CommunicateWithHost err = 0 [10:26:43]CheckOFDResponse [10:26:43]1017 (14) - 77093643461234 [10:26:43]1041 (16) - 0000000000963346 [10:26:43]1040 (4) - 69750 [10:26:43]1012 (4) - 21.10.2024 04:18 [10:26:43]1206 (1) - 0 [10:26:43]OFD Sender: Remove packet 69750 [10:26:43]ProducePacketName [10:26:43]name=ofd_packets/00069750 [10:26:43]NVStorageDeleteData [10:26:43]Write to MH i2c: 01 00 00 69 2B 94 [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 07 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 F8 0C 9F [10:26:43]RasterBufferAndPrint [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]written 0, free lines is 3326 [10:26:43]MH_Cut [10:26:43]Write to MH i2c: D1 01 00 70 2B 01 6D [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 01 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 01 00 70 2B 00 6C [10:26:43]Write to MH i2c: 01 00 00 71 2B 9C [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]OFD Sender: No OFD packet to send [10:26:43]*** Cut start [10:26:43]*** Partial cut [10:26:43]*** CUTSNS_PIN = 1 [10:26:44]*** CUTSNS_PIN = 0 [10:26:44]*** Brake cut motor [10:26:44]Read from MH i2c: 01 [10:26:44]MH_I2C_Read... [10:26:44]*** Stop cut motor [10:26:44]*** Cut end [10:26:44]Read from MH i2c: 01 07 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 71 2B 00 00 00 00 00 FF 0F B1 [10:26:44]process_action close_receipt done [10:26:44]requested_data is exist [10:26:44]produce_requested_data [10:26:44]requested_item fm.sn is exist - process it [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 11 00 00 [10:26:44]Write to MH i2c: E2 08 00 72 2B 80 11 00 00 00 00 00 00 17 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 72 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [10:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:44]wFMCommunicate OK [10:26:44]requested_item fd.num is exist - process it [10:26:44]SAM_PROTO_GetFieldsCounters [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 13 00 00 [10:26:44]Write to MH i2c: E2 08 00 73 2B 80 13 00 00 00 00 00 00 1A [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 62 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 62 00 73 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_GetFieldsCounters done [10:26:44]requested_item shift.num is exist - process it [10:26:44]requested_item shift.opened is exist - process it [10:26:44]req_shift_opened [10:26:44]FM_GetShiftState [10:26:44]SAM_PROTO_GetShiftState [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 13 01 00 [10:26:44]Write to MH i2c: E2 08 00 74 2B 80 13 01 00 00 00 00 00 1C [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 74 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 48 [10:26:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_GetShiftState done [10:26:44]FM_GetShiftState done [10:26:44]req_shift_opened done [10:26:44]requested_item shift.open_date is exist - process it [10:26:44]req_shift_open_date [10:26:44]req_shift_open_date done [10:26:44]produce_requested_data done [10:26:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69750,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:26:44]process_action_free close_receipt [10:26:44]json_value_free [10:26:44]json_value_free done [10:26:44]process_json_proto returns [10:26:44]Send response to host [10:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69750,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:26:44]free response buf [10:26:44]execute_script done [10:26:44]execute_script returns [10:26:44]free content buf [10:26:44]Sock 8.Close socket [10:26:44]Sock 8.Thread stoped [10:26:45]accept exits with 9 [10:26:45]New connection [10:26:45]New thread 3067313508 created [10:26:45]Thread 3067456868 joined [10:26:45]Waiting for new connection... [10:26:45] Sock 9.Parse request [10:26:45]Sock 9.Check first char [10:26:45]Sock 9.First char is OK [10:26:45]request: POST /json_proto HTTP/1.0 [10:26:45]Method: POST [10:26:45]URL: /json_proto [10:26:45]Method is POST - this is cgi request [10:26:45]url: /json_proto [10:26:45]query_string will be loaded in cgi processing [10:26:45]execute_cgi json_proto POST (null) [10:26:45]execute_cgi path=json_proto method=POST [10:26:45]POST find Content-Length [10:26:45]Host: 172.17.50.3:8080 [10:26:45]Content-Length: 773 [10:26:45]Content-Type: application/json [10:26:45] [10:26:45]POST finish read [10:26:45]Found Content-Length = 773 [10:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 66.290, "sum" : 2578.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2578.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:45]execute_script... [10:26: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)2885489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 66.290, "sum" : 2578.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2578.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:45]POST & json_proto [10:26:45]process_json_proto [10:26:45]json parsed OK: [10:26:45]protocol is kg_v1.0 [10:26:45]action value=close_receipt [10:26:45]process_action close_receipt [10:26:45]cmd_close_receipt [10:26:45]MH_GetDate [10:26:45]Write to MH i2c: F0 00 00 75 2B 8F [10:26:45]Write i2c OK [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: F0 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: F0 09 00 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: F0 09 00 75 2B 00 68 2C 16 67 6B 98 1E 66 30 [10:26:45]GetLastDocTimeStamp 1729506404 [10:26:45]current date 1729506408 [10:26:45]FM_GetShiftState [10:26:45]SAM_PROTO_GetShiftState [10:26:45]wFMCommunicate request_size=4 [10:26:45]MH_SAM_APDU [10:26:45]CAPDU: 80 13 01 00 [10:26:45]Write to MH i2c: E2 08 00 76 2B 80 13 01 00 00 00 00 00 1E [10:26:45]Write i2c OK [10:26:45]MH_I2C_Read... [10:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:45]Read from MH i2c: E2 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: E2 0E 00 [10:26:45]MH_I2C_Read... [10:26:45]Read from MH i2c: E2 0E 00 76 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4A [10:26:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:26:45]wFMCommunicate OK [10:26:45]SAM_PROTO_GetShiftState done [10:26:45]FM_GetShiftState done [10:26:45]opened in 1729469703 [10:26:45]opened+sec_in_day 1729556103 [10:26:45]quantity*price = 257868 [10:26:45]sum+1 = 257869 [10:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2578.68 НСП 1% : 22.82 НДС 12% : 273.84 Наличными: 0.00 Безнал.: 2578.68 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 141 21.10.2024 10:26 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69751 ФПД: 158313335856538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69751&fm=158313335856538&tin=02508201610067®Number=0000000000156251&sum=257868 [10:26:46]StoreToDocumentArchive [10:26:46]shift 194 fd 69751 [10:26:46]save to /storage/0194/doc_00069751 [10:26:46]save last doc name /storage/0194/doc_00069751 to /storage/kkm_last_doc_name [10:26:46]save OK [10:26:46]Clear old archive folders... [10:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:26:46]tlvbuf is 00D34020 [10:26:46]SAM_PROTO_ClearQueue [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 09 00 00 [10:26:46]Write to MH i2c: E2 08 00 83 2B 80 09 00 00 00 00 00 00 20 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 83 2B 00 90 00 22 [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_ClearQueue done [10:26:46]KKMCreateOFDPacket [10:26:46]OFDProtocolAddRootSTLVToBuf [10:26:46]FM_MakeSignedData [10:26:46]FM_MakeSignedData [10:26:46]SAM_PROTO_SignData [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 0D 01 02 [10:26:46]Write to MH i2c: E2 08 00 84 2B 80 0D 01 02 00 00 00 00 28 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]wFMCommunicate request_size=255 [10:26:46]MH_SAM_APDU [10:26:46]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 33 FF 03 08 00 03 F2 02 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4C EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C EF 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 68 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 10 01 00 35 04 06 00 8F FC [10:26:46]Write to MH i2c: E2 02 01 85 2B 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 33 FF 03 08 00 03 F2 02 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4C EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C EF 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 68 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 10 01 00 35 04 06 00 8F FC 00 00 91 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:47]Read from MH i2c: E2 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 03 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 03 00 85 2B 00 90 00 24 [10:26:47]RAPDU: 90 00 [10:26:47]wFMCommunicate OK [10:26:47]wFMCommunicate request_size=9 [10:26:47]MH_SAM_APDU [10:26:47]CAPDU: 80 0D 02 02 04 32 25 9D 9A [10:26:47]Write to MH i2c: E2 0C 00 86 2B 80 0D 02 02 04 00 32 25 9D 9A 00 00 C1 [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:47]Read from MH i2c: E2 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 03 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [10:26:47]RAPDU: 90 00 [10:26:47]wFMCommunicate OK [10:26:47]wFMCommunicate request_size=4 [10:26:47]MH_SAM_APDU [10:26:47]CAPDU: 80 0D 03 02 [10:26:47]Write to MH i2c: E2 08 00 87 2B 80 0D 03 02 00 00 00 00 2D [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:47]Read from MH i2c: E2 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 0B 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 0B 00 87 2B 00 BD FD CE 74 21 9E C6 C3 90 00 72 [10:26:47]RAPDU: BD FD CE 74 21 9E C6 C3 90 00 [10:26:47]wFMCommunicate OK [10:26:47]SAM_PROTO_SignData done [10:26:47]FM_MakeSignedData done [10:26:47]CreateOFDProtocolMessage [10:26:47]wFMCommunicate request_size=4 [10:26:47]MH_SAM_APDU [10:26:47]CAPDU: 80 11 00 00 [10:26:47]Write to MH i2c: E2 08 00 88 2B 80 11 00 00 00 00 00 00 2D [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:47]Read from MH i2c: E2 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 17 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 17 00 88 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [10:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:47]wFMCommunicate OK [10:26:47]CreateOFDProtocolMessage done [10:26:47]OFDSenderStorePacket 69751 [10:26:47]StoreOFDPacket docnum=69751 [10:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 43 34 06 01 D7 24 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 33 FF 03 08 00 03 F2 02 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4C EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C EF 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 68 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 10 01 00 35 04 06 00 8F FC 32 25 9D 9A BD FD CE 74 21 9E C6 C3 [10:26:47]CheckFolder [10:26:47]dirname=/storage/ofd_packets [10:26:47]CheckFolder done [10:26:47]ProducePacketName [10:26:47]name=ofd_packets/00069751 [10:26:47]NVStorageSaveData ofd_packets/00069751 [10:26:47]File name is /storage/ofd_packets/00069751 [10:26:47]Write 300 bytes [10:26:47]NVStorageSaveData done [10:26:47]OFDSenderStorePacket done [10:26:47]KKMCreateOFDPacket done [10:26:47]NVStorageSaveData kkm_last_timestamp [10:26:47]File name is /storage/kkm_last_timestamp [10:26:47]Write 4 bytes [10:26:47]NVStorageSaveData done [10:26:47]ExternCall_PrintAddStr [10:26:47]wPrintStart [10:26:47]Write to MH i2c: 01 00 00 89 2B B4 [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 89 2B 00 00 00 00 00 FF 0F C9 [10:26:47]RasterBufferAndPrint [10:26:47]line Счет N : (1)2885489 [10:26:47]line ИНН: 02508201610067 [10:26:47]line Контрольно-Кассовый Чек [10:26:47]line ПРОДАЖА [10:26:47]line ТРК (МРК, ГНК) : 71 [10:26:47]line Товар: 2711129700 [10:26:47]line ГАЗ-К-3 [10:26:47]line 66.290 * 38.90 [10:26:47]line = 2578.68 [10:26:47]line НДС 12% НСП 1% [10:26:47]line > о реализуемом товаре [10:26:47]line ИТОГО: 2578.68 [10:26:47]line НСП 1% : 22.82 [10:26:47]line НДС 12% : 273.84 [10:26:47]line Наличными: 0.00 [10:26:47]line Безнал.: 2578.68 [10:26:47]line Место: АЗС № 85 "Партнер Нефть" [10:26:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:26:47]line СНО: Общий режим [10:26:47]line Чек 141 21.10.2024 10:26 [10:26:47]line Смена: 194 ФФД: 1.0 [10:26:47]line ЗНМ: 0300000167 [10:26:47]line РНМ: 0000000000156251 [10:26:47]line Версия ККМ: v1.0 [10:26:47]line Платежная система: Mbank [10:26:47]line ФМ: 0000000000963346 [10:26:47]line ФД: 69751 [10:26:47]line ФПД: 158313335856538 [10:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102648&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69751&fm=158313335856538&tin=02508201610067®Number=0000000000156251&sum=257868 [10:26:47]OFD Sender: Processing packet 69751 [packets to send 18, broken 17] [10:26:47]ProducePacketName [10:26:47]name=ofd_packets/00069751 [10:26:47]OFD Sender: To server: pG, [10:26:47]CommunicateWithHost lk.salyk.kg:30040 [10:26:47]ConnectInit lk.salyk.kg [10:26:47]written 0, free lines is 4095 [10:26:47]Connected sock=10 [10:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 43 34 06 01 D7 24 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 33 FF 03 08 00 03 F2 02 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4C EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 6A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C EF 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 68 2C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 10 01 00 35 04 06 00 8F FC 32 25 9D 9A BD FD CE 74 21 9E C6 C3 [10:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B3 AC 47 00 86 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 10 01 00 F4 03 04 00 0D D6 15 67 B6 04 01 00 00 52 8C D7 BE D9 41 F7 5C [10:26:48]CommunicateWithHost err = 0 [10:26:48]CheckOFDResponse [10:26:48]1017 (14) - 77093643461234 [10:26:48]1041 (16) - 0000000000963346 [10:26:48]1040 (4) - 69751 [10:26:48]1012 (4) - 21.10.2024 04:18 [10:26:48]1206 (1) - 0 [10:26:48]OFD Sender: Remove packet 69751 [10:26:48]ProducePacketName [10:26:48]name=ofd_packets/00069751 [10:26:48]NVStorageDeleteData [10:26:48]Write to MH i2c: 01 00 00 B2 2B DD [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 07 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 07 00 B2 2B 00 00 00 00 00 2B 0D 1C [10:26:48]RasterBufferAndPrint [10:26:48]line [10:26:48]line [10:26:48]line [10:26:48]line [10:26:48]line [10:26:48]written 0, free lines is 3384 [10:26:48]MH_Cut [10:26:48]Write to MH i2c: D1 01 00 B9 2B 01 B6 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: D1 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: D1 01 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: D1 01 00 B9 2B 00 B5 [10:26:48]Write to MH i2c: 01 00 00 BA 2B E5 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]OFD Sender: No OFD packet to send [10:26:48]*** Cut start [10:26:48]*** Partial cut [10:26:48]*** CUTSNS_PIN = 1 [10:26:48]*** CUTSNS_PIN = 0 [10:26:49]*** Brake cut motor [10:26:49]Read from MH i2c: 01 [10:26:49]MH_I2C_Read... [10:26:49]*** Stop cut motor [10:26:49]*** Cut end [10:26:49]Read from MH i2c: 01 07 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: 01 07 00 BA 2B 00 00 00 00 00 FF 0F FA [10:26:49]process_action close_receipt done [10:26:49]requested_data is exist [10:26:49]produce_requested_data [10:26:49]requested_item fm.sn is exist - process it [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 11 00 00 [10:26:49]Write to MH i2c: E2 08 00 BB 2B 80 11 00 00 00 00 00 00 60 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 17 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 17 00 BB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [10:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:49]wFMCommunicate OK [10:26:49]requested_item fd.num is exist - process it [10:26:49]SAM_PROTO_GetFieldsCounters [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 00 00 [10:26:49]Write to MH i2c: E2 08 00 BC 2B 80 13 00 00 00 00 00 00 63 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 62 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 62 00 BC 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetFieldsCounters done [10:26:49]requested_item shift.num is exist - process it [10:26:49]requested_item shift.opened is exist - process it [10:26:49]req_shift_opened [10:26:49]FM_GetShiftState [10:26:49]SAM_PROTO_GetShiftState [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 01 00 [10:26:49]Write to MH i2c: E2 08 00 BD 2B 80 13 01 00 00 00 00 00 65 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 BD 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 91 [10:26:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetShiftState done [10:26:49]FM_GetShiftState done [10:26:49]req_shift_opened done [10:26:49]requested_item shift.open_date is exist - process it [10:26:49]req_shift_open_date [10:26:49]req_shift_open_date done [10:26:49]produce_requested_data done [10:26:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69751,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:26:49]process_action_free close_receipt [10:26:49]json_value_free [10:26:49]json_value_free done [10:26:49]process_json_proto returns [10:26:49]Send response to host [10:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69751,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:26:49]free response buf [10:26:49]execute_script done [10:26:49]execute_script returns [10:26:49]free content buf [10:26:49]Sock 9.Close socket [10:26:49]Sock 9.Thread stoped [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:11]accept exits with 8 [10:30:11]New connection [10:30:11]New thread 3067456868 created [10:30:11]Thread 3067313508 joined [10:30:11]Waiting for new connection... [10:30:11] Sock 8.Parse request [10:30:11]Sock 8.Check first char [10:30:11]Sock 8.First char is OK [10:30:11]request: POST /json_proto HTTP/1.0 [10:30:11]Method: POST [10:30:11]URL: /json_proto [10:30:11]Method is POST - this is cgi request [10:30:11]url: /json_proto [10:30:11]query_string will be loaded in cgi processing [10:30:11]execute_cgi json_proto POST (null) [10:30:11]execute_cgi path=json_proto method=POST [10:30:11]POST find Content-Length [10:30:11]Host: 172.17.50.3:8080 [10:30:11]Content-Length: 675 [10:30:11]Content-Type: application/json [10:30:11] [10:30:11]POST finish read [10:30:11]Found Content-Length = 675 [10:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:11]execute_script... [10:30:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:11]POST & json_proto [10:30:11]process_json_proto [10:30:11]json parsed OK: [10:30:11]protocol is kg_v1.0 [10:30:11]action value=close_receipt [10:30:11]process_action close_receipt [10:30:11]cmd_close_receipt [10:30:11]MH_GetDate [10:30:11]Write to MH i2c: F0 00 00 BE 2B D8 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 09 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 09 00 BE 2B 00 36 2D 16 67 6B 98 1E 66 48 [10:30:11]GetLastDocTimeStamp 1729506408 [10:30:11]current date 1729506614 [10:30:11]FM_GetShiftState [10:30:11]SAM_PROTO_GetShiftState [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 13 01 00 [10:30:11]Write to MH i2c: E2 08 00 BF 2B 80 13 01 00 00 00 00 00 67 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 BF 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 93 [10:30:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:30:11]wFMCommunicate OK [10:30:11]SAM_PROTO_GetShiftState done [10:30:11]FM_GetShiftState done [10:30:11]opened in 1729469703 [10:30:11]opened+sec_in_day 1729556103 [10:30:11]quantity*price = 50063 [10:30:11]sum+1 = 50064 [10:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 142 21.10.2024 10:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69752 ФПД: 262087455848662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103014&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69752&fm=262087455848662&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:12]StoreToDocumentArchive [10:30:12]shift 194 fd 69752 [10:30:12]save to /storage/0194/doc_00069752 [10:30:12]save last doc name /storage/0194/doc_00069752 to /storage/kkm_last_doc_name [10:30:12]save OK [10:30:12]Clear old archive folders... [10:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:12]tlvbuf is 00C92A60 [10:30:12]SAM_PROTO_ClearQueue [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 09 00 00 [10:30:12]Write to MH i2c: E2 08 00 CC 2B 80 09 00 00 00 00 00 00 69 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_ClearQueue done [10:30:12]KKMCreateOFDPacket [10:30:12]OFDProtocolAddRootSTLVToBuf [10:30:12]FM_MakeSignedData [10:30:12]FM_MakeSignedData [10:30:12]SAM_PROTO_SignData [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 01 02 [10:30:12]Write to MH i2c: E2 08 00 CD 2B 80 0D 01 02 00 00 00 00 71 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 CD 2B 00 90 00 6C [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=255 [10:30:12]MH_SAM_APDU [10:30:12]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 8E 00 00 00 F4 03 04 00 36 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 10 01 00 35 04 06 00 EE 5D FD B4 [10:30:12]Write to MH i2c: E2 02 01 CE 2B 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 8E 00 00 00 F4 03 04 00 36 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 10 01 00 35 04 06 00 EE 5D FD B4 00 00 2D [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=7 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 02 02 02 B8 D6 [10:30:12]Write to MH i2c: E2 0A 00 CF 2B 80 0D 02 02 02 00 B8 D6 00 00 06 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 03 02 [10:30:12]Write to MH i2c: E2 08 00 D0 2B 80 0D 03 02 00 00 00 00 76 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0B 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0B 00 D0 2B 00 28 B1 07 3D B0 01 DC 38 90 00 59 [10:30:12]RAPDU: 28 B1 07 3D B0 01 DC 38 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_SignData done [10:30:12]FM_MakeSignedData done [10:30:12]CreateOFDProtocolMessage [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 11 00 00 [10:30:12]Write to MH i2c: E2 08 00 D1 2B 80 11 00 00 00 00 00 00 76 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 D1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [10:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:12]wFMCommunicate OK [10:30:12]CreateOFDProtocolMessage done [10:30:12]OFDSenderStorePacket 69752 [10:30:12]StoreOFDPacket docnum=69752 [10:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 C3 07 04 01 E6 FC 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 8E 00 00 00 F4 03 04 00 36 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 10 01 00 35 04 06 00 EE 5D FD B4 B8 D6 28 B1 07 3D B0 01 DC 38 [10:30:12]CheckFolder [10:30:12]dirname=/storage/ofd_packets [10:30:12]CheckFolder done [10:30:12]ProducePacketName [10:30:12]name=ofd_packets/00069752 [10:30:12]NVStorageSaveData ofd_packets/00069752 [10:30:12]File name is /storage/ofd_packets/00069752 [10:30:12]Write 298 bytes [10:30:12]NVStorageSaveData done [10:30:12]OFDSenderStorePacket done [10:30:12]KKMCreateOFDPacket done [10:30:12]NVStorageSaveData kkm_last_timestamp [10:30:12]File name is /storage/kkm_last_timestamp [10:30:12]Write 4 bytes [10:30:12]NVStorageSaveData done [10:30:12]ExternCall_PrintAddStr [10:30:12]wPrintStart [10:30:12]Write to MH i2c: 01 00 00 D2 2B FD [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 D2 2B 00 00 00 00 00 FF 0F 12 [10:30:12]RasterBufferAndPrint [10:30:12]line Счет N : (1)2885493 [10:30:12]line ИНН: 02508201610067 [10:30:12]line Контрольно-Кассовый Чек [10:30:12]line ПРОДАЖА [10:30:12]line ТРК (МРК, ГНК) : 61 [10:30:12]line Товар: 2710194210 [10:30:12]line ДТ-К-5 [10:30:12]line 6.570 * 76.20 [10:30:12]line = 500.63 [10:30:12]line НДС 12% НСП 1% [10:30:12]line > о реализуемом товаре [10:30:12]line ОКРУГЛЕНИЕ: -0.63 [10:30:12]line ИТОГО: 500.00 [10:30:12]line Внесено: 500.00 [10:30:12]line СДАЧА: 0.00 [10:30:12]line НСП 1% : 4.43 [10:30:12]line НДС 12% : 53.16 [10:30:12]line Наличными: 500.00 [10:30:12]line Безнал.: 0.00 [10:30:12]line Место: АЗС № 85 "Партнер Нефть" [10:30:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:30:12]line СНО: Общий режим [10:30:12]line Чек 142 21.10.2024 10:30 [10:30:12]line Смена: 194 ФФД: 1.0 [10:30:12]line ЗНМ: 0300000167 [10:30:12]line РНМ: 0000000000156251 [10:30:12]line Версия ККМ: v1.0 [10:30:12]line ФМ: 0000000000963346 [10:30:12]line ФД: 69752 [10:30:12]line ФПД: 262087455848662 [10:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103014&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69752&fm=262087455848662&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:13]written 0, free lines is 4095 [10:30:13]OFD Sender: Processing packet 69752 [packets to send 18, broken 17] [10:30:13]ProducePacketName [10:30:13]name=ofd_packets/00069752 [10:30:13]OFD Sender: To server: pG, [10:30:13]CommunicateWithHost lk.salyk.kg:30040 [10:30:13]ConnectInit lk.salyk.kg [10:30:13]Connected sock=10 [10:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 C3 07 04 01 E6 FC 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 8E 00 00 00 F4 03 04 00 36 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 10 01 00 35 04 06 00 EE 5D FD B4 B8 D6 28 B1 07 3D B0 01 DC 38 [10:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 11 8C 47 00 AA 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 39 36 33 33 34 36 10 04 04 00 78 10 01 00 F4 03 04 00 DA D6 15 67 B6 04 01 00 00 C1 89 15 5B 28 6F 62 72 [10:30:13]CommunicateWithHost err = 0 [10:30:13]CheckOFDResponse [10:30:13]1017 (14) - 77093643461234 [10:30:13]1041 (16) - 0000000000963346 [10:30:13]1040 (4) - 69752 [10:30:13]1012 (4) - 21.10.2024 04:21 [10:30:13]1206 (1) - 0 [10:30:13]OFD Sender: Remove packet 69752 [10:30:13]ProducePacketName [10:30:13]name=ofd_packets/00069752 [10:30:13]NVStorageDeleteData [10:30:13]Write to MH i2c: 01 00 00 FD 2B 28 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 07 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 07 00 FD 2B 00 00 00 00 00 F4 0C 2F [10:30:13]RasterBufferAndPrint [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]written 0, free lines is 3326 [10:30:13]MH_Cut [10:30:13]Write to MH i2c: D1 01 00 04 2C 01 02 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 01 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 01 00 04 2C 00 01 [10:30:13]Write to MH i2c: 01 00 00 05 2C 31 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]OFD Sender: No OFD packet to send [10:30:14]*** Cut start [10:30:14]*** Partial cut [10:30:14]*** CUTSNS_PIN = 1 [10:30:14]*** CUTSNS_PIN = 0 [10:30:14]*** Brake cut motor [10:30:14]Read from MH i2c: 01 [10:30:14]MH_I2C_Read... [10:30:14]*** Stop cut motor [10:30:14]*** Cut end [10:30:14]Read from MH i2c: 01 07 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: 01 07 00 05 2C 00 00 00 00 00 FF 0F 46 [10:30:14]process_action close_receipt done [10:30:14]requested_data is exist [10:30:14]produce_requested_data [10:30:14]requested_item fm.sn is exist - process it [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 11 00 00 [10:30:14]Write to MH i2c: E2 08 00 06 2C 80 11 00 00 00 00 00 00 AC [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 17 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 17 00 06 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [10:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:14]wFMCommunicate OK [10:30:14]requested_item fd.num is exist - process it [10:30:14]SAM_PROTO_GetFieldsCounters [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 13 00 00 [10:30:14]Write to MH i2c: E2 08 00 07 2C 80 13 00 00 00 00 00 00 AF [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 62 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 62 00 07 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetFieldsCounters done [10:30:15]requested_item shift.num is exist - process it [10:30:15]requested_item shift.opened is exist - process it [10:30:15]req_shift_opened [10:30:15]FM_GetShiftState [10:30:15]SAM_PROTO_GetShiftState [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 13 01 00 [10:30:15]Write to MH i2c: E2 08 00 08 2C 80 13 01 00 00 00 00 00 B1 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 08 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DD [10:30:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetShiftState done [10:30:15]FM_GetShiftState done [10:30:15]req_shift_opened done [10:30:15]requested_item shift.open_date is exist - process it [10:30:15]req_shift_open_date [10:30:15]req_shift_open_date done [10:30:15]produce_requested_data done [10:30:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69752,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:30:15]process_action_free close_receipt [10:30:15]json_value_free [10:30:15]json_value_free done [10:30:15]process_json_proto returns [10:30:15]Send response to host [10:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69752,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:30:15]free response buf [10:30:15]execute_script done [10:30:15]execute_script returns [10:30:15]free content buf [10:30:15]Sock 8.Close socket [10:30:15]Sock 8.Thread stoped [10:30:15]accept exits with 9 [10:30:15]New connection [10:30:15]New thread 3067313508 created [10:30:15]Thread 3067456868 joined [10:30:15]Waiting for new connection... [10:30:15] Sock 9.Parse request [10:30:15]Sock 9.Check first char [10:30:15]Sock 9.First char is OK [10:30:15]request: POST /json_proto HTTP/1.0 [10:30:15]Method: POST [10:30:15]URL: /json_proto [10:30:15]Method is POST - this is cgi request [10:30:15]url: /json_proto [10:30:15]query_string will be loaded in cgi processing [10:30:15]execute_cgi json_proto POST (null) [10:30:15]execute_cgi path=json_proto method=POST [10:30:15]POST find Content-Length [10:30:15]Host: 172.17.50.3:8080 [10:30:15]Content-Length: 678 [10:30:15]Content-Type: application/json [10:30:15] [10:30:15]POST finish read [10:30:15]Found Content-Length = 678 [10:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:15]execute_script... [10:30: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)2885494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:15]POST & json_proto [10:30:15]process_json_proto [10:30:15]json parsed OK: [10:30:15]protocol is kg_v1.0 [10:30:15]action value=close_receipt [10:30:15]process_action close_receipt [10:30:15]cmd_close_receipt [10:30:15]MH_GetDate [10:30:15]Write to MH i2c: F0 00 00 09 2C 24 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 09 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 09 00 09 2C 00 3A 2D 16 67 6B 98 1E 66 98 [10:30:15]GetLastDocTimeStamp 1729506614 [10:30:15]current date 1729506618 [10:30:15]FM_GetShiftState [10:30:15]SAM_PROTO_GetShiftState [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 13 01 00 [10:30:15]Write to MH i2c: E2 08 00 0A 2C 80 13 01 00 00 00 00 00 B3 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:15]Read from MH i2c: E2 0E 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 0A 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DF [10:30:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetShiftState done [10:30:15]FM_GetShiftState done [10:30:15]opened in 1729469703 [10:30:15]opened+sec_in_day 1729556103 [10:30:15]quantity*price = 50041 [10:30:15]sum+1 = 50042 [10:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 143 21.10.2024 10:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69753 ФПД: 153264306629563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103018&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69753&fm=153264306629563&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:16]StoreToDocumentArchive [10:30:16]shift 194 fd 69753 [10:30:16]save to /storage/0194/doc_00069753 [10:30:16]save last doc name /storage/0194/doc_00069753 to /storage/kkm_last_doc_name [10:30:16]save OK [10:30:16]Clear old archive folders... [10:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:16]tlvbuf is 00D352C0 [10:30:16]SAM_PROTO_ClearQueue [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 09 00 00 [10:30:16]Write to MH i2c: E2 08 00 17 2C 80 09 00 00 00 00 00 00 B5 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_ClearQueue done [10:30:16]KKMCreateOFDPacket [10:30:16]OFDProtocolAddRootSTLVToBuf [10:30:16]FM_MakeSignedData [10:30:16]FM_MakeSignedData [10:30:16]SAM_PROTO_SignData [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 01 02 [10:30:16]Write to MH i2c: E2 08 00 18 2C 80 0D 01 02 00 00 00 00 BD [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 18 2C 00 90 00 B8 [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=255 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 10 01 00 35 04 06 00 8B [10:30:17]Write to MH i2c: E2 02 01 19 2C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 10 01 00 35 04 06 00 8B 00 00 90 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=10 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 02 02 05 64 A0 8D AB BB [10:30:17]Write to MH i2c: E2 0D 00 1A 2C 80 0D 02 02 05 00 64 A0 8D AB BB 00 00 C1 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [10:30:17]RAPDU: 90 00 [10:30:17]wFMCommunicate OK [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 0D 03 02 [10:30:17]Write to MH i2c: E2 08 00 1B 2C 80 0D 03 02 00 00 00 00 C2 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 1B 2C 00 60 EF F4 32 1E 09 87 54 90 00 3A [10:30:17]RAPDU: 60 EF F4 32 1E 09 87 54 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_SignData done [10:30:17]FM_MakeSignedData done [10:30:17]CreateOFDProtocolMessage [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 11 00 00 [10:30:17]Write to MH i2c: E2 08 00 1C 2C 80 11 00 00 00 00 00 00 C2 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 1C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [10:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:17]wFMCommunicate OK [10:30:17]CreateOFDProtocolMessage done [10:30:17]OFDSenderStorePacket 69753 [10:30:17]StoreOFDPacket docnum=69753 [10:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF 66 07 01 73 02 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 10 01 00 35 04 06 00 8B 64 A0 8D AB BB 60 EF F4 32 1E 09 87 54 [10:30:17]CheckFolder [10:30:17]dirname=/storage/ofd_packets [10:30:17]CheckFolder done [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00069753 [10:30:17]NVStorageSaveData ofd_packets/00069753 [10:30:17]File name is /storage/ofd_packets/00069753 [10:30:17]Write 301 bytes [10:30:17]NVStorageSaveData done [10:30:17]OFDSenderStorePacket done [10:30:17]KKMCreateOFDPacket done [10:30:17]NVStorageSaveData kkm_last_timestamp [10:30:17]File name is /storage/kkm_last_timestamp [10:30:17]Write 4 bytes [10:30:17]NVStorageSaveData done [10:30:17]ExternCall_PrintAddStr [10:30:17]wPrintStart [10:30:17]Write to MH i2c: 01 00 00 1D 2C 49 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]OFD Sender: Processing packet 69753 [packets to send 18, broken 17] [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00069753 [10:30:17]OFD Sender: To server: pG, [10:30:17]CommunicateWithHost lk.salyk.kg:30040 [10:30:17]ConnectInit lk.salyk.kg [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 1D 2C 00 00 00 00 00 FF 0F 5E [10:30:17]RasterBufferAndPrint [10:30:17]line Счет N : (1)2885494 [10:30:17]line ИНН: 02508201610067 [10:30:17]line Контрольно-Кассовый Чек [10:30:17]line ПРОДАЖА [10:30:17]line ТРК (МРК, ГНК) : 22 [10:30:17]line Товар: 2710124130 [10:30:17]line Аи-92-К-5 [10:30:17]line 7.480 * 66.90 [10:30:17]line = 500.41 [10:30:17]line НДС 12% НСП 1% [10:30:17]line > о реализуемом товаре [10:30:17]line ОКРУГЛЕНИЕ: -0.41 [10:30:17]line ИТОГО: 500.00 [10:30:17]line Внесено: 500.00 [10:30:17]line СДАЧА: 0.00 [10:30:17]line НСП 1% : 4.43 [10:30:17]line НДС 12% : 53.14 [10:30:17]line Наличными: 500.00 [10:30:17]line Безнал.: 0.00 [10:30:17]line Место: АЗС № 85 "Партнер Нефть" [10:30:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:30:17]line СНО: Общий режим [10:30:17]line Чек 143 21.10.2024 10:30 [10:30:17]line Смена: 194 ФФД: 1.0 [10:30:17]line ЗНМ: 0300000167 [10:30:17]line РНМ: 0000000000156251 [10:30:17]line Версия ККМ: v1.0 [10:30:17]line ФМ: 0000000000963346 [10:30:17]line ФД: 69753 [10:30:17]line ФПД: 153264306629563 [10:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103018&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69753&fm=153264306629563&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:17]Connected sock=10 [10:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF 66 07 01 73 02 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 10 01 00 35 04 06 00 8B 64 A0 8D AB BB 60 EF F4 32 1E 09 87 54 [10:30:18]written 0, free lines is 4095 [10:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9E E7 47 00 88 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 39 36 33 33 34 36 10 04 04 00 79 10 01 00 F4 03 04 00 DF D6 15 67 B6 04 01 00 00 CD 9E 4F 41 0E E3 47 B7 [10:30:18]CommunicateWithHost err = 0 [10:30:18]CheckOFDResponse [10:30:18]1017 (14) - 77093643461234 [10:30:18]1041 (16) - 0000000000963346 [10:30:18]1040 (4) - 69753 [10:30:18]1012 (4) - 21.10.2024 04:21 [10:30:18]1206 (1) - 0 [10:30:18]OFD Sender: Remove packet 69753 [10:30:18]ProducePacketName [10:30:18]name=ofd_packets/00069753 [10:30:18]NVStorageDeleteData [10:30:18]Write to MH i2c: 01 00 00 48 2C 74 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 48 2C 00 00 00 00 00 0C 0D 94 [10:30:18]RasterBufferAndPrint [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]line [10:30:18]written 0, free lines is 3356 [10:30:18]MH_Cut [10:30:18]Write to MH i2c: D1 01 00 4F 2C 01 4D [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 01 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: D1 01 00 4F 2C 00 4C [10:30:18]Write to MH i2c: 01 00 00 50 2C 7C [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]OFD Sender: No OFD packet to send [10:30:19]*** Cut start [10:30:19]*** Partial cut [10:30:19]*** CUTSNS_PIN = 1 [10:30:19]*** CUTSNS_PIN = 0 [10:30:19]*** Brake cut motor [10:30:19]Read from MH i2c: 01 [10:30:19]MH_I2C_Read... [10:30:19]*** Stop cut motor [10:30:19]*** Cut end [10:30:19]Read from MH i2c: 01 07 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 50 2C 00 00 00 00 00 FF 0F 91 [10:30:19]process_action close_receipt done [10:30:19]requested_data is exist [10:30:19]produce_requested_data [10:30:19]requested_item fm.sn is exist - process it [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 11 00 00 [10:30:19]Write to MH i2c: E2 08 00 51 2C 80 11 00 00 00 00 00 00 F7 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 51 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [10:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:19]wFMCommunicate OK [10:30:19]requested_item fd.num is exist - process it [10:30:19]SAM_PROTO_GetFieldsCounters [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 13 00 00 [10:30:19]Write to MH i2c: E2 08 00 52 2C 80 13 00 00 00 00 00 00 FA [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 52 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetFieldsCounters done [10:30:20]requested_item shift.num is exist - process it [10:30:20]requested_item shift.opened is exist - process it [10:30:20]req_shift_opened [10:30:20]FM_GetShiftState [10:30:20]SAM_PROTO_GetShiftState [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 01 00 [10:30:20]Write to MH i2c: E2 08 00 53 2C 80 13 01 00 00 00 00 00 FC [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:20]Read from MH i2c: E2 0E 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 0E 00 53 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 28 [10:30:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetShiftState done [10:30:20]FM_GetShiftState done [10:30:20]req_shift_opened done [10:30:20]requested_item shift.open_date is exist - process it [10:30:20]req_shift_open_date [10:30:20]req_shift_open_date done [10:30:20]produce_requested_data done [10:30:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69753,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:30:20]process_action_free close_receipt [10:30:20]json_value_free [10:30:20]json_value_free done [10:30:20]process_json_proto returns [10:30:20]Send response to host [10:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69753,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:30:20]free response buf [10:30:20]execute_script done [10:30:20]execute_script returns [10:30:20]free content buf [10:30:20]Sock 9.Close socket [10:30:20]Sock 9.Thread stoped [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:56]accept exits with 8 [10:31:56]New connection [10:31:56]New thread 3067456868 created [10:31:56]Thread 3067313508 joined [10:31:56]Waiting for new connection... [10:31:56] Sock 8.Parse request [10:31:56]Sock 8.Check first char [10:31:56]Sock 8.First char is OK [10:31:56]request: POST /json_proto HTTP/1.0 [10:31:56]Method: POST [10:31:56]URL: /json_proto [10:31:56]Method is POST - this is cgi request [10:31:56]url: /json_proto [10:31:56]query_string will be loaded in cgi processing [10:31:56]execute_cgi json_proto POST (null) [10:31:56]execute_cgi path=json_proto method=POST [10:31:56]POST find Content-Length [10:31:56]Host: 172.17.50.3:8080 [10:31:56]Content-Length: 776 [10:31:56]Content-Type: application/json [10:31:56] [10:31:56]POST finish read [10:31:56]Found Content-Length = 776 [10:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 63.490, "sum" : 4901.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4901.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]execute_script... [10:31: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)2885492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 63.490, "sum" : 4901.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4901.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]POST & json_proto [10:31:56]process_json_proto [10:31:56]json parsed OK: [10:31:56]protocol is kg_v1.0 [10:31:56]action value=close_receipt [10:31:56]process_action close_receipt [10:31:56]cmd_close_receipt [10:31:56]MH_GetDate [10:31:56]Write to MH i2c: F0 00 00 54 2C 6F [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 54 2C 00 9F 2D 16 67 6B 98 1E 66 48 [10:31:56]GetLastDocTimeStamp 1729506618 [10:31:56]current date 1729506719 [10:31:56]FM_GetShiftState [10:31:56]SAM_PROTO_GetShiftState [10:31:56]wFMCommunicate request_size=4 [10:31:56]MH_SAM_APDU [10:31:56]CAPDU: 80 13 01 00 [10:31:56]Write to MH i2c: E2 08 00 55 2C 80 13 01 00 00 00 00 00 FE [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:56]Read from MH i2c: E2 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 55 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2A [10:31:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:31:56]wFMCommunicate OK [10:31:56]SAM_PROTO_GetShiftState done [10:31:56]FM_GetShiftState done [10:31:56]opened in 1729469703 [10:31:56]opened+sec_in_day 1729556103 [10:31:56]quantity*price = 490142 [10:31:56]sum+1 = 490144 [10:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4901.43 НСП 1% : 43.37 НДС 12% : 520.51 Наличными: 0.00 Безнал.: 4901.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 144 21.10.2024 10:31 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69754 ФПД: 168587000259497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103159&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69754&fm=168587000259497&tin=02508201610067®Number=0000000000156251&sum=490143 [10:31:57]StoreToDocumentArchive [10:31:57]shift 194 fd 69754 [10:31:57]save to /storage/0194/doc_00069754 [10:31:57]save last doc name /storage/0194/doc_00069754 to /storage/kkm_last_doc_name [10:31:57]save OK [10:31:57]Clear old archive folders... [10:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:31:57]tlvbuf is 00C508B0 [10:31:57]SAM_PROTO_ClearQueue [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 09 00 00 [10:31:57]Write to MH i2c: E2 08 00 62 2C 80 09 00 00 00 00 00 00 00 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 62 2C 00 90 00 02 [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]SAM_PROTO_ClearQueue done [10:31:57]KKMCreateOFDPacket [10:31:57]OFDProtocolAddRootSTLVToBuf [10:31:57]FM_MakeSignedData [10:31:57]FM_MakeSignedData [10:31:57]SAM_PROTO_SignData [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 01 02 [10:31:57]Write to MH i2c: E2 08 00 63 2C 80 0D 01 02 00 00 00 00 08 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 63 2C 00 90 00 03 [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]wFMCommunicate request_size=255 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 F8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 10 01 [10:31:57]Write to MH i2c: E2 02 01 64 2C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 F8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 10 01 00 00 5D [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:57]Read from MH i2c: E2 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 [10:31:57]MH_I2C_Read... [10:31:57]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [10:31:57]RAPDU: 90 00 [10:31:57]wFMCommunicate OK [10:31:57]wFMCommunicate request_size=16 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 99 54 38 43 A3 A9 [10:31:57]Write to MH i2c: E2 13 00 65 2C 80 0D 02 02 0B 00 00 35 04 06 00 99 54 38 43 A3 A9 00 00 14 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [10:31:58]RAPDU: 90 00 [10:31:58]wFMCommunicate OK [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 0D 03 02 [10:31:58]Write to MH i2c: E2 08 00 66 2C 80 0D 03 02 00 00 00 00 0D [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0B 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0B 00 66 2C 00 07 8B 96 CF 11 41 FC 25 90 00 78 [10:31:58]RAPDU: 07 8B 96 CF 11 41 FC 25 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_SignData done [10:31:58]FM_MakeSignedData done [10:31:58]CreateOFDProtocolMessage [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 11 00 00 [10:31:58]Write to MH i2c: E2 08 00 67 2C 80 11 00 00 00 00 00 00 0D [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 67 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [10:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:31:58]wFMCommunicate OK [10:31:58]CreateOFDProtocolMessage done [10:31:58]OFDSenderStorePacket 69754 [10:31:58]StoreOFDPacket docnum=69754 [10:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5D C4 0D 01 C4 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 F8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 10 01 00 35 04 06 00 99 54 38 43 A3 A9 07 8B 96 CF 11 41 FC 25 [10:31:58]CheckFolder [10:31:58]dirname=/storage/ofd_packets [10:31:58]CheckFolder done [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00069754 [10:31:58]NVStorageSaveData ofd_packets/00069754 [10:31:58]File name is /storage/ofd_packets/00069754 [10:31:58]Write 307 bytes [10:31:58]NVStorageSaveData done [10:31:58]OFDSenderStorePacket done [10:31:58]KKMCreateOFDPacket done [10:31:58]NVStorageSaveData kkm_last_timestamp [10:31:58]File name is /storage/kkm_last_timestamp [10:31:58]Write 4 bytes [10:31:58]NVStorageSaveData done [10:31:58]ExternCall_PrintAddStr [10:31:58]wPrintStart [10:31:58]Write to MH i2c: 01 00 00 68 2C 94 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 68 2C 00 00 00 00 00 FF 0F A9 [10:31:58]RasterBufferAndPrint [10:31:58]line Счет N : (1)2885492 [10:31:58]line ИНН: 02508201610067 [10:31:58]line Контрольно-Кассовый Чек [10:31:58]line ПРОДАЖА [10:31:58]line ТРК (МРК, ГНК) : 31 [10:31:58]line Товар: 2710194240 [10:31:58]line D-ENERGY Дт-К-2 [10:31:58]line 63.490 * 77.20 [10:31:58]line = 4901.43 [10:31:58]line НДС 12% НСП 1% [10:31:58]line > о реализуемом товаре [10:31:58]line ИТОГО: 4901.43 [10:31:58]line НСП 1% : 43.37 [10:31:58]line НДС 12% : 520.51 [10:31:58]line Наличными: 0.00 [10:31:58]line Безнал.: 4901.43 [10:31:58]line Место: АЗС № 85 "Партнер Нефть" [10:31:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:31:58]line СНО: Общий режим [10:31:58]line Чек 144 21.10.2024 10:31 [10:31:58]line Смена: 194 ФФД: 1.0 [10:31:58]line ЗНМ: 0300000167 [10:31:58]line РНМ: 0000000000156251 [10:31:58]line Версия ККМ: v1.0 [10:31:58]line Платежная система: Mbank [10:31:58]line ФМ: 0000000000963346 [10:31:58]line ФД: 69754 [10:31:58]line ФПД: 168587000259497 [10:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103159&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69754&fm=168587000259497&tin=02508201610067®Number=0000000000156251&sum=490143 [10:31:58]OFD Sender: Processing packet 69754 [packets to send 18, broken 17] [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00069754 [10:31:58]OFD Sender: To server: pG, [10:31:58]CommunicateWithHost lk.salyk.kg:30040 [10:31:58]ConnectInit lk.salyk.kg [10:31:58]written 0, free lines is 4095 [10:31:58]Connected sock=10 [10:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5D C4 0D 01 C4 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 F8 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 2D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 10 01 00 35 04 06 00 99 54 38 43 A3 A9 07 8B 96 CF 11 41 FC 25 [10:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BF 63 47 00 48 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 39 36 33 33 34 36 10 04 04 00 7A 10 01 00 F4 03 04 00 43 D7 15 67 B6 04 01 00 00 9C 03 BB D3 77 79 D6 5B [10:31:58]CommunicateWithHost err = 0 [10:31:58]CheckOFDResponse [10:31:58]1017 (14) - 77093643461234 [10:31:58]1041 (16) - 0000000000963346 [10:31:58]1040 (4) - 69754 [10:31:58]1012 (4) - 21.10.2024 04:23 [10:31:58]1206 (1) - 0 [10:31:58]OFD Sender: Remove packet 69754 [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00069754 [10:31:58]NVStorageDeleteData [10:31:58]Write to MH i2c: 01 00 00 91 2C BD [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 91 2C 00 00 00 00 00 24 0D F5 [10:31:58]RasterBufferAndPrint [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]line [10:31:58]written 0, free lines is 3370 [10:31:58]MH_Cut [10:31:58]Write to MH i2c: D1 01 00 98 2C 01 96 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 01 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: D1 01 00 98 2C 00 95 [10:31:58]Write to MH i2c: 01 00 00 99 2C C5 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:59]OFD Sender: No OFD packet to send [10:31:59]*** Cut start [10:31:59]*** Partial cut [10:31:59]*** CUTSNS_PIN = 1 [10:31:59]*** CUTSNS_PIN = 0 [10:31:59]*** Brake cut motor [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]*** Stop cut motor [10:32:00]*** Cut end [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 99 2C 00 00 00 00 00 FF 0F DA [10:32:00]process_action close_receipt done [10:32:00]requested_data is exist [10:32:00]produce_requested_data [10:32:00]requested_item fm.sn is exist - process it [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 11 00 00 [10:32:00]Write to MH i2c: E2 08 00 9A 2C 80 11 00 00 00 00 00 00 40 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 9A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [10:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:00]wFMCommunicate OK [10:32:00]requested_item fd.num is exist - process it [10:32:00]SAM_PROTO_GetFieldsCounters [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 00 00 [10:32:00]Write to MH i2c: E2 08 00 9B 2C 80 13 00 00 00 00 00 00 43 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 9B 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetFieldsCounters done [10:32:00]requested_item shift.num is exist - process it [10:32:00]requested_item shift.opened is exist - process it [10:32:00]req_shift_opened [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 9C 2C 80 13 01 00 00 00 00 00 45 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 9C 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 71 [10:32:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]req_shift_opened done [10:32:00]requested_item shift.open_date is exist - process it [10:32:00]req_shift_open_date [10:32:00]req_shift_open_date done [10:32:00]produce_requested_data done [10:32:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69754,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:32:00]process_action_free close_receipt [10:32:00]json_value_free [10:32:00]json_value_free done [10:32:00]process_json_proto returns [10:32:00]Send response to host [10:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69754,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:32:00]free response buf [10:32:00]execute_script done [10:32:00]execute_script returns [10:32:00]free content buf [10:32:00]Sock 8.Close socket [10:32:00]Sock 8.Thread stoped [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:36]accept exits with 9 [10:35:36]New connection [10:35:36]New thread 3067313508 created [10:35:36]Thread 3067456868 joined [10:35:36]Waiting for new connection... [10:35:36] Sock 9.Parse request [10:35:36]Sock 9.Check first char [10:35:36]Sock 9.First char is OK [10:35:36]request: POST /json_proto HTTP/1.0 [10:35:36]Method: POST [10:35:36]URL: /json_proto [10:35:36]Method is POST - this is cgi request [10:35:36]url: /json_proto [10:35:36]query_string will be loaded in cgi processing [10:35:36]execute_cgi json_proto POST (null) [10:35:36]execute_cgi path=json_proto method=POST [10:35:36]POST find Content-Length [10:35:36]Host: 172.17.50.3:8080 [10:35:36]Content-Length: 686 [10:35:36]Content-Type: application/json [10:35:36] [10:35:36]POST finish read [10:35:36]Found Content-Length = 686 [10:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 31.640, "sum" : 1230.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1230.00, "payments": [ { "type": 0, "sum" : 1230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]execute_script... [10:35: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)2885496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 31.640, "sum" : 1230.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1230.00, "payments": [ { "type": 0, "sum" : 1230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:36]POST & json_proto [10:35:36]process_json_proto [10:35:36]json parsed OK: [10:35:36]protocol is kg_v1.0 [10:35:36]action value=close_receipt [10:35:36]process_action close_receipt [10:35:36]cmd_close_receipt [10:35:36]MH_GetDate [10:35:36]Write to MH i2c: F0 00 00 9D 2C B8 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 9D 2C 00 7B 2E 16 67 6B 98 1E 66 6E [10:35:36]GetLastDocTimeStamp 1729506719 [10:35:36]current date 1729506939 [10:35:36]FM_GetShiftState [10:35:36]SAM_PROTO_GetShiftState [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 13 01 00 [10:35:36]Write to MH i2c: E2 08 00 9E 2C 80 13 01 00 00 00 00 00 47 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 9E 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 73 [10:35:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_GetShiftState done [10:35:36]FM_GetShiftState done [10:35:36]opened in 1729469703 [10:35:36]opened+sec_in_day 1729556103 [10:35:36]quantity*price = 123079 [10:35:36]sum+1 = 123081 [10:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 1230.00 Внесено: 3000.00 СДАЧА: 1770.00 НСП 1% : 10.89 НДС 12% : 130.70 Наличными: 1230.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 145 21.10.2024 10:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69755 ФПД: 28004873074184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69755&fm=28004873074184&tin=02508201610067®Number=0000000000156251&sum=123000 [10:35:37]StoreToDocumentArchive [10:35:37]shift 194 fd 69755 [10:35:37]save to /storage/0194/doc_00069755 [10:35:37]save last doc name /storage/0194/doc_00069755 to /storage/kkm_last_doc_name [10:35:37]save OK [10:35:37]Clear old archive folders... [10:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:35:37]tlvbuf is 00CCE370 [10:35:37]SAM_PROTO_ClearQueue [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 09 00 00 [10:35:37]Write to MH i2c: E2 08 00 AB 2C 80 09 00 00 00 00 00 00 49 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_ClearQueue done [10:35:37]KKMCreateOFDPacket [10:35:37]OFDProtocolAddRootSTLVToBuf [10:35:37]FM_MakeSignedData [10:35:37]FM_MakeSignedData [10:35:37]SAM_PROTO_SignData [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 01 02 [10:35:37]Write to MH i2c: E2 08 00 AC 2C 80 0D 01 02 00 00 00 00 51 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=255 [10:35:37]MH_SAM_APDU [10:35:37]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 33 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C8 E0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B 2E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 10 01 00 35 04 06 00 19 78 [10:35:37]Write to MH i2c: E2 02 01 AD 2C 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 33 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C8 E0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B 2E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 10 01 00 35 04 06 00 19 78 00 00 CE [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 AD 2C 00 90 00 4D [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=9 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 02 02 04 64 82 F6 08 [10:35:37]Write to MH i2c: E2 0C 00 AE 2C 80 0D 02 02 04 00 64 82 F6 08 00 00 40 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 AE 2C 00 90 00 4E [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 03 02 [10:35:37]Write to MH i2c: E2 08 00 AF 2C 80 0D 03 02 00 00 00 00 56 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0B 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0B 00 AF 2C 00 4B 9D FC 91 8F 66 09 3D 90 00 07 [10:35:37]RAPDU: 4B 9D FC 91 8F 66 09 3D 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_SignData done [10:35:37]FM_MakeSignedData done [10:35:37]CreateOFDProtocolMessage [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 11 00 00 [10:35:37]Write to MH i2c: E2 08 00 B0 2C 80 11 00 00 00 00 00 00 56 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 17 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 17 00 B0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [10:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:37]wFMCommunicate OK [10:35:37]CreateOFDProtocolMessage done [10:35:37]OFDSenderStorePacket 69755 [10:35:37]StoreOFDPacket docnum=69755 [10:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5E 92 06 01 DA 63 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 33 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C8 E0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B 2E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 10 01 00 35 04 06 00 19 78 64 82 F6 08 4B 9D FC 91 8F 66 09 3D [10:35:37]CheckFolder [10:35:37]dirname=/storage/ofd_packets [10:35:37]CheckFolder done [10:35:37]ProducePacketName [10:35:37]name=ofd_packets/00069755 [10:35:37]NVStorageSaveData ofd_packets/00069755 [10:35:37]File name is /storage/ofd_packets/00069755 [10:35:37]Write 300 bytes [10:35:37]NVStorageSaveData done [10:35:37]OFDSenderStorePacket done [10:35:37]KKMCreateOFDPacket done [10:35:37]NVStorageSaveData kkm_last_timestamp [10:35:37]File name is /storage/kkm_last_timestamp [10:35:37]Write 4 bytes [10:35:37]NVStorageSaveData done [10:35:37]ExternCall_PrintAddStr [10:35:37]wPrintStart [10:35:37]Write to MH i2c: 01 00 00 B1 2C DD [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 B1 2C 00 00 00 00 00 FF 0F F2 [10:35:37]RasterBufferAndPrint [10:35:37]line Счет N : (1)2885496 [10:35:37]line ИНН: 02508201610067 [10:35:37]line Контрольно-Кассовый Чек [10:35:37]line ПРОДАЖА [10:35:37]line ТРК (МРК, ГНК) : 71 [10:35:37]line Товар: 2711129700 [10:35:37]line ГАЗ-К-3 [10:35:37]line 31.640 * 38.90 [10:35:37]line = 1230.80 [10:35:37]line НДС 12% НСП 1% [10:35:37]line > о реализуемом товаре [10:35:37]line ОКРУГЛЕНИЕ: -0.80 [10:35:37]line ИТОГО: 1230.00 [10:35:37]line Внесено: 3000.00 [10:35:37]line СДАЧА: 1770.00 [10:35:37]line НСП 1% : 10.89 [10:35:37]line НДС 12% : 130.70 [10:35:37]line Наличными: 1230.00 [10:35:37]line Безнал.: 0.00 [10:35:37]line Место: АЗС № 85 "Партнер Нефть" [10:35:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:35:38]line СНО: Общий режим [10:35:38]line Чек 145 21.10.2024 10:35 [10:35:38]line Смена: 194 ФФД: 1.0 [10:35:38]line ЗНМ: 0300000167 [10:35:38]line РНМ: 0000000000156251 [10:35:38]line Версия ККМ: v1.0 [10:35:38]line ФМ: 0000000000963346 [10:35:38]line ФД: 69755 [10:35:38]line ФПД: 28004873074184 [10:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69755&fm=28004873074184&tin=02508201610067®Number=0000000000156251&sum=123000 [10:35:38]OFD Sender: Processing packet 69755 [packets to send 18, broken 17] [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00069755 [10:35:38]OFD Sender: To server: pG, [10:35:38]CommunicateWithHost lk.salyk.kg:30040 [10:35:38]ConnectInit lk.salyk.kg [10:35:38]written 0, free lines is 4095 [10:35:38]Connected sock=10 [10:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5E 92 06 01 DA 63 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 33 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C8 E0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 33 00 00 00 00 07 04 06 00 78 E0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B 2E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 10 01 00 35 04 06 00 19 78 64 82 F6 08 4B 9D FC 91 8F 66 09 3D [10:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F8 B4 47 00 7B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 10 01 00 F4 03 04 00 1F D8 15 67 B6 04 01 00 00 9D 33 C4 92 26 8A 8B 08 [10:35:38]CommunicateWithHost err = 0 [10:35:38]CheckOFDResponse [10:35:38]1017 (14) - 77093643461234 [10:35:38]1041 (16) - 0000000000963346 [10:35:38]1040 (4) - 69755 [10:35:38]1012 (4) - 21.10.2024 04:27 [10:35:38]1206 (1) - 0 [10:35:38]OFD Sender: Remove packet 69755 [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00069755 [10:35:38]NVStorageDeleteData [10:35:38]Write to MH i2c: 01 00 00 DC 2C 08 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 DC 2C 00 00 00 00 00 F9 0C 14 [10:35:38]RasterBufferAndPrint [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]line [10:35:38]written 0, free lines is 3327 [10:35:38]MH_Cut [10:35:38]Write to MH i2c: D1 01 00 E3 2C 01 E1 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 01 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: D1 01 00 E3 2C 00 E0 [10:35:38]Write to MH i2c: 01 00 00 E4 2C 10 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]OFD Sender: No OFD packet to send [10:35:39]*** Cut start [10:35:39]*** Partial cut [10:35:39]*** CUTSNS_PIN = 1 [10:35:39]*** CUTSNS_PIN = 0 [10:35:39]*** Brake cut motor [10:35:39]Read from MH i2c: 01 [10:35:39]MH_I2C_Read... [10:35:39]*** Stop cut motor [10:35:39]*** Cut end [10:35:39]Read from MH i2c: 01 07 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 FF 0F 25 [10:35:39]process_action close_receipt done [10:35:39]requested_data is exist [10:35:39]produce_requested_data [10:35:39]requested_item fm.sn is exist - process it [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 11 00 00 [10:35:39]Write to MH i2c: E2 08 00 E5 2C 80 11 00 00 00 00 00 00 8B [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 17 00 E5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [10:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:39]wFMCommunicate OK [10:35:39]requested_item fd.num is exist - process it [10:35:39]SAM_PROTO_GetFieldsCounters [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 00 00 [10:35:39]Write to MH i2c: E2 08 00 E6 2C 80 13 00 00 00 00 00 00 8E [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:39]Read from MH i2c: E2 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: E2 62 00 E6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [10:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:39]wFMCommunicate OK [10:35:39]SAM_PROTO_GetFieldsCounters done [10:35:39]requested_item shift.num is exist - process it [10:35:39]requested_item shift.opened is exist - process it [10:35:39]req_shift_opened [10:35:39]FM_GetShiftState [10:35:39]SAM_PROTO_GetShiftState [10:35:39]wFMCommunicate request_size=4 [10:35:39]MH_SAM_APDU [10:35:39]CAPDU: 80 13 01 00 [10:35:39]Write to MH i2c: E2 08 00 E7 2C 80 13 01 00 00 00 00 00 90 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 E7 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BC [10:35:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetShiftState done [10:35:40]FM_GetShiftState done [10:35:40]req_shift_opened done [10:35:40]requested_item shift.open_date is exist - process it [10:35:40]req_shift_open_date [10:35:40]req_shift_open_date done [10:35:40]produce_requested_data done [10:35:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69755,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:35:40]process_action_free close_receipt [10:35:40]json_value_free [10:35:40]json_value_free done [10:35:40]process_json_proto returns [10:35:40]Send response to host [10:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69755,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:35:40]free response buf [10:35:40]execute_script done [10:35:40]execute_script returns [10:35:40]free content buf [10:35:40]Sock 9.Close socket [10:35:40]Sock 9.Thread stoped [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:31]accept exits with 8 [10:38:31]New connection [10:38:31]New thread 3067456868 created [10:38:31]Thread 3067313508 joined [10:38:31]Waiting for new connection... [10:38:31] Sock 8.Parse request [10:38:31]Sock 8.Check first char [10:38:31]Sock 8.First char is OK [10:38:31]request: POST /json_proto HTTP/1.0 [10:38:31]Method: POST [10:38:31]URL: /json_proto [10:38:31]Method is POST - this is cgi request [10:38:31]url: /json_proto [10:38:31]query_string will be loaded in cgi processing [10:38:31]execute_cgi json_proto POST (null) [10:38:31]execute_cgi path=json_proto method=POST [10:38:31]POST find Content-Length [10:38:31]Host: 172.17.50.3:8080 [10:38:31]Content-Length: 686 [10:38:31]Content-Type: application/json [10:38:31] [10:38:31]POST finish read [10:38:31]Found Content-Length = 686 [10:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:38:31]execute_script... [10:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:38:31]POST & json_proto [10:38:31]process_json_proto [10:38:31]json parsed OK: [10:38:31]protocol is kg_v1.0 [10:38:31]action value=close_receipt [10:38:31]process_action close_receipt [10:38:31]cmd_close_receipt [10:38:31]MH_GetDate [10:38:31]Write to MH i2c: F0 00 00 E8 2C 03 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 E8 2C 00 2A 2F 16 67 6B 98 1E 66 69 [10:38:31]GetLastDocTimeStamp 1729506939 [10:38:31]current date 1729507114 [10:38:31]FM_GetShiftState [10:38:31]SAM_PROTO_GetShiftState [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 13 01 00 [10:38:31]Write to MH i2c: E2 08 00 E9 2C 80 13 01 00 00 00 00 00 92 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 E9 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BE [10:38:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_GetShiftState done [10:38:31]FM_GetShiftState done [10:38:31]opened in 1729469703 [10:38:31]opened+sec_in_day 1729556103 [10:38:31]quantity*price = 100011 [10:38:31]sum+1 = 100013 [10:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 146 21.10.2024 10:38 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69756 ФПД: 194227249129064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69756&fm=194227249129064&tin=02508201610067®Number=0000000000156251&sum=100000 [10:38:32]StoreToDocumentArchive [10:38:32]shift 194 fd 69756 [10:38:32]save to /storage/0194/doc_00069756 [10:38:32]save last doc name /storage/0194/doc_00069756 to /storage/kkm_last_doc_name [10:38:32]save OK [10:38:32]Clear old archive folders... [10:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:38:32]tlvbuf is 00CA3320 [10:38:32]SAM_PROTO_ClearQueue [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 09 00 00 [10:38:32]Write to MH i2c: E2 08 00 F6 2C 80 09 00 00 00 00 00 00 94 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_ClearQueue done [10:38:32]KKMCreateOFDPacket [10:38:32]OFDProtocolAddRootSTLVToBuf [10:38:32]FM_MakeSignedData [10:38:32]FM_MakeSignedData [10:38:32]SAM_PROTO_SignData [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 01 02 [10:38:32]Write to MH i2c: E2 08 00 F7 2C 80 0D 01 02 00 00 00 00 9C [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=255 [10:38:32]MH_SAM_APDU [10:38:32]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2A 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 10 01 00 35 04 06 00 B0 A6 [10:38:32]Write to MH i2c: E2 02 01 F8 2C 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2A 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 10 01 00 35 04 06 00 B0 A6 00 00 0D [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=9 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 04 0E 30 A6 68 [10:38:32]Write to MH i2c: E2 0C 00 F9 2C 80 0D 02 02 04 00 0E 30 A6 68 00 00 F3 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 F9 2C 00 90 00 99 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 03 02 [10:38:32]Write to MH i2c: E2 08 00 FA 2C 80 0D 03 02 00 00 00 00 A1 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 FA 2C 00 89 E6 0C 07 52 9E 58 B3 90 00 1F [10:38:32]RAPDU: 89 E6 0C 07 52 9E 58 B3 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_SignData done [10:38:32]FM_MakeSignedData done [10:38:32]CreateOFDProtocolMessage [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 11 00 00 [10:38:32]Write to MH i2c: E2 08 00 FB 2C 80 11 00 00 00 00 00 00 A1 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 FB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [10:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:38:32]wFMCommunicate OK [10:38:32]CreateOFDProtocolMessage done [10:38:32]OFDSenderStorePacket 69756 [10:38:32]StoreOFDPacket docnum=69756 [10:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 BF 0D 06 01 87 BA 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2A 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 10 01 00 35 04 06 00 B0 A6 0E 30 A6 68 89 E6 0C 07 52 9E 58 B3 [10:38:32]CheckFolder [10:38:32]dirname=/storage/ofd_packets [10:38:32]CheckFolder done [10:38:32]ProducePacketName [10:38:32]name=ofd_packets/00069756 [10:38:32]NVStorageSaveData ofd_packets/00069756 [10:38:32]File name is /storage/ofd_packets/00069756 [10:38:32]Write 300 bytes [10:38:32]NVStorageSaveData done [10:38:32]OFDSenderStorePacket done [10:38:32]KKMCreateOFDPacket done [10:38:32]NVStorageSaveData kkm_last_timestamp [10:38:32]File name is /storage/kkm_last_timestamp [10:38:32]Write 4 bytes [10:38:32]NVStorageSaveData done [10:38:32]ExternCall_PrintAddStr [10:38:32]wPrintStart [10:38:32]Write to MH i2c: 01 00 00 FC 2C 28 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 FC 2C 00 00 00 00 00 FF 0F 3D [10:38:32]RasterBufferAndPrint [10:38:32]line Счет N : (1)2885497 [10:38:32]line ИНН: 02508201610067 [10:38:32]line Контрольно-Кассовый Чек [10:38:32]line ПРОДАЖА [10:38:32]line ТРК (МРК, ГНК) : 71 [10:38:32]line Товар: 2711129700 [10:38:32]line ГАЗ-К-3 [10:38:32]line 25.710 * 38.90 [10:38:32]line = 1000.12 [10:38:32]line НДС 12% НСП 1% [10:38:32]line > о реализуемом товаре [10:38:32]line ОКРУГЛЕНИЕ: -0.12 [10:38:32]line ИТОГО: 1000.00 [10:38:32]line Внесено: 1000.00 [10:38:32]line СДАЧА: 0.00 [10:38:32]line НСП 1% : 8.85 [10:38:32]line НДС 12% : 106.21 [10:38:32]line Наличными: 1000.00 [10:38:32]line Безнал.: 0.00 [10:38:32]line Место: АЗС № 85 "Партнер Нефть" [10:38:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:38:32]line СНО: Общий режим [10:38:32]line Чек 146 21.10.2024 10:38 [10:38:32]line Смена: 194 ФФД: 1.0 [10:38:32]line ЗНМ: 0300000167 [10:38:32]line РНМ: 0000000000156251 [10:38:32]line Версия ККМ: v1.0 [10:38:32]line ФМ: 0000000000963346 [10:38:33]line ФД: 69756 [10:38:33]line ФПД: 194227249129064 [10:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69756&fm=194227249129064&tin=02508201610067®Number=0000000000156251&sum=100000 [10:38:33]OFD Sender: Processing packet 69756 [packets to send 18, broken 17] [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00069756 [10:38:33]OFD Sender: To server: pG, [10:38:33]CommunicateWithHost lk.salyk.kg:30040 [10:38:33]ConnectInit lk.salyk.kg [10:38:33]written 0, free lines is 4095 [10:38:33]Connected sock=10 [10:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 BF 0D 06 01 87 BA 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2A 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 10 01 00 35 04 06 00 B0 A6 0E 30 A6 68 89 E6 0C 07 52 9E 58 B3 [10:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E8 89 47 00 CD 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 39 36 33 33 34 36 10 04 04 00 7C 10 01 00 F4 03 04 00 CE D8 15 67 B6 04 01 00 00 15 A7 E5 ED 84 5F 07 5E [10:38:33]CommunicateWithHost err = 0 [10:38:33]CheckOFDResponse [10:38:33]1017 (14) - 77093643461234 [10:38:33]1041 (16) - 0000000000963346 [10:38:33]1040 (4) - 69756 [10:38:33]1012 (4) - 21.10.2024 04:30 [10:38:33]1206 (1) - 0 [10:38:33]OFD Sender: Remove packet 69756 [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00069756 [10:38:33]NVStorageDeleteData [10:38:33]Write to MH i2c: 01 00 00 27 2D 54 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 27 2D 00 00 00 00 00 EC 0C 53 [10:38:33]RasterBufferAndPrint [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]written 0, free lines is 3314 [10:38:33]MH_Cut [10:38:33]Write to MH i2c: D1 01 00 2E 2D 01 2D [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 2E 2D 00 2C [10:38:33]Write to MH i2c: 01 00 00 2F 2D 5C [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]OFD Sender: No OFD packet to send [10:38:34]*** Cut start [10:38:34]*** Partial cut [10:38:34]*** CUTSNS_PIN = 1 [10:38:34]*** CUTSNS_PIN = 0 [10:38:34]*** Brake cut motor [10:38:34]Read from MH i2c: 01 [10:38:34]MH_I2C_Read... [10:38:34]*** Stop cut motor [10:38:34]*** Cut end [10:38:34]Read from MH i2c: 01 07 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 2F 2D 00 00 00 00 00 FF 0F 71 [10:38:34]process_action close_receipt done [10:38:34]requested_data is exist [10:38:34]produce_requested_data [10:38:34]requested_item fm.sn is exist - process it [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 11 00 00 [10:38:34]Write to MH i2c: E2 08 00 30 2D 80 11 00 00 00 00 00 00 D7 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 30 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [10:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:38:35]wFMCommunicate OK [10:38:35]requested_item fd.num is exist - process it [10:38:35]SAM_PROTO_GetFieldsCounters [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 13 00 00 [10:38:35]Write to MH i2c: E2 08 00 31 2D 80 13 00 00 00 00 00 00 DA [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 62 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 62 00 31 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_GetFieldsCounters done [10:38:35]requested_item shift.num is exist - process it [10:38:35]requested_item shift.opened is exist - process it [10:38:35]req_shift_opened [10:38:35]FM_GetShiftState [10:38:35]SAM_PROTO_GetShiftState [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 13 01 00 [10:38:35]Write to MH i2c: E2 08 00 32 2D 80 13 01 00 00 00 00 00 DC [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0E 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0E 00 32 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 08 [10:38:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_GetShiftState done [10:38:35]FM_GetShiftState done [10:38:35]req_shift_opened done [10:38:35]requested_item shift.open_date is exist - process it [10:38:35]req_shift_open_date [10:38:35]req_shift_open_date done [10:38:35]produce_requested_data done [10:38:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69756,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:38:35]process_action_free close_receipt [10:38:35]json_value_free [10:38:35]json_value_free done [10:38:35]process_json_proto returns [10:38:35]Send response to host [10:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69756,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:38:35]free response buf [10:38:35]execute_script done [10:38:35]execute_script returns [10:38:35]free content buf [10:38:35]Sock 8.Close socket [10:38:35]Sock 8.Thread stoped [10:38:39]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [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]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:19]accept exits with 9 [10:40:19]New connection [10:40:19]New thread 3067313508 created [10:40:19]Thread 3067456868 joined [10:40:19]Waiting for new connection... [10:40:19] Sock 9.Parse request [10:40:19]Sock 9.Check first char [10:40:19]Sock 9.First char is OK [10:40:19]request: POST /json_proto HTTP/1.0 [10:40:19]Method: POST [10:40:19]URL: /json_proto [10:40:19]Method is POST - this is cgi request [10:40:19]url: /json_proto [10:40:19]query_string will be loaded in cgi processing [10:40:19]execute_cgi json_proto POST (null) [10:40:19]execute_cgi path=json_proto method=POST [10:40:19]POST find Content-Length [10:40:19]Host: 172.17.50.3:8080 [10:40:19]Content-Length: 682 [10:40:19]Content-Type: application/json [10:40:19] [10:40:19]POST finish read [10:40:19]Found Content-Length = 682 [10:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 22.010, "sum" : 856.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]execute_script... [10:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 22.010, "sum" : 856.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 856.00, "payments": [ { "type": 0, "sum" : 856.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]POST & json_proto [10:40:19]process_json_proto [10:40:19]json parsed OK: [10:40:19]protocol is kg_v1.0 [10:40:19]action value=close_receipt [10:40:19]process_action close_receipt [10:40:19]cmd_close_receipt [10:40:19]MH_GetDate [10:40:19]Write to MH i2c: F0 00 00 33 2D 4F [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: F0 09 00 33 2D 00 96 2F 16 67 6B 98 1E 66 21 [10:40:19]GetLastDocTimeStamp 1729507114 [10:40:19]current date 1729507222 [10:40:19]FM_GetShiftState [10:40:19]SAM_PROTO_GetShiftState [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 13 01 00 [10:40:19]Write to MH i2c: E2 08 00 34 2D 80 13 01 00 00 00 00 00 DE [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0E 00 34 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0A [10:40:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_GetShiftState done [10:40:19]FM_GetShiftState done [10:40:19]opened in 1729469703 [10:40:19]opened+sec_in_day 1729556103 [10:40:19]quantity*price = 85618 [10:40:19]sum+1 = 85620 [10:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 856.00 Внесено: 856.00 СДАЧА: 0.00 НСП 1% : 7.58 НДС 12% : 90.92 Наличными: 856.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 147 21.10.2024 10:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69757 ФПД: 12500077808429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69757&fm=12500077808429&tin=02508201610067®Number=0000000000156251&sum=85600 [10:40:20]StoreToDocumentArchive [10:40:20]shift 194 fd 69757 [10:40:20]save to /storage/0194/doc_00069757 [10:40:20]save last doc name /storage/0194/doc_00069757 to /storage/kkm_last_doc_name [10:40:20]save OK [10:40:20]Clear old archive folders... [10:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:40:20]tlvbuf is 00C74D50 [10:40:20]SAM_PROTO_ClearQueue [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 09 00 00 [10:40:20]Write to MH i2c: E2 08 00 41 2D 80 09 00 00 00 00 00 00 E0 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_ClearQueue done [10:40:20]KKMCreateOFDPacket [10:40:20]OFDProtocolAddRootSTLVToBuf [10:40:20]FM_MakeSignedData [10:40:20]FM_MakeSignedData [10:40:20]SAM_PROTO_SignData [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 01 02 [10:40:20]Write to MH i2c: E2 08 00 42 2D 80 0D 01 02 00 00 00 00 E8 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=255 [10:40:20]MH_SAM_APDU [10:40:20]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 33 FF 03 08 00 03 FA 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 10 01 00 35 04 06 00 0B 5E [10:40:20]Write to MH i2c: E2 02 01 43 2D 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 33 FF 03 08 00 03 FA 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 10 01 00 35 04 06 00 0B 5E 00 00 77 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=9 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 02 02 04 66 B2 8B 2D [10:40:20]Write to MH i2c: E2 0C 00 44 2D 80 0D 02 02 04 00 66 B2 8B 2D 00 00 C3 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 03 00 44 2D 00 90 00 E5 [10:40:20]RAPDU: 90 00 [10:40:20]wFMCommunicate OK [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 0D 03 02 [10:40:20]Write to MH i2c: E2 08 00 45 2D 80 0D 03 02 00 00 00 00 ED [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0B 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0B 00 45 2D 00 49 8C AB 33 3A 18 54 7B 90 00 C2 [10:40:20]RAPDU: 49 8C AB 33 3A 18 54 7B 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_SignData done [10:40:20]FM_MakeSignedData done [10:40:20]CreateOFDProtocolMessage [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 11 00 00 [10:40:20]Write to MH i2c: E2 08 00 46 2D 80 11 00 00 00 00 00 00 ED [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 46 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [10:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:40:20]wFMCommunicate OK [10:40:20]CreateOFDProtocolMessage done [10:40:20]OFDSenderStorePacket 69757 [10:40:20]StoreOFDPacket docnum=69757 [10:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 97 92 06 01 44 2E 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 33 FF 03 08 00 03 FA 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 10 01 00 35 04 06 00 0B 5E 66 B2 8B 2D 49 8C AB 33 3A 18 54 7B [10:40:20]CheckFolder [10:40:20]dirname=/storage/ofd_packets [10:40:20]CheckFolder done [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00069757 [10:40:20]NVStorageSaveData ofd_packets/00069757 [10:40:20]File name is /storage/ofd_packets/00069757 [10:40:20]Write 300 bytes [10:40:20]NVStorageSaveData done [10:40:20]OFDSenderStorePacket done [10:40:20]KKMCreateOFDPacket done [10:40:20]NVStorageSaveData kkm_last_timestamp [10:40:20]File name is /storage/kkm_last_timestamp [10:40:20]Write 4 bytes [10:40:20]NVStorageSaveData done [10:40:20]ExternCall_PrintAddStr [10:40:20]wPrintStart [10:40:20]Write to MH i2c: 01 00 00 47 2D 74 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 47 2D 00 00 00 00 00 FF 0F 89 [10:40:21]RasterBufferAndPrint [10:40:21]line Счет N : (1)2885498 [10:40:21]line ИНН: 02508201610067 [10:40:21]line Контрольно-Кассовый Чек [10:40:21]line ПРОДАЖА [10:40:21]line ТРК (МРК, ГНК) : 71 [10:40:21]line Товар: 2711129700 [10:40:21]line ГАЗ-К-3 [10:40:21]line 22.010 * 38.90 [10:40:21]line = 856.19 [10:40:21]line НДС 12% НСП 1% [10:40:21]line > о реализуемом товаре [10:40:21]line ОКРУГЛЕНИЕ: -0.19 [10:40:21]line ИТОГО: 856.00 [10:40:21]line Внесено: 856.00 [10:40:21]line СДАЧА: 0.00 [10:40:21]line НСП 1% : 7.58 [10:40:21]line НДС 12% : 90.92 [10:40:21]line Наличными: 856.00 [10:40:21]line Безнал.: 0.00 [10:40:21]line Место: АЗС № 85 "Партнер Нефть" [10:40:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:40:21]line СНО: Общий режим [10:40:21]line Чек 147 21.10.2024 10:40 [10:40:21]line Смена: 194 ФФД: 1.0 [10:40:21]line ЗНМ: 0300000167 [10:40:21]line РНМ: 0000000000156251 [10:40:21]line Версия ККМ: v1.0 [10:40:21]line ФМ: 0000000000963346 [10:40:21]line ФД: 69757 [10:40:21]line ФПД: 12500077808429 [10:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69757&fm=12500077808429&tin=02508201610067®Number=0000000000156251&sum=85600 [10:40:21]OFD Sender: Processing packet 69757 [packets to send 18, broken 17] [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00069757 [10:40:21]OFD Sender: To server: pG, [10:40:21]CommunicateWithHost lk.salyk.kg:30040 [10:40:21]ConnectInit lk.salyk.kg [10:40:21]written 0, free lines is 4095 [10:40:21]Connected sock=10 [10:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 97 92 06 01 44 2E 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 33 FF 03 08 00 03 FA 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 23 00 00 00 00 07 04 06 00 60 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 96 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 10 01 00 35 04 06 00 0B 5E 66 B2 8B 2D 49 8C AB 33 3A 18 54 7B [10:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 63 47 00 22 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 10 01 00 F4 03 04 00 3A D9 15 67 B6 04 01 00 00 7C 2C 42 08 8C 05 E7 E6 [10:40:21]CommunicateWithHost err = 0 [10:40:21]CheckOFDResponse [10:40:21]1017 (14) - 77093643461234 [10:40:21]1041 (16) - 0000000000963346 [10:40:21]1040 (4) - 69757 [10:40:21]1012 (4) - 21.10.2024 04:31 [10:40:21]1206 (1) - 0 [10:40:21]OFD Sender: Remove packet 69757 [10:40:21]ProducePacketName [10:40:21]name=ofd_packets/00069757 [10:40:21]NVStorageDeleteData [10:40:21]Write to MH i2c: 01 00 00 72 2D 9F [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 F8 0C AA [10:40:21]RasterBufferAndPrint [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]written 0, free lines is 3330 [10:40:21]MH_Cut [10:40:21]Write to MH i2c: D1 01 00 79 2D 01 78 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 79 2D 00 77 [10:40:21]Write to MH i2c: 01 00 00 7A 2D A7 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:22]OFD Sender: No OFD packet to send [10:40:22]*** Cut start [10:40:22]*** Partial cut [10:40:22]*** CUTSNS_PIN = 1 [10:40:22]*** CUTSNS_PIN = 0 [10:40:22]*** Brake cut motor [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]*** Stop cut motor [10:40:23]*** Cut end [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 FF 0F BC [10:40:23]process_action close_receipt done [10:40:23]requested_data is exist [10:40:23]produce_requested_data [10:40:23]requested_item fm.sn is exist - process it [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 11 00 00 [10:40:23]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [10:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:40:23]wFMCommunicate OK [10:40:23]requested_item fd.num is exist - process it [10:40:23]SAM_PROTO_GetFieldsCounters [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 00 00 [10:40:23]Write to MH i2c: E2 08 00 7C 2D 80 13 00 00 00 00 00 00 25 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 7C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:23]wFMCommunicate OK [10:40:23]SAM_PROTO_GetFieldsCounters done [10:40:23]requested_item shift.num is exist - process it [10:40:23]requested_item shift.opened is exist - process it [10:40:23]req_shift_opened [10:40:23]FM_GetShiftState [10:40:23]SAM_PROTO_GetShiftState [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 01 00 [10:40:23]Write to MH i2c: E2 08 00 7D 2D 80 13 01 00 00 00 00 00 27 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 0E 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 0E 00 7D 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 53 [10:40:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:40:23]wFMCommunicate OK [10:40:23]SAM_PROTO_GetShiftState done [10:40:23]FM_GetShiftState done [10:40:23]req_shift_opened done [10:40:23]requested_item shift.open_date is exist - process it [10:40:23]req_shift_open_date [10:40:23]req_shift_open_date done [10:40:23]produce_requested_data done [10:40:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69757,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:40:23]process_action_free close_receipt [10:40:23]json_value_free [10:40:23]json_value_free done [10:40:23]process_json_proto returns [10:40:23]Send response to host [10:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69757,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:40:23]free response buf [10:40:23]execute_script done [10:40:23]execute_script returns [10:40:23]free content buf [10:40:23]Sock 9.Close socket [10:40:23]Sock 9.Thread stoped [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:27]accept exits with 8 [10:41:27]New connection [10:41:27]New thread 3067456868 created [10:41:27]Thread 3067313508 joined [10:41:27]Waiting for new connection... [10:41:27] Sock 8.Parse request [10:41:27]Sock 8.Check first char [10:41:27]Sock 8.First char is OK [10:41:27]request: POST /json_proto HTTP/1.0 [10:41:27]Method: POST [10:41:27]URL: /json_proto [10:41:27]Method is POST - this is cgi request [10:41:27]url: /json_proto [10:41:27]query_string will be loaded in cgi processing [10:41:27]execute_cgi json_proto POST (null) [10:41:27]execute_cgi path=json_proto method=POST [10:41:27]POST find Content-Length [10:41:27]Host: 172.17.50.3:8080 [10:41:27]Content-Length: 684 [10:41:27]Content-Type: application/json [10:41:27] [10:41:27]POST finish read [10:41:27]Found Content-Length = 684 [10:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:27]execute_script... [10:41:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:27]POST & json_proto [10:41:27]process_json_proto [10:41:27]json parsed OK: [10:41:27]protocol is kg_v1.0 [10:41:27]action value=close_receipt [10:41:27]process_action close_receipt [10:41:27]cmd_close_receipt [10:41:27]MH_GetDate [10:41:27]Write to MH i2c: F0 00 00 7E 2D 9A [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 09 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: F0 09 00 7E 2D 00 DA 2F 16 67 6B 98 1E 66 B0 [10:41:27]GetLastDocTimeStamp 1729507222 [10:41:27]current date 1729507290 [10:41:27]FM_GetShiftState [10:41:27]SAM_PROTO_GetShiftState [10:41:27]wFMCommunicate request_size=4 [10:41:27]MH_SAM_APDU [10:41:27]CAPDU: 80 13 01 00 [10:41:27]Write to MH i2c: E2 08 00 7F 2D 80 13 01 00 00 00 00 00 29 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:27]Read from MH i2c: E2 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: E2 0E 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: E2 0E 00 7F 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 55 [10:41:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:41:27]wFMCommunicate OK [10:41:27]SAM_PROTO_GetShiftState done [10:41:27]FM_GetShiftState done [10:41:27]opened in 1729469703 [10:41:27]opened+sec_in_day 1729556103 [10:41:27]quantity*price = 70020 [10:41:27]sum+1 = 70021 [10:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 148 21.10.2024 10:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69758 ФПД: 257547952432490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69758&fm=257547952432490&tin=02508201610067®Number=0000000000156251&sum=70000 [10:41:28]StoreToDocumentArchive [10:41:28]shift 194 fd 69758 [10:41:28]save to /storage/0194/doc_00069758 [10:41:28]save last doc name /storage/0194/doc_00069758 to /storage/kkm_last_doc_name [10:41:28]save OK [10:41:28]Clear old archive folders... [10:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:41:28]tlvbuf is 00C92800 [10:41:28]SAM_PROTO_ClearQueue [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 09 00 00 [10:41:28]Write to MH i2c: E2 08 00 8C 2D 80 09 00 00 00 00 00 00 2B [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_ClearQueue done [10:41:28]KKMCreateOFDPacket [10:41:28]OFDProtocolAddRootSTLVToBuf [10:41:28]FM_MakeSignedData [10:41:28]FM_MakeSignedData [10:41:28]SAM_PROTO_SignData [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 01 02 [10:41:28]Write to MH i2c: E2 08 00 8D 2D 80 0D 01 02 00 00 00 00 33 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=255 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 94 00 00 00 F4 03 04 00 DA 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 10 01 [10:41:28]Write to MH i2c: E2 02 01 8E 2D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 94 00 00 00 F4 03 04 00 DA 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 10 01 00 00 16 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 8E 2D 00 90 00 2F [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=16 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EA 3D 0E 37 A5 6A [10:41:28]Write to MH i2c: E2 13 00 8F 2D 80 0D 02 02 0B 00 00 35 04 06 00 EA 3D 0E 37 A5 6A 00 00 06 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 03 02 [10:41:28]Write to MH i2c: E2 08 00 90 2D 80 0D 03 02 00 00 00 00 38 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 90 2D 00 4B 38 42 41 18 0A 0E 59 90 00 C8 [10:41:28]RAPDU: 4B 38 42 41 18 0A 0E 59 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_SignData done [10:41:28]FM_MakeSignedData done [10:41:28]CreateOFDProtocolMessage [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 11 00 00 [10:41:28]Write to MH i2c: E2 08 00 91 2D 80 11 00 00 00 00 00 00 38 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:29]Read from MH i2c: E2 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 17 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 17 00 91 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [10:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:41:29]wFMCommunicate OK [10:41:29]CreateOFDProtocolMessage done [10:41:29]OFDSenderStorePacket 69758 [10:41:29]StoreOFDPacket docnum=69758 [10:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 06 A9 0D 01 DA A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 94 00 00 00 F4 03 04 00 DA 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 10 01 00 35 04 06 00 EA 3D 0E 37 A5 6A 4B 38 42 41 18 0A 0E 59 [10:41:29]CheckFolder [10:41:29]dirname=/storage/ofd_packets [10:41:29]CheckFolder done [10:41:29]ProducePacketName [10:41:29]name=ofd_packets/00069758 [10:41:29]NVStorageSaveData ofd_packets/00069758 [10:41:29]File name is /storage/ofd_packets/00069758 [10:41:29]Write 307 bytes [10:41:29]NVStorageSaveData done [10:41:29]OFDSenderStorePacket done [10:41:29]KKMCreateOFDPacket done [10:41:29]NVStorageSaveData kkm_last_timestamp [10:41:29]File name is /storage/kkm_last_timestamp [10:41:29]Write 4 bytes [10:41:29]NVStorageSaveData done [10:41:29]OFD Sender: Processing packet 69758 [packets to send 18, broken 17] [10:41:29]ProducePacketName [10:41:29]name=ofd_packets/00069758 [10:41:29]OFD Sender: To server: pG, [10:41:29]CommunicateWithHost lk.salyk.kg:30040 [10:41:29]ConnectInit lk.salyk.kg [10:41:29]ExternCall_PrintAddStr [10:41:29]wPrintStart [10:41:29]Write to MH i2c: 01 00 00 92 2D BF [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 92 2D 00 00 00 00 00 FF 0F D4 [10:41:29]RasterBufferAndPrint [10:41:29]line Счет N : (1)2885499 [10:41:29]line ИНН: 02508201610067 [10:41:29]line Контрольно-Кассовый Чек [10:41:29]line ПРОДАЖА [10:41:29]line ТРК (МРК, ГНК) : 21 [10:41:29]line Товар: 2710194240 [10:41:29]line D-ENERGY Дт-К-2 [10:41:29]line 9.070 * 77.20 [10:41:29]line = 700.20 [10:41:29]line НДС 12% НСП 1% [10:41:29]line > о реализуемом товаре [10:41:29]line ОКРУГЛЕНИЕ: -0.20 [10:41:29]line ИТОГО: 700.00 [10:41:29]line Внесено: 700.00 [10:41:29]line СДАЧА: 0.00 [10:41:29]line НСП 1% : 6.20 [10:41:29]line НДС 12% : 74.36 [10:41:29]line Наличными: 700.00 [10:41:29]line Безнал.: 0.00 [10:41:29]line Место: АЗС № 85 "Партнер Нефть" [10:41:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:41:29]line СНО: Общий режим [10:41:29]line Чек 148 21.10.2024 10:41 [10:41:29]line Смена: 194 ФФД: 1.0 [10:41:29]line ЗНМ: 0300000167 [10:41:29]line РНМ: 0000000000156251 [10:41:29]line Версия ККМ: v1.0 [10:41:29]line ФМ: 0000000000963346 [10:41:29]line ФД: 69758 [10:41:29]line ФПД: 257547952432490 [10:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69758&fm=257547952432490&tin=02508201610067®Number=0000000000156251&sum=70000 [10:41:29]Connected sock=11 [10:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 06 A9 0D 01 DA A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 94 00 00 00 F4 03 04 00 DA 2F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 10 01 00 35 04 06 00 EA 3D 0E 37 A5 6A 4B 38 42 41 18 0A 0E 59 [10:41:29]written 0, free lines is 4095 [10:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 44 7C 47 00 1C 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 39 36 33 33 34 36 10 04 04 00 7E 10 01 00 F4 03 04 00 7E D9 15 67 B6 04 01 00 00 1C 69 D5 CB 84 20 01 7C [10:41:29]CommunicateWithHost err = 0 [10:41:29]CheckOFDResponse [10:41:29]1017 (14) - 77093643461234 [10:41:29]1041 (16) - 0000000000963346 [10:41:29]1040 (4) - 69758 [10:41:29]1012 (4) - 21.10.2024 04:33 [10:41:29]1206 (1) - 0 [10:41:29]OFD Sender: Remove packet 69758 [10:41:29]ProducePacketName [10:41:29]name=ofd_packets/00069758 [10:41:29]NVStorageDeleteData [10:41:29]Write to MH i2c: 01 00 00 BD 2D EA [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FD 0C FA [10:41:29]RasterBufferAndPrint [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]written 0, free lines is 3334 [10:41:29]MH_Cut [10:41:29]Write to MH i2c: D1 01 00 C4 2D 01 C3 [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 01 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: D1 01 00 C4 2D 00 C2 [10:41:29]Write to MH i2c: 01 00 00 C5 2D F2 [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:30]OFD Sender: No OFD packet to send [10:41:30]*** Cut start [10:41:30]*** Partial cut [10:41:30]*** CUTSNS_PIN = 1 [10:41:30]*** CUTSNS_PIN = 0 [10:41:30]*** Brake cut motor [10:41:31]Read from MH i2c: 01 [10:41:31]MH_I2C_Read... [10:41:31]*** Stop cut motor [10:41:31]*** Cut end [10:41:31]Read from MH i2c: 01 07 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [10:41:31]process_action close_receipt done [10:41:31]requested_data is exist [10:41:31]produce_requested_data [10:41:31]requested_item fm.sn is exist - process it [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 11 00 00 [10:41:31]Write to MH i2c: E2 08 00 C6 2D 80 11 00 00 00 00 00 00 6D [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 C6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [10:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:41:31]wFMCommunicate OK [10:41:31]requested_item fd.num is exist - process it [10:41:31]SAM_PROTO_GetFieldsCounters [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 00 00 [10:41:31]Write to MH i2c: E2 08 00 C7 2D 80 13 00 00 00 00 00 00 70 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 62 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 62 00 C7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_GetFieldsCounters done [10:41:31]requested_item shift.num is exist - process it [10:41:31]requested_item shift.opened is exist - process it [10:41:31]req_shift_opened [10:41:31]FM_GetShiftState [10:41:31]SAM_PROTO_GetShiftState [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 01 00 [10:41:31]Write to MH i2c: E2 08 00 C8 2D 80 13 01 00 00 00 00 00 72 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0E 00 C8 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9E [10:41:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_GetShiftState done [10:41:31]FM_GetShiftState done [10:41:31]req_shift_opened done [10:41:31]requested_item shift.open_date is exist - process it [10:41:31]req_shift_open_date [10:41:31]req_shift_open_date done [10:41:31]produce_requested_data done [10:41:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69758,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:41:31]process_action_free close_receipt [10:41:31]json_value_free [10:41:31]json_value_free done [10:41:31]process_json_proto returns [10:41:31]Send response to host [10:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69758,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:41:31]free response buf [10:41:31]execute_script done [10:41:31]execute_script returns [10:41:31]free content buf [10:41:31]Sock 8.Close socket [10:41:31]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:45:58]accept exits with 9 [10:45:58]New connection [10:45:58]New thread 3067313508 created [10:45:58]Thread 3067456868 joined [10:45:58]Waiting for new connection... [10:45:58] Sock 9.Parse request [10:45:58]Sock 9.Check first char [10:45:58]Sock 9.First char is OK [10:45:58]request: POST /json_proto HTTP/1.0 [10:45:58]Method: POST [10:45:58]URL: /json_proto [10:45:58]Method is POST - this is cgi request [10:45:58]url: /json_proto [10:45:58]query_string will be loaded in cgi processing [10:45:58]execute_cgi json_proto POST (null) [10:45:58]execute_cgi path=json_proto method=POST [10:45:58]POST find Content-Length [10:45:58]Host: 172.17.50.3:8080 [10:45:58]Content-Length: 801 [10:45:58]Content-Type: application/json [10:45:58] [10:45:58]POST finish read [10:45:58]Found Content-Length = 801 [10:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885501", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3947794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:58]execute_script... [10:45: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)2885501", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3947794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:58]POST & json_proto [10:45:58]process_json_proto [10:45:58]json parsed OK: [10:45:58]protocol is kg_v1.0 [10:45:58]action value=close_receipt [10:45:58]process_action close_receipt [10:45:58]cmd_close_receipt [10:45:58]MH_GetDate [10:45:58]Write to MH i2c: F0 00 00 C9 2D E5 [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: F0 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: F0 09 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: F0 09 00 C9 2D 00 E9 30 16 67 6B 98 1E 66 0B [10:45:58]GetLastDocTimeStamp 1729507290 [10:45:58]current date 1729507561 [10:45:58]FM_GetShiftState [10:45:58]SAM_PROTO_GetShiftState [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 13 01 00 [10:45:58]Write to MH i2c: E2 08 00 CA 2D 80 13 01 00 00 00 00 00 74 [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:58]Read from MH i2c: E2 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 0E 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 0E 00 CA 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A0 [10:45:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:45:58]wFMCommunicate OK [10:45:58]SAM_PROTO_GetShiftState done [10:45:58]FM_GetShiftState done [10:45:58]opened in 1729469703 [10:45:58]opened+sec_in_day 1729556103 [10:45:58]quantity*price = 0 [10:45:58]sum+1 = 1 [10:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 149 21.10.2024 10:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3947794 ФМ: 0000000000963346 ФД: 69759 ФПД: 30603251546112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104601&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69759&fm=30603251546112&tin=02508201610067®Number=0000000000156251&sum=0 [10:45:59]StoreToDocumentArchive [10:45:59]shift 194 fd 69759 [10:45:59]save to /storage/0194/doc_00069759 [10:45:59]save last doc name /storage/0194/doc_00069759 to /storage/kkm_last_doc_name [10:45:59]save OK [10:45:59]Clear old archive folders... [10:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:59]tlvbuf is 00C41630 [10:45:59]SAM_PROTO_ClearQueue [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 09 00 00 [10:45:59]Write to MH i2c: E2 08 00 D7 2D 80 09 00 00 00 00 00 00 76 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [10:45:59]RAPDU: 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_ClearQueue done [10:45:59]KKMCreateOFDPacket [10:45:59]OFDProtocolAddRootSTLVToBuf [10:45:59]FM_MakeSignedData [10:45:59]FM_MakeSignedData [10:45:59]SAM_PROTO_SignData [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 0D 01 02 [10:45:59]Write to MH i2c: E2 08 00 D8 2D 80 0D 01 02 00 00 00 00 7E [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 D8 2D 00 90 00 79 [10:45:59]RAPDU: 90 00 [10:45:59]wFMCommunicate OK [10:45:59]wFMCommunicate request_size=255 [10:45:59]MH_SAM_APDU [10:45: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E9 30 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 10 01 00 35 04 06 00 1B [10:45:59]Write to MH i2c: E2 02 01 D9 2D 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E9 30 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 10 01 00 35 04 06 00 1B 00 00 88 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 D9 2D 00 90 00 7A [10:45:59]RAPDU: 90 00 [10:45:59]wFMCommunicate OK [10:45:59]wFMCommunicate request_size=10 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 0D 02 02 05 D5 5F EF F8 00 [10:45:59]Write to MH i2c: E2 0D 00 DA 2D 80 0D 02 02 05 00 D5 5F EF F8 00 00 00 A6 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 03 00 DA 2D 00 90 00 7B [10:45:59]RAPDU: 90 00 [10:45:59]wFMCommunicate OK [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 0D 03 02 [10:45:59]Write to MH i2c: E2 08 00 DB 2D 80 0D 03 02 00 00 00 00 83 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0B 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0B 00 DB 2D 00 88 54 24 57 05 D7 8F EE 90 00 34 [10:45:59]RAPDU: 88 54 24 57 05 D7 8F EE 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_SignData done [10:45:59]FM_MakeSignedData done [10:45:59]CreateOFDProtocolMessage [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 11 00 00 [10:45:59]Write to MH i2c: E2 08 00 DC 2D 80 11 00 00 00 00 00 00 83 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 17 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 17 00 DC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [10:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:45:59]wFMCommunicate OK [10:45:59]CreateOFDProtocolMessage done [10:45:59]OFDSenderStorePacket 69759 [10:45:59]StoreOFDPacket docnum=69759 [10:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A6 67 07 01 3C 30 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E9 30 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 10 01 00 35 04 06 00 1B D5 5F EF F8 00 88 54 24 57 05 D7 8F EE [10:45:59]CheckFolder [10:45:59]dirname=/storage/ofd_packets [10:45:59]CheckFolder done [10:45:59]ProducePacketName [10:45:59]name=ofd_packets/00069759 [10:45:59]NVStorageSaveData ofd_packets/00069759 [10:45:59]File name is /storage/ofd_packets/00069759 [10:45:59]Write 301 bytes [10:45:59]NVStorageSaveData done [10:45:59]OFDSenderStorePacket done [10:45:59]KKMCreateOFDPacket done [10:45:59]NVStorageSaveData kkm_last_timestamp [10:45:59]File name is /storage/kkm_last_timestamp [10:45:59]Write 4 bytes [10:45:59]NVStorageSaveData done [10:45:59]ExternCall_PrintAddStr [10:45:59]wPrintStart [10:45:59]Write to MH i2c: 01 00 00 DD 2D 0A [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: 01 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: 01 07 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: 01 07 00 DD 2D 00 00 00 00 00 FF 0F 1F [10:45:59]RasterBufferAndPrint [10:45:59]line Счет N : (1)2885501 [10:45:59]line ИНН: 02508201610067 [10:45:59]line Контрольно-Кассовый Чек [10:45:59]line ПРОДАЖА [10:45:59]line ТРК (МРК, ГНК) : 32 [10:45:59]line Товар: 2710124130 [10:45:59]line Аи-92-К-5 [10:45:59]line 20.000 * 0.00 [10:45:59]line = 0.00 [10:45:59]line НДС 12% НСП 1% [10:45:59]line > о реализуемом товаре [10:45:59]line ИТОГО: 0.00 [10:45:59]line НСП 1% : 0.00 [10:45:59]line НДС 12% : 0.00 [10:45:59]line Наличными: 0.00 [10:45:59]line Безнал.: 0.00 [10:45:59]line Место: АЗС № 85 "Партнер Нефть" [10:45:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:45:59]line СНО: Общий режим [10:45:59]line Чек 149 21.10.2024 10:46 [10:45:59]line Смена: 194 ФФД: 1.0 [10:45:59]line ЗНМ: 0300000167 [10:45:59]line РНМ: 0000000000156251 [10:45:59]line Версия ККМ: v1.0 [10:45:59]line Талоны: Топливные Талоны [10:45:59]line 3947794 [10:45:59]line ФМ: 0000000000963346 [10:45:59]line ФД: 69759 [10:45:59]line ФПД: 30603251546112 [10:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104601&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69759&fm=30603251546112&tin=02508201610067®Number=0000000000156251&sum=0 [10:46:00]OFD Sender: Processing packet 69759 [packets to send 18, broken 17] [10:46:00]ProducePacketName [10:46:00]name=ofd_packets/00069759 [10:46:00]OFD Sender: To server: pG, [10:46:00]CommunicateWithHost lk.salyk.kg:30040 [10:46:00]ConnectInit lk.salyk.kg [10:46:00]written 0, free lines is 4095 [10:46:00]Connected sock=10 [10:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A6 67 07 01 3C 30 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E9 30 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 10 01 00 35 04 06 00 1B D5 5F EF F8 00 88 54 24 57 05 D7 8F EE [10:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 16 90 47 00 DB 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 10 01 00 F4 03 04 00 8D DA 15 67 B6 04 01 00 00 02 B8 23 54 7F 32 7B 29 [10:46:00]CommunicateWithHost err = 0 [10:46:00]CheckOFDResponse [10:46:00]1017 (14) - 77093643461234 [10:46:00]1041 (16) - 0000000000963346 [10:46:00]1040 (4) - 69759 [10:46:00]1012 (4) - 21.10.2024 04:37 [10:46:00]1206 (1) - 0 [10:46:00]OFD Sender: Remove packet 69759 [10:46:00]ProducePacketName [10:46:00]name=ofd_packets/00069759 [10:46:00]NVStorageDeleteData [10:46:00]Write to MH i2c: 01 00 00 07 2E 35 [10:46:00]Write i2c OK [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 07 00 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: 01 07 00 07 2E 00 00 00 00 00 08 0D 51 [10:46:00]RasterBufferAndPrint [10:46:00]line [10:46:00]line [10:46:00]line [10:46:00]line [10:46:00]line [10:46:00]written 0, free lines is 3343 [10:46:00]MH_Cut [10:46:00]Write to MH i2c: D1 01 00 0E 2E 01 0E [10:46:00]Write i2c OK [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: D1 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: D1 01 00 [10:46:00]MH_I2C_Read... [10:46:00]Read from MH i2c: D1 01 00 0E 2E 00 0D [10:46:00]Write to MH i2c: 01 00 00 0F 2E 3D [10:46:00]Write i2c OK [10:46:00]MH_I2C_Read... [10:46:01]OFD Sender: No OFD packet to send [10:46:01]*** Cut start [10:46:01]*** Partial cut [10:46:01]*** CUTSNS_PIN = 1 [10:46:01]*** CUTSNS_PIN = 0 [10:46:01]*** Brake cut motor [10:46:01]Read from MH i2c: 01 [10:46:02]MH_I2C_Read... [10:46:02]*** Stop cut motor [10:46:02]*** Cut end [10:46:02]Read from MH i2c: 01 07 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: 01 07 00 0F 2E 00 00 00 00 00 FF 0F 52 [10:46:02]process_action close_receipt done [10:46:02]requested_data is exist [10:46:02]produce_requested_data [10:46:02]requested_item fm.sn is exist - process it [10:46:02]wFMCommunicate request_size=4 [10:46:02]MH_SAM_APDU [10:46:02]CAPDU: 80 11 00 00 [10:46:02]Write to MH i2c: E2 08 00 10 2E 80 11 00 00 00 00 00 00 B8 [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:02]Read from MH i2c: E2 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 17 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 17 00 10 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [10:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:46:02]wFMCommunicate OK [10:46:02]requested_item fd.num is exist - process it [10:46:02]SAM_PROTO_GetFieldsCounters [10:46:02]wFMCommunicate request_size=4 [10:46:02]MH_SAM_APDU [10:46:02]CAPDU: 80 13 00 00 [10:46:02]Write to MH i2c: E2 08 00 11 2E 80 13 00 00 00 00 00 00 BB [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:02]Read from MH i2c: E2 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 62 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 62 00 11 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:02]wFMCommunicate OK [10:46:02]SAM_PROTO_GetFieldsCounters done [10:46:02]requested_item shift.num is exist - process it [10:46:02]requested_item shift.opened is exist - process it [10:46:02]req_shift_opened [10:46:02]FM_GetShiftState [10:46:02]SAM_PROTO_GetShiftState [10:46:02]wFMCommunicate request_size=4 [10:46:02]MH_SAM_APDU [10:46:02]CAPDU: 80 13 01 00 [10:46:02]Write to MH i2c: E2 08 00 12 2E 80 13 01 00 00 00 00 00 BD [10:46:02]Write i2c OK [10:46:02]MH_I2C_Read... [10:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:02]Read from MH i2c: E2 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 [10:46:02]MH_I2C_Read... [10:46:02]Read from MH i2c: E2 0E 00 12 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [10:46:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:46:02]wFMCommunicate OK [10:46:02]SAM_PROTO_GetShiftState done [10:46:02]FM_GetShiftState done [10:46:02]req_shift_opened done [10:46:02]requested_item shift.open_date is exist - process it [10:46:02]req_shift_open_date [10:46:02]req_shift_open_date done [10:46:02]produce_requested_data done [10:46:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69759,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:46:02]process_action_free close_receipt [10:46:02]json_value_free [10:46:02]json_value_free done [10:46:02]process_json_proto returns [10:46:02]Send response to host [10:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69759,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:46:02]free response buf [10:46:02]execute_script done [10:46:02]execute_script returns [10:46:02]free content buf [10:46:02]Sock 9.Close socket [10:46:02]Sock 9.Thread stoped [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]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:23]accept exits with 8 [10:47:23]New connection [10:47:23]New thread 3067456868 created [10:47:23]Thread 3067313508 joined [10:47:23]Waiting for new connection... [10:47:23] Sock 8.Parse request [10:47:23]Sock 8.Check first char [10:47:23]Sock 8.First char is OK [10:47:23]request: POST /json_proto HTTP/1.0 [10:47:23]Method: POST [10:47:23]URL: /json_proto [10:47:23]Method is POST - this is cgi request [10:47:23]url: /json_proto [10:47:23]query_string will be loaded in cgi processing [10:47:23]execute_cgi json_proto POST (null) [10:47:23]execute_cgi path=json_proto method=POST [10:47:23]POST find Content-Length [10:47:23]Host: 172.17.50.3:8080 [10:47:23]Content-Length: 773 [10:47:23]Content-Type: application/json [10:47:23] [10:47:23]POST finish read [10:47:23]Found Content-Length = 773 [10:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.840, "sum" : 1433.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1433.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:23]execute_script... [10:47:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 36.840, "sum" : 1433.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1433.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:23]POST & json_proto [10:47:23]process_json_proto [10:47:23]json parsed OK: [10:47:23]protocol is kg_v1.0 [10:47:23]action value=close_receipt [10:47:23]process_action close_receipt [10:47:23]cmd_close_receipt [10:47:23]MH_GetDate [10:47:23]Write to MH i2c: F0 00 00 13 2E 30 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: F0 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: F0 09 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: F0 09 00 13 2E 00 3F 31 16 67 6B 98 1E 66 AD [10:47:23]GetLastDocTimeStamp 1729507561 [10:47:23]current date 1729507647 [10:47:23]FM_GetShiftState [10:47:23]SAM_PROTO_GetShiftState [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 13 01 00 [10:47:23]Write to MH i2c: E2 08 00 14 2E 80 13 01 00 00 00 00 00 BF [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0E 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0E 00 14 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EB [10:47:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:47:23]wFMCommunicate OK [10:47:23]SAM_PROTO_GetShiftState done [10:47:23]FM_GetShiftState done [10:47:23]opened in 1729469703 [10:47:23]opened+sec_in_day 1729556103 [10:47:23]quantity*price = 143307 [10:47:23]sum+1 = 143309 [10:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1433.08 НСП 1% : 12.68 НДС 12% : 152.18 Наличными: 0.00 Безнал.: 1433.08 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 150 21.10.2024 10:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69760 ФПД: 264386925439622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69760&fm=264386925439622&tin=02508201610067®Number=0000000000156251&sum=143308 [10:47:25]StoreToDocumentArchive [10:47:25]shift 194 fd 69760 [10:47:25]save to /storage/0194/doc_00069760 [10:47:25]save last doc name /storage/0194/doc_00069760 to /storage/kkm_last_doc_name [10:47:25]save OK [10:47:25]Clear old archive folders... [10:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:47:25]tlvbuf is B6E231D0 [10:47:25]SAM_PROTO_ClearQueue [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 09 00 00 [10:47:25]Write to MH i2c: E2 08 00 21 2E 80 09 00 00 00 00 00 00 C1 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_ClearQueue done [10:47:25]KKMCreateOFDPacket [10:47:25]OFDProtocolAddRootSTLVToBuf [10:47:25]FM_MakeSignedData [10:47:25]FM_MakeSignedData [10:47:25]SAM_PROTO_SignData [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 0D 01 02 [10:47:25]Write to MH i2c: E2 08 00 22 2E 80 0D 01 02 00 00 00 00 C9 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]wFMCommunicate request_size=255 [10:47:25]MH_SAM_APDU [10:47: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 33 FF 03 08 00 03 E8 8F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 CC 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 3F 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 10 01 00 35 04 06 00 F0 75 [10:47:25]Write to MH i2c: E2 02 01 23 2E 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 33 FF 03 08 00 03 E8 8F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 CC 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 3F 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 10 01 00 35 04 06 00 F0 75 00 00 0A [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 23 2E 00 90 00 C5 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]wFMCommunicate request_size=9 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 0D 02 02 04 60 C6 2A 86 [10:47:25]Write to MH i2c: E2 0C 00 24 2E 80 0D 02 02 04 00 60 C6 2A 86 00 00 AA [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 03 00 24 2E 00 90 00 C6 [10:47:25]RAPDU: 90 00 [10:47:25]wFMCommunicate OK [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 0D 03 02 [10:47:25]Write to MH i2c: E2 08 00 25 2E 80 0D 03 02 00 00 00 00 CE [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 0B 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 0B 00 25 2E 00 1A 90 73 9D 2C 4E 7B F2 90 00 70 [10:47:25]RAPDU: 1A 90 73 9D 2C 4E 7B F2 90 00 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_SignData done [10:47:25]FM_MakeSignedData done [10:47:25]CreateOFDProtocolMessage [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 11 00 00 [10:47:25]Write to MH i2c: E2 08 00 26 2E 80 11 00 00 00 00 00 00 CE [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 17 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 17 00 26 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [10:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:25]wFMCommunicate OK [10:47:25]CreateOFDProtocolMessage done [10:47:25]OFDSenderStorePacket 69760 [10:47:25]StoreOFDPacket docnum=69760 [10:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4F EF 06 01 5C AD 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 33 FF 03 08 00 03 E8 8F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 CC 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 3F 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 10 01 00 35 04 06 00 F0 75 60 C6 2A 86 1A 90 73 9D 2C 4E 7B F2 [10:47:25]CheckFolder [10:47:25]dirname=/storage/ofd_packets [10:47:25]CheckFolder done [10:47:25]ProducePacketName [10:47:25]name=ofd_packets/00069760 [10:47:25]NVStorageSaveData ofd_packets/00069760 [10:47:25]File name is /storage/ofd_packets/00069760 [10:47:25]Write 300 bytes [10:47:25]NVStorageSaveData done [10:47:25]OFDSenderStorePacket done [10:47:25]KKMCreateOFDPacket done [10:47:25]NVStorageSaveData kkm_last_timestamp [10:47:25]File name is /storage/kkm_last_timestamp [10:47:25]Write 4 bytes [10:47:25]NVStorageSaveData done [10:47:25]ExternCall_PrintAddStr [10:47:25]wPrintStart [10:47:25]Write to MH i2c: 01 00 00 27 2E 55 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: 01 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: 01 07 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: 01 07 00 27 2E 00 00 00 00 00 FF 0F 6A [10:47:25]RasterBufferAndPrint [10:47:25]line Счет N : (1)2885500 [10:47:25]line ИНН: 02508201610067 [10:47:25]line Контрольно-Кассовый Чек [10:47:25]line ПРОДАЖА [10:47:25]line ТРК (МРК, ГНК) : 71 [10:47:25]line Товар: 2711129700 [10:47:25]line ГАЗ-К-3 [10:47:25]line 36.840 * 38.90 [10:47:25]line = 1433.08 [10:47:25]line НДС 12% НСП 1% [10:47:25]line > о реализуемом товаре [10:47:25]line ИТОГО: 1433.08 [10:47:25]line НСП 1% : 12.68 [10:47:25]line НДС 12% : 152.18 [10:47:25]line Наличными: 0.00 [10:47:25]line Безнал.: 1433.08 [10:47:25]line Место: АЗС № 85 "Партнер Нефть" [10:47:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:47:25]line СНО: Общий режим [10:47:25]line Чек 150 21.10.2024 10:47 [10:47:25]line Смена: 194 ФФД: 1.0 [10:47:25]line ЗНМ: 0300000167 [10:47:25]line РНМ: 0000000000156251 [10:47:25]line Версия ККМ: v1.0 [10:47:25]line Платежная система: Mbank [10:47:25]line ФМ: 0000000000963346 [10:47:25]line ФД: 69760 [10:47:25]line ФПД: 264386925439622 [10:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69760&fm=264386925439622&tin=02508201610067®Number=0000000000156251&sum=143308 [10:47:25]OFD Sender: Processing packet 69760 [packets to send 18, broken 17] [10:47:25]ProducePacketName [10:47:25]name=ofd_packets/00069760 [10:47:25]OFD Sender: To server: pG, [10:47:25]CommunicateWithHost lk.salyk.kg:30040 [10:47:25]ConnectInit lk.salyk.kg [10:47:25]written 0, free lines is 4095 [10:47:26]Connected sock=10 [10:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4F EF 06 01 5C AD 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 33 FF 03 08 00 03 E8 8F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 CC 2F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 2F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 2F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 3F 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 10 01 00 35 04 06 00 F0 75 60 C6 2A 86 1A 90 73 9D 2C 4E 7B F2 [10:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3C 97 47 00 10 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 10 01 00 F4 03 04 00 E3 DA 15 67 B6 04 01 00 00 88 7A D4 98 C4 58 69 5C [10:47:26]CommunicateWithHost err = 0 [10:47:26]CheckOFDResponse [10:47:26]1017 (14) - 77093643461234 [10:47:26]1041 (16) - 0000000000963346 [10:47:26]1040 (4) - 69760 [10:47:26]1012 (4) - 21.10.2024 04:38 [10:47:26]1206 (1) - 0 [10:47:26]OFD Sender: Remove packet 69760 [10:47:26]ProducePacketName [10:47:26]name=ofd_packets/00069760 [10:47:26]NVStorageDeleteData [10:47:26]Write to MH i2c: 01 00 00 50 2E 7E [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: 01 07 00 50 2E 00 00 00 00 00 20 0D B2 [10:47:26]RasterBufferAndPrint [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]line [10:47:26]written 0, free lines is 3366 [10:47:26]MH_Cut [10:47:26]Write to MH i2c: D1 01 00 57 2E 01 57 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 01 00 [10:47:26]MH_I2C_Read... [10:47:26]Read from MH i2c: D1 01 00 57 2E 00 56 [10:47:26]Write to MH i2c: 01 00 00 58 2E 86 [10:47:26]Write i2c OK [10:47:26]MH_I2C_Read... [10:47:26]OFD Sender: No OFD packet to send [10:47:27]*** Cut start [10:47:27]*** Partial cut [10:47:27]*** CUTSNS_PIN = 1 [10:47:27]*** CUTSNS_PIN = 0 [10:47:27]*** Brake cut motor [10:47:27]Read from MH i2c: 01 [10:47:27]MH_I2C_Read... [10:47:27]*** Stop cut motor [10:47:27]*** Cut end [10:47:27]Read from MH i2c: 01 07 00 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: 01 07 00 58 2E 00 00 00 00 00 FF 0F 9B [10:47:27]process_action close_receipt done [10:47:27]requested_data is exist [10:47:27]produce_requested_data [10:47:27]requested_item fm.sn is exist - process it [10:47:27]wFMCommunicate request_size=4 [10:47:27]MH_SAM_APDU [10:47:27]CAPDU: 80 11 00 00 [10:47:27]Write to MH i2c: E2 08 00 59 2E 80 11 00 00 00 00 00 00 01 [10:47:27]Write i2c OK [10:47:27]MH_I2C_Read... [10:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:27]Read from MH i2c: E2 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 17 00 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 17 00 59 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [10:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:47:27]wFMCommunicate OK [10:47:27]requested_item fd.num is exist - process it [10:47:27]SAM_PROTO_GetFieldsCounters [10:47:27]wFMCommunicate request_size=4 [10:47:27]MH_SAM_APDU [10:47:27]CAPDU: 80 13 00 00 [10:47:27]Write to MH i2c: E2 08 00 5A 2E 80 13 00 00 00 00 00 00 04 [10:47:27]Write i2c OK [10:47:27]MH_I2C_Read... [10:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:27]Read from MH i2c: E2 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 62 00 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 62 00 5A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [10:47:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:27]wFMCommunicate OK [10:47:27]SAM_PROTO_GetFieldsCounters done [10:47:27]requested_item shift.num is exist - process it [10:47:27]requested_item shift.opened is exist - process it [10:47:27]req_shift_opened [10:47:27]FM_GetShiftState [10:47:27]SAM_PROTO_GetShiftState [10:47:27]wFMCommunicate request_size=4 [10:47:27]MH_SAM_APDU [10:47:27]CAPDU: 80 13 01 00 [10:47:27]Write to MH i2c: E2 08 00 5B 2E 80 13 01 00 00 00 00 00 06 [10:47:27]Write i2c OK [10:47:27]MH_I2C_Read... [10:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:27]Read from MH i2c: E2 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 0E 00 [10:47:27]MH_I2C_Read... [10:47:27]Read from MH i2c: E2 0E 00 5B 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [10:47:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:47:27]wFMCommunicate OK [10:47:27]SAM_PROTO_GetShiftState done [10:47:27]FM_GetShiftState done [10:47:27]req_shift_opened done [10:47:27]requested_item shift.open_date is exist - process it [10:47:27]req_shift_open_date [10:47:27]req_shift_open_date done [10:47:27]produce_requested_data done [10:47:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69760,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:47:27]process_action_free close_receipt [10:47:27]json_value_free [10:47:27]json_value_free done [10:47:27]process_json_proto returns [10:47:27]Send response to host [10:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69760,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:47:27]free response buf [10:47:27]execute_script done [10:47:27]execute_script returns [10:47:27]free content buf [10:47:27]Sock 8.Close socket [10:47:27]Sock 8.Thread stoped [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [10:49:34]accept exits with 9 [10:49:34]New connection [10:49:34]New thread 3067313508 created [10:49:34]Thread 3067456868 joined [10:49:34]Waiting for new connection... [10:49:34] Sock 9.Parse request [10:49:34]Sock 9.Check first char [10:49:34]Sock 9.First char is OK [10:49:34]request: POST /json_proto HTTP/1.0 [10:49:34]Method: POST [10:49:34]URL: /json_proto [10:49:34]Method is POST - this is cgi request [10:49:34]url: /json_proto [10:49:34]query_string will be loaded in cgi processing [10:49:34]execute_cgi json_proto POST (null) [10:49:34]execute_cgi path=json_proto method=POST [10:49:34]POST find Content-Length [10:49:34]Host: 172.17.50.3:8080 [10:49:34]Content-Length: 793 [10:49:34]Content-Type: application/json [10:49:34] [10:49:34]POST finish read [10:49:34]Found Content-Length = 793 [10:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 17.520, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:34]execute_script... [10:49: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)2885502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 17.520, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:34]POST & json_proto [10:49:34]process_json_proto [10:49:34]json parsed OK: [10:49:34]protocol is kg_v1.0 [10:49:34]action value=close_receipt [10:49:34]process_action close_receipt [10:49:34]cmd_close_receipt [10:49:34]MH_GetDate [10:49:34]Write to MH i2c: F0 00 00 5C 2E 79 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: F0 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: F0 09 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: F0 09 00 5C 2E 00 C1 31 16 67 6B 98 1E 66 78 [10:49:34]GetLastDocTimeStamp 1729507647 [10:49:34]current date 1729507777 [10:49:34]FM_GetShiftState [10:49:34]SAM_PROTO_GetShiftState [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 13 01 00 [10:49:34]Write to MH i2c: E2 08 00 5D 2E 80 13 01 00 00 00 00 00 08 [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 0E 00 5D 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 34 [10:49:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]SAM_PROTO_GetShiftState done [10:49:34]FM_GetShiftState done [10:49:34]opened in 1729469703 [10:49:34]opened+sec_in_day 1729556103 [10:49:34]quantity*price = 0 [10:49:34]sum+1 = 1 [10:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 151 21.10.2024 10:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 74592 ФМ: 0000000000963346 ФД: 69761 ФПД: 62054314853607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69761&fm=62054314853607&tin=02508201610067®Number=0000000000156251&sum=0 [10:49:35]StoreToDocumentArchive [10:49:35]shift 194 fd 69761 [10:49:35]save to /storage/0194/doc_00069761 [10:49:35]save last doc name /storage/0194/doc_00069761 to /storage/kkm_last_doc_name [10:49:35]save OK [10:49:35]Clear old archive folders... [10:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:35]tlvbuf is B6FD3AE0 [10:49:35]SAM_PROTO_ClearQueue [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 09 00 00 [10:49:35]Write to MH i2c: E2 08 00 6A 2E 80 09 00 00 00 00 00 00 0A [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_ClearQueue done [10:49:35]KKMCreateOFDPacket [10:49:35]OFDProtocolAddRootSTLVToBuf [10:49:35]FM_MakeSignedData [10:49:35]FM_MakeSignedData [10:49:35]SAM_PROTO_SignData [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 0D 01 02 [10:49:35]Write to MH i2c: E2 08 00 6B 2E 80 0D 01 02 00 00 00 00 12 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [10:49:35]RAPDU: 90 00 [10:49:35]wFMCommunicate OK [10:49:35]wFMCommunicate request_size=255 [10:49:35]MH_SAM_APDU [10:49:35]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 70 44 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 97 00 00 00 F4 03 04 00 C1 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 10 01 00 35 04 06 00 38 [10:49:35]Write to MH i2c: E2 02 01 6C 2E 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 70 44 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 97 00 00 00 F4 03 04 00 C1 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 10 01 00 35 04 06 00 38 00 00 60 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=10 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 02 02 05 70 25 64 C4 E7 [10:49:36]Write to MH i2c: E2 0D 00 6D 2E 80 0D 02 02 05 00 70 25 64 C4 E7 00 00 C3 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [10:49:36]RAPDU: 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 0D 03 02 [10:49:36]Write to MH i2c: E2 08 00 6E 2E 80 0D 03 02 00 00 00 00 17 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0B 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 0B 00 6E 2E 00 64 84 67 06 01 53 6E 72 90 00 A1 [10:49:36]RAPDU: 64 84 67 06 01 53 6E 72 90 00 [10:49:36]wFMCommunicate OK [10:49:36]SAM_PROTO_SignData done [10:49:36]FM_MakeSignedData done [10:49:36]CreateOFDProtocolMessage [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 11 00 00 [10:49:36]Write to MH i2c: E2 08 00 6F 2E 80 11 00 00 00 00 00 00 17 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 17 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 17 00 6F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [10:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:36]wFMCommunicate OK [10:49:36]CreateOFDProtocolMessage done [10:49:36]OFDSenderStorePacket 69761 [10:49:36]StoreOFDPacket docnum=69761 [10:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A A2 07 01 68 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 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 97 00 00 00 F4 03 04 00 C1 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 10 01 00 35 04 06 00 38 70 25 64 C4 E7 64 84 67 06 01 53 6E 72 [10:49:36]CheckFolder [10:49:36]dirname=/storage/ofd_packets [10:49:36]CheckFolder done [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00069761 [10:49:36]NVStorageSaveData ofd_packets/00069761 [10:49:36]File name is /storage/ofd_packets/00069761 [10:49:36]Write 301 bytes [10:49:36]NVStorageSaveData done [10:49:36]OFDSenderStorePacket done [10:49:36]KKMCreateOFDPacket done [10:49:36]NVStorageSaveData kkm_last_timestamp [10:49:36]File name is /storage/kkm_last_timestamp [10:49:36]Write 4 bytes [10:49:36]NVStorageSaveData done [10:49:36]ExternCall_PrintAddStr [10:49:36]wPrintStart [10:49:36]Write to MH i2c: 01 00 00 70 2E 9E [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 70 2E 00 00 00 00 00 FF 0F B3 [10:49:36]RasterBufferAndPrint [10:49:36]line Счет N : (1)2885502 [10:49:36]line ИНН: 02508201610067 [10:49:36]line Контрольно-Кассовый Чек [10:49:36]line ПРОДАЖА [10:49:36]line ТРК (МРК, ГНК) : 23 [10:49:36]line Товар: 2710124500 [10:49:36]line Аи-95-К-5 [10:49:36]line 17.520 * 0.00 [10:49:36]line = 0.00 [10:49:36]line НДС 12% НСП 1% [10:49:36]line > о реализуемом товаре [10:49:36]line ИТОГО: 0.00 [10:49:36]line НСП 1% : 0.00 [10:49:36]line НДС 12% : 0.00 [10:49:36]line Наличными: 0.00 [10:49:36]line Безнал.: 0.00 [10:49:36]line Место: АЗС № 85 "Партнер Нефть" [10:49:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:49:36]line СНО: Общий режим [10:49:36]line Чек 151 21.10.2024 10:49 [10:49:36]line Смена: 194 ФФД: 1.0 [10:49:36]line ЗНМ: 0300000167 [10:49:36]line РНМ: 0000000000156251 [10:49:36]line Версия ККМ: v1.0 [10:49:36]line Талоны: Топливная Карта [10:49:36]line 74592 [10:49:36]line ФМ: 0000000000963346 [10:49:36]line ФД: 69761 [10:49:36]line ФПД: 62054314853607 [10:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104937&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69761&fm=62054314853607&tin=02508201610067®Number=0000000000156251&sum=0 [10:49:36]written 0, free lines is 4095 [10:49:36]OFD Sender: Processing packet 69761 [packets to send 18, broken 17] [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00069761 [10:49:36]OFD Sender: To server: pG, [10:49:36]CommunicateWithHost lk.salyk.kg:30040 [10:49:36]ConnectInit lk.salyk.kg [10:49:36]Connected sock=10 [10:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A A2 07 01 68 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 44 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 97 00 00 00 F4 03 04 00 C1 31 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 10 01 00 35 04 06 00 38 70 25 64 C4 E7 64 84 67 06 01 53 6E 72 [10:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 7E 47 00 72 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 10 01 00 F4 03 04 00 65 DB 15 67 B6 04 01 00 00 5A 20 93 2F 61 43 80 C9 [10:49:36]CommunicateWithHost err = 0 [10:49:36]CheckOFDResponse [10:49:36]1017 (14) - 77093643461234 [10:49:36]1041 (16) - 0000000000963346 [10:49:36]1040 (4) - 69761 [10:49:36]1012 (4) - 21.10.2024 04:41 [10:49:36]1206 (1) - 0 [10:49:36]OFD Sender: Remove packet 69761 [10:49:36]ProducePacketName [10:49:36]name=ofd_packets/00069761 [10:49:36]NVStorageDeleteData [10:49:36]Write to MH i2c: 01 00 00 9A 2E C8 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: 01 07 00 9A 2E 00 00 00 00 00 F7 0C D2 [10:49:36]RasterBufferAndPrint [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]line [10:49:36]written 0, free lines is 3328 [10:49:36]MH_Cut [10:49:36]Write to MH i2c: D1 01 00 A1 2E 01 A1 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 01 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: D1 01 00 A1 2E 00 A0 [10:49:36]Write to MH i2c: 01 00 00 A2 2E D0 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:37]OFD Sender: No OFD packet to send [10:49:37]*** Cut start [10:49:37]*** Partial cut [10:49:37]*** CUTSNS_PIN = 1 [10:49:37]*** CUTSNS_PIN = 0 [10:49:37]*** Brake cut motor [10:49:38]Read from MH i2c: 01 [10:49:38]MH_I2C_Read... [10:49:38]*** Stop cut motor [10:49:38]*** Cut end [10:49:38]Read from MH i2c: 01 07 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: 01 07 00 A2 2E 00 00 00 00 00 FF 0F E5 [10:49:38]process_action close_receipt done [10:49:38]requested_data is exist [10:49:38]produce_requested_data [10:49:38]requested_item fm.sn is exist - process it [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 11 00 00 [10:49:38]Write to MH i2c: E2 08 00 A3 2E 80 11 00 00 00 00 00 00 4B [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 17 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 17 00 A3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [10:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:38]wFMCommunicate OK [10:49:38]requested_item fd.num is exist - process it [10:49:38]SAM_PROTO_GetFieldsCounters [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 13 00 00 [10:49:38]Write to MH i2c: E2 08 00 A4 2E 80 13 00 00 00 00 00 00 4E [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 62 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 62 00 A4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [10:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:38]wFMCommunicate OK [10:49:38]SAM_PROTO_GetFieldsCounters done [10:49:38]requested_item shift.num is exist - process it [10:49:38]requested_item shift.opened is exist - process it [10:49:38]req_shift_opened [10:49:38]FM_GetShiftState [10:49:38]SAM_PROTO_GetShiftState [10:49:38]wFMCommunicate request_size=4 [10:49:38]MH_SAM_APDU [10:49:38]CAPDU: 80 13 01 00 [10:49:38]Write to MH i2c: E2 08 00 A5 2E 80 13 01 00 00 00 00 00 50 [10:49:38]Write i2c OK [10:49:38]MH_I2C_Read... [10:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:38]Read from MH i2c: E2 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 0E 00 [10:49:38]MH_I2C_Read... [10:49:38]Read from MH i2c: E2 0E 00 A5 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7C [10:49:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:49:38]wFMCommunicate OK [10:49:38]SAM_PROTO_GetShiftState done [10:49:38]FM_GetShiftState done [10:49:38]req_shift_opened done [10:49:38]requested_item shift.open_date is exist - process it [10:49:38]req_shift_open_date [10:49:38]req_shift_open_date done [10:49:38]produce_requested_data done [10:49:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69761,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:49:38]process_action_free close_receipt [10:49:38]json_value_free [10:49:38]json_value_free done [10:49:38]process_json_proto returns [10:49:38]Send response to host [10:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69761,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:49:38]free response buf [10:49:38]execute_script done [10:49:38]execute_script returns [10:49:38]free content buf [10:49:38]Sock 9.Close socket [10:49:38]Sock 9.Thread stoped [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:41]accept exits with 8 [10:52:41]New connection [10:52:41]New thread 3067456868 created [10:52:41]Thread 3067313508 joined [10:52:41]Waiting for new connection... [10:52:41] Sock 8.Parse request [10:52:41]Sock 8.Check first char [10:52:41]Sock 8.First char is OK [10:52:41]request: POST /json_proto HTTP/1.0 [10:52:41]Method: POST [10:52:41]URL: /json_proto [10:52:41]Method is POST - this is cgi request [10:52:41]url: /json_proto [10:52:41]query_string will be loaded in cgi processing [10:52:41]execute_cgi json_proto POST (null) [10:52:41]execute_cgi path=json_proto method=POST [10:52:41]POST find Content-Length [10:52:41]Host: 172.17.50.3:8080 [10:52:41]Content-Length: 776 [10:52:41]Content-Type: application/json [10:52:41] [10:52:41]POST finish read [10:52:41]Found Content-Length = 776 [10:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:41]execute_script... [10:52: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)2885503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:41]POST & json_proto [10:52:41]process_json_proto [10:52:41]json parsed OK: [10:52:41]protocol is kg_v1.0 [10:52:41]action value=close_receipt [10:52:41]process_action close_receipt [10:52:41]cmd_close_receipt [10:52:41]MH_GetDate [10:52:41]Write to MH i2c: F0 00 00 A6 2E C3 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 09 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 09 00 A6 2E 00 7C 32 16 67 6B 98 1E 66 7E [10:52:41]GetLastDocTimeStamp 1729507777 [10:52:41]current date 1729507964 [10:52:41]FM_GetShiftState [10:52:41]SAM_PROTO_GetShiftState [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 13 01 00 [10:52:41]Write to MH i2c: E2 08 00 A7 2E 80 13 01 00 00 00 00 00 52 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 0E 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 0E 00 A7 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7E [10:52:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:52:41]wFMCommunicate OK [10:52:41]SAM_PROTO_GetShiftState done [10:52:41]FM_GetShiftState done [10:52:41]opened in 1729469703 [10:52:41]opened+sec_in_day 1729556103 [10:52:41]quantity*price = 100051 [10:52:41]sum+1 = 100052 [10:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 152 21.10.2024 10:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69762 ФПД: 228937231187459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69762&fm=228937231187459&tin=02508201610067®Number=0000000000156251&sum=100051 [10:52:42]StoreToDocumentArchive [10:52:42]shift 194 fd 69762 [10:52:42]save to /storage/0194/doc_00069762 [10:52:42]save last doc name /storage/0194/doc_00069762 to /storage/kkm_last_doc_name [10:52:42]save OK [10:52:42]Clear old archive folders... [10:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:52:42]tlvbuf is 00CF1C40 [10:52:42]SAM_PROTO_ClearQueue [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 09 00 00 [10:52:42]Write to MH i2c: E2 08 00 B4 2E 80 09 00 00 00 00 00 00 54 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]SAM_PROTO_ClearQueue done [10:52:42]KKMCreateOFDPacket [10:52:42]OFDProtocolAddRootSTLVToBuf [10:52:42]FM_MakeSignedData [10:52:42]FM_MakeSignedData [10:52:42]SAM_PROTO_SignData [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 01 02 [10:52:42]Write to MH i2c: E2 08 00 B5 2E 80 0D 01 02 00 00 00 00 5C [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]wFMCommunicate request_size=255 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 10 01 [10:52:42]Write to MH i2c: E2 02 01 B6 2E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 10 01 00 00 2C [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]wFMCommunicate request_size=16 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D0 37 9A 57 3E 03 [10:52:42]Write to MH i2c: E2 13 00 B7 2E 80 0D 02 02 0B 00 00 35 04 06 00 D0 37 9A 57 3E 03 00 00 ED [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:42]Read from MH i2c: E2 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 [10:52:42]MH_I2C_Read... [10:52:42]Read from MH i2c: E2 03 00 B7 2E 00 90 00 59 [10:52:42]RAPDU: 90 00 [10:52:42]wFMCommunicate OK [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 0D 03 02 [10:52:42]Write to MH i2c: E2 08 00 B8 2E 80 0D 03 02 00 00 00 00 61 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0B 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0B 00 B8 2E 00 08 76 92 AE F4 43 FF C7 90 00 1D [10:52:43]RAPDU: 08 76 92 AE F4 43 FF C7 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_SignData done [10:52:43]FM_MakeSignedData done [10:52:43]CreateOFDProtocolMessage [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 11 00 00 [10:52:43]Write to MH i2c: E2 08 00 B9 2E 80 11 00 00 00 00 00 00 61 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 B9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [10:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:52:43]wFMCommunicate OK [10:52:43]CreateOFDProtocolMessage done [10:52:43]OFDSenderStorePacket 69762 [10:52:43]StoreOFDPacket docnum=69762 [10:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 69 11 0D 01 FB E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 10 01 00 35 04 06 00 D0 37 9A 57 3E 03 08 76 92 AE F4 43 FF C7 [10:52:43]CheckFolder [10:52:43]dirname=/storage/ofd_packets [10:52:43]CheckFolder done [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00069762 [10:52:43]NVStorageSaveData ofd_packets/00069762 [10:52:43]File name is /storage/ofd_packets/00069762 [10:52:43]Write 307 bytes [10:52:43]NVStorageSaveData done [10:52:43]OFDSenderStorePacket done [10:52:43]KKMCreateOFDPacket done [10:52:43]NVStorageSaveData kkm_last_timestamp [10:52:43]File name is /storage/kkm_last_timestamp [10:52:43]Write 4 bytes [10:52:43]NVStorageSaveData done [10:52:43]ExternCall_PrintAddStr [10:52:43]wPrintStart [10:52:43]Write to MH i2c: 01 00 00 BA 2E E8 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 BA 2E 00 00 00 00 00 FF 0F FD [10:52:43]RasterBufferAndPrint [10:52:43]line Счет N : (1)2885503 [10:52:43]line ИНН: 02508201610067 [10:52:43]line Контрольно-Кассовый Чек [10:52:43]line ПРОДАЖА [10:52:43]line ТРК (МРК, ГНК) : 41 [10:52:43]line Товар: 2710194240 [10:52:43]line D-ENERGY Дт-К-2 [10:52:43]line 12.960 * 77.20 [10:52:43]line = 1000.51 [10:52:43]line НДС 12% НСП 1% [10:52:43]line > о реализуемом товаре [10:52:43]line ИТОГО: 1000.51 [10:52:43]line НСП 1% : 8.85 [10:52:43]line НДС 12% : 106.25 [10:52:43]line Наличными: 0.00 [10:52:43]line Безнал.: 1000.51 [10:52:43]line Место: АЗС № 85 "Партнер Нефть" [10:52:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:52:43]line СНО: Общий режим [10:52:43]line Чек 152 21.10.2024 10:52 [10:52:43]line Смена: 194 ФФД: 1.0 [10:52:43]line ЗНМ: 0300000167 [10:52:43]line РНМ: 0000000000156251 [10:52:43]line Версия ККМ: v1.0 [10:52:43]line Платежная система: Mbank [10:52:43]line ФМ: 0000000000963346 [10:52:43]line ФД: 69762 [10:52:43]line ФПД: 228937231187459 [10:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69762&fm=228937231187459&tin=02508201610067®Number=0000000000156251&sum=100051 [10:52:43]OFD Sender: Processing packet 69762 [packets to send 18, broken 17] [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00069762 [10:52:43]OFD Sender: To server: pG, [10:52:43]CommunicateWithHost lk.salyk.kg:30040 [10:52:43]ConnectInit lk.salyk.kg [10:52:43]written 0, free lines is 4095 [10:52:43]Connected sock=10 [10:52:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 69 11 0D 01 FB E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 10 01 00 35 04 06 00 D0 37 9A 57 3E 03 08 76 92 AE F4 43 FF C7 [10:52:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 DE 47 00 12 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 10 01 00 F4 03 04 00 20 DC 15 67 B6 04 01 00 00 5B B9 CA 52 D7 6E 17 1D [10:52:43]CommunicateWithHost err = 0 [10:52:43]CheckOFDResponse [10:52:43]1017 (14) - 77093643461234 [10:52:43]1041 (16) - 0000000000963346 [10:52:43]1040 (4) - 69762 [10:52:43]1012 (4) - 21.10.2024 04:44 [10:52:43]1206 (1) - 0 [10:52:43]OFD Sender: Remove packet 69762 [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00069762 [10:52:43]NVStorageDeleteData [10:52:43]Write to MH i2c: 01 00 00 E3 2E 11 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 E3 2E 00 00 00 00 00 25 0D 4A [10:52:43]RasterBufferAndPrint [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]line [10:52:43]written 0, free lines is 3371 [10:52:43]MH_Cut [10:52:43]Write to MH i2c: D1 01 00 EA 2E 01 EA [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 01 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: D1 01 00 EA 2E 00 E9 [10:52:43]Write to MH i2c: 01 00 00 EB 2E 19 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:44]OFD Sender: No OFD packet to send [10:52:44]*** Cut start [10:52:44]*** Partial cut [10:52:44]*** CUTSNS_PIN = 1 [10:52:44]*** CUTSNS_PIN = 0 [10:52:44]*** Brake cut motor [10:52:45]Read from MH i2c: 01 [10:52:45]MH_I2C_Read... [10:52:45]*** Stop cut motor [10:52:45]*** Cut end [10:52:45]Read from MH i2c: 01 07 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: 01 07 00 EB 2E 00 00 00 00 00 FF 0F 2E [10:52:45]process_action close_receipt done [10:52:45]requested_data is exist [10:52:45]produce_requested_data [10:52:45]requested_item fm.sn is exist - process it [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 11 00 00 [10:52:45]Write to MH i2c: E2 08 00 EC 2E 80 11 00 00 00 00 00 00 94 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 17 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 17 00 EC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [10:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:52:45]wFMCommunicate OK [10:52:45]requested_item fd.num is exist - process it [10:52:45]SAM_PROTO_GetFieldsCounters [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 00 00 [10:52:45]Write to MH i2c: E2 08 00 ED 2E 80 13 00 00 00 00 00 00 97 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 62 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 62 00 ED 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetFieldsCounters done [10:52:45]requested_item shift.num is exist - process it [10:52:45]requested_item shift.opened is exist - process it [10:52:45]req_shift_opened [10:52:45]FM_GetShiftState [10:52:45]SAM_PROTO_GetShiftState [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 01 00 [10:52:45]Write to MH i2c: E2 08 00 EE 2E 80 13 01 00 00 00 00 00 99 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 EE 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [10:52:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetShiftState done [10:52:45]FM_GetShiftState done [10:52:45]req_shift_opened done [10:52:45]requested_item shift.open_date is exist - process it [10:52:45]req_shift_open_date [10:52:45]req_shift_open_date done [10:52:45]produce_requested_data done [10:52:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69762,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:52:45]process_action_free close_receipt [10:52:45]json_value_free [10:52:45]json_value_free done [10:52:45]process_json_proto returns [10:52:45]Send response to host [10:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69762,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:52:45]free response buf [10:52:45]execute_script done [10:52:45]execute_script returns [10:52:45]free content buf [10:52:45]Sock 8.Close socket [10:52:45]Sock 8.Thread stoped [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:19]accept exits with 9 [10:53:19]New connection [10:53:19]New thread 3067313508 created [10:53:19]Thread 3067456868 joined [10:53:19]Waiting for new connection... [10:53:19] Sock 9.Parse request [10:53:19]Sock 9.Check first char [10:53:19]Sock 9.First char is OK [10:53:19]request: POST /json_proto HTTP/1.0 [10:53:19]Method: POST [10:53:19]URL: /json_proto [10:53:19]Method is POST - this is cgi request [10:53:19]url: /json_proto [10:53:19]query_string will be loaded in cgi processing [10:53:19]execute_cgi json_proto POST (null) [10:53:19]execute_cgi path=json_proto method=POST [10:53:19]POST find Content-Length [10:53:19]Host: 172.17.50.3:8080 [10:53:19]Content-Length: 770 [10:53:19]Content-Type: application/json [10:53:19] [10:53:19]POST finish read [10:53:19]Found Content-Length = 770 [10:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.050, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2600.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:19]execute_script... [10:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.050, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2600.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:19]POST & json_proto [10:53:19]process_json_proto [10:53:19]json parsed OK: [10:53:19]protocol is kg_v1.0 [10:53:19]action value=close_receipt [10:53:19]process_action close_receipt [10:53:19]cmd_close_receipt [10:53:19]MH_GetDate [10:53:19]Write to MH i2c: F0 00 00 EF 2E 0C [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 09 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 09 00 EF 2E 00 A2 32 16 67 6B 98 1E 66 ED [10:53:19]GetLastDocTimeStamp 1729507964 [10:53:19]current date 1729508002 [10:53:19]FM_GetShiftState [10:53:19]SAM_PROTO_GetShiftState [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 13 01 00 [10:53:19]Write to MH i2c: E2 08 00 F0 2E 80 13 01 00 00 00 00 00 9B [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 F0 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C7 [10:53:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_GetShiftState done [10:53:19]FM_GetShiftState done [10:53:19]opened in 1729469703 [10:53:19]opened+sec_in_day 1729556103 [10:53:19]quantity*price = 260071 [10:53:19]sum+1 = 260072 [10:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.71 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 0.00 Безнал.: 2600.71 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 153 21.10.2024 10:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69763 ФПД: 161455015954250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105322&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69763&fm=161455015954250&tin=02508201610067®Number=0000000000156251&sum=260071 [10:53:20]StoreToDocumentArchive [10:53:20]shift 194 fd 69763 [10:53:20]save to /storage/0194/doc_00069763 [10:53:20]save last doc name /storage/0194/doc_00069763 to /storage/kkm_last_doc_name [10:53:20]save OK [10:53:20]Clear old archive folders... [10:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:20]tlvbuf is 00CF16F0 [10:53:20]SAM_PROTO_ClearQueue [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 09 00 00 [10:53:20]Write to MH i2c: E2 08 00 FD 2E 80 09 00 00 00 00 00 00 9D [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 FD 2E 00 90 00 9F [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_ClearQueue done [10:53:20]KKMCreateOFDPacket [10:53:20]OFDProtocolAddRootSTLVToBuf [10:53:20]FM_MakeSignedData [10:53:20]FM_MakeSignedData [10:53:20]SAM_PROTO_SignData [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 01 02 [10:53:20]Write to MH i2c: E2 08 00 FE 2E 80 0D 01 02 00 00 00 00 A5 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 FE 2E 00 90 00 A0 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=255 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 10 01 00 35 04 06 00 92 [10:53:20]Write to MH i2c: E2 02 01 FF 2E 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 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 10 01 00 35 04 06 00 92 00 00 FE [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 FF 2E 00 90 00 A1 [10:53:21]RAPDU: 90 00 [10:53:21]wFMCommunicate OK [10:53:21]wFMCommunicate request_size=10 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 0D 02 02 05 D7 AC DF 87 4A [10:53:21]Write to MH i2c: E2 0D 00 00 2F 80 0D 02 02 05 00 D7 AC DF 87 4A 00 00 E6 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 00 2F 00 90 00 A3 [10:53:21]RAPDU: 90 00 [10:53:21]wFMCommunicate OK [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 0D 03 02 [10:53:21]Write to MH i2c: E2 08 00 01 2F 80 0D 03 02 00 00 00 00 AB [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0B 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0B 00 01 2F 00 94 AF D2 9E F0 94 50 F2 90 00 25 [10:53:21]RAPDU: 94 AF D2 9E F0 94 50 F2 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_SignData done [10:53:21]FM_MakeSignedData done [10:53:21]CreateOFDProtocolMessage [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 11 00 00 [10:53:21]Write to MH i2c: E2 08 00 02 2F 80 11 00 00 00 00 00 00 AB [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 02 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [10:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:53:21]wFMCommunicate OK [10:53:21]CreateOFDProtocolMessage done [10:53:21]OFDSenderStorePacket 69763 [10:53:21]StoreOFDPacket docnum=69763 [10:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 1E 07 01 AF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 10 01 00 35 04 06 00 92 D7 AC DF 87 4A 94 AF D2 9E F0 94 50 F2 [10:53:21]CheckFolder [10:53:21]dirname=/storage/ofd_packets [10:53:21]CheckFolder done [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00069763 [10:53:21]NVStorageSaveData ofd_packets/00069763 [10:53:21]File name is /storage/ofd_packets/00069763 [10:53:21]Write 301 bytes [10:53:21]NVStorageSaveData done [10:53:21]OFDSenderStorePacket done [10:53:21]KKMCreateOFDPacket done [10:53:21]NVStorageSaveData kkm_last_timestamp [10:53:21]File name is /storage/kkm_last_timestamp [10:53:21]Write 4 bytes [10:53:21]NVStorageSaveData done [10:53:21]ExternCall_PrintAddStr [10:53:21]wPrintStart [10:53:21]Write to MH i2c: 01 00 00 03 2F 32 [10:53:21]OFD Sender: Processing packet 69763 [packets to send 18, broken 17] [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00069763 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]OFD Sender: To server: pG, [10:53:21]CommunicateWithHost lk.salyk.kg:30040 [10:53:21]ConnectInit lk.salyk.kg [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 03 2F 00 00 00 00 00 FF 0F 47 [10:53:21]RasterBufferAndPrint [10:53:21]line Счет N : (1)2885504 [10:53:21]line ИНН: 02508201610067 [10:53:21]line Контрольно-Кассовый Чек [10:53:21]line ПРОДАЖА [10:53:21]line ТРК (МРК, ГНК) : 13 [10:53:21]line Товар: 2710124500 [10:53:21]line Аи-95-К-5 [10:53:21]line 35.050 * 74.20 [10:53:21]line = 2600.71 [10:53:21]line НДС 12% НСП 1% [10:53:21]line > о реализуемом товаре [10:53:21]line ИТОГО: 2600.71 [10:53:21]line НСП 1% : 23.01 [10:53:21]line НДС 12% : 276.18 [10:53:21]line Наличными: 0.00 [10:53:21]line Безнал.: 2600.71 [10:53:21]line Место: АЗС № 85 "Партнер Нефть" [10:53:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:53:21]line СНО: Общий режим [10:53:21]line Чек 153 21.10.2024 10:53 [10:53:21]line Смена: 194 ФФД: 1.0 [10:53:21]line ЗНМ: 0300000167 [10:53:21]line РНМ: 0000000000156251 [10:53:21]line Версия ККМ: v1.0 [10:53:21]line Платежная система: Mbank [10:53:21]line ФМ: 0000000000963346 [10:53:21]line ФД: 69763 [10:53:21]line ФПД: 161455015954250 [10:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105322&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69763&fm=161455015954250&tin=02508201610067®Number=0000000000156251&sum=260071 [10:53:21]Connected sock=8 [10:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 1E 07 01 AF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A2 32 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 10 01 00 35 04 06 00 92 D7 AC DF 87 4A 94 AF D2 9E F0 94 50 F2 [10:53:21]written 0, free lines is 4095 [10:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 24 47 00 44 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 10 01 00 F4 03 04 00 46 DC 15 67 B6 04 01 00 00 63 94 CE E2 FF 07 39 2D [10:53:21]CommunicateWithHost err = 0 [10:53:21]CheckOFDResponse [10:53:21]1017 (14) - 77093643461234 [10:53:21]1041 (16) - 0000000000963346 [10:53:21]1040 (4) - 69763 [10:53:21]1012 (4) - 21.10.2024 04:44 [10:53:21]1206 (1) - 0 [10:53:21]OFD Sender: Remove packet 69763 [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00069763 [10:53:21]NVStorageDeleteData [10:53:22]Write to MH i2c: 01 00 00 2C 2F 5B [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: 01 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: 01 07 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: 01 07 00 2C 2F 00 00 00 00 00 1D 0D 8C [10:53:22]RasterBufferAndPrint [10:53:22]line [10:53:22]line [10:53:22]line [10:53:22]line [10:53:22]line [10:53:22]written 0, free lines is 3366 [10:53:22]MH_Cut [10:53:22]Write to MH i2c: D1 01 00 33 2F 01 34 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: D1 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: D1 01 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: D1 01 00 33 2F 00 33 [10:53:22]Write to MH i2c: 01 00 00 34 2F 63 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]OFD Sender: No OFD packet to send [10:53:22]*** Cut start [10:53:22]*** Partial cut [10:53:22]*** CUTSNS_PIN = 1 [10:53:22]*** CUTSNS_PIN = 0 [10:53:23]*** Brake cut motor [10:53:23]Read from MH i2c: 01 [10:53:23]MH_I2C_Read... [10:53:23]*** Stop cut motor [10:53:23]*** Cut end [10:53:23]Read from MH i2c: 01 07 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 34 2F 00 00 00 00 00 FF 0F 78 [10:53:23]process_action close_receipt done [10:53:23]requested_data is exist [10:53:23]produce_requested_data [10:53:23]requested_item fm.sn is exist - process it [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 11 00 00 [10:53:23]Write to MH i2c: E2 08 00 35 2F 80 11 00 00 00 00 00 00 DE [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 35 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [10:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:53:23]wFMCommunicate OK [10:53:23]requested_item fd.num is exist - process it [10:53:23]SAM_PROTO_GetFieldsCounters [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 13 00 00 [10:53:23]Write to MH i2c: E2 08 00 36 2F 80 13 00 00 00 00 00 00 E1 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 62 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 62 00 36 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [10:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_GetFieldsCounters done [10:53:23]requested_item shift.num is exist - process it [10:53:23]requested_item shift.opened is exist - process it [10:53:23]req_shift_opened [10:53:23]FM_GetShiftState [10:53:23]SAM_PROTO_GetShiftState [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 13 01 00 [10:53:23]Write to MH i2c: E2 08 00 37 2F 80 13 01 00 00 00 00 00 E3 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0E 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0E 00 37 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0F [10:53:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_GetShiftState done [10:53:23]FM_GetShiftState done [10:53:23]req_shift_opened done [10:53:23]requested_item shift.open_date is exist - process it [10:53:23]req_shift_open_date [10:53:23]req_shift_open_date done [10:53:23]produce_requested_data done [10:53:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69763,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:53:23]process_action_free close_receipt [10:53:23]json_value_free [10:53:23]json_value_free done [10:53:23]process_json_proto returns [10:53:23]Send response to host [10:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69763,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:53:23]free response buf [10:53:23]execute_script done [10:53:23]execute_script returns [10:53:23]free content buf [10:53:23]Sock 9.Close socket [10:53:23]Sock 9.Thread stoped [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:40]accept exits with 10 [10:59:40]New connection [10:59:40]New thread 3067456868 created [10:59:40]Thread 3067313508 joined [10:59:40]Waiting for new connection... [10:59:40] Sock 10.Parse request [10:59:40]Sock 10.Check first char [10:59:40]Sock 10.First char is OK [10:59:40]request: POST /json_proto HTTP/1.0 [10:59:40]Method: POST [10:59:40]URL: /json_proto [10:59:40]Method is POST - this is cgi request [10:59:40]url: /json_proto [10:59:40]query_string will be loaded in cgi processing [10:59:40]execute_cgi json_proto POST (null) [10:59:40]execute_cgi path=json_proto method=POST [10:59:40]POST find Content-Length [10:59:40]Host: 172.17.50.3:8080 [10:59:40]Content-Length: 686 [10:59:40]Content-Type: application/json [10:59:40] [10:59:40]POST finish read [10:59:40]Found Content-Length = 686 [10:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:59:40]execute_script... [10:59: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)2885505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:59:40]POST & json_proto [10:59:40]process_json_proto [10:59:40]json parsed OK: [10:59:40]protocol is kg_v1.0 [10:59:40]action value=close_receipt [10:59:40]process_action close_receipt [10:59:40]cmd_close_receipt [10:59:40]MH_GetDate [10:59:40]Write to MH i2c: F0 00 00 38 2F 56 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 38 2F 00 1F 34 16 67 6B 98 1E 66 B6 [10:59:40]GetLastDocTimeStamp 1729508002 [10:59:40]current date 1729508383 [10:59:40]FM_GetShiftState [10:59:40]SAM_PROTO_GetShiftState [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 13 01 00 [10:59:40]Write to MH i2c: E2 08 00 39 2F 80 13 01 00 00 00 00 00 E5 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0E 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0E 00 39 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [10:59:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:59:40]wFMCommunicate OK [10:59:40]SAM_PROTO_GetShiftState done [10:59:40]FM_GetShiftState done [10:59:40]opened in 1729469703 [10:59:40]opened+sec_in_day 1729556103 [10:59:40]quantity*price = 100011 [10:59:40]sum+1 = 100013 [10:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 154 21.10.2024 10:59 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69764 ФПД: 209298450780024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69764&fm=209298450780024&tin=02508201610067®Number=0000000000156251&sum=100000 [10:59:41]StoreToDocumentArchive [10:59:41]shift 194 fd 69764 [10:59:41]save to /storage/0194/doc_00069764 [10:59:41]save last doc name /storage/0194/doc_00069764 to /storage/kkm_last_doc_name [10:59:41]save OK [10:59:41]Clear old archive folders... [10:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:59:41]tlvbuf is 00C78F30 [10:59:41]SAM_PROTO_ClearQueue [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 09 00 00 [10:59:41]Write to MH i2c: E2 08 00 46 2F 80 09 00 00 00 00 00 00 E7 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_ClearQueue done [10:59:41]KKMCreateOFDPacket [10:59:41]OFDProtocolAddRootSTLVToBuf [10:59:41]FM_MakeSignedData [10:59:41]FM_MakeSignedData [10:59:41]SAM_PROTO_SignData [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 01 02 [10:59:41]Write to MH i2c: E2 08 00 47 2F 80 0D 01 02 00 00 00 00 EF [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 47 2F 00 90 00 EA [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=255 [10:59:41]MH_SAM_APDU [10:59:41]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 10 01 00 35 04 06 00 BE 5B [10:59:41]Write to MH i2c: E2 02 01 48 2F 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 10 01 00 35 04 06 00 BE 5B 00 00 2D [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 48 2F 00 90 00 EB [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=9 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 04 17 CF 8F 78 [10:59:42]Write to MH i2c: E2 0C 00 49 2F 80 0D 02 02 04 00 17 CF 8F 78 00 00 E7 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 49 2F 00 90 00 EC [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 03 02 [10:59:42]Write to MH i2c: E2 08 00 4A 2F 80 0D 03 02 00 00 00 00 F4 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 4A 2F 00 CD 47 8A BA A3 2F 7E 5A 90 00 F7 [10:59:42]RAPDU: CD 47 8A BA A3 2F 7E 5A 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_SignData done [10:59:42]FM_MakeSignedData done [10:59:42]CreateOFDProtocolMessage [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 11 00 00 [10:59:42]Write to MH i2c: E2 08 00 4B 2F 80 11 00 00 00 00 00 00 F4 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 4B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [10:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:59:42]wFMCommunicate OK [10:59:42]CreateOFDProtocolMessage done [10:59:42]OFDSenderStorePacket 69764 [10:59:42]StoreOFDPacket docnum=69764 [10:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 29 73 06 01 91 28 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 10 01 00 35 04 06 00 BE 5B 17 CF 8F 78 CD 47 8A BA A3 2F 7E 5A [10:59:42]CheckFolder [10:59:42]dirname=/storage/ofd_packets [10:59:42]CheckFolder done [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00069764 [10:59:42]NVStorageSaveData ofd_packets/00069764 [10:59:42]File name is /storage/ofd_packets/00069764 [10:59:42]Write 300 bytes [10:59:42]NVStorageSaveData done [10:59:42]OFDSenderStorePacket done [10:59:42]KKMCreateOFDPacket done [10:59:42]NVStorageSaveData kkm_last_timestamp [10:59:42]File name is /storage/kkm_last_timestamp [10:59:42]Write 4 bytes [10:59:42]NVStorageSaveData done [10:59:42]ExternCall_PrintAddStr [10:59:42]wPrintStart [10:59:42]Write to MH i2c: 01 00 00 4C 2F 7B [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 4C 2F 00 00 00 00 00 FF 0F 90 [10:59:42]RasterBufferAndPrint [10:59:42]line Счет N : (1)2885505 [10:59:42]line ИНН: 02508201610067 [10:59:42]line Контрольно-Кассовый Чек [10:59:42]line ПРОДАЖА [10:59:42]line ТРК (МРК, ГНК) : 71 [10:59:42]line Товар: 2711129700 [10:59:42]line ГАЗ-К-3 [10:59:42]line 25.710 * 38.90 [10:59:42]line = 1000.12 [10:59:42]line НДС 12% НСП 1% [10:59:42]line > о реализуемом товаре [10:59:42]line ОКРУГЛЕНИЕ: -0.12 [10:59:42]line ИТОГО: 1000.00 [10:59:42]line Внесено: 1000.00 [10:59:42]line СДАЧА: 0.00 [10:59:42]line НСП 1% : 8.85 [10:59:42]line НДС 12% : 106.21 [10:59:42]line Наличными: 1000.00 [10:59:42]line Безнал.: 0.00 [10:59:42]line Место: АЗС № 85 "Партнер Нефть" [10:59:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:59:42]line СНО: Общий режим [10:59:42]line Чек 154 21.10.2024 10:59 [10:59:42]line Смена: 194 ФФД: 1.0 [10:59:42]line ЗНМ: 0300000167 [10:59:42]line РНМ: 0000000000156251 [10:59:42]line Версия ККМ: v1.0 [10:59:42]line ФМ: 0000000000963346 [10:59:42]line ФД: 69764 [10:59:42]line ФПД: 209298450780024 [10:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69764&fm=209298450780024&tin=02508201610067®Number=0000000000156251&sum=100000 [10:59:42]OFD Sender: Processing packet 69764 [packets to send 18, broken 17] [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00069764 [10:59:42]OFD Sender: To server: pG, [10:59:42]CommunicateWithHost lk.salyk.kg:30040 [10:59:42]ConnectInit lk.salyk.kg [10:59:42]written 0, free lines is 4095 [10:59:42]Connected sock=9 [10:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 29 73 06 01 91 28 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 10 01 00 35 04 06 00 BE 5B 17 CF 8F 78 CD 47 8A BA A3 2F 7E 5A [10:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 51 99 47 00 A5 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 39 36 33 33 34 36 10 04 04 00 84 10 01 00 F4 03 04 00 C3 DD 15 67 B6 04 01 00 00 F1 5E EA EE 65 DD E4 BE [10:59:42]CommunicateWithHost err = 0 [10:59:42]CheckOFDResponse [10:59:42]1017 (14) - 77093643461234 [10:59:42]1041 (16) - 0000000000963346 [10:59:42]1040 (4) - 69764 [10:59:42]1012 (4) - 21.10.2024 04:51 [10:59:42]1206 (1) - 0 [10:59:42]OFD Sender: Remove packet 69764 [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00069764 [10:59:42]NVStorageDeleteData [10:59:43]Write to MH i2c: 01 00 00 77 2F A6 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 77 2F 00 00 00 00 00 F3 0C AC [10:59:43]RasterBufferAndPrint [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]written 0, free lines is 3324 [10:59:43]MH_Cut [10:59:43]Write to MH i2c: D1 01 00 7E 2F 01 7F [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 7E 2F 00 7E [10:59:43]Write to MH i2c: 01 00 00 7F 2F AE [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]OFD Sender: No OFD packet to send [10:59:43]*** Cut start [10:59:43]*** Partial cut [10:59:43]*** CUTSNS_PIN = 1 [10:59:43]*** CUTSNS_PIN = 0 [10:59:44]*** Brake cut motor [10:59:44]Read from MH i2c: 01 [10:59:44]MH_I2C_Read... [10:59:44]*** Stop cut motor [10:59:44]*** Cut end [10:59:44]Read from MH i2c: 01 07 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: 01 07 00 7F 2F 00 00 00 00 00 FF 0F C3 [10:59:44]process_action close_receipt done [10:59:44]requested_data is exist [10:59:44]produce_requested_data [10:59:44]requested_item fm.sn is exist - process it [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 11 00 00 [10:59:44]Write to MH i2c: E2 08 00 80 2F 80 11 00 00 00 00 00 00 29 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 80 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [10:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:59:44]wFMCommunicate OK [10:59:44]requested_item fd.num is exist - process it [10:59:44]SAM_PROTO_GetFieldsCounters [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 00 00 [10:59:44]Write to MH i2c: E2 08 00 81 2F 80 13 00 00 00 00 00 00 2C [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 81 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [10:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetFieldsCounters done [10:59:44]requested_item shift.num is exist - process it [10:59:44]requested_item shift.opened is exist - process it [10:59:44]req_shift_opened [10:59:44]FM_GetShiftState [10:59:44]SAM_PROTO_GetShiftState [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 01 00 [10:59:44]Write to MH i2c: E2 08 00 82 2F 80 13 01 00 00 00 00 00 2E [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 82 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5A [10:59:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetShiftState done [10:59:44]FM_GetShiftState done [10:59:44]req_shift_opened done [10:59:44]requested_item shift.open_date is exist - process it [10:59:44]req_shift_open_date [10:59:44]req_shift_open_date done [10:59:44]produce_requested_data done [10:59:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69764,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [10:59:44]process_action_free close_receipt [10:59:44]json_value_free [10:59:44]json_value_free done [10:59:44]process_json_proto returns [10:59:44]Send response to host [10:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69764,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [10:59:44]free response buf [10:59:44]execute_script done [10:59:44]execute_script returns [10:59:44]free content buf [10:59:44]Sock 10.Close socket [10:59:44]Sock 10.Thread stoped [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:09]accept exits with 8 [11:01:09]New connection [11:01:09]New thread 3067313508 created [11:01:09]Thread 3067456868 joined [11:01:09]Waiting for new connection... [11:01:09] Sock 8.Parse request [11:01:09]Sock 8.Check first char [11:01:09]Sock 8.First char is OK [11:01:09]request: POST /json_proto HTTP/1.0 [11:01:09]Method: POST [11:01:09]URL: /json_proto [11:01:09]Method is POST - this is cgi request [11:01:09]url: /json_proto [11:01:09]query_string will be loaded in cgi processing [11:01:09]execute_cgi json_proto POST (null) [11:01:09]execute_cgi path=json_proto method=POST [11:01:09]POST find Content-Length [11:01:09]Host: 172.17.50.3:8080 [11:01:09]Content-Length: 675 [11:01:09]Content-Type: application/json [11:01:09] [11:01:09]POST finish read [11:01:09]Found Content-Length = 675 [11:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]execute_script... [11:01: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)2885506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]POST & json_proto [11:01:09]process_json_proto [11:01:09]json parsed OK: [11:01:09]protocol is kg_v1.0 [11:01:09]action value=close_receipt [11:01:09]process_action close_receipt [11:01:09]cmd_close_receipt [11:01:09]MH_GetDate [11:01:09]Write to MH i2c: F0 00 00 83 2F A1 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 83 2F 00 78 34 16 67 6B 98 1E 66 5A [11:01:09]GetLastDocTimeStamp 1729508383 [11:01:09]current date 1729508472 [11:01:09]FM_GetShiftState [11:01:09]SAM_PROTO_GetShiftState [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 01 00 [11:01:09]Write to MH i2c: E2 08 00 84 2F 80 13 01 00 00 00 00 00 30 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 84 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5C [11:01:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_GetShiftState done [11:01:09]FM_GetShiftState done [11:01:09]opened in 1729469703 [11:01:09]opened+sec_in_day 1729556103 [11:01:09]quantity*price = 25069 [11:01:09]sum+1 = 25071 [11:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 155 21.10.2024 11:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69765 ФПД: 169507997567058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110113&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69765&fm=169507997567058&tin=02508201610067®Number=0000000000156251&sum=25000 [11:01:10]StoreToDocumentArchive [11:01:10]shift 194 fd 69765 [11:01:10]save to /storage/0194/doc_00069765 [11:01:10]save last doc name /storage/0194/doc_00069765 to /storage/kkm_last_doc_name [11:01:10]save OK [11:01:10]Clear old archive folders... [11:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:10]tlvbuf is 00CA0A30 [11:01:10]SAM_PROTO_ClearQueue [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 09 00 00 [11:01:10]Write to MH i2c: E2 08 00 91 2F 80 09 00 00 00 00 00 00 32 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 91 2F 00 90 00 34 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_ClearQueue done [11:01:10]KKMCreateOFDPacket [11:01:10]OFDProtocolAddRootSTLVToBuf [11:01:10]FM_MakeSignedData [11:01:10]FM_MakeSignedData [11:01:10]SAM_PROTO_SignData [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 01 02 [11:01:10]Write to MH i2c: E2 08 00 92 2F 80 0D 01 02 00 00 00 00 3A [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 92 2F 00 90 00 35 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=255 [11:01:10]MH_SAM_APDU [11:01:10]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 79 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 10 01 00 35 04 06 00 9A 2A A7 FB [11:01:10]Write to MH i2c: E2 02 01 93 2F 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 79 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 10 01 00 35 04 06 00 9A 2A A7 FB 00 00 8A [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 93 2F 00 90 00 36 [11:01:11]RAPDU: 90 00 [11:01:11]wFMCommunicate OK [11:01:11]wFMCommunicate request_size=7 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 0D 02 02 02 48 52 [11:01:11]Write to MH i2c: E2 0A 00 94 2F 80 0D 02 02 02 00 48 52 00 00 DB [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 94 2F 00 90 00 37 [11:01:11]RAPDU: 90 00 [11:01:11]wFMCommunicate OK [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 0D 03 02 [11:01:11]Write to MH i2c: E2 08 00 95 2F 80 0D 03 02 00 00 00 00 3F [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0B 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0B 00 95 2F 00 C5 B4 68 67 30 A5 15 59 90 00 CB [11:01:11]RAPDU: C5 B4 68 67 30 A5 15 59 90 00 [11:01:11]wFMCommunicate OK [11:01:11]SAM_PROTO_SignData done [11:01:11]FM_MakeSignedData done [11:01:11]CreateOFDProtocolMessage [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 11 00 00 [11:01:11]Write to MH i2c: E2 08 00 96 2F 80 11 00 00 00 00 00 00 3F [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 96 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [11:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:01:11]wFMCommunicate OK [11:01:11]CreateOFDProtocolMessage done [11:01:11]OFDSenderStorePacket 69765 [11:01:11]StoreOFDPacket docnum=69765 [11:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E0 56 04 01 6B E4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 79 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 10 01 00 35 04 06 00 9A 2A A7 FB 48 52 C5 B4 68 67 30 A5 15 59 [11:01:11]CheckFolder [11:01:11]dirname=/storage/ofd_packets [11:01:11]CheckFolder done [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00069765 [11:01:11]NVStorageSaveData ofd_packets/00069765 [11:01:11]File name is /storage/ofd_packets/00069765 [11:01:11]Write 298 bytes [11:01:11]NVStorageSaveData done [11:01:11]OFDSenderStorePacket done [11:01:11]KKMCreateOFDPacket done [11:01:11]NVStorageSaveData kkm_last_timestamp [11:01:11]File name is /storage/kkm_last_timestamp [11:01:11]Write 4 bytes [11:01:11]NVStorageSaveData done [11:01:11]ExternCall_PrintAddStr [11:01:11]wPrintStart [11:01:11]Write to MH i2c: 01 00 00 97 2F C6 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 97 2F 00 00 00 00 00 FF 0F DB [11:01:11]RasterBufferAndPrint [11:01:11]line Счет N : (1)2885506 [11:01:11]line ИНН: 02508201610067 [11:01:11]line Контрольно-Кассовый Чек [11:01:11]line ПРОДАЖА [11:01:11]line ТРК (МРК, ГНК) : 51 [11:01:11]line Товар: 2710194210 [11:01:11]line ДТ-К-5 [11:01:11]line 3.290 * 76.20 [11:01:11]line = 250.70 [11:01:11]line НДС 12% НСП 1% [11:01:11]line > о реализуемом товаре [11:01:11]line ОКРУГЛЕНИЕ: -0.70 [11:01:11]line ИТОГО: 250.00 [11:01:11]line Внесено: 250.00 [11:01:11]line СДАЧА: 0.00 [11:01:11]line НСП 1% : 2.22 [11:01:11]line НДС 12% : 26.62 [11:01:11]line Наличными: 250.00 [11:01:11]line Безнал.: 0.00 [11:01:11]line Место: АЗС № 85 "Партнер Нефть" [11:01:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:01:11]line СНО: Общий режим [11:01:11]line Чек 155 21.10.2024 11:01 [11:01:11]line Смена: 194 ФФД: 1.0 [11:01:11]line ЗНМ: 0300000167 [11:01:11]line РНМ: 0000000000156251 [11:01:11]line Версия ККМ: v1.0 [11:01:11]line ФМ: 0000000000963346 [11:01:11]line ФД: 69765 [11:01:11]line ФПД: 169507997567058 [11:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110113&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69765&fm=169507997567058&tin=02508201610067®Number=0000000000156251&sum=25000 [11:01:11]OFD Sender: Processing packet 69765 [packets to send 18, broken 17] [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00069765 [11:01:11]OFD Sender: To server: pG, [11:01:11]CommunicateWithHost lk.salyk.kg:30040 [11:01:11]ConnectInit lk.salyk.kg [11:01:11]written 0, free lines is 4095 [11:01:12]Write to MH i2c: 01 00 00 C2 2F F1 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 C2 2F 00 00 00 00 00 E4 0C E8 [11:01:12]RasterBufferAndPrint [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]written 0, free lines is 3306 [11:01:12]MH_Cut [11:01:12]Write to MH i2c: D1 01 00 C9 2F 01 CA [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 01 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 01 00 C9 2F 00 C9 [11:01:12]Write to MH i2c: 01 00 00 CA 2F F9 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** Cut start [11:01:12]*** Partial cut [11:01:12]*** CUTSNS_PIN = 1 [11:01:12]*** CUTSNS_PIN = 0 [11:01:13]*** Brake cut motor [11:01:13]Read from MH i2c: 01 [11:01:13]MH_I2C_Read... [11:01:13]*** Stop cut motor [11:01:13]*** Cut end [11:01:13]Read from MH i2c: 01 07 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: 01 07 00 CA 2F 00 00 00 00 00 FF 0F 0E [11:01:13]process_action close_receipt done [11:01:13]requested_data is exist [11:01:13]produce_requested_data [11:01:13]requested_item fm.sn is exist - process it [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 11 00 00 [11:01:13]Write to MH i2c: E2 08 00 CB 2F 80 11 00 00 00 00 00 00 74 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 17 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 17 00 CB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [11:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:01:13]wFMCommunicate OK [11:01:13]requested_item fd.num is exist - process it [11:01:13]SAM_PROTO_GetFieldsCounters [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 13 00 00 [11:01:13]Write to MH i2c: E2 08 00 CC 2F 80 13 00 00 00 00 00 00 77 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 62 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 62 00 CC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_GetFieldsCounters done [11:01:13]requested_item shift.num is exist - process it [11:01:13]requested_item shift.opened is exist - process it [11:01:13]req_shift_opened [11:01:13]FM_GetShiftState [11:01:13]SAM_PROTO_GetShiftState [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 13 01 00 [11:01:13]Write to MH i2c: E2 08 00 CD 2F 80 13 01 00 00 00 00 00 79 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:13]Read from MH i2c: E2 0E 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 0E 00 CD 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [11:01:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_GetShiftState done [11:01:13]FM_GetShiftState done [11:01:13]req_shift_opened done [11:01:13]requested_item shift.open_date is exist - process it [11:01:13]req_shift_open_date [11:01:13]req_shift_open_date done [11:01:13]produce_requested_data done [11:01:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69765,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:01:13]process_action_free close_receipt [11:01:13]json_value_free [11:01:13]json_value_free done [11:01:13]process_json_proto returns [11:01:13]Send response to host [11:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69765,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:01:13]free response buf [11:01:13]execute_script done [11:01:13]execute_script returns [11:01:13]free content buf [11:01:13]Sock 8.Close socket [11:01:13]Sock 8.Thread stoped [11:01:16]ConnectInit Can't take IP for lk.salyk.kg [11:01:16]CommunicateWithHost connect error [11:01:16]CommunicateWithHost err = -1 [11:01:16]OFD Sender: Server communicate error [11:01:21]OFD Sender: Processing packet 69765 [packets to send 18, broken 17] [11:01:21]ProducePacketName [11:01:21]name=ofd_packets/00069765 [11:01:21]OFD Sender: To server: pG, [11:01:21]CommunicateWithHost lk.salyk.kg:30040 [11:01:21]ConnectInit lk.salyk.kg [11:01:26]ConnectInit Can't take IP for lk.salyk.kg [11:01:26]CommunicateWithHost connect error [11:01:26]CommunicateWithHost err = -1 [11:01:26]OFD Sender: Server communicate error [11:01:31]OFD Sender: Processing packet 69765 [packets to send 18, broken 17] [11:01:31]ProducePacketName [11:01:31]name=ofd_packets/00069765 [11:01:31]OFD Sender: To server: pG, [11:01:31]CommunicateWithHost lk.salyk.kg:30040 [11:01:31]ConnectInit lk.salyk.kg [11:01:36]ConnectInit Can't take IP for lk.salyk.kg [11:01:36]CommunicateWithHost connect error [11:01:36]CommunicateWithHost err = -1 [11:01:36]OFD Sender: Server communicate error [11:01:41]OFD Sender: Processing packet 69765 [packets to send 18, broken 17] [11:01:41]ProducePacketName [11:01:41]name=ofd_packets/00069765 [11:01:41]OFD Sender: To server: pG, [11:01:41]CommunicateWithHost lk.salyk.kg:30040 [11:01:41]ConnectInit lk.salyk.kg [11:01:46]ConnectInit Can't take IP for lk.salyk.kg [11:01:46]CommunicateWithHost connect error [11:01:46]CommunicateWithHost err = -1 [11:01:46]OFD Sender: Server communicate error [11:01:51]OFD Sender: Processing packet 69765 [packets to send 18, broken 17] [11:01:51]ProducePacketName [11:01:51]name=ofd_packets/00069765 [11:01:51]OFD Sender: To server: pG, [11:01:51]CommunicateWithHost lk.salyk.kg:30040 [11:01:51]ConnectInit lk.salyk.kg [11:01:51]Connected sock=8 [11:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E0 56 04 01 6B E4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 79 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 10 01 00 35 04 06 00 9A 2A A7 FB 48 52 C5 B4 68 67 30 A5 15 59 [11:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A 38 47 00 BA 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 10 01 00 F4 03 04 00 45 DE 15 67 B6 04 01 00 00 39 43 A9 84 38 66 4F F7 [11:01:52]CommunicateWithHost err = 0 [11:01:52]CheckOFDResponse [11:01:52]1017 (14) - 77093643461234 [11:01:52]1041 (16) - 0000000000963346 [11:01:52]1040 (4) - 69765 [11:01:52]1012 (4) - 21.10.2024 04:53 [11:01:52]1206 (1) - 0 [11:01:52]OFD Sender: Remove packet 69765 [11:01:52]ProducePacketName [11:01:52]name=ofd_packets/00069765 [11:01:52]NVStorageDeleteData [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:43]accept exits with 10 [11:02:43]New connection [11:02:43]New thread 3067456868 created [11:02:43]Thread 3067313508 joined [11:02:43]Waiting for new connection... [11:02:43] Sock 10.Parse request [11:02:43]Sock 10.Check first char [11:02:43]Sock 10.First char is OK [11:02:43]request: POST /json_proto HTTP/1.0 [11:02:43]Method: POST [11:02:43]URL: /json_proto [11:02:43]Method is POST - this is cgi request [11:02:43]url: /json_proto [11:02:43]query_string will be loaded in cgi processing [11:02:43]execute_cgi json_proto POST (null) [11:02:43]execute_cgi path=json_proto method=POST [11:02:43]POST find Content-Length [11:02:43]Host: 172.17.50.3:8080 [11:02:43]Content-Length: 682 [11:02:43]Content-Type: application/json [11:02:43] [11:02:43]POST finish read [11:02:43]Found Content-Length = 682 [11:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [11:02:43]execute_script... [11:02: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)2885508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [11:02:43]POST & json_proto [11:02:43]process_json_proto [11:02:43]json parsed OK: [11:02:43]protocol is kg_v1.0 [11:02:43]action value=close_receipt [11:02:43]process_action close_receipt [11:02:43]cmd_close_receipt [11:02:43]MH_GetDate [11:02:43]Write to MH i2c: F0 00 00 CE 2F EC [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 CE 2F 00 D6 34 16 67 6B 98 1E 66 03 [11:02:43]GetLastDocTimeStamp 1729508473 [11:02:43]current date 1729508566 [11:02:43]FM_GetShiftState [11:02:43]SAM_PROTO_GetShiftState [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 01 00 [11:02:43]Write to MH i2c: E2 08 00 CF 2F 80 13 01 00 00 00 00 00 7B [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 CF 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A7 [11:02:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetShiftState done [11:02:43]FM_GetShiftState done [11:02:43]opened in 1729469703 [11:02:43]opened+sec_in_day 1729556103 [11:02:43]quantity*price = 70020 [11:02:43]sum+1 = 70021 [11:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 156 21.10.2024 11:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69766 ФПД: 79538154407941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69766&fm=79538154407941&tin=02508201610067®Number=0000000000156251&sum=70000 [11:02:44]StoreToDocumentArchive [11:02:44]shift 194 fd 69766 [11:02:44]save to /storage/0194/doc_00069766 [11:02:44]save last doc name /storage/0194/doc_00069766 to /storage/kkm_last_doc_name [11:02:44]save OK [11:02:44]Clear old archive folders... [11:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:02:44]tlvbuf is 00C78FA0 [11:02:44]SAM_PROTO_ClearQueue [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 09 00 00 [11:02:44]Write to MH i2c: E2 08 00 DC 2F 80 09 00 00 00 00 00 00 7D [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 DC 2F 00 90 00 7F [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_ClearQueue done [11:02:44]KKMCreateOFDPacket [11:02:44]OFDProtocolAddRootSTLVToBuf [11:02:44]FM_MakeSignedData [11:02:44]FM_MakeSignedData [11:02:44]SAM_PROTO_SignData [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 01 02 [11:02:44]Write to MH i2c: E2 08 00 DD 2F 80 0D 01 02 00 00 00 00 85 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 DD 2F 00 90 00 80 [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=255 [11:02:44]MH_SAM_APDU [11:02:44]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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 9C 00 00 00 F4 03 04 00 D6 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 10 01 00 35 04 06 00 48 56 [11:02:44]Write to MH i2c: E2 02 01 DE 2F 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 9C 00 00 00 F4 03 04 00 D6 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 10 01 00 35 04 06 00 48 56 00 00 59 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 DE 2F 00 90 00 81 [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=9 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 02 02 04 EB 70 88 05 [11:02:44]Write to MH i2c: E2 0C 00 DF 2F 80 0D 02 02 04 00 EB 70 88 05 00 00 78 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 DF 2F 00 90 00 82 [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 03 02 [11:02:44]Write to MH i2c: E2 08 00 E0 2F 80 0D 03 02 00 00 00 00 8A [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0B 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0B 00 E0 2F 00 28 E1 EB 31 DF 4D BF 5D 90 00 F8 [11:02:44]RAPDU: 28 E1 EB 31 DF 4D BF 5D 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_SignData done [11:02:44]FM_MakeSignedData done [11:02:44]CreateOFDProtocolMessage [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 11 00 00 [11:02:44]Write to MH i2c: E2 08 00 E1 2F 80 11 00 00 00 00 00 00 8A [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 17 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 17 00 E1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [11:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:44]wFMCommunicate OK [11:02:44]CreateOFDProtocolMessage done [11:02:44]OFDSenderStorePacket 69766 [11:02:44]StoreOFDPacket docnum=69766 [11:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 8E 42 06 01 58 2A 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 9C 00 00 00 F4 03 04 00 D6 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 10 01 00 35 04 06 00 48 56 EB 70 88 05 28 E1 EB 31 DF 4D BF 5D [11:02:44]CheckFolder [11:02:44]dirname=/storage/ofd_packets [11:02:44]CheckFolder done [11:02:44]ProducePacketName [11:02:44]name=ofd_packets/00069766 [11:02:44]NVStorageSaveData ofd_packets/00069766 [11:02:44]File name is /storage/ofd_packets/00069766 [11:02:44]Write 300 bytes [11:02:44]NVStorageSaveData done [11:02:44]OFDSenderStorePacket done [11:02:44]KKMCreateOFDPacket done [11:02:44]NVStorageSaveData kkm_last_timestamp [11:02:44]File name is /storage/kkm_last_timestamp [11:02:44]Write 4 bytes [11:02:44]NVStorageSaveData done [11:02:44]ExternCall_PrintAddStr [11:02:44]wPrintStart [11:02:44]Write to MH i2c: 01 00 00 E2 2F 11 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 07 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 07 00 E2 2F 00 00 00 00 00 FF 0F 26 [11:02:44]RasterBufferAndPrint [11:02:44]line Счет N : (1)2885508 [11:02:44]line ИНН: 02508201610067 [11:02:44]line Контрольно-Кассовый Чек [11:02:44]line ПРОДАЖА [11:02:44]line ТРК (МРК, ГНК) : 71 [11:02:44]line Товар: 2711129700 [11:02:44]line ГАЗ-К-3 [11:02:44]line 18.000 * 38.90 [11:02:44]line = 700.20 [11:02:44]line НДС 12% НСП 1% [11:02:44]line > о реализуемом товаре [11:02:44]line ОКРУГЛЕНИЕ: -0.20 [11:02:44]line ИТОГО: 700.00 [11:02:44]line Внесено: 700.00 [11:02:44]line СДАЧА: 0.00 [11:02:44]line НСП 1% : 6.20 [11:02:44]line НДС 12% : 74.36 [11:02:44]line Наличными: 700.00 [11:02:44]line Безнал.: 0.00 [11:02:44]line Место: АЗС № 85 "Партнер Нефть" [11:02:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:02:44]line СНО: Общий режим [11:02:44]line Чек 156 21.10.2024 11:02 [11:02:44]line Смена: 194 ФФД: 1.0 [11:02:44]line ЗНМ: 0300000167 [11:02:44]line РНМ: 0000000000156251 [11:02:44]line Версия ККМ: v1.0 [11:02:44]line ФМ: 0000000000963346 [11:02:44]line ФД: 69766 [11:02:44]line ФПД: 79538154407941 [11:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69766&fm=79538154407941&tin=02508201610067®Number=0000000000156251&sum=70000 [11:02:45]OFD Sender: Processing packet 69766 [packets to send 18, broken 17] [11:02:45]ProducePacketName [11:02:45]name=ofd_packets/00069766 [11:02:45]OFD Sender: To server: pG, [11:02:45]CommunicateWithHost lk.salyk.kg:30040 [11:02:45]ConnectInit lk.salyk.kg [11:02:45]written 0, free lines is 4095 [11:02:45]Connected sock=9 [11:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 8E 42 06 01 58 2A 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 9C 00 00 00 F4 03 04 00 D6 34 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 10 01 00 35 04 06 00 48 56 EB 70 88 05 28 E1 EB 31 DF 4D BF 5D [11:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9B 24 47 00 20 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 39 36 33 33 34 36 10 04 04 00 86 10 01 00 F4 03 04 00 7A DE 15 67 B6 04 01 00 00 66 E6 E3 C7 8B DE 84 5D [11:02:45]CommunicateWithHost err = 0 [11:02:45]CheckOFDResponse [11:02:45]1017 (14) - 77093643461234 [11:02:45]1041 (16) - 0000000000963346 [11:02:45]1040 (4) - 69766 [11:02:45]1012 (4) - 21.10.2024 04:54 [11:02:45]1206 (1) - 0 [11:02:45]OFD Sender: Remove packet 69766 [11:02:45]ProducePacketName [11:02:45]name=ofd_packets/00069766 [11:02:45]NVStorageDeleteData [11:02:45]Write to MH i2c: 01 00 00 0D 30 3D [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 0D 30 00 00 00 00 00 F0 0C 40 [11:02:45]RasterBufferAndPrint [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]written 0, free lines is 3318 [11:02:45]MH_Cut [11:02:45]Write to MH i2c: D1 01 00 14 30 01 16 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: D1 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: D1 01 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: D1 01 00 14 30 00 15 [11:02:45]Write to MH i2c: 01 00 00 15 30 45 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]OFD Sender: No OFD packet to send [11:02:46]*** Cut start [11:02:46]*** Partial cut [11:02:46]*** CUTSNS_PIN = 1 [11:02:46]*** CUTSNS_PIN = 0 [11:02:46]*** Brake cut motor [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]*** Stop cut motor [11:02:46]*** Cut end [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 FF 0F 5A [11:02:46]process_action close_receipt done [11:02:46]requested_data is exist [11:02:46]produce_requested_data [11:02:46]requested_item fm.sn is exist - process it [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 11 00 00 [11:02:46]Write to MH i2c: E2 08 00 16 30 80 11 00 00 00 00 00 00 C0 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 16 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [11:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:46]wFMCommunicate OK [11:02:46]requested_item fd.num is exist - process it [11:02:46]SAM_PROTO_GetFieldsCounters [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 13 00 00 [11:02:46]Write to MH i2c: E2 08 00 17 30 80 13 00 00 00 00 00 00 C3 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 62 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 62 00 17 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetFieldsCounters done [11:02:47]requested_item shift.num is exist - process it [11:02:47]requested_item shift.opened is exist - process it [11:02:47]req_shift_opened [11:02:47]FM_GetShiftState [11:02:47]SAM_PROTO_GetShiftState [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 01 00 [11:02:47]Write to MH i2c: E2 08 00 18 30 80 13 01 00 00 00 00 00 C5 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 18 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F1 [11:02:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetShiftState done [11:02:47]FM_GetShiftState done [11:02:47]req_shift_opened done [11:02:47]requested_item shift.open_date is exist - process it [11:02:47]req_shift_open_date [11:02:47]req_shift_open_date done [11:02:47]produce_requested_data done [11:02:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69766,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:02:47]process_action_free close_receipt [11:02:47]json_value_free [11:02:47]json_value_free done [11:02:47]process_json_proto returns [11:02:47]Send response to host [11:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69766,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:02:47]free response buf [11:02:47]execute_script done [11:02:47]execute_script returns [11:02:47]free content buf [11:02:47]Sock 10.Close socket [11:02:47]Sock 10.Thread stoped [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:39]accept exits with 8 [11:03:39]New connection [11:03:39]New thread 3067313508 created [11:03:39]Thread 3067456868 joined [11:03:39]Waiting for new connection... [11:03:39] Sock 8.Parse request [11:03:39]Sock 8.Check first char [11:03:39]Sock 8.First char is OK [11:03:39]request: POST /json_proto HTTP/1.0 [11:03:39]Method: POST [11:03:39]URL: /json_proto [11:03:39]Method is POST - this is cgi request [11:03:39]url: /json_proto [11:03:39]query_string will be loaded in cgi processing [11:03:39]execute_cgi json_proto POST (null) [11:03:39]execute_cgi path=json_proto method=POST [11:03:39]POST find Content-Length [11:03:39]Host: 172.17.50.3:8080 [11:03:39]Content-Length: 689 [11:03:39]Content-Type: application/json [11:03:39] [11:03:39]POST finish read [11:03:39]Found Content-Length = 689 [11:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [11:03:39]execute_script... [11:03: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)2885507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [11:03:39]POST & json_proto [11:03:39]process_json_proto [11:03:39]json parsed OK: [11:03:39]protocol is kg_v1.0 [11:03:39]action value=close_receipt [11:03:39]process_action close_receipt [11:03:39]cmd_close_receipt [11:03:39]MH_GetDate [11:03:39]Write to MH i2c: F0 00 00 19 30 38 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: F0 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: F0 09 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: F0 09 00 19 30 00 0E 35 16 67 6B 98 1E 66 88 [11:03:39]GetLastDocTimeStamp 1729508566 [11:03:39]current date 1729508622 [11:03:39]FM_GetShiftState [11:03:39]SAM_PROTO_GetShiftState [11:03:39]wFMCommunicate request_size=4 [11:03:39]MH_SAM_APDU [11:03:39]CAPDU: 80 13 01 00 [11:03:39]Write to MH i2c: E2 08 00 1A 30 80 13 01 00 00 00 00 00 C7 [11:03:39]Write i2c OK [11:03:39]MH_I2C_Read... [11:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:39]Read from MH i2c: E2 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0E 00 [11:03:39]MH_I2C_Read... [11:03:39]Read from MH i2c: E2 0E 00 1A 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F3 [11:03:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:03:39]wFMCommunicate OK [11:03:39]SAM_PROTO_GetShiftState done [11:03:39]FM_GetShiftState done [11:03:39]opened in 1729469703 [11:03:39]opened+sec_in_day 1729556103 [11:03:39]quantity*price = 250050 [11:03:39]sum+1 = 250052 [11:03:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 157 21.10.2024 11:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69767 ФПД: 52433303023146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69767&fm=52433303023146&tin=02508201610067®Number=0000000000156251&sum=250000 [11:03:40]StoreToDocumentArchive [11:03:40]shift 194 fd 69767 [11:03:40]save to /storage/0194/doc_00069767 [11:03:40]save last doc name /storage/0194/doc_00069767 to /storage/kkm_last_doc_name [11:03:40]save OK [11:03:40]Clear old archive folders... [11:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:03:40]tlvbuf is 00C92820 [11:03:40]SAM_PROTO_ClearQueue [11:03:40]wFMCommunicate request_size=4 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 09 00 00 [11:03:40]Write to MH i2c: E2 08 00 27 30 80 09 00 00 00 00 00 00 C9 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 27 30 00 90 00 CB [11:03:40]RAPDU: 90 00 [11:03:40]wFMCommunicate OK [11:03:40]SAM_PROTO_ClearQueue done [11:03:40]KKMCreateOFDPacket [11:03:40]OFDProtocolAddRootSTLVToBuf [11:03:40]FM_MakeSignedData [11:03:40]FM_MakeSignedData [11:03:40]SAM_PROTO_SignData [11:03:40]wFMCommunicate request_size=4 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 0D 01 02 [11:03:40]Write to MH i2c: E2 08 00 28 30 80 0D 01 02 00 00 00 00 D1 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 28 30 00 90 00 CC [11:03:40]RAPDU: 90 00 [11:03:40]wFMCommunicate OK [11:03:40]wFMCommunicate request_size=255 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 9D 00 00 00 F4 03 04 00 0E 35 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 10 01 [11:03:40]Write to MH i2c: E2 02 01 29 30 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 9D 00 00 00 F4 03 04 00 0E 35 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 10 01 00 00 6C [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 29 30 00 90 00 CD [11:03:40]RAPDU: 90 00 [11:03:40]wFMCommunicate OK [11:03:40]wFMCommunicate request_size=16 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2F B0 14 66 AE 2A [11:03:40]Write to MH i2c: E2 13 00 2A 30 80 0D 02 02 0B 00 00 35 04 06 00 2F B0 14 66 AE 2A 00 00 5A [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 03 00 2A 30 00 90 00 CE [11:03:40]RAPDU: 90 00 [11:03:40]wFMCommunicate OK [11:03:40]wFMCommunicate request_size=4 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 0D 03 02 [11:03:40]Write to MH i2c: E2 08 00 2B 30 80 0D 03 02 00 00 00 00 D6 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 0B 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 0B 00 2B 30 00 27 64 C6 F2 5E E9 B7 09 90 00 21 [11:03:40]RAPDU: 27 64 C6 F2 5E E9 B7 09 90 00 [11:03:40]wFMCommunicate OK [11:03:40]SAM_PROTO_SignData done [11:03:40]FM_MakeSignedData done [11:03:40]CreateOFDProtocolMessage [11:03:40]wFMCommunicate request_size=4 [11:03:40]MH_SAM_APDU [11:03:40]CAPDU: 80 11 00 00 [11:03:40]Write to MH i2c: E2 08 00 2C 30 80 11 00 00 00 00 00 00 D6 [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]OFD Sender: No OFD packet to send [11:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:40]Read from MH i2c: E2 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 17 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: E2 17 00 2C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [11:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:03:40]wFMCommunicate OK [11:03:40]CreateOFDProtocolMessage done [11:03:40]OFDSenderStorePacket 69767 [11:03:40]StoreOFDPacket docnum=69767 [11:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C3 0A 0D 01 E0 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 9D 00 00 00 F4 03 04 00 0E 35 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 10 01 00 35 04 06 00 2F B0 14 66 AE 2A 27 64 C6 F2 5E E9 B7 09 [11:03:40]CheckFolder [11:03:40]dirname=/storage/ofd_packets [11:03:40]CheckFolder done [11:03:40]ProducePacketName [11:03:40]name=ofd_packets/00069767 [11:03:40]NVStorageSaveData ofd_packets/00069767 [11:03:40]File name is /storage/ofd_packets/00069767 [11:03:40]Write 307 bytes [11:03:40]NVStorageSaveData done [11:03:40]OFDSenderStorePacket done [11:03:40]KKMCreateOFDPacket done [11:03:40]NVStorageSaveData kkm_last_timestamp [11:03:40]File name is /storage/kkm_last_timestamp [11:03:40]Write 4 bytes [11:03:40]NVStorageSaveData done [11:03:40]ExternCall_PrintAddStr [11:03:40]wPrintStart [11:03:40]Write to MH i2c: 01 00 00 2D 30 5D [11:03:40]Write i2c OK [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 07 00 [11:03:40]MH_I2C_Read... [11:03:40]Read from MH i2c: 01 07 00 2D 30 00 00 00 00 00 FF 0F 72 [11:03:40]RasterBufferAndPrint [11:03:40]line Счет N : (1)2885507 [11:03:40]line ИНН: 02508201610067 [11:03:40]line Контрольно-Кассовый Чек [11:03:40]line ПРОДАЖА [11:03:40]line ТРК (МРК, ГНК) : 31 [11:03:40]line Товар: 2710194240 [11:03:40]line D-ENERGY Дт-К-2 [11:03:40]line 32.390 * 77.20 [11:03:40]line = 2500.51 [11:03:40]line НДС 12% НСП 1% [11:03:40]line > о реализуемом товаре [11:03:40]line ОКРУГЛЕНИЕ: -0.51 [11:03:40]line ИТОГО: 2500.00 [11:03:40]line Внесено: 2500.00 [11:03:40]line СДАЧА: 0.00 [11:03:40]line НСП 1% : 22.13 [11:03:40]line НДС 12% : 265.54 [11:03:40]line Наличными: 2500.00 [11:03:40]line Безнал.: 0.00 [11:03:40]line Место: АЗС № 85 "Партнер Нефть" [11:03:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:03:40]line СНО: Общий режим [11:03:40]line Чек 157 21.10.2024 11:03 [11:03:40]line Смена: 194 ФФД: 1.0 [11:03:40]line ЗНМ: 0300000167 [11:03:40]line РНМ: 0000000000156251 [11:03:40]line Версия ККМ: v1.0 [11:03:40]line ФМ: 0000000000963346 [11:03:40]line ФД: 69767 [11:03:40]line ФПД: 52433303023146 [11:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69767&fm=52433303023146&tin=02508201610067®Number=0000000000156251&sum=250000 [11:03:41]OFD Sender: Processing packet 69767 [packets to send 18, broken 17] [11:03:41]ProducePacketName [11:03:41]name=ofd_packets/00069767 [11:03:41]OFD Sender: To server: pG, [11:03:41]CommunicateWithHost lk.salyk.kg:30040 [11:03:41]ConnectInit lk.salyk.kg [11:03:41]written 0, free lines is 4095 [11:03:41]Connected sock=10 [11:03:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C3 0A 0D 01 E0 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 9D 00 00 00 F4 03 04 00 0E 35 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 10 01 00 35 04 06 00 2F B0 14 66 AE 2A 27 64 C6 F2 5E E9 B7 09 [11:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4C AF 47 00 41 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 10 01 00 F4 03 04 00 B2 DE 15 67 B6 04 01 00 00 92 1A 1C 57 29 60 4F D4 [11:03:41]CommunicateWithHost err = 0 [11:03:41]CheckOFDResponse [11:03:41]1017 (14) - 77093643461234 [11:03:41]1041 (16) - 0000000000963346 [11:03:41]1040 (4) - 69767 [11:03:41]1012 (4) - 21.10.2024 04:55 [11:03:41]1206 (1) - 0 [11:03:41]OFD Sender: Remove packet 69767 [11:03:41]ProducePacketName [11:03:41]name=ofd_packets/00069767 [11:03:41]NVStorageDeleteData [11:03:41]Write to MH i2c: 01 00 00 58 30 88 [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: 01 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: 01 07 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: 01 07 00 58 30 00 00 00 00 00 E4 0C 7F [11:03:41]RasterBufferAndPrint [11:03:41]line [11:03:41]line [11:03:41]line [11:03:41]line [11:03:41]line [11:03:41]written 0, free lines is 3309 [11:03:41]MH_Cut [11:03:41]Write to MH i2c: D1 01 00 5F 30 01 61 [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: D1 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: D1 01 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: D1 01 00 5F 30 00 60 [11:03:41]Write to MH i2c: 01 00 00 60 30 90 [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:42]OFD Sender: No OFD packet to send [11:03:42]*** Cut start [11:03:42]*** Partial cut [11:03:42]*** CUTSNS_PIN = 1 [11:03:42]*** CUTSNS_PIN = 0 [11:03:42]*** Brake cut motor [11:03:43]Read from MH i2c: 01 [11:03:43]MH_I2C_Read... [11:03:43]*** Stop cut motor [11:03:43]*** Cut end [11:03:43]Read from MH i2c: 01 07 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: 01 07 00 60 30 00 00 00 00 00 FF 0F A5 [11:03:43]process_action close_receipt done [11:03:43]requested_data is exist [11:03:43]produce_requested_data [11:03:43]requested_item fm.sn is exist - process it [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 11 00 00 [11:03:43]Write to MH i2c: E2 08 00 61 30 80 11 00 00 00 00 00 00 0B [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 61 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [11:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:03:43]wFMCommunicate OK [11:03:43]requested_item fd.num is exist - process it [11:03:43]SAM_PROTO_GetFieldsCounters [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 00 00 [11:03:43]Write to MH i2c: E2 08 00 62 30 80 13 00 00 00 00 00 00 0E [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 62 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 62 00 62 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:03:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetFieldsCounters done [11:03:43]requested_item shift.num is exist - process it [11:03:43]requested_item shift.opened is exist - process it [11:03:43]req_shift_opened [11:03:43]FM_GetShiftState [11:03:43]SAM_PROTO_GetShiftState [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 01 00 [11:03:43]Write to MH i2c: E2 08 00 63 30 80 13 01 00 00 00 00 00 10 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 63 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3C [11:03:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetShiftState done [11:03:43]FM_GetShiftState done [11:03:43]req_shift_opened done [11:03:43]requested_item shift.open_date is exist - process it [11:03:43]req_shift_open_date [11:03:43]req_shift_open_date done [11:03:43]produce_requested_data done [11:03:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69767,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:03:43]process_action_free close_receipt [11:03:43]json_value_free [11:03:43]json_value_free done [11:03:43]process_json_proto returns [11:03:43]Send response to host [11:03:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69767,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:03:43]free response buf [11:03:43]execute_script done [11:03:43]execute_script returns [11:03:43]free content buf [11:03:43]Sock 8.Close socket [11:03:43]Sock 8.Thread stoped [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:25]int [11:04:25]Write to MH i2c: 01 00 00 64 30 94 [11:04:25]*** FLAG_PRN_PAP1 set [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 64 30 00 01 00 00 00 FF 0F AA [11:04:25]state=0 [11:04:25]No paper [11:04:25]int [11:04:25]Write to MH i2c: 01 00 00 65 30 95 [11:04:25]*** FLAG_PRN_PAP2 set [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 65 30 00 03 00 00 00 FF 0F AD [11:04:25]state=0 [11:04:25]No paper [11:04:25]Cover opened [11:04:25]int [11:04:25]Write to MH i2c: 01 00 00 66 30 96 [11:04:25]*** FLAG_PRN_PAP2 reset [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 66 30 00 01 00 00 00 FF 0F AC [11:04:25]state=3 [11:04:25]No paper [11:04:25]Cover closed [11:04:26]int [11:04:26]Write to MH i2c: 01 00 00 67 30 97 [11:04:26]*** FLAG_PRN_PAP2 set [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 67 30 00 03 00 00 00 FF 0F AF [11:04:26]state=0 [11:04:26]No paper [11:04:26]Cover opened [11:04:26]int [11:04:26]Write to MH i2c: 01 00 00 68 30 98 [11:04:26]*** FLAG_PRN_PAP2 reset [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 68 30 00 01 00 00 00 FF 0F AE [11:04:26]state=3 [11:04:26]No paper [11:04:26]Cover closed [11:04:26]int [11:04:26]Write to MH i2c: 01 00 00 69 30 99 [11:04:26]*** FLAG_PRN_PAP2 set [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 69 30 00 03 00 00 00 FF 0F B1 [11:04:26]state=0 [11:04:26]No paper [11:04:26]Cover opened [11:04:27]OFD Sender: No OFD packet to send [11:04:27]int [11:04:27]Write to MH i2c: 01 00 00 6A 30 9A [11:04:27]*** FLAG_PRN_PAP2 reset [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 6A 30 00 01 00 00 00 FF 0F B0 [11:04:27]state=3 [11:04:27]No paper [11:04:27]Cover closed [11:04:28]int [11:04:28]Write to MH i2c: 01 00 00 6B 30 9B [11:04:28]*** FLAG_PRN_PAP2 set [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 6B 30 00 03 00 00 00 FF 0F B3 [11:04:28]state=0 [11:04:28]No paper [11:04:28]Cover opened [11:04:32]OFD Sender: No OFD packet to send [11:04:33]Write to MH i2c: 01 00 00 6C 30 9C [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 6C 30 00 03 00 00 00 FF 0F B4 [11:04:33]state=3 [11:04:33]No paper [11:04:33]Cover opened [11:04:37]OFD Sender: No OFD packet to send [11:04:38]Write to MH i2c: 01 00 00 6D 30 9D [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 6D 30 00 03 00 00 00 FF 0F B5 [11:04:38]state=3 [11:04:38]No paper [11:04:38]Cover opened [11:04:38]int [11:04:38]Write to MH i2c: 01 00 00 6E 30 9E [11:04:38]*** FLAG_PRN_PAP2 reset [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 6E 30 00 01 00 00 00 FF 0F B4 [11:04:38]state=3 [11:04:38]No paper [11:04:38]Cover closed [11:04:38]int [11:04:38]Write to MH i2c: 01 00 00 6F 30 9F [11:04:38]*** FLAG_PRN_PAP1 reset [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 6F 30 00 00 00 00 00 FF 0F B4 [11:04:38]state=0 [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:21]accept exits with 9 [11:08:21]New connection [11:08:21]New thread 3067456868 created [11:08:21]Thread 3067313508 joined [11:08:21]Waiting for new connection... [11:08:21] Sock 9.Parse request [11:08:21]Sock 9.Check first char [11:08:21]Sock 9.First char is OK [11:08:21]request: POST /json_proto HTTP/1.0 [11:08:21]Method: POST [11:08:21]URL: /json_proto [11:08:21]Method is POST - this is cgi request [11:08:21]url: /json_proto [11:08:21]query_string will be loaded in cgi processing [11:08:21]execute_cgi json_proto POST (null) [11:08:21]execute_cgi path=json_proto method=POST [11:08:21]POST find Content-Length [11:08:21]Host: 172.17.50.3:8080 [11:08:21]Content-Length: 683 [11:08:21]Content-Type: application/json [11:08:21] [11:08:21]POST finish read [11:08:21]Found Content-Length = 683 [11:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885509", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [11:08:21]execute_script... [11:08: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)2885509", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [11:08:21]POST & json_proto [11:08:21]process_json_proto [11:08:21]json parsed OK: [11:08:21]protocol is kg_v1.0 [11:08:21]action value=close_receipt [11:08:21]process_action close_receipt [11:08:21]cmd_close_receipt [11:08:21]MH_GetDate [11:08:21]Write to MH i2c: F0 00 00 70 30 8F [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: F0 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: F0 09 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: F0 09 00 70 30 00 29 36 16 67 6B 98 1E 66 FB [11:08:21]GetLastDocTimeStamp 1729508622 [11:08:21]current date 1729508905 [11:08:21]FM_GetShiftState [11:08:21]SAM_PROTO_GetShiftState [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 13 01 00 [11:08:21]Write to MH i2c: E2 08 00 71 30 80 13 01 00 00 00 00 00 1E [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0E 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0E 00 71 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4A [11:08:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_GetShiftState done [11:08:21]FM_GetShiftState done [11:08:21]opened in 1729469703 [11:08:21]opened+sec_in_day 1729556103 [11:08:21]quantity*price = 150056 [11:08:21]sum+1 = 150058 [11:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 158 21.10.2024 11:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69768 ФПД: 184312755714650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69768&fm=184312755714650&tin=02508201610067®Number=0000000000156251&sum=150000 [11:08:22]StoreToDocumentArchive [11:08:22]shift 194 fd 69768 [11:08:22]save to /storage/0194/doc_00069768 [11:08:22]save last doc name /storage/0194/doc_00069768 to /storage/kkm_last_doc_name [11:08:22]save OK [11:08:22]Clear old archive folders... [11:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:22]tlvbuf is 00C6C610 [11:08:22]SAM_PROTO_ClearQueue [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 09 00 00 [11:08:22]Write to MH i2c: E2 08 00 7E 30 80 09 00 00 00 00 00 00 20 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 7E 30 00 90 00 22 [11:08:22]RAPDU: 90 00 [11:08:22]wFMCommunicate OK [11:08:22]SAM_PROTO_ClearQueue done [11:08:22]KKMCreateOFDPacket [11:08:22]OFDProtocolAddRootSTLVToBuf [11:08:22]FM_MakeSignedData [11:08:22]FM_MakeSignedData [11:08:22]SAM_PROTO_SignData [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 0D 01 02 [11:08:22]Write to MH i2c: E2 08 00 7F 30 80 0D 01 02 00 00 00 00 28 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 03 00 7F 30 00 90 00 23 [11:08:22]RAPDU: 90 00 [11:08:22]wFMCommunicate OK [11:08:22]wFMCommunicate request_size=255 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 9E 00 00 00 F4 03 04 00 29 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 10 01 00 35 04 06 00 A7 [11:08:22]Write to MH i2c: E2 02 01 80 30 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 9E 00 00 00 F4 03 04 00 29 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 10 01 00 35 04 06 00 A7 00 00 76 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 03 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 03 00 80 30 00 90 00 24 [11:08:23]RAPDU: 90 00 [11:08:23]wFMCommunicate OK [11:08:23]wFMCommunicate request_size=10 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 0D 02 02 05 A1 A8 54 FA 5A [11:08:23]Write to MH i2c: E2 0D 00 81 30 80 0D 02 02 05 00 A1 A8 54 FA 5A 00 00 26 [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 03 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 03 00 81 30 00 90 00 25 [11:08:23]RAPDU: 90 00 [11:08:23]wFMCommunicate OK [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 0D 03 02 [11:08:23]Write to MH i2c: E2 08 00 82 30 80 0D 03 02 00 00 00 00 2D [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 0B 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 0B 00 82 30 00 74 39 74 A8 01 35 EB C9 90 00 E1 [11:08:23]RAPDU: 74 39 74 A8 01 35 EB C9 90 00 [11:08:23]wFMCommunicate OK [11:08:23]SAM_PROTO_SignData done [11:08:23]FM_MakeSignedData done [11:08:23]CreateOFDProtocolMessage [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 11 00 00 [11:08:23]Write to MH i2c: E2 08 00 83 30 80 11 00 00 00 00 00 00 2D [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 83 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [11:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:08:23]wFMCommunicate OK [11:08:23]CreateOFDProtocolMessage done [11:08:23]OFDSenderStorePacket 69768 [11:08:23]StoreOFDPacket docnum=69768 [11:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 5C 07 01 E9 FE 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 9E 00 00 00 F4 03 04 00 29 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 10 01 00 35 04 06 00 A7 A1 A8 54 FA 5A 74 39 74 A8 01 35 EB C9 [11:08:23]CheckFolder [11:08:23]dirname=/storage/ofd_packets [11:08:23]CheckFolder done [11:08:23]ProducePacketName [11:08:23]name=ofd_packets/00069768 [11:08:23]NVStorageSaveData ofd_packets/00069768 [11:08:23]File name is /storage/ofd_packets/00069768 [11:08:23]Write 301 bytes [11:08:23]NVStorageSaveData done [11:08:23]OFDSenderStorePacket done [11:08:23]KKMCreateOFDPacket done [11:08:23]NVStorageSaveData kkm_last_timestamp [11:08:23]File name is /storage/kkm_last_timestamp [11:08:23]Write 4 bytes [11:08:23]NVStorageSaveData done [11:08:23]ExternCall_PrintAddStr [11:08:23]wPrintStart [11:08:23]Write to MH i2c: 01 00 00 84 30 B4 [11:08:23]OFD Sender: Processing packet 69768 [packets to send 18, broken 17] [11:08:23]ProducePacketName [11:08:23]name=ofd_packets/00069768 [11:08:23]OFD Sender: To server: pG, [11:08:23]CommunicateWithHost lk.salyk.kg:30040 [11:08:23]ConnectInit lk.salyk.kg [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 84 30 00 00 00 00 00 FF 0F C9 [11:08:23]RasterBufferAndPrint [11:08:23]line Счет N : (1)2885509 [11:08:23]line ИНН: 02508201610067 [11:08:23]line Контрольно-Кассовый Чек [11:08:23]line ПРОДАЖА [11:08:23]line ТРК (МРК, ГНК) : 42 [11:08:23]line Товар: 2710124130 [11:08:23]line Аи-92-К-5 [11:08:23]line 22.430 * 66.90 [11:08:23]line = 1500.57 [11:08:23]line НДС 12% НСП 1% [11:08:23]line > о реализуемом товаре [11:08:23]line ОКРУГЛЕНИЕ: -0.57 [11:08:23]line ИТОГО: 1500.00 [11:08:23]line Внесено: 1500.00 [11:08:23]line СДАЧА: 0.00 [11:08:23]line НСП 1% : 13.28 [11:08:23]line НДС 12% : 159.35 [11:08:23]line Наличными: 1500.00 [11:08:23]line Безнал.: 0.00 [11:08:23]line Место: АЗС № 85 "Партнер Нефть" [11:08:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:08:23]line СНО: Общий режим [11:08:23]line Чек 158 21.10.2024 11:08 [11:08:23]line Смена: 194 ФФД: 1.0 [11:08:23]line ЗНМ: 0300000167 [11:08:23]line РНМ: 0000000000156251 [11:08:23]line Версия ККМ: v1.0 [11:08:23]line ФМ: 0000000000963346 [11:08:23]line ФД: 69768 [11:08:23]line ФПД: 184312755714650 [11:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110825&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69768&fm=184312755714650&tin=02508201610067®Number=0000000000156251&sum=150000 [11:08:23]Connected sock=10 [11:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 5C 07 01 E9 FE 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 9E 00 00 00 F4 03 04 00 29 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 10 01 00 35 04 06 00 A7 A1 A8 54 FA 5A 74 39 74 A8 01 35 EB C9 [11:08:23]written 0, free lines is 4095 [11:08:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 09 0E 47 00 82 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 10 01 00 F4 03 04 00 CC DF 15 67 B6 04 01 00 00 00 4E C7 4C 28 B4 59 0E [11:08:23]CommunicateWithHost err = 0 [11:08:23]CheckOFDResponse [11:08:23]1017 (14) - 77093643461234 [11:08:23]1041 (16) - 0000000000963346 [11:08:23]1040 (4) - 69768 [11:08:23]1012 (4) - 21.10.2024 04:59 [11:08:23]1206 (1) - 0 [11:08:23]OFD Sender: Remove packet 69768 [11:08:23]ProducePacketName [11:08:23]name=ofd_packets/00069768 [11:08:23]NVStorageDeleteData [11:08:24]Write to MH i2c: 01 00 00 AF 30 DF [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 07 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 07 00 AF 30 00 00 00 00 00 EC 0C DE [11:08:24]RasterBufferAndPrint [11:08:24]line [11:08:24]line [11:08:24]line [11:08:24]line [11:08:24]line [11:08:24]written 0, free lines is 3314 [11:08:24]MH_Cut [11:08:24]Write to MH i2c: D1 01 00 B6 30 01 B8 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: D1 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: D1 01 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: D1 01 00 B6 30 00 B7 [11:08:24]Write to MH i2c: 01 00 00 B7 30 E7 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]OFD Sender: No OFD packet to send [11:08:24]*** Cut start [11:08:24]*** Partial cut [11:08:24]*** CUTSNS_PIN = 1 [11:08:24]*** CUTSNS_PIN = 0 [11:08:25]*** Brake cut motor [11:08:25]Read from MH i2c: 01 [11:08:25]MH_I2C_Read... [11:08:25]*** Stop cut motor [11:08:25]*** Cut end [11:08:25]Read from MH i2c: 01 07 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: 01 07 00 B7 30 00 00 00 00 00 FF 0F FC [11:08:25]process_action close_receipt done [11:08:25]requested_data is exist [11:08:25]produce_requested_data [11:08:25]requested_item fm.sn is exist - process it [11:08:25]wFMCommunicate request_size=4 [11:08:25]MH_SAM_APDU [11:08:25]CAPDU: 80 11 00 00 [11:08:25]Write to MH i2c: E2 08 00 B8 30 80 11 00 00 00 00 00 00 62 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:25]Read from MH i2c: E2 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 17 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 17 00 B8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [11:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:08:25]wFMCommunicate OK [11:08:25]requested_item fd.num is exist - process it [11:08:25]SAM_PROTO_GetFieldsCounters [11:08:25]wFMCommunicate request_size=4 [11:08:25]MH_SAM_APDU [11:08:25]CAPDU: 80 13 00 00 [11:08:25]Write to MH i2c: E2 08 00 B9 30 80 13 00 00 00 00 00 00 65 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:25]Read from MH i2c: E2 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 62 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 62 00 B9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:25]wFMCommunicate OK [11:08:25]SAM_PROTO_GetFieldsCounters done [11:08:25]requested_item shift.num is exist - process it [11:08:25]requested_item shift.opened is exist - process it [11:08:25]req_shift_opened [11:08:25]FM_GetShiftState [11:08:25]SAM_PROTO_GetShiftState [11:08:25]wFMCommunicate request_size=4 [11:08:25]MH_SAM_APDU [11:08:25]CAPDU: 80 13 01 00 [11:08:25]Write to MH i2c: E2 08 00 BA 30 80 13 01 00 00 00 00 00 67 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:25]Read from MH i2c: E2 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 0E 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: E2 0E 00 BA 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 93 [11:08:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:08:25]wFMCommunicate OK [11:08:25]SAM_PROTO_GetShiftState done [11:08:25]FM_GetShiftState done [11:08:25]req_shift_opened done [11:08:25]requested_item shift.open_date is exist - process it [11:08:25]req_shift_open_date [11:08:25]req_shift_open_date done [11:08:25]produce_requested_data done [11:08:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69768,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:08:25]process_action_free close_receipt [11:08:25]json_value_free [11:08:25]json_value_free done [11:08:25]process_json_proto returns [11:08:25]Send response to host [11:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69768,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:08:25]free response buf [11:08:25]execute_script done [11:08:25]execute_script returns [11:08:25]free content buf [11:08:25]Sock 9.Close socket [11:08:25]Sock 9.Thread stoped [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:21]accept exits with 8 [11:09:21]New connection [11:09:21]New thread 3067313508 created [11:09:21]Thread 3067456868 joined [11:09:21]Waiting for new connection... [11:09:21] Sock 8.Parse request [11:09:21]Sock 8.Check first char [11:09:21]Sock 8.First char is OK [11:09:21]request: POST /json_proto HTTP/1.0 [11:09:21]Method: POST [11:09:21]URL: /json_proto [11:09:21]Method is POST - this is cgi request [11:09:21]url: /json_proto [11:09:21]query_string will be loaded in cgi processing [11:09:21]execute_cgi json_proto POST (null) [11:09:21]execute_cgi path=json_proto method=POST [11:09:21]POST find Content-Length [11:09:21]Host: 172.17.50.3:8080 [11:09:21]Content-Length: 773 [11:09:21]Content-Type: application/json [11:09:21] [11:09:21]POST finish read [11:09:21]Found Content-Length = 773 [11:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]execute_script... [11:09: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)2885510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]POST & json_proto [11:09:21]process_json_proto [11:09:21]json parsed OK: [11:09:21]protocol is kg_v1.0 [11:09:21]action value=close_receipt [11:09:21]process_action close_receipt [11:09:21]cmd_close_receipt [11:09:21]MH_GetDate [11:09:21]Write to MH i2c: F0 00 00 BB 30 DA [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 BB 30 00 65 36 16 67 6B 98 1E 66 82 [11:09:21]GetLastDocTimeStamp 1729508905 [11:09:21]current date 1729508965 [11:09:21]FM_GetShiftState [11:09:21]SAM_PROTO_GetShiftState [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 01 00 [11:09:21]Write to MH i2c: E2 08 00 BC 30 80 13 01 00 00 00 00 00 69 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 BC 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 95 [11:09:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetShiftState done [11:09:21]FM_GetShiftState done [11:09:21]opened in 1729469703 [11:09:21]opened+sec_in_day 1729556103 [11:09:21]quantity*price = 100011 [11:09:21]sum+1 = 100013 [11:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 159 21.10.2024 11:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69769 ФПД: 484465276447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110925&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69769&fm=484465276447&tin=02508201610067®Number=0000000000156251&sum=100012 [11:09:22]StoreToDocumentArchive [11:09:22]shift 194 fd 69769 [11:09:22]save to /storage/0194/doc_00069769 [11:09:22]save last doc name /storage/0194/doc_00069769 to /storage/kkm_last_doc_name [11:09:22]save OK [11:09:22]Clear old archive folders... [11:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:09:22]tlvbuf is 00CD87A0 [11:09:22]SAM_PROTO_ClearQueue [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 09 00 00 [11:09:22]Write to MH i2c: E2 08 00 C9 30 80 09 00 00 00 00 00 00 6B [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 C9 30 00 90 00 6D [11:09:22]RAPDU: 90 00 [11:09:22]wFMCommunicate OK [11:09:22]SAM_PROTO_ClearQueue done [11:09:22]KKMCreateOFDPacket [11:09:22]OFDProtocolAddRootSTLVToBuf [11:09:22]FM_MakeSignedData [11:09:22]FM_MakeSignedData [11:09:22]SAM_PROTO_SignData [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 0D 01 02 [11:09:22]Write to MH i2c: E2 08 00 CA 30 80 0D 01 02 00 00 00 00 73 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 CA 30 00 90 00 6E [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=255 [11:09:23]MH_SAM_APDU [11:09:23]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 65 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 10 01 00 35 04 06 00 00 70 [11:09:23]Write to MH i2c: E2 02 01 CB 30 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 65 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 10 01 00 35 04 06 00 00 70 00 00 72 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 CB 30 00 90 00 6F [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=9 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 02 02 04 CC 61 76 1F [11:09:23]Write to MH i2c: E2 0C 00 CC 30 80 0D 02 02 04 00 CC 61 76 1F 00 00 40 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 CC 30 00 90 00 70 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 03 02 [11:09:23]Write to MH i2c: E2 08 00 CD 30 80 0D 03 02 00 00 00 00 78 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 CD 30 00 63 8D B9 EA 38 8D EB 3B 90 00 F7 [11:09:23]RAPDU: 63 8D B9 EA 38 8D EB 3B 90 00 [11:09:23]wFMCommunicate OK [11:09:23]SAM_PROTO_SignData done [11:09:23]FM_MakeSignedData done [11:09:23]CreateOFDProtocolMessage [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 11 00 00 [11:09:23]Write to MH i2c: E2 08 00 CE 30 80 11 00 00 00 00 00 00 78 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 CE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [11:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:09:23]wFMCommunicate OK [11:09:23]CreateOFDProtocolMessage done [11:09:23]OFDSenderStorePacket 69769 [11:09:23]StoreOFDPacket docnum=69769 [11:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9E 07 06 01 6B 94 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 65 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 10 01 00 35 04 06 00 00 70 CC 61 76 1F 63 8D B9 EA 38 8D EB 3B [11:09:23]CheckFolder [11:09:23]dirname=/storage/ofd_packets [11:09:23]CheckFolder done [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00069769 [11:09:23]NVStorageSaveData ofd_packets/00069769 [11:09:23]File name is /storage/ofd_packets/00069769 [11:09:23]Write 300 bytes [11:09:23]NVStorageSaveData done [11:09:23]OFDSenderStorePacket done [11:09:23]KKMCreateOFDPacket done [11:09:23]NVStorageSaveData kkm_last_timestamp [11:09:23]File name is /storage/kkm_last_timestamp [11:09:23]Write 4 bytes [11:09:23]NVStorageSaveData done [11:09:23]ExternCall_PrintAddStr [11:09:23]wPrintStart [11:09:23]Write to MH i2c: 01 00 00 CF 30 FF [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 CF 30 00 00 00 00 00 FF 0F 14 [11:09:23]RasterBufferAndPrint [11:09:23]line Счет N : (1)2885510 [11:09:23]line ИНН: 02508201610067 [11:09:23]line Контрольно-Кассовый Чек [11:09:23]line ПРОДАЖА [11:09:23]line ТРК (МРК, ГНК) : 71 [11:09:23]line Товар: 2711129700 [11:09:23]line ГАЗ-К-3 [11:09:23]line 25.710 * 38.90 [11:09:23]line = 1000.12 [11:09:23]line НДС 12% НСП 1% [11:09:23]line > о реализуемом товаре [11:09:23]line ИТОГО: 1000.12 [11:09:23]line НСП 1% : 8.85 [11:09:23]line НДС 12% : 106.21 [11:09:23]line Наличными: 0.00 [11:09:23]line Безнал.: 1000.12 [11:09:23]line Место: АЗС № 85 "Партнер Нефть" [11:09:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:09:23]line СНО: Общий режим [11:09:23]line Чек 159 21.10.2024 11:09 [11:09:23]line Смена: 194 ФФД: 1.0 [11:09:23]line ЗНМ: 0300000167 [11:09:23]line РНМ: 0000000000156251 [11:09:23]line Версия ККМ: v1.0 [11:09:23]line Платежная система: Mbank [11:09:23]line ФМ: 0000000000963346 [11:09:23]line ФД: 69769 [11:09:23]line ФПД: 484465276447 [11:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110925&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69769&fm=484465276447&tin=02508201610067®Number=0000000000156251&sum=100012 [11:09:23]OFD Sender: Processing packet 69769 [packets to send 18, broken 17] [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00069769 [11:09:23]OFD Sender: To server: pG, [11:09:23]CommunicateWithHost lk.salyk.kg:30040 [11:09:23]ConnectInit lk.salyk.kg [11:09:23]written 0, free lines is 4095 [11:09:23]Connected sock=10 [11:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9E 07 06 01 6B 94 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 65 36 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 10 01 00 35 04 06 00 00 70 CC 61 76 1F 63 8D B9 EA 38 8D EB 3B [11:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 11 80 47 00 92 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 10 01 00 F4 03 04 00 09 E0 15 67 B6 04 01 00 00 F1 D3 69 F4 5C 38 28 BA [11:09:24]CommunicateWithHost err = 0 [11:09:24]CheckOFDResponse [11:09:24]1017 (14) - 77093643461234 [11:09:24]1041 (16) - 0000000000963346 [11:09:24]1040 (4) - 69769 [11:09:24]1012 (4) - 21.10.2024 05:00 [11:09:24]1206 (1) - 0 [11:09:24]OFD Sender: Remove packet 69769 [11:09:24]ProducePacketName [11:09:24]name=ofd_packets/00069769 [11:09:24]NVStorageDeleteData [11:09:24]Write to MH i2c: 01 00 00 F8 30 28 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 F8 30 00 00 00 00 00 19 0D 55 [11:09:24]RasterBufferAndPrint [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]written 0, free lines is 3360 [11:09:24]MH_Cut [11:09:24]Write to MH i2c: D1 01 00 FF 30 01 01 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 FF 30 00 00 [11:09:24]Write to MH i2c: 01 00 00 00 31 31 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]OFD Sender: No OFD packet to send [11:09:24]*** Cut start [11:09:24]*** Partial cut [11:09:24]*** CUTSNS_PIN = 1 [11:09:24]*** CUTSNS_PIN = 0 [11:09:25]*** Brake cut motor [11:09:25]Read from MH i2c: 01 [11:09:25]MH_I2C_Read... [11:09:25]*** Stop cut motor [11:09:25]*** Cut end [11:09:25]Read from MH i2c: 01 07 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 07 00 00 31 00 00 00 00 00 FF 0F 46 [11:09:25]process_action close_receipt done [11:09:25]requested_data is exist [11:09:25]produce_requested_data [11:09:25]requested_item fm.sn is exist - process it [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 11 00 00 [11:09:25]Write to MH i2c: E2 08 00 01 31 80 11 00 00 00 00 00 00 AC [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 01 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [11:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:09:25]wFMCommunicate OK [11:09:25]requested_item fd.num is exist - process it [11:09:25]SAM_PROTO_GetFieldsCounters [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 00 00 [11:09:25]Write to MH i2c: E2 08 00 02 31 80 13 00 00 00 00 00 00 AF [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 02 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [11:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetFieldsCounters done [11:09:25]requested_item shift.num is exist - process it [11:09:25]requested_item shift.opened is exist - process it [11:09:25]req_shift_opened [11:09:25]FM_GetShiftState [11:09:25]SAM_PROTO_GetShiftState [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 01 00 [11:09:25]Write to MH i2c: E2 08 00 03 31 80 13 01 00 00 00 00 00 B1 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 03 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DD [11:09:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetShiftState done [11:09:25]FM_GetShiftState done [11:09:25]req_shift_opened done [11:09:25]requested_item shift.open_date is exist - process it [11:09:25]req_shift_open_date [11:09:25]req_shift_open_date done [11:09:25]produce_requested_data done [11:09:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69769,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:09:25]process_action_free close_receipt [11:09:25]json_value_free [11:09:25]json_value_free done [11:09:25]process_json_proto returns [11:09:25]Send response to host [11:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69769,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:09:25]free response buf [11:09:25]execute_script done [11:09:25]execute_script returns [11:09:25]free content buf [11:09:25]Sock 8.Close socket [11:09:25]Sock 8.Thread stoped [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:43]accept exits with 9 [11:13:43]New connection [11:13:43]New thread 3067456868 created [11:13:43]Thread 3067313508 joined [11:13:43]Waiting for new connection... [11:13:43] Sock 9.Parse request [11:13:43]Sock 9.Check first char [11:13:43]Sock 9.First char is OK [11:13:43]request: POST /json_proto HTTP/1.0 [11:13:43]Method: POST [11:13:43]URL: /json_proto [11:13:43]Method is POST - this is cgi request [11:13:43]url: /json_proto [11:13:43]query_string will be loaded in cgi processing [11:13:43]execute_cgi json_proto POST (null) [11:13:43]execute_cgi path=json_proto method=POST [11:13:43]POST find Content-Length [11:13:43]Host: 172.17.50.3:8080 [11:13:43]Content-Length: 686 [11:13:43]Content-Type: application/json [11:13:43] [11:13:43]POST finish read [11:13:43]Found Content-Length = 686 [11:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:13:43]execute_script... [11:13: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)2885511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:13:43]POST & json_proto [11:13:43]process_json_proto [11:13:43]json parsed OK: [11:13:43]protocol is kg_v1.0 [11:13:43]action value=close_receipt [11:13:43]process_action close_receipt [11:13:43]cmd_close_receipt [11:13:43]MH_GetDate [11:13:43]Write to MH i2c: F0 00 00 04 31 24 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 09 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: F0 09 00 04 31 00 6A 37 16 67 6B 98 1E 66 D2 [11:13:43]GetLastDocTimeStamp 1729508965 [11:13:43]current date 1729509226 [11:13:43]FM_GetShiftState [11:13:43]SAM_PROTO_GetShiftState [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 13 01 00 [11:13:43]Write to MH i2c: E2 08 00 05 31 80 13 01 00 00 00 00 00 B3 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0E 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0E 00 05 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DF [11:13:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_GetShiftState done [11:13:43]FM_GetShiftState done [11:13:43]opened in 1729469703 [11:13:43]opened+sec_in_day 1729556103 [11:13:43]quantity*price = 100011 [11:13:43]sum+1 = 100013 [11:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 160 21.10.2024 11:13 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69770 ФПД: 269170370009031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111346&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69770&fm=269170370009031&tin=02508201610067®Number=0000000000156251&sum=100000 [11:13:44]StoreToDocumentArchive [11:13:44]shift 194 fd 69770 [11:13:44]save to /storage/0194/doc_00069770 [11:13:44]save last doc name /storage/0194/doc_00069770 to /storage/kkm_last_doc_name [11:13:44]save OK [11:13:44]Clear old archive folders... [11:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:13:44]tlvbuf is 00CA97C0 [11:13:44]SAM_PROTO_ClearQueue [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 09 00 00 [11:13:44]Write to MH i2c: E2 08 00 12 31 80 09 00 00 00 00 00 00 B5 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 12 31 00 90 00 B7 [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]SAM_PROTO_ClearQueue done [11:13:44]KKMCreateOFDPacket [11:13:44]OFDProtocolAddRootSTLVToBuf [11:13:44]FM_MakeSignedData [11:13:44]FM_MakeSignedData [11:13:44]SAM_PROTO_SignData [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 0D 01 02 [11:13:44]Write to MH i2c: E2 08 00 13 31 80 0D 01 02 00 00 00 00 BD [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 13 31 00 90 00 B8 [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]wFMCommunicate request_size=255 [11:13:44]MH_SAM_APDU [11:13:44]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6A 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 10 01 00 35 04 06 00 F4 CF [11:13:44]Write to MH i2c: E2 02 01 14 31 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6A 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 10 01 00 35 04 06 00 F4 CF 00 00 FF [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 14 31 00 90 00 B9 [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]wFMCommunicate request_size=9 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 0D 02 02 04 1C 49 D7 C7 [11:13:44]Write to MH i2c: E2 0C 00 15 31 80 0D 02 02 04 00 1C 49 D7 C7 00 00 CB [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]OFD Sender: No OFD packet to send [11:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 03 00 15 31 00 90 00 BA [11:13:44]RAPDU: 90 00 [11:13:44]wFMCommunicate OK [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 0D 03 02 [11:13:44]Write to MH i2c: E2 08 00 16 31 80 0D 03 02 00 00 00 00 C2 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 0B 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 0B 00 16 31 00 CD 29 92 57 3D D5 AC F9 90 00 59 [11:13:44]RAPDU: CD 29 92 57 3D D5 AC F9 90 00 [11:13:44]wFMCommunicate OK [11:13:44]SAM_PROTO_SignData done [11:13:44]FM_MakeSignedData done [11:13:44]CreateOFDProtocolMessage [11:13:44]wFMCommunicate request_size=4 [11:13:44]MH_SAM_APDU [11:13:44]CAPDU: 80 11 00 00 [11:13:44]Write to MH i2c: E2 08 00 17 31 80 11 00 00 00 00 00 00 C2 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:44]Read from MH i2c: E2 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 17 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: E2 17 00 17 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [11:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:44]wFMCommunicate OK [11:13:44]CreateOFDProtocolMessage done [11:13:44]OFDSenderStorePacket 69770 [11:13:44]StoreOFDPacket docnum=69770 [11:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 06 72 06 01 73 B8 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6A 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 10 01 00 35 04 06 00 F4 CF 1C 49 D7 C7 CD 29 92 57 3D D5 AC F9 [11:13:44]CheckFolder [11:13:44]dirname=/storage/ofd_packets [11:13:44]CheckFolder done [11:13:44]ProducePacketName [11:13:44]name=ofd_packets/00069770 [11:13:44]NVStorageSaveData ofd_packets/00069770 [11:13:44]File name is /storage/ofd_packets/00069770 [11:13:44]Write 300 bytes [11:13:44]NVStorageSaveData done [11:13:44]OFDSenderStorePacket done [11:13:44]KKMCreateOFDPacket done [11:13:44]NVStorageSaveData kkm_last_timestamp [11:13:44]File name is /storage/kkm_last_timestamp [11:13:44]Write 4 bytes [11:13:44]NVStorageSaveData done [11:13:44]ExternCall_PrintAddStr [11:13:44]wPrintStart [11:13:44]Write to MH i2c: 01 00 00 18 31 49 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 18 31 00 00 00 00 00 FF 0F 5E [11:13:44]RasterBufferAndPrint [11:13:44]line Счет N : (1)2885511 [11:13:44]line ИНН: 02508201610067 [11:13:44]line Контрольно-Кассовый Чек [11:13:44]line ПРОДАЖА [11:13:44]line ТРК (МРК, ГНК) : 71 [11:13:44]line Товар: 2711129700 [11:13:44]line ГАЗ-К-3 [11:13:44]line 25.710 * 38.90 [11:13:44]line = 1000.12 [11:13:44]line НДС 12% НСП 1% [11:13:44]line > о реализуемом товаре [11:13:44]line ОКРУГЛЕНИЕ: -0.12 [11:13:44]line ИТОГО: 1000.00 [11:13:44]line Внесено: 1000.00 [11:13:44]line СДАЧА: 0.00 [11:13:44]line НСП 1% : 8.85 [11:13:44]line НДС 12% : 106.21 [11:13:44]line Наличными: 1000.00 [11:13:44]line Безнал.: 0.00 [11:13:44]line Место: АЗС № 85 "Партнер Нефть" [11:13:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:13:44]line СНО: Общий режим [11:13:44]line Чек 160 21.10.2024 11:13 [11:13:44]line Смена: 194 ФФД: 1.0 [11:13:44]line ЗНМ: 0300000167 [11:13:44]line РНМ: 0000000000156251 [11:13:44]line Версия ККМ: v1.0 [11:13:44]line ФМ: 0000000000963346 [11:13:44]line ФД: 69770 [11:13:44]line ФПД: 269170370009031 [11:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111346&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69770&fm=269170370009031&tin=02508201610067®Number=0000000000156251&sum=100000 [11:13:45]OFD Sender: Processing packet 69770 [packets to send 18, broken 17] [11:13:45]ProducePacketName [11:13:45]name=ofd_packets/00069770 [11:13:45]OFD Sender: To server: pG, [11:13:45]CommunicateWithHost lk.salyk.kg:30040 [11:13:45]ConnectInit lk.salyk.kg [11:13:45]written 0, free lines is 4095 [11:13:45]Connected sock=10 [11:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 06 72 06 01 73 B8 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6A 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 10 01 00 35 04 06 00 F4 CF 1C 49 D7 C7 CD 29 92 57 3D D5 AC F9 [11:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 71 20 47 00 22 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 10 01 00 F4 03 04 00 0E E1 15 67 B6 04 01 00 00 4B D2 5D FD 94 E7 DC 89 [11:13:45]CommunicateWithHost err = 0 [11:13:45]CheckOFDResponse [11:13:45]1017 (14) - 77093643461234 [11:13:45]1041 (16) - 0000000000963346 [11:13:45]1040 (4) - 69770 [11:13:45]1012 (4) - 21.10.2024 05:05 [11:13:45]1206 (1) - 0 [11:13:45]OFD Sender: Remove packet 69770 [11:13:45]ProducePacketName [11:13:45]name=ofd_packets/00069770 [11:13:45]NVStorageDeleteData [11:13:45]Write to MH i2c: 01 00 00 43 31 74 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 43 31 00 00 00 00 00 F8 0C 7F [11:13:45]RasterBufferAndPrint [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]line [11:13:45]written 0, free lines is 3330 [11:13:45]MH_Cut [11:13:45]Write to MH i2c: D1 01 00 4A 31 01 4D [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: D1 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: D1 01 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: D1 01 00 4A 31 00 4C [11:13:45]Write to MH i2c: 01 00 00 4B 31 7C [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:46]OFD Sender: No OFD packet to send [11:13:46]*** Cut start [11:13:46]*** Partial cut [11:13:46]*** CUTSNS_PIN = 1 [11:13:46]*** CUTSNS_PIN = 0 [11:13:46]*** Brake cut motor [11:13:47]Read from MH i2c: 01 [11:13:47]MH_I2C_Read... [11:13:47]*** Stop cut motor [11:13:47]*** Cut end [11:13:47]Read from MH i2c: 01 07 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: 01 07 00 4B 31 00 00 00 00 00 FF 0F 91 [11:13:47]process_action close_receipt done [11:13:47]requested_data is exist [11:13:47]produce_requested_data [11:13:47]requested_item fm.sn is exist - process it [11:13:47]wFMCommunicate request_size=4 [11:13:47]MH_SAM_APDU [11:13:47]CAPDU: 80 11 00 00 [11:13:47]Write to MH i2c: E2 08 00 4C 31 80 11 00 00 00 00 00 00 F7 [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:47]Read from MH i2c: E2 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 17 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 17 00 4C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [11:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:47]wFMCommunicate OK [11:13:47]requested_item fd.num is exist - process it [11:13:47]SAM_PROTO_GetFieldsCounters [11:13:47]wFMCommunicate request_size=4 [11:13:47]MH_SAM_APDU [11:13:47]CAPDU: 80 13 00 00 [11:13:47]Write to MH i2c: E2 08 00 4D 31 80 13 00 00 00 00 00 00 FA [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:47]Read from MH i2c: E2 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 62 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 62 00 4D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [11:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:47]wFMCommunicate OK [11:13:47]SAM_PROTO_GetFieldsCounters done [11:13:47]requested_item shift.num is exist - process it [11:13:47]requested_item shift.opened is exist - process it [11:13:47]req_shift_opened [11:13:47]FM_GetShiftState [11:13:47]SAM_PROTO_GetShiftState [11:13:47]wFMCommunicate request_size=4 [11:13:47]MH_SAM_APDU [11:13:47]CAPDU: 80 13 01 00 [11:13:47]Write to MH i2c: E2 08 00 4E 31 80 13 01 00 00 00 00 00 FC [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:47]Read from MH i2c: E2 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 4E 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 28 [11:13:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:13:47]wFMCommunicate OK [11:13:47]SAM_PROTO_GetShiftState done [11:13:47]FM_GetShiftState done [11:13:47]req_shift_opened done [11:13:47]requested_item shift.open_date is exist - process it [11:13:47]req_shift_open_date [11:13:47]req_shift_open_date done [11:13:47]produce_requested_data done [11:13:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69770,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:13:47]process_action_free close_receipt [11:13:47]json_value_free [11:13:47]json_value_free done [11:13:47]process_json_proto returns [11:13:47]Send response to host [11:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69770,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:13:47]free response buf [11:13:47]execute_script done [11:13:47]execute_script returns [11:13:47]free content buf [11:13:47]Sock 9.Close socket [11:13:47]Sock 9.Thread stoped [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:51]accept exits with 8 [11:15:51]New connection [11:15:51]New thread 3067313508 created [11:15:51]Thread 3067456868 joined [11:15:51]Waiting for new connection... [11:15:51] Sock 8.Parse request [11:15:51]Sock 8.Check first char [11:15:51]Sock 8.First char is OK [11:15:51]request: POST /json_proto HTTP/1.0 [11:15:51]Method: POST [11:15:51]URL: /json_proto [11:15:51]Method is POST - this is cgi request [11:15:51]url: /json_proto [11:15:51]query_string will be loaded in cgi processing [11:15:51]execute_cgi json_proto POST (null) [11:15:51]execute_cgi path=json_proto method=POST [11:15:51]POST find Content-Length [11:15:51]Host: 172.17.50.3:8080 [11:15:51]Content-Length: 755 [11:15:51]Content-Type: application/json [11:15:51] [11:15:51]POST finish read [11:15:51]Found Content-Length = 755 [11:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885512", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:51]execute_script... [11: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)2885512", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:51]POST & json_proto [11:15:51]process_json_proto [11:15:51]json parsed OK: [11:15:51]protocol is kg_v1.0 [11:15:51]action value=close_receipt [11:15:51]process_action close_receipt [11:15:51]cmd_close_receipt [11:15:51]MH_GetDate [11:15:51]Write to MH i2c: F0 00 00 4F 31 6F [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: F0 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: F0 09 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: F0 09 00 4F 31 00 EB 37 16 67 6B 98 1E 66 9E [11:15:51]GetLastDocTimeStamp 1729509226 [11:15:51]current date 1729509355 [11:15:51]FM_GetShiftState [11:15:51]SAM_PROTO_GetShiftState [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 13 01 00 [11:15:51]Write to MH i2c: E2 08 00 50 31 80 13 01 00 00 00 00 00 FE [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 0E 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 0E 00 50 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2A [11:15:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:15:51]wFMCommunicate OK [11:15:51]SAM_PROTO_GetShiftState done [11:15:51]FM_GetShiftState done [11:15:51]opened in 1729469703 [11:15:51]opened+sec_in_day 1729556103 [11:15:51]quantity*price = 0 [11:15:51]sum+1 = 1 [11:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 161 21.10.2024 11:15 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30036562 ФМ: 0000000000963346 ФД: 69771 ФПД: 127721767485780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111555&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69771&fm=127721767485780&tin=02508201610067®Number=0000000000156251&sum=0 [11:15:53]StoreToDocumentArchive [11:15:53]shift 194 fd 69771 [11:15:53]save to /storage/0194/doc_00069771 [11:15:53]save last doc name /storage/0194/doc_00069771 to /storage/kkm_last_doc_name [11:15:53]save OK [11:15:53]Clear old archive folders... [11:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:53]tlvbuf is 00CA0770 [11:15:53]SAM_PROTO_ClearQueue [11:15:53]wFMCommunicate request_size=4 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 09 00 00 [11:15:53]Write to MH i2c: E2 08 00 5D 31 80 09 00 00 00 00 00 00 00 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 5D 31 00 90 00 02 [11:15:53]RAPDU: 90 00 [11:15:53]wFMCommunicate OK [11:15:53]SAM_PROTO_ClearQueue done [11:15:53]KKMCreateOFDPacket [11:15:53]OFDProtocolAddRootSTLVToBuf [11:15:53]FM_MakeSignedData [11:15:53]FM_MakeSignedData [11:15:53]SAM_PROTO_SignData [11:15:53]wFMCommunicate request_size=4 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 0D 01 02 [11:15:53]Write to MH i2c: E2 08 00 5E 31 80 0D 01 02 00 00 00 00 08 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 5E 31 00 90 00 03 [11:15:53]RAPDU: 90 00 [11:15:53]wFMCommunicate OK [11:15:53]wFMCommunicate request_size=255 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 EB 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 10 01 00 35 04 06 00 74 [11:15:53]Write to MH i2c: E2 02 01 5F 31 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 EB 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 10 01 00 35 04 06 00 74 00 00 8C [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 5F 31 00 90 00 04 [11:15:53]RAPDU: 90 00 [11:15:53]wFMCommunicate OK [11:15:53]wFMCommunicate request_size=10 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 0D 02 02 05 29 8A 94 C1 54 [11:15:53]Write to MH i2c: E2 0D 00 60 31 80 0D 02 02 05 00 29 8A 94 C1 54 00 00 71 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 03 00 60 31 00 90 00 05 [11:15:53]RAPDU: 90 00 [11:15:53]wFMCommunicate OK [11:15:53]wFMCommunicate request_size=4 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 0D 03 02 [11:15:53]Write to MH i2c: E2 08 00 61 31 80 0D 03 02 00 00 00 00 0D [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 0B 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 0B 00 61 31 00 E0 8E 5E E5 BE 24 DC F6 90 00 73 [11:15:53]RAPDU: E0 8E 5E E5 BE 24 DC F6 90 00 [11:15:53]wFMCommunicate OK [11:15:53]SAM_PROTO_SignData done [11:15:53]FM_MakeSignedData done [11:15:53]CreateOFDProtocolMessage [11:15:53]wFMCommunicate request_size=4 [11:15:53]MH_SAM_APDU [11:15:53]CAPDU: 80 11 00 00 [11:15:53]Write to MH i2c: E2 08 00 62 31 80 11 00 00 00 00 00 00 0D [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:53]Read from MH i2c: E2 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 17 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: E2 17 00 62 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [11:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:15:53]wFMCommunicate OK [11:15:53]CreateOFDProtocolMessage done [11:15:53]OFDSenderStorePacket 69771 [11:15:53]StoreOFDPacket docnum=69771 [11:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 BE 07 01 52 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 EB 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 10 01 00 35 04 06 00 74 29 8A 94 C1 54 E0 8E 5E E5 BE 24 DC F6 [11:15:53]CheckFolder [11:15:53]dirname=/storage/ofd_packets [11:15:53]CheckFolder done [11:15:53]ProducePacketName [11:15:53]name=ofd_packets/00069771 [11:15:53]NVStorageSaveData ofd_packets/00069771 [11:15:53]File name is /storage/ofd_packets/00069771 [11:15:53]Write 301 bytes [11:15:53]NVStorageSaveData done [11:15:53]OFDSenderStorePacket done [11:15:53]KKMCreateOFDPacket done [11:15:53]NVStorageSaveData kkm_last_timestamp [11:15:53]File name is /storage/kkm_last_timestamp [11:15:53]Write 4 bytes [11:15:53]NVStorageSaveData done [11:15:53]ExternCall_PrintAddStr [11:15:53]wPrintStart [11:15:53]Write to MH i2c: 01 00 00 63 31 94 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 FF 0F A9 [11:15:53]RasterBufferAndPrint [11:15:53]line Счет N : (1)2885512 [11:15:53]line ИНН: 02508201610067 [11:15:53]line Контрольно-Кассовый Чек [11:15:53]line ПРОДАЖА [11:15:53]line ТРК (МРК, ГНК) : 32 [11:15:53]line Товар: 2710124130 [11:15:53]line Аи-92-К-5 [11:15:53]line 20.000 * 0.00 [11:15:53]line = 0.00 [11:15:53]line НДС 12% НСП 1% [11:15:53]line > о реализуемом товаре [11:15:53]line ИТОГО: 0.00 [11:15:53]line НСП 1% : 0.00 [11:15:53]line НДС 12% : 0.00 [11:15:53]line Наличными: 0.00 [11:15:53]line Безнал.: 0.00 [11:15:53]line Место: АЗС № 85 "Партнер Нефть" [11:15:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:15:53]line СНО: Общий режим [11:15:53]line Чек 161 21.10.2024 11:15 [11:15:53]line Смена: 194 ФФД: 1.0 [11:15:53]line ЗНМ: 0300000167 [11:15:53]line РНМ: 0000000000156251 [11:15:53]line Версия ККМ: v1.0 [11:15:53]line Талоны: ТК ГПНА Online [11:15:53]line 30036562 [11:15:53]line ФМ: 0000000000963346 [11:15:53]line ФД: 69771 [11:15:53]line ФПД: 127721767485780 [11:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111555&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69771&fm=127721767485780&tin=02508201610067®Number=0000000000156251&sum=0 [11:15:53]OFD Sender: Processing packet 69771 [packets to send 18, broken 17] [11:15:53]ProducePacketName [11:15:53]name=ofd_packets/00069771 [11:15:53]OFD Sender: To server: pG, [11:15:53]CommunicateWithHost lk.salyk.kg:30040 [11:15:53]ConnectInit lk.salyk.kg [11:15:53]written 0, free lines is 4095 [11:15:54]Connected sock=10 [11:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 BE 07 01 52 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 EB 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 10 01 00 35 04 06 00 74 29 8A 94 C1 54 E0 8E 5E E5 BE 24 DC F6 [11:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 45 65 47 00 5C 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 39 36 33 33 34 36 10 04 04 00 8B 10 01 00 F4 03 04 00 8F E1 15 67 B6 04 01 00 00 22 6F 15 57 44 06 6F C6 [11:15:54]CommunicateWithHost err = 0 [11:15:54]CheckOFDResponse [11:15:54]1017 (14) - 77093643461234 [11:15:54]1041 (16) - 0000000000963346 [11:15:54]1040 (4) - 69771 [11:15:54]1012 (4) - 21.10.2024 05:07 [11:15:54]1206 (1) - 0 [11:15:54]OFD Sender: Remove packet 69771 [11:15:54]ProducePacketName [11:15:54]name=ofd_packets/00069771 [11:15:54]NVStorageDeleteData [11:15:54]Write to MH i2c: 01 00 00 8D 31 BE [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: 01 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: 01 07 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: 01 07 00 8D 31 00 00 00 00 00 FF 0C D0 [11:15:54]RasterBufferAndPrint [11:15:54]line [11:15:54]line [11:15:54]line [11:15:54]line [11:15:54]line [11:15:54]written 0, free lines is 3333 [11:15:54]MH_Cut [11:15:54]Write to MH i2c: D1 01 00 94 31 01 97 [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: D1 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: D1 01 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: D1 01 00 94 31 00 96 [11:15:54]Write to MH i2c: 01 00 00 95 31 C6 [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]OFD Sender: No OFD packet to send [11:15:55]*** Cut start [11:15:55]*** Partial cut [11:15:55]*** CUTSNS_PIN = 1 [11:15:55]*** CUTSNS_PIN = 0 [11:15:55]*** Brake cut motor [11:15:55]Read from MH i2c: 01 [11:15:55]MH_I2C_Read... [11:15:55]*** Stop cut motor [11:15:55]*** Cut end [11:15:55]Read from MH i2c: 01 07 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: 01 07 00 95 31 00 00 00 00 00 FF 0F DB [11:15:55]process_action close_receipt done [11:15:55]requested_data is exist [11:15:55]produce_requested_data [11:15:55]requested_item fm.sn is exist - process it [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 11 00 00 [11:15:55]Write to MH i2c: E2 08 00 96 31 80 11 00 00 00 00 00 00 41 [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 17 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 17 00 96 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [11:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:15:55]wFMCommunicate OK [11:15:55]requested_item fd.num is exist - process it [11:15:55]SAM_PROTO_GetFieldsCounters [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 13 00 00 [11:15:55]Write to MH i2c: E2 08 00 97 31 80 13 00 00 00 00 00 00 44 [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 62 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 62 00 97 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [11:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:55]wFMCommunicate OK [11:15:55]SAM_PROTO_GetFieldsCounters done [11:15:55]requested_item shift.num is exist - process it [11:15:55]requested_item shift.opened is exist - process it [11:15:55]req_shift_opened [11:15:55]FM_GetShiftState [11:15:55]SAM_PROTO_GetShiftState [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 13 01 00 [11:15:55]Write to MH i2c: E2 08 00 98 31 80 13 01 00 00 00 00 00 46 [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 0E 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 0E 00 98 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 72 [11:15:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:15:55]wFMCommunicate OK [11:15:55]SAM_PROTO_GetShiftState done [11:15:55]FM_GetShiftState done [11:15:55]req_shift_opened done [11:15:55]requested_item shift.open_date is exist - process it [11:15:55]req_shift_open_date [11:15:55]req_shift_open_date done [11:15:55]produce_requested_data done [11:15:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69771,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:15:55]process_action_free close_receipt [11:15:55]json_value_free [11:15:55]json_value_free done [11:15:55]process_json_proto returns [11:15:55]Send response to host [11:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69771,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:15:55]free response buf [11:15:55]execute_script done [11:15:55]execute_script returns [11:15:55]free content buf [11:15:55]Sock 8.Close socket [11:15:55]Sock 8.Thread stoped [11:15:59]OFD Sender: No OFD packet to send [11:16:04]accept exits with 9 [11:16:04]New connection [11:16:04]New thread 3067456868 created [11:16:04]Thread 3067313508 joined [11:16:04]Waiting for new connection... [11:16:04] Sock 9.Parse request [11:16:04]Sock 9.Check first char [11:16:04]Sock 9.First char is OK [11:16:04]request: POST /json_proto HTTP/1.0 [11:16:04]Method: POST [11:16:04]URL: /json_proto [11:16:04]Method is POST - this is cgi request [11:16:04]url: /json_proto [11:16:04]query_string will be loaded in cgi processing [11:16:04]execute_cgi json_proto POST (null) [11:16:04]execute_cgi path=json_proto method=POST [11:16:04]POST find Content-Length [11:16:04]Host: 172.17.50.3:8080 [11:16:04]Content-Length: 678 [11:16:04]Content-Type: application/json [11:16:04] [11:16:04]POST finish read [11:16:04]Found Content-Length = 678 [11:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:04]execute_script... [11:16: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)2885514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:04]POST & json_proto [11:16:04]process_json_proto [11:16:04]json parsed OK: [11:16:04]protocol is kg_v1.0 [11:16:04]action value=close_receipt [11:16:04]process_action close_receipt [11:16:04]cmd_close_receipt [11:16:04]MH_GetDate [11:16:04]Write to MH i2c: F0 00 00 99 31 B9 [11:16:04]Write i2c OK [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 09 00 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: F0 09 00 99 31 00 F8 37 16 67 6B 98 1E 66 F5 [11:16:04]GetLastDocTimeStamp 1729509355 [11:16:04]current date 1729509368 [11:16:04]FM_GetShiftState [11:16:04]SAM_PROTO_GetShiftState [11:16:04]wFMCommunicate request_size=4 [11:16:04]MH_SAM_APDU [11:16:04]CAPDU: 80 13 01 00 [11:16:04]Write to MH i2c: E2 08 00 9A 31 80 13 01 00 00 00 00 00 48 [11:16:04]Write i2c OK [11:16:04]MH_I2C_Read... [11:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:04]Read from MH i2c: E2 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: E2 0E 00 [11:16:04]MH_I2C_Read... [11:16:04]Read from MH i2c: E2 0E 00 9A 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 74 [11:16:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:16:04]wFMCommunicate OK [11:16:04]SAM_PROTO_GetShiftState done [11:16:04]FM_GetShiftState done [11:16:04]opened in 1729469703 [11:16:04]opened+sec_in_day 1729556103 [11:16:04]quantity*price = 50041 [11:16:04]sum+1 = 50042 [11:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 162 21.10.2024 11:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69772 ФПД: 139627881361279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69772&fm=139627881361279&tin=02508201610067®Number=0000000000156251&sum=50000 [11:16:05]StoreToDocumentArchive [11:16:05]shift 194 fd 69772 [11:16:05]save to /storage/0194/doc_00069772 [11:16:05]save last doc name /storage/0194/doc_00069772 to /storage/kkm_last_doc_name [11:16:05]save OK [11:16:05]Clear old archive folders... [11:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:05]tlvbuf is 00C7D050 [11:16:05]SAM_PROTO_ClearQueue [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 09 00 00 [11:16:05]Write to MH i2c: E2 08 00 A7 31 80 09 00 00 00 00 00 00 4A [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 A7 31 00 90 00 4C [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]SAM_PROTO_ClearQueue done [11:16:05]KKMCreateOFDPacket [11:16:05]OFDProtocolAddRootSTLVToBuf [11:16:05]FM_MakeSignedData [11:16:05]FM_MakeSignedData [11:16:05]SAM_PROTO_SignData [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 01 02 [11:16:05]Write to MH i2c: E2 08 00 A8 31 80 0D 01 02 00 00 00 00 52 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 A8 31 00 90 00 4D [11:16:06]RAPDU: 90 00 [11:16:06]wFMCommunicate OK [11:16:06]wFMCommunicate request_size=255 [11:16:06]MH_SAM_APDU [11:16:06]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F8 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 10 01 00 35 04 06 00 7E [11:16:06]Write to MH i2c: E2 02 01 A9 31 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F8 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 10 01 00 35 04 06 00 7E 00 00 06 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 A9 31 00 90 00 4E [11:16:06]RAPDU: 90 00 [11:16:06]wFMCommunicate OK [11:16:06]wFMCommunicate request_size=10 [11:16:06]MH_SAM_APDU [11:16:06]CAPDU: 80 0D 02 02 05 FD A6 44 EF 7F [11:16:06]Write to MH i2c: E2 0D 00 AA 31 80 0D 02 02 05 00 FD A6 44 EF 7F 00 00 B4 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 03 00 AA 31 00 90 00 4F [11:16:06]RAPDU: 90 00 [11:16:06]wFMCommunicate OK [11:16:06]wFMCommunicate request_size=4 [11:16:06]MH_SAM_APDU [11:16:06]CAPDU: 80 0D 03 02 [11:16:06]Write to MH i2c: E2 08 00 AB 31 80 0D 03 02 00 00 00 00 57 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 0B 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 0B 00 AB 31 00 04 E2 EC CF 0C 19 C8 C6 90 00 AC [11:16:06]RAPDU: 04 E2 EC CF 0C 19 C8 C6 90 00 [11:16:06]wFMCommunicate OK [11:16:06]SAM_PROTO_SignData done [11:16:06]FM_MakeSignedData done [11:16:06]CreateOFDProtocolMessage [11:16:06]wFMCommunicate request_size=4 [11:16:06]MH_SAM_APDU [11:16:06]CAPDU: 80 11 00 00 [11:16:06]Write to MH i2c: E2 08 00 AC 31 80 11 00 00 00 00 00 00 57 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:06]Read from MH i2c: E2 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 17 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: E2 17 00 AC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [11:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:06]wFMCommunicate OK [11:16:06]CreateOFDProtocolMessage done [11:16:06]OFDSenderStorePacket 69772 [11:16:06]StoreOFDPacket docnum=69772 [11:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 24 07 01 03 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F8 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 10 01 00 35 04 06 00 7E FD A6 44 EF 7F 04 E2 EC CF 0C 19 C8 C6 [11:16:06]CheckFolder [11:16:06]dirname=/storage/ofd_packets [11:16:06]CheckFolder done [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00069772 [11:16:06]NVStorageSaveData ofd_packets/00069772 [11:16:06]File name is /storage/ofd_packets/00069772 [11:16:06]Write 301 bytes [11:16:06]NVStorageSaveData done [11:16:06]OFDSenderStorePacket done [11:16:06]KKMCreateOFDPacket done [11:16:06]NVStorageSaveData kkm_last_timestamp [11:16:06]File name is /storage/kkm_last_timestamp [11:16:06]Write 4 bytes [11:16:06]NVStorageSaveData done [11:16:06]ExternCall_PrintAddStr [11:16:06]wPrintStart [11:16:06]Write to MH i2c: 01 00 00 AD 31 DE [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 AD 31 00 00 00 00 00 FF 0F F3 [11:16:06]RasterBufferAndPrint [11:16:06]line Счет N : (1)2885514 [11:16:06]line ИНН: 02508201610067 [11:16:06]line Контрольно-Кассовый Чек [11:16:06]line ПРОДАЖА [11:16:06]line ТРК (МРК, ГНК) : 22 [11:16:06]line Товар: 2710124130 [11:16:06]line Аи-92-К-5 [11:16:06]line 7.480 * 66.90 [11:16:06]line = 500.41 [11:16:06]line НДС 12% НСП 1% [11:16:06]line > о реализуемом товаре [11:16:06]line ОКРУГЛЕНИЕ: -0.41 [11:16:06]line ИТОГО: 500.00 [11:16:06]line Внесено: 500.00 [11:16:06]line СДАЧА: 0.00 [11:16:06]line НСП 1% : 4.43 [11:16:06]line НДС 12% : 53.14 [11:16:06]line Наличными: 500.00 [11:16:06]line Безнал.: 0.00 [11:16:06]line Место: АЗС № 85 "Партнер Нефть" [11:16:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:16:06]line СНО: Общий режим [11:16:06]line Чек 162 21.10.2024 11:16 [11:16:06]line Смена: 194 ФФД: 1.0 [11:16:06]line ЗНМ: 0300000167 [11:16:06]line РНМ: 0000000000156251 [11:16:06]line Версия ККМ: v1.0 [11:16:06]line ФМ: 0000000000963346 [11:16:06]line ФД: 69772 [11:16:06]line ФПД: 139627881361279 [11:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69772&fm=139627881361279&tin=02508201610067®Number=0000000000156251&sum=50000 [11:16:06]OFD Sender: Processing packet 69772 [packets to send 18, broken 17] [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00069772 [11:16:06]OFD Sender: To server: pG, [11:16:06]CommunicateWithHost lk.salyk.kg:30040 [11:16:06]ConnectInit lk.salyk.kg [11:16:06]written 0, free lines is 4095 [11:16:06]Connected sock=10 [11:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 24 07 01 03 A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 F8 37 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 10 01 00 35 04 06 00 7E FD A6 44 EF 7F 04 E2 EC CF 0C 19 C8 C6 [11:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CD 11 47 00 9E 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 39 36 33 33 34 36 10 04 04 00 8C 10 01 00 F4 03 04 00 9C E1 15 67 B6 04 01 00 00 2E F3 A0 83 90 39 09 5A [11:16:07]CommunicateWithHost err = 0 [11:16:07]CheckOFDResponse [11:16:07]1017 (14) - 77093643461234 [11:16:07]1041 (16) - 0000000000963346 [11:16:07]1040 (4) - 69772 [11:16:07]1012 (4) - 21.10.2024 05:07 [11:16:07]1206 (1) - 0 [11:16:07]OFD Sender: Remove packet 69772 [11:16:07]ProducePacketName [11:16:07]name=ofd_packets/00069772 [11:16:07]NVStorageDeleteData [11:16:07]Write to MH i2c: 01 00 00 D8 31 09 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: 01 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: 01 07 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: 01 07 00 D8 31 00 00 00 00 00 F5 0C 11 [11:16:07]RasterBufferAndPrint [11:16:07]line [11:16:07]line [11:16:07]line [11:16:07]line [11:16:07]line [11:16:07]written 0, free lines is 3327 [11:16:07]MH_Cut [11:16:07]Write to MH i2c: D1 01 00 DF 31 01 E2 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: D1 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: D1 01 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: D1 01 00 DF 31 00 E1 [11:16:07]Write to MH i2c: 01 00 00 E0 31 11 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]OFD Sender: No OFD packet to send [11:16:07]*** Cut start [11:16:07]*** Partial cut [11:16:07]*** CUTSNS_PIN = 1 [11:16:07]*** CUTSNS_PIN = 0 [11:16:08]*** Brake cut motor [11:16:08]Read from MH i2c: 01 [11:16:08]MH_I2C_Read... [11:16:08]*** Stop cut motor [11:16:08]*** Cut end [11:16:08]Read from MH i2c: 01 07 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: 01 07 00 E0 31 00 00 00 00 00 FF 0F 26 [11:16:08]process_action close_receipt done [11:16:08]requested_data is exist [11:16:08]produce_requested_data [11:16:08]requested_item fm.sn is exist - process it [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 11 00 00 [11:16:08]Write to MH i2c: E2 08 00 E1 31 80 11 00 00 00 00 00 00 8C [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 E1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [11:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:08]wFMCommunicate OK [11:16:08]requested_item fd.num is exist - process it [11:16:08]SAM_PROTO_GetFieldsCounters [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 00 00 [11:16:08]Write to MH i2c: E2 08 00 E2 31 80 13 00 00 00 00 00 00 8F [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 E2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetFieldsCounters done [11:16:08]requested_item shift.num is exist - process it [11:16:08]requested_item shift.opened is exist - process it [11:16:08]req_shift_opened [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 E3 31 80 13 01 00 00 00 00 00 91 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 E3 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BD [11:16:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]req_shift_opened done [11:16:08]requested_item shift.open_date is exist - process it [11:16:08]req_shift_open_date [11:16:08]req_shift_open_date done [11:16:08]produce_requested_data done [11:16:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69772,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:16:08]process_action_free close_receipt [11:16:08]json_value_free [11:16:08]json_value_free done [11:16:08]process_json_proto returns [11:16:08]Send response to host [11:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69772,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:16:08]free response buf [11:16:08]execute_script done [11:16:08]execute_script returns [11:16:08]free content buf [11:16:08]Sock 9.Close socket [11:16:08]Sock 9.Thread stoped [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:20]accept exits with 8 [11:16:20]New connection [11:16:20]New thread 3067313508 created [11:16:20]Thread 3067456868 joined [11:16:20]Waiting for new connection... [11:16:20] Sock 8.Parse request [11:16:20]Sock 8.Check first char [11:16:20]Sock 8.First char is OK [11:16:20]request: POST /json_proto HTTP/1.0 [11:16:20]Method: POST [11:16:20]URL: /json_proto [11:16:20]Method is POST - this is cgi request [11:16:20]url: /json_proto [11:16:20]query_string will be loaded in cgi processing [11:16:20]execute_cgi json_proto POST (null) [11:16:20]execute_cgi path=json_proto method=POST [11:16:20]POST find Content-Length [11:16:20]Host: 172.17.50.3:8080 [11:16:20]Content-Length: 683 [11:16:20]Content-Type: application/json [11:16:20] [11:16:20]POST finish read [11:16:20]Found Content-Length = 683 [11:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885513", "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" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [11:16:20]execute_script... [11:16: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)2885513", "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" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [11:16:20]POST & json_proto [11:16:20]process_json_proto [11:16:20]json parsed OK: [11:16:20]protocol is kg_v1.0 [11:16:20]action value=close_receipt [11:16:20]process_action close_receipt [11:16:20]cmd_close_receipt [11:16:20]MH_GetDate [11:16:20]Write to MH i2c: F0 00 00 E4 31 04 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: F0 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: F0 09 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: F0 09 00 E4 31 00 08 38 16 67 6B 98 1E 66 51 [11:16:20]GetLastDocTimeStamp 1729509368 [11:16:20]current date 1729509384 [11:16:20]FM_GetShiftState [11:16:20]SAM_PROTO_GetShiftState [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 13 01 00 [11:16:20]Write to MH i2c: E2 08 00 E5 31 80 13 01 00 00 00 00 00 93 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 E5 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [11:16:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_GetShiftState done [11:16:20]FM_GetShiftState done [11:16:20]opened in 1729469703 [11:16:20]opened+sec_in_day 1729556103 [11:16:20]quantity*price = 200031 [11:16:20]sum+1 = 200032 [11:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 163 21.10.2024 11:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69773 ФПД: 135887616539212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69773&fm=135887616539212&tin=02508201610067®Number=0000000000156251&sum=200000 [11:16:21]StoreToDocumentArchive [11:16:21]shift 194 fd 69773 [11:16:21]save to /storage/0194/doc_00069773 [11:16:21]save last doc name /storage/0194/doc_00069773 to /storage/kkm_last_doc_name [11:16:21]save OK [11:16:21]Clear old archive folders... [11:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:21]tlvbuf is B6FD0910 [11:16:21]SAM_PROTO_ClearQueue [11:16:21]wFMCommunicate request_size=4 [11:16:21]MH_SAM_APDU [11:16:21]CAPDU: 80 09 00 00 [11:16:21]Write to MH i2c: E2 08 00 F2 31 80 09 00 00 00 00 00 00 95 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:21]Read from MH i2c: E2 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 03 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 03 00 F2 31 00 90 00 97 [11:16:21]RAPDU: 90 00 [11:16:21]wFMCommunicate OK [11:16:21]SAM_PROTO_ClearQueue done [11:16:21]KKMCreateOFDPacket [11:16:21]OFDProtocolAddRootSTLVToBuf [11:16:21]FM_MakeSignedData [11:16:21]FM_MakeSignedData [11:16:21]SAM_PROTO_SignData [11:16:21]wFMCommunicate request_size=4 [11:16:21]MH_SAM_APDU [11:16:21]CAPDU: 80 0D 01 02 [11:16:21]Write to MH i2c: E2 08 00 F3 31 80 0D 01 02 00 00 00 00 9D [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:21]Read from MH i2c: E2 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 03 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 03 00 F3 31 00 90 00 98 [11:16:21]RAPDU: 90 00 [11:16:21]wFMCommunicate OK [11:16:21]wFMCommunicate request_size=255 [11:16:21]MH_SAM_APDU [11:16:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 A3 00 00 00 F4 03 04 00 08 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 10 01 00 35 04 06 00 7B [11:16:21]Write to MH i2c: E2 02 01 F4 31 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 A3 00 00 00 F4 03 04 00 08 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 10 01 00 35 04 06 00 7B 00 00 A3 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 03 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 03 00 F4 31 00 90 00 99 [11:16:22]RAPDU: 90 00 [11:16:22]wFMCommunicate OK [11:16:22]wFMCommunicate request_size=10 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 0D 02 02 05 96 CD 1C FA 4C [11:16:22]Write to MH i2c: E2 0D 00 F5 31 80 0D 02 02 05 00 96 CD 1C FA 4C 00 00 6F [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 03 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 03 00 F5 31 00 90 00 9A [11:16:22]RAPDU: 90 00 [11:16:22]wFMCommunicate OK [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 0D 03 02 [11:16:22]Write to MH i2c: E2 08 00 F6 31 80 0D 03 02 00 00 00 00 A2 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0B 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0B 00 F6 31 00 FE 1B F9 8B FF 6B C7 78 90 00 E9 [11:16:22]RAPDU: FE 1B F9 8B FF 6B C7 78 90 00 [11:16:22]wFMCommunicate OK [11:16:22]SAM_PROTO_SignData done [11:16:22]FM_MakeSignedData done [11:16:22]CreateOFDProtocolMessage [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 11 00 00 [11:16:22]Write to MH i2c: E2 08 00 F7 31 80 11 00 00 00 00 00 00 A2 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 17 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 17 00 F7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [11:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:22]wFMCommunicate OK [11:16:22]CreateOFDProtocolMessage done [11:16:22]OFDSenderStorePacket 69773 [11:16:22]StoreOFDPacket docnum=69773 [11:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8E 4F 07 01 55 52 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 A3 00 00 00 F4 03 04 00 08 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 10 01 00 35 04 06 00 7B 96 CD 1C FA 4C FE 1B F9 8B FF 6B C7 78 [11:16:22]CheckFolder [11:16:22]dirname=/storage/ofd_packets [11:16:22]CheckFolder done [11:16:22]ProducePacketName [11:16:22]name=ofd_packets/00069773 [11:16:22]NVStorageSaveData ofd_packets/00069773 [11:16:22]File name is /storage/ofd_packets/00069773 [11:16:22]Write 301 bytes [11:16:22]NVStorageSaveData done [11:16:22]OFDSenderStorePacket done [11:16:22]KKMCreateOFDPacket done [11:16:22]NVStorageSaveData kkm_last_timestamp [11:16:22]File name is /storage/kkm_last_timestamp [11:16:22]Write 4 bytes [11:16:22]NVStorageSaveData done [11:16:22]ExternCall_PrintAddStr [11:16:22]wPrintStart [11:16:22]Write to MH i2c: 01 00 00 F8 31 29 [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: 01 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: 01 07 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: 01 07 00 F8 31 00 00 00 00 00 FF 0F 3E [11:16:22]RasterBufferAndPrint [11:16:22]line Счет N : (1)2885513 [11:16:22]line ИНН: 02508201610067 [11:16:22]line Контрольно-Кассовый Чек [11:16:22]line ПРОДАЖА [11:16:22]line ТРК (МРК, ГНК) : 42 [11:16:22]line Товар: 2710124130 [11:16:22]line Аи-92-К-5 [11:16:22]line 29.900 * 66.90 [11:16:22]line = 2000.31 [11:16:22]line НДС 12% НСП 1% [11:16:22]line > о реализуемом товаре [11:16:22]line ОКРУГЛЕНИЕ: -0.31 [11:16:22]line ИТОГО: 2000.00 [11:16:22]line Внесено: 2000.00 [11:16:22]line СДАЧА: 0.00 [11:16:22]line НСП 1% : 17.70 [11:16:22]line НДС 12% : 212.42 [11:16:22]line Наличными: 2000.00 [11:16:22]line Безнал.: 0.00 [11:16:22]line Место: АЗС № 85 "Партнер Нефть" [11:16:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:16:22]line СНО: Общий режим [11:16:22]line Чек 163 21.10.2024 11:16 [11:16:22]line Смена: 194 ФФД: 1.0 [11:16:22]line ЗНМ: 0300000167 [11:16:22]line РНМ: 0000000000156251 [11:16:22]line Версия ККМ: v1.0 [11:16:22]line ФМ: 0000000000963346 [11:16:22]line ФД: 69773 [11:16:22]line ФПД: 135887616539212 [11:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69773&fm=135887616539212&tin=02508201610067®Number=0000000000156251&sum=200000 [11:16:22]OFD Sender: Processing packet 69773 [packets to send 18, broken 17] [11:16:22]ProducePacketName [11:16:22]name=ofd_packets/00069773 [11:16:22]OFD Sender: To server: pG, [11:16:22]CommunicateWithHost lk.salyk.kg:30040 [11:16:22]ConnectInit lk.salyk.kg [11:16:22]written 0, free lines is 4095 [11:16:22]Connected sock=10 [11:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8E 4F 07 01 55 52 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 A3 00 00 00 F4 03 04 00 08 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 10 01 00 35 04 06 00 7B 96 CD 1C FA 4C FE 1B F9 8B FF 6B C7 78 [11:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 81 47 00 02 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 39 36 33 33 34 36 10 04 04 00 8D 10 01 00 F4 03 04 00 AC E1 15 67 B6 04 01 00 00 FC 7E 26 EE CB 9A F3 89 [11:16:23]CommunicateWithHost err = 0 [11:16:23]CheckOFDResponse [11:16:23]1017 (14) - 77093643461234 [11:16:23]1041 (16) - 0000000000963346 [11:16:23]1040 (4) - 69773 [11:16:23]1012 (4) - 21.10.2024 05:07 [11:16:23]1206 (1) - 0 [11:16:23]OFD Sender: Remove packet 69773 [11:16:23]ProducePacketName [11:16:23]name=ofd_packets/00069773 [11:16:23]NVStorageDeleteData [11:16:23]Write to MH i2c: 01 00 00 23 32 55 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: 01 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: 01 07 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: 01 07 00 23 32 00 00 00 00 00 EF 0C 57 [11:16:23]RasterBufferAndPrint [11:16:23]line [11:16:23]line [11:16:23]line [11:16:23]line [11:16:23]line [11:16:23]written 0, free lines is 3320 [11:16:23]MH_Cut [11:16:23]Write to MH i2c: D1 01 00 2A 32 01 2E [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: D1 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: D1 01 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: D1 01 00 2A 32 00 2D [11:16:23]Write to MH i2c: 01 00 00 2B 32 5D [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]OFD Sender: No OFD packet to send [11:16:23]*** Cut start [11:16:23]*** Partial cut [11:16:23]*** CUTSNS_PIN = 1 [11:16:23]*** CUTSNS_PIN = 0 [11:16:24]*** Brake cut motor [11:16:24]Read from MH i2c: 01 [11:16:24]MH_I2C_Read... [11:16:24]*** Stop cut motor [11:16:24]*** Cut end [11:16:24]Read from MH i2c: 01 07 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 2B 32 00 00 00 00 00 FF 0F 72 [11:16:24]process_action close_receipt done [11:16:24]requested_data is exist [11:16:24]produce_requested_data [11:16:24]requested_item fm.sn is exist - process it [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 11 00 00 [11:16:24]Write to MH i2c: E2 08 00 2C 32 80 11 00 00 00 00 00 00 D8 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 2C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [11:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:24]wFMCommunicate OK [11:16:24]requested_item fd.num is exist - process it [11:16:24]SAM_PROTO_GetFieldsCounters [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 13 00 00 [11:16:24]Write to MH i2c: E2 08 00 2D 32 80 13 00 00 00 00 00 00 DB [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 62 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 62 00 2D 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_GetFieldsCounters done [11:16:24]requested_item shift.num is exist - process it [11:16:24]requested_item shift.opened is exist - process it [11:16:24]req_shift_opened [11:16:24]FM_GetShiftState [11:16:24]SAM_PROTO_GetShiftState [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 13 01 00 [11:16:24]Write to MH i2c: E2 08 00 2E 32 80 13 01 00 00 00 00 00 DD [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0E 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0E 00 2E 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 09 [11:16:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_GetShiftState done [11:16:24]FM_GetShiftState done [11:16:24]req_shift_opened done [11:16:24]requested_item shift.open_date is exist - process it [11:16:24]req_shift_open_date [11:16:24]req_shift_open_date done [11:16:24]produce_requested_data done [11:16:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69773,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:16:24]process_action_free close_receipt [11:16:24]json_value_free [11:16:24]json_value_free done [11:16:24]process_json_proto returns [11:16:24]Send response to host [11:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69773,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:16:24]free response buf [11:16:24]execute_script done [11:16:24]execute_script returns [11:16:24]free content buf [11:16:24]Sock 8.Close socket [11:16:24]Sock 8.Thread stoped [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: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:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:24]accept exits with 9 [11:19:24]New connection [11:19:24]New thread 3067456868 created [11:19:24]Thread 3067313508 joined [11:19:24]Waiting for new connection... [11:19:24] Sock 9.Parse request [11:19:24]Sock 9.Check first char [11:19:24]Sock 9.First char is OK [11:19:24]request: POST /json_proto HTTP/1.0 [11:19:24]Method: POST [11:19:24]URL: /json_proto [11:19:24]Method is POST - this is cgi request [11:19:24]url: /json_proto [11:19:24]query_string will be loaded in cgi processing [11:19:24]execute_cgi json_proto POST (null) [11:19:24]execute_cgi path=json_proto method=POST [11:19:24]POST find Content-Length [11:19:24]Host: 172.17.50.3:8080 [11:19:24]Content-Length: 683 [11:19:24]Content-Type: application/json [11:19:24] [11:19:24]POST finish read [11:19:24]Found Content-Length = 683 [11:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885516", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:24]execute_script... [11:19: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)2885516", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:24]POST & json_proto [11:19:24]process_json_proto [11:19:24]json parsed OK: [11:19:24]protocol is kg_v1.0 [11:19:24]action value=close_receipt [11:19:24]process_action close_receipt [11:19:24]cmd_close_receipt [11:19:24]MH_GetDate [11:19:24]Write to MH i2c: F0 00 00 2F 32 50 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: F0 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: F0 09 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: F0 09 00 2F 32 00 C0 38 16 67 6B 98 1E 66 55 [11:19:24]GetLastDocTimeStamp 1729509384 [11:19:24]current date 1729509568 [11:19:24]FM_GetShiftState [11:19:24]SAM_PROTO_GetShiftState [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 01 00 [11:19:24]Write to MH i2c: E2 08 00 30 32 80 13 01 00 00 00 00 00 DF [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 30 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0B [11:19:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_GetShiftState done [11:19:24]FM_GetShiftState done [11:19:24]opened in 1729469703 [11:19:24]opened+sec_in_day 1729556103 [11:19:24]quantity*price = 100015 [11:19:24]sum+1 = 100017 [11:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 164 21.10.2024 11:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69774 ФПД: 213621764409609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111928&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69774&fm=213621764409609&tin=02508201610067®Number=0000000000156251&sum=100000 [11:19:26]StoreToDocumentArchive [11:19:26]shift 194 fd 69774 [11:19:26]save to /storage/0194/doc_00069774 [11:19:26]save last doc name /storage/0194/doc_00069774 to /storage/kkm_last_doc_name [11:19:26]save OK [11:19:26]Clear old archive folders... [11:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:26]tlvbuf is B6FD35D0 [11:19:26]SAM_PROTO_ClearQueue [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 09 00 00 [11:19:26]Write to MH i2c: E2 08 00 3D 32 80 09 00 00 00 00 00 00 E1 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 3D 32 00 90 00 E3 [11:19:26]RAPDU: 90 00 [11:19:26]wFMCommunicate OK [11:19:26]SAM_PROTO_ClearQueue done [11:19:26]KKMCreateOFDPacket [11:19:26]OFDProtocolAddRootSTLVToBuf [11:19:26]FM_MakeSignedData [11:19:26]FM_MakeSignedData [11:19:26]SAM_PROTO_SignData [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 0D 01 02 [11:19:26]Write to MH i2c: E2 08 00 3E 32 80 0D 01 02 00 00 00 00 E9 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 3E 32 00 90 00 E4 [11:19:26]RAPDU: 90 00 [11:19:26]wFMCommunicate OK [11:19:26]wFMCommunicate request_size=255 [11:19:26]MH_SAM_APDU [11:19:26]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 C0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 10 01 00 35 04 06 00 C2 [11:19:26]Write to MH i2c: E2 02 01 3F 32 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 C0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 10 01 00 35 04 06 00 C2 00 00 A8 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 3F 32 00 90 00 E5 [11:19:26]RAPDU: 90 00 [11:19:26]wFMCommunicate OK [11:19:26]wFMCommunicate request_size=10 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 0D 02 02 05 49 B1 62 49 09 [11:19:26]Write to MH i2c: E2 0D 00 40 32 80 0D 02 02 05 00 49 B1 62 49 09 00 00 A4 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 03 00 40 32 00 90 00 E6 [11:19:26]RAPDU: 90 00 [11:19:26]wFMCommunicate OK [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 0D 03 02 [11:19:26]Write to MH i2c: E2 08 00 41 32 80 0D 03 02 00 00 00 00 EE [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0B 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0B 00 41 32 00 57 B4 20 AE 9F 2A C9 FE 90 00 58 [11:19:26]RAPDU: 57 B4 20 AE 9F 2A C9 FE 90 00 [11:19:26]wFMCommunicate OK [11:19:26]SAM_PROTO_SignData done [11:19:26]FM_MakeSignedData done [11:19:26]CreateOFDProtocolMessage [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 11 00 00 [11:19:26]Write to MH i2c: E2 08 00 42 32 80 11 00 00 00 00 00 00 EE [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 17 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 17 00 42 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [11:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:26]wFMCommunicate OK [11:19:26]CreateOFDProtocolMessage done [11:19:26]OFDSenderStorePacket 69774 [11:19:26]StoreOFDPacket docnum=69774 [11:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 65 52 07 01 C5 B8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 C0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 10 01 00 35 04 06 00 C2 49 B1 62 49 09 57 B4 20 AE 9F 2A C9 FE [11:19:26]CheckFolder [11:19:26]dirname=/storage/ofd_packets [11:19:26]CheckFolder done [11:19:26]ProducePacketName [11:19:26]name=ofd_packets/00069774 [11:19:26]NVStorageSaveData ofd_packets/00069774 [11:19:26]File name is /storage/ofd_packets/00069774 [11:19:26]Write 301 bytes [11:19:26]NVStorageSaveData done [11:19:26]OFDSenderStorePacket done [11:19:26]KKMCreateOFDPacket done [11:19:26]NVStorageSaveData kkm_last_timestamp [11:19:26]File name is /storage/kkm_last_timestamp [11:19:26]Write 4 bytes [11:19:26]NVStorageSaveData done [11:19:26]ExternCall_PrintAddStr [11:19:26]wPrintStart [11:19:26]Write to MH i2c: 01 00 00 43 32 75 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: 01 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: 01 07 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: 01 07 00 43 32 00 00 00 00 00 FF 0F 8A [11:19:26]RasterBufferAndPrint [11:19:26]line Счет N : (1)2885516 [11:19:26]line ИНН: 02508201610067 [11:19:26]line Контрольно-Кассовый Чек [11:19:26]line ПРОДАЖА [11:19:26]line ТРК (МРК, ГНК) : 32 [11:19:26]line Товар: 2710124130 [11:19:26]line Аи-92-К-5 [11:19:26]line 14.950 * 66.90 [11:19:26]line = 1000.16 [11:19:26]line НДС 12% НСП 1% [11:19:26]line > о реализуемом товаре [11:19:26]line ОКРУГЛЕНИЕ: -0.16 [11:19:26]line ИТОГО: 1000.00 [11:19:26]line Внесено: 1000.00 [11:19:26]line СДАЧА: 0.00 [11:19:26]line НСП 1% : 8.85 [11:19:26]line НДС 12% : 106.21 [11:19:26]line Наличными: 1000.00 [11:19:26]line Безнал.: 0.00 [11:19:26]line Место: АЗС № 85 "Партнер Нефть" [11:19:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:19:26]line СНО: Общий режим [11:19:26]line Чек 164 21.10.2024 11:19 [11:19:26]line Смена: 194 ФФД: 1.0 [11:19:26]line ЗНМ: 0300000167 [11:19:26]line РНМ: 0000000000156251 [11:19:26]line Версия ККМ: v1.0 [11:19:26]line ФМ: 0000000000963346 [11:19:26]line ФД: 69774 [11:19:26]line ФПД: 213621764409609 [11:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111928&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69774&fm=213621764409609&tin=02508201610067®Number=0000000000156251&sum=100000 [11:19:26]OFD Sender: Processing packet 69774 [packets to send 18, broken 17] [11:19:26]ProducePacketName [11:19:26]name=ofd_packets/00069774 [11:19:26]OFD Sender: To server: pG, [11:19:26]CommunicateWithHost lk.salyk.kg:30040 [11:19:26]ConnectInit lk.salyk.kg [11:19:26]written 0, free lines is 4095 [11:19:26]Connected sock=10 [11:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 65 52 07 01 C5 B8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 C0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 10 01 00 35 04 06 00 C2 49 B1 62 49 09 57 B4 20 AE 9F 2A C9 FE [11:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B 48 47 00 98 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 39 36 33 33 34 36 10 04 04 00 8E 10 01 00 F4 03 04 00 64 E2 15 67 B6 04 01 00 00 60 64 5A C2 68 0F 80 80 [11:19:27]CommunicateWithHost err = 0 [11:19:27]CheckOFDResponse [11:19:27]1017 (14) - 77093643461234 [11:19:27]1041 (16) - 0000000000963346 [11:19:27]1040 (4) - 69774 [11:19:27]1012 (4) - 21.10.2024 05:11 [11:19:27]1206 (1) - 0 [11:19:27]OFD Sender: Remove packet 69774 [11:19:27]ProducePacketName [11:19:27]name=ofd_packets/00069774 [11:19:27]NVStorageDeleteData [11:19:27]Write to MH i2c: 01 00 00 6E 32 A0 [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: 01 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: 01 07 00 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: 01 07 00 6E 32 00 00 00 00 00 E8 0C 9B [11:19:27]RasterBufferAndPrint [11:19:27]line [11:19:27]line [11:19:27]line [11:19:27]line [11:19:27]line [11:19:27]written 0, free lines is 3311 [11:19:27]MH_Cut [11:19:27]Write to MH i2c: D1 01 00 75 32 01 79 [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: D1 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: D1 01 00 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: D1 01 00 75 32 00 78 [11:19:27]Write to MH i2c: 01 00 00 76 32 A8 [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:27]OFD Sender: No OFD packet to send [11:19:28]*** Cut start [11:19:28]*** Partial cut [11:19:28]*** CUTSNS_PIN = 1 [11:19:28]*** CUTSNS_PIN = 0 [11:19:28]*** Brake cut motor [11:19:28]Read from MH i2c: 01 [11:19:28]MH_I2C_Read... [11:19:28]*** Stop cut motor [11:19:28]*** Cut end [11:19:28]Read from MH i2c: 01 07 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 07 00 76 32 00 00 00 00 00 FF 0F BD [11:19:28]process_action close_receipt done [11:19:28]requested_data is exist [11:19:28]produce_requested_data [11:19:28]requested_item fm.sn is exist - process it [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 11 00 00 [11:19:28]Write to MH i2c: E2 08 00 77 32 80 11 00 00 00 00 00 00 23 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 17 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 17 00 77 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [11:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:28]wFMCommunicate OK [11:19:28]requested_item fd.num is exist - process it [11:19:28]SAM_PROTO_GetFieldsCounters [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 13 00 00 [11:19:28]Write to MH i2c: E2 08 00 78 32 80 13 00 00 00 00 00 00 26 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 62 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 62 00 78 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:28]wFMCommunicate OK [11:19:28]SAM_PROTO_GetFieldsCounters done [11:19:28]requested_item shift.num is exist - process it [11:19:28]requested_item shift.opened is exist - process it [11:19:28]req_shift_opened [11:19:28]FM_GetShiftState [11:19:28]SAM_PROTO_GetShiftState [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 13 01 00 [11:19:28]Write to MH i2c: E2 08 00 79 32 80 13 01 00 00 00 00 00 28 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0E 00 79 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 54 [11:19:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:19:28]wFMCommunicate OK [11:19:28]SAM_PROTO_GetShiftState done [11:19:28]FM_GetShiftState done [11:19:28]req_shift_opened done [11:19:28]requested_item shift.open_date is exist - process it [11:19:28]req_shift_open_date [11:19:28]req_shift_open_date done [11:19:28]produce_requested_data done [11:19:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69774,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:19:28]process_action_free close_receipt [11:19:28]json_value_free [11:19:28]json_value_free done [11:19:28]process_json_proto returns [11:19:28]Send response to host [11:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69774,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:19:28]free response buf [11:19:28]execute_script done [11:19:28]execute_script returns [11:19:28]free content buf [11:19:28]Sock 9.Close socket [11:19:28]Sock 9.Thread stoped [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:38]accept exits with 8 [11:19:38]New connection [11:19:38]New thread 3067313508 created [11:19:38]Thread 3067456868 joined [11:19:38]Waiting for new connection... [11:19:38] Sock 8.Parse request [11:19:38]Sock 8.Check first char [11:19:38]Sock 8.First char is OK [11:19:38]request: POST /json_proto HTTP/1.0 [11:19:38]Method: POST [11:19:38]URL: /json_proto [11:19:38]Method is POST - this is cgi request [11:19:38]url: /json_proto [11:19:38]query_string will be loaded in cgi processing [11:19:38]execute_cgi json_proto POST (null) [11:19:38]execute_cgi path=json_proto method=POST [11:19:38]POST find Content-Length [11:19:38]Host: 172.17.50.3:8080 [11:19:38]Content-Length: 776 [11:19:38]Content-Type: application/json [11:19:38] [11:19:38]POST finish read [11:19:38]Found Content-Length = 776 [11:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:38]execute_script... [11:19:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:38]POST & json_proto [11:19:38]process_json_proto [11:19:38]json parsed OK: [11:19:38]protocol is kg_v1.0 [11:19:38]action value=close_receipt [11:19:38]process_action close_receipt [11:19:38]cmd_close_receipt [11:19:38]MH_GetDate [11:19:38]Write to MH i2c: F0 00 00 7A 32 9B [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: F0 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: F0 09 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: F0 09 00 7A 32 00 CE 38 16 67 6B 98 1E 66 AE [11:19:38]GetLastDocTimeStamp 1729509568 [11:19:38]current date 1729509582 [11:19:38]FM_GetShiftState [11:19:38]SAM_PROTO_GetShiftState [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 13 01 00 [11:19:38]Write to MH i2c: E2 08 00 7B 32 80 13 01 00 00 00 00 00 2A [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 0E 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 0E 00 7B 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 56 [11:19:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:19:38]wFMCommunicate OK [11:19:38]SAM_PROTO_GetShiftState done [11:19:38]FM_GetShiftState done [11:19:38]opened in 1729469703 [11:19:38]opened+sec_in_day 1729556103 [11:19:38]quantity*price = 100051 [11:19:38]sum+1 = 100052 [11:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 165 21.10.2024 11:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69775 ФПД: 32208158361650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69775&fm=32208158361650&tin=02508201610067®Number=0000000000156251&sum=100051 [11:19:39]StoreToDocumentArchive [11:19:39]shift 194 fd 69775 [11:19:39]save to /storage/0194/doc_00069775 [11:19:39]save last doc name /storage/0194/doc_00069775 to /storage/kkm_last_doc_name [11:19:39]save OK [11:19:39]Clear old archive folders... [11:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:19:39]tlvbuf is 00CA9990 [11:19:39]SAM_PROTO_ClearQueue [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 09 00 00 [11:19:39]Write to MH i2c: E2 08 00 88 32 80 09 00 00 00 00 00 00 2C [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [11:19:39]RAPDU: 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_ClearQueue done [11:19:39]KKMCreateOFDPacket [11:19:39]OFDProtocolAddRootSTLVToBuf [11:19:39]FM_MakeSignedData [11:19:39]FM_MakeSignedData [11:19:39]SAM_PROTO_SignData [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 0D 01 02 [11:19:39]Write to MH i2c: E2 08 00 89 32 80 0D 01 02 00 00 00 00 34 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [11:19:39]RAPDU: 90 00 [11:19:39]wFMCommunicate OK [11:19:39]wFMCommunicate request_size=255 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 CE 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 10 01 [11:19:39]Write to MH i2c: E2 02 01 8A 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 CE 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 10 01 00 00 76 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:40]Read from MH i2c: E2 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 03 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 03 00 8A 32 00 90 00 30 [11:19:40]RAPDU: 90 00 [11:19:40]wFMCommunicate OK [11:19:40]wFMCommunicate request_size=16 [11:19:40]MH_SAM_APDU [11:19:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1D 4B 0B D6 88 32 [11:19:40]Write to MH i2c: E2 13 00 8B 32 80 0D 02 02 0B 00 00 35 04 06 00 1D 4B 0B D6 88 32 00 00 8F [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:40]Read from MH i2c: E2 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 03 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 03 00 8B 32 00 90 00 31 [11:19:40]RAPDU: 90 00 [11:19:40]wFMCommunicate OK [11:19:40]wFMCommunicate request_size=4 [11:19:40]MH_SAM_APDU [11:19:40]CAPDU: 80 0D 03 02 [11:19:40]Write to MH i2c: E2 08 00 8C 32 80 0D 03 02 00 00 00 00 39 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:40]Read from MH i2c: E2 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 0B 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 0B 00 8C 32 00 4F B7 AC 45 7B 6A 07 D3 90 00 F0 [11:19:40]RAPDU: 4F B7 AC 45 7B 6A 07 D3 90 00 [11:19:40]wFMCommunicate OK [11:19:40]SAM_PROTO_SignData done [11:19:40]FM_MakeSignedData done [11:19:40]CreateOFDProtocolMessage [11:19:40]wFMCommunicate request_size=4 [11:19:40]MH_SAM_APDU [11:19:40]CAPDU: 80 11 00 00 [11:19:40]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:40]Read from MH i2c: E2 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 17 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [11:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:40]wFMCommunicate OK [11:19:40]CreateOFDProtocolMessage done [11:19:40]OFDSenderStorePacket 69775 [11:19:40]StoreOFDPacket docnum=69775 [11:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 FD C7 0D 01 13 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 CE 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 10 01 00 35 04 06 00 1D 4B 0B D6 88 32 4F B7 AC 45 7B 6A 07 D3 [11:19:40]CheckFolder [11:19:40]dirname=/storage/ofd_packets [11:19:40]CheckFolder done [11:19:40]ProducePacketName [11:19:40]name=ofd_packets/00069775 [11:19:40]NVStorageSaveData ofd_packets/00069775 [11:19:40]File name is /storage/ofd_packets/00069775 [11:19:40]Write 307 bytes [11:19:40]NVStorageSaveData done [11:19:40]OFDSenderStorePacket done [11:19:40]KKMCreateOFDPacket done [11:19:40]NVStorageSaveData kkm_last_timestamp [11:19:40]File name is /storage/kkm_last_timestamp [11:19:40]Write 4 bytes [11:19:40]NVStorageSaveData done [11:19:40]ExternCall_PrintAddStr [11:19:40]wPrintStart [11:19:40]Write to MH i2c: 01 00 00 8E 32 C0 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 8E 32 00 00 00 00 00 FF 0F D5 [11:19:40]RasterBufferAndPrint [11:19:40]line Счет N : (1)2885515 [11:19:40]line ИНН: 02508201610067 [11:19:40]line Контрольно-Кассовый Чек [11:19:40]line ПРОДАЖА [11:19:40]line ТРК (МРК, ГНК) : 11 [11:19:40]line Товар: 2710194240 [11:19:40]line D-ENERGY Дт-К-2 [11:19:40]line 12.960 * 77.20 [11:19:40]line = 1000.51 [11:19:40]line НДС 12% НСП 1% [11:19:40]line > о реализуемом товаре [11:19:40]line ИТОГО: 1000.51 [11:19:40]line НСП 1% : 8.85 [11:19:40]line НДС 12% : 106.25 [11:19:40]line Наличными: 0.00 [11:19:40]line Безнал.: 1000.51 [11:19:40]line Место: АЗС № 85 "Партнер Нефть" [11:19:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:19:40]line СНО: Общий режим [11:19:40]line Чек 165 21.10.2024 11:19 [11:19:40]line Смена: 194 ФФД: 1.0 [11:19:40]line ЗНМ: 0300000167 [11:19:40]line РНМ: 0000000000156251 [11:19:40]line Версия ККМ: v1.0 [11:19:40]line Платежная система: Mbank [11:19:40]line ФМ: 0000000000963346 [11:19:40]line ФД: 69775 [11:19:40]line ФПД: 32208158361650 [11:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69775&fm=32208158361650&tin=02508201610067®Number=0000000000156251&sum=100051 [11:19:40]OFD Sender: Processing packet 69775 [packets to send 18, broken 17] [11:19:40]ProducePacketName [11:19:40]name=ofd_packets/00069775 [11:19:40]OFD Sender: To server: pG, [11:19:40]CommunicateWithHost lk.salyk.kg:30040 [11:19:40]ConnectInit lk.salyk.kg [11:19:40]written 0, free lines is 4095 [11:19:40]Connected sock=10 [11:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 FD C7 0D 01 13 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 CE 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 10 01 00 35 04 06 00 1D 4B 0B D6 88 32 4F B7 AC 45 7B 6A 07 D3 [11:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2A 65 47 00 92 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 10 01 00 F4 03 04 00 72 E2 15 67 B6 04 01 00 00 3A A6 7E 71 D2 2D FA 5B [11:19:41]CommunicateWithHost err = 0 [11:19:41]CheckOFDResponse [11:19:41]1017 (14) - 77093643461234 [11:19:41]1041 (16) - 0000000000963346 [11:19:41]1040 (4) - 69775 [11:19:41]1012 (4) - 21.10.2024 05:11 [11:19:41]1206 (1) - 0 [11:19:41]OFD Sender: Remove packet 69775 [11:19:41]ProducePacketName [11:19:41]name=ofd_packets/00069775 [11:19:41]NVStorageDeleteData [11:19:41]Write to MH i2c: 01 00 00 B7 32 E9 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 07 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 13 0D 10 [11:19:41]RasterBufferAndPrint [11:19:41]line [11:19:41]line [11:19:41]line [11:19:41]line [11:19:41]line [11:19:41]written 0, free lines is 3354 [11:19:41]MH_Cut [11:19:41]Write to MH i2c: D1 01 00 BE 32 01 C2 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: D1 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: D1 01 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: D1 01 00 BE 32 00 C1 [11:19:41]Write to MH i2c: 01 00 00 BF 32 F1 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]OFD Sender: No OFD packet to send [11:19:41]*** Cut start [11:19:41]*** Partial cut [11:19:41]*** CUTSNS_PIN = 1 [11:19:41]*** CUTSNS_PIN = 0 [11:19:42]*** Brake cut motor [11:19:42]Read from MH i2c: 01 [11:19:42]MH_I2C_Read... [11:19:42]*** Stop cut motor [11:19:42]*** Cut end [11:19:42]Read from MH i2c: 01 07 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 BF 32 00 00 00 00 00 FF 0F 06 [11:19:42]process_action close_receipt done [11:19:42]requested_data is exist [11:19:42]produce_requested_data [11:19:42]requested_item fm.sn is exist - process it [11:19:42]wFMCommunicate request_size=4 [11:19:42]MH_SAM_APDU [11:19:42]CAPDU: 80 11 00 00 [11:19:42]Write to MH i2c: E2 08 00 C0 32 80 11 00 00 00 00 00 00 6C [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:42]Read from MH i2c: E2 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 17 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 17 00 C0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BE [11:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:19:42]wFMCommunicate OK [11:19:42]requested_item fd.num is exist - process it [11:19:42]SAM_PROTO_GetFieldsCounters [11:19:42]wFMCommunicate request_size=4 [11:19:42]MH_SAM_APDU [11:19:42]CAPDU: 80 13 00 00 [11:19:42]Write to MH i2c: E2 08 00 C1 32 80 13 00 00 00 00 00 00 6F [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:42]Read from MH i2c: E2 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 62 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 62 00 C1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:42]wFMCommunicate OK [11:19:42]SAM_PROTO_GetFieldsCounters done [11:19:42]requested_item shift.num is exist - process it [11:19:42]requested_item shift.opened is exist - process it [11:19:42]req_shift_opened [11:19:42]FM_GetShiftState [11:19:42]SAM_PROTO_GetShiftState [11:19:42]wFMCommunicate request_size=4 [11:19:42]MH_SAM_APDU [11:19:42]CAPDU: 80 13 01 00 [11:19:42]Write to MH i2c: E2 08 00 C2 32 80 13 01 00 00 00 00 00 71 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:42]Read from MH i2c: E2 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 0E 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: E2 0E 00 C2 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9D [11:19:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:19:42]wFMCommunicate OK [11:19:42]SAM_PROTO_GetShiftState done [11:19:42]FM_GetShiftState done [11:19:42]req_shift_opened done [11:19:42]requested_item shift.open_date is exist - process it [11:19:42]req_shift_open_date [11:19:42]req_shift_open_date done [11:19:42]produce_requested_data done [11:19:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69775,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:19:42]process_action_free close_receipt [11:19:42]json_value_free [11:19:42]json_value_free done [11:19:42]process_json_proto returns [11:19:42]Send response to host [11:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69775,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:19:42]free response buf [11:19:42]execute_script done [11:19:42]execute_script returns [11:19:42]free content buf [11:19:42]Sock 8.Close socket [11:19:42]Sock 8.Thread stoped [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]accept exits with 9 [11:20:01]New connection [11:20:01]New thread 3067456868 created [11:20:01]Thread 3067313508 joined [11:20:01]Waiting for new connection... [11:20:01] Sock 9.Parse request [11:20:01]Sock 9.Check first char [11:20:01]Sock 9.First char is OK [11:20:01]request: POST /json_proto HTTP/1.0 [11:20:01]Method: POST [11:20:01]URL: /json_proto [11:20:01]Method is POST - this is cgi request [11:20:01]url: /json_proto [11:20:01]query_string will be loaded in cgi processing [11:20:01]execute_cgi json_proto POST (null) [11:20:01]execute_cgi path=json_proto method=POST [11:20:01]POST find Content-Length [11:20:01]Host: 172.17.50.3:8080 [11:20:01]Content-Length: 678 [11:20:01]Content-Type: application/json [11:20:01] [11:20:01]POST finish read [11:20:01]Found Content-Length = 678 [11:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:01]execute_script... [11:20: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)2885518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:01]POST & json_proto [11:20:01]process_json_proto [11:20:01]json parsed OK: [11:20:01]protocol is kg_v1.0 [11:20:01]action value=close_receipt [11:20:01]process_action close_receipt [11:20:01]cmd_close_receipt [11:20:01]MH_GetDate [11:20:01]Write to MH i2c: F0 00 00 C3 32 E4 [11:20:01]Write i2c OK [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: F0 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: F0 09 00 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: F0 09 00 C3 32 00 E4 38 16 67 6B 98 1E 66 0D [11:20:01]GetLastDocTimeStamp 1729509582 [11:20:01]current date 1729509604 [11:20:01]FM_GetShiftState [11:20:01]SAM_PROTO_GetShiftState [11:20:01]wFMCommunicate request_size=4 [11:20:01]MH_SAM_APDU [11:20:01]CAPDU: 80 13 01 00 [11:20:01]Write to MH i2c: E2 08 00 C4 32 80 13 01 00 00 00 00 00 73 [11:20:01]Write i2c OK [11:20:01]MH_I2C_Read... [11:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:01]Read from MH i2c: E2 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: E2 0E 00 [11:20:01]MH_I2C_Read... [11:20:01]Read from MH i2c: E2 0E 00 C4 32 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9F [11:20:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:01]wFMCommunicate OK [11:20:01]SAM_PROTO_GetShiftState done [11:20:01]FM_GetShiftState done [11:20:01]opened in 1729469703 [11:20:01]opened+sec_in_day 1729556103 [11:20:01]quantity*price = 50041 [11:20:01]sum+1 = 50042 [11:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 166 21.10.2024 11:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69776 ФПД: 237576982462129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69776&fm=237576982462129&tin=02508201610067®Number=0000000000156251&sum=50000 [11:20:02]StoreToDocumentArchive [11:20:02]shift 194 fd 69776 [11:20:02]save to /storage/0194/doc_00069776 [11:20:02]save last doc name /storage/0194/doc_00069776 to /storage/kkm_last_doc_name [11:20:02]save OK [11:20:02]Clear old archive folders... [11:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:02]tlvbuf is 00C74D80 [11:20:02]SAM_PROTO_ClearQueue [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 09 00 00 [11:20:02]Write to MH i2c: E2 08 00 D1 32 80 09 00 00 00 00 00 00 75 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [11:20:02]RAPDU: 90 00 [11:20:02]wFMCommunicate OK [11:20:02]SAM_PROTO_ClearQueue done [11:20:02]KKMCreateOFDPacket [11:20:02]OFDProtocolAddRootSTLVToBuf [11:20:02]FM_MakeSignedData [11:20:02]FM_MakeSignedData [11:20:02]SAM_PROTO_SignData [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 0D 01 02 [11:20:02]Write to MH i2c: E2 08 00 D2 32 80 0D 01 02 00 00 00 00 7D [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [11:20:02]RAPDU: 90 00 [11:20:02]wFMCommunicate OK [11:20:02]wFMCommunicate request_size=255 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E4 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 10 01 00 35 04 06 00 D8 [11:20:02]Write to MH i2c: E2 02 01 D3 32 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E4 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 10 01 00 35 04 06 00 D8 00 00 80 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [11:20:02]RAPDU: 90 00 [11:20:02]wFMCommunicate OK [11:20:02]wFMCommunicate request_size=10 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 0D 02 02 05 13 33 A5 7E B1 [11:20:02]Write to MH i2c: E2 0D 00 D4 32 80 0D 02 02 05 00 13 33 A5 7E B1 00 00 A4 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 03 00 D4 32 00 90 00 7A [11:20:02]RAPDU: 90 00 [11:20:02]wFMCommunicate OK [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 0D 03 02 [11:20:02]Write to MH i2c: E2 08 00 D5 32 80 0D 03 02 00 00 00 00 82 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 0B 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 0B 00 D5 32 00 5A A1 78 EE 94 D4 4B F6 90 00 8D [11:20:02]RAPDU: 5A A1 78 EE 94 D4 4B F6 90 00 [11:20:02]wFMCommunicate OK [11:20:02]SAM_PROTO_SignData done [11:20:02]FM_MakeSignedData done [11:20:02]CreateOFDProtocolMessage [11:20:02]wFMCommunicate request_size=4 [11:20:02]MH_SAM_APDU [11:20:02]CAPDU: 80 11 00 00 [11:20:02]Write to MH i2c: E2 08 00 D6 32 80 11 00 00 00 00 00 00 82 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:02]Read from MH i2c: E2 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 17 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: E2 17 00 D6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [11:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:02]wFMCommunicate OK [11:20:02]CreateOFDProtocolMessage done [11:20:02]OFDSenderStorePacket 69776 [11:20:02]StoreOFDPacket docnum=69776 [11:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 78 07 01 08 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E4 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 10 01 00 35 04 06 00 D8 13 33 A5 7E B1 5A A1 78 EE 94 D4 4B F6 [11:20:02]CheckFolder [11:20:02]dirname=/storage/ofd_packets [11:20:02]CheckFolder done [11:20:02]ProducePacketName [11:20:02]name=ofd_packets/00069776 [11:20:02]NVStorageSaveData ofd_packets/00069776 [11:20:02]File name is /storage/ofd_packets/00069776 [11:20:02]Write 301 bytes [11:20:02]NVStorageSaveData done [11:20:02]OFDSenderStorePacket done [11:20:02]KKMCreateOFDPacket done [11:20:02]NVStorageSaveData kkm_last_timestamp [11:20:02]File name is /storage/kkm_last_timestamp [11:20:02]Write 4 bytes [11:20:02]NVStorageSaveData done [11:20:02]ExternCall_PrintAddStr [11:20:02]wPrintStart [11:20:02]Write to MH i2c: 01 00 00 D7 32 09 [11:20:02]Write i2c OK [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: 01 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: 01 07 00 [11:20:02]MH_I2C_Read... [11:20:02]Read from MH i2c: 01 07 00 D7 32 00 00 00 00 00 FF 0F 1E [11:20:02]RasterBufferAndPrint [11:20:02]line Счет N : (1)2885518 [11:20:02]line ИНН: 02508201610067 [11:20:02]line Контрольно-Кассовый Чек [11:20:02]line ПРОДАЖА [11:20:02]line ТРК (МРК, ГНК) : 22 [11:20:02]line Товар: 2710124130 [11:20:02]line Аи-92-К-5 [11:20:02]line 7.480 * 66.90 [11:20:02]line = 500.41 [11:20:02]line НДС 12% НСП 1% [11:20:02]line > о реализуемом товаре [11:20:02]line ОКРУГЛЕНИЕ: -0.41 [11:20:02]line ИТОГО: 500.00 [11:20:02]line Внесено: 500.00 [11:20:02]line СДАЧА: 0.00 [11:20:02]line НСП 1% : 4.43 [11:20:02]line НДС 12% : 53.14 [11:20:02]line Наличными: 500.00 [11:20:02]line Безнал.: 0.00 [11:20:02]line Место: АЗС № 85 "Партнер Нефть" [11:20:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:20:02]line СНО: Общий режим [11:20:02]line Чек 166 21.10.2024 11:20 [11:20:02]line Смена: 194 ФФД: 1.0 [11:20:02]line ЗНМ: 0300000167 [11:20:02]line РНМ: 0000000000156251 [11:20:02]line Версия ККМ: v1.0 [11:20:02]line ФМ: 0000000000963346 [11:20:02]line ФД: 69776 [11:20:02]line ФПД: 237576982462129 [11:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69776&fm=237576982462129&tin=02508201610067®Number=0000000000156251&sum=50000 [11:20:03]OFD Sender: Processing packet 69776 [packets to send 18, broken 17] [11:20:03]ProducePacketName [11:20:03]name=ofd_packets/00069776 [11:20:03]OFD Sender: To server: pG, [11:20:03]CommunicateWithHost lk.salyk.kg:30040 [11:20:03]ConnectInit lk.salyk.kg [11:20:03]written 0, free lines is 4095 [11:20:03]Write to MH i2c: 01 00 00 02 33 35 [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: 01 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: 01 07 00 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: 01 07 00 02 33 00 00 00 00 00 E4 0C 2C [11:20:03]RasterBufferAndPrint [11:20:03]line [11:20:03]line [11:20:03]line [11:20:03]line [11:20:03]line [11:20:03]written 0, free lines is 3303 [11:20:03]MH_Cut [11:20:03]Write to MH i2c: D1 01 00 09 33 01 0E [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: D1 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: D1 01 00 [11:20:03]MH_I2C_Read... [11:20:03]Read from MH i2c: D1 01 00 09 33 00 0D [11:20:03]Write to MH i2c: 01 00 00 0A 33 3D [11:20:03]Write i2c OK [11:20:03]MH_I2C_Read... [11:20:04]*** Cut start [11:20:04]*** Partial cut [11:20:04]*** CUTSNS_PIN = 1 [11:20:04]*** CUTSNS_PIN = 0 [11:20:04]*** Brake cut motor [11:20:04]Read from MH i2c: 01 [11:20:04]MH_I2C_Read... [11:20:04]*** Stop cut motor [11:20:04]*** Cut end [11:20:04]Read from MH i2c: 01 07 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 FF 0F 52 [11:20:04]process_action close_receipt done [11:20:04]requested_data is exist [11:20:04]produce_requested_data [11:20:04]requested_item fm.sn is exist - process it [11:20:04]wFMCommunicate request_size=4 [11:20:04]MH_SAM_APDU [11:20:04]CAPDU: 80 11 00 00 [11:20:04]Write to MH i2c: E2 08 00 0B 33 80 11 00 00 00 00 00 00 B8 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 17 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 17 00 0B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [11:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:05]wFMCommunicate OK [11:20:05]requested_item fd.num is exist - process it [11:20:05]SAM_PROTO_GetFieldsCounters [11:20:05]wFMCommunicate request_size=4 [11:20:05]MH_SAM_APDU [11:20:05]CAPDU: 80 13 00 00 [11:20:05]Write to MH i2c: E2 08 00 0C 33 80 13 00 00 00 00 00 00 BB [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 62 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 62 00 0C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [11:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:05]wFMCommunicate OK [11:20:05]SAM_PROTO_GetFieldsCounters done [11:20:05]requested_item shift.num is exist - process it [11:20:05]requested_item shift.opened is exist - process it [11:20:05]req_shift_opened [11:20:05]FM_GetShiftState [11:20:05]SAM_PROTO_GetShiftState [11:20:05]wFMCommunicate request_size=4 [11:20:05]MH_SAM_APDU [11:20:05]CAPDU: 80 13 01 00 [11:20:05]Write to MH i2c: E2 08 00 0D 33 80 13 01 00 00 00 00 00 BD [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 0E 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 0E 00 0D 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [11:20:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:05]wFMCommunicate OK [11:20:05]SAM_PROTO_GetShiftState done [11:20:05]FM_GetShiftState done [11:20:05]req_shift_opened done [11:20:05]requested_item shift.open_date is exist - process it [11:20:05]req_shift_open_date [11:20:05]req_shift_open_date done [11:20:05]produce_requested_data done [11:20:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69776,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:20:05]process_action_free close_receipt [11:20:05]json_value_free [11:20:05]json_value_free done [11:20:05]process_json_proto returns [11:20:05]Send response to host [11:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69776,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:20:05]free response buf [11:20:05]execute_script done [11:20:05]execute_script returns [11:20:05]free content buf [11:20:05]Sock 9.Close socket [11:20:05]Sock 9.Thread stoped [11:20:12]accept exits with 8 [11:20:12]New connection [11:20:12]New thread 3067313508 created [11:20:12]Thread 3067456868 joined [11:20:12]Waiting for new connection... [11:20:12] Sock 8.Parse request [11:20:12]Sock 8.Check first char [11:20:12]Sock 8.First char is OK [11:20:12]request: POST /json_proto HTTP/1.0 [11:20:12]Method: POST [11:20:12]URL: /json_proto [11:20:12]Method is POST - this is cgi request [11:20:12]url: /json_proto [11:20:12]query_string will be loaded in cgi processing [11:20:12]execute_cgi json_proto POST (null) [11:20:12]execute_cgi path=json_proto method=POST [11:20:12]POST find Content-Length [11:20:12]Host: 172.17.50.3:8080 [11:20:12]Content-Length: 683 [11:20:12]Content-Type: application/json [11:20:12] [11:20:12]POST finish read [11:20:12]Found Content-Length = 683 [11:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885517", "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" : 40.440, "sum" : 3000.65, "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" ] } } [11:20:12]execute_script... [11:20: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)2885517", "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" : 40.440, "sum" : 3000.65, "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" ] } } [11:20:12]POST & json_proto [11:20:12]process_json_proto [11:20:12]json parsed OK: [11:20:12]protocol is kg_v1.0 [11:20:12]action value=close_receipt [11:20:12]process_action close_receipt [11:20:12]cmd_close_receipt [11:20:12]MH_GetDate [11:20:12]Write to MH i2c: F0 00 00 0E 33 30 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: F0 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: F0 09 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: F0 09 00 0E 33 00 EF 38 16 67 6B 98 1E 66 64 [11:20:12]GetLastDocTimeStamp 1729509604 [11:20:12]current date 1729509615 [11:20:12]FM_GetShiftState [11:20:12]SAM_PROTO_GetShiftState [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 13 01 00 [11:20:12]Write to MH i2c: E2 08 00 0F 33 80 13 01 00 00 00 00 00 BF [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0E 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0E 00 0F 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EB [11:20:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:12]wFMCommunicate OK [11:20:12]SAM_PROTO_GetShiftState done [11:20:12]FM_GetShiftState done [11:20:12]opened in 1729469703 [11:20:12]opened+sec_in_day 1729556103 [11:20:12]quantity*price = 300064 [11:20:12]sum+1 = 300066 [11:20:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 167 21.10.2024 11:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69777 ФПД: 186051740253508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69777&fm=186051740253508&tin=02508201610067®Number=0000000000156251&sum=300000 [11:20:13]StoreToDocumentArchive [11:20:13]shift 194 fd 69777 [11:20:13]save to /storage/0194/doc_00069777 [11:20:13]save last doc name /storage/0194/doc_00069777 to /storage/kkm_last_doc_name [11:20:13]save OK [11:20:13]Clear old archive folders... [11:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:13]tlvbuf is 00D170D0 [11:20:13]SAM_PROTO_ClearQueue [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 09 00 00 [11:20:13]Write to MH i2c: E2 08 00 1C 33 80 09 00 00 00 00 00 00 C1 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 03 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 03 00 1C 33 00 90 00 C3 [11:20:13]RAPDU: 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_ClearQueue done [11:20:13]KKMCreateOFDPacket [11:20:13]OFDProtocolAddRootSTLVToBuf [11:20:13]FM_MakeSignedData [11:20:13]FM_MakeSignedData [11:20:13]SAM_PROTO_SignData [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 0D 01 02 [11:20:13]Write to MH i2c: E2 08 00 1D 33 80 0D 01 02 00 00 00 00 C9 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 03 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 03 00 1D 33 00 90 00 C4 [11:20:13]RAPDU: 90 00 [11:20:13]wFMCommunicate OK [11:20:13]wFMCommunicate request_size=255 [11:20:13]MH_SAM_APDU [11:20: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 A7 00 00 00 F4 03 04 00 F0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 10 01 00 35 04 06 00 A9 [11:20:13]Write to MH i2c: E2 02 01 1E 33 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 A7 00 00 00 F4 03 04 00 F0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 10 01 00 35 04 06 00 A9 00 00 DC [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [11:20:14]RAPDU: 90 00 [11:20:14]wFMCommunicate OK [11:20:14]wFMCommunicate request_size=10 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 0D 02 02 05 36 8B E3 3D 44 [11:20:14]Write to MH i2c: E2 0D 00 1F 33 80 0D 02 02 05 00 36 8B E3 3D 44 00 00 FB [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [11:20:14]RAPDU: 90 00 [11:20:14]wFMCommunicate OK [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 0D 03 02 [11:20:14]Write to MH i2c: E2 08 00 20 33 80 0D 03 02 00 00 00 00 CE [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0B 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0B 00 20 33 00 4A 8C 08 A3 C0 46 99 58 90 00 47 [11:20:14]RAPDU: 4A 8C 08 A3 C0 46 99 58 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_SignData done [11:20:14]FM_MakeSignedData done [11:20:14]CreateOFDProtocolMessage [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 11 00 00 [11:20:14]Write to MH i2c: E2 08 00 21 33 80 11 00 00 00 00 00 00 CE [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 21 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [11:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:14]wFMCommunicate OK [11:20:14]CreateOFDProtocolMessage done [11:20:14]OFDSenderStorePacket 69777 [11:20:14]StoreOFDPacket docnum=69777 [11:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9C D0 07 01 E3 6E 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 A7 00 00 00 F4 03 04 00 F0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 10 01 00 35 04 06 00 A9 36 8B E3 3D 44 4A 8C 08 A3 C0 46 99 58 [11:20:14]CheckFolder [11:20:14]dirname=/storage/ofd_packets [11:20:14]CheckFolder done [11:20:14]ProducePacketName [11:20:14]name=ofd_packets/00069777 [11:20:14]NVStorageSaveData ofd_packets/00069777 [11:20:14]File name is /storage/ofd_packets/00069777 [11:20:14]Write 301 bytes [11:20:14]NVStorageSaveData done [11:20:14]OFDSenderStorePacket done [11:20:14]KKMCreateOFDPacket done [11:20:14]NVStorageSaveData kkm_last_timestamp [11:20:14]File name is /storage/kkm_last_timestamp [11:20:14]Write 4 bytes [11:20:14]NVStorageSaveData done [11:20:14]ExternCall_PrintAddStr [11:20:14]wPrintStart [11:20:14]Write to MH i2c: 01 00 00 22 33 55 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 22 33 00 00 00 00 00 FF 0F 6A [11:20:14]RasterBufferAndPrint [11:20:14]line Счет N : (1)2885517 [11:20:14]line ИНН: 02508201610067 [11:20:14]line Контрольно-Кассовый Чек [11:20:14]line ПРОДАЖА [11:20:14]line ТРК (МРК, ГНК) : 43 [11:20:14]line Товар: 2710124500 [11:20:14]line Аи-95-К-5 [11:20:14]line 40.440 * 74.20 [11:20:14]line = 3000.65 [11:20:14]line НДС 12% НСП 1% [11:20:14]line > о реализуемом товаре [11:20:14]line ОКРУГЛЕНИЕ: -0.65 [11:20:14]line ИТОГО: 3000.00 [11:20:14]line Внесено: 3000.00 [11:20:14]line СДАЧА: 0.00 [11:20:14]line НСП 1% : 26.55 [11:20:14]line НДС 12% : 318.65 [11:20:14]line Наличными: 3000.00 [11:20:14]line Безнал.: 0.00 [11:20:14]line Место: АЗС № 85 "Партнер Нефть" [11:20:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:20:14]line СНО: Общий режим [11:20:14]line Чек 167 21.10.2024 11:20 [11:20:14]line Смена: 194 ФФД: 1.0 [11:20:14]line ЗНМ: 0300000167 [11:20:14]line РНМ: 0000000000156251 [11:20:14]line Версия ККМ: v1.0 [11:20:14]line ФМ: 0000000000963346 [11:20:14]line ФД: 69777 [11:20:14]line ФПД: 186051740253508 [11:20:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69777&fm=186051740253508&tin=02508201610067®Number=0000000000156251&sum=300000 [11:20:14]written 0, free lines is 4095 [11:20:14]Write to MH i2c: 01 00 00 4D 33 80 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 4D 33 00 00 00 00 00 ED 0C 80 [11:20:14]RasterBufferAndPrint [11:20:14]line [11:20:14]line [11:20:14]line [11:20:14]line [11:20:14]line [11:20:14]written 0, free lines is 3315 [11:20:14]MH_Cut [11:20:14]Write to MH i2c: D1 01 00 54 33 01 59 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: D1 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: D1 01 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: D1 01 00 54 33 00 58 [11:20:14]Write to MH i2c: 01 00 00 55 33 88 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:15]*** Cut start [11:20:15]*** Partial cut [11:20:15]*** CUTSNS_PIN = 1 [11:20:15]*** CUTSNS_PIN = 0 [11:20:15]*** Brake cut motor [11:20:15]Read from MH i2c: 01 [11:20:16]MH_I2C_Read... [11:20:16]*** Stop cut motor [11:20:16]*** Cut end [11:20:16]Read from MH i2c: 01 07 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 FF 0F 9D [11:20:16]process_action close_receipt done [11:20:16]requested_data is exist [11:20:16]produce_requested_data [11:20:16]requested_item fm.sn is exist - process it [11:20:16]wFMCommunicate request_size=4 [11:20:16]MH_SAM_APDU [11:20:16]CAPDU: 80 11 00 00 [11:20:16]Write to MH i2c: E2 08 00 56 33 80 11 00 00 00 00 00 00 03 [11:20:16]Write i2c OK [11:20:16]MH_I2C_Read... [11:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:16]Read from MH i2c: E2 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 17 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 17 00 56 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [11:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:16]wFMCommunicate OK [11:20:16]requested_item fd.num is exist - process it [11:20:16]SAM_PROTO_GetFieldsCounters [11:20:16]wFMCommunicate request_size=4 [11:20:16]MH_SAM_APDU [11:20:16]CAPDU: 80 13 00 00 [11:20:16]Write to MH i2c: E2 08 00 57 33 80 13 00 00 00 00 00 00 06 [11:20:16]Write i2c OK [11:20:16]MH_I2C_Read... [11:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:16]Read from MH i2c: E2 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 62 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 62 00 57 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:16]wFMCommunicate OK [11:20:16]SAM_PROTO_GetFieldsCounters done [11:20:16]requested_item shift.num is exist - process it [11:20:16]requested_item shift.opened is exist - process it [11:20:16]req_shift_opened [11:20:16]FM_GetShiftState [11:20:16]SAM_PROTO_GetShiftState [11:20:16]wFMCommunicate request_size=4 [11:20:16]MH_SAM_APDU [11:20:16]CAPDU: 80 13 01 00 [11:20:16]Write to MH i2c: E2 08 00 58 33 80 13 01 00 00 00 00 00 08 [11:20:16]Write i2c OK [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 [11:20:16]MH_I2C_Read... [11:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:16]Read from MH i2c: E2 0E 00 [11:20:16]MH_I2C_Read... [11:20:16]Read from MH i2c: E2 0E 00 58 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 34 [11:20:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:16]wFMCommunicate OK [11:20:16]SAM_PROTO_GetShiftState done [11:20:16]FM_GetShiftState done [11:20:16]req_shift_opened done [11:20:16]requested_item shift.open_date is exist - process it [11:20:16]req_shift_open_date [11:20:16]req_shift_open_date done [11:20:16]produce_requested_data done [11:20:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69777,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:20:16]process_action_free close_receipt [11:20:16]json_value_free [11:20:16]json_value_free done [11:20:16]process_json_proto returns [11:20:16]Send response to host [11:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69777,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:20:16]free response buf [11:20:16]execute_script done [11:20:16]execute_script returns [11:20:16]free content buf [11:20:16]Sock 8.Close socket [11:20:16]Sock 8.Thread stoped [11:20:19]accept exits with 9 [11:20:19]New connection [11:20:19]New thread 3067456868 created [11:20:19]Thread 3067313508 joined [11:20:19]Waiting for new connection... [11:20:19] Sock 9.Parse request [11:20:19]Sock 9.Check first char [11:20:19]Sock 9.First char is OK [11:20:19]request: POST /json_proto HTTP/1.0 [11:20:19]Method: POST [11:20:19]URL: /json_proto [11:20:19]Method is POST - this is cgi request [11:20:19]url: /json_proto [11:20:19]query_string will be loaded in cgi processing [11:20:19]execute_cgi json_proto POST (null) [11:20:19]execute_cgi path=json_proto method=POST [11:20:19]POST find Content-Length [11:20:19]Host: 172.17.50.3:8080 [11:20:19]Content-Length: 684 [11:20:19]Content-Type: application/json [11:20:19] [11:20:19]POST finish read [11:20:19]Found Content-Length = 684 [11:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:19]execute_script... [11:20:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:19]POST & json_proto [11:20:19]process_json_proto [11:20:19]json parsed OK: [11:20:19]protocol is kg_v1.0 [11:20:19]action value=close_receipt [11:20:19]process_action close_receipt [11:20:19]cmd_close_receipt [11:20:19]MH_GetDate [11:20:19]Write to MH i2c: F0 00 00 59 33 7B [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: F0 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: F0 09 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: F0 09 00 59 33 00 F6 38 16 67 6B 98 1E 66 B6 [11:20:19]GetLastDocTimeStamp 1729509616 [11:20:19]current date 1729509622 [11:20:19]FM_GetShiftState [11:20:19]SAM_PROTO_GetShiftState [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 13 01 00 [11:20:19]Write to MH i2c: E2 08 00 5A 33 80 13 01 00 00 00 00 00 0A [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0E 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0E 00 5A 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 36 [11:20:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_GetShiftState done [11:20:19]FM_GetShiftState done [11:20:19]opened in 1729469703 [11:20:19]opened+sec_in_day 1729556103 [11:20:19]quantity*price = 50025 [11:20:19]sum+1 = 50027 [11:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 168 21.10.2024 11:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69778 ФПД: 149085476159588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69778&fm=149085476159588&tin=02508201610067®Number=0000000000156251&sum=50000 [11:20:20]StoreToDocumentArchive [11:20:20]shift 194 fd 69778 [11:20:20]save to /storage/0194/doc_00069778 [11:20:20]save last doc name /storage/0194/doc_00069778 to /storage/kkm_last_doc_name [11:20:20]save OK [11:20:20]Clear old archive folders... [11:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:20:20]tlvbuf is 00CAED20 [11:20:20]SAM_PROTO_ClearQueue [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 09 00 00 [11:20:20]Write to MH i2c: E2 08 00 67 33 80 09 00 00 00 00 00 00 0C [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [11:20:20]RAPDU: 90 00 [11:20:20]wFMCommunicate OK [11:20:20]SAM_PROTO_ClearQueue done [11:20:20]KKMCreateOFDPacket [11:20:20]OFDProtocolAddRootSTLVToBuf [11:20:20]FM_MakeSignedData [11:20:20]FM_MakeSignedData [11:20:20]SAM_PROTO_SignData [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 0D 01 02 [11:20:20]Write to MH i2c: E2 08 00 68 33 80 0D 01 02 00 00 00 00 14 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 68 33 00 90 00 0F [11:20:20]RAPDU: 90 00 [11:20:20]wFMCommunicate OK [11:20:20]wFMCommunicate request_size=255 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F6 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 10 01 [11:20:20]Write to MH i2c: E2 02 01 69 33 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F6 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 10 01 00 00 CE [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 69 33 00 90 00 10 [11:20:20]RAPDU: 90 00 [11:20:20]wFMCommunicate OK [11:20:20]wFMCommunicate request_size=16 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 87 97 AA D9 00 64 [11:20:20]Write to MH i2c: E2 13 00 6A 33 80 0D 02 02 0B 00 00 35 04 06 00 87 97 AA D9 00 64 00 00 71 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 03 00 6A 33 00 90 00 11 [11:20:20]RAPDU: 90 00 [11:20:20]wFMCommunicate OK [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 0D 03 02 [11:20:20]Write to MH i2c: E2 08 00 6B 33 80 0D 03 02 00 00 00 00 19 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0B 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0B 00 6B 33 00 79 F5 57 8B 20 F0 57 06 90 00 D7 [11:20:20]RAPDU: 79 F5 57 8B 20 F0 57 06 90 00 [11:20:20]wFMCommunicate OK [11:20:20]SAM_PROTO_SignData done [11:20:20]FM_MakeSignedData done [11:20:20]CreateOFDProtocolMessage [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 11 00 00 [11:20:20]Write to MH i2c: E2 08 00 6C 33 80 11 00 00 00 00 00 00 19 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 17 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 17 00 6C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [11:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:20]wFMCommunicate OK [11:20:20]CreateOFDProtocolMessage done [11:20:20]OFDSenderStorePacket 69778 [11:20:20]StoreOFDPacket docnum=69778 [11:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 DC 3E 0D 01 CC CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F6 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 10 01 00 35 04 06 00 87 97 AA D9 00 64 79 F5 57 8B 20 F0 57 06 [11:20:20]CheckFolder [11:20:20]dirname=/storage/ofd_packets [11:20:20]CheckFolder done [11:20:20]ProducePacketName [11:20:20]name=ofd_packets/00069778 [11:20:20]NVStorageSaveData ofd_packets/00069778 [11:20:20]File name is /storage/ofd_packets/00069778 [11:20:20]Write 307 bytes [11:20:20]NVStorageSaveData done [11:20:20]OFDSenderStorePacket done [11:20:20]KKMCreateOFDPacket done [11:20:20]NVStorageSaveData kkm_last_timestamp [11:20:20]File name is /storage/kkm_last_timestamp [11:20:20]Write 4 bytes [11:20:20]NVStorageSaveData done [11:20:20]ExternCall_PrintAddStr [11:20:20]wPrintStart [11:20:20]Write to MH i2c: 01 00 00 6D 33 A0 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 07 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 07 00 6D 33 00 00 00 00 00 FF 0F B5 [11:20:20]RasterBufferAndPrint [11:20:20]line Счет N : (1)2885519 [11:20:20]line ИНН: 02508201610067 [11:20:20]line Контрольно-Кассовый Чек [11:20:20]line ПРОДАЖА [11:20:20]line ТРК (МРК, ГНК) : 11 [11:20:20]line Товар: 2710194240 [11:20:20]line D-ENERGY Дт-К-2 [11:20:20]line 6.480 * 77.20 [11:20:20]line = 500.26 [11:20:20]line НДС 12% НСП 1% [11:20:20]line > о реализуемом товаре [11:20:20]line ОКРУГЛЕНИЕ: -0.26 [11:20:20]line ИТОГО: 500.00 [11:20:20]line Внесено: 500.00 [11:20:20]line СДАЧА: 0.00 [11:20:20]line НСП 1% : 4.43 [11:20:20]line НДС 12% : 53.12 [11:20:20]line Наличными: 500.00 [11:20:20]line Безнал.: 0.00 [11:20:20]line Место: АЗС № 85 "Партнер Нефть" [11:20:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:20:20]line СНО: Общий режим [11:20:20]line Чек 168 21.10.2024 11:20 [11:20:20]line Смена: 194 ФФД: 1.0 [11:20:20]line ЗНМ: 0300000167 [11:20:20]line РНМ: 0000000000156251 [11:20:20]line Версия ККМ: v1.0 [11:20:20]line ФМ: 0000000000963346 [11:20:20]line ФД: 69778 [11:20:20]line ФПД: 149085476159588 [11:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69778&fm=149085476159588&tin=02508201610067®Number=0000000000156251&sum=50000 [11:20:20]written 0, free lines is 4095 [11:20:21]Write to MH i2c: 01 00 00 98 33 CB [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: 01 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: 01 07 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: 01 07 00 98 33 00 00 00 00 00 ED 0C CB [11:20:21]RasterBufferAndPrint [11:20:21]line [11:20:21]line [11:20:21]line [11:20:21]line [11:20:21]line [11:20:21]written 0, free lines is 3324 [11:20:21]MH_Cut [11:20:21]Write to MH i2c: D1 01 00 9F 33 01 A4 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: D1 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: D1 01 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: D1 01 00 9F 33 00 A3 [11:20:21]Write to MH i2c: 01 00 00 A0 33 D3 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:22]*** Cut start [11:20:22]*** Partial cut [11:20:22]*** CUTSNS_PIN = 1 [11:20:22]*** CUTSNS_PIN = 0 [11:20:22]*** Brake cut motor [11:20:22]Read from MH i2c: 01 [11:20:22]MH_I2C_Read... [11:20:22]*** Stop cut motor [11:20:22]*** Cut end [11:20:22]Read from MH i2c: 01 07 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 A0 33 00 00 00 00 00 FF 0F E8 [11:20:22]process_action close_receipt done [11:20:22]requested_data is exist [11:20:22]produce_requested_data [11:20:22]requested_item fm.sn is exist - process it [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 11 00 00 [11:20:22]Write to MH i2c: E2 08 00 A1 33 80 11 00 00 00 00 00 00 4E [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 A1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [11:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:20:22]wFMCommunicate OK [11:20:22]requested_item fd.num is exist - process it [11:20:22]SAM_PROTO_GetFieldsCounters [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 13 00 00 [11:20:22]Write to MH i2c: E2 08 00 A2 33 80 13 00 00 00 00 00 00 51 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 62 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 62 00 A2 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_GetFieldsCounters done [11:20:22]requested_item shift.num is exist - process it [11:20:22]requested_item shift.opened is exist - process it [11:20:22]req_shift_opened [11:20:22]FM_GetShiftState [11:20:22]SAM_PROTO_GetShiftState [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 13 01 00 [11:20:22]Write to MH i2c: E2 08 00 A3 33 80 13 01 00 00 00 00 00 53 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0E 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0E 00 A3 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7F [11:20:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_GetShiftState done [11:20:22]FM_GetShiftState done [11:20:22]req_shift_opened done [11:20:22]requested_item shift.open_date is exist - process it [11:20:22]req_shift_open_date [11:20:22]req_shift_open_date done [11:20:22]produce_requested_data done [11:20:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69778,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:20:22]process_action_free close_receipt [11:20:22]json_value_free [11:20:22]json_value_free done [11:20:22]process_json_proto returns [11:20:22]Send response to host [11:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69778,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:20:22]free response buf [11:20:22]execute_script done [11:20:22]execute_script returns [11:20:22]free content buf [11:20:22]Sock 9.Close socket [11:20:22]Sock 9.Thread stoped [11:22:16]ConnectInit Can't connect to host [11:22:16]CommunicateWithHost connect error [11:22:16]CommunicateWithHost err = -1 [11:22:16]OFD Sender: Server communicate error [11:22:16]OFD Sender: Processing packet 69776 [packets to send 20, broken 17] [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00069776 [11:22:16]OFD Sender: To server: pG, [11:22:16]CommunicateWithHost lk.salyk.kg:30040 [11:22:16]ConnectInit lk.salyk.kg [11:22:16]Connected sock=9 [11:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 78 07 01 08 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E4 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 10 01 00 35 04 06 00 D8 13 33 A5 7E B1 5A A1 78 EE 94 D4 4B F6 [11:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 93 29 47 00 13 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 10 01 00 F4 03 04 00 0D E3 15 67 B6 04 01 00 00 6F 0D 2C B3 6E BB 1E 99 [11:22:16]CommunicateWithHost err = 0 [11:22:16]CheckOFDResponse [11:22:16]1017 (14) - 77093643461234 [11:22:16]1041 (16) - 0000000000963346 [11:22:16]1040 (4) - 69776 [11:22:16]1012 (4) - 21.10.2024 05:13 [11:22:16]1206 (1) - 0 [11:22:16]OFD Sender: Remove packet 69776 [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00069776 [11:22:16]NVStorageDeleteData [11:22:16]OFD Sender: Processing packet 69777 [packets to send 19, broken 17] [11:22:16]ProducePacketName [11:22:16]name=ofd_packets/00069777 [11:22:16]OFD Sender: To server: pG, [11:22:16]CommunicateWithHost lk.salyk.kg:30040 [11:22:16]ConnectInit lk.salyk.kg [11:22:17]Connected sock=9 [11:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9C D0 07 01 E3 6E 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 A7 00 00 00 F4 03 04 00 F0 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 10 01 00 35 04 06 00 A9 36 8B E3 3D 44 4A 8C 08 A3 C0 46 99 58 [11:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 26 BE 47 00 52 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 39 36 33 33 34 36 10 04 04 00 91 10 01 00 F4 03 04 00 0E E3 15 67 B6 04 01 00 00 77 4A F4 51 77 E4 DF 71 [11:22:17]CommunicateWithHost err = 0 [11:22:17]CheckOFDResponse [11:22:17]1017 (14) - 77093643461234 [11:22:17]1041 (16) - 0000000000963346 [11:22:17]1040 (4) - 69777 [11:22:17]1012 (4) - 21.10.2024 05:13 [11:22:17]1206 (1) - 0 [11:22:17]OFD Sender: Remove packet 69777 [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00069777 [11:22:17]NVStorageDeleteData [11:22:17]OFD Sender: Processing packet 69778 [packets to send 18, broken 17] [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00069778 [11:22:17]OFD Sender: To server: pG, [11:22:17]CommunicateWithHost lk.salyk.kg:30040 [11:22:17]ConnectInit lk.salyk.kg [11:22:17]Connected sock=9 [11:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 DC 3E 0D 01 CC CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F6 38 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 10 01 00 35 04 06 00 87 97 AA D9 00 64 79 F5 57 8B 20 F0 57 06 [11:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3B E7 47 00 C7 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 10 01 00 F4 03 04 00 0F E3 15 67 B6 04 01 00 00 44 F2 F9 9B 2D D0 B0 F6 [11:22:18]CommunicateWithHost err = 0 [11:22:18]CheckOFDResponse [11:22:18]1017 (14) - 77093643461234 [11:22:18]1041 (16) - 0000000000963346 [11:22:18]1040 (4) - 69778 [11:22:18]1012 (4) - 21.10.2024 05:13 [11:22:18]1206 (1) - 0 [11:22:18]OFD Sender: Remove packet 69778 [11:22:18]ProducePacketName [11:22:18]name=ofd_packets/00069778 [11:22:18]NVStorageDeleteData [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:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:33]accept exits with 8 [11:23:33]New connection [11:23:33]New thread 3067313508 created [11:23:33]Thread 3067456868 joined [11:23:33]Waiting for new connection... [11:23:33] Sock 8.Parse request [11:23:33]Sock 8.Check first char [11:23:33]Sock 8.First char is OK [11:23:33]request: POST /json_proto HTTP/1.0 [11:23:33]Method: POST [11:23:33]URL: /json_proto [11:23:33]Method is POST - this is cgi request [11:23:33]url: /json_proto [11:23:33]query_string will be loaded in cgi processing [11:23:33]execute_cgi json_proto POST (null) [11:23:33]execute_cgi path=json_proto method=POST [11:23:33]POST find Content-Length [11:23:33]Host: 172.17.50.3:8080 [11:23:33]Content-Length: 680 [11:23:33]Content-Type: application/json [11:23:33] [11:23:33]POST finish read [11:23:33]Found Content-Length = 680 [11:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [11:23:33]execute_script... [11:23:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [11:23:33]POST & json_proto [11:23:33]process_json_proto [11:23:33]json parsed OK: [11:23:33]protocol is kg_v1.0 [11:23:33]action value=close_receipt [11:23:33]process_action close_receipt [11:23:33]cmd_close_receipt [11:23:33]MH_GetDate [11:23:33]Write to MH i2c: F0 00 00 A4 33 C6 [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 09 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 09 00 A4 33 00 B9 39 16 67 6B 98 1E 66 C5 [11:23:33]GetLastDocTimeStamp 1729509622 [11:23:33]current date 1729509817 [11:23:33]FM_GetShiftState [11:23:33]SAM_PROTO_GetShiftState [11:23:33]wFMCommunicate request_size=4 [11:23:33]MH_SAM_APDU [11:23:33]CAPDU: 80 13 01 00 [11:23:33]Write to MH i2c: E2 08 00 A5 33 80 13 01 00 00 00 00 00 55 [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:33]Read from MH i2c: E2 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 0E 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 0E 00 A5 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 81 [11:23:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:23:33]wFMCommunicate OK [11:23:33]SAM_PROTO_GetShiftState done [11:23:33]FM_GetShiftState done [11:23:33]opened in 1729469703 [11:23:33]opened+sec_in_day 1729556103 [11:23:33]quantity*price = 150037 [11:23:33]sum+1 = 150039 [11:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 169 21.10.2024 11:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69779 ФПД: 242344886998970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69779&fm=242344886998970&tin=02508201610067®Number=0000000000156251&sum=150000 [11:23:35]StoreToDocumentArchive [11:23:35]shift 194 fd 69779 [11:23:35]save to /storage/0194/doc_00069779 [11:23:35]save last doc name /storage/0194/doc_00069779 to /storage/kkm_last_doc_name [11:23:35]save OK [11:23:35]Clear old archive folders... [11:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:23:35]tlvbuf is 00C84450 [11:23:35]SAM_PROTO_ClearQueue [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 09 00 00 [11:23:35]Write to MH i2c: E2 08 00 B2 33 80 09 00 00 00 00 00 00 57 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]SAM_PROTO_ClearQueue done [11:23:35]KKMCreateOFDPacket [11:23:35]OFDProtocolAddRootSTLVToBuf [11:23:35]FM_MakeSignedData [11:23:35]FM_MakeSignedData [11:23:35]SAM_PROTO_SignData [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 01 02 [11:23:35]Write to MH i2c: E2 08 00 B3 33 80 0D 01 02 00 00 00 00 5F [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=255 [11:23:35]MH_SAM_APDU [11:23:35]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 32 31 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 A9 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 10 01 00 35 04 06 00 DC 69 50 E7 [11:23:35]Write to MH i2c: E2 02 01 B4 33 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 32 31 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 A9 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 10 01 00 35 04 06 00 DC 69 50 E7 00 00 4F [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=7 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 02 02 02 17 BA [11:23:35]Write to MH i2c: E2 0A 00 B5 33 80 0D 02 02 02 00 17 BA 00 00 37 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 B5 33 00 90 00 5C [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 03 02 [11:23:35]Write to MH i2c: E2 08 00 B6 33 80 0D 03 02 00 00 00 00 64 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 0B 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 0B 00 B6 33 00 2C 45 BC F1 07 E2 E5 F2 90 00 43 [11:23:35]RAPDU: 2C 45 BC F1 07 E2 E5 F2 90 00 [11:23:35]wFMCommunicate OK [11:23:35]SAM_PROTO_SignData done [11:23:35]FM_MakeSignedData done [11:23:35]CreateOFDProtocolMessage [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 11 00 00 [11:23:35]Write to MH i2c: E2 08 00 B7 33 80 11 00 00 00 00 00 00 64 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 17 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 17 00 B7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [11:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:35]wFMCommunicate OK [11:23:35]CreateOFDProtocolMessage done [11:23:35]OFDSenderStorePacket 69779 [11:23:35]StoreOFDPacket docnum=69779 [11:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 70 C5 04 01 46 41 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 32 31 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 A9 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 10 01 00 35 04 06 00 DC 69 50 E7 17 BA 2C 45 BC F1 07 E2 E5 F2 [11:23:35]CheckFolder [11:23:35]dirname=/storage/ofd_packets [11:23:35]CheckFolder done [11:23:35]ProducePacketName [11:23:35]name=ofd_packets/00069779 [11:23:35]NVStorageSaveData ofd_packets/00069779 [11:23:35]File name is /storage/ofd_packets/00069779 [11:23:35]Write 298 bytes [11:23:35]NVStorageSaveData done [11:23:35]OFDSenderStorePacket done [11:23:35]KKMCreateOFDPacket done [11:23:35]NVStorageSaveData kkm_last_timestamp [11:23:35]File name is /storage/kkm_last_timestamp [11:23:35]Write 4 bytes [11:23:35]NVStorageSaveData done [11:23:35]ExternCall_PrintAddStr [11:23:35]wPrintStart [11:23:35]Write to MH i2c: 01 00 00 B8 33 EB [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 B8 33 00 00 00 00 00 FF 0F 00 [11:23:35]RasterBufferAndPrint [11:23:35]line Счет N : (1)2885521 [11:23:35]line ИНН: 02508201610067 [11:23:35]line Контрольно-Кассовый Чек [11:23:35]line ПРОДАЖА [11:23:35]line ТРК (МРК, ГНК) : 51 [11:23:35]line Товар: 2710194210 [11:23:35]line ДТ-К-5 [11:23:35]line 19.690 * 76.20 [11:23:35]line = 1500.38 [11:23:35]line НДС 12% НСП 1% [11:23:35]line > о реализуемом товаре [11:23:35]line ОКРУГЛЕНИЕ: -0.38 [11:23:35]line ИТОГО: 1500.00 [11:23:35]line Внесено: 1500.00 [11:23:35]line СДАЧА: 0.00 [11:23:35]line НСП 1% : 13.28 [11:23:35]line НДС 12% : 159.33 [11:23:35]line Наличными: 1500.00 [11:23:35]line Безнал.: 0.00 [11:23:35]line Место: АЗС № 85 "Партнер Нефть" [11:23:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:23:35]line СНО: Общий режим [11:23:35]line Чек 169 21.10.2024 11:23 [11:23:35]line Смена: 194 ФФД: 1.0 [11:23:35]line ЗНМ: 0300000167 [11:23:35]line РНМ: 0000000000156251 [11:23:35]line Версия ККМ: v1.0 [11:23:35]line ФМ: 0000000000963346 [11:23:35]line ФД: 69779 [11:23:35]line ФПД: 242344886998970 [11:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69779&fm=242344886998970&tin=02508201610067®Number=0000000000156251&sum=150000 [11:23:35]OFD Sender: Processing packet 69779 [packets to send 18, broken 17] [11:23:35]ProducePacketName [11:23:35]name=ofd_packets/00069779 [11:23:35]OFD Sender: To server: pG, [11:23:35]CommunicateWithHost lk.salyk.kg:30040 [11:23:35]ConnectInit lk.salyk.kg [11:23:35]written 0, free lines is 4095 [11:23:35]Connected sock=10 [11:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 70 C5 04 01 46 41 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 32 31 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 A9 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 10 01 00 35 04 06 00 DC 69 50 E7 17 BA 2C 45 BC F1 07 E2 E5 F2 [11:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D2 32 47 00 E0 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 10 01 00 F4 03 04 00 5D E3 15 67 B6 04 01 00 00 9E F5 CF EA 96 CE 5E 58 [11:23:36]CommunicateWithHost err = 0 [11:23:36]CheckOFDResponse [11:23:36]1017 (14) - 77093643461234 [11:23:36]1041 (16) - 0000000000963346 [11:23:36]1040 (4) - 69779 [11:23:36]1012 (4) - 21.10.2024 05:15 [11:23:36]1206 (1) - 0 [11:23:36]OFD Sender: Remove packet 69779 [11:23:36]ProducePacketName [11:23:36]name=ofd_packets/00069779 [11:23:36]NVStorageDeleteData [11:23:36]Write to MH i2c: 01 00 00 E3 33 16 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 E3 33 00 00 00 00 00 ED 0C 16 [11:23:36]RasterBufferAndPrint [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]written 0, free lines is 3315 [11:23:36]MH_Cut [11:23:36]Write to MH i2c: D1 01 00 EA 33 01 EF [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 01 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 01 00 EA 33 00 EE [11:23:36]Write to MH i2c: 01 00 00 EB 33 1E [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]OFD Sender: No OFD packet to send [11:23:36]*** Cut start [11:23:36]*** Partial cut [11:23:36]*** CUTSNS_PIN = 1 [11:23:37]*** CUTSNS_PIN = 0 [11:23:37]*** Brake cut motor [11:23:37]Read from MH i2c: 01 [11:23:37]MH_I2C_Read... [11:23:37]*** Stop cut motor [11:23:37]*** Cut end [11:23:37]Read from MH i2c: 01 07 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 EB 33 00 00 00 00 00 FF 0F 33 [11:23:37]process_action close_receipt done [11:23:37]requested_data is exist [11:23:37]produce_requested_data [11:23:37]requested_item fm.sn is exist - process it [11:23:37]wFMCommunicate request_size=4 [11:23:37]MH_SAM_APDU [11:23:37]CAPDU: 80 11 00 00 [11:23:37]Write to MH i2c: E2 08 00 EC 33 80 11 00 00 00 00 00 00 99 [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:37]Read from MH i2c: E2 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 17 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 17 00 EC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [11:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:37]wFMCommunicate OK [11:23:37]requested_item fd.num is exist - process it [11:23:37]SAM_PROTO_GetFieldsCounters [11:23:37]wFMCommunicate request_size=4 [11:23:37]MH_SAM_APDU [11:23:37]CAPDU: 80 13 00 00 [11:23:37]Write to MH i2c: E2 08 00 ED 33 80 13 00 00 00 00 00 00 9C [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:37]Read from MH i2c: E2 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 62 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 62 00 ED 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [11:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:37]wFMCommunicate OK [11:23:37]SAM_PROTO_GetFieldsCounters done [11:23:37]requested_item shift.num is exist - process it [11:23:37]requested_item shift.opened is exist - process it [11:23:37]req_shift_opened [11:23:37]FM_GetShiftState [11:23:37]SAM_PROTO_GetShiftState [11:23:37]wFMCommunicate request_size=4 [11:23:37]MH_SAM_APDU [11:23:37]CAPDU: 80 13 01 00 [11:23:37]Write to MH i2c: E2 08 00 EE 33 80 13 01 00 00 00 00 00 9E [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:37]Read from MH i2c: E2 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 0E 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: E2 0E 00 EE 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [11:23:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:23:37]wFMCommunicate OK [11:23:37]SAM_PROTO_GetShiftState done [11:23:37]FM_GetShiftState done [11:23:37]req_shift_opened done [11:23:37]requested_item shift.open_date is exist - process it [11:23:37]req_shift_open_date [11:23:37]req_shift_open_date done [11:23:37]produce_requested_data done [11:23:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69779,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:23:37]process_action_free close_receipt [11:23:37]json_value_free [11:23:37]json_value_free done [11:23:37]process_json_proto returns [11:23:37]Send response to host [11:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69779,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:23:37]free response buf [11:23:37]execute_script done [11:23:37]execute_script returns [11:23:37]free content buf [11:23:37]Sock 8.Close socket [11:23:37]Sock 8.Thread stoped [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:12]accept exits with 9 [11:24:12]New connection [11:24:12]New thread 3067456868 created [11:24:12]Thread 3067313508 joined [11:24:12]Waiting for new connection... [11:24:12] Sock 9.Parse request [11:24:12]Sock 9.Check first char [11:24:12]Sock 9.First char is OK [11:24:12]request: POST /json_proto HTTP/1.0 [11:24:12]Method: POST [11:24:12]URL: /json_proto [11:24:12]Method is POST - this is cgi request [11:24:12]url: /json_proto [11:24:12]query_string will be loaded in cgi processing [11:24:12]execute_cgi json_proto POST (null) [11:24:12]execute_cgi path=json_proto method=POST [11:24:12]POST find Content-Length [11:24:12]Host: 172.17.50.3:8080 [11:24:12]Content-Length: 686 [11:24:12]Content-Type: application/json [11:24:12] [11:24:12]POST finish read [11:24:12]Found Content-Length = 686 [11:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [11:24:12]execute_script... [11:24: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)2885520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [11:24:12]POST & json_proto [11:24:12]process_json_proto [11:24:12]json parsed OK: [11:24:12]protocol is kg_v1.0 [11:24:12]action value=close_receipt [11:24:12]process_action close_receipt [11:24:12]cmd_close_receipt [11:24:12]MH_GetDate [11:24:12]Write to MH i2c: F0 00 00 EF 33 11 [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: F0 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: F0 09 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: F0 09 00 EF 33 00 DF 39 16 67 6B 98 1E 66 36 [11:24:12]GetLastDocTimeStamp 1729509817 [11:24:12]current date 1729509855 [11:24:12]FM_GetShiftState [11:24:12]SAM_PROTO_GetShiftState [11:24:12]wFMCommunicate request_size=4 [11:24:12]MH_SAM_APDU [11:24:12]CAPDU: 80 13 01 00 [11:24:12]Write to MH i2c: E2 08 00 F0 33 80 13 01 00 00 00 00 00 A0 [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:12]Read from MH i2c: E2 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 0E 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 0E 00 F0 33 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CC [11:24:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:24:12]wFMCommunicate OK [11:24:12]SAM_PROTO_GetShiftState done [11:24:12]FM_GetShiftState done [11:24:12]opened in 1729469703 [11:24:12]opened+sec_in_day 1729556103 [11:24:12]quantity*price = 200023 [11:24:12]sum+1 = 200025 [11:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 170 21.10.2024 11:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69780 ФПД: 128873255994086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69780&fm=128873255994086&tin=02508201610067®Number=0000000000156251&sum=200000 [11:24:13]StoreToDocumentArchive [11:24:13]shift 194 fd 69780 [11:24:13]save to /storage/0194/doc_00069780 [11:24:13]save last doc name /storage/0194/doc_00069780 to /storage/kkm_last_doc_name [11:24:13]save OK [11:24:13]Clear old archive folders... [11:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:24:13]tlvbuf is 00CCE5F0 [11:24:13]SAM_PROTO_ClearQueue [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 09 00 00 [11:24:13]Write to MH i2c: E2 08 00 FD 33 80 09 00 00 00 00 00 00 A2 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]SAM_PROTO_ClearQueue done [11:24:13]KKMCreateOFDPacket [11:24:13]OFDProtocolAddRootSTLVToBuf [11:24:13]FM_MakeSignedData [11:24:13]FM_MakeSignedData [11:24:13]SAM_PROTO_SignData [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 0D 01 02 [11:24:13]Write to MH i2c: E2 08 00 FE 33 80 0D 01 02 00 00 00 00 AA [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 FE 33 00 90 00 A5 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]wFMCommunicate request_size=255 [11:24:13]MH_SAM_APDU [11:24:13]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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 AA 00 00 00 F4 03 04 00 DF 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 10 01 00 35 04 06 00 75 35 [11:24:13]Write to MH i2c: E2 02 01 FF 33 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 AA 00 00 00 F4 03 04 00 DF 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 10 01 00 35 04 06 00 75 35 00 00 D4 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 FF 33 00 90 00 A6 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]wFMCommunicate request_size=9 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 0D 02 02 04 A4 A5 02 E6 [11:24:13]Write to MH i2c: E2 0C 00 00 34 80 0D 02 02 04 00 A4 A5 02 E6 00 00 E7 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 00 34 00 90 00 A8 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 0D 03 02 [11:24:13]Write to MH i2c: E2 08 00 01 34 80 0D 03 02 00 00 00 00 B0 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 0B 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 0B 00 01 34 00 F5 B5 FC 1A 47 6C E4 09 90 00 11 [11:24:13]RAPDU: F5 B5 FC 1A 47 6C E4 09 90 00 [11:24:13]wFMCommunicate OK [11:24:13]SAM_PROTO_SignData done [11:24:13]FM_MakeSignedData done [11:24:13]CreateOFDProtocolMessage [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 11 00 00 [11:24:13]Write to MH i2c: E2 08 00 02 34 80 11 00 00 00 00 00 00 B0 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 17 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 17 00 02 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [11:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:24:13]wFMCommunicate OK [11:24:13]CreateOFDProtocolMessage done [11:24:13]OFDSenderStorePacket 69780 [11:24:13]StoreOFDPacket docnum=69780 [11:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9C 3A 06 01 3D F9 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 AA 00 00 00 F4 03 04 00 DF 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 10 01 00 35 04 06 00 75 35 A4 A5 02 E6 F5 B5 FC 1A 47 6C E4 09 [11:24:13]CheckFolder [11:24:13]dirname=/storage/ofd_packets [11:24:13]CheckFolder done [11:24:13]ProducePacketName [11:24:13]name=ofd_packets/00069780 [11:24:13]NVStorageSaveData ofd_packets/00069780 [11:24:13]File name is /storage/ofd_packets/00069780 [11:24:13]Write 300 bytes [11:24:13]NVStorageSaveData done [11:24:13]OFDSenderStorePacket done [11:24:13]KKMCreateOFDPacket done [11:24:13]NVStorageSaveData kkm_last_timestamp [11:24:13]File name is /storage/kkm_last_timestamp [11:24:13]Write 4 bytes [11:24:13]NVStorageSaveData done [11:24:13]ExternCall_PrintAddStr [11:24:13]wPrintStart [11:24:13]Write to MH i2c: 01 00 00 03 34 37 [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 07 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 07 00 03 34 00 00 00 00 00 FF 0F 4C [11:24:13]RasterBufferAndPrint [11:24:13]line Счет N : (1)2885520 [11:24:13]line ИНН: 02508201610067 [11:24:13]line Контрольно-Кассовый Чек [11:24:13]line ПРОДАЖА [11:24:13]line ТРК (МРК, ГНК) : 71 [11:24:13]line Товар: 2711129700 [11:24:13]line ГАЗ-К-3 [11:24:13]line 51.420 * 38.90 [11:24:13]line = 2000.24 [11:24:13]line НДС 12% НСП 1% [11:24:13]line > о реализуемом товаре [11:24:13]line ОКРУГЛЕНИЕ: -0.24 [11:24:13]line ИТОГО: 2000.00 [11:24:13]line Внесено: 2000.00 [11:24:13]line СДАЧА: 0.00 [11:24:13]line НСП 1% : 17.70 [11:24:13]line НДС 12% : 212.41 [11:24:13]line Наличными: 2000.00 [11:24:13]line Безнал.: 0.00 [11:24:13]line Место: АЗС № 85 "Партнер Нефть" [11:24:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:24:13]line СНО: Общий режим [11:24:13]line Чек 170 21.10.2024 11:24 [11:24:13]line Смена: 194 ФФД: 1.0 [11:24:13]line ЗНМ: 0300000167 [11:24:13]line РНМ: 0000000000156251 [11:24:13]line Версия ККМ: v1.0 [11:24:13]line ФМ: 0000000000963346 [11:24:13]line ФД: 69780 [11:24:13]line ФПД: 128873255994086 [11:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69780&fm=128873255994086&tin=02508201610067®Number=0000000000156251&sum=200000 [11:24:14]OFD Sender: Processing packet 69780 [packets to send 18, broken 17] [11:24:14]ProducePacketName [11:24:14]name=ofd_packets/00069780 [11:24:14]OFD Sender: To server: pG, [11:24:14]CommunicateWithHost lk.salyk.kg:30040 [11:24:14]ConnectInit lk.salyk.kg [11:24:14]written 0, free lines is 4095 [11:24:14]Connected sock=8 [11:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9C 3A 06 01 3D F9 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 AA 00 00 00 F4 03 04 00 DF 39 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 10 01 00 35 04 06 00 75 35 A4 A5 02 E6 F5 B5 FC 1A 47 6C E4 09 [11:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F9 C2 47 00 69 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 10 01 00 F4 03 04 00 83 E3 15 67 B6 04 01 00 00 11 47 FC 2E 3F A0 C2 8B [11:24:14]CommunicateWithHost err = 0 [11:24:14]CheckOFDResponse [11:24:14]1017 (14) - 77093643461234 [11:24:14]1041 (16) - 0000000000963346 [11:24:14]1040 (4) - 69780 [11:24:14]1012 (4) - 21.10.2024 05:15 [11:24:14]1206 (1) - 0 [11:24:14]OFD Sender: Remove packet 69780 [11:24:14]ProducePacketName [11:24:14]name=ofd_packets/00069780 [11:24:14]NVStorageDeleteData [11:24:14]Write to MH i2c: 01 00 00 2E 34 62 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 07 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 07 00 2E 34 00 00 00 00 00 F1 0C 66 [11:24:14]RasterBufferAndPrint [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]written 0, free lines is 3322 [11:24:14]MH_Cut [11:24:14]Write to MH i2c: D1 01 00 35 34 01 3B [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: D1 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: D1 01 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: D1 01 00 35 34 00 3A [11:24:14]Write to MH i2c: 01 00 00 36 34 6A [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:15]OFD Sender: No OFD packet to send [11:24:15]*** Cut start [11:24:15]*** Partial cut [11:24:15]*** CUTSNS_PIN = 1 [11:24:15]*** CUTSNS_PIN = 0 [11:24:15]*** Brake cut motor [11:24:16]Read from MH i2c: 01 [11:24:16]MH_I2C_Read... [11:24:16]*** Stop cut motor [11:24:16]*** Cut end [11:24:16]Read from MH i2c: 01 07 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: 01 07 00 36 34 00 00 00 00 00 FF 0F 7F [11:24:16]process_action close_receipt done [11:24:16]requested_data is exist [11:24:16]produce_requested_data [11:24:16]requested_item fm.sn is exist - process it [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 11 00 00 [11:24:16]Write to MH i2c: E2 08 00 37 34 80 11 00 00 00 00 00 00 E5 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 17 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 17 00 37 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [11:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:24:16]wFMCommunicate OK [11:24:16]requested_item fd.num is exist - process it [11:24:16]SAM_PROTO_GetFieldsCounters [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 13 00 00 [11:24:16]Write to MH i2c: E2 08 00 38 34 80 13 00 00 00 00 00 00 E8 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 62 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 62 00 38 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:16]wFMCommunicate OK [11:24:16]SAM_PROTO_GetFieldsCounters done [11:24:16]requested_item shift.num is exist - process it [11:24:16]requested_item shift.opened is exist - process it [11:24:16]req_shift_opened [11:24:16]FM_GetShiftState [11:24:16]SAM_PROTO_GetShiftState [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 13 01 00 [11:24:16]Write to MH i2c: E2 08 00 39 34 80 13 01 00 00 00 00 00 EA [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0E 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0E 00 39 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 16 [11:24:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:24:16]wFMCommunicate OK [11:24:16]SAM_PROTO_GetShiftState done [11:24:16]FM_GetShiftState done [11:24:16]req_shift_opened done [11:24:16]requested_item shift.open_date is exist - process it [11:24:16]req_shift_open_date [11:24:16]req_shift_open_date done [11:24:16]produce_requested_data done [11:24:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69780,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:24:16]process_action_free close_receipt [11:24:16]json_value_free [11:24:16]json_value_free done [11:24:16]process_json_proto returns [11:24:16]Send response to host [11:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69780,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:24:16]free response buf [11:24:16]execute_script done [11:24:16]execute_script returns [11:24:16]free content buf [11:24:16]Sock 9.Close socket [11:24:16]Sock 9.Thread stoped [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:22]accept exits with 10 [11:25:22]New connection [11:25:22]New thread 3067313508 created [11:25:22]Thread 3067456868 joined [11:25:22]Waiting for new connection... [11:25:22] Sock 10.Parse request [11:25:22]Sock 10.Check first char [11:25:22]Sock 10.First char is OK [11:25:22]request: POST /json_proto HTTP/1.0 [11:25:22]Method: POST [11:25:22]URL: /json_proto [11:25:22]Method is POST - this is cgi request [11:25:22]url: /json_proto [11:25:22]query_string will be loaded in cgi processing [11:25:22]execute_cgi json_proto POST (null) [11:25:22]execute_cgi path=json_proto method=POST [11:25:22]POST find Content-Length [11:25:22]Host: 172.17.50.3:8080 [11:25:22]Content-Length: 675 [11:25:22]Content-Type: application/json [11:25:22] [11:25:22]POST finish read [11:25:22]Found Content-Length = 675 [11:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [11:25:22]execute_script... [11:25:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [11:25:22]POST & json_proto [11:25:22]process_json_proto [11:25:22]json parsed OK: [11:25:22]protocol is kg_v1.0 [11:25:22]action value=close_receipt [11:25:22]process_action close_receipt [11:25:22]cmd_close_receipt [11:25:22]MH_GetDate [11:25:22]Write to MH i2c: F0 00 00 3A 34 5D [11:25:22]Write i2c OK [11:25:22]MH_I2C_Read... [11:25:22]Read from MH i2c: F0 [11:25:22]MH_I2C_Read... [11:25:22]Read from MH i2c: F0 09 00 [11:25:22]MH_I2C_Read... [11:25:22]Read from MH i2c: F0 09 00 3A 34 00 25 3A 16 67 6B 98 1E 66 C9 [11:25:22]GetLastDocTimeStamp 1729509855 [11:25:22]current date 1729509925 [11:25:22]FM_GetShiftState [11:25:22]SAM_PROTO_GetShiftState [11:25:22]wFMCommunicate request_size=4 [11:25:22]MH_SAM_APDU [11:25:22]CAPDU: 80 13 01 00 [11:25:22]Write to MH i2c: E2 08 00 3B 34 80 13 01 00 00 00 00 00 EC [11:25:22]Write i2c OK [11:25:22]MH_I2C_Read... [11:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:22]Read from MH i2c: E2 [11:25:22]MH_I2C_Read... [11:25:22]Read from MH i2c: E2 0E 00 [11:25:22]MH_I2C_Read... [11:25:22]Read from MH i2c: E2 0E 00 3B 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 18 [11:25:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:25:22]wFMCommunicate OK [11:25:22]SAM_PROTO_GetShiftState done [11:25:22]FM_GetShiftState done [11:25:22]opened in 1729469703 [11:25:22]opened+sec_in_day 1729556103 [11:25:22]quantity*price = 60045 [11:25:22]sum+1 = 60047 [11:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 171 21.10.2024 11:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69781 ФПД: 115662594342905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69781&fm=115662594342905&tin=02508201610067®Number=0000000000156251&sum=60000 [11:25:23]StoreToDocumentArchive [11:25:23]shift 194 fd 69781 [11:25:23]save to /storage/0194/doc_00069781 [11:25:23]save last doc name /storage/0194/doc_00069781 to /storage/kkm_last_doc_name [11:25:23]save OK [11:25:23]Clear old archive folders... [11:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:23]tlvbuf is 00CAF2E0 [11:25:23]SAM_PROTO_ClearQueue [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 09 00 00 [11:25:23]Write to MH i2c: E2 08 00 48 34 80 09 00 00 00 00 00 00 EE [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 03 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 03 00 48 34 00 90 00 F0 [11:25:23]RAPDU: 90 00 [11:25:23]wFMCommunicate OK [11:25:23]SAM_PROTO_ClearQueue done [11:25:23]KKMCreateOFDPacket [11:25:23]OFDProtocolAddRootSTLVToBuf [11:25:23]FM_MakeSignedData [11:25:23]FM_MakeSignedData [11:25:23]SAM_PROTO_SignData [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 0D 01 02 [11:25:23]Write to MH i2c: E2 08 00 49 34 80 0D 01 02 00 00 00 00 F6 [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 03 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 03 00 49 34 00 90 00 F1 [11:25:23]RAPDU: 90 00 [11:25:23]wFMCommunicate OK [11:25:23]wFMCommunicate request_size=255 [11:25:23]MH_SAM_APDU [11:25:23]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 AB 00 00 00 F4 03 04 00 26 3A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 10 01 00 35 04 06 00 69 31 CB D9 [11:25:23]Write to MH i2c: E2 02 01 4A 34 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 AB 00 00 00 F4 03 04 00 26 3A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 10 01 00 35 04 06 00 69 31 CB D9 00 00 64 [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 4A 34 00 90 00 F2 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]wFMCommunicate request_size=7 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 02 02 02 7F F9 [11:25:24]Write to MH i2c: E2 0A 00 4B 34 80 0D 02 02 02 00 7F F9 00 00 75 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 03 00 4B 34 00 90 00 F3 [11:25:24]RAPDU: 90 00 [11:25:24]wFMCommunicate OK [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 0D 03 02 [11:25:24]Write to MH i2c: E2 08 00 4C 34 80 0D 03 02 00 00 00 00 FB [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 0B 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 0B 00 4C 34 00 D1 1C B6 C2 53 DB 6E 0A 90 00 07 [11:25:24]RAPDU: D1 1C B6 C2 53 DB 6E 0A 90 00 [11:25:24]wFMCommunicate OK [11:25:24]SAM_PROTO_SignData done [11:25:24]FM_MakeSignedData done [11:25:24]CreateOFDProtocolMessage [11:25:24]wFMCommunicate request_size=4 [11:25:24]MH_SAM_APDU [11:25:24]CAPDU: 80 11 00 00 [11:25:24]Write to MH i2c: E2 08 00 4D 34 80 11 00 00 00 00 00 00 FB [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:24]Read from MH i2c: E2 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 17 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: E2 17 00 4D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [11:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:24]wFMCommunicate OK [11:25:24]CreateOFDProtocolMessage done [11:25:24]OFDSenderStorePacket 69781 [11:25:24]StoreOFDPacket docnum=69781 [11:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 93 15 04 01 92 FF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 AB 00 00 00 F4 03 04 00 26 3A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 10 01 00 35 04 06 00 69 31 CB D9 7F F9 D1 1C B6 C2 53 DB 6E 0A [11:25:24]CheckFolder [11:25:24]dirname=/storage/ofd_packets [11:25:24]CheckFolder done [11:25:24]ProducePacketName [11:25:24]name=ofd_packets/00069781 [11:25:24]NVStorageSaveData ofd_packets/00069781 [11:25:24]File name is /storage/ofd_packets/00069781 [11:25:24]Write 298 bytes [11:25:24]NVStorageSaveData done [11:25:24]OFDSenderStorePacket done [11:25:24]KKMCreateOFDPacket done [11:25:24]NVStorageSaveData kkm_last_timestamp [11:25:24]File name is /storage/kkm_last_timestamp [11:25:24]Write 4 bytes [11:25:24]NVStorageSaveData done [11:25:24]ExternCall_PrintAddStr [11:25:24]wPrintStart [11:25:24]Write to MH i2c: 01 00 00 4E 34 82 [11:25:24]OFD Sender: Processing packet 69781 [packets to send 18, broken 17] [11:25:24]ProducePacketName [11:25:24]name=ofd_packets/00069781 [11:25:24]OFD Sender: To server: pG, [11:25:24]CommunicateWithHost lk.salyk.kg:30040 [11:25:24]ConnectInit lk.salyk.kg [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 4E 34 00 00 00 00 00 FF 0F 97 [11:25:24]RasterBufferAndPrint [11:25:24]line Счет N : (1)2885522 [11:25:24]line ИНН: 02508201610067 [11:25:24]line Контрольно-Кассовый Чек [11:25:24]line ПРОДАЖА [11:25:24]line ТРК (МРК, ГНК) : 61 [11:25:24]line Товар: 2710194210 [11:25:24]line ДТ-К-5 [11:25:24]line 7.880 * 76.20 [11:25:24]line = 600.46 [11:25:24]line НДС 12% НСП 1% [11:25:24]line > о реализуемом товаре [11:25:24]line ОКРУГЛЕНИЕ: -0.46 [11:25:24]line ИТОГО: 600.00 [11:25:24]line Внесено: 600.00 [11:25:24]line СДАЧА: 0.00 [11:25:24]line НСП 1% : 5.31 [11:25:24]line НДС 12% : 63.77 [11:25:24]line Наличными: 600.00 [11:25:24]line Безнал.: 0.00 [11:25:24]line Место: АЗС № 85 "Партнер Нефть" [11:25:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:24]line СНО: Общий режим [11:25:24]line Чек 171 21.10.2024 11:25 [11:25:24]line Смена: 194 ФФД: 1.0 [11:25:24]line ЗНМ: 0300000167 [11:25:24]line РНМ: 0000000000156251 [11:25:24]line Версия ККМ: v1.0 [11:25:24]line ФМ: 0000000000963346 [11:25:24]line ФД: 69781 [11:25:24]line ФПД: 115662594342905 [11:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69781&fm=115662594342905&tin=02508201610067®Number=0000000000156251&sum=60000 [11:25:24]Connected sock=9 [11:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 93 15 04 01 92 FF 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 AB 00 00 00 F4 03 04 00 26 3A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 10 01 00 35 04 06 00 69 31 CB D9 7F F9 D1 1C B6 C2 53 DB 6E 0A [11:25:24]written 0, free lines is 4095 [11:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 00 47 00 86 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 10 01 00 F4 03 04 00 C9 E3 15 67 B6 04 01 00 00 2C 1D D1 A2 36 3C 0F 5B [11:25:24]CommunicateWithHost err = 0 [11:25:24]CheckOFDResponse [11:25:24]1017 (14) - 77093643461234 [11:25:24]1041 (16) - 0000000000963346 [11:25:24]1040 (4) - 69781 [11:25:24]1012 (4) - 21.10.2024 05:16 [11:25:24]1206 (1) - 0 [11:25:24]OFD Sender: Remove packet 69781 [11:25:24]ProducePacketName [11:25:24]name=ofd_packets/00069781 [11:25:24]NVStorageDeleteData [11:25:24]Write to MH i2c: 01 00 00 79 34 AD [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: 01 07 00 79 34 00 00 00 00 00 D7 0C 97 [11:25:24]RasterBufferAndPrint [11:25:24]line [11:25:24]line [11:25:24]line [11:25:24]line [11:25:24]line [11:25:24]written 0, free lines is 3293 [11:25:24]MH_Cut [11:25:24]Write to MH i2c: D1 01 00 80 34 01 86 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: D1 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: D1 01 00 [11:25:24]MH_I2C_Read... [11:25:24]Read from MH i2c: D1 01 00 80 34 00 85 [11:25:24]Write to MH i2c: 01 00 00 81 34 B5 [11:25:24]Write i2c OK [11:25:24]MH_I2C_Read... [11:25:25]OFD Sender: No OFD packet to send [11:25:25]*** Cut start [11:25:25]*** Partial cut [11:25:25]*** CUTSNS_PIN = 1 [11:25:25]*** CUTSNS_PIN = 0 [11:25:25]*** Brake cut motor [11:25:26]Read from MH i2c: 01 [11:25:26]MH_I2C_Read... [11:25:26]*** Stop cut motor [11:25:26]*** Cut end [11:25:26]Read from MH i2c: 01 07 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: 01 07 00 81 34 00 00 00 00 00 FF 0F CA [11:25:26]process_action close_receipt done [11:25:26]requested_data is exist [11:25:26]produce_requested_data [11:25:26]requested_item fm.sn is exist - process it [11:25:26]wFMCommunicate request_size=4 [11:25:26]MH_SAM_APDU [11:25:26]CAPDU: 80 11 00 00 [11:25:26]Write to MH i2c: E2 08 00 82 34 80 11 00 00 00 00 00 00 30 [11:25:26]Write i2c OK [11:25:26]MH_I2C_Read... [11:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:26]Read from MH i2c: E2 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 17 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 17 00 82 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [11:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:26]wFMCommunicate OK [11:25:26]requested_item fd.num is exist - process it [11:25:26]SAM_PROTO_GetFieldsCounters [11:25:26]wFMCommunicate request_size=4 [11:25:26]MH_SAM_APDU [11:25:26]CAPDU: 80 13 00 00 [11:25:26]Write to MH i2c: E2 08 00 83 34 80 13 00 00 00 00 00 00 33 [11:25:26]Write i2c OK [11:25:26]MH_I2C_Read... [11:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:26]Read from MH i2c: E2 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 62 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 62 00 83 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [11:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:26]wFMCommunicate OK [11:25:26]SAM_PROTO_GetFieldsCounters done [11:25:26]requested_item shift.num is exist - process it [11:25:26]requested_item shift.opened is exist - process it [11:25:26]req_shift_opened [11:25:26]FM_GetShiftState [11:25:26]SAM_PROTO_GetShiftState [11:25:26]wFMCommunicate request_size=4 [11:25:26]MH_SAM_APDU [11:25:26]CAPDU: 80 13 01 00 [11:25:26]Write to MH i2c: E2 08 00 84 34 80 13 01 00 00 00 00 00 35 [11:25:26]Write i2c OK [11:25:26]MH_I2C_Read... [11:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:26]Read from MH i2c: E2 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 0E 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 0E 00 84 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 61 [11:25:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:25:26]wFMCommunicate OK [11:25:26]SAM_PROTO_GetShiftState done [11:25:26]FM_GetShiftState done [11:25:26]req_shift_opened done [11:25:26]requested_item shift.open_date is exist - process it [11:25:26]req_shift_open_date [11:25:26]req_shift_open_date done [11:25:26]produce_requested_data done [11:25:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69781,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:25:26]process_action_free close_receipt [11:25:26]json_value_free [11:25:26]json_value_free done [11:25:26]process_json_proto returns [11:25:26]Send response to host [11:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69781,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:25:26]free response buf [11:25:26]execute_script done [11:25:26]execute_script returns [11:25:26]free content buf [11:25:26]Sock 10.Close socket [11:25:26]Sock 10.Thread stoped [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:19]accept exits with 8 [11:29:19]New connection [11:29:19]New thread 3067456868 created [11:29:19]Thread 3067313508 joined [11:29:19]Waiting for new connection... [11:29:19] Sock 8.Parse request [11:29:19]Sock 8.Check first char [11:29:19]Sock 8.First char is OK [11:29:19]request: POST /json_proto HTTP/1.0 [11:29:19]Method: POST [11:29:19]URL: /json_proto [11:29:19]Method is POST - this is cgi request [11:29:19]url: /json_proto [11:29:19]query_string will be loaded in cgi processing [11:29:19]execute_cgi json_proto POST (null) [11:29:19]execute_cgi path=json_proto method=POST [11:29:19]POST find Content-Length [11:29:19]Host: 172.17.50.3:8080 [11:29:19]Content-Length: 683 [11:29:19]Content-Type: application/json [11:29:19] [11:29:19]POST finish read [11:29:19]Found Content-Length = 683 [11:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885524", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:19]execute_script... [11:29:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885524", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:19]POST & json_proto [11:29:19]process_json_proto [11:29:19]json parsed OK: [11:29:19]protocol is kg_v1.0 [11:29:19]action value=close_receipt [11:29:19]process_action close_receipt [11:29:19]cmd_close_receipt [11:29:19]MH_GetDate [11:29:19]Write to MH i2c: F0 00 00 85 34 A8 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: F0 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: F0 09 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: F0 09 00 85 34 00 13 3B 16 67 6B 98 1E 66 03 [11:29:19]GetLastDocTimeStamp 1729509926 [11:29:19]current date 1729510163 [11:29:19]FM_GetShiftState [11:29:19]SAM_PROTO_GetShiftState [11:29:19]wFMCommunicate request_size=4 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 13 01 00 [11:29:19]Write to MH i2c: E2 08 00 86 34 80 13 01 00 00 00 00 00 37 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 0E 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 0E 00 86 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 63 [11:29:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:29:19]wFMCommunicate OK [11:29:19]SAM_PROTO_GetShiftState done [11:29:19]FM_GetShiftState done [11:29:19]opened in 1729469703 [11:29:19]opened+sec_in_day 1729556103 [11:29:19]quantity*price = 100015 [11:29:19]sum+1 = 100017 [11:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 172 21.10.2024 11:29 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69782 ФПД: 236703959071366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69782&fm=236703959071366&tin=02508201610067®Number=0000000000156251&sum=100000 [11:29:20]StoreToDocumentArchive [11:29:20]shift 194 fd 69782 [11:29:20]save to /storage/0194/doc_00069782 [11:29:20]save last doc name /storage/0194/doc_00069782 to /storage/kkm_last_doc_name [11:29:20]save OK [11:29:20]Clear old archive folders... [11:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:20]tlvbuf is 00D175A0 [11:29:20]SAM_PROTO_ClearQueue [11:29:20]wFMCommunicate request_size=4 [11:29:20]MH_SAM_APDU [11:29:20]CAPDU: 80 09 00 00 [11:29:20]Write to MH i2c: E2 08 00 93 34 80 09 00 00 00 00 00 00 39 [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:20]Read from MH i2c: E2 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: E2 03 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: E2 03 00 93 34 00 90 00 3B [11:29:20]RAPDU: 90 00 [11:29:20]wFMCommunicate OK [11:29:20]SAM_PROTO_ClearQueue done [11:29:20]KKMCreateOFDPacket [11:29:20]OFDProtocolAddRootSTLVToBuf [11:29:20]FM_MakeSignedData [11:29:20]FM_MakeSignedData [11:29:20]SAM_PROTO_SignData [11:29:20]wFMCommunicate request_size=4 [11:29:20]MH_SAM_APDU [11:29:20]CAPDU: 80 0D 01 02 [11:29:20]Write to MH i2c: E2 08 00 94 34 80 0D 01 02 00 00 00 00 41 [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=255 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 13 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 10 01 00 35 04 06 00 D7 [11:29:21]Write to MH i2c: E2 02 01 95 34 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 13 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 10 01 00 35 04 06 00 D7 00 00 7B [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=10 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 02 02 05 47 EF 65 BA 86 [11:29:21]Write to MH i2c: E2 0D 00 96 34 80 0D 02 02 05 00 47 EF 65 BA 86 00 00 29 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 03 02 [11:29:21]Write to MH i2c: E2 08 00 97 34 80 0D 03 02 00 00 00 00 46 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0B 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0B 00 97 34 00 4C 07 44 ED 70 29 11 A1 90 00 16 [11:29:21]RAPDU: 4C 07 44 ED 70 29 11 A1 90 00 [11:29:21]wFMCommunicate OK [11:29:21]SAM_PROTO_SignData done [11:29:21]FM_MakeSignedData done [11:29:21]CreateOFDProtocolMessage [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 11 00 00 [11:29:21]Write to MH i2c: E2 08 00 98 34 80 11 00 00 00 00 00 00 46 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 98 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [11:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:21]wFMCommunicate OK [11:29:21]CreateOFDProtocolMessage done [11:29:21]OFDSenderStorePacket 69782 [11:29:21]StoreOFDPacket docnum=69782 [11:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 51 21 07 01 B5 78 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 13 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 10 01 00 35 04 06 00 D7 47 EF 65 BA 86 4C 07 44 ED 70 29 11 A1 [11:29:21]CheckFolder [11:29:21]dirname=/storage/ofd_packets [11:29:21]CheckFolder done [11:29:21]ProducePacketName [11:29:21]name=ofd_packets/00069782 [11:29:21]NVStorageSaveData ofd_packets/00069782 [11:29:21]File name is /storage/ofd_packets/00069782 [11:29:21]Write 301 bytes [11:29:21]NVStorageSaveData done [11:29:21]OFDSenderStorePacket done [11:29:21]KKMCreateOFDPacket done [11:29:21]NVStorageSaveData kkm_last_timestamp [11:29:21]File name is /storage/kkm_last_timestamp [11:29:21]Write 4 bytes [11:29:21]NVStorageSaveData done [11:29:21]ExternCall_PrintAddStr [11:29:21]wPrintStart [11:29:21]Write to MH i2c: 01 00 00 99 34 CD [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 99 34 00 00 00 00 00 FF 0F E2 [11:29:21]RasterBufferAndPrint [11:29:21]line Счет N : (1)2885524 [11:29:21]line ИНН: 02508201610067 [11:29:21]line Контрольно-Кассовый Чек [11:29:21]line ПРОДАЖА [11:29:21]line ТРК (МРК, ГНК) : 32 [11:29:21]line Товар: 2710124130 [11:29:21]line Аи-92-К-5 [11:29:21]line 14.950 * 66.90 [11:29:21]line = 1000.16 [11:29:21]line НДС 12% НСП 1% [11:29:21]line > о реализуемом товаре [11:29:21]line ОКРУГЛЕНИЕ: -0.16 [11:29:21]line ИТОГО: 1000.00 [11:29:21]line Внесено: 1000.00 [11:29:21]line СДАЧА: 0.00 [11:29:21]line НСП 1% : 8.85 [11:29:21]line НДС 12% : 106.21 [11:29:21]line Наличными: 1000.00 [11:29:21]line Безнал.: 0.00 [11:29:21]line Место: АЗС № 85 "Партнер Нефть" [11:29:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:29:21]line СНО: Общий режим [11:29:21]line Чек 172 21.10.2024 11:29 [11:29:21]line Смена: 194 ФФД: 1.0 [11:29:21]line ЗНМ: 0300000167 [11:29:21]line РНМ: 0000000000156251 [11:29:21]line Версия ККМ: v1.0 [11:29:21]line ФМ: 0000000000963346 [11:29:21]line ФД: 69782 [11:29:21]line ФПД: 236703959071366 [11:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69782&fm=236703959071366&tin=02508201610067®Number=0000000000156251&sum=100000 [11:29:21]OFD Sender: Processing packet 69782 [packets to send 18, broken 17] [11:29:21]ProducePacketName [11:29:21]name=ofd_packets/00069782 [11:29:21]OFD Sender: To server: pG, [11:29:21]CommunicateWithHost lk.salyk.kg:30040 [11:29:21]ConnectInit lk.salyk.kg [11:29:21]written 0, free lines is 4095 [11:29:21]Connected sock=10 [11:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 51 21 07 01 B5 78 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 13 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 10 01 00 35 04 06 00 D7 47 EF 65 BA 86 4C 07 44 ED 70 29 11 A1 [11:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AD 00 47 00 12 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 39 36 33 33 34 36 10 04 04 00 96 10 01 00 F4 03 04 00 B7 E4 15 67 B6 04 01 00 00 3D 71 22 4E 10 C1 F5 89 [11:29:22]CommunicateWithHost err = 0 [11:29:22]CheckOFDResponse [11:29:22]1017 (14) - 77093643461234 [11:29:22]1041 (16) - 0000000000963346 [11:29:22]1040 (4) - 69782 [11:29:22]1012 (4) - 21.10.2024 05:20 [11:29:22]1206 (1) - 0 [11:29:22]OFD Sender: Remove packet 69782 [11:29:22]ProducePacketName [11:29:22]name=ofd_packets/00069782 [11:29:22]NVStorageDeleteData [11:29:22]Write to MH i2c: 01 00 00 C4 34 F8 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 C4 34 00 00 00 00 00 E9 0C F4 [11:29:22]RasterBufferAndPrint [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]written 0, free lines is 3311 [11:29:22]MH_Cut [11:29:22]Write to MH i2c: D1 01 00 CB 34 01 D1 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 01 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 01 00 CB 34 00 D0 [11:29:22]Write to MH i2c: 01 00 00 CC 34 00 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]OFD Sender: No OFD packet to send [11:29:22]*** Cut start [11:29:22]*** Partial cut [11:29:22]*** CUTSNS_PIN = 1 [11:29:22]*** CUTSNS_PIN = 0 [11:29:23]*** Brake cut motor [11:29:23]Read from MH i2c: 01 [11:29:23]MH_I2C_Read... [11:29:23]*** Stop cut motor [11:29:23]*** Cut end [11:29:23]Read from MH i2c: 01 07 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: 01 07 00 CC 34 00 00 00 00 00 FF 0F 15 [11:29:23]process_action close_receipt done [11:29:23]requested_data is exist [11:29:23]produce_requested_data [11:29:23]requested_item fm.sn is exist - process it [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 11 00 00 [11:29:23]Write to MH i2c: E2 08 00 CD 34 80 11 00 00 00 00 00 00 7B [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 17 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 17 00 CD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [11:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:23]wFMCommunicate OK [11:29:23]requested_item fd.num is exist - process it [11:29:23]SAM_PROTO_GetFieldsCounters [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 13 00 00 [11:29:23]Write to MH i2c: E2 08 00 CE 34 80 13 00 00 00 00 00 00 7E [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 62 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 62 00 CE 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:23]wFMCommunicate OK [11:29:23]SAM_PROTO_GetFieldsCounters done [11:29:23]requested_item shift.num is exist - process it [11:29:23]requested_item shift.opened is exist - process it [11:29:23]req_shift_opened [11:29:23]FM_GetShiftState [11:29:23]SAM_PROTO_GetShiftState [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 13 01 00 [11:29:23]Write to MH i2c: E2 08 00 CF 34 80 13 01 00 00 00 00 00 80 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 0E 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 0E 00 CF 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AC [11:29:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:29:23]wFMCommunicate OK [11:29:23]SAM_PROTO_GetShiftState done [11:29:23]FM_GetShiftState done [11:29:23]req_shift_opened done [11:29:23]requested_item shift.open_date is exist - process it [11:29:23]req_shift_open_date [11:29:23]req_shift_open_date done [11:29:23]produce_requested_data done [11:29:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69782,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:29:23]process_action_free close_receipt [11:29:23]json_value_free [11:29:23]json_value_free done [11:29:23]process_json_proto returns [11:29:23]Send response to host [11:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69782,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:29:23]free response buf [11:29:23]execute_script done [11:29:23]execute_script returns [11:29:23]free content buf [11:29:23]Sock 8.Close socket [11:29:23]Sock 8.Thread stoped [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:40]accept exits with 9 [11:29:40]New connection [11:29:40]New thread 3067313508 created [11:29:40]Thread 3067456868 joined [11:29:40]Waiting for new connection... [11:29:40] Sock 9.Parse request [11:29:40]Sock 9.Check first char [11:29:40]Sock 9.First char is OK [11:29:40]request: POST /json_proto HTTP/1.0 [11:29:40]Method: POST [11:29:40]URL: /json_proto [11:29:40]Method is POST - this is cgi request [11:29:40]url: /json_proto [11:29:40]query_string will be loaded in cgi processing [11:29:40]execute_cgi json_proto POST (null) [11:29:40]execute_cgi path=json_proto method=POST [11:29:40]POST find Content-Length [11:29:40]Host: 172.17.50.3:8080 [11:29:40]Content-Length: 755 [11:29:40]Content-Type: application/json [11:29:40] [11:29:40]POST finish read [11:29:40]Found Content-Length = 755 [11:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099305", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:40]execute_script... [11:29: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)2885523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099305", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:40]POST & json_proto [11:29:40]process_json_proto [11:29:40]json parsed OK: [11:29:40]protocol is kg_v1.0 [11:29:40]action value=close_receipt [11:29:40]process_action close_receipt [11:29:40]cmd_close_receipt [11:29:40]MH_GetDate [11:29:40]Write to MH i2c: F0 00 00 D0 34 F3 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: F0 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: F0 09 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: F0 09 00 D0 34 00 28 3B 16 67 6B 98 1E 66 63 [11:29:40]GetLastDocTimeStamp 1729510163 [11:29:40]current date 1729510184 [11:29:40]FM_GetShiftState [11:29:40]SAM_PROTO_GetShiftState [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 13 01 00 [11:29:40]Write to MH i2c: E2 08 00 D1 34 80 13 01 00 00 00 00 00 82 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 D1 34 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AE [11:29:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:29:40]wFMCommunicate OK [11:29:40]SAM_PROTO_GetShiftState done [11:29:40]FM_GetShiftState done [11:29:40]opened in 1729469703 [11:29:40]opened+sec_in_day 1729556103 [11:29:40]quantity*price = 0 [11:29:40]sum+1 = 1 [11:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 173 21.10.2024 11:29 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30099305 ФМ: 0000000000963346 ФД: 69783 ФПД: 53768300510235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112944&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69783&fm=53768300510235&tin=02508201610067®Number=0000000000156251&sum=0 [11:29:41]StoreToDocumentArchive [11:29:41]shift 194 fd 69783 [11:29:41]save to /storage/0194/doc_00069783 [11:29:41]save last doc name /storage/0194/doc_00069783 to /storage/kkm_last_doc_name [11:29:41]save OK [11:29:41]Clear old archive folders... [11:29:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:41]tlvbuf is 00D09730 [11:29:41]SAM_PROTO_ClearQueue [11:29:41]wFMCommunicate request_size=4 [11:29:41]MH_SAM_APDU [11:29:41]CAPDU: 80 09 00 00 [11:29:41]Write to MH i2c: E2 08 00 DE 34 80 09 00 00 00 00 00 00 84 [11:29:41]Write i2c OK [11:29:41]MH_I2C_Read... [11:29:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:41]Read from MH i2c: E2 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 03 00 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [11:29:41]RAPDU: 90 00 [11:29:41]wFMCommunicate OK [11:29:41]SAM_PROTO_ClearQueue done [11:29:41]KKMCreateOFDPacket [11:29:41]OFDProtocolAddRootSTLVToBuf [11:29:41]FM_MakeSignedData [11:29:41]FM_MakeSignedData [11:29:41]SAM_PROTO_SignData [11:29:41]wFMCommunicate request_size=4 [11:29:41]MH_SAM_APDU [11:29:41]CAPDU: 80 0D 01 02 [11:29:41]Write to MH i2c: E2 08 00 DF 34 80 0D 01 02 00 00 00 00 8C [11:29:41]Write i2c OK [11:29:41]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [11:29:42]RAPDU: 90 00 [11:29:42]wFMCommunicate OK [11:29:42]wFMCommunicate request_size=255 [11:29:42]MH_SAM_APDU [11:29: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 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 AD 00 00 00 F4 03 04 00 28 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 10 01 00 35 04 06 00 30 [11:29:42]Write to MH i2c: E2 02 01 E0 34 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 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 AD 00 00 00 F4 03 04 00 28 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 10 01 00 35 04 06 00 30 00 00 CA [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [11:29:42]RAPDU: 90 00 [11:29:42]wFMCommunicate OK [11:29:42]wFMCommunicate request_size=10 [11:29:42]MH_SAM_APDU [11:29:42]CAPDU: 80 0D 02 02 05 E6 E8 73 BC 1B [11:29:42]Write to MH i2c: E2 0D 00 E1 34 80 0D 02 02 05 00 E6 E8 73 BC 1B 00 00 B1 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 03 00 E1 34 00 90 00 89 [11:29:42]RAPDU: 90 00 [11:29:42]wFMCommunicate OK [11:29:42]wFMCommunicate request_size=4 [11:29:42]MH_SAM_APDU [11:29:42]CAPDU: 80 0D 03 02 [11:29:42]Write to MH i2c: E2 08 00 E2 34 80 0D 03 02 00 00 00 00 91 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0B 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0B 00 E2 34 00 CD F6 77 B0 E9 02 98 CF 90 00 CE [11:29:42]RAPDU: CD F6 77 B0 E9 02 98 CF 90 00 [11:29:42]wFMCommunicate OK [11:29:42]SAM_PROTO_SignData done [11:29:42]FM_MakeSignedData done [11:29:42]CreateOFDProtocolMessage [11:29:42]wFMCommunicate request_size=4 [11:29:42]MH_SAM_APDU [11:29:42]CAPDU: 80 11 00 00 [11:29:42]Write to MH i2c: E2 08 00 E3 34 80 11 00 00 00 00 00 00 91 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 17 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 17 00 E3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [11:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:42]wFMCommunicate OK [11:29:42]CreateOFDProtocolMessage done [11:29:42]OFDSenderStorePacket 69783 [11:29:42]StoreOFDPacket docnum=69783 [11:29:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FE B2 07 01 5A 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 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 AD 00 00 00 F4 03 04 00 28 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 10 01 00 35 04 06 00 30 E6 E8 73 BC 1B CD F6 77 B0 E9 02 98 CF [11:29:42]CheckFolder [11:29:42]dirname=/storage/ofd_packets [11:29:42]CheckFolder done [11:29:42]ProducePacketName [11:29:42]name=ofd_packets/00069783 [11:29:42]NVStorageSaveData ofd_packets/00069783 [11:29:42]File name is /storage/ofd_packets/00069783 [11:29:42]Write 301 bytes [11:29:42]NVStorageSaveData done [11:29:42]OFDSenderStorePacket done [11:29:42]KKMCreateOFDPacket done [11:29:42]NVStorageSaveData kkm_last_timestamp [11:29:42]File name is /storage/kkm_last_timestamp [11:29:42]Write 4 bytes [11:29:42]NVStorageSaveData done [11:29:42]ExternCall_PrintAddStr [11:29:42]wPrintStart [11:29:42]Write to MH i2c: 01 00 00 E4 34 18 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: 01 07 00 E4 34 00 00 00 00 00 FF 0F 2D [11:29:42]RasterBufferAndPrint [11:29:42]line Счет N : (1)2885523 [11:29:42]line ИНН: 02508201610067 [11:29:42]line Контрольно-Кассовый Чек [11:29:42]line ПРОДАЖА [11:29:42]line ТРК (МРК, ГНК) : 22 [11:29:42]line Товар: 2710124130 [11:29:42]line Аи-92-К-5 [11:29:42]line 50.000 * 0.00 [11:29:42]line = 0.00 [11:29:42]line НДС 12% НСП 1% [11:29:42]line > о реализуемом товаре [11:29:42]line ИТОГО: 0.00 [11:29:42]line НСП 1% : 0.00 [11:29:42]line НДС 12% : 0.00 [11:29:42]line Наличными: 0.00 [11:29:42]line Безнал.: 0.00 [11:29:42]line Место: АЗС № 85 "Партнер Нефть" [11:29:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:29:42]line СНО: Общий режим [11:29:42]line Чек 173 21.10.2024 11:29 [11:29:42]line Смена: 194 ФФД: 1.0 [11:29:42]line ЗНМ: 0300000167 [11:29:42]line РНМ: 0000000000156251 [11:29:42]line Версия ККМ: v1.0 [11:29:42]line Талоны: ТК ГПНА Online [11:29:42]line 30099305 [11:29:42]line ФМ: 0000000000963346 [11:29:42]line ФД: 69783 [11:29:42]line ФПД: 53768300510235 [11:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112944&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69783&fm=53768300510235&tin=02508201610067®Number=0000000000156251&sum=0 [11:29:42]OFD Sender: Processing packet 69783 [packets to send 18, broken 17] [11:29:42]ProducePacketName [11:29:42]name=ofd_packets/00069783 [11:29:42]OFD Sender: To server: pG, [11:29:42]CommunicateWithHost lk.salyk.kg:30040 [11:29:42]ConnectInit lk.salyk.kg [11:29:42]written 0, free lines is 4095 [11:29:42]Connected sock=10 [11:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FE B2 07 01 5A 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 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 AD 00 00 00 F4 03 04 00 28 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 10 01 00 35 04 06 00 30 E6 E8 73 BC 1B CD F6 77 B0 E9 02 98 CF [11:29:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AE 33 47 00 4B 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 10 01 00 F4 03 04 00 CC E4 15 67 B6 04 01 00 00 3A 77 F3 43 CE 07 9A BF [11:29:43]CommunicateWithHost err = 0 [11:29:43]CheckOFDResponse [11:29:43]1017 (14) - 77093643461234 [11:29:43]1041 (16) - 0000000000963346 [11:29:43]1040 (4) - 69783 [11:29:43]1012 (4) - 21.10.2024 05:21 [11:29:43]1206 (1) - 0 [11:29:43]OFD Sender: Remove packet 69783 [11:29:43]ProducePacketName [11:29:43]name=ofd_packets/00069783 [11:29:43]NVStorageDeleteData [11:29:43]Write to MH i2c: 01 00 00 0E 35 43 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 0E 35 00 00 00 00 00 F0 0C 46 [11:29:43]RasterBufferAndPrint [11:29:43]line [11:29:43]line [11:29:43]line [11:29:43]line [11:29:43]line [11:29:43]written 0, free lines is 3318 [11:29:43]MH_Cut [11:29:43]Write to MH i2c: D1 01 00 15 35 01 1C [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: D1 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: D1 01 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: D1 01 00 15 35 00 1B [11:29:43]Write to MH i2c: 01 00 00 16 35 4B [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]OFD Sender: No OFD packet to send [11:29:43]*** Cut start [11:29:43]*** Partial cut [11:29:43]*** CUTSNS_PIN = 1 [11:29:43]*** CUTSNS_PIN = 0 [11:29:44]*** Brake cut motor [11:29:44]Read from MH i2c: 01 [11:29:44]MH_I2C_Read... [11:29:44]*** Stop cut motor [11:29:44]*** Cut end [11:29:44]Read from MH i2c: 01 07 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 FF 0F 60 [11:29:44]process_action close_receipt done [11:29:44]requested_data is exist [11:29:44]produce_requested_data [11:29:44]requested_item fm.sn is exist - process it [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 11 00 00 [11:29:44]Write to MH i2c: E2 08 00 17 35 80 11 00 00 00 00 00 00 C6 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 17 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 17 00 17 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [11:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:29:44]wFMCommunicate OK [11:29:44]requested_item fd.num is exist - process it [11:29:44]SAM_PROTO_GetFieldsCounters [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 13 00 00 [11:29:44]Write to MH i2c: E2 08 00 18 35 80 13 00 00 00 00 00 00 C9 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 62 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 62 00 18 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_GetFieldsCounters done [11:29:44]requested_item shift.num is exist - process it [11:29:44]requested_item shift.opened is exist - process it [11:29:44]req_shift_opened [11:29:44]FM_GetShiftState [11:29:44]SAM_PROTO_GetShiftState [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 13 01 00 [11:29:44]Write to MH i2c: E2 08 00 19 35 80 13 01 00 00 00 00 00 CB [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 19 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [11:29:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_GetShiftState done [11:29:44]FM_GetShiftState done [11:29:44]req_shift_opened done [11:29:44]requested_item shift.open_date is exist - process it [11:29:44]req_shift_open_date [11:29:44]req_shift_open_date done [11:29:44]produce_requested_data done [11:29:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69783,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:29:44]process_action_free close_receipt [11:29:44]json_value_free [11:29:44]json_value_free done [11:29:44]process_json_proto returns [11:29:44]Send response to host [11:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69783,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:29:44]free response buf [11:29:44]execute_script done [11:29:44]execute_script returns [11:29:44]free content buf [11:29:44]Sock 9.Close socket [11:29:44]Sock 9.Thread stoped [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]accept exits with 8 [11:33:08]New connection [11:33:08]New thread 3067456868 created [11:33:08]Thread 3067313508 joined [11:33:08]Waiting for new connection... [11:33:08] Sock 8.Parse request [11:33:08]Sock 8.Check first char [11:33:08]Sock 8.First char is OK [11:33:08]request: POST /json_proto HTTP/1.0 [11:33:08]Method: POST [11:33:08]URL: /json_proto [11:33:08]Method is POST - this is cgi request [11:33:08]url: /json_proto [11:33:08]query_string will be loaded in cgi processing [11:33:08]execute_cgi json_proto POST (null) [11:33:08]execute_cgi path=json_proto method=POST [11:33:08]POST find Content-Length [11:33:08]Host: 172.17.50.3:8080 [11:33:08]Content-Length: 683 [11:33:08]Content-Type: application/json [11:33:08] [11:33:08]POST finish read [11:33:08]Found Content-Length = 683 [11:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885525", "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" : 40.440, "sum" : 3000.65, "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" ] } } [11:33:08]execute_script... [11:33:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885525", "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" : 40.440, "sum" : 3000.65, "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" ] } } [11:33:08]POST & json_proto [11:33:08]process_json_proto [11:33:08]json parsed OK: [11:33:08]protocol is kg_v1.0 [11:33:08]action value=close_receipt [11:33:08]process_action close_receipt [11:33:08]cmd_close_receipt [11:33:08]MH_GetDate [11:33:08]Write to MH i2c: F0 00 00 1A 35 3E [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 09 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 09 00 1A 35 00 F7 3B 16 67 6B 98 1E 66 7D [11:33:08]GetLastDocTimeStamp 1729510184 [11:33:08]current date 1729510391 [11:33:08]FM_GetShiftState [11:33:08]SAM_PROTO_GetShiftState [11:33:08]wFMCommunicate request_size=4 [11:33:08]MH_SAM_APDU [11:33:08]CAPDU: 80 13 01 00 [11:33:08]Write to MH i2c: E2 08 00 1B 35 80 13 01 00 00 00 00 00 CD [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:08]Read from MH i2c: E2 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 0E 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 0E 00 1B 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F9 [11:33:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:33:08]wFMCommunicate OK [11:33:08]SAM_PROTO_GetShiftState done [11:33:08]FM_GetShiftState done [11:33:08]opened in 1729469703 [11:33:08]opened+sec_in_day 1729556103 [11:33:08]quantity*price = 300064 [11:33:08]sum+1 = 300066 [11:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 174 21.10.2024 11:33 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69784 ФПД: 89916281720214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113311&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69784&fm=89916281720214&tin=02508201610067®Number=0000000000156251&sum=300000 [11:33:09]StoreToDocumentArchive [11:33:09]shift 194 fd 69784 [11:33:09]save to /storage/0194/doc_00069784 [11:33:09]save last doc name /storage/0194/doc_00069784 to /storage/kkm_last_doc_name [11:33:09]save OK [11:33:09]Clear old archive folders... [11:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:09]tlvbuf is B6E235E0 [11:33:09]SAM_PROTO_ClearQueue [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 09 00 00 [11:33:09]Write to MH i2c: E2 08 00 28 35 80 09 00 00 00 00 00 00 CF [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [11:33:09]RAPDU: 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_ClearQueue done [11:33:09]KKMCreateOFDPacket [11:33:09]OFDProtocolAddRootSTLVToBuf [11:33:09]FM_MakeSignedData [11:33:09]FM_MakeSignedData [11:33:09]SAM_PROTO_SignData [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 0D 01 02 [11:33:09]Write to MH i2c: E2 08 00 29 35 80 0D 01 02 00 00 00 00 D7 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [11:33:09]RAPDU: 90 00 [11:33:09]wFMCommunicate OK [11:33:09]wFMCommunicate request_size=255 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 AE 00 00 00 F4 03 04 00 F7 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 10 01 00 35 04 06 00 51 [11:33:09]Write to MH i2c: E2 02 01 2A 35 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 AE 00 00 00 F4 03 04 00 F7 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 10 01 00 35 04 06 00 51 00 00 AA [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [11:33:09]RAPDU: 90 00 [11:33:09]wFMCommunicate OK [11:33:09]wFMCommunicate request_size=10 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 0D 02 02 05 C7 44 08 0D 96 [11:33:09]Write to MH i2c: E2 0D 00 2B 35 80 0D 02 02 05 00 C7 44 08 0D 96 00 00 9A [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [11:33:09]RAPDU: 90 00 [11:33:09]wFMCommunicate OK [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 0D 03 02 [11:33:09]Write to MH i2c: E2 08 00 2C 35 80 0D 03 02 00 00 00 00 DC [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0B 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0B 00 2C 35 00 90 10 50 F0 A6 2E 3D 96 90 00 64 [11:33:09]RAPDU: 90 10 50 F0 A6 2E 3D 96 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_SignData done [11:33:09]FM_MakeSignedData done [11:33:09]CreateOFDProtocolMessage [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 11 00 00 [11:33:09]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [11:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:33:09]wFMCommunicate OK [11:33:09]CreateOFDProtocolMessage done [11:33:09]OFDSenderStorePacket 69784 [11:33:09]StoreOFDPacket docnum=69784 [11:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CF 02 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 AE 00 00 00 F4 03 04 00 F7 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 10 01 00 35 04 06 00 51 C7 44 08 0D 96 90 10 50 F0 A6 2E 3D 96 [11:33:09]CheckFolder [11:33:09]dirname=/storage/ofd_packets [11:33:09]CheckFolder done [11:33:09]ProducePacketName [11:33:09]name=ofd_packets/00069784 [11:33:09]NVStorageSaveData ofd_packets/00069784 [11:33:09]File name is /storage/ofd_packets/00069784 [11:33:09]Write 301 bytes [11:33:09]NVStorageSaveData done [11:33:09]OFDSenderStorePacket done [11:33:09]KKMCreateOFDPacket done [11:33:09]NVStorageSaveData kkm_last_timestamp [11:33:09]File name is /storage/kkm_last_timestamp [11:33:09]Write 4 bytes [11:33:09]NVStorageSaveData done [11:33:09]ExternCall_PrintAddStr [11:33:09]wPrintStart [11:33:09]Write to MH i2c: 01 00 00 2E 35 63 [11:33:09]OFD Sender: Processing packet 69784 [packets to send 18, broken 17] [11:33:09]ProducePacketName [11:33:09]name=ofd_packets/00069784 [11:33:09]OFD Sender: To server: pG, [11:33:09]CommunicateWithHost lk.salyk.kg:30040 [11:33:09]ConnectInit lk.salyk.kg [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 07 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 07 00 2E 35 00 00 00 00 00 FF 0F 78 [11:33:09]RasterBufferAndPrint [11:33:09]line Счет N : (1)2885525 [11:33:09]line ИНН: 02508201610067 [11:33:09]line Контрольно-Кассовый Чек [11:33:09]line ПРОДАЖА [11:33:09]line ТРК (МРК, ГНК) : 33 [11:33:09]line Товар: 2710124500 [11:33:09]line Аи-95-К-5 [11:33:09]line 40.440 * 74.20 [11:33:09]line = 3000.65 [11:33:09]line НДС 12% НСП 1% [11:33:09]line > о реализуемом товаре [11:33:09]line ОКРУГЛЕНИЕ: -0.65 [11:33:09]line ИТОГО: 3000.00 [11:33:09]line Внесено: 3000.00 [11:33:09]line СДАЧА: 0.00 [11:33:09]line НСП 1% : 26.55 [11:33:09]line НДС 12% : 318.65 [11:33:09]line Наличными: 3000.00 [11:33:09]line Безнал.: 0.00 [11:33:09]line Место: АЗС № 85 "Партнер Нефть" [11:33:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:33:09]line СНО: Общий режим [11:33:09]line Чек 174 21.10.2024 11:33 [11:33:09]line Смена: 194 ФФД: 1.0 [11:33:09]line ЗНМ: 0300000167 [11:33:09]line РНМ: 0000000000156251 [11:33:09]line Версия ККМ: v1.0 [11:33:09]line ФМ: 0000000000963346 [11:33:09]line ФД: 69784 [11:33:09]line ФПД: 89916281720214 [11:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113311&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69784&fm=89916281720214&tin=02508201610067®Number=0000000000156251&sum=300000 [11:33:10]Connected sock=10 [11:33:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CF 02 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 AE 00 00 00 F4 03 04 00 F7 3B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 10 01 00 35 04 06 00 51 C7 44 08 0D 96 90 10 50 F0 A6 2E 3D 96 [11:33:10]written 0, free lines is 4095 [11:33:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AB B4 47 00 59 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 10 01 00 F4 03 04 00 9B E5 15 67 B6 04 01 00 00 20 07 D1 9F A5 41 F8 06 [11:33:10]CommunicateWithHost err = 0 [11:33:10]CheckOFDResponse [11:33:10]1017 (14) - 77093643461234 [11:33:10]1041 (16) - 0000000000963346 [11:33:10]1040 (4) - 69784 [11:33:10]1012 (4) - 21.10.2024 05:24 [11:33:10]1206 (1) - 0 [11:33:10]OFD Sender: Remove packet 69784 [11:33:10]ProducePacketName [11:33:10]name=ofd_packets/00069784 [11:33:10]NVStorageDeleteData [11:33:10]Write to MH i2c: 01 00 00 59 35 8E [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 59 35 00 00 00 00 00 E9 0C 8A [11:33:10]RasterBufferAndPrint [11:33:10]line [11:33:10]line [11:33:10]line [11:33:10]line [11:33:10]line [11:33:10]written 0, free lines is 3311 [11:33:10]MH_Cut [11:33:10]Write to MH i2c: D1 01 00 60 35 01 67 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D1 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D1 01 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: D1 01 00 60 35 00 66 [11:33:10]Write to MH i2c: 01 00 00 61 35 96 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]OFD Sender: No OFD packet to send [11:33:11]*** Cut start [11:33:11]*** Partial cut [11:33:11]*** CUTSNS_PIN = 1 [11:33:11]*** CUTSNS_PIN = 0 [11:33:11]*** Brake cut motor [11:33:11]Read from MH i2c: 01 [11:33:11]MH_I2C_Read... [11:33:11]*** Stop cut motor [11:33:11]*** Cut end [11:33:11]Read from MH i2c: 01 07 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 FF 0F AB [11:33:11]process_action close_receipt done [11:33:11]requested_data is exist [11:33:11]produce_requested_data [11:33:11]requested_item fm.sn is exist - process it [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 11 00 00 [11:33:11]Write to MH i2c: E2 08 00 62 35 80 11 00 00 00 00 00 00 11 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:11]Read from MH i2c: E2 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 17 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: E2 17 00 62 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [11:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:33:11]wFMCommunicate OK [11:33:11]requested_item fd.num is exist - process it [11:33:11]SAM_PROTO_GetFieldsCounters [11:33:11]wFMCommunicate request_size=4 [11:33:11]MH_SAM_APDU [11:33:11]CAPDU: 80 13 00 00 [11:33:11]Write to MH i2c: E2 08 00 63 35 80 13 00 00 00 00 00 00 14 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 62 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 62 00 63 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:12]wFMCommunicate OK [11:33:12]SAM_PROTO_GetFieldsCounters done [11:33:12]requested_item shift.num is exist - process it [11:33:12]requested_item shift.opened is exist - process it [11:33:12]req_shift_opened [11:33:12]FM_GetShiftState [11:33:12]SAM_PROTO_GetShiftState [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 13 01 00 [11:33:12]Write to MH i2c: E2 08 00 64 35 80 13 01 00 00 00 00 00 16 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 64 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [11:33:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:33:12]wFMCommunicate OK [11:33:12]SAM_PROTO_GetShiftState done [11:33:12]FM_GetShiftState done [11:33:12]req_shift_opened done [11:33:12]requested_item shift.open_date is exist - process it [11:33:12]req_shift_open_date [11:33:12]req_shift_open_date done [11:33:12]produce_requested_data done [11:33:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69784,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:33:12]process_action_free close_receipt [11:33:12]json_value_free [11:33:12]json_value_free done [11:33:12]process_json_proto returns [11:33:12]Send response to host [11:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69784,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:33:12]free response buf [11:33:12]execute_script done [11:33:12]execute_script returns [11:33:12]free content buf [11:33:12]Sock 8.Close socket [11:33:12]Sock 8.Thread stoped [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:30]OFD Sender: No OFD packet to send [11:33:33]accept exits with 9 [11:33:33]New connection [11:33:33]New thread 3067313508 created [11:33:33]Thread 3067456868 joined [11:33:33]Waiting for new connection... [11:33:33] Sock 9.Parse request [11:33:33]Sock 9.Check first char [11:33:33]Sock 9.First char is OK [11:33:33]request: POST /json_proto HTTP/1.0 [11:33:33]Method: POST [11:33:33]URL: /json_proto [11:33:33]Method is POST - this is cgi request [11:33:33]url: /json_proto [11:33:33]query_string will be loaded in cgi processing [11:33:33]execute_cgi json_proto POST (null) [11:33:33]execute_cgi path=json_proto method=POST [11:33:33]POST find Content-Length [11:33:33]Host: 172.17.50.3:8080 [11:33:33]Content-Length: 767 [11:33:33]Content-Type: application/json [11:33:33] [11:33:33]POST finish read [11:33:33]Found Content-Length = 767 [11:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:33]execute_script... [11:33:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:33]POST & json_proto [11:33:33]process_json_proto [11:33:33]json parsed OK: [11:33:33]protocol is kg_v1.0 [11:33:33]action value=close_receipt [11:33:33]process_action close_receipt [11:33:33]cmd_close_receipt [11:33:33]MH_GetDate [11:33:33]Write to MH i2c: F0 00 00 65 35 89 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: F0 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: F0 09 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: F0 09 00 65 35 00 10 3C 16 67 6B 98 1E 66 E2 [11:33:33]GetLastDocTimeStamp 1729510391 [11:33:33]current date 1729510416 [11:33:33]FM_GetShiftState [11:33:33]SAM_PROTO_GetShiftState [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 13 01 00 [11:33:33]Write to MH i2c: E2 08 00 66 35 80 13 01 00 00 00 00 00 18 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0E 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0E 00 66 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 44 [11:33:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:33:33]wFMCommunicate OK [11:33:33]SAM_PROTO_GetShiftState done [11:33:33]FM_GetShiftState done [11:33:33]opened in 1729469703 [11:33:33]opened+sec_in_day 1729556103 [11:33:33]quantity*price = 50010 [11:33:33]sum+1 = 50012 [11:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 175 21.10.2024 11:33 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69785 ФПД: 274727186393219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69785&fm=274727186393219&tin=02508201610067®Number=0000000000156251&sum=50011 [11:33:34]StoreToDocumentArchive [11:33:34]shift 194 fd 69785 [11:33:34]save to /storage/0194/doc_00069785 [11:33:34]save last doc name /storage/0194/doc_00069785 to /storage/kkm_last_doc_name [11:33:34]save OK [11:33:34]Clear old archive folders... [11:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:34]tlvbuf is 00C8B750 [11:33:34]SAM_PROTO_ClearQueue [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 09 00 00 [11:33:34]Write to MH i2c: E2 08 00 73 35 80 09 00 00 00 00 00 00 1A [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [11:33:34]RAPDU: 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_ClearQueue done [11:33:34]KKMCreateOFDPacket [11:33:34]OFDProtocolAddRootSTLVToBuf [11:33:34]FM_MakeSignedData [11:33:34]FM_MakeSignedData [11:33:34]SAM_PROTO_SignData [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 0D 01 02 [11:33:34]Write to MH i2c: E2 08 00 74 35 80 0D 01 02 00 00 00 00 22 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 74 35 00 90 00 1D [11:33:34]RAPDU: 90 00 [11:33:34]wFMCommunicate OK [11:33:34]wFMCommunicate request_size=255 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 10 01 00 35 04 06 00 F9 [11:33:34]Write to MH i2c: E2 02 01 75 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 10 01 00 35 04 06 00 F9 00 00 76 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [11:33:34]RAPDU: 90 00 [11:33:34]wFMCommunicate OK [11:33:34]wFMCommunicate request_size=10 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 0D 02 02 05 DC E8 5A E8 83 [11:33:34]Write to MH i2c: E2 0D 00 76 35 80 0D 02 02 05 00 DC E8 5A E8 83 00 00 B8 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [11:33:35]RAPDU: 90 00 [11:33:35]wFMCommunicate OK [11:33:35]wFMCommunicate request_size=4 [11:33:35]MH_SAM_APDU [11:33:35]CAPDU: 80 0D 03 02 [11:33:35]Write to MH i2c: E2 08 00 77 35 80 0D 03 02 00 00 00 00 27 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 0B 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 0B 00 77 35 00 F1 26 80 43 46 E0 60 BF 90 00 47 [11:33:35]RAPDU: F1 26 80 43 46 E0 60 BF 90 00 [11:33:35]wFMCommunicate OK [11:33:35]SAM_PROTO_SignData done [11:33:35]FM_MakeSignedData done [11:33:35]CreateOFDProtocolMessage [11:33:35]wFMCommunicate request_size=4 [11:33:35]MH_SAM_APDU [11:33:35]CAPDU: 80 11 00 00 [11:33:35]Write to MH i2c: E2 08 00 78 35 80 11 00 00 00 00 00 00 27 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 17 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 17 00 78 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [11:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:33:35]wFMCommunicate OK [11:33:35]CreateOFDProtocolMessage done [11:33:35]OFDSenderStorePacket 69785 [11:33:35]StoreOFDPacket docnum=69785 [11:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 02 07 01 73 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 10 01 00 35 04 06 00 F9 DC E8 5A E8 83 F1 26 80 43 46 E0 60 BF [11:33:35]CheckFolder [11:33:35]dirname=/storage/ofd_packets [11:33:35]CheckFolder done [11:33:35]ProducePacketName [11:33:35]name=ofd_packets/00069785 [11:33:35]NVStorageSaveData ofd_packets/00069785 [11:33:35]File name is /storage/ofd_packets/00069785 [11:33:35]Write 301 bytes [11:33:35]NVStorageSaveData done [11:33:35]OFDSenderStorePacket done [11:33:35]KKMCreateOFDPacket done [11:33:35]NVStorageSaveData kkm_last_timestamp [11:33:35]File name is /storage/kkm_last_timestamp [11:33:35]Write 4 bytes [11:33:35]NVStorageSaveData done [11:33:35]ExternCall_PrintAddStr [11:33:35]wPrintStart [11:33:35]Write to MH i2c: 01 00 00 79 35 AE [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 79 35 00 00 00 00 00 FF 0F C3 [11:33:35]RasterBufferAndPrint [11:33:35]line Счет N : (1)2885526 [11:33:35]line ИНН: 02508201610067 [11:33:35]line Контрольно-Кассовый Чек [11:33:35]line ПРОДАЖА [11:33:35]line ТРК (МРК, ГНК) : 23 [11:33:35]line Товар: 2710124500 [11:33:35]line Аи-95-К-5 [11:33:35]line 6.740 * 74.20 [11:33:35]line = 500.11 [11:33:35]line НДС 12% НСП 1% [11:33:35]line > о реализуемом товаре [11:33:35]line ИТОГО: 500.11 [11:33:35]line НСП 1% : 4.43 [11:33:35]line НДС 12% : 53.11 [11:33:35]line Наличными: 0.00 [11:33:35]line Безнал.: 500.11 [11:33:35]line Место: АЗС № 85 "Партнер Нефть" [11:33:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:33:35]line СНО: Общий режим [11:33:35]line Чек 175 21.10.2024 11:33 [11:33:35]line Смена: 194 ФФД: 1.0 [11:33:35]line ЗНМ: 0300000167 [11:33:35]line РНМ: 0000000000156251 [11:33:35]line Версия ККМ: v1.0 [11:33:35]line Платежная система: Mbank [11:33:35]line ФМ: 0000000000963346 [11:33:35]line ФД: 69785 [11:33:35]line ФПД: 274727186393219 [11:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69785&fm=274727186393219&tin=02508201610067®Number=0000000000156251&sum=50011 [11:33:35]OFD Sender: Processing packet 69785 [packets to send 18, broken 17] [11:33:35]ProducePacketName [11:33:35]name=ofd_packets/00069785 [11:33:35]OFD Sender: To server: pG, [11:33:35]CommunicateWithHost lk.salyk.kg:30040 [11:33:35]ConnectInit lk.salyk.kg [11:33:35]written 0, free lines is 4095 [11:33:35]Connected sock=10 [11:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 02 07 01 73 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 10 01 00 35 04 06 00 F9 DC E8 5A E8 83 F1 26 80 43 46 E0 60 BF [11:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6E C5 47 00 42 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 10 01 00 F4 03 04 00 B4 E5 15 67 B6 04 01 00 00 28 FC 0E 7C DB 2F 3C 8C [11:33:35]CommunicateWithHost err = 0 [11:33:35]CheckOFDResponse [11:33:35]1017 (14) - 77093643461234 [11:33:35]1041 (16) - 0000000000963346 [11:33:35]1040 (4) - 69785 [11:33:35]1012 (4) - 21.10.2024 05:25 [11:33:35]1206 (1) - 0 [11:33:35]OFD Sender: Remove packet 69785 [11:33:35]ProducePacketName [11:33:35]name=ofd_packets/00069785 [11:33:35]NVStorageDeleteData [11:33:35]Write to MH i2c: 01 00 00 A2 35 D7 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 A2 35 00 00 00 00 00 11 0D FC [11:33:35]RasterBufferAndPrint [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]written 0, free lines is 3351 [11:33:35]MH_Cut [11:33:35]Write to MH i2c: D1 01 00 A9 35 01 B0 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 01 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 01 00 A9 35 00 AF [11:33:35]Write to MH i2c: 01 00 00 AA 35 DF [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:36]OFD Sender: No OFD packet to send [11:33:36]*** Cut start [11:33:36]*** Partial cut [11:33:36]*** CUTSNS_PIN = 1 [11:33:36]*** CUTSNS_PIN = 0 [11:33:36]*** Brake cut motor [11:33:37]Read from MH i2c: 01 [11:33:37]MH_I2C_Read... [11:33:37]*** Stop cut motor [11:33:37]*** Cut end [11:33:37]Read from MH i2c: 01 07 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 AA 35 00 00 00 00 00 FF 0F F4 [11:33:37]process_action close_receipt done [11:33:37]requested_data is exist [11:33:37]produce_requested_data [11:33:37]requested_item fm.sn is exist - process it [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 11 00 00 [11:33:37]Write to MH i2c: E2 08 00 AB 35 80 11 00 00 00 00 00 00 5A [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 AB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [11:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:33:37]wFMCommunicate OK [11:33:37]requested_item fd.num is exist - process it [11:33:37]SAM_PROTO_GetFieldsCounters [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 13 00 00 [11:33:37]Write to MH i2c: E2 08 00 AC 35 80 13 00 00 00 00 00 00 5D [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 62 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 62 00 AC 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [11:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_GetFieldsCounters done [11:33:37]requested_item shift.num is exist - process it [11:33:37]requested_item shift.opened is exist - process it [11:33:37]req_shift_opened [11:33:37]FM_GetShiftState [11:33:37]SAM_PROTO_GetShiftState [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 13 01 00 [11:33:37]Write to MH i2c: E2 08 00 AD 35 80 13 01 00 00 00 00 00 5F [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0E 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0E 00 AD 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [11:33:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_GetShiftState done [11:33:37]FM_GetShiftState done [11:33:37]req_shift_opened done [11:33:37]requested_item shift.open_date is exist - process it [11:33:37]req_shift_open_date [11:33:37]req_shift_open_date done [11:33:37]produce_requested_data done [11:33:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69785,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:33:37]process_action_free close_receipt [11:33:37]json_value_free [11:33:37]json_value_free done [11:33:37]process_json_proto returns [11:33:37]Send response to host [11:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69785,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:33:37]free response buf [11:33:37]execute_script done [11:33:37]execute_script returns [11:33:37]free content buf [11:33:37]Sock 9.Close socket [11:33:37]Sock 9.Thread stoped [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:33:57]accept exits with 8 [11:33:57]New connection [11:33:57]New thread 3067456868 created [11:33:57]Thread 3067313508 joined [11:33:57]Waiting for new connection... [11:33:57] Sock 8.Parse request [11:33:57]Sock 8.Check first char [11:33:57]Sock 8.First char is OK [11:33:57]request: POST /json_proto HTTP/1.0 [11:33:57]Method: POST [11:33:57]URL: /json_proto [11:33:57]Method is POST - this is cgi request [11:33:57]url: /json_proto [11:33:57]query_string will be loaded in cgi processing [11:33:57]execute_cgi json_proto POST (null) [11:33:57]execute_cgi path=json_proto method=POST [11:33:57]POST find Content-Length [11:33:57]Host: 172.17.50.3:8080 [11:33:57]Content-Length: 678 [11:33:57]Content-Type: application/json [11:33:57] [11:33:57]POST finish read [11:33:57]Found Content-Length = 678 [11:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [11:33:57]execute_script... [11:33: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)2885527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [11:33:57]POST & json_proto [11:33:57]process_json_proto [11:33:57]json parsed OK: [11:33:57]protocol is kg_v1.0 [11:33:57]action value=close_receipt [11:33:57]process_action close_receipt [11:33:57]cmd_close_receipt [11:33:57]MH_GetDate [11:33:57]Write to MH i2c: F0 00 00 AE 35 D2 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: F0 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: F0 09 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: F0 09 00 AE 35 00 28 3C 16 67 6B 98 1E 66 43 [11:33:57]GetLastDocTimeStamp 1729510416 [11:33:57]current date 1729510440 [11:33:57]FM_GetShiftState [11:33:57]SAM_PROTO_GetShiftState [11:33:57]wFMCommunicate request_size=4 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 13 01 00 [11:33:57]Write to MH i2c: E2 08 00 AF 35 80 13 01 00 00 00 00 00 61 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 0E 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 0E 00 AF 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [11:33:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:33:57]wFMCommunicate OK [11:33:57]SAM_PROTO_GetShiftState done [11:33:57]FM_GetShiftState done [11:33:57]opened in 1729469703 [11:33:57]opened+sec_in_day 1729556103 [11:33:57]quantity*price = 60027 [11:33:57]sum+1 = 60029 [11:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 176 21.10.2024 11:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69786 ФПД: 271306681273933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69786&fm=271306681273933&tin=02508201610067®Number=0000000000156251&sum=60000 [11:33:58]StoreToDocumentArchive [11:33:58]shift 194 fd 69786 [11:33:58]save to /storage/0194/doc_00069786 [11:33:58]save last doc name /storage/0194/doc_00069786 to /storage/kkm_last_doc_name [11:33:58]save OK [11:33:58]Clear old archive folders... [11:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:58]tlvbuf is 00D094D0 [11:33:58]SAM_PROTO_ClearQueue [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 09 00 00 [11:33:58]Write to MH i2c: E2 08 00 BC 35 80 09 00 00 00 00 00 00 63 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 BC 35 00 90 00 65 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_ClearQueue done [11:33:58]KKMCreateOFDPacket [11:33:58]OFDProtocolAddRootSTLVToBuf [11:33:58]FM_MakeSignedData [11:33:58]FM_MakeSignedData [11:33:58]SAM_PROTO_SignData [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 01 02 [11:33:58]Write to MH i2c: E2 08 00 BD 35 80 0D 01 02 00 00 00 00 6B [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 BD 35 00 90 00 66 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=255 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B0 00 00 00 F4 03 04 00 28 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 10 01 00 35 04 06 00 F6 [11:33:58]Write to MH i2c: E2 02 01 BE 35 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B0 00 00 00 F4 03 04 00 28 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 10 01 00 35 04 06 00 F6 00 00 46 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 BE 35 00 90 00 67 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=10 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 02 02 05 C0 82 5C CE 4D [11:33:58]Write to MH i2c: E2 0D 00 BF 35 80 0D 02 02 05 00 C0 82 5C CE 4D 00 00 31 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 03 00 BF 35 00 90 00 68 [11:33:58]RAPDU: 90 00 [11:33:58]wFMCommunicate OK [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 0D 03 02 [11:33:58]Write to MH i2c: E2 08 00 C0 35 80 0D 03 02 00 00 00 00 70 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0B 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0B 00 C0 35 00 21 E6 63 B3 12 96 A7 3F 90 00 1C [11:33:59]RAPDU: 21 E6 63 B3 12 96 A7 3F 90 00 [11:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_SignData done [11:33:59]FM_MakeSignedData done [11:33:59]CreateOFDProtocolMessage [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 11 00 00 [11:33:59]Write to MH i2c: E2 08 00 C1 35 80 11 00 00 00 00 00 00 70 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 C1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [11:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:33:59]wFMCommunicate OK [11:33:59]CreateOFDProtocolMessage done [11:33:59]OFDSenderStorePacket 69786 [11:33:59]StoreOFDPacket docnum=69786 [11:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 68 BB 07 01 69 82 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B0 00 00 00 F4 03 04 00 28 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 10 01 00 35 04 06 00 F6 C0 82 5C CE 4D 21 E6 63 B3 12 96 A7 3F [11:33:59]CheckFolder [11:33:59]dirname=/storage/ofd_packets [11:33:59]CheckFolder done [11:33:59]ProducePacketName [11:33:59]name=ofd_packets/00069786 [11:33:59]NVStorageSaveData ofd_packets/00069786 [11:33:59]File name is /storage/ofd_packets/00069786 [11:33:59]Write 301 bytes [11:33:59]NVStorageSaveData done [11:33:59]OFDSenderStorePacket done [11:33:59]KKMCreateOFDPacket done [11:33:59]NVStorageSaveData kkm_last_timestamp [11:33:59]File name is /storage/kkm_last_timestamp [11:33:59]Write 4 bytes [11:33:59]NVStorageSaveData done [11:33:59]ExternCall_PrintAddStr [11:33:59]wPrintStart [11:33:59]Write to MH i2c: 01 00 00 C2 35 F7 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 C2 35 00 00 00 00 00 FF 0F 0C [11:33:59]RasterBufferAndPrint [11:33:59]line Счет N : (1)2885527 [11:33:59]line ИНН: 02508201610067 [11:33:59]line Контрольно-Кассовый Чек [11:33:59]line ПРОДАЖА [11:33:59]line ТРК (МРК, ГНК) : 13 [11:33:59]line Товар: 2710124500 [11:33:59]line Аи-95-К-5 [11:33:59]line 8.090 * 74.20 [11:33:59]line = 600.28 [11:33:59]line НДС 12% НСП 1% [11:33:59]line > о реализуемом товаре [11:33:59]line ОКРУГЛЕНИЕ: -0.28 [11:33:59]line ИТОГО: 600.00 [11:33:59]line Внесено: 600.00 [11:33:59]line СДАЧА: 0.00 [11:33:59]line НСП 1% : 5.31 [11:33:59]line НДС 12% : 63.75 [11:33:59]line Наличными: 600.00 [11:33:59]line Безнал.: 0.00 [11:33:59]line Место: АЗС № 85 "Партнер Нефть" [11:33:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:33:59]line СНО: Общий режим [11:33:59]line Чек 176 21.10.2024 11:34 [11:33:59]line Смена: 194 ФФД: 1.0 [11:33:59]line ЗНМ: 0300000167 [11:33:59]line РНМ: 0000000000156251 [11:33:59]line Версия ККМ: v1.0 [11:33:59]line ФМ: 0000000000963346 [11:33:59]line ФД: 69786 [11:33:59]line ФПД: 271306681273933 [11:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69786&fm=271306681273933&tin=02508201610067®Number=0000000000156251&sum=60000 [11:33:59]OFD Sender: Processing packet 69786 [packets to send 18, broken 17] [11:33:59]ProducePacketName [11:33:59]name=ofd_packets/00069786 [11:33:59]OFD Sender: To server: pG, [11:33:59]CommunicateWithHost lk.salyk.kg:30040 [11:33:59]ConnectInit lk.salyk.kg [11:33:59]written 0, free lines is 4095 [11:33:59]Connected sock=11 [11:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 68 BB 07 01 69 82 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B0 00 00 00 F4 03 04 00 28 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 10 01 00 35 04 06 00 F6 C0 82 5C CE 4D 21 E6 63 B3 12 96 A7 3F [11:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1A 95 47 00 75 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 10 01 00 F4 03 04 00 CC E5 15 67 B6 04 01 00 00 3F 01 E6 75 8B BF 6C D0 [11:33:59]CommunicateWithHost err = 0 [11:33:59]CheckOFDResponse [11:33:59]1017 (14) - 77093643461234 [11:33:59]1041 (16) - 0000000000963346 [11:33:59]1040 (4) - 69786 [11:33:59]1012 (4) - 21.10.2024 05:25 [11:33:59]1206 (1) - 0 [11:33:59]OFD Sender: Remove packet 69786 [11:33:59]ProducePacketName [11:33:59]name=ofd_packets/00069786 [11:33:59]NVStorageDeleteData [11:33:59]Write to MH i2c: 01 00 00 ED 35 22 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 ED 35 00 00 00 00 00 F4 0C 29 [11:33:59]RasterBufferAndPrint [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]line [11:33:59]written 0, free lines is 3322 [11:33:59]MH_Cut [11:33:59]Write to MH i2c: D1 01 00 F4 35 01 FB [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 01 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: D1 01 00 F4 35 00 FA [11:33:59]Write to MH i2c: 01 00 00 F5 35 2A [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:34:00]OFD Sender: No OFD packet to send [11:34:00]*** Cut start [11:34:00]*** Partial cut [11:34:00]*** CUTSNS_PIN = 1 [11:34:00]*** CUTSNS_PIN = 0 [11:34:00]*** Brake cut motor [11:34:01]Read from MH i2c: 01 [11:34:01]MH_I2C_Read... [11:34:01]*** Stop cut motor [11:34:01]*** Cut end [11:34:01]Read from MH i2c: 01 07 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: 01 07 00 F5 35 00 00 00 00 00 FF 0F 3F [11:34:01]process_action close_receipt done [11:34:01]requested_data is exist [11:34:01]produce_requested_data [11:34:01]requested_item fm.sn is exist - process it [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 11 00 00 [11:34:01]Write to MH i2c: E2 08 00 F6 35 80 11 00 00 00 00 00 00 A5 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 17 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 17 00 F6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [11:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:34:01]wFMCommunicate OK [11:34:01]requested_item fd.num is exist - process it [11:34:01]SAM_PROTO_GetFieldsCounters [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 13 00 00 [11:34:01]Write to MH i2c: E2 08 00 F7 35 80 13 00 00 00 00 00 00 A8 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 62 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 62 00 F7 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_GetFieldsCounters done [11:34:01]requested_item shift.num is exist - process it [11:34:01]requested_item shift.opened is exist - process it [11:34:01]req_shift_opened [11:34:01]FM_GetShiftState [11:34:01]SAM_PROTO_GetShiftState [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 13 01 00 [11:34:01]Write to MH i2c: E2 08 00 F8 35 80 13 01 00 00 00 00 00 AA [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0E 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0E 00 F8 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D6 [11:34:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_GetShiftState done [11:34:01]FM_GetShiftState done [11:34:01]req_shift_opened done [11:34:01]requested_item shift.open_date is exist - process it [11:34:01]req_shift_open_date [11:34:01]req_shift_open_date done [11:34:01]produce_requested_data done [11:34:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69786,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:34:01]process_action_free close_receipt [11:34:01]json_value_free [11:34:01]json_value_free done [11:34:01]process_json_proto returns [11:34:01]Send response to host [11:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69786,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:34:01]free response buf [11:34:01]execute_script done [11:34:01]execute_script returns [11:34:01]free content buf [11:34:01]Sock 8.Close socket [11:34:01]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [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:08]accept exits with 9 [11:35:08]New connection [11:35:08]New thread 3067313508 created [11:35:08]Thread 3067456868 joined [11:35:08]Waiting for new connection... [11:35:08] Sock 9.Parse request [11:35:08]Sock 9.Check first char [11:35:08]Sock 9.First char is OK [11:35:08]request: POST /json_proto HTTP/1.0 [11:35:08]Method: POST [11:35:08]URL: /json_proto [11:35:08]Method is POST - this is cgi request [11:35:08]url: /json_proto [11:35:08]query_string will be loaded in cgi processing [11:35:08]execute_cgi json_proto POST (null) [11:35:08]execute_cgi path=json_proto method=POST [11:35:08]POST find Content-Length [11:35:08]Host: 172.17.50.3:8080 [11:35:08]Content-Length: 678 [11:35:08]Content-Type: application/json [11:35:08] [11:35:08]POST finish read [11:35:08]Found Content-Length = 678 [11:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:08]execute_script... [11:35: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)2885529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:08]POST & json_proto [11:35:08]process_json_proto [11:35:08]json parsed OK: [11:35:08]protocol is kg_v1.0 [11:35:08]action value=close_receipt [11:35:08]process_action close_receipt [11:35:08]cmd_close_receipt [11:35:08]MH_GetDate [11:35:08]Write to MH i2c: F0 00 00 F9 35 1D [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 09 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: F0 09 00 F9 35 00 6F 3C 16 67 6B 98 1E 66 D5 [11:35:08]GetLastDocTimeStamp 1729510440 [11:35:08]current date 1729510511 [11:35:08]FM_GetShiftState [11:35:08]SAM_PROTO_GetShiftState [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 13 01 00 [11:35:08]Write to MH i2c: E2 08 00 FA 35 80 13 01 00 00 00 00 00 AC [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0E 00 FA 35 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D8 [11:35:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_GetShiftState done [11:35:08]FM_GetShiftState done [11:35:08]opened in 1729469703 [11:35:08]opened+sec_in_day 1729556103 [11:35:08]quantity*price = 20003 [11:35:08]sum+1 = 20004 [11:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 177 21.10.2024 11:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69787 ФПД: 243054424281394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69787&fm=243054424281394&tin=02508201610067®Number=0000000000156251&sum=20000 [11:35:09]StoreToDocumentArchive [11:35:09]shift 194 fd 69787 [11:35:09]save to /storage/0194/doc_00069787 [11:35:09]save last doc name /storage/0194/doc_00069787 to /storage/kkm_last_doc_name [11:35:09]save OK [11:35:09]Clear old archive folders... [11:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:09]tlvbuf is 00C40FB0 [11:35:09]SAM_PROTO_ClearQueue [11:35:09]wFMCommunicate request_size=4 [11:35:09]MH_SAM_APDU [11:35:09]CAPDU: 80 09 00 00 [11:35:09]Write to MH i2c: E2 08 00 07 36 80 09 00 00 00 00 00 00 AF [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:09]Read from MH i2c: E2 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 07 36 00 90 00 B1 [11:35:09]RAPDU: 90 00 [11:35:09]wFMCommunicate OK [11:35:09]SAM_PROTO_ClearQueue done [11:35:09]KKMCreateOFDPacket [11:35:09]OFDProtocolAddRootSTLVToBuf [11:35:09]FM_MakeSignedData [11:35:09]FM_MakeSignedData [11:35:09]SAM_PROTO_SignData [11:35:09]wFMCommunicate request_size=4 [11:35:09]MH_SAM_APDU [11:35:09]CAPDU: 80 0D 01 02 [11:35:09]Write to MH i2c: E2 08 00 08 36 80 0D 01 02 00 00 00 00 B7 [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:09]Read from MH i2c: E2 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 08 36 00 90 00 B2 [11:35:09]RAPDU: 90 00 [11:35:09]wFMCommunicate OK [11:35:09]wFMCommunicate request_size=255 [11:35:09]MH_SAM_APDU [11:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6F 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 10 01 00 35 04 06 00 DD [11:35:09]Write to MH i2c: E2 02 01 09 36 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6F 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 10 01 00 35 04 06 00 DD 00 00 26 [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:09]Read from MH i2c: E2 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 09 36 00 90 00 B3 [11:35:09]RAPDU: 90 00 [11:35:09]wFMCommunicate OK [11:35:09]wFMCommunicate request_size=10 [11:35:09]MH_SAM_APDU [11:35:09]CAPDU: 80 0D 02 02 05 0E 84 9E D1 32 [11:35:09]Write to MH i2c: E2 0D 00 0A 36 80 0D 02 02 05 00 0E 84 9E D1 32 00 00 F7 [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:09]Read from MH i2c: E2 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [11:35:09]RAPDU: 90 00 [11:35:09]wFMCommunicate OK [11:35:09]wFMCommunicate request_size=4 [11:35:09]MH_SAM_APDU [11:35:09]CAPDU: 80 0D 03 02 [11:35:09]Write to MH i2c: E2 08 00 0B 36 80 0D 03 02 00 00 00 00 BC [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:09]Read from MH i2c: E2 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 0B 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: E2 0B 00 0B 36 00 66 CF 22 B5 21 5C 7C AF 90 00 71 [11:35:09]RAPDU: 66 CF 22 B5 21 5C 7C AF 90 00 [11:35:09]wFMCommunicate OK [11:35:09]SAM_PROTO_SignData done [11:35:09]FM_MakeSignedData done [11:35:10]CreateOFDProtocolMessage [11:35:10]wFMCommunicate request_size=4 [11:35:10]MH_SAM_APDU [11:35:10]CAPDU: 80 11 00 00 [11:35:10]Write to MH i2c: E2 08 00 0C 36 80 11 00 00 00 00 00 00 BC [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:10]Read from MH i2c: E2 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 17 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: E2 17 00 0C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [11:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:10]wFMCommunicate OK [11:35:10]CreateOFDProtocolMessage done [11:35:10]OFDSenderStorePacket 69787 [11:35:10]StoreOFDPacket docnum=69787 [11:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 11 07 01 85 3F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6F 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 10 01 00 35 04 06 00 DD 0E 84 9E D1 32 66 CF 22 B5 21 5C 7C AF [11:35:10]CheckFolder [11:35:10]dirname=/storage/ofd_packets [11:35:10]CheckFolder done [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00069787 [11:35:10]NVStorageSaveData ofd_packets/00069787 [11:35:10]File name is /storage/ofd_packets/00069787 [11:35:10]Write 301 bytes [11:35:10]NVStorageSaveData done [11:35:10]OFDSenderStorePacket done [11:35:10]KKMCreateOFDPacket done [11:35:10]NVStorageSaveData kkm_last_timestamp [11:35:10]File name is /storage/kkm_last_timestamp [11:35:10]Write 4 bytes [11:35:10]NVStorageSaveData done [11:35:10]ExternCall_PrintAddStr [11:35:10]wPrintStart [11:35:10]Write to MH i2c: 01 00 00 0D 36 43 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 0D 36 00 00 00 00 00 FF 0F 58 [11:35:10]RasterBufferAndPrint [11:35:10]line Счет N : (1)2885529 [11:35:10]line ИНН: 02508201610067 [11:35:10]line Контрольно-Кассовый Чек [11:35:10]line ПРОДАЖА [11:35:10]line ТРК (МРК, ГНК) : 22 [11:35:10]line Товар: 2710124130 [11:35:10]line Аи-92-К-5 [11:35:10]line 2.990 * 66.90 [11:35:10]line = 200.03 [11:35:10]line НДС 12% НСП 1% [11:35:10]line > о реализуемом товаре [11:35:10]line ОКРУГЛЕНИЕ: -0.03 [11:35:10]line ИТОГО: 200.00 [11:35:10]line Внесено: 200.00 [11:35:10]line СДАЧА: 0.00 [11:35:10]line НСП 1% : 1.77 [11:35:10]line НДС 12% : 21.24 [11:35:10]line Наличными: 200.00 [11:35:10]line Безнал.: 0.00 [11:35:10]line Место: АЗС № 85 "Партнер Нефть" [11:35:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:35:10]line СНО: Общий режим [11:35:10]line Чек 177 21.10.2024 11:35 [11:35:10]line Смена: 194 ФФД: 1.0 [11:35:10]line ЗНМ: 0300000167 [11:35:10]line РНМ: 0000000000156251 [11:35:10]line Версия ККМ: v1.0 [11:35:10]line ФМ: 0000000000963346 [11:35:10]line ФД: 69787 [11:35:10]line ФПД: 243054424281394 [11:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69787&fm=243054424281394&tin=02508201610067®Number=0000000000156251&sum=20000 [11:35:10]OFD Sender: Processing packet 69787 [packets to send 18, broken 17] [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00069787 [11:35:10]OFD Sender: To server: pG, [11:35:10]CommunicateWithHost lk.salyk.kg:30040 [11:35:10]ConnectInit lk.salyk.kg [11:35:10]written 0, free lines is 4095 [11:35:10]Connected sock=8 [11:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 11 07 01 85 3F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6F 3C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 10 01 00 35 04 06 00 DD 0E 84 9E D1 32 66 CF 22 B5 21 5C 7C AF [11:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 52 95 47 00 1A 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 39 36 33 33 34 36 10 04 04 00 9B 10 01 00 F4 03 04 00 13 E6 15 67 B6 04 01 00 00 0F BF 03 5B BB D2 9A C5 [11:35:10]CommunicateWithHost err = 0 [11:35:10]CheckOFDResponse [11:35:10]1017 (14) - 77093643461234 [11:35:10]1041 (16) - 0000000000963346 [11:35:10]1040 (4) - 69787 [11:35:10]1012 (4) - 21.10.2024 05:26 [11:35:10]1206 (1) - 0 [11:35:10]OFD Sender: Remove packet 69787 [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00069787 [11:35:10]NVStorageDeleteData [11:35:10]Write to MH i2c: 01 00 00 38 36 6E [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: 01 07 00 38 36 00 00 00 00 00 F0 0C 71 [11:35:10]RasterBufferAndPrint [11:35:10]line [11:35:10]line [11:35:10]line [11:35:10]line [11:35:10]line [11:35:10]written 0, free lines is 3318 [11:35:10]MH_Cut [11:35:10]Write to MH i2c: D1 01 00 3F 36 01 47 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: D1 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: D1 01 00 [11:35:10]MH_I2C_Read... [11:35:10]Read from MH i2c: D1 01 00 3F 36 00 46 [11:35:10]Write to MH i2c: 01 00 00 40 36 76 [11:35:10]Write i2c OK [11:35:10]MH_I2C_Read... [11:35:11]OFD Sender: No OFD packet to send [11:35:11]*** Cut start [11:35:11]*** Partial cut [11:35:11]*** CUTSNS_PIN = 1 [11:35:11]*** CUTSNS_PIN = 0 [11:35:11]*** Brake cut motor [11:35:12]Read from MH i2c: 01 [11:35:12]MH_I2C_Read... [11:35:12]*** Stop cut motor [11:35:12]*** Cut end [11:35:12]Read from MH i2c: 01 07 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: 01 07 00 40 36 00 00 00 00 00 FF 0F 8B [11:35:12]process_action close_receipt done [11:35:12]requested_data is exist [11:35:12]produce_requested_data [11:35:12]requested_item fm.sn is exist - process it [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 11 00 00 [11:35:12]Write to MH i2c: E2 08 00 41 36 80 11 00 00 00 00 00 00 F1 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 41 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [11:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:12]wFMCommunicate OK [11:35:12]requested_item fd.num is exist - process it [11:35:12]SAM_PROTO_GetFieldsCounters [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 00 00 [11:35:12]Write to MH i2c: E2 08 00 42 36 80 13 00 00 00 00 00 00 F4 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 62 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 62 00 42 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:12]wFMCommunicate OK [11:35:12]SAM_PROTO_GetFieldsCounters done [11:35:12]requested_item shift.num is exist - process it [11:35:12]requested_item shift.opened is exist - process it [11:35:12]req_shift_opened [11:35:12]FM_GetShiftState [11:35:12]SAM_PROTO_GetShiftState [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 01 00 [11:35:12]Write to MH i2c: E2 08 00 43 36 80 13 01 00 00 00 00 00 F6 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 43 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 22 [11:35:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:35:12]wFMCommunicate OK [11:35:12]SAM_PROTO_GetShiftState done [11:35:12]FM_GetShiftState done [11:35:12]req_shift_opened done [11:35:12]requested_item shift.open_date is exist - process it [11:35:12]req_shift_open_date [11:35:12]req_shift_open_date done [11:35:12]produce_requested_data done [11:35:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69787,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:35:12]process_action_free close_receipt [11:35:12]json_value_free [11:35:12]json_value_free done [11:35:12]process_json_proto returns [11:35:12]Send response to host [11:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69787,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:35:12]free response buf [11:35:12]execute_script done [11:35:12]execute_script returns [11:35:12]free content buf [11:35:12]Sock 9.Close socket [11:35:12]Sock 9.Thread stoped [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]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:35]accept exits with 10 [11:37:35]New connection [11:37:35]New thread 3067456868 created [11:37:35]Thread 3067313508 joined [11:37:35]Waiting for new connection... [11:37:35] Sock 10.Parse request [11:37:35]Sock 10.Check first char [11:37:35]Sock 10.First char is OK [11:37:35]request: POST /json_proto HTTP/1.0 [11:37:35]Method: POST [11:37:35]URL: /json_proto [11:37:35]Method is POST - this is cgi request [11:37:35]url: /json_proto [11:37:35]query_string will be loaded in cgi processing [11:37:35]execute_cgi json_proto POST (null) [11:37:35]execute_cgi path=json_proto method=POST [11:37:35]POST find Content-Length [11:37:35]Host: 172.17.50.3:8080 [11:37:35]Content-Length: 776 [11:37:35]Content-Type: application/json [11:37:35] [11:37:35]POST finish read [11:37:35]Found Content-Length = 776 [11:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:35]execute_script... [11:37: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)2885528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:35]POST & json_proto [11:37:35]process_json_proto [11:37:35]json parsed OK: [11:37:35]protocol is kg_v1.0 [11:37:35]action value=close_receipt [11:37:35]process_action close_receipt [11:37:35]cmd_close_receipt [11:37:35]MH_GetDate [11:37:35]Write to MH i2c: F0 00 00 44 36 69 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 09 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 09 00 44 36 00 02 3D 16 67 6B 98 1E 66 B5 [11:37:35]GetLastDocTimeStamp 1729510511 [11:37:35]current date 1729510658 [11:37:35]FM_GetShiftState [11:37:35]SAM_PROTO_GetShiftState [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 01 00 [11:37:35]Write to MH i2c: E2 08 00 45 36 80 13 01 00 00 00 00 00 F8 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 45 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [11:37:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetShiftState done [11:37:35]FM_GetShiftState done [11:37:35]opened in 1729469703 [11:37:35]opened+sec_in_day 1729556103 [11:37:35]quantity*price = 350024 [11:37:35]sum+1 = 350026 [11:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.25 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 0.00 Безнал.: 3500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 178 21.10.2024 11:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69788 ФПД: 27184337789449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113738&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69788&fm=27184337789449&tin=02508201610067®Number=0000000000156251&sum=350025 [11:37:36]StoreToDocumentArchive [11:37:36]shift 194 fd 69788 [11:37:36]save to /storage/0194/doc_00069788 [11:37:36]save last doc name /storage/0194/doc_00069788 to /storage/kkm_last_doc_name [11:37:36]save OK [11:37:36]Clear old archive folders... [11:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:37:36]tlvbuf is 00C2D1A0 [11:37:36]SAM_PROTO_ClearQueue [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 09 00 00 [11:37:36]Write to MH i2c: E2 08 00 52 36 80 09 00 00 00 00 00 00 FA [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 52 36 00 90 00 FC [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_ClearQueue done [11:37:36]KKMCreateOFDPacket [11:37:36]OFDProtocolAddRootSTLVToBuf [11:37:36]FM_MakeSignedData [11:37:36]FM_MakeSignedData [11:37:36]SAM_PROTO_SignData [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 01 02 [11:37:36]Write to MH i2c: E2 08 00 53 36 80 0D 01 02 00 00 00 00 02 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 53 36 00 90 00 FD [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=255 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 02 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 10 01 [11:37:36]Write to MH i2c: E2 02 01 54 36 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 02 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 10 01 00 00 3B [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 54 36 00 90 00 FE [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=16 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 B9 58 CC 22 09 [11:37:36]Write to MH i2c: E2 13 00 55 36 80 0D 02 02 0B 00 00 35 04 06 00 18 B9 58 CC 22 09 00 00 7A [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 55 36 00 90 00 FF [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 03 02 [11:37:36]Write to MH i2c: E2 08 00 56 36 80 0D 03 02 00 00 00 00 07 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0B 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0B 00 56 36 00 5A 5E 5D BE C7 82 26 8E 90 00 D8 [11:37:36]RAPDU: 5A 5E 5D BE C7 82 26 8E 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_SignData done [11:37:36]FM_MakeSignedData done [11:37:36]CreateOFDProtocolMessage [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 11 00 00 [11:37:36]Write to MH i2c: E2 08 00 57 36 80 11 00 00 00 00 00 00 07 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:37]Read from MH i2c: E2 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: E2 17 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: E2 17 00 57 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [11:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:37]wFMCommunicate OK [11:37:37]CreateOFDProtocolMessage done [11:37:37]OFDSenderStorePacket 69788 [11:37:37]StoreOFDPacket docnum=69788 [11:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7E 69 0D 01 C1 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 02 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 10 01 00 35 04 06 00 18 B9 58 CC 22 09 5A 5E 5D BE C7 82 26 8E [11:37:37]CheckFolder [11:37:37]dirname=/storage/ofd_packets [11:37:37]CheckFolder done [11:37:37]ProducePacketName [11:37:37]name=ofd_packets/00069788 [11:37:37]NVStorageSaveData ofd_packets/00069788 [11:37:37]File name is /storage/ofd_packets/00069788 [11:37:37]Write 307 bytes [11:37:37]NVStorageSaveData done [11:37:37]OFDSenderStorePacket done [11:37:37]KKMCreateOFDPacket done [11:37:37]NVStorageSaveData kkm_last_timestamp [11:37:37]File name is /storage/kkm_last_timestamp [11:37:37]Write 4 bytes [11:37:37]NVStorageSaveData done [11:37:37]ExternCall_PrintAddStr [11:37:37]wPrintStart [11:37:37]Write to MH i2c: 01 00 00 58 36 8E [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 58 36 00 00 00 00 00 FF 0F A3 [11:37:37]RasterBufferAndPrint [11:37:37]line Счет N : (1)2885528 [11:37:37]line ИНН: 02508201610067 [11:37:37]line Контрольно-Кассовый Чек [11:37:37]line ПРОДАЖА [11:37:37]line ТРК (МРК, ГНК) : 41 [11:37:37]line Товар: 2710194240 [11:37:37]line D-ENERGY Дт-К-2 [11:37:37]line 45.340 * 77.20 [11:37:37]line = 3500.25 [11:37:37]line НДС 12% НСП 1% [11:37:37]line > о реализуемом товаре [11:37:37]line ИТОГО: 3500.25 [11:37:37]line НСП 1% : 30.98 [11:37:37]line НДС 12% : 371.71 [11:37:37]line Наличными: 0.00 [11:37:37]line Безнал.: 3500.25 [11:37:37]line Место: АЗС № 85 "Партнер Нефть" [11:37:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:37:37]line СНО: Общий режим [11:37:37]line Чек 178 21.10.2024 11:37 [11:37:37]line Смена: 194 ФФД: 1.0 [11:37:37]line ЗНМ: 0300000167 [11:37:37]line РНМ: 0000000000156251 [11:37:37]line Версия ККМ: v1.0 [11:37:37]line Платежная система: Mbank [11:37:37]line ФМ: 0000000000963346 [11:37:37]line ФД: 69788 [11:37:37]line ФПД: 27184337789449 [11:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113738&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69788&fm=27184337789449&tin=02508201610067®Number=0000000000156251&sum=350025 [11:37:37]OFD Sender: Processing packet 69788 [packets to send 18, broken 17] [11:37:37]ProducePacketName [11:37:37]name=ofd_packets/00069788 [11:37:37]OFD Sender: To server: pG, [11:37:37]CommunicateWithHost lk.salyk.kg:30040 [11:37:37]ConnectInit lk.salyk.kg [11:37:37]written 0, free lines is 4095 [11:37:37]Connected sock=9 [11:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7E 69 0D 01 C1 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 02 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 10 01 00 35 04 06 00 18 B9 58 CC 22 09 5A 5E 5D BE C7 82 26 8E [11:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B2 F1 47 00 19 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 10 01 00 F4 03 04 00 A6 E6 15 67 B6 04 01 00 00 A5 A3 77 40 85 0C 38 AB [11:37:37]CommunicateWithHost err = 0 [11:37:37]CheckOFDResponse [11:37:37]1017 (14) - 77093643461234 [11:37:37]1041 (16) - 0000000000963346 [11:37:37]1040 (4) - 69788 [11:37:37]1012 (4) - 21.10.2024 05:29 [11:37:37]1206 (1) - 0 [11:37:37]OFD Sender: Remove packet 69788 [11:37:37]ProducePacketName [11:37:37]name=ofd_packets/00069788 [11:37:37]NVStorageDeleteData [11:37:37]Write to MH i2c: 01 00 00 81 36 B7 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 81 36 00 00 00 00 00 16 0D E1 [11:37:37]RasterBufferAndPrint [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]written 0, free lines is 3358 [11:37:37]MH_Cut [11:37:37]Write to MH i2c: D1 01 00 88 36 01 90 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 01 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 01 00 88 36 00 8F [11:37:37]Write to MH i2c: 01 00 00 89 36 BF [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:38]OFD Sender: No OFD packet to send [11:37:38]*** Cut start [11:37:38]*** Partial cut [11:37:38]*** CUTSNS_PIN = 1 [11:37:38]*** CUTSNS_PIN = 0 [11:37:38]*** Brake cut motor [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]*** Stop cut motor [11:37:39]*** Cut end [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 89 36 00 00 00 00 00 FF 0F D4 [11:37:39]process_action close_receipt done [11:37:39]requested_data is exist [11:37:39]produce_requested_data [11:37:39]requested_item fm.sn is exist - process it [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 11 00 00 [11:37:39]Write to MH i2c: E2 08 00 8A 36 80 11 00 00 00 00 00 00 3A [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 8A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [11:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:39]wFMCommunicate OK [11:37:39]requested_item fd.num is exist - process it [11:37:39]SAM_PROTO_GetFieldsCounters [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 13 00 00 [11:37:39]Write to MH i2c: E2 08 00 8B 36 80 13 00 00 00 00 00 00 3D [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 62 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 62 00 8B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [11:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_GetFieldsCounters done [11:37:39]requested_item shift.num is exist - process it [11:37:39]requested_item shift.opened is exist - process it [11:37:39]req_shift_opened [11:37:39]FM_GetShiftState [11:37:39]SAM_PROTO_GetShiftState [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 13 01 00 [11:37:39]Write to MH i2c: E2 08 00 8C 36 80 13 01 00 00 00 00 00 3F [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0E 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0E 00 8C 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6B [11:37:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_GetShiftState done [11:37:39]FM_GetShiftState done [11:37:39]req_shift_opened done [11:37:39]requested_item shift.open_date is exist - process it [11:37:39]req_shift_open_date [11:37:39]req_shift_open_date done [11:37:39]produce_requested_data done [11:37:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69788,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:37:39]process_action_free close_receipt [11:37:39]json_value_free [11:37:39]json_value_free done [11:37:39]process_json_proto returns [11:37:39]Send response to host [11:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69788,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:37:39]free response buf [11:37:39]execute_script done [11:37:39]execute_script returns [11:37:39]free content buf [11:37:39]Sock 10.Close socket [11:37:39]Sock 10.Thread stoped [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:24]accept exits with 8 [11:41:24]New connection [11:41:24]New thread 3067313508 created [11:41:24]Thread 3067456868 joined [11:41:24]Waiting for new connection... [11:41:24] Sock 8.Parse request [11:41:24]Sock 8.Check first char [11:41:24]Sock 8.First char is OK [11:41:24]request: POST /json_proto HTTP/1.0 [11:41:24]Method: POST [11:41:24]URL: /json_proto [11:41:24]Method is POST - this is cgi request [11:41:24]url: /json_proto [11:41:24]query_string will be loaded in cgi processing [11:41:24]execute_cgi json_proto POST (null) [11:41:24]execute_cgi path=json_proto method=POST [11:41:24]POST find Content-Length [11:41:24]Host: 172.17.50.3:8080 [11:41:24]Content-Length: 680 [11:41:24]Content-Type: application/json [11:41:24] [11:41:24]POST finish read [11:41:24]Found Content-Length = 680 [11:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:24]execute_script... [11:41: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)2885530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.030, "sum" : 1450.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:24]POST & json_proto [11:41:24]process_json_proto [11:41:24]json parsed OK: [11:41:24]protocol is kg_v1.0 [11:41:24]action value=close_receipt [11:41:24]process_action close_receipt [11:41:24]cmd_close_receipt [11:41:24]MH_GetDate [11:41:24]Write to MH i2c: F0 00 00 8D 36 B2 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 09 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: F0 09 00 8D 36 00 E7 3D 16 67 6B 98 1E 66 E3 [11:41:24]GetLastDocTimeStamp 1729510658 [11:41:24]current date 1729510887 [11:41:24]FM_GetShiftState [11:41:24]SAM_PROTO_GetShiftState [11:41:24]wFMCommunicate request_size=4 [11:41:24]MH_SAM_APDU [11:41:24]CAPDU: 80 13 01 00 [11:41:24]Write to MH i2c: E2 08 00 8E 36 80 13 01 00 00 00 00 00 41 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:24]Read from MH i2c: E2 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 8E 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6D [11:41:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:41:24]wFMCommunicate OK [11:41:24]SAM_PROTO_GetShiftState done [11:41:24]FM_GetShiftState done [11:41:24]opened in 1729469703 [11:41:24]opened+sec_in_day 1729556103 [11:41:24]quantity*price = 145008 [11:41:24]sum+1 = 145010 [11:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.83 НДС 12% : 153.99 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 179 21.10.2024 11:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69789 ФПД: 236184422587459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69789&fm=236184422587459&tin=02508201610067®Number=0000000000156251&sum=145000 [11:41:25]StoreToDocumentArchive [11:41:25]shift 194 fd 69789 [11:41:25]save to /storage/0194/doc_00069789 [11:41:25]save last doc name /storage/0194/doc_00069789 to /storage/kkm_last_doc_name [11:41:25]save OK [11:41:25]Clear old archive folders... [11:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:41:25]tlvbuf is B6FD3BD0 [11:41:25]SAM_PROTO_ClearQueue [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 09 00 00 [11:41:25]Write to MH i2c: E2 08 00 9B 36 80 09 00 00 00 00 00 00 43 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 9B 36 00 90 00 45 [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]SAM_PROTO_ClearQueue done [11:41:25]KKMCreateOFDPacket [11:41:25]OFDProtocolAddRootSTLVToBuf [11:41:25]FM_MakeSignedData [11:41:25]FM_MakeSignedData [11:41:25]SAM_PROTO_SignData [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 0D 01 02 [11:41:25]Write to MH i2c: E2 08 00 9C 36 80 0D 01 02 00 00 00 00 4B [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 9C 36 00 90 00 46 [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]wFMCommunicate request_size=255 [11:41:25]MH_SAM_APDU [11:41: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E7 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 10 01 00 35 04 06 00 D6 CE F8 9C [11:41:25]Write to MH i2c: E2 02 01 9D 36 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E7 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 10 01 00 35 04 06 00 D6 CE F8 9C 00 00 73 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 9D 36 00 90 00 47 [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]wFMCommunicate request_size=7 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 0D 02 02 02 1C 43 [11:41:25]Write to MH i2c: E2 0A 00 9E 36 80 0D 02 02 02 00 1C 43 00 00 B1 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 03 00 9E 36 00 90 00 48 [11:41:25]RAPDU: 90 00 [11:41:25]wFMCommunicate OK [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 0D 03 02 [11:41:25]Write to MH i2c: E2 08 00 9F 36 80 0D 03 02 00 00 00 00 50 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 0B 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 0B 00 9F 36 00 85 B5 DA 0C 7A 63 A6 84 90 00 78 [11:41:25]RAPDU: 85 B5 DA 0C 7A 63 A6 84 90 00 [11:41:25]wFMCommunicate OK [11:41:25]SAM_PROTO_SignData done [11:41:25]FM_MakeSignedData done [11:41:25]CreateOFDProtocolMessage [11:41:25]wFMCommunicate request_size=4 [11:41:25]MH_SAM_APDU [11:41:25]CAPDU: 80 11 00 00 [11:41:25]Write to MH i2c: E2 08 00 A0 36 80 11 00 00 00 00 00 00 50 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:25]Read from MH i2c: E2 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 17 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: E2 17 00 A0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [11:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:41:25]wFMCommunicate OK [11:41:25]CreateOFDProtocolMessage done [11:41:25]OFDSenderStorePacket 69789 [11:41:25]StoreOFDPacket docnum=69789 [11:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 76 B8 04 01 B6 DC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E7 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 10 01 00 35 04 06 00 D6 CE F8 9C 1C 43 85 B5 DA 0C 7A 63 A6 84 [11:41:25]CheckFolder [11:41:25]dirname=/storage/ofd_packets [11:41:25]CheckFolder done [11:41:25]ProducePacketName [11:41:25]name=ofd_packets/00069789 [11:41:25]NVStorageSaveData ofd_packets/00069789 [11:41:25]File name is /storage/ofd_packets/00069789 [11:41:25]Write 298 bytes [11:41:25]NVStorageSaveData done [11:41:25]OFDSenderStorePacket done [11:41:25]KKMCreateOFDPacket done [11:41:25]NVStorageSaveData kkm_last_timestamp [11:41:25]File name is /storage/kkm_last_timestamp [11:41:25]Write 4 bytes [11:41:25]NVStorageSaveData done [11:41:25]ExternCall_PrintAddStr [11:41:25]wPrintStart [11:41:25]Write to MH i2c: 01 00 00 A1 36 D7 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 A1 36 00 00 00 00 00 FF 0F EC [11:41:25]RasterBufferAndPrint [11:41:25]line Счет N : (1)2885530 [11:41:25]line ИНН: 02508201610067 [11:41:25]line Контрольно-Кассовый Чек [11:41:25]line ПРОДАЖА [11:41:25]line ТРК (МРК, ГНК) : 51 [11:41:25]line Товар: 2710194210 [11:41:25]line ДТ-К-5 [11:41:25]line 19.030 * 76.20 [11:41:25]line = 1450.09 [11:41:25]line НДС 12% НСП 1% [11:41:25]line > о реализуемом товаре [11:41:25]line ОКРУГЛЕНИЕ: -0.09 [11:41:25]line ИТОГО: 1450.00 [11:41:25]line Внесено: 1450.00 [11:41:25]line СДАЧА: 0.00 [11:41:25]line НСП 1% : 12.83 [11:41:25]line НДС 12% : 153.99 [11:41:25]line Наличными: 1450.00 [11:41:25]line Безнал.: 0.00 [11:41:25]line Место: АЗС № 85 "Партнер Нефть" [11:41:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:41:25]line СНО: Общий режим [11:41:25]line Чек 179 21.10.2024 11:41 [11:41:25]line Смена: 194 ФФД: 1.0 [11:41:25]line ЗНМ: 0300000167 [11:41:25]line РНМ: 0000000000156251 [11:41:25]line Версия ККМ: v1.0 [11:41:25]line ФМ: 0000000000963346 [11:41:25]line ФД: 69789 [11:41:25]line ФПД: 236184422587459 [11:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69789&fm=236184422587459&tin=02508201610067®Number=0000000000156251&sum=145000 [11:41:26]OFD Sender: Processing packet 69789 [packets to send 18, broken 17] [11:41:26]ProducePacketName [11:41:26]name=ofd_packets/00069789 [11:41:26]OFD Sender: To server: pG, [11:41:26]CommunicateWithHost lk.salyk.kg:30040 [11:41:26]ConnectInit lk.salyk.kg [11:41:26]written 0, free lines is 4095 [11:41:26]Connected sock=9 [11:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 76 B8 04 01 B6 DC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E7 3D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 10 01 00 35 04 06 00 D6 CE F8 9C 1C 43 85 B5 DA 0C 7A 63 A6 84 [11:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 25 9A 47 00 94 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 39 36 33 33 34 36 10 04 04 00 9D 10 01 00 F4 03 04 00 8B E7 15 67 B6 04 01 00 00 92 09 AF 0D 78 67 0E 07 [11:41:26]CommunicateWithHost err = 0 [11:41:26]CheckOFDResponse [11:41:26]1017 (14) - 77093643461234 [11:41:26]1041 (16) - 0000000000963346 [11:41:26]1040 (4) - 69789 [11:41:26]1012 (4) - 21.10.2024 05:32 [11:41:26]1206 (1) - 0 [11:41:26]OFD Sender: Remove packet 69789 [11:41:26]ProducePacketName [11:41:26]name=ofd_packets/00069789 [11:41:26]NVStorageDeleteData [11:41:26]Write to MH i2c: 01 00 00 CC 36 02 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 07 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 07 00 CC 36 00 00 00 00 00 F4 0C 09 [11:41:26]RasterBufferAndPrint [11:41:26]line [11:41:26]line [11:41:26]line [11:41:26]line [11:41:26]line [11:41:26]written 0, free lines is 3322 [11:41:26]MH_Cut [11:41:26]Write to MH i2c: D1 01 00 D3 36 01 DB [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: D1 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: D1 01 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: D1 01 00 D3 36 00 DA [11:41:26]Write to MH i2c: 01 00 00 D4 36 0A [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:27]OFD Sender: No OFD packet to send [11:41:27]*** Cut start [11:41:27]*** Partial cut [11:41:27]*** CUTSNS_PIN = 1 [11:41:27]*** CUTSNS_PIN = 0 [11:41:27]*** Brake cut motor [11:41:27]Read from MH i2c: 01 [11:41:28]MH_I2C_Read... [11:41:28]*** Stop cut motor [11:41:28]*** Cut end [11:41:28]Read from MH i2c: 01 07 00 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: 01 07 00 D4 36 00 00 00 00 00 FF 0F 1F [11:41:28]process_action close_receipt done [11:41:28]requested_data is exist [11:41:28]produce_requested_data [11:41:28]requested_item fm.sn is exist - process it [11:41:28]wFMCommunicate request_size=4 [11:41:28]MH_SAM_APDU [11:41:28]CAPDU: 80 11 00 00 [11:41:28]Write to MH i2c: E2 08 00 D5 36 80 11 00 00 00 00 00 00 85 [11:41:28]Write i2c OK [11:41:28]MH_I2C_Read... [11:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:28]Read from MH i2c: E2 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 17 00 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 17 00 D5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [11:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:41:28]wFMCommunicate OK [11:41:28]requested_item fd.num is exist - process it [11:41:28]SAM_PROTO_GetFieldsCounters [11:41:28]wFMCommunicate request_size=4 [11:41:28]MH_SAM_APDU [11:41:28]CAPDU: 80 13 00 00 [11:41:28]Write to MH i2c: E2 08 00 D6 36 80 13 00 00 00 00 00 00 88 [11:41:28]Write i2c OK [11:41:28]MH_I2C_Read... [11:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:28]Read from MH i2c: E2 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 62 00 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 62 00 D6 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [11:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:28]wFMCommunicate OK [11:41:28]SAM_PROTO_GetFieldsCounters done [11:41:28]requested_item shift.num is exist - process it [11:41:28]requested_item shift.opened is exist - process it [11:41:28]req_shift_opened [11:41:28]FM_GetShiftState [11:41:28]SAM_PROTO_GetShiftState [11:41:28]wFMCommunicate request_size=4 [11:41:28]MH_SAM_APDU [11:41:28]CAPDU: 80 13 01 00 [11:41:28]Write to MH i2c: E2 08 00 D7 36 80 13 01 00 00 00 00 00 8A [11:41:28]Write i2c OK [11:41:28]MH_I2C_Read... [11:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:28]Read from MH i2c: E2 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 0E 00 [11:41:28]MH_I2C_Read... [11:41:28]Read from MH i2c: E2 0E 00 D7 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B6 [11:41:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:41:28]wFMCommunicate OK [11:41:28]SAM_PROTO_GetShiftState done [11:41:28]FM_GetShiftState done [11:41:28]req_shift_opened done [11:41:28]requested_item shift.open_date is exist - process it [11:41:28]req_shift_open_date [11:41:28]req_shift_open_date done [11:41:28]produce_requested_data done [11:41:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69789,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:41:28]process_action_free close_receipt [11:41:28]json_value_free [11:41:28]json_value_free done [11:41:28]process_json_proto returns [11:41:28]Send response to host [11:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69789,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:41:28]free response buf [11:41:28]execute_script done [11:41:28]execute_script returns [11:41:28]free content buf [11:41:28]Sock 8.Close socket [11:41:28]Sock 8.Thread stoped [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:07]accept exits with 10 [11:42:07]New connection [11:42:07]New thread 3067456868 created [11:42:07]Thread 3067313508 joined [11:42:07]Waiting for new connection... [11:42:07] Sock 10.Parse request [11:42:07]Sock 10.Check first char [11:42:07]Sock 10.First char is OK [11:42:07]request: POST /json_proto HTTP/1.0 [11:42:07]Method: POST [11:42:07]URL: /json_proto [11:42:07]Method is POST - this is cgi request [11:42:07]url: /json_proto [11:42:07]query_string will be loaded in cgi processing [11:42:07]execute_cgi json_proto POST (null) [11:42:07]execute_cgi path=json_proto method=POST [11:42:07]POST find Content-Length [11:42:07]Host: 172.17.50.3:8080 [11:42:07]Content-Length: 689 [11:42:07]Content-Type: application/json [11:42:07] [11:42:07]POST finish read [11:42:07]Found Content-Length = 689 [11:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:42:07]execute_script... [11:42: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)2885531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:42:07]POST & json_proto [11:42:07]process_json_proto [11:42:07]json parsed OK: [11:42:07]protocol is kg_v1.0 [11:42:07]action value=close_receipt [11:42:07]process_action close_receipt [11:42:07]cmd_close_receipt [11:42:07]MH_GetDate [11:42:07]Write to MH i2c: F0 00 00 D8 36 FD [11:42:07]Write i2c OK [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 09 00 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 09 00 D8 36 00 13 3E 16 67 6B 98 1E 66 5B [11:42:07]GetLastDocTimeStamp 1729510887 [11:42:07]current date 1729510931 [11:42:07]FM_GetShiftState [11:42:07]SAM_PROTO_GetShiftState [11:42:07]wFMCommunicate request_size=4 [11:42:07]MH_SAM_APDU [11:42:07]CAPDU: 80 13 01 00 [11:42:07]Write to MH i2c: E2 08 00 D9 36 80 13 01 00 00 00 00 00 8C [11:42:07]Write i2c OK [11:42:07]MH_I2C_Read... [11:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:07]Read from MH i2c: E2 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: E2 0E 00 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: E2 0E 00 D9 36 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B8 [11:42:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:42:07]wFMCommunicate OK [11:42:07]SAM_PROTO_GetShiftState done [11:42:07]FM_GetShiftState done [11:42:07]opened in 1729469703 [11:42:07]opened+sec_in_day 1729556103 [11:42:07]quantity*price = 100051 [11:42:07]sum+1 = 100052 [11:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 180 21.10.2024 11:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69790 ФПД: 234245245203025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69790&fm=234245245203025&tin=02508201610067®Number=0000000000156251&sum=100000 [11:42:08]StoreToDocumentArchive [11:42:08]shift 194 fd 69790 [11:42:08]save to /storage/0194/doc_00069790 [11:42:08]save last doc name /storage/0194/doc_00069790 to /storage/kkm_last_doc_name [11:42:08]save OK [11:42:08]Clear old archive folders... [11:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:42:08]tlvbuf is 00CCE0F0 [11:42:08]SAM_PROTO_ClearQueue [11:42:08]wFMCommunicate request_size=4 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 09 00 00 [11:42:08]Write to MH i2c: E2 08 00 E6 36 80 09 00 00 00 00 00 00 8E [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:08]Read from MH i2c: E2 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 E6 36 00 90 00 90 [11:42:08]RAPDU: 90 00 [11:42:08]wFMCommunicate OK [11:42:08]SAM_PROTO_ClearQueue done [11:42:08]KKMCreateOFDPacket [11:42:08]OFDProtocolAddRootSTLVToBuf [11:42:08]FM_MakeSignedData [11:42:08]FM_MakeSignedData [11:42:08]SAM_PROTO_SignData [11:42:08]wFMCommunicate request_size=4 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 0D 01 02 [11:42:08]Write to MH i2c: E2 08 00 E7 36 80 0D 01 02 00 00 00 00 96 [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:08]Read from MH i2c: E2 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 E7 36 00 90 00 91 [11:42:08]RAPDU: 90 00 [11:42:08]wFMCommunicate OK [11:42:08]wFMCommunicate request_size=255 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 00 00 00 F4 03 04 00 13 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 10 01 [11:42:08]Write to MH i2c: E2 02 01 E8 36 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 00 00 00 F4 03 04 00 13 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 10 01 00 00 DB [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 E8 36 00 90 00 92 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=16 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D5 0B 78 A1 72 51 [11:42:09]Write to MH i2c: E2 13 00 E9 36 80 0D 02 02 0B 00 00 35 04 06 00 D5 0B 78 A1 72 51 00 00 AA [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 E9 36 00 90 00 93 [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 03 02 [11:42:09]Write to MH i2c: E2 08 00 EA 36 80 0D 03 02 00 00 00 00 9B [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 EA 36 00 99 3A C6 A2 B1 77 B2 06 90 00 B7 [11:42:09]RAPDU: 99 3A C6 A2 B1 77 B2 06 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_SignData done [11:42:09]FM_MakeSignedData done [11:42:09]CreateOFDProtocolMessage [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 11 00 00 [11:42:09]Write to MH i2c: E2 08 00 EB 36 80 11 00 00 00 00 00 00 9B [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 EB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [11:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:09]wFMCommunicate OK [11:42:09]CreateOFDProtocolMessage done [11:42:09]OFDSenderStorePacket 69790 [11:42:09]StoreOFDPacket docnum=69790 [11:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4F 19 0D 01 A8 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 00 00 00 F4 03 04 00 13 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 10 01 00 35 04 06 00 D5 0B 78 A1 72 51 99 3A C6 A2 B1 77 B2 06 [11:42:09]CheckFolder [11:42:09]dirname=/storage/ofd_packets [11:42:09]CheckFolder done [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00069790 [11:42:09]NVStorageSaveData ofd_packets/00069790 [11:42:09]File name is /storage/ofd_packets/00069790 [11:42:09]Write 307 bytes [11:42:09]NVStorageSaveData done [11:42:09]OFDSenderStorePacket done [11:42:09]KKMCreateOFDPacket done [11:42:09]NVStorageSaveData kkm_last_timestamp [11:42:09]File name is /storage/kkm_last_timestamp [11:42:09]Write 4 bytes [11:42:09]NVStorageSaveData done [11:42:09]ExternCall_PrintAddStr [11:42:09]wPrintStart [11:42:09]Write to MH i2c: 01 00 00 EC 36 22 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 EC 36 00 00 00 00 00 FF 0F 37 [11:42:09]RasterBufferAndPrint [11:42:09]line Счет N : (1)2885531 [11:42:09]line ИНН: 02508201610067 [11:42:09]line Контрольно-Кассовый Чек [11:42:09]line ПРОДАЖА [11:42:09]line ТРК (МРК, ГНК) : 31 [11:42:09]line Товар: 2710194240 [11:42:09]line D-ENERGY Дт-К-2 [11:42:09]line 12.960 * 77.20 [11:42:09]line = 1000.51 [11:42:09]line НДС 12% НСП 1% [11:42:09]line > о реализуемом товаре [11:42:09]line ОКРУГЛЕНИЕ: -0.51 [11:42:09]line ИТОГО: 1000.00 [11:42:09]line Внесено: 1000.00 [11:42:09]line СДАЧА: 0.00 [11:42:09]line НСП 1% : 8.85 [11:42:09]line НДС 12% : 106.25 [11:42:09]line Наличными: 1000.00 [11:42:09]line Безнал.: 0.00 [11:42:09]line Место: АЗС № 85 "Партнер Нефть" [11:42:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:42:09]line СНО: Общий режим [11:42:09]line Чек 180 21.10.2024 11:42 [11:42:09]line Смена: 194 ФФД: 1.0 [11:42:09]line ЗНМ: 0300000167 [11:42:09]line РНМ: 0000000000156251 [11:42:09]line Версия ККМ: v1.0 [11:42:09]line ФМ: 0000000000963346 [11:42:09]line ФД: 69790 [11:42:09]line ФПД: 234245245203025 [11:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69790&fm=234245245203025&tin=02508201610067®Number=0000000000156251&sum=100000 [11:42:09]OFD Sender: Processing packet 69790 [packets to send 18, broken 17] [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00069790 [11:42:09]OFD Sender: To server: pG, [11:42:09]CommunicateWithHost lk.salyk.kg:30040 [11:42:09]ConnectInit lk.salyk.kg [11:42:09]written 0, free lines is 4095 [11:42:09]Connected sock=9 [11:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4F 19 0D 01 A8 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 00 00 00 F4 03 04 00 13 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 10 01 00 35 04 06 00 D5 0B 78 A1 72 51 99 3A C6 A2 B1 77 B2 06 [11:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 90 29 47 00 F1 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 39 36 33 33 34 36 10 04 04 00 9E 10 01 00 F4 03 04 00 B7 E7 15 67 B6 04 01 00 00 AE C8 8C 62 60 B3 71 44 [11:42:10]CommunicateWithHost err = 0 [11:42:10]CheckOFDResponse [11:42:10]1017 (14) - 77093643461234 [11:42:10]1041 (16) - 0000000000963346 [11:42:10]1040 (4) - 69790 [11:42:10]1012 (4) - 21.10.2024 05:33 [11:42:10]1206 (1) - 0 [11:42:10]OFD Sender: Remove packet 69790 [11:42:10]ProducePacketName [11:42:10]name=ofd_packets/00069790 [11:42:10]NVStorageDeleteData [11:42:10]Write to MH i2c: 01 00 00 17 37 4E [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 17 37 00 00 00 00 00 F9 0C 5A [11:42:10]RasterBufferAndPrint [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]written 0, free lines is 3330 [11:42:10]MH_Cut [11:42:10]Write to MH i2c: D1 01 00 1E 37 01 27 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 1E 37 00 26 [11:42:10]Write to MH i2c: 01 00 00 1F 37 56 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]OFD Sender: No OFD packet to send [11:42:10]*** Cut start [11:42:10]*** Partial cut [11:42:10]*** CUTSNS_PIN = 1 [11:42:10]*** CUTSNS_PIN = 0 [11:42:11]*** Brake cut motor [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]*** Stop cut motor [11:42:11]*** Cut end [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 1F 37 00 00 00 00 00 FF 0F 6B [11:42:11]process_action close_receipt done [11:42:11]requested_data is exist [11:42:11]produce_requested_data [11:42:11]requested_item fm.sn is exist - process it [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 11 00 00 [11:42:11]Write to MH i2c: E2 08 00 20 37 80 11 00 00 00 00 00 00 D1 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 20 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [11:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:11]wFMCommunicate OK [11:42:11]requested_item fd.num is exist - process it [11:42:11]SAM_PROTO_GetFieldsCounters [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 00 00 [11:42:11]Write to MH i2c: E2 08 00 21 37 80 13 00 00 00 00 00 00 D4 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 62 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 62 00 21 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetFieldsCounters done [11:42:11]requested_item shift.num is exist - process it [11:42:11]requested_item shift.opened is exist - process it [11:42:11]req_shift_opened [11:42:11]FM_GetShiftState [11:42:11]SAM_PROTO_GetShiftState [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 01 00 [11:42:11]Write to MH i2c: E2 08 00 22 37 80 13 01 00 00 00 00 00 D6 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 22 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 02 [11:42:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetShiftState done [11:42:11]FM_GetShiftState done [11:42:11]req_shift_opened done [11:42:11]requested_item shift.open_date is exist - process it [11:42:11]req_shift_open_date [11:42:11]req_shift_open_date done [11:42:11]produce_requested_data done [11:42:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69790,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:42:11]process_action_free close_receipt [11:42:11]json_value_free [11:42:11]json_value_free done [11:42:11]process_json_proto returns [11:42:11]Send response to host [11:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69790,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:42:11]free response buf [11:42:11]execute_script done [11:42:11]execute_script returns [11:42:11]free content buf [11:42:11]Sock 10.Close socket [11:42:11]Sock 10.Thread stoped [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:32]accept exits with 8 [11:42:32]New connection [11:42:32]New thread 3067313508 created [11:42:32]Thread 3067456868 joined [11:42:32]Waiting for new connection... [11:42:32] Sock 8.Parse request [11:42:32]Sock 8.Check first char [11:42:32]Sock 8.First char is OK [11:42:32]request: POST /json_proto HTTP/1.0 [11:42:32]Method: POST [11:42:32]URL: /json_proto [11:42:32]Method is POST - this is cgi request [11:42:32]url: /json_proto [11:42:32]query_string will be loaded in cgi processing [11:42:32]execute_cgi json_proto POST (null) [11:42:32]execute_cgi path=json_proto method=POST [11:42:32]POST find Content-Length [11:42:32]Host: 172.17.50.3:8080 [11:42:32]Content-Length: 678 [11:42:32]Content-Type: application/json [11:42:32] [11:42:32]POST finish read [11:42:32]Found Content-Length = 678 [11:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:32]execute_script... [11:42: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)2885532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:32]POST & json_proto [11:42:32]process_json_proto [11:42:32]json parsed OK: [11:42:32]protocol is kg_v1.0 [11:42:32]action value=close_receipt [11:42:32]process_action close_receipt [11:42:32]cmd_close_receipt [11:42:32]MH_GetDate [11:42:32]Write to MH i2c: F0 00 00 23 37 49 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: F0 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: F0 09 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: F0 09 00 23 37 00 2C 3E 16 67 6B 98 1E 66 C0 [11:42:32]GetLastDocTimeStamp 1729510931 [11:42:32]current date 1729510956 [11:42:32]FM_GetShiftState [11:42:32]SAM_PROTO_GetShiftState [11:42:32]wFMCommunicate request_size=4 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 13 01 00 [11:42:32]Write to MH i2c: E2 08 00 24 37 80 13 01 00 00 00 00 00 D8 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 0E 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 0E 00 24 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 04 [11:42:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:42:32]wFMCommunicate OK [11:42:32]SAM_PROTO_GetShiftState done [11:42:32]FM_GetShiftState done [11:42:32]opened in 1729469703 [11:42:32]opened+sec_in_day 1729556103 [11:42:32]quantity*price = 62016 [11:42:32]sum+1 = 62017 [11:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 181 21.10.2024 11:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69791 ФПД: 42897115866198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69791&fm=42897115866198&tin=02508201610067®Number=0000000000156251&sum=62000 [11:42:33]StoreToDocumentArchive [11:42:33]shift 194 fd 69791 [11:42:33]save to /storage/0194/doc_00069791 [11:42:33]save last doc name /storage/0194/doc_00069791 to /storage/kkm_last_doc_name [11:42:33]save OK [11:42:33]Clear old archive folders... [11:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:33]tlvbuf is 00C94990 [11:42:33]SAM_PROTO_ClearQueue [11:42:33]wFMCommunicate request_size=4 [11:42:33]MH_SAM_APDU [11:42:33]CAPDU: 80 09 00 00 [11:42:33]Write to MH i2c: E2 08 00 31 37 80 09 00 00 00 00 00 00 DA [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:33]Read from MH i2c: E2 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 03 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 03 00 31 37 00 90 00 DC [11:42:33]RAPDU: 90 00 [11:42:33]wFMCommunicate OK [11:42:33]SAM_PROTO_ClearQueue done [11:42:33]KKMCreateOFDPacket [11:42:33]OFDProtocolAddRootSTLVToBuf [11:42:33]FM_MakeSignedData [11:42:33]FM_MakeSignedData [11:42:33]SAM_PROTO_SignData [11:42:33]wFMCommunicate request_size=4 [11:42:33]MH_SAM_APDU [11:42:33]CAPDU: 80 0D 01 02 [11:42:33]Write to MH i2c: E2 08 00 32 37 80 0D 01 02 00 00 00 00 E2 [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:33]Read from MH i2c: E2 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 03 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [11:42:33]RAPDU: 90 00 [11:42:33]wFMCommunicate OK [11:42:33]wFMCommunicate request_size=255 [11:42:33]MH_SAM_APDU [11:42:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 2C 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 10 01 00 35 04 06 00 27 [11:42:33]Write to MH i2c: E2 02 01 33 37 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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 2C 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 10 01 00 35 04 06 00 27 00 00 21 [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 33 37 00 90 00 DE [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]wFMCommunicate request_size=10 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 02 02 05 03 C3 5A 64 56 [11:42:34]Write to MH i2c: E2 0D 00 34 37 80 0D 02 02 05 00 03 C3 5A 64 56 00 00 C9 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 03 00 34 37 00 90 00 DF [11:42:34]RAPDU: 90 00 [11:42:34]wFMCommunicate OK [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 0D 03 02 [11:42:34]Write to MH i2c: E2 08 00 35 37 80 0D 03 02 00 00 00 00 E7 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0B 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0B 00 35 37 00 1D F8 72 21 CC DA A9 E8 90 00 C7 [11:42:34]RAPDU: 1D F8 72 21 CC DA A9 E8 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_SignData done [11:42:34]FM_MakeSignedData done [11:42:34]CreateOFDProtocolMessage [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 11 00 00 [11:42:34]Write to MH i2c: E2 08 00 36 37 80 11 00 00 00 00 00 00 E7 [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 17 00 36 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [11:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:34]wFMCommunicate OK [11:42:34]CreateOFDProtocolMessage done [11:42:34]OFDSenderStorePacket 69791 [11:42:34]StoreOFDPacket docnum=69791 [11:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8A D2 07 01 30 33 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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 2C 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 10 01 00 35 04 06 00 27 03 C3 5A 64 56 1D F8 72 21 CC DA A9 E8 [11:42:34]CheckFolder [11:42:34]dirname=/storage/ofd_packets [11:42:34]CheckFolder done [11:42:34]ProducePacketName [11:42:34]name=ofd_packets/00069791 [11:42:34]NVStorageSaveData ofd_packets/00069791 [11:42:34]File name is /storage/ofd_packets/00069791 [11:42:34]Write 301 bytes [11:42:34]NVStorageSaveData done [11:42:34]OFDSenderStorePacket done [11:42:34]KKMCreateOFDPacket done [11:42:34]NVStorageSaveData kkm_last_timestamp [11:42:34]File name is /storage/kkm_last_timestamp [11:42:34]Write 4 bytes [11:42:34]NVStorageSaveData done [11:42:34]ExternCall_PrintAddStr [11:42:34]wPrintStart [11:42:34]Write to MH i2c: 01 00 00 37 37 6E [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 07 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [11:42:34]RasterBufferAndPrint [11:42:34]line Счет N : (1)2885532 [11:42:34]line ИНН: 02508201610067 [11:42:34]line Контрольно-Кассовый Чек [11:42:34]line ПРОДАЖА [11:42:34]line ТРК (МРК, ГНК) : 12 [11:42:34]line Товар: 2710124130 [11:42:34]line Аи-92-К-5 [11:42:34]line 9.270 * 66.90 [11:42:34]line = 620.16 [11:42:34]line НДС 12% НСП 1% [11:42:34]line > о реализуемом товаре [11:42:34]line ОКРУГЛЕНИЕ: -0.16 [11:42:34]line ИТОГО: 620.00 [11:42:34]line Внесено: 620.00 [11:42:34]line СДАЧА: 0.00 [11:42:34]line НСП 1% : 5.49 [11:42:34]line НДС 12% : 65.86 [11:42:34]line Наличными: 620.00 [11:42:34]line Безнал.: 0.00 [11:42:34]line Место: АЗС № 85 "Партнер Нефть" [11:42:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:42:34]line СНО: Общий режим [11:42:34]line Чек 181 21.10.2024 11:42 [11:42:34]line Смена: 194 ФФД: 1.0 [11:42:34]line ЗНМ: 0300000167 [11:42:34]line РНМ: 0000000000156251 [11:42:34]line Версия ККМ: v1.0 [11:42:34]line ФМ: 0000000000963346 [11:42:34]line ФД: 69791 [11:42:34]line ФПД: 42897115866198 [11:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69791&fm=42897115866198&tin=02508201610067®Number=0000000000156251&sum=62000 [11:42:34]OFD Sender: Processing packet 69791 [packets to send 18, broken 17] [11:42:34]ProducePacketName [11:42:34]name=ofd_packets/00069791 [11:42:34]OFD Sender: To server: pG, [11:42:34]CommunicateWithHost lk.salyk.kg:30040 [11:42:34]ConnectInit lk.salyk.kg [11:42:34]written 0, free lines is 4095 [11:42:34]Connected sock=10 [11:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8A D2 07 01 30 33 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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 2C 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 10 01 00 35 04 06 00 27 03 C3 5A 64 56 1D F8 72 21 CC DA A9 E8 [11:42:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9D 56 47 00 33 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 10 01 00 F4 03 04 00 D0 E7 15 67 B6 04 01 00 00 AA C3 20 C1 98 C9 93 F9 [11:42:35]CommunicateWithHost err = 0 [11:42:35]CheckOFDResponse [11:42:35]1017 (14) - 77093643461234 [11:42:35]1041 (16) - 0000000000963346 [11:42:35]1040 (4) - 69791 [11:42:35]1012 (4) - 21.10.2024 05:34 [11:42:35]1206 (1) - 0 [11:42:35]OFD Sender: Remove packet 69791 [11:42:35]ProducePacketName [11:42:35]name=ofd_packets/00069791 [11:42:35]NVStorageDeleteData [11:42:35]Write to MH i2c: 01 00 00 62 37 99 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 07 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 07 00 62 37 00 00 00 00 00 E6 0C 92 [11:42:35]RasterBufferAndPrint [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]line [11:42:35]written 0, free lines is 3308 [11:42:35]MH_Cut [11:42:35]Write to MH i2c: D1 01 00 69 37 01 72 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 01 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: D1 01 00 69 37 00 71 [11:42:35]Write to MH i2c: 01 00 00 6A 37 A1 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]OFD Sender: No OFD packet to send [11:42:35]*** Cut start [11:42:35]*** Partial cut [11:42:35]*** CUTSNS_PIN = 1 [11:42:35]*** CUTSNS_PIN = 0 [11:42:36]*** Brake cut motor [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]*** Stop cut motor [11:42:36]*** Cut end [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 FF 0F B6 [11:42:36]process_action close_receipt done [11:42:36]requested_data is exist [11:42:36]produce_requested_data [11:42:36]requested_item fm.sn is exist - process it [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 11 00 00 [11:42:36]Write to MH i2c: E2 08 00 6B 37 80 11 00 00 00 00 00 00 1C [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 6B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [11:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:36]wFMCommunicate OK [11:42:36]requested_item fd.num is exist - process it [11:42:36]SAM_PROTO_GetFieldsCounters [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 13 00 00 [11:42:36]Write to MH i2c: E2 08 00 6C 37 80 13 00 00 00 00 00 00 1F [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 62 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 62 00 6C 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [11:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_GetFieldsCounters done [11:42:36]requested_item shift.num is exist - process it [11:42:36]requested_item shift.opened is exist - process it [11:42:36]req_shift_opened [11:42:36]FM_GetShiftState [11:42:36]SAM_PROTO_GetShiftState [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 13 01 00 [11:42:36]Write to MH i2c: E2 08 00 6D 37 80 13 01 00 00 00 00 00 21 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:36]Read from MH i2c: E2 0E 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0E 00 6D 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4D [11:42:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_GetShiftState done [11:42:36]FM_GetShiftState done [11:42:36]req_shift_opened done [11:42:36]requested_item shift.open_date is exist - process it [11:42:36]req_shift_open_date [11:42:36]req_shift_open_date done [11:42:36]produce_requested_data done [11:42:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69791,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:42:36]process_action_free close_receipt [11:42:36]json_value_free [11:42:36]json_value_free done [11:42:36]process_json_proto returns [11:42:36]Send response to host [11:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69791,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:42:36]free response buf [11:42:36]execute_script done [11:42:36]execute_script returns [11:42:36]free content buf [11:42:36]Sock 8.Close socket [11:42:36]Sock 8.Thread stoped [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:45]accept exits with 9 [11:43:45]New connection [11:43:45]New thread 3067456868 created [11:43:45]Thread 3067313508 joined [11:43:45]Waiting for new connection... [11:43:45] Sock 9.Parse request [11:43:45]Sock 9.Check first char [11:43:45]Sock 9.First char is OK [11:43:45]request: POST /json_proto HTTP/1.0 [11:43:45]Method: POST [11:43:45]URL: /json_proto [11:43:45]Method is POST - this is cgi request [11:43:45]url: /json_proto [11:43:45]query_string will be loaded in cgi processing [11:43:45]execute_cgi json_proto POST (null) [11:43:45]execute_cgi path=json_proto method=POST [11:43:45]POST find Content-Length [11:43:45]Host: 172.17.50.3:8080 [11:43:45]Content-Length: 680 [11:43:45]Content-Type: application/json [11:43:45] [11:43:45]POST finish read [11:43:45]Found Content-Length = 680 [11:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:43:45]execute_script... [11:43: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)2885533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:43:45]POST & json_proto [11:43:45]process_json_proto [11:43:45]json parsed OK: [11:43:45]protocol is kg_v1.0 [11:43:45]action value=close_receipt [11:43:45]process_action close_receipt [11:43:45]cmd_close_receipt [11:43:45]MH_GetDate [11:43:45]Write to MH i2c: F0 00 00 6E 37 94 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: F0 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: F0 09 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: F0 09 00 6E 37 00 75 3E 16 67 6B 98 1E 66 54 [11:43:45]GetLastDocTimeStamp 1729510956 [11:43:45]current date 1729511029 [11:43:45]FM_GetShiftState [11:43:45]SAM_PROTO_GetShiftState [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 13 01 00 [11:43:45]Write to MH i2c: E2 08 00 6F 37 80 13 01 00 00 00 00 00 23 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 6F 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [11:43:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_GetShiftState done [11:43:45]FM_GetShiftState done [11:43:45]opened in 1729469703 [11:43:45]opened+sec_in_day 1729556103 [11:43:45]quantity*price = 100050 [11:43:45]sum+1 = 100052 [11:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 182 21.10.2024 11:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69792 ФПД: 93966891290988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69792&fm=93966891290988&tin=02508201610067®Number=0000000000156251&sum=100000 [11:43:47]StoreToDocumentArchive [11:43:47]shift 194 fd 69792 [11:43:47]save to /storage/0194/doc_00069792 [11:43:47]save last doc name /storage/0194/doc_00069792 to /storage/kkm_last_doc_name [11:43:47]save OK [11:43:47]Clear old archive folders... [11:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:47]tlvbuf is 00CFAF00 [11:43:47]SAM_PROTO_ClearQueue [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 09 00 00 [11:43:47]Write to MH i2c: E2 08 00 7C 37 80 09 00 00 00 00 00 00 25 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 7C 37 00 90 00 27 [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_ClearQueue done [11:43:47]KKMCreateOFDPacket [11:43:47]OFDProtocolAddRootSTLVToBuf [11:43:47]FM_MakeSignedData [11:43:47]FM_MakeSignedData [11:43:47]SAM_PROTO_SignData [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 01 02 [11:43:47]Write to MH i2c: E2 08 00 7D 37 80 0D 01 02 00 00 00 00 2D [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 7D 37 00 90 00 28 [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]wFMCommunicate request_size=255 [11:43:47]MH_SAM_APDU [11:43: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 32 31 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 B6 00 00 00 F4 03 04 00 75 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 10 01 00 35 04 06 00 55 76 5F 2D [11:43:47]Write to MH i2c: E2 02 01 7E 37 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 32 31 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 B6 00 00 00 F4 03 04 00 75 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 10 01 00 35 04 06 00 55 76 5F 2D 00 00 5C [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]wFMCommunicate request_size=7 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 02 02 02 11 6C [11:43:47]Write to MH i2c: E2 0A 00 7F 37 80 0D 02 02 02 00 11 6C 00 00 B1 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 03 02 [11:43:47]Write to MH i2c: E2 08 00 80 37 80 0D 03 02 00 00 00 00 32 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0B 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 0B 00 80 37 00 52 52 26 08 4E 2F 5D BD 90 00 9C [11:43:47]RAPDU: 52 52 26 08 4E 2F 5D BD 90 00 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_SignData done [11:43:47]FM_MakeSignedData done [11:43:47]CreateOFDProtocolMessage [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 11 00 00 [11:43:47]Write to MH i2c: E2 08 00 81 37 80 11 00 00 00 00 00 00 32 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 17 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 17 00 81 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [11:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:47]wFMCommunicate OK [11:43:47]CreateOFDProtocolMessage done [11:43:47]OFDSenderStorePacket 69792 [11:43:47]StoreOFDPacket docnum=69792 [11:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D2 C2 04 01 B3 A8 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 32 31 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 B6 00 00 00 F4 03 04 00 75 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 10 01 00 35 04 06 00 55 76 5F 2D 11 6C 52 52 26 08 4E 2F 5D BD [11:43:47]CheckFolder [11:43:47]dirname=/storage/ofd_packets [11:43:47]CheckFolder done [11:43:47]ProducePacketName [11:43:47]name=ofd_packets/00069792 [11:43:47]NVStorageSaveData ofd_packets/00069792 [11:43:47]File name is /storage/ofd_packets/00069792 [11:43:47]Write 298 bytes [11:43:47]NVStorageSaveData done [11:43:47]OFDSenderStorePacket done [11:43:47]KKMCreateOFDPacket done [11:43:47]NVStorageSaveData kkm_last_timestamp [11:43:47]File name is /storage/kkm_last_timestamp [11:43:47]Write 4 bytes [11:43:47]NVStorageSaveData done [11:43:47]ExternCall_PrintAddStr [11:43:47]wPrintStart [11:43:47]Write to MH i2c: 01 00 00 82 37 B9 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: 01 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: 01 07 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: 01 07 00 82 37 00 00 00 00 00 FF 0F CE [11:43:47]RasterBufferAndPrint [11:43:47]line Счет N : (1)2885533 [11:43:47]line ИНН: 02508201610067 [11:43:47]line Контрольно-Кассовый Чек [11:43:47]line ПРОДАЖА [11:43:47]line ТРК (МРК, ГНК) : 51 [11:43:47]line Товар: 2710194210 [11:43:47]line ДТ-К-5 [11:43:47]line 13.130 * 76.20 [11:43:47]line = 1000.51 [11:43:47]line НДС 12% НСП 1% [11:43:47]line > о реализуемом товаре [11:43:47]line ОКРУГЛЕНИЕ: -0.51 [11:43:47]line ИТОГО: 1000.00 [11:43:47]line Внесено: 1000.00 [11:43:47]line СДАЧА: 0.00 [11:43:47]line НСП 1% : 8.85 [11:43:47]line НДС 12% : 106.25 [11:43:47]line Наличными: 1000.00 [11:43:47]line Безнал.: 0.00 [11:43:47]line Место: АЗС № 85 "Партнер Нефть" [11:43:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:43:47]line СНО: Общий режим [11:43:47]line Чек 182 21.10.2024 11:43 [11:43:47]line Смена: 194 ФФД: 1.0 [11:43:47]line ЗНМ: 0300000167 [11:43:47]line РНМ: 0000000000156251 [11:43:47]line Версия ККМ: v1.0 [11:43:47]line ФМ: 0000000000963346 [11:43:47]line ФД: 69792 [11:43:47]line ФПД: 93966891290988 [11:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114349&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69792&fm=93966891290988&tin=02508201610067®Number=0000000000156251&sum=100000 [11:43:47]OFD Sender: Processing packet 69792 [packets to send 18, broken 17] [11:43:47]ProducePacketName [11:43:47]name=ofd_packets/00069792 [11:43:47]OFD Sender: To server: pG, [11:43:47]CommunicateWithHost lk.salyk.kg:30040 [11:43:47]ConnectInit lk.salyk.kg [11:43:47]written 0, free lines is 4095 [11:43:48]Connected sock=10 [11:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D2 C2 04 01 B3 A8 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 32 31 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 B6 00 00 00 F4 03 04 00 75 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 10 01 00 35 04 06 00 55 76 5F 2D 11 6C 52 52 26 08 4E 2F 5D BD [11:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 5C 47 00 E7 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 10 01 00 F4 03 04 00 19 E8 15 67 B6 04 01 00 00 75 CB C3 3C 24 72 81 E9 [11:43:48]CommunicateWithHost err = 0 [11:43:48]CheckOFDResponse [11:43:48]1017 (14) - 77093643461234 [11:43:48]1041 (16) - 0000000000963346 [11:43:48]1040 (4) - 69792 [11:43:48]1012 (4) - 21.10.2024 05:35 [11:43:48]1206 (1) - 0 [11:43:48]OFD Sender: Remove packet 69792 [11:43:48]ProducePacketName [11:43:48]name=ofd_packets/00069792 [11:43:48]NVStorageDeleteData [11:43:48]Write to MH i2c: 01 00 00 AD 37 E4 [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 ED 0C E4 [11:43:48]RasterBufferAndPrint [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]written 0, free lines is 3315 [11:43:48]MH_Cut [11:43:48]Write to MH i2c: D1 01 00 B4 37 01 BD [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: D1 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: D1 01 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: D1 01 00 B4 37 00 BC [11:43:48]Write to MH i2c: 01 00 00 B5 37 EC [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]OFD Sender: No OFD packet to send [11:43:49]*** Cut start [11:43:49]*** Partial cut [11:43:49]*** CUTSNS_PIN = 1 [11:43:49]*** CUTSNS_PIN = 0 [11:43:49]*** Brake cut motor [11:43:49]Read from MH i2c: 01 [11:43:49]MH_I2C_Read... [11:43:49]*** Stop cut motor [11:43:49]*** Cut end [11:43:49]Read from MH i2c: 01 07 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: 01 07 00 B5 37 00 00 00 00 00 FF 0F 01 [11:43:49]process_action close_receipt done [11:43:49]requested_data is exist [11:43:49]produce_requested_data [11:43:49]requested_item fm.sn is exist - process it [11:43:49]wFMCommunicate request_size=4 [11:43:49]MH_SAM_APDU [11:43:49]CAPDU: 80 11 00 00 [11:43:49]Write to MH i2c: E2 08 00 B6 37 80 11 00 00 00 00 00 00 67 [11:43:49]Write i2c OK [11:43:49]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 17 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 17 00 B6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [11:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:49]wFMCommunicate OK [11:43:49]requested_item fd.num is exist - process it [11:43:49]SAM_PROTO_GetFieldsCounters [11:43:49]wFMCommunicate request_size=4 [11:43:49]MH_SAM_APDU [11:43:49]CAPDU: 80 13 00 00 [11:43:49]Write to MH i2c: E2 08 00 B7 37 80 13 00 00 00 00 00 00 6A [11:43:49]Write i2c OK [11:43:49]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 62 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 62 00 B7 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:49]wFMCommunicate OK [11:43:49]SAM_PROTO_GetFieldsCounters done [11:43:49]requested_item shift.num is exist - process it [11:43:49]requested_item shift.opened is exist - process it [11:43:49]req_shift_opened [11:43:49]FM_GetShiftState [11:43:49]SAM_PROTO_GetShiftState [11:43:49]wFMCommunicate request_size=4 [11:43:49]MH_SAM_APDU [11:43:49]CAPDU: 80 13 01 00 [11:43:49]Write to MH i2c: E2 08 00 B8 37 80 13 01 00 00 00 00 00 6C [11:43:49]Write i2c OK [11:43:49]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 B8 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 98 [11:43:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:43:49]wFMCommunicate OK [11:43:49]SAM_PROTO_GetShiftState done [11:43:49]FM_GetShiftState done [11:43:49]req_shift_opened done [11:43:49]requested_item shift.open_date is exist - process it [11:43:49]req_shift_open_date [11:43:49]req_shift_open_date done [11:43:49]produce_requested_data done [11:43:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69792,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:43:49]process_action_free close_receipt [11:43:49]json_value_free [11:43:49]json_value_free done [11:43:49]process_json_proto returns [11:43:49]Send response to host [11:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69792,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:43:49]free response buf [11:43:49]execute_script done [11:43:49]execute_script returns [11:43:49]free content buf [11:43:49]Sock 9.Close socket [11:43:49]Sock 9.Thread stoped [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:44]accept exits with 8 [11:44:44]New connection [11:44:44]New thread 3067313508 created [11:44:44]Thread 3067456868 joined [11:44:44]Waiting for new connection... [11:44:44] Sock 8.Parse request [11:44:44]Sock 8.Check first char [11:44:44]Sock 8.First char is OK [11:44:44]request: POST /json_proto HTTP/1.0 [11:44:44]Method: POST [11:44:44]URL: /json_proto [11:44:44]Method is POST - this is cgi request [11:44:44]url: /json_proto [11:44:44]query_string will be loaded in cgi processing [11:44:44]execute_cgi json_proto POST (null) [11:44:44]execute_cgi path=json_proto method=POST [11:44:44]POST find Content-Length [11:44:44]Host: 172.17.50.3:8080 [11:44:44]Content-Length: 683 [11:44:44]Content-Type: application/json [11:44:44] [11:44:44]POST finish read [11:44:44]Found Content-Length = 683 [11:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885535", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:44]execute_script... [11:44:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885535", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:44]POST & json_proto [11:44:44]process_json_proto [11:44:44]json parsed OK: [11:44:44]protocol is kg_v1.0 [11:44:44]action value=close_receipt [11:44:44]process_action close_receipt [11:44:44]cmd_close_receipt [11:44:44]MH_GetDate [11:44:44]Write to MH i2c: F0 00 00 B9 37 DF [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: F0 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: F0 09 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: F0 09 00 B9 37 00 B0 3E 16 67 6B 98 1E 66 DA [11:44:44]GetLastDocTimeStamp 1729511029 [11:44:44]current date 1729511088 [11:44:44]FM_GetShiftState [11:44:44]SAM_PROTO_GetShiftState [11:44:44]wFMCommunicate request_size=4 [11:44:44]MH_SAM_APDU [11:44:44]CAPDU: 80 13 01 00 [11:44:44]Write to MH i2c: E2 08 00 BA 37 80 13 01 00 00 00 00 00 6E [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:44]Read from MH i2c: E2 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 0E 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: E2 0E 00 BA 37 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9A [11:44:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:44:44]wFMCommunicate OK [11:44:44]SAM_PROTO_GetShiftState done [11:44:44]FM_GetShiftState done [11:44:44]opened in 1729469703 [11:44:44]opened+sec_in_day 1729556103 [11:44:44]quantity*price = 100015 [11:44:44]sum+1 = 100017 [11:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 183 21.10.2024 11:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69793 ФПД: 20787835132496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69793&fm=20787835132496&tin=02508201610067®Number=0000000000156251&sum=100000 [11:44:45]StoreToDocumentArchive [11:44:45]shift 194 fd 69793 [11:44:45]save to /storage/0194/doc_00069793 [11:44:45]save last doc name /storage/0194/doc_00069793 to /storage/kkm_last_doc_name [11:44:45]save OK [11:44:45]Clear old archive folders... [11:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:45]tlvbuf is 00CA36D0 [11:44:45]SAM_PROTO_ClearQueue [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 09 00 00 [11:44:45]Write to MH i2c: E2 08 00 C7 37 80 09 00 00 00 00 00 00 70 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 C7 37 00 90 00 72 [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]SAM_PROTO_ClearQueue done [11:44:45]KKMCreateOFDPacket [11:44:45]OFDProtocolAddRootSTLVToBuf [11:44:45]FM_MakeSignedData [11:44:45]FM_MakeSignedData [11:44:45]SAM_PROTO_SignData [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 0D 01 02 [11:44:45]Write to MH i2c: E2 08 00 C8 37 80 0D 01 02 00 00 00 00 78 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 C8 37 00 90 00 73 [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]wFMCommunicate request_size=255 [11:44:45]MH_SAM_APDU [11:44:45]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B0 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 10 01 00 35 04 06 00 12 [11:44:45]Write to MH i2c: E2 02 01 C9 37 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B0 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 10 01 00 35 04 06 00 12 00 00 A3 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 03 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 03 00 C9 37 00 90 00 74 [11:44:46]RAPDU: 90 00 [11:44:46]wFMCommunicate OK [11:44:46]wFMCommunicate request_size=10 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 0D 02 02 05 E8 0B 87 5A 50 [11:44:46]Write to MH i2c: E2 0D 00 CA 37 80 0D 02 02 05 00 E8 0B 87 5A 50 00 00 A9 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 03 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 03 00 CA 37 00 90 00 75 [11:44:46]RAPDU: 90 00 [11:44:46]wFMCommunicate OK [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 0D 03 02 [11:44:46]Write to MH i2c: E2 08 00 CB 37 80 0D 03 02 00 00 00 00 7D [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0B 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 0B 00 CB 37 00 CD 34 E0 DC 9C 36 6A 93 90 00 0A [11:44:46]RAPDU: CD 34 E0 DC 9C 36 6A 93 90 00 [11:44:46]wFMCommunicate OK [11:44:46]SAM_PROTO_SignData done [11:44:46]FM_MakeSignedData done [11:44:46]CreateOFDProtocolMessage [11:44:46]wFMCommunicate request_size=4 [11:44:46]MH_SAM_APDU [11:44:46]CAPDU: 80 11 00 00 [11:44:46]Write to MH i2c: E2 08 00 CC 37 80 11 00 00 00 00 00 00 7D [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:46]Read from MH i2c: E2 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 17 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: E2 17 00 CC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [11:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:44:46]wFMCommunicate OK [11:44:46]CreateOFDProtocolMessage done [11:44:46]OFDSenderStorePacket 69793 [11:44:46]StoreOFDPacket docnum=69793 [11:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 5A 07 01 51 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B0 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 10 01 00 35 04 06 00 12 E8 0B 87 5A 50 CD 34 E0 DC 9C 36 6A 93 [11:44:46]CheckFolder [11:44:46]dirname=/storage/ofd_packets [11:44:46]CheckFolder done [11:44:46]ProducePacketName [11:44:46]name=ofd_packets/00069793 [11:44:46]NVStorageSaveData ofd_packets/00069793 [11:44:46]File name is /storage/ofd_packets/00069793 [11:44:46]Write 301 bytes [11:44:46]NVStorageSaveData done [11:44:46]OFDSenderStorePacket done [11:44:46]KKMCreateOFDPacket done [11:44:46]NVStorageSaveData kkm_last_timestamp [11:44:46]File name is /storage/kkm_last_timestamp [11:44:46]Write 4 bytes [11:44:46]NVStorageSaveData done [11:44:46]ExternCall_PrintAddStr [11:44:46]wPrintStart [11:44:46]Write to MH i2c: 01 00 00 CD 37 04 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 CD 37 00 00 00 00 00 FF 0F 19 [11:44:46]RasterBufferAndPrint [11:44:46]line Счет N : (1)2885535 [11:44:46]line ИНН: 02508201610067 [11:44:46]line Контрольно-Кассовый Чек [11:44:46]line ПРОДАЖА [11:44:46]line ТРК (МРК, ГНК) : 42 [11:44:46]line Товар: 2710124130 [11:44:46]line Аи-92-К-5 [11:44:46]line 14.950 * 66.90 [11:44:46]line = 1000.16 [11:44:46]line НДС 12% НСП 1% [11:44:46]line > о реализуемом товаре [11:44:46]line ОКРУГЛЕНИЕ: -0.16 [11:44:46]line ИТОГО: 1000.00 [11:44:46]line Внесено: 1000.00 [11:44:46]line СДАЧА: 0.00 [11:44:46]line НСП 1% : 8.85 [11:44:46]line НДС 12% : 106.21 [11:44:46]line Наличными: 1000.00 [11:44:46]line Безнал.: 0.00 [11:44:46]line Место: АЗС № 85 "Партнер Нефть" [11:44:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:44:46]line СНО: Общий режим [11:44:46]line Чек 183 21.10.2024 11:44 [11:44:46]line Смена: 194 ФФД: 1.0 [11:44:46]line ЗНМ: 0300000167 [11:44:46]line РНМ: 0000000000156251 [11:44:46]line Версия ККМ: v1.0 [11:44:46]line ФМ: 0000000000963346 [11:44:46]line ФД: 69793 [11:44:46]line ФПД: 20787835132496 [11:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114448&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69793&fm=20787835132496&tin=02508201610067®Number=0000000000156251&sum=100000 [11:44:46]OFD Sender: Processing packet 69793 [packets to send 18, broken 17] [11:44:46]ProducePacketName [11:44:46]name=ofd_packets/00069793 [11:44:46]OFD Sender: To server: pG, [11:44:46]CommunicateWithHost lk.salyk.kg:30040 [11:44:46]ConnectInit lk.salyk.kg [11:44:46]written 0, free lines is 4095 [11:44:46]Connected sock=10 [11:44:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 5A 07 01 51 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B0 3E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 10 01 00 35 04 06 00 12 E8 0B 87 5A 50 CD 34 E0 DC 9C 36 6A 93 [11:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 2D 47 00 4A A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 10 01 00 F4 03 04 00 53 E8 15 67 B6 04 01 00 00 F3 B4 07 BD 58 65 06 43 [11:44:46]CommunicateWithHost err = 0 [11:44:46]CheckOFDResponse [11:44:46]1017 (14) - 77093643461234 [11:44:46]1041 (16) - 0000000000963346 [11:44:46]1040 (4) - 69793 [11:44:46]1012 (4) - 21.10.2024 05:36 [11:44:46]1206 (1) - 0 [11:44:46]OFD Sender: Remove packet 69793 [11:44:46]ProducePacketName [11:44:46]name=ofd_packets/00069793 [11:44:46]NVStorageDeleteData [11:44:46]Write to MH i2c: 01 00 00 F8 37 2F [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 F8 37 00 00 00 00 00 F0 0C 32 [11:44:46]RasterBufferAndPrint [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]written 0, free lines is 3318 [11:44:47]MH_Cut [11:44:47]Write to MH i2c: D1 01 00 FF 37 01 08 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: D1 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: D1 01 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: D1 01 00 FF 37 00 07 [11:44:47]Write to MH i2c: 01 00 00 00 38 38 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]OFD Sender: No OFD packet to send [11:44:47]*** Cut start [11:44:47]*** Partial cut [11:44:47]*** CUTSNS_PIN = 1 [11:44:47]*** CUTSNS_PIN = 0 [11:44:47]*** Brake cut motor [11:44:48]Read from MH i2c: 01 [11:44:48]MH_I2C_Read... [11:44:48]*** Stop cut motor [11:44:48]*** Cut end [11:44:48]Read from MH i2c: 01 07 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: 01 07 00 00 38 00 00 00 00 00 FF 0F 4D [11:44:48]process_action close_receipt done [11:44:48]requested_data is exist [11:44:48]produce_requested_data [11:44:48]requested_item fm.sn is exist - process it [11:44:48]wFMCommunicate request_size=4 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 11 00 00 [11:44:48]Write to MH i2c: E2 08 00 01 38 80 11 00 00 00 00 00 00 B3 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 17 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 17 00 01 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [11:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:44:48]wFMCommunicate OK [11:44:48]requested_item fd.num is exist - process it [11:44:48]SAM_PROTO_GetFieldsCounters [11:44:48]wFMCommunicate request_size=4 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 13 00 00 [11:44:48]Write to MH i2c: E2 08 00 02 38 80 13 00 00 00 00 00 00 B6 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 62 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 62 00 02 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [11:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:48]wFMCommunicate OK [11:44:48]SAM_PROTO_GetFieldsCounters done [11:44:48]requested_item shift.num is exist - process it [11:44:48]requested_item shift.opened is exist - process it [11:44:48]req_shift_opened [11:44:48]FM_GetShiftState [11:44:48]SAM_PROTO_GetShiftState [11:44:48]wFMCommunicate request_size=4 [11:44:48]MH_SAM_APDU [11:44:48]CAPDU: 80 13 01 00 [11:44:48]Write to MH i2c: E2 08 00 03 38 80 13 01 00 00 00 00 00 B8 [11:44:48]Write i2c OK [11:44:48]MH_I2C_Read... [11:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:48]Read from MH i2c: E2 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 0E 00 [11:44:48]MH_I2C_Read... [11:44:48]Read from MH i2c: E2 0E 00 03 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E4 [11:44:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:44:48]wFMCommunicate OK [11:44:48]SAM_PROTO_GetShiftState done [11:44:48]FM_GetShiftState done [11:44:48]req_shift_opened done [11:44:48]requested_item shift.open_date is exist - process it [11:44:48]req_shift_open_date [11:44:48]req_shift_open_date done [11:44:48]produce_requested_data done [11:44:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69793,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:44:48]process_action_free close_receipt [11:44:48]json_value_free [11:44:48]json_value_free done [11:44:48]process_json_proto returns [11:44:48]Send response to host [11:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69793,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:44:48]free response buf [11:44:48]execute_script done [11:44:48]execute_script returns [11:44:48]free content buf [11:44:48]Sock 8.Close socket [11:44:48]Sock 8.Thread stoped [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:15]accept exits with 9 [11:46:15]New connection [11:46:15]New thread 3067456868 created [11:46:15]Thread 3067313508 joined [11:46:15]Waiting for new connection... [11:46:15] Sock 9.Parse request [11:46:15]Sock 9.Check first char [11:46:15]Sock 9.First char is OK [11:46:15]request: POST /json_proto HTTP/1.0 [11:46:15]Method: POST [11:46:15]URL: /json_proto [11:46:15]Method is POST - this is cgi request [11:46:15]url: /json_proto [11:46:15]query_string will be loaded in cgi processing [11:46:15]execute_cgi json_proto POST (null) [11:46:15]execute_cgi path=json_proto method=POST [11:46:15]POST find Content-Length [11:46:15]Host: 172.17.50.3:8080 [11:46:15]Content-Length: 689 [11:46:15]Content-Type: application/json [11:46:15] [11:46:15]POST finish read [11:46:15]Found Content-Length = 689 [11:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [11:46:15]execute_script... [11:46: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)2885534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "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" ] } } [11:46:15]POST & json_proto [11:46:15]process_json_proto [11:46:15]json parsed OK: [11:46:15]protocol is kg_v1.0 [11:46:15]action value=close_receipt [11:46:15]process_action close_receipt [11:46:15]cmd_close_receipt [11:46:15]MH_GetDate [11:46:15]Write to MH i2c: F0 00 00 04 38 2B [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 09 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 09 00 04 38 00 0A 3F 16 67 6B 98 1E 66 81 [11:46:15]GetLastDocTimeStamp 1729511088 [11:46:15]current date 1729511178 [11:46:15]FM_GetShiftState [11:46:15]SAM_PROTO_GetShiftState [11:46:15]wFMCommunicate request_size=4 [11:46:15]MH_SAM_APDU [11:46:15]CAPDU: 80 13 01 00 [11:46:15]Write to MH i2c: E2 08 00 05 38 80 13 01 00 00 00 00 00 BA [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:15]Read from MH i2c: E2 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 0E 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 0E 00 05 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E6 [11:46:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:46:15]wFMCommunicate OK [11:46:15]SAM_PROTO_GetShiftState done [11:46:15]FM_GetShiftState done [11:46:15]opened in 1729469703 [11:46:15]opened+sec_in_day 1729556103 [11:46:15]quantity*price = 250050 [11:46:15]sum+1 = 250052 [11:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 184 21.10.2024 11:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69794 ФПД: 13295600087552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69794&fm=13295600087552&tin=02508201610067®Number=0000000000156251&sum=250000 [11:46:16]StoreToDocumentArchive [11:46:16]shift 194 fd 69794 [11:46:16]save to /storage/0194/doc_00069794 [11:46:16]save last doc name /storage/0194/doc_00069794 to /storage/kkm_last_doc_name [11:46:16]save OK [11:46:16]Clear old archive folders... [11:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:46:16]tlvbuf is 00D17810 [11:46:16]SAM_PROTO_ClearQueue [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 09 00 00 [11:46:16]Write to MH i2c: E2 08 00 12 38 80 09 00 00 00 00 00 00 BC [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_ClearQueue done [11:46:16]KKMCreateOFDPacket [11:46:16]OFDProtocolAddRootSTLVToBuf [11:46:16]FM_MakeSignedData [11:46:16]FM_MakeSignedData [11:46:16]SAM_PROTO_SignData [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 01 02 [11:46:16]Write to MH i2c: E2 08 00 13 38 80 0D 01 02 00 00 00 00 C4 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 13 38 00 90 00 BF [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=255 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 B8 00 00 00 F4 03 04 00 0A 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 10 01 [11:46:16]Write to MH i2c: E2 02 01 14 38 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 B8 00 00 00 F4 03 04 00 0A 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 10 01 00 00 9B [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 14 38 00 90 00 C0 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=16 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0C 17 9F 85 32 00 [11:46:16]Write to MH i2c: E2 13 00 15 38 80 0D 02 02 0B 00 00 35 04 06 00 0C 17 9F 85 32 00 00 00 95 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 15 38 00 90 00 C1 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 03 02 [11:46:16]Write to MH i2c: E2 08 00 16 38 80 0D 03 02 00 00 00 00 C9 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0B 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0B 00 16 38 00 B1 44 87 06 EC 21 E5 76 90 00 B4 [11:46:16]RAPDU: B1 44 87 06 EC 21 E5 76 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_SignData done [11:46:16]FM_MakeSignedData done [11:46:16]CreateOFDProtocolMessage [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 11 00 00 [11:46:16]Write to MH i2c: E2 08 00 17 38 80 11 00 00 00 00 00 00 C9 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 17 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 17 00 17 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [11:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:16]wFMCommunicate OK [11:46:16]CreateOFDProtocolMessage done [11:46:16]OFDSenderStorePacket 69794 [11:46:16]StoreOFDPacket docnum=69794 [11:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7C BC 0D 01 AB 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 B8 00 00 00 F4 03 04 00 0A 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 10 01 00 35 04 06 00 0C 17 9F 85 32 00 B1 44 87 06 EC 21 E5 76 [11:46:16]CheckFolder [11:46:16]dirname=/storage/ofd_packets [11:46:16]CheckFolder done [11:46:16]ProducePacketName [11:46:16]name=ofd_packets/00069794 [11:46:16]NVStorageSaveData ofd_packets/00069794 [11:46:16]File name is /storage/ofd_packets/00069794 [11:46:16]Write 307 bytes [11:46:16]NVStorageSaveData done [11:46:16]OFDSenderStorePacket done [11:46:16]KKMCreateOFDPacket done [11:46:16]NVStorageSaveData kkm_last_timestamp [11:46:16]File name is /storage/kkm_last_timestamp [11:46:16]Write 4 bytes [11:46:16]NVStorageSaveData done [11:46:16]ExternCall_PrintAddStr [11:46:16]wPrintStart [11:46:16]Write to MH i2c: 01 00 00 18 38 50 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 07 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 FF 0F 65 [11:46:16]RasterBufferAndPrint [11:46:16]line Счет N : (1)2885534 [11:46:16]line ИНН: 02508201610067 [11:46:16]line Контрольно-Кассовый Чек [11:46:16]line ПРОДАЖА [11:46:16]line ТРК (МРК, ГНК) : 31 [11:46:16]line Товар: 2710194240 [11:46:16]line D-ENERGY Дт-К-2 [11:46:16]line 32.390 * 77.20 [11:46:16]line = 2500.51 [11:46:16]line НДС 12% НСП 1% [11:46:16]line > о реализуемом товаре [11:46:16]line ОКРУГЛЕНИЕ: -0.51 [11:46:16]line ИТОГО: 2500.00 [11:46:16]line Внесено: 2500.00 [11:46:16]line СДАЧА: 0.00 [11:46:16]line НСП 1% : 22.13 [11:46:16]line НДС 12% : 265.54 [11:46:16]line Наличными: 2500.00 [11:46:16]line Безнал.: 0.00 [11:46:16]line Место: АЗС № 85 "Партнер Нефть" [11:46:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:16]line СНО: Общий режим [11:46:16]line Чек 184 21.10.2024 11:46 [11:46:16]line Смена: 194 ФФД: 1.0 [11:46:16]line ЗНМ: 0300000167 [11:46:16]line РНМ: 0000000000156251 [11:46:16]line Версия ККМ: v1.0 [11:46:16]line ФМ: 0000000000963346 [11:46:16]line ФД: 69794 [11:46:16]line ФПД: 13295600087552 [11:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69794&fm=13295600087552&tin=02508201610067®Number=0000000000156251&sum=250000 [11:46:17]OFD Sender: Processing packet 69794 [packets to send 18, broken 17] [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00069794 [11:46:17]OFD Sender: To server: pG, [11:46:17]CommunicateWithHost lk.salyk.kg:30040 [11:46:17]ConnectInit lk.salyk.kg [11:46:17]written 0, free lines is 4095 [11:46:17]Connected sock=8 [11:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7C BC 0D 01 AB 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 B8 00 00 00 F4 03 04 00 0A 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 10 01 00 35 04 06 00 0C 17 9F 85 32 00 B1 44 87 06 EC 21 E5 76 [11:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 67 47 00 04 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 10 01 00 F4 03 04 00 AE E8 15 67 B6 04 01 00 00 0D E2 FE 01 1C 19 27 35 [11:46:17]CommunicateWithHost err = 0 [11:46:17]CheckOFDResponse [11:46:17]1017 (14) - 77093643461234 [11:46:17]1041 (16) - 0000000000963346 [11:46:17]1040 (4) - 69794 [11:46:17]1012 (4) - 21.10.2024 05:37 [11:46:17]1206 (1) - 0 [11:46:17]OFD Sender: Remove packet 69794 [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00069794 [11:46:17]NVStorageDeleteData [11:46:17]Write to MH i2c: 01 00 00 43 38 7B [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 43 38 00 00 00 00 00 F3 0C 81 [11:46:17]RasterBufferAndPrint [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]written 0, free lines is 3321 [11:46:17]MH_Cut [11:46:17]Write to MH i2c: D1 01 00 4A 38 01 54 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 01 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 01 00 4A 38 00 53 [11:46:17]Write to MH i2c: 01 00 00 4B 38 83 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:18]OFD Sender: No OFD packet to send [11:46:18]*** Cut start [11:46:18]*** Partial cut [11:46:18]*** CUTSNS_PIN = 1 [11:46:18]*** CUTSNS_PIN = 0 [11:46:18]*** Brake cut motor [11:46:19]Read from MH i2c: 01 [11:46:19]MH_I2C_Read... [11:46:19]*** Stop cut motor [11:46:19]*** Cut end [11:46:19]Read from MH i2c: 01 07 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 4B 38 00 00 00 00 00 FF 0F 98 [11:46:19]process_action close_receipt done [11:46:19]requested_data is exist [11:46:19]produce_requested_data [11:46:19]requested_item fm.sn is exist - process it [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 11 00 00 [11:46:19]Write to MH i2c: E2 08 00 4C 38 80 11 00 00 00 00 00 00 FE [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 17 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 17 00 4C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [11:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:19]wFMCommunicate OK [11:46:19]requested_item fd.num is exist - process it [11:46:19]SAM_PROTO_GetFieldsCounters [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 13 00 00 [11:46:19]Write to MH i2c: E2 08 00 4D 38 80 13 00 00 00 00 00 00 01 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 62 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 62 00 4D 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [11:46:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:19]wFMCommunicate OK [11:46:19]SAM_PROTO_GetFieldsCounters done [11:46:19]requested_item shift.num is exist - process it [11:46:19]requested_item shift.opened is exist - process it [11:46:19]req_shift_opened [11:46:19]FM_GetShiftState [11:46:19]SAM_PROTO_GetShiftState [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 13 01 00 [11:46:19]Write to MH i2c: E2 08 00 4E 38 80 13 01 00 00 00 00 00 03 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 0E 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 0E 00 4E 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2F [11:46:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:46:19]wFMCommunicate OK [11:46:19]SAM_PROTO_GetShiftState done [11:46:19]FM_GetShiftState done [11:46:19]req_shift_opened done [11:46:19]requested_item shift.open_date is exist - process it [11:46:19]req_shift_open_date [11:46:19]req_shift_open_date done [11:46:19]produce_requested_data done [11:46:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69794,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:46:19]process_action_free close_receipt [11:46:19]json_value_free [11:46:19]json_value_free done [11:46:19]process_json_proto returns [11:46:19]Send response to host [11:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69794,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:46:19]free response buf [11:46:19]execute_script done [11:46:19]execute_script returns [11:46:19]free content buf [11:46:19]Sock 9.Close socket [11:46:19]Sock 9.Thread stoped [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:43]accept exits with 10 [11:46:43]New connection [11:46:43]New thread 3067313508 created [11:46:43]Thread 3067456868 joined [11:46:43]Waiting for new connection... [11:46:43] Sock 10.Parse request [11:46:43]Sock 10.Check first char [11:46:43]Sock 10.First char is OK [11:46:43]request: POST /json_proto HTTP/1.0 [11:46:43]Method: POST [11:46:43]URL: /json_proto [11:46:43]Method is POST - this is cgi request [11:46:43]url: /json_proto [11:46:43]query_string will be loaded in cgi processing [11:46:43]execute_cgi json_proto POST (null) [11:46:43]execute_cgi path=json_proto method=POST [11:46:43]POST find Content-Length [11:46:43]Host: 172.17.50.3:8080 [11:46:43]Content-Length: 680 [11:46:43]Content-Type: application/json [11:46:43] [11:46:43]POST finish read [11:46:43]Found Content-Length = 680 [11:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:46:43]execute_script... [11:46: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)2885536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:46:43]POST & json_proto [11:46:43]process_json_proto [11:46:43]json parsed OK: [11:46:43]protocol is kg_v1.0 [11:46:43]action value=close_receipt [11:46:43]process_action close_receipt [11:46:43]cmd_close_receipt [11:46:43]MH_GetDate [11:46:43]Write to MH i2c: F0 00 00 4F 38 76 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: F0 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: F0 09 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: F0 09 00 4F 38 00 27 3F 16 67 6B 98 1E 66 E9 [11:46:43]GetLastDocTimeStamp 1729511178 [11:46:43]current date 1729511207 [11:46:43]FM_GetShiftState [11:46:43]SAM_PROTO_GetShiftState [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 13 01 00 [11:46:43]Write to MH i2c: E2 08 00 50 38 80 13 01 00 00 00 00 00 05 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:43]Read from MH i2c: E2 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 0E 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: E2 0E 00 50 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 31 [11:46:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:46:43]wFMCommunicate OK [11:46:43]SAM_PROTO_GetShiftState done [11:46:43]FM_GetShiftState done [11:46:43]opened in 1729469703 [11:46:43]opened+sec_in_day 1729556103 [11:46:43]quantity*price = 100050 [11:46:43]sum+1 = 100052 [11:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 185 21.10.2024 11:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69795 ФПД: 49498821338114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69795&fm=49498821338114&tin=02508201610067®Number=0000000000156251&sum=100000 [11:46:44]StoreToDocumentArchive [11:46:44]shift 194 fd 69795 [11:46:44]save to /storage/0194/doc_00069795 [11:46:44]save last doc name /storage/0194/doc_00069795 to /storage/kkm_last_doc_name [11:46:44]save OK [11:46:44]Clear old archive folders... [11:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:44]tlvbuf is 00CA9360 [11:46:44]SAM_PROTO_ClearQueue [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 09 00 00 [11:46:44]Write to MH i2c: E2 08 00 5D 38 80 09 00 00 00 00 00 00 07 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 03 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 03 00 5D 38 00 90 00 09 [11:46:44]RAPDU: 90 00 [11:46:44]wFMCommunicate OK [11:46:44]SAM_PROTO_ClearQueue done [11:46:44]KKMCreateOFDPacket [11:46:44]OFDProtocolAddRootSTLVToBuf [11:46:44]FM_MakeSignedData [11:46:44]FM_MakeSignedData [11:46:44]SAM_PROTO_SignData [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 0D 01 02 [11:46:44]Write to MH i2c: E2 08 00 5E 38 80 0D 01 02 00 00 00 00 0F [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 5E 38 00 90 00 0A [11:46:45]RAPDU: 90 00 [11:46:45]wFMCommunicate OK [11:46:45]wFMCommunicate request_size=255 [11:46:45]MH_SAM_APDU [11:46:45]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 32 31 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 B9 00 00 00 F4 03 04 00 27 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 10 01 00 35 04 06 00 2D 04 D7 A9 [11:46:45]Write to MH i2c: E2 02 01 5F 38 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 32 31 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 B9 00 00 00 F4 03 04 00 27 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 10 01 00 35 04 06 00 2D 04 D7 A9 00 00 51 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 5F 38 00 90 00 0B [11:46:45]RAPDU: 90 00 [11:46:45]wFMCommunicate OK [11:46:45]wFMCommunicate request_size=7 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 0D 02 02 02 A4 02 [11:46:45]Write to MH i2c: E2 0A 00 60 38 80 0D 02 02 02 00 A4 02 00 00 BC [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 03 00 60 38 00 90 00 0C [11:46:45]RAPDU: 90 00 [11:46:45]wFMCommunicate OK [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 0D 03 02 [11:46:45]Write to MH i2c: E2 08 00 61 38 80 0D 03 02 00 00 00 00 14 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0B 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0B 00 61 38 00 B7 DB 0D 97 C4 FD F2 32 90 00 30 [11:46:45]RAPDU: B7 DB 0D 97 C4 FD F2 32 90 00 [11:46:45]wFMCommunicate OK [11:46:45]SAM_PROTO_SignData done [11:46:45]FM_MakeSignedData done [11:46:45]CreateOFDProtocolMessage [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 11 00 00 [11:46:45]Write to MH i2c: E2 08 00 62 38 80 11 00 00 00 00 00 00 14 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 17 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 17 00 62 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [11:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:45]wFMCommunicate OK [11:46:45]CreateOFDProtocolMessage done [11:46:45]OFDSenderStorePacket 69795 [11:46:45]StoreOFDPacket docnum=69795 [11:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 65 04 01 E0 E5 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 32 31 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 B9 00 00 00 F4 03 04 00 27 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 10 01 00 35 04 06 00 2D 04 D7 A9 A4 02 B7 DB 0D 97 C4 FD F2 32 [11:46:45]CheckFolder [11:46:45]dirname=/storage/ofd_packets [11:46:45]CheckFolder done [11:46:45]ProducePacketName [11:46:45]name=ofd_packets/00069795 [11:46:45]NVStorageSaveData ofd_packets/00069795 [11:46:45]File name is /storage/ofd_packets/00069795 [11:46:45]Write 298 bytes [11:46:45]NVStorageSaveData done [11:46:45]OFDSenderStorePacket done [11:46:45]KKMCreateOFDPacket done [11:46:45]NVStorageSaveData kkm_last_timestamp [11:46:45]File name is /storage/kkm_last_timestamp [11:46:45]Write 4 bytes [11:46:45]NVStorageSaveData done [11:46:45]ExternCall_PrintAddStr [11:46:45]wPrintStart [11:46:45]Write to MH i2c: 01 00 00 63 38 9B [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: 01 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: 01 07 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: 01 07 00 63 38 00 00 00 00 00 FF 0F B0 [11:46:45]RasterBufferAndPrint [11:46:45]line Счет N : (1)2885536 [11:46:45]line ИНН: 02508201610067 [11:46:45]line Контрольно-Кассовый Чек [11:46:45]line ПРОДАЖА [11:46:45]line ТРК (МРК, ГНК) : 51 [11:46:45]line Товар: 2710194210 [11:46:45]line ДТ-К-5 [11:46:45]line 13.130 * 76.20 [11:46:45]line = 1000.51 [11:46:45]line НДС 12% НСП 1% [11:46:45]line > о реализуемом товаре [11:46:45]line ОКРУГЛЕНИЕ: -0.51 [11:46:45]line ИТОГО: 1000.00 [11:46:45]line Внесено: 1000.00 [11:46:45]line СДАЧА: 0.00 [11:46:45]line НСП 1% : 8.85 [11:46:45]line НДС 12% : 106.25 [11:46:45]line Наличными: 1000.00 [11:46:45]line Безнал.: 0.00 [11:46:45]line Место: АЗС № 85 "Партнер Нефть" [11:46:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:45]line СНО: Общий режим [11:46:45]line Чек 185 21.10.2024 11:46 [11:46:45]line Смена: 194 ФФД: 1.0 [11:46:45]line ЗНМ: 0300000167 [11:46:45]line РНМ: 0000000000156251 [11:46:45]line Версия ККМ: v1.0 [11:46:45]line ФМ: 0000000000963346 [11:46:45]line ФД: 69795 [11:46:45]line ФПД: 49498821338114 [11:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69795&fm=49498821338114&tin=02508201610067®Number=0000000000156251&sum=100000 [11:46:45]OFD Sender: Processing packet 69795 [packets to send 18, broken 17] [11:46:45]ProducePacketName [11:46:45]name=ofd_packets/00069795 [11:46:45]OFD Sender: To server: pG, [11:46:45]CommunicateWithHost lk.salyk.kg:30040 [11:46:45]ConnectInit lk.salyk.kg [11:46:45]written 0, free lines is 4095 [11:46:45]Connected sock=9 [11:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 65 04 01 E0 E5 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 32 31 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 B9 00 00 00 F4 03 04 00 27 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 10 01 00 35 04 06 00 2D 04 D7 A9 A4 02 B7 DB 0D 97 C4 FD F2 32 [11:46:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5D 1E 47 00 AF F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 10 01 00 F4 03 04 00 CB E8 15 67 B6 04 01 00 00 95 3D D8 58 96 6A B3 68 [11:46:46]CommunicateWithHost err = 0 [11:46:46]CheckOFDResponse [11:46:46]1017 (14) - 77093643461234 [11:46:46]1041 (16) - 0000000000963346 [11:46:46]1040 (4) - 69795 [11:46:46]1012 (4) - 21.10.2024 05:38 [11:46:46]1206 (1) - 0 [11:46:46]OFD Sender: Remove packet 69795 [11:46:46]ProducePacketName [11:46:46]name=ofd_packets/00069795 [11:46:46]NVStorageDeleteData [11:46:46]Write to MH i2c: 01 00 00 8E 38 C6 [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: 01 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: 01 07 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: 01 07 00 8E 38 00 00 00 00 00 E4 0C BD [11:46:46]RasterBufferAndPrint [11:46:46]line [11:46:46]line [11:46:46]line [11:46:46]line [11:46:46]line [11:46:46]written 0, free lines is 3306 [11:46:46]MH_Cut [11:46:46]Write to MH i2c: D1 01 00 95 38 01 9F [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: D1 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: D1 01 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: D1 01 00 95 38 00 9E [11:46:46]Write to MH i2c: 01 00 00 96 38 CE [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]OFD Sender: No OFD packet to send [11:46:46]*** Cut start [11:46:46]*** Partial cut [11:46:46]*** CUTSNS_PIN = 1 [11:46:46]*** CUTSNS_PIN = 0 [11:46:47]*** Brake cut motor [11:46:47]Read from MH i2c: 01 [11:46:47]MH_I2C_Read... [11:46:47]*** Stop cut motor [11:46:47]*** Cut end [11:46:47]Read from MH i2c: 01 07 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 96 38 00 00 00 00 00 FF 0F E3 [11:46:47]process_action close_receipt done [11:46:47]requested_data is exist [11:46:47]produce_requested_data [11:46:47]requested_item fm.sn is exist - process it [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 11 00 00 [11:46:47]Write to MH i2c: E2 08 00 97 38 80 11 00 00 00 00 00 00 49 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 97 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [11:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:47]wFMCommunicate OK [11:46:47]requested_item fd.num is exist - process it [11:46:47]SAM_PROTO_GetFieldsCounters [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 13 00 00 [11:46:47]Write to MH i2c: E2 08 00 98 38 80 13 00 00 00 00 00 00 4C [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 62 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 62 00 98 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [11:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_GetFieldsCounters done [11:46:47]requested_item shift.num is exist - process it [11:46:47]requested_item shift.opened is exist - process it [11:46:47]req_shift_opened [11:46:47]FM_GetShiftState [11:46:47]SAM_PROTO_GetShiftState [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 13 01 00 [11:46:47]Write to MH i2c: E2 08 00 99 38 80 13 01 00 00 00 00 00 4E [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 99 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7A [11:46:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_GetShiftState done [11:46:47]FM_GetShiftState done [11:46:47]req_shift_opened done [11:46:47]requested_item shift.open_date is exist - process it [11:46:47]req_shift_open_date [11:46:47]req_shift_open_date done [11:46:47]produce_requested_data done [11:46:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69795,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:46:47]process_action_free close_receipt [11:46:47]json_value_free [11:46:47]json_value_free done [11:46:47]process_json_proto returns [11:46:47]Send response to host [11:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69795,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:46:47]free response buf [11:46:47]execute_script done [11:46:47]execute_script returns [11:46:47]free content buf [11:46:47]Sock 10.Close socket [11:46:47]Sock 10.Thread stoped [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:17]accept exits with 8 [11:48:17]New connection [11:48:17]New thread 3067456868 created [11:48:17]Thread 3067313508 joined [11:48:17]Waiting for new connection... [11:48:17] Sock 8.Parse request [11:48:17]Sock 8.Check first char [11:48:17]Sock 8.First char is OK [11:48:17]request: POST /json_proto HTTP/1.0 [11:48:17]Method: POST [11:48:17]URL: /json_proto [11:48:17]Method is POST - this is cgi request [11:48:17]url: /json_proto [11:48:17]query_string will be loaded in cgi processing [11:48:17]execute_cgi json_proto POST (null) [11:48:17]execute_cgi path=json_proto method=POST [11:48:17]POST find Content-Length [11:48:17]Host: 172.17.50.3:8080 [11:48:17]Content-Length: 689 [11:48:17]Content-Type: application/json [11:48:17] [11:48:17]POST finish read [11:48:17]Found Content-Length = 689 [11:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:48:17]execute_script... [11:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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:48:17]POST & json_proto [11:48:17]process_json_proto [11:48:17]json parsed OK: [11:48:17]protocol is kg_v1.0 [11:48:17]action value=close_receipt [11:48:17]process_action close_receipt [11:48:17]cmd_close_receipt [11:48:17]MH_GetDate [11:48:17]Write to MH i2c: F0 00 00 9A 38 C1 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: F0 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: F0 09 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: F0 09 00 9A 38 00 85 3F 16 67 6B 98 1E 66 92 [11:48:17]GetLastDocTimeStamp 1729511207 [11:48:17]current date 1729511301 [11:48:17]FM_GetShiftState [11:48:17]SAM_PROTO_GetShiftState [11:48:17]wFMCommunicate request_size=4 [11:48:17]MH_SAM_APDU [11:48:17]CAPDU: 80 13 01 00 [11:48:17]Write to MH i2c: E2 08 00 9B 38 80 13 01 00 00 00 00 00 50 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:17]Read from MH i2c: E2 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: E2 0E 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: E2 0E 00 9B 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7C [11:48:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:48:17]wFMCommunicate OK [11:48:17]SAM_PROTO_GetShiftState done [11:48:17]FM_GetShiftState done [11:48:17]opened in 1729469703 [11:48:17]opened+sec_in_day 1729556103 [11:48:17]quantity*price = 100051 [11:48:17]sum+1 = 100052 [11:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 186 21.10.2024 11:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69796 ФПД: 219234041425852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69796&fm=219234041425852&tin=02508201610067®Number=0000000000156251&sum=100000 [11:48:19]StoreToDocumentArchive [11:48:19]shift 194 fd 69796 [11:48:19]save to /storage/0194/doc_00069796 [11:48:19]save last doc name /storage/0194/doc_00069796 to /storage/kkm_last_doc_name [11:48:19]save OK [11:48:19]Clear old archive folders... [11:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:48:19]tlvbuf is 00C6C010 [11:48:19]SAM_PROTO_ClearQueue [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 09 00 00 [11:48:19]Write to MH i2c: E2 08 00 A8 38 80 09 00 00 00 00 00 00 52 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 A8 38 00 90 00 54 [11:48:19]RAPDU: 90 00 [11:48:19]wFMCommunicate OK [11:48:19]SAM_PROTO_ClearQueue done [11:48:19]KKMCreateOFDPacket [11:48:19]OFDProtocolAddRootSTLVToBuf [11:48:19]FM_MakeSignedData [11:48:19]FM_MakeSignedData [11:48:19]SAM_PROTO_SignData [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 0D 01 02 [11:48:19]Write to MH i2c: E2 08 00 A9 38 80 0D 01 02 00 00 00 00 5A [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 A9 38 00 90 00 55 [11:48:19]RAPDU: 90 00 [11:48:19]wFMCommunicate OK [11:48:19]wFMCommunicate request_size=255 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 BA 00 00 00 F4 03 04 00 85 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 10 01 [11:48:19]Write to MH i2c: E2 02 01 AA 38 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 BA 00 00 00 F4 03 04 00 85 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 10 01 00 00 1E [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 AA 38 00 90 00 56 [11:48:19]RAPDU: 90 00 [11:48:19]wFMCommunicate OK [11:48:19]wFMCommunicate request_size=16 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C7 64 67 29 6F BC [11:48:19]Write to MH i2c: E2 13 00 AB 38 80 0D 02 02 0B 00 00 35 04 06 00 C7 64 67 29 6F BC 00 00 98 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 03 00 AB 38 00 90 00 57 [11:48:19]RAPDU: 90 00 [11:48:19]wFMCommunicate OK [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 0D 03 02 [11:48:19]Write to MH i2c: E2 08 00 AC 38 80 0D 03 02 00 00 00 00 5F [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 0B 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 0B 00 AC 38 00 FC 84 F4 5B 12 37 CB 23 90 00 66 [11:48:19]RAPDU: FC 84 F4 5B 12 37 CB 23 90 00 [11:48:19]wFMCommunicate OK [11:48:19]SAM_PROTO_SignData done [11:48:19]FM_MakeSignedData done [11:48:19]CreateOFDProtocolMessage [11:48:19]wFMCommunicate request_size=4 [11:48:19]MH_SAM_APDU [11:48:19]CAPDU: 80 11 00 00 [11:48:19]Write to MH i2c: E2 08 00 AD 38 80 11 00 00 00 00 00 00 5F [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:19]Read from MH i2c: E2 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 17 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: E2 17 00 AD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [11:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:19]wFMCommunicate OK [11:48:19]CreateOFDProtocolMessage done [11:48:19]OFDSenderStorePacket 69796 [11:48:19]StoreOFDPacket docnum=69796 [11:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7D 28 0D 01 F6 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 BA 00 00 00 F4 03 04 00 85 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 10 01 00 35 04 06 00 C7 64 67 29 6F BC FC 84 F4 5B 12 37 CB 23 [11:48:19]CheckFolder [11:48:19]dirname=/storage/ofd_packets [11:48:19]CheckFolder done [11:48:19]ProducePacketName [11:48:19]name=ofd_packets/00069796 [11:48:19]NVStorageSaveData ofd_packets/00069796 [11:48:19]File name is /storage/ofd_packets/00069796 [11:48:19]Write 307 bytes [11:48:19]NVStorageSaveData done [11:48:19]OFDSenderStorePacket done [11:48:19]KKMCreateOFDPacket done [11:48:19]NVStorageSaveData kkm_last_timestamp [11:48:19]File name is /storage/kkm_last_timestamp [11:48:19]Write 4 bytes [11:48:19]NVStorageSaveData done [11:48:19]ExternCall_PrintAddStr [11:48:19]wPrintStart [11:48:19]Write to MH i2c: 01 00 00 AE 38 E6 [11:48:19]Write i2c OK [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 [11:48:19]MH_I2C_Read... [11:48:19]Read from MH i2c: 01 07 00 AE 38 00 00 00 00 00 FF 0F FB [11:48:19]RasterBufferAndPrint [11:48:19]line Счет N : (1)2885537 [11:48:19]line ИНН: 02508201610067 [11:48:19]line Контрольно-Кассовый Чек [11:48:19]line ПРОДАЖА [11:48:19]line ТРК (МРК, ГНК) : 11 [11:48:19]line Товар: 2710194240 [11:48:19]line D-ENERGY Дт-К-2 [11:48:19]line 12.960 * 77.20 [11:48:19]line = 1000.51 [11:48:19]line НДС 12% НСП 1% [11:48:19]line > о реализуемом товаре [11:48:19]line ОКРУГЛЕНИЕ: -0.51 [11:48:19]line ИТОГО: 1000.00 [11:48:19]line Внесено: 1000.00 [11:48:19]line СДАЧА: 0.00 [11:48:19]line НСП 1% : 8.85 [11:48:19]line НДС 12% : 106.25 [11:48:19]line Наличными: 1000.00 [11:48:19]line Безнал.: 0.00 [11:48:19]line Место: АЗС № 85 "Партнер Нефть" [11:48:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:48:19]line СНО: Общий режим [11:48:19]line Чек 186 21.10.2024 11:48 [11:48:19]line Смена: 194 ФФД: 1.0 [11:48:19]line ЗНМ: 0300000167 [11:48:19]line РНМ: 0000000000156251 [11:48:19]line Версия ККМ: v1.0 [11:48:19]line ФМ: 0000000000963346 [11:48:19]line ФД: 69796 [11:48:19]line ФПД: 219234041425852 [11:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69796&fm=219234041425852&tin=02508201610067®Number=0000000000156251&sum=100000 [11:48:19]OFD Sender: Processing packet 69796 [packets to send 18, broken 17] [11:48:19]ProducePacketName [11:48:19]name=ofd_packets/00069796 [11:48:19]OFD Sender: To server: pG, [11:48:19]CommunicateWithHost lk.salyk.kg:30040 [11:48:19]ConnectInit lk.salyk.kg [11:48:19]written 0, free lines is 4095 [11:48:19]Connected sock=10 [11:48:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7D 28 0D 01 F6 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 BA 00 00 00 F4 03 04 00 85 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 10 01 00 35 04 06 00 C7 64 67 29 6F BC FC 84 F4 5B 12 37 CB 23 [11:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CD 55 47 00 24 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 39 36 33 33 34 36 10 04 04 00 A4 10 01 00 F4 03 04 00 29 E9 15 67 B6 04 01 00 00 7A 2F 14 E5 41 81 85 2D [11:48:20]CommunicateWithHost err = 0 [11:48:20]CheckOFDResponse [11:48:20]1017 (14) - 77093643461234 [11:48:20]1041 (16) - 0000000000963346 [11:48:20]1040 (4) - 69796 [11:48:20]1012 (4) - 21.10.2024 05:39 [11:48:20]1206 (1) - 0 [11:48:20]OFD Sender: Remove packet 69796 [11:48:20]ProducePacketName [11:48:20]name=ofd_packets/00069796 [11:48:20]NVStorageDeleteData [11:48:20]Write to MH i2c: 01 00 00 D9 38 11 [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: 01 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: 01 07 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: 01 07 00 D9 38 00 00 00 00 00 F5 0C 19 [11:48:20]RasterBufferAndPrint [11:48:20]line [11:48:20]line [11:48:20]line [11:48:20]line [11:48:20]line [11:48:20]written 0, free lines is 3324 [11:48:20]MH_Cut [11:48:20]Write to MH i2c: D1 01 00 E0 38 01 EA [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: D1 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: D1 01 00 [11:48:20]MH_I2C_Read... [11:48:20]Read from MH i2c: D1 01 00 E0 38 00 E9 [11:48:20]Write to MH i2c: 01 00 00 E1 38 19 [11:48:20]Write i2c OK [11:48:20]MH_I2C_Read... [11:48:20]OFD Sender: No OFD packet to send [11:48:21]*** Cut start [11:48:21]*** Partial cut [11:48:21]*** CUTSNS_PIN = 1 [11:48:21]*** CUTSNS_PIN = 0 [11:48:21]*** Brake cut motor [11:48:21]Read from MH i2c: 01 [11:48:21]MH_I2C_Read... [11:48:21]*** Stop cut motor [11:48:21]*** Cut end [11:48:21]Read from MH i2c: 01 07 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: 01 07 00 E1 38 00 00 00 00 00 FF 0F 2E [11:48:21]process_action close_receipt done [11:48:21]requested_data is exist [11:48:21]produce_requested_data [11:48:21]requested_item fm.sn is exist - process it [11:48:21]wFMCommunicate request_size=4 [11:48:21]MH_SAM_APDU [11:48:21]CAPDU: 80 11 00 00 [11:48:21]Write to MH i2c: E2 08 00 E2 38 80 11 00 00 00 00 00 00 94 [11:48:21]Write i2c OK [11:48:21]MH_I2C_Read... [11:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:21]Read from MH i2c: E2 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 17 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 17 00 E2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [11:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:21]wFMCommunicate OK [11:48:21]requested_item fd.num is exist - process it [11:48:21]SAM_PROTO_GetFieldsCounters [11:48:21]wFMCommunicate request_size=4 [11:48:21]MH_SAM_APDU [11:48:21]CAPDU: 80 13 00 00 [11:48:21]Write to MH i2c: E2 08 00 E3 38 80 13 00 00 00 00 00 00 97 [11:48:21]Write i2c OK [11:48:21]MH_I2C_Read... [11:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:21]Read from MH i2c: E2 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 62 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 62 00 E3 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [11:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:21]wFMCommunicate OK [11:48:21]SAM_PROTO_GetFieldsCounters done [11:48:21]requested_item shift.num is exist - process it [11:48:21]requested_item shift.opened is exist - process it [11:48:21]req_shift_opened [11:48:21]FM_GetShiftState [11:48:21]SAM_PROTO_GetShiftState [11:48:21]wFMCommunicate request_size=4 [11:48:21]MH_SAM_APDU [11:48:21]CAPDU: 80 13 01 00 [11:48:21]Write to MH i2c: E2 08 00 E4 38 80 13 01 00 00 00 00 00 99 [11:48:21]Write i2c OK [11:48:21]MH_I2C_Read... [11:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:21]Read from MH i2c: E2 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 0E 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 0E 00 E4 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [11:48:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:48:21]wFMCommunicate OK [11:48:21]SAM_PROTO_GetShiftState done [11:48:21]FM_GetShiftState done [11:48:21]req_shift_opened done [11:48:21]requested_item shift.open_date is exist - process it [11:48:21]req_shift_open_date [11:48:21]req_shift_open_date done [11:48:21]produce_requested_data done [11:48:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69796,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:48:21]process_action_free close_receipt [11:48:21]json_value_free [11:48:21]json_value_free done [11:48:21]process_json_proto returns [11:48:21]Send response to host [11:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69796,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:48:21]free response buf [11:48:21]execute_script done [11:48:21]execute_script returns [11:48:21]free content buf [11:48:21]Sock 8.Close socket [11:48:21]Sock 8.Thread stoped [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:48:58]accept exits with 9 [11:48:58]New connection [11:48:58]New thread 3067313508 created [11:48:58]Thread 3067456868 joined [11:48:58]Waiting for new connection... [11:48:58] Sock 9.Parse request [11:48:58]Sock 9.Check first char [11:48:58]Sock 9.First char is OK [11:48:58]request: POST /json_proto HTTP/1.0 [11:48:58]Method: POST [11:48:58]URL: /json_proto [11:48:58]Method is POST - this is cgi request [11:48:58]url: /json_proto [11:48:58]query_string will be loaded in cgi processing [11:48:58]execute_cgi json_proto POST (null) [11:48:58]execute_cgi path=json_proto method=POST [11:48:58]POST find Content-Length [11:48:58]Host: 172.17.50.3:8080 [11:48:58]Content-Length: 675 [11:48:58]Content-Type: application/json [11:48:58] [11:48:58]POST finish read [11:48:58]Found Content-Length = 675 [11:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [11:48:58]execute_script... [11:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [11:48:58]POST & json_proto [11:48:58]process_json_proto [11:48:58]json parsed OK: [11:48:58]protocol is kg_v1.0 [11:48:58]action value=close_receipt [11:48:58]process_action close_receipt [11:48:58]cmd_close_receipt [11:48:58]MH_GetDate [11:48:58]Write to MH i2c: F0 00 00 E5 38 0C [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: F0 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: F0 09 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: F0 09 00 E5 38 00 AD 3F 16 67 6B 98 1E 66 05 [11:48:58]GetLastDocTimeStamp 1729511301 [11:48:58]current date 1729511341 [11:48:58]FM_GetShiftState [11:48:58]SAM_PROTO_GetShiftState [11:48:58]wFMCommunicate request_size=4 [11:48:58]MH_SAM_APDU [11:48:58]CAPDU: 80 13 01 00 [11:48:58]Write to MH i2c: E2 08 00 E6 38 80 13 01 00 00 00 00 00 9B [11:48:58]Write i2c OK [11:48:58]MH_I2C_Read... [11:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:58]Read from MH i2c: E2 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 0E 00 [11:48:58]MH_I2C_Read... [11:48:58]Read from MH i2c: E2 0E 00 E6 38 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C7 [11:48:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:48:58]wFMCommunicate OK [11:48:58]SAM_PROTO_GetShiftState done [11:48:58]FM_GetShiftState done [11:48:58]opened in 1729469703 [11:48:58]opened+sec_in_day 1729556103 [11:48:58]quantity*price = 60045 [11:48:58]sum+1 = 60047 [11:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 187 21.10.2024 11:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69797 ФПД: 36487525783921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69797&fm=36487525783921&tin=02508201610067®Number=0000000000156251&sum=60000 [11:48:59]StoreToDocumentArchive [11:48:59]shift 194 fd 69797 [11:48:59]save to /storage/0194/doc_00069797 [11:48:59]save last doc name /storage/0194/doc_00069797 to /storage/kkm_last_doc_name [11:48:59]save OK [11:48:59]Clear old archive folders... [11:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:59]tlvbuf is 00CCDE90 [11:48:59]SAM_PROTO_ClearQueue [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 09 00 00 [11:48:59]Write to MH i2c: E2 08 00 F3 38 80 09 00 00 00 00 00 00 9D [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 F3 38 00 90 00 9F [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_ClearQueue done [11:48:59]KKMCreateOFDPacket [11:48:59]OFDProtocolAddRootSTLVToBuf [11:48:59]FM_MakeSignedData [11:48:59]FM_MakeSignedData [11:48:59]SAM_PROTO_SignData [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 0D 01 02 [11:48:59]Write to MH i2c: E2 08 00 F4 38 80 0D 01 02 00 00 00 00 A5 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 F4 38 00 90 00 A0 [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=255 [11:48:59]MH_SAM_APDU [11:48: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 BB 00 00 00 F4 03 04 00 AD 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 10 01 00 35 04 06 00 21 2F 6A 03 [11:48:59]Write to MH i2c: E2 02 01 F5 38 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 BB 00 00 00 F4 03 04 00 AD 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 10 01 00 35 04 06 00 21 2F 6A 03 00 00 3E [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 F5 38 00 90 00 A1 [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=7 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 0D 02 02 02 59 71 [11:48:59]Write to MH i2c: E2 0A 00 F6 38 80 0D 02 02 02 00 59 71 00 00 76 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 03 00 F6 38 00 90 00 A2 [11:48:59]RAPDU: 90 00 [11:48:59]wFMCommunicate OK [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 0D 03 02 [11:48:59]Write to MH i2c: E2 08 00 F7 38 80 0D 03 02 00 00 00 00 AA [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0B 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0B 00 F7 38 00 74 CC 8B FE 97 5B 9A 8F 90 00 8F [11:48:59]RAPDU: 74 CC 8B FE 97 5B 9A 8F 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_SignData done [11:48:59]FM_MakeSignedData done [11:48:59]CreateOFDProtocolMessage [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 11 00 00 [11:48:59]Write to MH i2c: E2 08 00 F8 38 80 11 00 00 00 00 00 00 AA [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:00]Read from MH i2c: E2 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 17 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 17 00 F8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [11:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:49:00]wFMCommunicate OK [11:49:00]CreateOFDProtocolMessage done [11:49:00]OFDSenderStorePacket 69797 [11:49:00]StoreOFDPacket docnum=69797 [11:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 19 96 04 01 33 29 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 BB 00 00 00 F4 03 04 00 AD 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 10 01 00 35 04 06 00 21 2F 6A 03 59 71 74 CC 8B FE 97 5B 9A 8F [11:49:00]CheckFolder [11:49:00]dirname=/storage/ofd_packets [11:49:00]CheckFolder done [11:49:00]ProducePacketName [11:49:00]name=ofd_packets/00069797 [11:49:00]NVStorageSaveData ofd_packets/00069797 [11:49:00]File name is /storage/ofd_packets/00069797 [11:49:00]Write 298 bytes [11:49:00]NVStorageSaveData done [11:49:00]OFDSenderStorePacket done [11:49:00]KKMCreateOFDPacket done [11:49:00]NVStorageSaveData kkm_last_timestamp [11:49:00]File name is /storage/kkm_last_timestamp [11:49:00]Write 4 bytes [11:49:00]NVStorageSaveData done [11:49:00]ExternCall_PrintAddStr [11:49:00]wPrintStart [11:49:00]Write to MH i2c: 01 00 00 F9 38 31 [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 F9 38 00 00 00 00 00 FF 0F 46 [11:49:00]RasterBufferAndPrint [11:49:00]line Счет N : (1)2885538 [11:49:00]line ИНН: 02508201610067 [11:49:00]line Контрольно-Кассовый Чек [11:49:00]line ПРОДАЖА [11:49:00]line ТРК (МРК, ГНК) : 51 [11:49:00]line Товар: 2710194210 [11:49:00]line ДТ-К-5 [11:49:00]line 7.880 * 76.20 [11:49:00]line = 600.46 [11:49:00]line НДС 12% НСП 1% [11:49:00]line > о реализуемом товаре [11:49:00]line ОКРУГЛЕНИЕ: -0.46 [11:49:00]line ИТОГО: 600.00 [11:49:00]line Внесено: 600.00 [11:49:00]line СДАЧА: 0.00 [11:49:00]line НСП 1% : 5.31 [11:49:00]line НДС 12% : 63.77 [11:49:00]line Наличными: 600.00 [11:49:00]line Безнал.: 0.00 [11:49:00]line Место: АЗС № 85 "Партнер Нефть" [11:49:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:49:00]line СНО: Общий режим [11:49:00]line Чек 187 21.10.2024 11:49 [11:49:00]line Смена: 194 ФФД: 1.0 [11:49:00]line ЗНМ: 0300000167 [11:49:00]line РНМ: 0000000000156251 [11:49:00]line Версия ККМ: v1.0 [11:49:00]line ФМ: 0000000000963346 [11:49:00]line ФД: 69797 [11:49:00]line ФПД: 36487525783921 [11:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69797&fm=36487525783921&tin=02508201610067®Number=0000000000156251&sum=60000 [11:49:00]OFD Sender: Processing packet 69797 [packets to send 18, broken 17] [11:49:00]ProducePacketName [11:49:00]name=ofd_packets/00069797 [11:49:00]OFD Sender: To server: pG, [11:49:00]CommunicateWithHost lk.salyk.kg:30040 [11:49:00]ConnectInit lk.salyk.kg [11:49:00]written 0, free lines is 4095 [11:49:00]Connected sock=10 [11:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 19 96 04 01 33 29 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 BB 00 00 00 F4 03 04 00 AD 3F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 10 01 00 35 04 06 00 21 2F 6A 03 59 71 74 CC 8B FE 97 5B 9A 8F [11:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 A4 47 00 93 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 10 01 00 F4 03 04 00 51 E9 15 67 B6 04 01 00 00 0C DD 4C 16 29 8D C8 72 [11:49:00]CommunicateWithHost err = 0 [11:49:00]CheckOFDResponse [11:49:00]1017 (14) - 77093643461234 [11:49:00]1041 (16) - 0000000000963346 [11:49:00]1040 (4) - 69797 [11:49:00]1012 (4) - 21.10.2024 05:40 [11:49:00]1206 (1) - 0 [11:49:00]OFD Sender: Remove packet 69797 [11:49:00]ProducePacketName [11:49:00]name=ofd_packets/00069797 [11:49:00]NVStorageDeleteData [11:49:00]Write to MH i2c: 01 00 00 24 39 5D [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: 01 07 00 24 39 00 00 00 00 00 DC 0C 4C [11:49:00]RasterBufferAndPrint [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]line [11:49:00]written 0, free lines is 3297 [11:49:00]MH_Cut [11:49:00]Write to MH i2c: D1 01 00 2B 39 01 36 [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 01 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: D1 01 00 2B 39 00 35 [11:49:00]Write to MH i2c: 01 00 00 2C 39 65 [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:01]OFD Sender: No OFD packet to send [11:49:01]*** Cut start [11:49:01]*** Partial cut [11:49:01]*** CUTSNS_PIN = 1 [11:49:01]*** CUTSNS_PIN = 0 [11:49:01]*** Brake cut motor [11:49:02]Read from MH i2c: 01 [11:49:02]MH_I2C_Read... [11:49:02]*** Stop cut motor [11:49:02]*** Cut end [11:49:02]Read from MH i2c: 01 07 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 2C 39 00 00 00 00 00 FF 0F 7A [11:49:02]process_action close_receipt done [11:49:02]requested_data is exist [11:49:02]produce_requested_data [11:49:02]requested_item fm.sn is exist - process it [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 11 00 00 [11:49:02]Write to MH i2c: E2 08 00 2D 39 80 11 00 00 00 00 00 00 E0 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 17 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 17 00 2D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [11:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:49:02]wFMCommunicate OK [11:49:02]requested_item fd.num is exist - process it [11:49:02]SAM_PROTO_GetFieldsCounters [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 00 00 [11:49:02]Write to MH i2c: E2 08 00 2E 39 80 13 00 00 00 00 00 00 E3 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 62 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 62 00 2E 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [11:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetFieldsCounters done [11:49:02]requested_item shift.num is exist - process it [11:49:02]requested_item shift.opened is exist - process it [11:49:02]req_shift_opened [11:49:02]FM_GetShiftState [11:49:02]SAM_PROTO_GetShiftState [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 01 00 [11:49:02]Write to MH i2c: E2 08 00 2F 39 80 13 01 00 00 00 00 00 E5 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 2F 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [11:49:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetShiftState done [11:49:02]FM_GetShiftState done [11:49:02]req_shift_opened done [11:49:02]requested_item shift.open_date is exist - process it [11:49:02]req_shift_open_date [11:49:02]req_shift_open_date done [11:49:02]produce_requested_data done [11:49:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69797,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:49:02]process_action_free close_receipt [11:49:02]json_value_free [11:49:02]json_value_free done [11:49:02]process_json_proto returns [11:49:02]Send response to host [11:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69797,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:49:02]free response buf [11:49:02]execute_script done [11:49:02]execute_script returns [11:49:02]free content buf [11:49:02]Sock 9.Close socket [11:49:02]Sock 9.Thread stoped [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:10]accept exits with 8 [11:52:10]New connection [11:52:10]New thread 3067456868 created [11:52:10]Thread 3067313508 joined [11:52:10]Waiting for new connection... [11:52:10] Sock 8.Parse request [11:52:10]Sock 8.Check first char [11:52:10]Sock 8.First char is OK [11:52:10]request: POST /json_proto HTTP/1.0 [11:52:10]Method: POST [11:52:10]URL: /json_proto [11:52:10]Method is POST - this is cgi request [11:52:10]url: /json_proto [11:52:10]query_string will be loaded in cgi processing [11:52:10]execute_cgi json_proto POST (null) [11:52:10]execute_cgi path=json_proto method=POST [11:52:10]POST find Content-Length [11:52:10]Host: 172.17.50.3:8080 [11:52:10]Content-Length: 678 [11:52:10]Content-Type: application/json [11:52:10] [11:52:10]POST finish read [11:52:10]Found Content-Length = 678 [11:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885539", "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" : 4.050, "sum" : 300.51, "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" ] } } [11:52:10]execute_script... [11:52: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)2885539", "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" : 4.050, "sum" : 300.51, "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" ] } } [11:52:10]POST & json_proto [11:52:10]process_json_proto [11:52:10]json parsed OK: [11:52:10]protocol is kg_v1.0 [11:52:10]action value=close_receipt [11:52:10]process_action close_receipt [11:52:10]cmd_close_receipt [11:52:10]MH_GetDate [11:52:10]Write to MH i2c: F0 00 00 30 39 58 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 09 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: F0 09 00 30 39 00 6E 40 16 67 6B 98 1E 66 13 [11:52:10]GetLastDocTimeStamp 1729511341 [11:52:10]current date 1729511534 [11:52:10]FM_GetShiftState [11:52:10]SAM_PROTO_GetShiftState [11:52:10]wFMCommunicate request_size=4 [11:52:10]MH_SAM_APDU [11:52:10]CAPDU: 80 13 01 00 [11:52:10]Write to MH i2c: E2 08 00 31 39 80 13 01 00 00 00 00 00 E7 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0E 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 0E 00 31 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [11:52:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:52:10]wFMCommunicate OK [11:52:10]SAM_PROTO_GetShiftState done [11:52:10]FM_GetShiftState done [11:52:10]opened in 1729469703 [11:52:10]opened+sec_in_day 1729556103 [11:52:10]quantity*price = 30051 [11:52:10]sum+1 = 30052 [11:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 188 21.10.2024 11:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69798 ФПД: 165064593688116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69798&fm=165064593688116&tin=02508201610067®Number=0000000000156251&sum=30000 [11:52:11]StoreToDocumentArchive [11:52:11]shift 194 fd 69798 [11:52:11]save to /storage/0194/doc_00069798 [11:52:11]save last doc name /storage/0194/doc_00069798 to /storage/kkm_last_doc_name [11:52:11]save OK [11:52:11]Clear old archive folders... [11:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:11]tlvbuf is 00CFC720 [11:52:11]SAM_PROTO_ClearQueue [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 09 00 00 [11:52:11]Write to MH i2c: E2 08 00 3E 39 80 09 00 00 00 00 00 00 E9 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_ClearQueue done [11:52:11]KKMCreateOFDPacket [11:52:11]OFDProtocolAddRootSTLVToBuf [11:52:11]FM_MakeSignedData [11:52:11]FM_MakeSignedData [11:52:11]SAM_PROTO_SignData [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 0D 01 02 [11:52:11]Write to MH i2c: E2 08 00 3F 39 80 0D 01 02 00 00 00 00 F1 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 03 00 3F 39 00 90 00 EC [11:52:11]RAPDU: 90 00 [11:52:11]wFMCommunicate OK [11:52:11]wFMCommunicate request_size=255 [11:52:11]MH_SAM_APDU [11:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 BC 00 00 00 F4 03 04 00 6E 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 10 01 00 35 04 06 00 96 [11:52:11]Write to MH i2c: E2 02 01 40 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 BC 00 00 00 F4 03 04 00 6E 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 10 01 00 35 04 06 00 96 00 00 98 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 03 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 03 00 40 39 00 90 00 ED [11:52:12]RAPDU: 90 00 [11:52:12]wFMCommunicate OK [11:52:12]wFMCommunicate request_size=10 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 0D 02 02 05 20 18 78 C6 34 [11:52:12]Write to MH i2c: E2 0D 00 41 39 80 0D 02 02 05 00 20 18 78 C6 34 00 00 A8 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 03 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 03 00 41 39 00 90 00 EE [11:52:12]RAPDU: 90 00 [11:52:12]wFMCommunicate OK [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 0D 03 02 [11:52:12]Write to MH i2c: E2 08 00 42 39 80 0D 03 02 00 00 00 00 F6 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0B 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0B 00 42 39 00 42 47 4E 34 C4 BB 29 A6 90 00 50 [11:52:12]RAPDU: 42 47 4E 34 C4 BB 29 A6 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_SignData done [11:52:12]FM_MakeSignedData done [11:52:12]CreateOFDProtocolMessage [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 11 00 00 [11:52:12]Write to MH i2c: E2 08 00 43 39 80 11 00 00 00 00 00 00 F6 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 43 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [11:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:52:12]wFMCommunicate OK [11:52:12]CreateOFDProtocolMessage done [11:52:12]OFDSenderStorePacket 69798 [11:52:12]StoreOFDPacket docnum=69798 [11:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B F1 07 01 44 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 BC 00 00 00 F4 03 04 00 6E 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 10 01 00 35 04 06 00 96 20 18 78 C6 34 42 47 4E 34 C4 BB 29 A6 [11:52:12]CheckFolder [11:52:12]dirname=/storage/ofd_packets [11:52:12]CheckFolder done [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00069798 [11:52:12]NVStorageSaveData ofd_packets/00069798 [11:52:12]File name is /storage/ofd_packets/00069798 [11:52:12]Write 301 bytes [11:52:12]NVStorageSaveData done [11:52:12]OFDSenderStorePacket done [11:52:12]KKMCreateOFDPacket done [11:52:12]NVStorageSaveData kkm_last_timestamp [11:52:12]File name is /storage/kkm_last_timestamp [11:52:12]Write 4 bytes [11:52:12]NVStorageSaveData done [11:52:12]ExternCall_PrintAddStr [11:52:12]wPrintStart [11:52:12]Write to MH i2c: 01 00 00 44 39 7D [11:52:12]OFD Sender: Processing packet 69798 [packets to send 18, broken 17] [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00069798 [11:52:12]OFD Sender: To server: pG, [11:52:12]CommunicateWithHost lk.salyk.kg:30040 [11:52:12]ConnectInit lk.salyk.kg [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 44 39 00 00 00 00 00 FF 0F 92 [11:52:12]RasterBufferAndPrint [11:52:12]line Счет N : (1)2885539 [11:52:12]line ИНН: 02508201610067 [11:52:12]line Контрольно-Кассовый Чек [11:52:12]line ПРОДАЖА [11:52:12]line ТРК (МРК, ГНК) : 33 [11:52:12]line Товар: 2710124500 [11:52:12]line Аи-95-К-5 [11:52:12]line 4.050 * 74.20 [11:52:12]line = 300.51 [11:52:12]line НДС 12% НСП 1% [11:52:12]line > о реализуемом товаре [11:52:12]line ОКРУГЛЕНИЕ: -0.51 [11:52:12]line ИТОГО: 300.00 [11:52:12]line Внесено: 300.00 [11:52:12]line СДАЧА: 0.00 [11:52:12]line НСП 1% : 2.66 [11:52:12]line НДС 12% : 31.91 [11:52:12]line Наличными: 300.00 [11:52:12]line Безнал.: 0.00 [11:52:12]line Место: АЗС № 85 "Партнер Нефть" [11:52:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:52:12]line СНО: Общий режим [11:52:12]line Чек 188 21.10.2024 11:52 [11:52:12]line Смена: 194 ФФД: 1.0 [11:52:12]line ЗНМ: 0300000167 [11:52:12]line РНМ: 0000000000156251 [11:52:12]line Версия ККМ: v1.0 [11:52:12]line ФМ: 0000000000963346 [11:52:12]line ФД: 69798 [11:52:12]line ФПД: 165064593688116 [11:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69798&fm=165064593688116&tin=02508201610067®Number=0000000000156251&sum=30000 [11:52:12]Connected sock=9 [11:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B F1 07 01 44 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 BC 00 00 00 F4 03 04 00 6E 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 10 01 00 35 04 06 00 96 20 18 78 C6 34 42 47 4E 34 C4 BB 29 A6 [11:52:12]written 0, free lines is 4095 [11:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 ED 47 00 26 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 10 01 00 F4 03 04 00 11 EA 15 67 B6 04 01 00 00 BD 62 47 4A A2 6E 8F 44 [11:52:12]CommunicateWithHost err = 0 [11:52:12]CheckOFDResponse [11:52:12]1017 (14) - 77093643461234 [11:52:12]1041 (16) - 0000000000963346 [11:52:12]1040 (4) - 69798 [11:52:12]1012 (4) - 21.10.2024 05:43 [11:52:12]1206 (1) - 0 [11:52:12]OFD Sender: Remove packet 69798 [11:52:12]ProducePacketName [11:52:12]name=ofd_packets/00069798 [11:52:12]NVStorageDeleteData [11:52:13]Write to MH i2c: 01 00 00 6F 39 A8 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 6F 39 00 00 00 00 00 E4 0C 9F [11:52:13]RasterBufferAndPrint [11:52:13]line [11:52:13]line [11:52:13]line [11:52:13]line [11:52:13]line [11:52:13]written 0, free lines is 3306 [11:52:13]MH_Cut [11:52:13]Write to MH i2c: D1 01 00 76 39 01 81 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: D1 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: D1 01 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: D1 01 00 76 39 00 80 [11:52:13]Write to MH i2c: 01 00 00 77 39 B0 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]OFD Sender: No OFD packet to send [11:52:13]*** Cut start [11:52:13]*** Partial cut [11:52:13]*** CUTSNS_PIN = 1 [11:52:13]*** CUTSNS_PIN = 0 [11:52:14]*** Brake cut motor [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]*** Stop cut motor [11:52:14]*** Cut end [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 77 39 00 00 00 00 00 FF 0F C5 [11:52:14]process_action close_receipt done [11:52:14]requested_data is exist [11:52:14]produce_requested_data [11:52:14]requested_item fm.sn is exist - process it [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 11 00 00 [11:52:14]Write to MH i2c: E2 08 00 78 39 80 11 00 00 00 00 00 00 2B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 78 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [11:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:52:14]wFMCommunicate OK [11:52:14]requested_item fd.num is exist - process it [11:52:14]SAM_PROTO_GetFieldsCounters [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 13 00 00 [11:52:14]Write to MH i2c: E2 08 00 79 39 80 13 00 00 00 00 00 00 2E [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 62 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 62 00 79 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_GetFieldsCounters done [11:52:14]requested_item shift.num is exist - process it [11:52:14]requested_item shift.opened is exist - process it [11:52:14]req_shift_opened [11:52:14]FM_GetShiftState [11:52:14]SAM_PROTO_GetShiftState [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 13 01 00 [11:52:14]Write to MH i2c: E2 08 00 7A 39 80 13 01 00 00 00 00 00 30 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0E 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0E 00 7A 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5C [11:52:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_GetShiftState done [11:52:14]FM_GetShiftState done [11:52:14]req_shift_opened done [11:52:14]requested_item shift.open_date is exist - process it [11:52:14]req_shift_open_date [11:52:14]req_shift_open_date done [11:52:14]produce_requested_data done [11:52:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69798,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:52:14]process_action_free close_receipt [11:52:14]json_value_free [11:52:14]json_value_free done [11:52:14]process_json_proto returns [11:52:14]Send response to host [11:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69798,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:52:14]free response buf [11:52:14]execute_script done [11:52:14]execute_script returns [11:52:14]free content buf [11:52:14]Sock 8.Close socket [11:52:14]Sock 8.Thread stoped [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: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]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:13]OFD Sender: No OFD packet to send [11:54:16]accept exits with 10 [11:54:16]New connection [11:54:16]New thread 3067313508 created [11:54:16]Thread 3067456868 joined [11:54:16]Waiting for new connection... [11:54:16] Sock 10.Parse request [11:54:16]Sock 10.Check first char [11:54:16]Sock 10.First char is OK [11:54:16]request: POST /json_proto HTTP/1.0 [11:54:16]Method: POST [11:54:16]URL: /json_proto [11:54:16]Method is POST - this is cgi request [11:54:16]url: /json_proto [11:54:16]query_string will be loaded in cgi processing [11:54:16]execute_cgi json_proto POST (null) [11:54:16]execute_cgi path=json_proto method=POST [11:54:16]POST find Content-Length [11:54:16]Host: 172.17.50.3:8080 [11:54:16]Content-Length: 679 [11:54:16]Content-Type: application/json [11:54:16] [11:54:16]POST finish read [11:54:16]Found Content-Length = 679 [11:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885540", "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.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:54:16]execute_script... [11:54:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885540", "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.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:54:16]POST & json_proto [11:54:16]process_json_proto [11:54:16]json parsed OK: [11:54:16]protocol is kg_v1.0 [11:54:16]action value=close_receipt [11:54:16]process_action close_receipt [11:54:16]cmd_close_receipt [11:54:16]MH_GetDate [11:54:16]Write to MH i2c: F0 00 00 7B 39 A3 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 7B 39 00 EB 40 16 67 6B 98 1E 66 DB [11:54:16]GetLastDocTimeStamp 1729511534 [11:54:16]current date 1729511659 [11:54:16]FM_GetShiftState [11:54:16]SAM_PROTO_GetShiftState [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 13 01 00 [11:54:16]Write to MH i2c: E2 08 00 7C 39 80 13 01 00 00 00 00 00 32 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 7C 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [11:54:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_GetShiftState done [11:54:16]FM_GetShiftState done [11:54:16]opened in 1729469703 [11:54:16]opened+sec_in_day 1729556103 [11:54:16]quantity*price = 80061 [11:54:16]sum+1 = 80063 [11:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 189 21.10.2024 11:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69799 ФПД: 6290158450842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69799&fm=6290158450842&tin=02508201610067®Number=0000000000156251&sum=80000 [11:54:17]StoreToDocumentArchive [11:54:17]shift 194 fd 69799 [11:54:17]save to /storage/0194/doc_00069799 [11:54:17]save last doc name /storage/0194/doc_00069799 to /storage/kkm_last_doc_name [11:54:17]save OK [11:54:17]Clear old archive folders... [11:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:17]tlvbuf is 00C7C810 [11:54:17]SAM_PROTO_ClearQueue [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 09 00 00 [11:54:17]Write to MH i2c: E2 08 00 89 39 80 09 00 00 00 00 00 00 34 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 89 39 00 90 00 36 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_ClearQueue done [11:54:17]KKMCreateOFDPacket [11:54:17]OFDProtocolAddRootSTLVToBuf [11:54:17]FM_MakeSignedData [11:54:17]FM_MakeSignedData [11:54:17]SAM_PROTO_SignData [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 01 02 [11:54:17]Write to MH i2c: E2 08 00 8A 39 80 0D 01 02 00 00 00 00 3C [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 8A 39 00 90 00 37 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=255 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 FA 03 00 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 BD 00 00 00 F4 03 04 00 EB 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 10 01 00 35 04 06 00 05 [11:54:17]Write to MH i2c: E2 02 01 8B 39 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 BD 00 00 00 F4 03 04 00 EB 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 10 01 00 35 04 06 00 05 00 00 16 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 8B 39 00 90 00 38 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=10 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 05 B8 8A A8 F8 9A [11:54:17]Write to MH i2c: E2 0D 00 8C 39 80 0D 02 02 05 00 B8 8A A8 F8 9A 00 00 C5 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 8C 39 00 90 00 39 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 03 02 [11:54:17]Write to MH i2c: E2 08 00 8D 39 80 0D 03 02 00 00 00 00 41 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 0B 00 8D 39 00 3F 3F DA 49 52 EB 8D 99 90 00 46 [11:54:17]RAPDU: 3F 3F DA 49 52 EB 8D 99 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_SignData done [11:54:17]FM_MakeSignedData done [11:54:17]CreateOFDProtocolMessage [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 11 00 00 [11:54:17]Write to MH i2c: E2 08 00 8E 39 80 11 00 00 00 00 00 00 41 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 17 00 8E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [11:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:54:17]wFMCommunicate OK [11:54:17]CreateOFDProtocolMessage done [11:54:17]OFDSenderStorePacket 69799 [11:54:17]StoreOFDPacket docnum=69799 [11:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9A 0E 07 01 3D FD 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 BD 00 00 00 F4 03 04 00 EB 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 10 01 00 35 04 06 00 05 B8 8A A8 F8 9A 3F 3F DA 49 52 EB 8D 99 [11:54:17]CheckFolder [11:54:17]dirname=/storage/ofd_packets [11:54:17]CheckFolder done [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00069799 [11:54:17]NVStorageSaveData ofd_packets/00069799 [11:54:17]File name is /storage/ofd_packets/00069799 [11:54:17]Write 301 bytes [11:54:17]NVStorageSaveData done [11:54:17]OFDSenderStorePacket done [11:54:17]KKMCreateOFDPacket done [11:54:17]NVStorageSaveData kkm_last_timestamp [11:54:17]File name is /storage/kkm_last_timestamp [11:54:17]Write 4 bytes [11:54:17]NVStorageSaveData done [11:54:17]ExternCall_PrintAddStr [11:54:17]wPrintStart [11:54:17]Write to MH i2c: 01 00 00 8F 39 C8 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 8F 39 00 00 00 00 00 FF 0F DD [11:54:17]RasterBufferAndPrint [11:54:17]line Счет N : (1)2885540 [11:54:17]line ИНН: 02508201610067 [11:54:17]line Контрольно-Кассовый Чек [11:54:17]line ПРОДАЖА [11:54:17]line ТРК (МРК, ГНК) : 43 [11:54:17]line Товар: 2710124500 [11:54:17]line Аи-95-К-5 [11:54:17]line 10.790 * 74.20 [11:54:17]line = 800.62 [11:54:17]line НДС 12% НСП 1% [11:54:17]line > о реализуемом товаре [11:54:17]line ОКРУГЛЕНИЕ: -0.62 [11:54:17]line ИТОГО: 800.00 [11:54:17]line Внесено: 800.00 [11:54:17]line СДАЧА: 0.00 [11:54:17]line НСП 1% : 7.08 [11:54:17]line НДС 12% : 85.02 [11:54:17]line Наличными: 800.00 [11:54:17]line Безнал.: 0.00 [11:54:17]line Место: АЗС № 85 "Партнер Нефть" [11:54:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:54:17]line СНО: Общий режим [11:54:17]line Чек 189 21.10.2024 11:54 [11:54:17]line Смена: 194 ФФД: 1.0 [11:54:17]line ЗНМ: 0300000167 [11:54:17]line РНМ: 0000000000156251 [11:54:17]line Версия ККМ: v1.0 [11:54:17]line ФМ: 0000000000963346 [11:54:17]line ФД: 69799 [11:54:17]line ФПД: 6290158450842 [11:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69799&fm=6290158450842&tin=02508201610067®Number=0000000000156251&sum=80000 [11:54:18]OFD Sender: Processing packet 69799 [packets to send 18, broken 17] [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00069799 [11:54:18]OFD Sender: To server: pG, [11:54:18]CommunicateWithHost lk.salyk.kg:30040 [11:54:18]ConnectInit lk.salyk.kg [11:54:18]written 0, free lines is 4095 [11:54:18]Connected sock=9 [11:54:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9A 0E 07 01 3D FD 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 BD 00 00 00 F4 03 04 00 EB 40 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 10 01 00 35 04 06 00 05 B8 8A A8 F8 9A 3F 3F DA 49 52 EB 8D 99 [11:54:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 3F 47 00 36 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 10 01 00 F4 03 04 00 8F EA 15 67 B6 04 01 00 00 80 9C 26 8F 27 B5 BC 99 [11:54:18]CommunicateWithHost err = 0 [11:54:18]CheckOFDResponse [11:54:18]1017 (14) - 77093643461234 [11:54:18]1041 (16) - 0000000000963346 [11:54:18]1040 (4) - 69799 [11:54:18]1012 (4) - 21.10.2024 05:45 [11:54:18]1206 (1) - 0 [11:54:18]OFD Sender: Remove packet 69799 [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00069799 [11:54:18]NVStorageDeleteData [11:54:18]Write to MH i2c: 01 00 00 BA 39 F3 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 BA 39 00 00 00 00 00 FA 0C 00 [11:54:18]RasterBufferAndPrint [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]written 0, free lines is 3329 [11:54:18]MH_Cut [11:54:18]Write to MH i2c: D1 01 00 C1 39 01 CC [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 C1 39 00 CB [11:54:18]Write to MH i2c: 01 00 00 C2 39 FB [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]OFD Sender: No OFD packet to send [11:54:19]*** Cut start [11:54:19]*** Partial cut [11:54:19]*** CUTSNS_PIN = 1 [11:54:19]*** CUTSNS_PIN = 0 [11:54:19]*** Brake cut motor [11:54:19]Read from MH i2c: 01 [11:54:19]MH_I2C_Read... [11:54:19]*** Stop cut motor [11:54:19]*** Cut end [11:54:19]Read from MH i2c: 01 07 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: 01 07 00 C2 39 00 00 00 00 00 FF 0F 10 [11:54:19]process_action close_receipt done [11:54:19]requested_data is exist [11:54:19]produce_requested_data [11:54:19]requested_item fm.sn is exist - process it [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 11 00 00 [11:54:19]Write to MH i2c: E2 08 00 C3 39 80 11 00 00 00 00 00 00 76 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 17 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 17 00 C3 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [11:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:54:19]wFMCommunicate OK [11:54:19]requested_item fd.num is exist - process it [11:54:19]SAM_PROTO_GetFieldsCounters [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 13 00 00 [11:54:19]Write to MH i2c: E2 08 00 C4 39 80 13 00 00 00 00 00 00 79 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 C4 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetFieldsCounters done [11:54:20]requested_item shift.num is exist - process it [11:54:20]requested_item shift.opened is exist - process it [11:54:20]req_shift_opened [11:54:20]FM_GetShiftState [11:54:20]SAM_PROTO_GetShiftState [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 13 01 00 [11:54:20]Write to MH i2c: E2 08 00 C5 39 80 13 01 00 00 00 00 00 7B [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 C5 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A7 [11:54:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetShiftState done [11:54:20]FM_GetShiftState done [11:54:20]req_shift_opened done [11:54:20]requested_item shift.open_date is exist - process it [11:54:20]req_shift_open_date [11:54:20]req_shift_open_date done [11:54:20]produce_requested_data done [11:54:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69799,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:54:20]process_action_free close_receipt [11:54:20]json_value_free [11:54:20]json_value_free done [11:54:20]process_json_proto returns [11:54:20]Send response to host [11:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69799,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:54:20]free response buf [11:54:20]execute_script done [11:54:20]execute_script returns [11:54:20]free content buf [11:54:20]Sock 10.Close socket [11:54:20]Sock 10.Thread stoped [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:18]accept exits with 8 [11:59:18]New connection [11:59:18]New thread 3067456868 created [11:59:18]Thread 3067313508 joined [11:59:18]Waiting for new connection... [11:59:18] Sock 8.Parse request [11:59:18]Sock 8.Check first char [11:59:18]Sock 8.First char is OK [11:59:18]request: POST /json_proto HTTP/1.0 [11:59:18]Method: POST [11:59:18]URL: /json_proto [11:59:18]Method is POST - this is cgi request [11:59:18]url: /json_proto [11:59:18]query_string will be loaded in cgi processing [11:59:18]execute_cgi json_proto POST (null) [11:59:18]execute_cgi path=json_proto method=POST [11:59:18]POST find Content-Length [11:59:18]Host: 172.17.50.3:8080 [11:59:18]Content-Length: 767 [11:59:18]Content-Type: application/json [11:59:18] [11:59:18]POST finish read [11:59:18]Found Content-Length = 767 [11:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:18]execute_script... [11:59: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)2885541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:18]POST & json_proto [11:59:18]process_json_proto [11:59:18]json parsed OK: [11:59:18]protocol is kg_v1.0 [11:59:18]action value=close_receipt [11:59:18]process_action close_receipt [11:59:18]cmd_close_receipt [11:59:18]MH_GetDate [11:59:18]Write to MH i2c: F0 00 00 C6 39 EE [11:59:18]Write i2c OK [11:59:18]MH_I2C_Read... [11:59:18]Read from MH i2c: F0 [11:59:18]MH_I2C_Read... [11:59:18]Read from MH i2c: F0 09 00 [11:59:18]MH_I2C_Read... [11:59:18]Read from MH i2c: F0 09 00 C6 39 00 1A 42 16 67 6B 98 1E 66 57 [11:59:18]GetLastDocTimeStamp 1729511659 [11:59:18]current date 1729511962 [11:59:18]FM_GetShiftState [11:59:18]SAM_PROTO_GetShiftState [11:59:18]wFMCommunicate request_size=4 [11:59:18]MH_SAM_APDU [11:59:18]CAPDU: 80 13 01 00 [11:59:18]Write to MH i2c: E2 08 00 C7 39 80 13 01 00 00 00 00 00 7D [11:59:18]Write i2c OK [11:59:18]MH_I2C_Read... [11:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:18]Read from MH i2c: E2 [11:59:18]MH_I2C_Read... [11:59:18]Read from MH i2c: E2 0E 00 [11:59:18]MH_I2C_Read... [11:59:18]Read from MH i2c: E2 0E 00 C7 39 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [11:59:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:59:18]wFMCommunicate OK [11:59:18]SAM_PROTO_GetShiftState done [11:59:18]FM_GetShiftState done [11:59:18]opened in 1729469703 [11:59:18]opened+sec_in_day 1729556103 [11:59:18]quantity*price = 50010 [11:59:18]sum+1 = 50012 [11:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 190 21.10.2024 11:59 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69800 ФПД: 263767795416197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69800&fm=263767795416197&tin=02508201610067®Number=0000000000156251&sum=50011 [11:59:19]StoreToDocumentArchive [11:59:19]shift 194 fd 69800 [11:59:19]save to /storage/0194/doc_00069800 [11:59:19]save last doc name /storage/0194/doc_00069800 to /storage/kkm_last_doc_name [11:59:19]save OK [11:59:19]Clear old archive folders... [11:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:19]tlvbuf is 00C4C540 [11:59:19]SAM_PROTO_ClearQueue [11:59:19]wFMCommunicate request_size=4 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 09 00 00 [11:59:19]Write to MH i2c: E2 08 00 D4 39 80 09 00 00 00 00 00 00 7F [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:19]Read from MH i2c: E2 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 03 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 03 00 D4 39 00 90 00 81 [11:59:19]RAPDU: 90 00 [11:59:19]wFMCommunicate OK [11:59:19]SAM_PROTO_ClearQueue done [11:59:19]KKMCreateOFDPacket [11:59:19]OFDProtocolAddRootSTLVToBuf [11:59:19]FM_MakeSignedData [11:59:19]FM_MakeSignedData [11:59:19]SAM_PROTO_SignData [11:59:19]wFMCommunicate request_size=4 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 0D 01 02 [11:59:19]Write to MH i2c: E2 08 00 D5 39 80 0D 01 02 00 00 00 00 87 [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:19]Read from MH i2c: E2 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 03 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 03 00 D5 39 00 90 00 82 [11:59:19]RAPDU: 90 00 [11:59:19]wFMCommunicate OK [11:59:19]wFMCommunicate request_size=255 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1A 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 10 01 00 35 04 06 00 EF [11:59:19]Write to MH i2c: E2 02 01 D6 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1A 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 10 01 00 35 04 06 00 EF 00 00 FF [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:20]Read from MH i2c: E2 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 03 00 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 03 00 D6 39 00 90 00 83 [11:59:20]RAPDU: 90 00 [11:59:20]wFMCommunicate OK [11:59:20]wFMCommunicate request_size=10 [11:59:20]MH_SAM_APDU [11:59:20]CAPDU: 80 0D 02 02 05 E5 39 BF BC 85 [11:59:20]Write to MH i2c: E2 0D 00 D7 39 80 0D 02 02 05 00 E5 39 BF BC 85 00 00 B2 [11:59:20]Write i2c OK [11:59:20]MH_I2C_Read... [11:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:20]Read from MH i2c: E2 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 03 00 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 03 00 D7 39 00 90 00 84 [11:59:20]RAPDU: 90 00 [11:59:20]wFMCommunicate OK [11:59:20]wFMCommunicate request_size=4 [11:59:20]MH_SAM_APDU [11:59:20]CAPDU: 80 0D 03 02 [11:59:20]Write to MH i2c: E2 08 00 D8 39 80 0D 03 02 00 00 00 00 8C [11:59:20]Write i2c OK [11:59:20]MH_I2C_Read... [11:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:20]Read from MH i2c: E2 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 0B 00 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 0B 00 D8 39 00 25 A7 5E 85 52 6D 6E 5B 90 00 C4 [11:59:20]RAPDU: 25 A7 5E 85 52 6D 6E 5B 90 00 [11:59:20]wFMCommunicate OK [11:59:20]SAM_PROTO_SignData done [11:59:20]FM_MakeSignedData done [11:59:20]CreateOFDProtocolMessage [11:59:20]wFMCommunicate request_size=4 [11:59:20]MH_SAM_APDU [11:59:20]CAPDU: 80 11 00 00 [11:59:20]Write to MH i2c: E2 08 00 D9 39 80 11 00 00 00 00 00 00 8C [11:59:20]Write i2c OK [11:59:20]MH_I2C_Read... [11:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:20]Read from MH i2c: E2 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 17 00 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: E2 17 00 D9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [11:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:59:20]wFMCommunicate OK [11:59:20]CreateOFDProtocolMessage done [11:59:20]OFDSenderStorePacket 69800 [11:59:20]StoreOFDPacket docnum=69800 [11:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 05 F8 07 01 79 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1A 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 10 01 00 35 04 06 00 EF E5 39 BF BC 85 25 A7 5E 85 52 6D 6E 5B [11:59:20]CheckFolder [11:59:20]dirname=/storage/ofd_packets [11:59:20]CheckFolder done [11:59:20]ProducePacketName [11:59:20]name=ofd_packets/00069800 [11:59:20]NVStorageSaveData ofd_packets/00069800 [11:59:20]File name is /storage/ofd_packets/00069800 [11:59:20]Write 301 bytes [11:59:20]NVStorageSaveData done [11:59:20]OFDSenderStorePacket done [11:59:20]KKMCreateOFDPacket done [11:59:20]NVStorageSaveData kkm_last_timestamp [11:59:20]File name is /storage/kkm_last_timestamp [11:59:20]Write 4 bytes [11:59:20]NVStorageSaveData done [11:59:20]ExternCall_PrintAddStr [11:59:20]wPrintStart [11:59:20]Write to MH i2c: 01 00 00 DA 39 13 [11:59:20]Write i2c OK [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: 01 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: 01 07 00 [11:59:20]MH_I2C_Read... [11:59:20]Read from MH i2c: 01 07 00 DA 39 00 00 00 00 00 FF 0F 28 [11:59:20]RasterBufferAndPrint [11:59:20]line Счет N : (1)2885541 [11:59:20]line ИНН: 02508201610067 [11:59:20]line Контрольно-Кассовый Чек [11:59:20]line ПРОДАЖА [11:59:20]line ТРК (МРК, ГНК) : 13 [11:59:20]line Товар: 2710124500 [11:59:20]line Аи-95-К-5 [11:59:20]line 6.740 * 74.20 [11:59:20]line = 500.11 [11:59:20]line НДС 12% НСП 1% [11:59:20]line > о реализуемом товаре [11:59:20]line ИТОГО: 500.11 [11:59:20]line НСП 1% : 4.43 [11:59:20]line НДС 12% : 53.11 [11:59:20]line Наличными: 0.00 [11:59:20]line Безнал.: 500.11 [11:59:20]line Место: АЗС № 85 "Партнер Нефть" [11:59:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:59:20]line СНО: Общий режим [11:59:20]line Чек 190 21.10.2024 11:59 [11:59:20]line Смена: 194 ФФД: 1.0 [11:59:20]line ЗНМ: 0300000167 [11:59:20]line РНМ: 0000000000156251 [11:59:20]line Версия ККМ: v1.0 [11:59:20]line Платежная система: Mbank [11:59:20]line ФМ: 0000000000963346 [11:59:20]line ФД: 69800 [11:59:20]line ФПД: 263767795416197 [11:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69800&fm=263767795416197&tin=02508201610067®Number=0000000000156251&sum=50011 [11:59:20]OFD Sender: Processing packet 69800 [packets to send 18, broken 17] [11:59:20]ProducePacketName [11:59:20]name=ofd_packets/00069800 [11:59:20]OFD Sender: To server: pG, [11:59:20]CommunicateWithHost lk.salyk.kg:30040 [11:59:20]ConnectInit lk.salyk.kg [11:59:20]written 0, free lines is 4095 [11:59:20]Connected sock=10 [11:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 05 F8 07 01 79 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1A 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 10 01 00 35 04 06 00 EF E5 39 BF BC 85 25 A7 5E 85 52 6D 6E 5B [11:59:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 80 60 47 00 B2 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 39 36 33 33 34 36 10 04 04 00 A8 10 01 00 F4 03 04 00 BE EB 15 67 B6 04 01 00 00 66 D1 85 86 1D 03 03 99 [11:59:21]CommunicateWithHost err = 0 [11:59:21]CheckOFDResponse [11:59:21]1017 (14) - 77093643461234 [11:59:21]1041 (16) - 0000000000963346 [11:59:21]1040 (4) - 69800 [11:59:21]1012 (4) - 21.10.2024 05:50 [11:59:21]1206 (1) - 0 [11:59:21]OFD Sender: Remove packet 69800 [11:59:21]ProducePacketName [11:59:21]name=ofd_packets/00069800 [11:59:21]NVStorageDeleteData [11:59:21]Write to MH i2c: 01 00 00 03 3A 3D [11:59:21]Write i2c OK [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: 01 [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: 01 07 00 [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: 01 07 00 03 3A 00 00 00 00 00 17 0D 68 [11:59:21]RasterBufferAndPrint [11:59:21]line [11:59:21]line [11:59:21]line [11:59:21]line [11:59:21]line [11:59:21]written 0, free lines is 3357 [11:59:21]MH_Cut [11:59:21]Write to MH i2c: D1 01 00 0A 3A 01 16 [11:59:21]Write i2c OK [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: D1 [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: D1 01 00 [11:59:21]MH_I2C_Read... [11:59:21]Read from MH i2c: D1 01 00 0A 3A 00 15 [11:59:21]Write to MH i2c: 01 00 00 0B 3A 45 [11:59:21]Write i2c OK [11:59:21]MH_I2C_Read... [11:59:21]OFD Sender: No OFD packet to send [11:59:21]*** Cut start [11:59:21]*** Partial cut [11:59:21]*** CUTSNS_PIN = 1 [11:59:21]*** CUTSNS_PIN = 0 [11:59:22]*** Brake cut motor [11:59:22]Read from MH i2c: 01 [11:59:22]MH_I2C_Read... [11:59:22]*** Stop cut motor [11:59:22]*** Cut end [11:59:22]Read from MH i2c: 01 07 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: 01 07 00 0B 3A 00 00 00 00 00 FF 0F 5A [11:59:22]process_action close_receipt done [11:59:22]requested_data is exist [11:59:22]produce_requested_data [11:59:22]requested_item fm.sn is exist - process it [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 11 00 00 [11:59:22]Write to MH i2c: E2 08 00 0C 3A 80 11 00 00 00 00 00 00 C0 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 17 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 17 00 0C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [11:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:59:22]wFMCommunicate OK [11:59:22]requested_item fd.num is exist - process it [11:59:22]SAM_PROTO_GetFieldsCounters [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 13 00 00 [11:59:22]Write to MH i2c: E2 08 00 0D 3A 80 13 00 00 00 00 00 00 C3 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 62 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 62 00 0D 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:22]wFMCommunicate OK [11:59:22]SAM_PROTO_GetFieldsCounters done [11:59:22]requested_item shift.num is exist - process it [11:59:22]requested_item shift.opened is exist - process it [11:59:22]req_shift_opened [11:59:22]FM_GetShiftState [11:59:22]SAM_PROTO_GetShiftState [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 13 01 00 [11:59:22]Write to MH i2c: E2 08 00 0E 3A 80 13 01 00 00 00 00 00 C5 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 0E 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F1 [11:59:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [11:59:22]wFMCommunicate OK [11:59:22]SAM_PROTO_GetShiftState done [11:59:22]FM_GetShiftState done [11:59:22]req_shift_opened done [11:59:22]requested_item shift.open_date is exist - process it [11:59:22]req_shift_open_date [11:59:22]req_shift_open_date done [11:59:22]produce_requested_data done [11:59:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69800,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [11:59:22]process_action_free close_receipt [11:59:22]json_value_free [11:59:22]json_value_free done [11:59:22]process_json_proto returns [11:59:22]Send response to host [11:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69800,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [11:59:22]free response buf [11:59:22]execute_script done [11:59:22]execute_script returns [11:59:22]free content buf [11:59:22]Sock 8.Close socket [11:59:22]Sock 8.Thread stoped [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:48]accept exits with 9 [12:00:48]New connection [12:00:48]New thread 3067313508 created [12:00:48]Thread 3067456868 joined [12:00:48]Waiting for new connection... [12:00:48] Sock 9.Parse request [12:00:48]Sock 9.Check first char [12:00:48]Sock 9.First char is OK [12:00:48]request: POST /json_proto HTTP/1.0 [12:00:48]Method: POST [12:00:48]URL: /json_proto [12:00:48]Method is POST - this is cgi request [12:00:48]url: /json_proto [12:00:48]query_string will be loaded in cgi processing [12:00:48]execute_cgi json_proto POST (null) [12:00:48]execute_cgi path=json_proto method=POST [12:00:48]POST find Content-Length [12:00:48]Host: 172.17.50.3:8080 [12:00:48]Content-Length: 768 [12:00:48]Content-Type: application/json [12:00:48] [12:00:48]POST finish read [12:00:48]Found Content-Length = 768 [12:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885545", "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" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]execute_script... [12:00: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)2885545", "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" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]POST & json_proto [12:00:48]process_json_proto [12:00:48]json parsed OK: [12:00:48]protocol is kg_v1.0 [12:00:48]action value=close_receipt [12:00:48]process_action close_receipt [12:00:48]cmd_close_receipt [12:00:48]MH_GetDate [12:00:48]Write to MH i2c: F0 00 00 0F 3A 38 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 0F 3A 00 74 42 16 67 6B 98 1E 66 FB [12:00:48]GetLastDocTimeStamp 1729511962 [12:00:48]current date 1729512052 [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 10 3A 80 13 01 00 00 00 00 00 C7 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 10 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F3 [12:00:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]opened in 1729469703 [12:00:48]opened+sec_in_day 1729556103 [12:00:48]quantity*price = 66900 [12:00:48]sum+1 = 66901 [12:00:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 191 21.10.2024 12:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69801 ФПД: 22140697317946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69801&fm=22140697317946&tin=02508201610067®Number=0000000000156251&sum=66900 [12:00:49]StoreToDocumentArchive [12:00:49]shift 194 fd 69801 [12:00:49]save to /storage/0194/doc_00069801 [12:00:49]save last doc name /storage/0194/doc_00069801 to /storage/kkm_last_doc_name [12:00:49]save OK [12:00:49]Clear old archive folders... [12:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:49]tlvbuf is 00CA0770 [12:00:49]SAM_PROTO_ClearQueue [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 09 00 00 [12:00:49]Write to MH i2c: E2 08 00 1D 3A 80 09 00 00 00 00 00 00 C9 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [12:00:49]RAPDU: 90 00 [12:00:49]wFMCommunicate OK [12:00:49]SAM_PROTO_ClearQueue done [12:00:49]KKMCreateOFDPacket [12:00:49]OFDProtocolAddRootSTLVToBuf [12:00:49]FM_MakeSignedData [12:00:49]FM_MakeSignedData [12:00:49]SAM_PROTO_SignData [12:00:49]wFMCommunicate request_size=4 [12:00:49]MH_SAM_APDU [12:00:49]CAPDU: 80 0D 01 02 [12:00:49]Write to MH i2c: E2 08 00 1E 3A 80 0D 01 02 00 00 00 00 D1 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:49]Read from MH i2c: E2 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: E2 03 00 1E 3A 00 90 00 CC [12:00:49]RAPDU: 90 00 [12:00:49]wFMCommunicate OK [12:00:49]wFMCommunicate request_size=255 [12:00:49]MH_SAM_APDU [12:00: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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 74 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 10 01 00 35 04 06 00 14 [12:00:50]Write to MH i2c: E2 02 01 1F 3A 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 74 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 10 01 00 35 04 06 00 14 00 00 05 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 1F 3A 00 90 00 CD [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=10 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 02 02 05 23 08 66 12 3A [12:00:50]Write to MH i2c: E2 0D 00 20 3A 80 0D 02 02 05 00 23 08 66 12 3A 00 00 BB [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 20 3A 00 90 00 CE [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 03 02 [12:00:50]Write to MH i2c: E2 08 00 21 3A 80 0D 03 02 00 00 00 00 D6 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 21 3A 00 05 E3 A7 09 02 18 EC 77 90 00 EC [12:00:50]RAPDU: 05 E3 A7 09 02 18 EC 77 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_SignData done [12:00:50]FM_MakeSignedData done [12:00:50]CreateOFDProtocolMessage [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 11 00 00 [12:00:50]Write to MH i2c: E2 08 00 22 3A 80 11 00 00 00 00 00 00 D6 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 22 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [12:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:50]wFMCommunicate OK [12:00:50]CreateOFDProtocolMessage done [12:00:50]OFDSenderStorePacket 69801 [12:00:50]StoreOFDPacket docnum=69801 [12:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D 55 07 01 2D DA 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 74 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 10 01 00 35 04 06 00 14 23 08 66 12 3A 05 E3 A7 09 02 18 EC 77 [12:00:50]CheckFolder [12:00:50]dirname=/storage/ofd_packets [12:00:50]CheckFolder done [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00069801 [12:00:50]NVStorageSaveData ofd_packets/00069801 [12:00:50]File name is /storage/ofd_packets/00069801 [12:00:50]Write 301 bytes [12:00:50]NVStorageSaveData done [12:00:50]OFDSenderStorePacket done [12:00:50]KKMCreateOFDPacket done [12:00:50]NVStorageSaveData kkm_last_timestamp [12:00:50]File name is /storage/kkm_last_timestamp [12:00:50]Write 4 bytes [12:00:50]NVStorageSaveData done [12:00:50]ExternCall_PrintAddStr [12:00:50]wPrintStart [12:00:50]Write to MH i2c: 01 00 00 23 3A 5D [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 23 3A 00 00 00 00 00 FF 0F 72 [12:00:50]RasterBufferAndPrint [12:00:50]line Счет N : (1)2885545 [12:00:50]line ИНН: 02508201610067 [12:00:50]line Контрольно-Кассовый Чек [12:00:50]line ПРОДАЖА [12:00:50]line ТРК (МРК, ГНК) : 32 [12:00:50]line Товар: 2710124130 [12:00:50]line Аи-92-К-5 [12:00:50]line 10.000 * 66.90 [12:00:50]line = 669.00 [12:00:50]line НДС 12% НСП 1% [12:00:50]line > о реализуемом товаре [12:00:50]line ИТОГО: 669.00 [12:00:50]line НСП 1% : 5.92 [12:00:50]line НДС 12% : 71.04 [12:00:50]line Наличными: 0.00 [12:00:50]line Безнал.: 669.00 [12:00:50]line Место: АЗС № 85 "Партнер Нефть" [12:00:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:00:50]line СНО: Общий режим [12:00:50]line Чек 191 21.10.2024 12:00 [12:00:50]line Смена: 194 ФФД: 1.0 [12:00:50]line ЗНМ: 0300000167 [12:00:50]line РНМ: 0000000000156251 [12:00:50]line Версия ККМ: v1.0 [12:00:50]line Платежная система: Mbank [12:00:50]line ФМ: 0000000000963346 [12:00:50]line ФД: 69801 [12:00:50]line ФПД: 22140697317946 [12:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69801&fm=22140697317946&tin=02508201610067®Number=0000000000156251&sum=66900 [12:00:50]OFD Sender: Processing packet 69801 [packets to send 18, broken 17] [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00069801 [12:00:50]OFD Sender: To server: pG, [12:00:50]CommunicateWithHost lk.salyk.kg:30040 [12:00:50]ConnectInit lk.salyk.kg [12:00:50]written 0, free lines is 4095 [12:00:50]Connected sock=10 [12:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D 55 07 01 2D DA 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 74 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 10 01 00 35 04 06 00 14 23 08 66 12 3A 05 E3 A7 09 02 18 EC 77 [12:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 45 A0 47 00 95 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 10 01 00 F4 03 04 00 18 EC 15 67 B6 04 01 00 00 67 6F 7B 4F A4 43 5A 46 [12:00:51]CommunicateWithHost err = 0 [12:00:51]CheckOFDResponse [12:00:51]1017 (14) - 77093643461234 [12:00:51]1041 (16) - 0000000000963346 [12:00:51]1040 (4) - 69801 [12:00:51]1012 (4) - 21.10.2024 05:52 [12:00:51]1206 (1) - 0 [12:00:51]OFD Sender: Remove packet 69801 [12:00:51]ProducePacketName [12:00:51]name=ofd_packets/00069801 [12:00:51]NVStorageDeleteData [12:00:51]Write to MH i2c: 01 00 00 4C 3A 86 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 4C 3A 00 00 00 00 00 12 0D AC [12:00:51]RasterBufferAndPrint [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]written 0, free lines is 3353 [12:00:51]MH_Cut [12:00:51]Write to MH i2c: D1 01 00 53 3A 01 5F [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 53 3A 00 5E [12:00:51]Write to MH i2c: 01 00 00 54 3A 8E [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]OFD Sender: No OFD packet to send [12:00:51]*** Cut start [12:00:51]*** Partial cut [12:00:51]*** CUTSNS_PIN = 1 [12:00:51]*** CUTSNS_PIN = 0 [12:00:52]*** Brake cut motor [12:00:52]Read from MH i2c: 01 [12:00:52]MH_I2C_Read... [12:00:52]*** Stop cut motor [12:00:52]*** Cut end [12:00:52]Read from MH i2c: 01 07 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [12:00:52]process_action close_receipt done [12:00:52]requested_data is exist [12:00:52]produce_requested_data [12:00:52]requested_item fm.sn is exist - process it [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 11 00 00 [12:00:52]Write to MH i2c: E2 08 00 55 3A 80 11 00 00 00 00 00 00 09 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 55 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [12:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:52]wFMCommunicate OK [12:00:52]requested_item fd.num is exist - process it [12:00:52]SAM_PROTO_GetFieldsCounters [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 13 00 00 [12:00:52]Write to MH i2c: E2 08 00 56 3A 80 13 00 00 00 00 00 00 0C [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 62 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 62 00 56 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [12:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_GetFieldsCounters done [12:00:52]requested_item shift.num is exist - process it [12:00:52]requested_item shift.opened is exist - process it [12:00:52]req_shift_opened [12:00:52]FM_GetShiftState [12:00:52]SAM_PROTO_GetShiftState [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 13 01 00 [12:00:52]Write to MH i2c: E2 08 00 57 3A 80 13 01 00 00 00 00 00 0E [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:52]Read from MH i2c: E2 0E 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0E 00 57 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3A [12:00:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_GetShiftState done [12:00:52]FM_GetShiftState done [12:00:52]req_shift_opened done [12:00:52]requested_item shift.open_date is exist - process it [12:00:52]req_shift_open_date [12:00:52]req_shift_open_date done [12:00:52]produce_requested_data done [12:00:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69801,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:00:52]process_action_free close_receipt [12:00:52]json_value_free [12:00:52]json_value_free done [12:00:52]process_json_proto returns [12:00:52]Send response to host [12:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69801,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:00:52]free response buf [12:00:52]execute_script done [12:00:52]execute_script returns [12:00:52]free content buf [12:00:52]Sock 9.Close socket [12:00:52]Sock 9.Thread stoped [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:32]accept exits with 8 [12:01:32]New connection [12:01:32]New thread 3067456868 created [12:01:32]Thread 3067313508 joined [12:01:32]Waiting for new connection... [12:01:32] Sock 8.Parse request [12:01:32]Sock 8.Check first char [12:01:32]Sock 8.First char is OK [12:01:32]request: POST /json_proto HTTP/1.0 [12:01:32]Method: POST [12:01:32]URL: /json_proto [12:01:32]Method is POST - this is cgi request [12:01:32]url: /json_proto [12:01:32]query_string will be loaded in cgi processing [12:01:32]execute_cgi json_proto POST (null) [12:01:32]execute_cgi path=json_proto method=POST [12:01:32]POST find Content-Length [12:01:32]Host: 172.17.50.3:8080 [12:01:32]Content-Length: 767 [12:01:32]Content-Type: application/json [12:01:32] [12:01:32]POST finish read [12:01:32]Found Content-Length = 767 [12:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885546", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:32]execute_script... [12:01: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)2885546", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:32]POST & json_proto [12:01:32]process_json_proto [12:01:32]json parsed OK: [12:01:32]protocol is kg_v1.0 [12:01:32]action value=close_receipt [12:01:32]process_action close_receipt [12:01:32]cmd_close_receipt [12:01:32]MH_GetDate [12:01:32]Write to MH i2c: F0 00 00 58 3A 81 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 09 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 09 00 58 3A 00 9F 42 16 67 6B 98 1E 66 6F [12:01:32]GetLastDocTimeStamp 1729512052 [12:01:32]current date 1729512095 [12:01:32]FM_GetShiftState [12:01:32]SAM_PROTO_GetShiftState [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 13 01 00 [12:01:32]Write to MH i2c: E2 08 00 59 3A 80 13 01 00 00 00 00 00 10 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0E 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0E 00 59 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3C [12:01:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_GetShiftState done [12:01:32]FM_GetShiftState done [12:01:32]opened in 1729469703 [12:01:32]opened+sec_in_day 1729556103 [12:01:32]quantity*price = 50041 [12:01:32]sum+1 = 50042 [12:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 192 21.10.2024 12:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69802 ФПД: 145244758717559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120135&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69802&fm=145244758717559&tin=02508201610067®Number=0000000000156251&sum=50041 [12:01:33]StoreToDocumentArchive [12:01:33]shift 194 fd 69802 [12:01:33]save to /storage/0194/doc_00069802 [12:01:33]save last doc name /storage/0194/doc_00069802 to /storage/kkm_last_doc_name [12:01:33]save OK [12:01:33]Clear old archive folders... [12:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:33]tlvbuf is B6F55490 [12:01:33]SAM_PROTO_ClearQueue [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 09 00 00 [12:01:33]Write to MH i2c: E2 08 00 66 3A 80 09 00 00 00 00 00 00 12 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_ClearQueue done [12:01:33]KKMCreateOFDPacket [12:01:33]OFDProtocolAddRootSTLVToBuf [12:01:33]FM_MakeSignedData [12:01:33]FM_MakeSignedData [12:01:33]SAM_PROTO_SignData [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 01 02 [12:01:33]Write to MH i2c: E2 08 00 67 3A 80 0D 01 02 00 00 00 00 1A [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]wFMCommunicate request_size=255 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 10 01 00 35 04 06 00 84 [12:01:33]Write to MH i2c: E2 02 01 68 3A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 10 01 00 35 04 06 00 84 00 00 14 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]wFMCommunicate request_size=10 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 02 02 05 19 6E 3F B4 77 [12:01:33]Write to MH i2c: E2 0D 00 69 3A 80 0D 02 02 05 00 19 6E 3F B4 77 00 00 18 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 03 02 [12:01:33]Write to MH i2c: E2 08 00 6A 3A 80 0D 03 02 00 00 00 00 1F [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0B 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0B 00 6A 3A 00 91 E2 C6 33 53 C8 2B 31 90 00 03 [12:01:33]RAPDU: 91 E2 C6 33 53 C8 2B 31 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_SignData done [12:01:33]FM_MakeSignedData done [12:01:33]CreateOFDProtocolMessage [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 11 00 00 [12:01:33]Write to MH i2c: E2 08 00 6B 3A 80 11 00 00 00 00 00 00 1F [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 6B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [12:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:33]wFMCommunicate OK [12:01:33]CreateOFDProtocolMessage done [12:01:33]OFDSenderStorePacket 69802 [12:01:33]StoreOFDPacket docnum=69802 [12:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BD 3B 07 01 5C D6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 10 01 00 35 04 06 00 84 19 6E 3F B4 77 91 E2 C6 33 53 C8 2B 31 [12:01:33]CheckFolder [12:01:33]dirname=/storage/ofd_packets [12:01:33]CheckFolder done [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00069802 [12:01:33]NVStorageSaveData ofd_packets/00069802 [12:01:33]File name is /storage/ofd_packets/00069802 [12:01:33]Write 301 bytes [12:01:33]NVStorageSaveData done [12:01:33]OFDSenderStorePacket done [12:01:33]KKMCreateOFDPacket done [12:01:33]NVStorageSaveData kkm_last_timestamp [12:01:33]File name is /storage/kkm_last_timestamp [12:01:33]Write 4 bytes [12:01:33]NVStorageSaveData done [12:01:33]ExternCall_PrintAddStr [12:01:33]wPrintStart [12:01:33]Write to MH i2c: 01 00 00 6C 3A A6 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [12:01:33]RasterBufferAndPrint [12:01:33]line Счет N : (1)2885546 [12:01:33]line ИНН: 02508201610067 [12:01:33]line Контрольно-Кассовый Чек [12:01:33]line ПРОДАЖА [12:01:33]line ТРК (МРК, ГНК) : 42 [12:01:33]line Товар: 2710124130 [12:01:33]line Аи-92-К-5 [12:01:33]line 7.480 * 66.90 [12:01:33]line = 500.41 [12:01:33]line НДС 12% НСП 1% [12:01:33]line > о реализуемом товаре [12:01:33]line ИТОГО: 500.41 [12:01:33]line НСП 1% : 4.43 [12:01:33]line НДС 12% : 53.14 [12:01:33]line Наличными: 0.00 [12:01:33]line Безнал.: 500.41 [12:01:33]line Место: АЗС № 85 "Партнер Нефть" [12:01:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:01:33]line СНО: Общий режим [12:01:33]line Чек 192 21.10.2024 12:01 [12:01:33]line Смена: 194 ФФД: 1.0 [12:01:33]line ЗНМ: 0300000167 [12:01:33]line РНМ: 0000000000156251 [12:01:33]line Версия ККМ: v1.0 [12:01:33]line Платежная система: Mbank [12:01:33]line ФМ: 0000000000963346 [12:01:33]line ФД: 69802 [12:01:33]line ФПД: 145244758717559 [12:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120135&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69802&fm=145244758717559&tin=02508201610067®Number=0000000000156251&sum=50041 [12:01:34]OFD Sender: Processing packet 69802 [packets to send 18, broken 17] [12:01:34]ProducePacketName [12:01:34]name=ofd_packets/00069802 [12:01:34]OFD Sender: To server: pG, [12:01:34]CommunicateWithHost lk.salyk.kg:30040 [12:01:34]ConnectInit lk.salyk.kg [12:01:34]written 0, free lines is 4095 [12:01:34]Connected sock=10 [12:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BD 3B 07 01 5C D6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 10 01 00 35 04 06 00 84 19 6E 3F B4 77 91 E2 C6 33 53 C8 2B 31 [12:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 B7 47 00 B2 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 10 01 00 F4 03 04 00 43 EC 15 67 B6 04 01 00 00 52 B2 21 EB D7 B7 17 FC [12:01:34]CommunicateWithHost err = 0 [12:01:34]CheckOFDResponse [12:01:34]1017 (14) - 77093643461234 [12:01:34]1041 (16) - 0000000000963346 [12:01:34]1040 (4) - 69802 [12:01:34]1012 (4) - 21.10.2024 05:53 [12:01:34]1206 (1) - 0 [12:01:34]OFD Sender: Remove packet 69802 [12:01:34]ProducePacketName [12:01:34]name=ofd_packets/00069802 [12:01:34]NVStorageDeleteData [12:01:34]Write to MH i2c: 01 00 00 95 3A CF [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 95 3A 00 00 00 00 00 0C 0D EF [12:01:34]RasterBufferAndPrint [12:01:34]line [12:01:34]line [12:01:34]line [12:01:34]line [12:01:34]line [12:01:34]written 0, free lines is 3347 [12:01:34]MH_Cut [12:01:34]Write to MH i2c: D1 01 00 9C 3A 01 A8 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: D1 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: D1 01 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: D1 01 00 9C 3A 00 A7 [12:01:34]Write to MH i2c: 01 00 00 9D 3A D7 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:35]OFD Sender: No OFD packet to send [12:01:35]*** Cut start [12:01:35]*** Partial cut [12:01:35]*** CUTSNS_PIN = 1 [12:01:35]*** CUTSNS_PIN = 0 [12:01:35]*** Brake cut motor [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]*** Stop cut motor [12:01:35]*** Cut end [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 9D 3A 00 00 00 00 00 FF 0F EC [12:01:35]process_action close_receipt done [12:01:35]requested_data is exist [12:01:35]produce_requested_data [12:01:35]requested_item fm.sn is exist - process it [12:01:35]wFMCommunicate request_size=4 [12:01:35]MH_SAM_APDU [12:01:35]CAPDU: 80 11 00 00 [12:01:35]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [12:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:36]wFMCommunicate OK [12:01:36]requested_item fd.num is exist - process it [12:01:36]SAM_PROTO_GetFieldsCounters [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 00 00 [12:01:36]Write to MH i2c: E2 08 00 9F 3A 80 13 00 00 00 00 00 00 55 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 9F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetFieldsCounters done [12:01:36]requested_item shift.num is exist - process it [12:01:36]requested_item shift.opened is exist - process it [12:01:36]req_shift_opened [12:01:36]FM_GetShiftState [12:01:36]SAM_PROTO_GetShiftState [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 01 00 [12:01:36]Write to MH i2c: E2 08 00 A0 3A 80 13 01 00 00 00 00 00 57 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 A0 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 83 [12:01:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetShiftState done [12:01:36]FM_GetShiftState done [12:01:36]req_shift_opened done [12:01:36]requested_item shift.open_date is exist - process it [12:01:36]req_shift_open_date [12:01:36]req_shift_open_date done [12:01:36]produce_requested_data done [12:01:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69802,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:01:36]process_action_free close_receipt [12:01:36]json_value_free [12:01:36]json_value_free done [12:01:36]process_json_proto returns [12:01:36]Send response to host [12:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69802,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:01:36]free response buf [12:01:36]execute_script done [12:01:36]execute_script returns [12:01:36]free content buf [12:01:36]Sock 8.Close socket [12:01:36]Sock 8.Thread stoped [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:51]accept exits with 9 [12:01:51]New connection [12:01:51]New thread 3067313508 created [12:01:51]Thread 3067456868 joined [12:01:51]Waiting for new connection... [12:01:51] Sock 9.Parse request [12:01:51]Sock 9.Check first char [12:01:51]Sock 9.First char is OK [12:01:51]request: POST /json_proto HTTP/1.0 [12:01:51]Method: POST [12:01:51]URL: /json_proto [12:01:51]Method is POST - this is cgi request [12:01:51]url: /json_proto [12:01:51]query_string will be loaded in cgi processing [12:01:51]execute_cgi json_proto POST (null) [12:01:51]execute_cgi path=json_proto method=POST [12:01:51]POST find Content-Length [12:01:51]Host: 172.17.50.3:8080 [12:01:51]Content-Length: 683 [12:01:51]Content-Type: application/json [12:01:51] [12:01:51]POST finish read [12:01:51]Found Content-Length = 683 [12:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:51]execute_script... [12:01: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)2885547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:51]POST & json_proto [12:01:51]process_json_proto [12:01:51]json parsed OK: [12:01:51]protocol is kg_v1.0 [12:01:51]action value=close_receipt [12:01:51]process_action close_receipt [12:01:51]cmd_close_receipt [12:01:51]MH_GetDate [12:01:51]Write to MH i2c: F0 00 00 A1 3A CA [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 09 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: F0 09 00 A1 3A 00 B2 42 16 67 6B 98 1E 66 CB [12:01:51]GetLastDocTimeStamp 1729512095 [12:01:51]current date 1729512114 [12:01:51]FM_GetShiftState [12:01:51]SAM_PROTO_GetShiftState [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 13 01 00 [12:01:51]Write to MH i2c: E2 08 00 A2 3A 80 13 01 00 00 00 00 00 59 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:51]Read from MH i2c: E2 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: E2 0E 00 A2 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 85 [12:01:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:01:51]wFMCommunicate OK [12:01:51]SAM_PROTO_GetShiftState done [12:01:51]FM_GetShiftState done [12:01:51]opened in 1729469703 [12:01:51]opened+sec_in_day 1729556103 [12:01:51]quantity*price = 100015 [12:01:51]sum+1 = 100017 [12:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 193 21.10.2024 12:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69803 ФПД: 102947074276654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69803&fm=102947074276654&tin=02508201610067®Number=0000000000156251&sum=100000 [12:01:52]StoreToDocumentArchive [12:01:52]shift 194 fd 69803 [12:01:52]save to /storage/0194/doc_00069803 [12:01:52]save last doc name /storage/0194/doc_00069803 to /storage/kkm_last_doc_name [12:01:52]save OK [12:01:52]Clear old archive folders... [12:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:52]tlvbuf is 00CF1700 [12:01:52]SAM_PROTO_ClearQueue [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 09 00 00 [12:01:52]Write to MH i2c: E2 08 00 AF 3A 80 09 00 00 00 00 00 00 5B [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 AF 3A 00 90 00 5D [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_ClearQueue done [12:01:52]KKMCreateOFDPacket [12:01:52]OFDProtocolAddRootSTLVToBuf [12:01:52]FM_MakeSignedData [12:01:52]FM_MakeSignedData [12:01:52]SAM_PROTO_SignData [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 01 02 [12:01:52]Write to MH i2c: E2 08 00 B0 3A 80 0D 01 02 00 00 00 00 63 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 B0 3A 00 90 00 5E [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=255 [12:01:52]MH_SAM_APDU [12:01:52]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B2 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 10 01 00 35 04 06 00 5D [12:01:52]Write to MH i2c: E2 02 01 B1 3A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B2 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 10 01 00 35 04 06 00 5D 00 00 F3 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 B1 3A 00 90 00 5F [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=10 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 02 02 05 A1 3B CA FD 2E [12:01:52]Write to MH i2c: E2 0D 00 B2 3A 80 0D 02 02 05 00 A1 3B CA FD 2E 00 00 41 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [12:01:52]RAPDU: 90 00 [12:01:52]wFMCommunicate OK [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 0D 03 02 [12:01:52]Write to MH i2c: E2 08 00 B3 3A 80 0D 03 02 00 00 00 00 68 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0B 00 B3 3A 00 A0 CB F9 8F 1D E9 AB 44 90 00 51 [12:01:52]RAPDU: A0 CB F9 8F 1D E9 AB 44 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_SignData done [12:01:52]FM_MakeSignedData done [12:01:52]CreateOFDProtocolMessage [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 11 00 00 [12:01:52]Write to MH i2c: E2 08 00 B4 3A 80 11 00 00 00 00 00 00 68 [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 B4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [12:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:52]wFMCommunicate OK [12:01:52]CreateOFDProtocolMessage done [12:01:52]OFDSenderStorePacket 69803 [12:01:52]StoreOFDPacket docnum=69803 [12:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 EF 07 01 52 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B2 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 10 01 00 35 04 06 00 5D A1 3B CA FD 2E A0 CB F9 8F 1D E9 AB 44 [12:01:52]CheckFolder [12:01:52]dirname=/storage/ofd_packets [12:01:52]CheckFolder done [12:01:52]ProducePacketName [12:01:52]name=ofd_packets/00069803 [12:01:52]NVStorageSaveData ofd_packets/00069803 [12:01:52]File name is /storage/ofd_packets/00069803 [12:01:52]Write 301 bytes [12:01:52]NVStorageSaveData done [12:01:52]OFDSenderStorePacket done [12:01:52]KKMCreateOFDPacket done [12:01:52]NVStorageSaveData kkm_last_timestamp [12:01:52]File name is /storage/kkm_last_timestamp [12:01:52]Write 4 bytes [12:01:52]NVStorageSaveData done [12:01:52]ExternCall_PrintAddStr [12:01:52]wPrintStart [12:01:52]Write to MH i2c: 01 00 00 B5 3A EF [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: 01 07 00 [12:01:52]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 B5 3A 00 00 00 00 00 FF 0F 04 [12:01:53]RasterBufferAndPrint [12:01:53]line Счет N : (1)2885547 [12:01:53]line ИНН: 02508201610067 [12:01:53]line Контрольно-Кассовый Чек [12:01:53]line ПРОДАЖА [12:01:53]line ТРК (МРК, ГНК) : 12 [12:01:53]line Товар: 2710124130 [12:01:53]line Аи-92-К-5 [12:01:53]line 14.950 * 66.90 [12:01:53]line = 1000.16 [12:01:53]line НДС 12% НСП 1% [12:01:53]line > о реализуемом товаре [12:01:53]line ОКРУГЛЕНИЕ: -0.16 [12:01:53]line ИТОГО: 1000.00 [12:01:53]line Внесено: 1000.00 [12:01:53]line СДАЧА: 0.00 [12:01:53]line НСП 1% : 8.85 [12:01:53]line НДС 12% : 106.21 [12:01:53]line Наличными: 1000.00 [12:01:53]line Безнал.: 0.00 [12:01:53]line Место: АЗС № 85 "Партнер Нефть" [12:01:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:01:53]line СНО: Общий режим [12:01:53]line Чек 193 21.10.2024 12:01 [12:01:53]line Смена: 194 ФФД: 1.0 [12:01:53]line ЗНМ: 0300000167 [12:01:53]line РНМ: 0000000000156251 [12:01:53]line Версия ККМ: v1.0 [12:01:53]line ФМ: 0000000000963346 [12:01:53]line ФД: 69803 [12:01:53]line ФПД: 102947074276654 [12:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120154&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69803&fm=102947074276654&tin=02508201610067®Number=0000000000156251&sum=100000 [12:01:53]OFD Sender: Processing packet 69803 [packets to send 18, broken 17] [12:01:53]ProducePacketName [12:01:53]name=ofd_packets/00069803 [12:01:53]OFD Sender: To server: pG, [12:01:53]CommunicateWithHost lk.salyk.kg:30040 [12:01:53]ConnectInit lk.salyk.kg [12:01:53]written 0, free lines is 4095 [12:01:53]Connected sock=10 [12:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 EF 07 01 52 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B2 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 10 01 00 35 04 06 00 5D A1 3B CA FD 2E A0 CB F9 8F 1D E9 AB 44 [12:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 4F 47 00 0C 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 39 36 33 33 34 36 10 04 04 00 AB 10 01 00 F4 03 04 00 56 EC 15 67 B6 04 01 00 00 FD 53 19 64 8B DB 6D 85 [12:01:53]CommunicateWithHost err = 0 [12:01:53]CheckOFDResponse [12:01:53]1017 (14) - 77093643461234 [12:01:53]1041 (16) - 0000000000963346 [12:01:53]1040 (4) - 69803 [12:01:53]1012 (4) - 21.10.2024 05:53 [12:01:53]1206 (1) - 0 [12:01:53]OFD Sender: Remove packet 69803 [12:01:53]ProducePacketName [12:01:53]name=ofd_packets/00069803 [12:01:53]NVStorageDeleteData [12:01:53]Write to MH i2c: 01 00 00 E0 3A 1A [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: 01 07 00 E0 3A 00 00 00 00 00 F2 0C 1F [12:01:53]RasterBufferAndPrint [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]line [12:01:53]written 0, free lines is 3320 [12:01:53]MH_Cut [12:01:53]Write to MH i2c: D1 01 00 E7 3A 01 F3 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 [12:01:53]MH_I2C_Read... [12:01:53]Read from MH i2c: D1 01 00 E7 3A 00 F2 [12:01:53]Write to MH i2c: 01 00 00 E8 3A 22 [12:01:53]Write i2c OK [12:01:53]MH_I2C_Read... [12:01:54]OFD Sender: No OFD packet to send [12:01:54]*** Cut start [12:01:54]*** Partial cut [12:01:54]*** CUTSNS_PIN = 1 [12:01:54]*** CUTSNS_PIN = 0 [12:01:54]*** Brake cut motor [12:01:55]Read from MH i2c: 01 [12:01:55]MH_I2C_Read... [12:01:55]*** Stop cut motor [12:01:55]*** Cut end [12:01:55]Read from MH i2c: 01 07 00 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: 01 07 00 E8 3A 00 00 00 00 00 FF 0F 37 [12:01:55]process_action close_receipt done [12:01:55]requested_data is exist [12:01:55]produce_requested_data [12:01:55]requested_item fm.sn is exist - process it [12:01:55]wFMCommunicate request_size=4 [12:01:55]MH_SAM_APDU [12:01:55]CAPDU: 80 11 00 00 [12:01:55]Write to MH i2c: E2 08 00 E9 3A 80 11 00 00 00 00 00 00 9D [12:01:55]Write i2c OK [12:01:55]MH_I2C_Read... [12:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:55]Read from MH i2c: E2 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 17 00 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 17 00 E9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [12:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:55]wFMCommunicate OK [12:01:55]requested_item fd.num is exist - process it [12:01:55]SAM_PROTO_GetFieldsCounters [12:01:55]wFMCommunicate request_size=4 [12:01:55]MH_SAM_APDU [12:01:55]CAPDU: 80 13 00 00 [12:01:55]Write to MH i2c: E2 08 00 EA 3A 80 13 00 00 00 00 00 00 A0 [12:01:55]Write i2c OK [12:01:55]MH_I2C_Read... [12:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:55]Read from MH i2c: E2 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 62 00 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 62 00 EA 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:55]wFMCommunicate OK [12:01:55]SAM_PROTO_GetFieldsCounters done [12:01:55]requested_item shift.num is exist - process it [12:01:55]requested_item shift.opened is exist - process it [12:01:55]req_shift_opened [12:01:55]FM_GetShiftState [12:01:55]SAM_PROTO_GetShiftState [12:01:55]wFMCommunicate request_size=4 [12:01:55]MH_SAM_APDU [12:01:55]CAPDU: 80 13 01 00 [12:01:55]Write to MH i2c: E2 08 00 EB 3A 80 13 01 00 00 00 00 00 A2 [12:01:55]Write i2c OK [12:01:55]MH_I2C_Read... [12:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:55]Read from MH i2c: E2 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 0E 00 [12:01:55]MH_I2C_Read... [12:01:55]Read from MH i2c: E2 0E 00 EB 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CE [12:01:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:01:55]wFMCommunicate OK [12:01:55]SAM_PROTO_GetShiftState done [12:01:55]FM_GetShiftState done [12:01:55]req_shift_opened done [12:01:55]requested_item shift.open_date is exist - process it [12:01:55]req_shift_open_date [12:01:55]req_shift_open_date done [12:01:55]produce_requested_data done [12:01:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69803,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:01:55]process_action_free close_receipt [12:01:55]json_value_free [12:01:55]json_value_free done [12:01:55]process_json_proto returns [12:01:55]Send response to host [12:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69803,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:01:55]free response buf [12:01:55]execute_script done [12:01:55]execute_script returns [12:01:55]free content buf [12:01:55]Sock 9.Close socket [12:01:55]Sock 9.Thread stoped [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:02:59]accept exits with 8 [12:02:59]New connection [12:02:59]New thread 3067456868 created [12:02:59]Thread 3067313508 joined [12:02:59]Waiting for new connection... [12:02:59] Sock 8.Parse request [12:02:59]Sock 8.Check first char [12:02:59]Sock 8.First char is OK [12:02:59]request: POST /json_proto HTTP/1.0 [12:02:59]Method: POST [12:02:59]URL: /json_proto [12:02:59]Method is POST - this is cgi request [12:02:59]url: /json_proto [12:02:59]query_string will be loaded in cgi processing [12:02:59]execute_cgi json_proto POST (null) [12:02:59]execute_cgi path=json_proto method=POST [12:02:59]POST find Content-Length [12:02:59]Host: 172.17.50.3:8080 [12:02:59]Content-Length: 686 [12:02:59]Content-Type: application/json [12:02:59] [12:02:59]POST finish read [12:02:59]Found Content-Length = 686 [12:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [12:02:59]execute_script... [12:02:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [12:02:59]POST & json_proto [12:02:59]process_json_proto [12:02:59]json parsed OK: [12:02:59]protocol is kg_v1.0 [12:02:59]action value=close_receipt [12:02:59]process_action close_receipt [12:02:59]cmd_close_receipt [12:02:59]MH_GetDate [12:02:59]Write to MH i2c: F0 00 00 EC 3A 15 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: F0 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: F0 09 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: F0 09 00 EC 3A 00 F7 42 16 67 6B 98 1E 66 5B [12:02:59]GetLastDocTimeStamp 1729512114 [12:02:59]current date 1729512183 [12:02:59]FM_GetShiftState [12:02:59]SAM_PROTO_GetShiftState [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 13 01 00 [12:02:59]Write to MH i2c: E2 08 00 ED 3A 80 13 01 00 00 00 00 00 A4 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:00]Read from MH i2c: E2 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: E2 0E 00 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: E2 0E 00 ED 3A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D0 [12:03:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:03:00]wFMCommunicate OK [12:03:00]SAM_PROTO_GetShiftState done [12:03:00]FM_GetShiftState done [12:03:00]opened in 1729469703 [12:03:00]opened+sec_in_day 1729556103 [12:03:00]quantity*price = 100011 [12:03:00]sum+1 = 100013 [12:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 194 21.10.2024 12:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69804 ФПД: 171622978528628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120303&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69804&fm=171622978528628&tin=02508201610067®Number=0000000000156251&sum=100000 [12:03:01]StoreToDocumentArchive [12:03:01]shift 194 fd 69804 [12:03:01]save to /storage/0194/doc_00069804 [12:03:01]save last doc name /storage/0194/doc_00069804 to /storage/kkm_last_doc_name [12:03:01]save OK [12:03:01]Clear old archive folders... [12:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:03:01]tlvbuf is 00CCDE80 [12:03:01]SAM_PROTO_ClearQueue [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 09 00 00 [12:03:01]Write to MH i2c: E2 08 00 FA 3A 80 09 00 00 00 00 00 00 A6 [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 FA 3A 00 90 00 A8 [12:03:01]RAPDU: 90 00 [12:03:01]wFMCommunicate OK [12:03:01]SAM_PROTO_ClearQueue done [12:03:01]KKMCreateOFDPacket [12:03:01]OFDProtocolAddRootSTLVToBuf [12:03:01]FM_MakeSignedData [12:03:01]FM_MakeSignedData [12:03:01]SAM_PROTO_SignData [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 0D 01 02 [12:03:01]Write to MH i2c: E2 08 00 FB 3A 80 0D 01 02 00 00 00 00 AE [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 FB 3A 00 90 00 A9 [12:03:01]RAPDU: 90 00 [12:03:01]wFMCommunicate OK [12:03:01]wFMCommunicate request_size=255 [12:03:01]MH_SAM_APDU [12:03:01]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F7 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 10 01 00 35 04 06 00 9C 17 [12:03:01]Write to MH i2c: E2 02 01 FC 3A 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F7 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 10 01 00 35 04 06 00 9C 17 00 00 BC [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 FC 3A 00 90 00 AA [12:03:01]RAPDU: 90 00 [12:03:01]wFMCommunicate OK [12:03:01]wFMCommunicate request_size=9 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 0D 02 02 04 16 AB A5 74 [12:03:01]Write to MH i2c: E2 0C 00 FD 3A 80 0D 02 02 04 00 16 AB A5 74 00 00 93 [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:01]Read from MH i2c: E2 03 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 03 00 FD 3A 00 90 00 AB [12:03:01]RAPDU: 90 00 [12:03:01]wFMCommunicate OK [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 0D 03 02 [12:03:01]Write to MH i2c: E2 08 00 FE 3A 80 0D 03 02 00 00 00 00 B3 [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 0B 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 0B 00 FE 3A 00 52 A5 AD 42 01 4F AF E3 90 00 7C [12:03:01]RAPDU: 52 A5 AD 42 01 4F AF E3 90 00 [12:03:01]wFMCommunicate OK [12:03:01]SAM_PROTO_SignData done [12:03:01]FM_MakeSignedData done [12:03:01]CreateOFDProtocolMessage [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 11 00 00 [12:03:01]Write to MH i2c: E2 08 00 FF 3A 80 11 00 00 00 00 00 00 B3 [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 17 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 17 00 FF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [12:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:01]wFMCommunicate OK [12:03:01]CreateOFDProtocolMessage done [12:03:01]OFDSenderStorePacket 69804 [12:03:01]StoreOFDPacket docnum=69804 [12:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9F 12 06 01 D4 BB 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F7 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 10 01 00 35 04 06 00 9C 17 16 AB A5 74 52 A5 AD 42 01 4F AF E3 [12:03:01]CheckFolder [12:03:01]dirname=/storage/ofd_packets [12:03:01]CheckFolder done [12:03:01]ProducePacketName [12:03:01]name=ofd_packets/00069804 [12:03:01]NVStorageSaveData ofd_packets/00069804 [12:03:01]File name is /storage/ofd_packets/00069804 [12:03:01]Write 300 bytes [12:03:01]NVStorageSaveData done [12:03:01]OFDSenderStorePacket done [12:03:01]KKMCreateOFDPacket done [12:03:01]NVStorageSaveData kkm_last_timestamp [12:03:01]File name is /storage/kkm_last_timestamp [12:03:01]Write 4 bytes [12:03:01]NVStorageSaveData done [12:03:01]ExternCall_PrintAddStr [12:03:01]wPrintStart [12:03:01]Write to MH i2c: 01 00 00 00 3B 3B [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: 01 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: 01 07 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: 01 07 00 00 3B 00 00 00 00 00 FF 0F 50 [12:03:01]RasterBufferAndPrint [12:03:01]line Счет N : (1)2885544 [12:03:01]line ИНН: 02508201610067 [12:03:01]line Контрольно-Кассовый Чек [12:03:01]line ПРОДАЖА [12:03:01]line ТРК (МРК, ГНК) : 71 [12:03:01]line Товар: 2711129700 [12:03:01]line ГАЗ-К-3 [12:03:01]line 25.710 * 38.90 [12:03:01]line = 1000.12 [12:03:01]line НДС 12% НСП 1% [12:03:01]line > о реализуемом товаре [12:03:01]line ОКРУГЛЕНИЕ: -0.12 [12:03:01]line ИТОГО: 1000.00 [12:03:01]line Внесено: 1000.00 [12:03:01]line СДАЧА: 0.00 [12:03:01]line НСП 1% : 8.85 [12:03:01]line НДС 12% : 106.21 [12:03:01]line Наличными: 1000.00 [12:03:01]line Безнал.: 0.00 [12:03:01]line Место: АЗС № 85 "Партнер Нефть" [12:03:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:03:01]line СНО: Общий режим [12:03:01]line Чек 194 21.10.2024 12:03 [12:03:01]line Смена: 194 ФФД: 1.0 [12:03:01]line ЗНМ: 0300000167 [12:03:01]line РНМ: 0000000000156251 [12:03:01]line Версия ККМ: v1.0 [12:03:01]line ФМ: 0000000000963346 [12:03:01]line ФД: 69804 [12:03:01]line ФПД: 171622978528628 [12:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120303&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69804&fm=171622978528628&tin=02508201610067®Number=0000000000156251&sum=100000 [12:03:01]OFD Sender: Processing packet 69804 [packets to send 18, broken 17] [12:03:01]ProducePacketName [12:03:01]name=ofd_packets/00069804 [12:03:01]OFD Sender: To server: pG, [12:03:01]CommunicateWithHost lk.salyk.kg:30040 [12:03:01]ConnectInit lk.salyk.kg [12:03:01]written 0, free lines is 4095 [12:03:02]Connected sock=10 [12:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 9F 12 06 01 D4 BB 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F7 42 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 10 01 00 35 04 06 00 9C 17 16 AB A5 74 52 A5 AD 42 01 4F AF E3 [12:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 4A 47 00 F6 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 10 01 00 F4 03 04 00 9B EC 15 67 B6 04 01 00 00 1F 2A 1C 4A 95 9A 1F F7 [12:03:02]CommunicateWithHost err = 0 [12:03:02]CheckOFDResponse [12:03:02]1017 (14) - 77093643461234 [12:03:02]1041 (16) - 0000000000963346 [12:03:02]1040 (4) - 69804 [12:03:02]1012 (4) - 21.10.2024 05:54 [12:03:02]1206 (1) - 0 [12:03:02]OFD Sender: Remove packet 69804 [12:03:02]ProducePacketName [12:03:02]name=ofd_packets/00069804 [12:03:02]NVStorageDeleteData [12:03:02]Write to MH i2c: 01 00 00 2B 3B 66 [12:03:02]Write i2c OK [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: 01 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: 01 07 00 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: 01 07 00 2B 3B 00 00 00 00 00 E4 0C 5D [12:03:02]RasterBufferAndPrint [12:03:02]line [12:03:02]line [12:03:02]line [12:03:02]line [12:03:02]line [12:03:02]written 0, free lines is 3306 [12:03:02]MH_Cut [12:03:02]Write to MH i2c: D1 01 00 32 3B 01 3F [12:03:02]Write i2c OK [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: D1 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: D1 01 00 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: D1 01 00 32 3B 00 3E [12:03:02]Write to MH i2c: 01 00 00 33 3B 6E [12:03:02]Write i2c OK [12:03:02]MH_I2C_Read... [12:03:02]OFD Sender: No OFD packet to send [12:03:03]*** Cut start [12:03:03]*** Partial cut [12:03:03]*** CUTSNS_PIN = 1 [12:03:03]*** CUTSNS_PIN = 0 [12:03:03]*** Brake cut motor [12:03:03]Read from MH i2c: 01 [12:03:03]MH_I2C_Read... [12:03:03]*** Stop cut motor [12:03:03]*** Cut end [12:03:03]Read from MH i2c: 01 07 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: 01 07 00 33 3B 00 00 00 00 00 FF 0F 83 [12:03:03]process_action close_receipt done [12:03:03]requested_data is exist [12:03:03]produce_requested_data [12:03:03]requested_item fm.sn is exist - process it [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 11 00 00 [12:03:03]Write to MH i2c: E2 08 00 34 3B 80 11 00 00 00 00 00 00 E9 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:03]Read from MH i2c: E2 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 17 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 17 00 34 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [12:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:03]wFMCommunicate OK [12:03:03]requested_item fd.num is exist - process it [12:03:03]SAM_PROTO_GetFieldsCounters [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 13 00 00 [12:03:03]Write to MH i2c: E2 08 00 35 3B 80 13 00 00 00 00 00 00 EC [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:03]Read from MH i2c: E2 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 62 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 62 00 35 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:03]wFMCommunicate OK [12:03:03]SAM_PROTO_GetFieldsCounters done [12:03:03]requested_item shift.num is exist - process it [12:03:03]requested_item shift.opened is exist - process it [12:03:03]req_shift_opened [12:03:03]FM_GetShiftState [12:03:03]SAM_PROTO_GetShiftState [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 13 01 00 [12:03:03]Write to MH i2c: E2 08 00 36 3B 80 13 01 00 00 00 00 00 EE [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0E 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0E 00 36 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1A [12:03:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:03:04]wFMCommunicate OK [12:03:04]SAM_PROTO_GetShiftState done [12:03:04]FM_GetShiftState done [12:03:04]req_shift_opened done [12:03:04]requested_item shift.open_date is exist - process it [12:03:04]req_shift_open_date [12:03:04]req_shift_open_date done [12:03:04]produce_requested_data done [12:03:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69804,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:03:04]process_action_free close_receipt [12:03:04]json_value_free [12:03:04]json_value_free done [12:03:04]process_json_proto returns [12:03:04]Send response to host [12:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69804,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:03:04]free response buf [12:03:04]execute_script done [12:03:04]execute_script returns [12:03:04]free content buf [12:03:04]Sock 8.Close socket [12:03:04]Sock 8.Thread stoped [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:09]accept exits with 9 [12:04:09]New connection [12:04:09]New thread 3067313508 created [12:04:09]Thread 3067456868 joined [12:04:09]Waiting for new connection... [12:04:09] Sock 9.Parse request [12:04:09]Sock 9.Check first char [12:04:09]Sock 9.First char is OK [12:04:09]request: POST /json_proto HTTP/1.0 [12:04:09]Method: POST [12:04:09]URL: /json_proto [12:04:09]Method is POST - this is cgi request [12:04:09]url: /json_proto [12:04:09]query_string will be loaded in cgi processing [12:04:09]execute_cgi json_proto POST (null) [12:04:09]execute_cgi path=json_proto method=POST [12:04:09]POST find Content-Length [12:04:09]Host: 172.17.50.3:8080 [12:04:09]Content-Length: 689 [12:04:09]Content-Type: application/json [12:04:09] [12:04:09]POST finish read [12:04:09]Found Content-Length = 689 [12:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:09]execute_script... [12:04: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)2885548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:09]POST & json_proto [12:04:09]process_json_proto [12:04:09]json parsed OK: [12:04:09]protocol is kg_v1.0 [12:04:09]action value=close_receipt [12:04:09]process_action close_receipt [12:04:09]cmd_close_receipt [12:04:09]MH_GetDate [12:04:09]Write to MH i2c: F0 00 00 37 3B 61 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: F0 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: F0 09 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: F0 09 00 37 3B 00 3D 43 16 67 6B 98 1E 66 EE [12:04:09]GetLastDocTimeStamp 1729512183 [12:04:09]current date 1729512253 [12:04:09]FM_GetShiftState [12:04:09]SAM_PROTO_GetShiftState [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 13 01 00 [12:04:09]Write to MH i2c: E2 08 00 38 3B 80 13 01 00 00 00 00 00 F0 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0E 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0E 00 38 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1C [12:04:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_GetShiftState done [12:04:09]FM_GetShiftState done [12:04:09]opened in 1729469703 [12:04:09]opened+sec_in_day 1729556103 [12:04:09]quantity*price = 400050 [12:04:09]sum+1 = 400051 [12:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 195 21.10.2024 12:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69805 ФПД: 211003883756086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69805&fm=211003883756086&tin=02508201610067®Number=0000000000156251&sum=400000 [12:04:11]StoreToDocumentArchive [12:04:11]shift 194 fd 69805 [12:04:11]save to /storage/0194/doc_00069805 [12:04:11]save last doc name /storage/0194/doc_00069805 to /storage/kkm_last_doc_name [12:04:11]save OK [12:04:11]Clear old archive folders... [12:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:04:11]tlvbuf is 00CA56B0 [12:04:11]SAM_PROTO_ClearQueue [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 09 00 00 [12:04:11]Write to MH i2c: E2 08 00 45 3B 80 09 00 00 00 00 00 00 F2 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [12:04:11]RAPDU: 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_ClearQueue done [12:04:11]KKMCreateOFDPacket [12:04:11]OFDProtocolAddRootSTLVToBuf [12:04:11]FM_MakeSignedData [12:04:11]FM_MakeSignedData [12:04:11]SAM_PROTO_SignData [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 0D 01 02 [12:04:11]Write to MH i2c: E2 08 00 46 3B 80 0D 01 02 00 00 00 00 FA [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 46 3B 00 90 00 F5 [12:04:11]RAPDU: 90 00 [12:04:11]wFMCommunicate OK [12:04:11]wFMCommunicate request_size=255 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3D 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 10 01 [12:04:11]Write to MH i2c: E2 02 01 47 3B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3D 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 10 01 00 00 B1 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [12:04:11]RAPDU: 90 00 [12:04:11]wFMCommunicate OK [12:04:11]wFMCommunicate request_size=16 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BF E8 2B 89 9A 36 [12:04:11]Write to MH i2c: E2 13 00 48 3B 80 0D 02 02 0B 00 00 35 04 06 00 BF E8 2B 89 9A 36 00 00 7D [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [12:04:11]RAPDU: 90 00 [12:04:11]wFMCommunicate OK [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 0D 03 02 [12:04:11]Write to MH i2c: E2 08 00 49 3B 80 0D 03 02 00 00 00 00 FF [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0B 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0B 00 49 3B 00 8E 59 CB 85 E0 AE 53 C8 90 00 E0 [12:04:11]RAPDU: 8E 59 CB 85 E0 AE 53 C8 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_SignData done [12:04:11]FM_MakeSignedData done [12:04:11]CreateOFDProtocolMessage [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 11 00 00 [12:04:11]Write to MH i2c: E2 08 00 4A 3B 80 11 00 00 00 00 00 00 FF [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 4A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [12:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:11]wFMCommunicate OK [12:04:11]CreateOFDProtocolMessage done [12:04:11]OFDSenderStorePacket 69805 [12:04:11]StoreOFDPacket docnum=69805 [12:04:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 63 03 0D 01 3B 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3D 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 10 01 00 35 04 06 00 BF E8 2B 89 9A 36 8E 59 CB 85 E0 AE 53 C8 [12:04:11]CheckFolder [12:04:11]dirname=/storage/ofd_packets [12:04:11]CheckFolder done [12:04:11]ProducePacketName [12:04:11]name=ofd_packets/00069805 [12:04:11]NVStorageSaveData ofd_packets/00069805 [12:04:11]File name is /storage/ofd_packets/00069805 [12:04:11]Write 307 bytes [12:04:11]NVStorageSaveData done [12:04:11]OFDSenderStorePacket done [12:04:11]KKMCreateOFDPacket done [12:04:11]NVStorageSaveData kkm_last_timestamp [12:04:11]File name is /storage/kkm_last_timestamp [12:04:11]Write 4 bytes [12:04:11]NVStorageSaveData done [12:04:11]ExternCall_PrintAddStr [12:04:11]wPrintStart [12:04:11]Write to MH i2c: 01 00 00 4B 3B 86 [12:04:11]OFD Sender: Processing packet 69805 [packets to send 18, broken 17] [12:04:11]ProducePacketName [12:04:11]name=ofd_packets/00069805 [12:04:11]OFD Sender: To server: pG, [12:04:11]CommunicateWithHost lk.salyk.kg:30040 [12:04:11]ConnectInit lk.salyk.kg [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 4B 3B 00 00 00 00 00 FF 0F 9B [12:04:11]RasterBufferAndPrint [12:04:11]line Счет N : (1)2885548 [12:04:11]line ИНН: 02508201610067 [12:04:11]line Контрольно-Кассовый Чек [12:04:11]line ПРОДАЖА [12:04:11]line ТРК (МРК, ГНК) : 21 [12:04:11]line Товар: 2710194240 [12:04:11]line D-ENERGY Дт-К-2 [12:04:11]line 51.820 * 77.20 [12:04:11]line = 4000.50 [12:04:11]line НДС 12% НСП 1% [12:04:11]line > о реализуемом товаре [12:04:11]line ОКРУГЛЕНИЕ: -0.50 [12:04:11]line ИТОГО: 4000.00 [12:04:11]line Внесено: 4000.00 [12:04:11]line СДАЧА: 0.00 [12:04:11]line НСП 1% : 35.40 [12:04:11]line НДС 12% : 424.83 [12:04:11]line Наличными: 4000.00 [12:04:11]line Безнал.: 0.00 [12:04:11]line Место: АЗС № 85 "Партнер Нефть" [12:04:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:04:11]line СНО: Общий режим [12:04:11]line Чек 195 21.10.2024 12:04 [12:04:11]line Смена: 194 ФФД: 1.0 [12:04:11]line ЗНМ: 0300000167 [12:04:11]line РНМ: 0000000000156251 [12:04:11]line Версия ККМ: v1.0 [12:04:11]line ФМ: 0000000000963346 [12:04:11]line ФД: 69805 [12:04:11]line ФПД: 211003883756086 [12:04:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69805&fm=211003883756086&tin=02508201610067®Number=0000000000156251&sum=400000 [12:04:11]Connected sock=10 [12:04:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 63 03 0D 01 3B 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 3D 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 10 01 00 35 04 06 00 BF E8 2B 89 9A 36 8E 59 CB 85 E0 AE 53 C8 [12:04:11]written 0, free lines is 4095 [12:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 23 7D 47 00 BC 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 10 01 00 F4 03 04 00 E1 EC 15 67 B6 04 01 00 00 A4 85 D8 83 E6 D5 47 52 [12:04:12]CommunicateWithHost err = 0 [12:04:12]CheckOFDResponse [12:04:12]1017 (14) - 77093643461234 [12:04:12]1041 (16) - 0000000000963346 [12:04:12]1040 (4) - 69805 [12:04:12]1012 (4) - 21.10.2024 05:55 [12:04:12]1206 (1) - 0 [12:04:12]OFD Sender: Remove packet 69805 [12:04:12]ProducePacketName [12:04:12]name=ofd_packets/00069805 [12:04:12]NVStorageDeleteData [12:04:12]Write to MH i2c: 01 00 00 76 3B B1 [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: 01 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: 01 07 00 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: 01 07 00 76 3B 00 00 00 00 00 EF 0C B3 [12:04:12]RasterBufferAndPrint [12:04:12]line [12:04:12]line [12:04:12]line [12:04:12]line [12:04:12]line [12:04:12]written 0, free lines is 3317 [12:04:12]MH_Cut [12:04:12]Write to MH i2c: D1 01 00 7D 3B 01 8A [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: D1 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: D1 01 00 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: D1 01 00 7D 3B 00 89 [12:04:12]Write to MH i2c: 01 00 00 7E 3B B9 [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:12]OFD Sender: No OFD packet to send [12:04:13]*** Cut start [12:04:13]*** Partial cut [12:04:13]*** CUTSNS_PIN = 1 [12:04:13]*** CUTSNS_PIN = 0 [12:04:13]*** Brake cut motor [12:04:13]Read from MH i2c: 01 [12:04:13]MH_I2C_Read... [12:04:13]*** Stop cut motor [12:04:13]*** Cut end [12:04:13]Read from MH i2c: 01 07 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: 01 07 00 7E 3B 00 00 00 00 00 FF 0F CE [12:04:13]process_action close_receipt done [12:04:13]requested_data is exist [12:04:13]produce_requested_data [12:04:13]requested_item fm.sn is exist - process it [12:04:13]wFMCommunicate request_size=4 [12:04:13]MH_SAM_APDU [12:04:13]CAPDU: 80 11 00 00 [12:04:13]Write to MH i2c: E2 08 00 7F 3B 80 11 00 00 00 00 00 00 34 [12:04:13]Write i2c OK [12:04:13]MH_I2C_Read... [12:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:13]Read from MH i2c: E2 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 17 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 17 00 7F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [12:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:13]wFMCommunicate OK [12:04:13]requested_item fd.num is exist - process it [12:04:13]SAM_PROTO_GetFieldsCounters [12:04:13]wFMCommunicate request_size=4 [12:04:13]MH_SAM_APDU [12:04:13]CAPDU: 80 13 00 00 [12:04:13]Write to MH i2c: E2 08 00 80 3B 80 13 00 00 00 00 00 00 37 [12:04:13]Write i2c OK [12:04:13]MH_I2C_Read... [12:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:13]Read from MH i2c: E2 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 62 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 62 00 80 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [12:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:13]wFMCommunicate OK [12:04:13]SAM_PROTO_GetFieldsCounters done [12:04:13]requested_item shift.num is exist - process it [12:04:13]requested_item shift.opened is exist - process it [12:04:13]req_shift_opened [12:04:13]FM_GetShiftState [12:04:13]SAM_PROTO_GetShiftState [12:04:13]wFMCommunicate request_size=4 [12:04:13]MH_SAM_APDU [12:04:13]CAPDU: 80 13 01 00 [12:04:13]Write to MH i2c: E2 08 00 81 3B 80 13 01 00 00 00 00 00 39 [12:04:13]Write i2c OK [12:04:13]MH_I2C_Read... [12:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:14]Read from MH i2c: E2 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 81 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 65 [12:04:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:04:14]wFMCommunicate OK [12:04:14]SAM_PROTO_GetShiftState done [12:04:14]FM_GetShiftState done [12:04:14]req_shift_opened done [12:04:14]requested_item shift.open_date is exist - process it [12:04:14]req_shift_open_date [12:04:14]req_shift_open_date done [12:04:14]produce_requested_data done [12:04:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69805,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:04:14]process_action_free close_receipt [12:04:14]json_value_free [12:04:14]json_value_free done [12:04:14]process_json_proto returns [12:04:14]Send response to host [12:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69805,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:04:14]free response buf [12:04:14]execute_script done [12:04:14]execute_script returns [12:04:14]free content buf [12:04:14]Sock 9.Close socket [12:04:14]Sock 9.Thread stoped [12:04:14]accept exits with 8 [12:04:14]New connection [12:04:14]New thread 3067456868 created [12:04:14]Thread 3067313508 joined [12:04:14]Waiting for new connection... [12:04:14] Sock 8.Parse request [12:04:14]Sock 8.Check first char [12:04:14]Sock 8.First char is OK [12:04:14]request: POST /json_proto HTTP/1.0 [12:04:14]Method: POST [12:04:14]URL: /json_proto [12:04:14]Method is POST - this is cgi request [12:04:14]url: /json_proto [12:04:14]query_string will be loaded in cgi processing [12:04:14]execute_cgi json_proto POST (null) [12:04:14]execute_cgi path=json_proto method=POST [12:04:14]POST find Content-Length [12:04:14]Host: 172.17.50.3:8080 [12:04:14]Content-Length: 678 [12:04:14]Content-Type: application/json [12:04:14] [12:04:14]POST finish read [12:04:14]Found Content-Length = 678 [12:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885549", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:14]execute_script... [12:04: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)2885549", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:14]POST & json_proto [12:04:14]process_json_proto [12:04:14]json parsed OK: [12:04:14]protocol is kg_v1.0 [12:04:14]action value=close_receipt [12:04:14]process_action close_receipt [12:04:14]cmd_close_receipt [12:04:14]MH_GetDate [12:04:14]Write to MH i2c: F0 00 00 82 3B AC [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 09 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 09 00 82 3B 00 41 43 16 67 6B 98 1E 66 3D [12:04:14]GetLastDocTimeStamp 1729512253 [12:04:14]current date 1729512257 [12:04:14]FM_GetShiftState [12:04:14]SAM_PROTO_GetShiftState [12:04:14]wFMCommunicate request_size=4 [12:04:14]MH_SAM_APDU [12:04:14]CAPDU: 80 13 01 00 [12:04:14]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:14]Read from MH i2c: E2 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 67 [12:04:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:04:14]wFMCommunicate OK [12:04:14]SAM_PROTO_GetShiftState done [12:04:14]FM_GetShiftState done [12:04:14]opened in 1729469703 [12:04:14]opened+sec_in_day 1729556103 [12:04:14]quantity*price = 50041 [12:04:14]sum+1 = 50042 [12:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 196 21.10.2024 12:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69806 ФПД: 33979346980435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120418&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69806&fm=33979346980435&tin=02508201610067®Number=0000000000156251&sum=50000 [12:04:15]StoreToDocumentArchive [12:04:15]shift 194 fd 69806 [12:04:15]save to /storage/0194/doc_00069806 [12:04:15]save last doc name /storage/0194/doc_00069806 to /storage/kkm_last_doc_name [12:04:15]save OK [12:04:15]Clear old archive folders... [12:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:15]tlvbuf is 00D7FB60 [12:04:15]SAM_PROTO_ClearQueue [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 09 00 00 [12:04:15]Write to MH i2c: E2 08 00 90 3B 80 09 00 00 00 00 00 00 3D [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]SAM_PROTO_ClearQueue done [12:04:15]KKMCreateOFDPacket [12:04:15]OFDProtocolAddRootSTLVToBuf [12:04:15]FM_MakeSignedData [12:04:15]FM_MakeSignedData [12:04:15]SAM_PROTO_SignData [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 0D 01 02 [12:04:15]Write to MH i2c: E2 08 00 91 3B 80 0D 01 02 00 00 00 00 45 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 91 3B 00 90 00 40 [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]wFMCommunicate request_size=255 [12:04:15]MH_SAM_APDU [12:04: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 42 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 10 01 00 35 04 06 00 1E [12:04:15]Write to MH i2c: E2 02 01 92 3B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 42 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 10 01 00 35 04 06 00 1E 00 00 33 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]wFMCommunicate request_size=10 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 0D 02 02 05 E7 6E E8 0E 53 [12:04:16]Write to MH i2c: E2 0D 00 93 3B 80 0D 02 02 05 00 E7 6E E8 0E 53 00 00 F0 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 0D 03 02 [12:04:16]Write to MH i2c: E2 08 00 94 3B 80 0D 03 02 00 00 00 00 4A [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0B 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0B 00 94 3B 00 53 A6 9E 28 A8 1F 14 58 90 00 3D [12:04:16]RAPDU: 53 A6 9E 28 A8 1F 14 58 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_SignData done [12:04:16]FM_MakeSignedData done [12:04:16]CreateOFDProtocolMessage [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 11 00 00 [12:04:16]Write to MH i2c: E2 08 00 95 3B 80 11 00 00 00 00 00 00 4A [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 17 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 17 00 95 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [12:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:16]wFMCommunicate OK [12:04:16]CreateOFDProtocolMessage done [12:04:16]OFDSenderStorePacket 69806 [12:04:16]StoreOFDPacket docnum=69806 [12:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 48 58 07 01 1D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 42 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 10 01 00 35 04 06 00 1E E7 6E E8 0E 53 53 A6 9E 28 A8 1F 14 58 [12:04:16]CheckFolder [12:04:16]dirname=/storage/ofd_packets [12:04:16]CheckFolder done [12:04:16]ProducePacketName [12:04:16]name=ofd_packets/00069806 [12:04:16]NVStorageSaveData ofd_packets/00069806 [12:04:16]File name is /storage/ofd_packets/00069806 [12:04:16]Write 301 bytes [12:04:16]NVStorageSaveData done [12:04:16]OFDSenderStorePacket done [12:04:16]KKMCreateOFDPacket done [12:04:16]NVStorageSaveData kkm_last_timestamp [12:04:16]File name is /storage/kkm_last_timestamp [12:04:16]Write 4 bytes [12:04:16]NVStorageSaveData done [12:04:16]ExternCall_PrintAddStr [12:04:16]wPrintStart [12:04:16]Write to MH i2c: 01 00 00 96 3B D1 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [12:04:16]RasterBufferAndPrint [12:04:16]line Счет N : (1)2885549 [12:04:16]line ИНН: 02508201610067 [12:04:16]line Контрольно-Кассовый Чек [12:04:16]line ПРОДАЖА [12:04:16]line ТРК (МРК, ГНК) : 32 [12:04:16]line Товар: 2710124130 [12:04:16]line Аи-92-К-5 [12:04:16]line 7.480 * 66.90 [12:04:16]line = 500.41 [12:04:16]line НДС 12% НСП 1% [12:04:16]line > о реализуемом товаре [12:04:16]line ОКРУГЛЕНИЕ: -0.41 [12:04:16]line ИТОГО: 500.00 [12:04:16]line Внесено: 500.00 [12:04:16]line СДАЧА: 0.00 [12:04:16]line НСП 1% : 4.43 [12:04:16]line НДС 12% : 53.14 [12:04:16]line Наличными: 500.00 [12:04:16]line Безнал.: 0.00 [12:04:16]line Место: АЗС № 85 "Партнер Нефть" [12:04:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:04:16]line СНО: Общий режим [12:04:16]line Чек 196 21.10.2024 12:04 [12:04:16]line Смена: 194 ФФД: 1.0 [12:04:16]line ЗНМ: 0300000167 [12:04:16]line РНМ: 0000000000156251 [12:04:16]line Версия ККМ: v1.0 [12:04:16]line ФМ: 0000000000963346 [12:04:16]line ФД: 69806 [12:04:16]line ФПД: 33979346980435 [12:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120418&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69806&fm=33979346980435&tin=02508201610067®Number=0000000000156251&sum=50000 [12:04:16]OFD Sender: Processing packet 69806 [packets to send 18, broken 17] [12:04:16]ProducePacketName [12:04:16]name=ofd_packets/00069806 [12:04:16]OFD Sender: To server: pG, [12:04:16]CommunicateWithHost lk.salyk.kg:30040 [12:04:16]ConnectInit lk.salyk.kg [12:04:16]written 0, free lines is 4095 [12:04:16]Connected sock=10 [12:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 48 58 07 01 1D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 42 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 10 01 00 35 04 06 00 1E E7 6E E8 0E 53 53 A6 9E 28 A8 1F 14 58 [12:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9F 6B 47 00 F3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 10 01 00 F4 03 04 00 E6 EC 15 67 B6 04 01 00 00 30 18 00 57 0A 82 4D AF [12:04:17]CommunicateWithHost err = 0 [12:04:17]CheckOFDResponse [12:04:17]1017 (14) - 77093643461234 [12:04:17]1041 (16) - 0000000000963346 [12:04:17]1040 (4) - 69806 [12:04:17]1012 (4) - 21.10.2024 05:55 [12:04:17]1206 (1) - 0 [12:04:17]OFD Sender: Remove packet 69806 [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00069806 [12:04:17]NVStorageDeleteData [12:04:17]Write to MH i2c: 01 00 00 C1 3B FC [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 C1 3B 00 00 00 00 00 0D 0D 1D [12:04:17]RasterBufferAndPrint [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]written 0, free lines is 3353 [12:04:17]MH_Cut [12:04:17]Write to MH i2c: D1 01 00 C8 3B 01 D5 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 01 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 01 00 C8 3B 00 D4 [12:04:17]Write to MH i2c: 01 00 00 C9 3B 04 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]OFD Sender: No OFD packet to send [12:04:17]*** Cut start [12:04:17]*** Partial cut [12:04:17]*** CUTSNS_PIN = 1 [12:04:18]*** CUTSNS_PIN = 0 [12:04:18]*** Brake cut motor [12:04:18]Read from MH i2c: 01 [12:04:18]MH_I2C_Read... [12:04:18]*** Stop cut motor [12:04:18]*** Cut end [12:04:18]Read from MH i2c: 01 07 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 C9 3B 00 00 00 00 00 FF 0F 19 [12:04:18]process_action close_receipt done [12:04:18]requested_data is exist [12:04:18]produce_requested_data [12:04:18]requested_item fm.sn is exist - process it [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 11 00 00 [12:04:18]Write to MH i2c: E2 08 00 CA 3B 80 11 00 00 00 00 00 00 7F [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 CA 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [12:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:04:18]wFMCommunicate OK [12:04:18]requested_item fd.num is exist - process it [12:04:18]SAM_PROTO_GetFieldsCounters [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 13 00 00 [12:04:18]Write to MH i2c: E2 08 00 CB 3B 80 13 00 00 00 00 00 00 82 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 62 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 62 00 CB 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [12:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_GetFieldsCounters done [12:04:18]requested_item shift.num is exist - process it [12:04:18]requested_item shift.opened is exist - process it [12:04:18]req_shift_opened [12:04:18]FM_GetShiftState [12:04:18]SAM_PROTO_GetShiftState [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 13 01 00 [12:04:18]Write to MH i2c: E2 08 00 CC 3B 80 13 01 00 00 00 00 00 84 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0E 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0E 00 CC 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B0 [12:04:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_GetShiftState done [12:04:18]FM_GetShiftState done [12:04:18]req_shift_opened done [12:04:18]requested_item shift.open_date is exist - process it [12:04:18]req_shift_open_date [12:04:18]req_shift_open_date done [12:04:18]produce_requested_data done [12:04:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69806,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:04:18]process_action_free close_receipt [12:04:18]json_value_free [12:04:18]json_value_free done [12:04:18]process_json_proto returns [12:04:18]Send response to host [12:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69806,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:04:18]free response buf [12:04:18]execute_script done [12:04:18]execute_script returns [12:04:18]free content buf [12:04:18]Sock 8.Close socket [12:04:18]Sock 8.Thread stoped [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:41]accept exits with 9 [12:05:41]New connection [12:05:41]New thread 3067313508 created [12:05:41]Thread 3067456868 joined [12:05:41]Waiting for new connection... [12:05:41] Sock 9.Parse request [12:05:41]Sock 9.Check first char [12:05:41]Sock 9.First char is OK [12:05:41]request: POST /json_proto HTTP/1.0 [12:05:41]Method: POST [12:05:41]URL: /json_proto [12:05:41]Method is POST - this is cgi request [12:05:41]url: /json_proto [12:05:41]query_string will be loaded in cgi processing [12:05:41]execute_cgi json_proto POST (null) [12:05:41]execute_cgi path=json_proto method=POST [12:05:41]POST find Content-Length [12:05:41]Host: 172.17.50.3:8080 [12:05:41]Content-Length: 767 [12:05:41]Content-Type: application/json [12:05:41] [12:05:41]POST finish read [12:05:41]Found Content-Length = 767 [12:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:41]execute_script... [12:05: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)2885550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:41]POST & json_proto [12:05:41]process_json_proto [12:05:41]json parsed OK: [12:05:41]protocol is kg_v1.0 [12:05:41]action value=close_receipt [12:05:41]process_action close_receipt [12:05:41]cmd_close_receipt [12:05:41]MH_GetDate [12:05:41]Write to MH i2c: F0 00 00 CD 3B F7 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 09 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 09 00 CD 3B 00 98 43 16 67 6B 98 1E 66 DF [12:05:41]GetLastDocTimeStamp 1729512258 [12:05:41]current date 1729512344 [12:05:41]FM_GetShiftState [12:05:41]SAM_PROTO_GetShiftState [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 01 00 [12:05:41]Write to MH i2c: E2 08 00 CE 3B 80 13 01 00 00 00 00 00 86 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 CE 3B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B2 [12:05:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetShiftState done [12:05:41]FM_GetShiftState done [12:05:41]opened in 1729469703 [12:05:41]opened+sec_in_day 1729556103 [12:05:41]quantity*price = 200025 [12:05:41]sum+1 = 200026 [12:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 197 21.10.2024 12:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69807 ФПД: 212432201163622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120544&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69807&fm=212432201163622&tin=02508201610067®Number=0000000000156251&sum=200025 [12:05:42]StoreToDocumentArchive [12:05:42]shift 194 fd 69807 [12:05:42]save to /storage/0194/doc_00069807 [12:05:42]save last doc name /storage/0194/doc_00069807 to /storage/kkm_last_doc_name [12:05:42]save OK [12:05:42]Clear old archive folders... [12:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:42]tlvbuf is 00D7F790 [12:05:42]SAM_PROTO_ClearQueue [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 09 00 00 [12:05:42]Write to MH i2c: E2 08 00 DB 3B 80 09 00 00 00 00 00 00 88 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 DB 3B 00 90 00 8A [12:05:42]RAPDU: 90 00 [12:05:42]wFMCommunicate OK [12:05:42]SAM_PROTO_ClearQueue done [12:05:42]KKMCreateOFDPacket [12:05:42]OFDProtocolAddRootSTLVToBuf [12:05:42]FM_MakeSignedData [12:05:42]FM_MakeSignedData [12:05:42]SAM_PROTO_SignData [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 0D 01 02 [12:05:42]Write to MH i2c: E2 08 00 DC 3B 80 0D 01 02 00 00 00 00 90 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 DC 3B 00 90 00 8B [12:05:42]RAPDU: 90 00 [12:05:42]wFMCommunicate OK [12:05:42]wFMCommunicate request_size=255 [12:05:42]MH_SAM_APDU [12:05:42]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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 10 01 00 35 04 06 00 C1 34 B9 E3 [12:05:42]Write to MH i2c: E2 02 01 DD 3B 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 10 01 00 35 04 06 00 C1 34 B9 E3 00 00 5F [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]OFD Sender: No OFD packet to send [12:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 DD 3B 00 90 00 8C [12:05:42]RAPDU: 90 00 [12:05:42]wFMCommunicate OK [12:05:42]wFMCommunicate request_size=7 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 0D 02 02 02 A3 66 [12:05:42]Write to MH i2c: E2 0A 00 DE 3B 80 0D 02 02 02 00 A3 66 00 00 A0 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 DE 3B 00 90 00 8D [12:05:42]RAPDU: 90 00 [12:05:42]wFMCommunicate OK [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 0D 03 02 [12:05:42]Write to MH i2c: E2 08 00 DF 3B 80 0D 03 02 00 00 00 00 95 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 0B 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 0B 00 DF 3B 00 AC F0 0D AE 45 EC 78 9E 90 00 34 [12:05:42]RAPDU: AC F0 0D AE 45 EC 78 9E 90 00 [12:05:42]wFMCommunicate OK [12:05:42]SAM_PROTO_SignData done [12:05:42]FM_MakeSignedData done [12:05:42]CreateOFDProtocolMessage [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 11 00 00 [12:05:42]Write to MH i2c: E2 08 00 E0 3B 80 11 00 00 00 00 00 00 95 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 E0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [12:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:42]wFMCommunicate OK [12:05:42]CreateOFDProtocolMessage done [12:05:42]OFDSenderStorePacket 69807 [12:05:42]StoreOFDPacket docnum=69807 [12:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 15 82 04 01 A9 2C 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 10 01 00 35 04 06 00 C1 34 B9 E3 A3 66 AC F0 0D AE 45 EC 78 9E [12:05:42]CheckFolder [12:05:42]dirname=/storage/ofd_packets [12:05:42]CheckFolder done [12:05:42]ProducePacketName [12:05:42]name=ofd_packets/00069807 [12:05:42]NVStorageSaveData ofd_packets/00069807 [12:05:42]File name is /storage/ofd_packets/00069807 [12:05:42]Write 298 bytes [12:05:42]NVStorageSaveData done [12:05:42]OFDSenderStorePacket done [12:05:42]KKMCreateOFDPacket done [12:05:42]NVStorageSaveData kkm_last_timestamp [12:05:42]File name is /storage/kkm_last_timestamp [12:05:42]Write 4 bytes [12:05:42]NVStorageSaveData done [12:05:42]ExternCall_PrintAddStr [12:05:42]wPrintStart [12:05:42]Write to MH i2c: 01 00 00 E1 3B 1C [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 E1 3B 00 00 00 00 00 FF 0F 31 [12:05:42]RasterBufferAndPrint [12:05:42]line Счет N : (1)2885550 [12:05:42]line ИНН: 02508201610067 [12:05:42]line Контрольно-Кассовый Чек [12:05:42]line ПРОДАЖА [12:05:42]line ТРК (МРК, ГНК) : 61 [12:05:42]line Товар: 2710194210 [12:05:42]line ДТ-К-5 [12:05:42]line 26.250 * 76.20 [12:05:42]line = 2000.25 [12:05:42]line НДС 12% НСП 1% [12:05:42]line > о реализуемом товаре [12:05:42]line ИТОГО: 2000.25 [12:05:42]line НСП 1% : 17.70 [12:05:42]line НДС 12% : 212.42 [12:05:42]line Наличными: 0.00 [12:05:42]line Безнал.: 2000.25 [12:05:42]line Место: АЗС № 85 "Партнер Нефть" [12:05:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:05:42]line СНО: Общий режим [12:05:42]line Чек 197 21.10.2024 12:05 [12:05:42]line Смена: 194 ФФД: 1.0 [12:05:42]line ЗНМ: 0300000167 [12:05:42]line РНМ: 0000000000156251 [12:05:42]line Версия ККМ: v1.0 [12:05:42]line Платежная система: Mbank [12:05:42]line ФМ: 0000000000963346 [12:05:42]line ФД: 69807 [12:05:42]line ФПД: 212432201163622 [12:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120544&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69807&fm=212432201163622&tin=02508201610067®Number=0000000000156251&sum=200025 [12:05:43]OFD Sender: Processing packet 69807 [packets to send 18, broken 17] [12:05:43]ProducePacketName [12:05:43]name=ofd_packets/00069807 [12:05:43]OFD Sender: To server: pG, [12:05:43]CommunicateWithHost lk.salyk.kg:30040 [12:05:43]ConnectInit lk.salyk.kg [12:05:43]written 0, free lines is 4095 [12:05:43]Connected sock=10 [12:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 15 82 04 01 A9 2C 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 98 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 10 01 00 35 04 06 00 C1 34 B9 E3 A3 66 AC F0 0D AE 45 EC 78 9E [12:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 20 71 47 00 66 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 10 01 00 F4 03 04 00 3C ED 15 67 B6 04 01 00 00 79 2C 90 3A 4A A3 09 4F [12:05:43]CommunicateWithHost err = 0 [12:05:43]CheckOFDResponse [12:05:43]1017 (14) - 77093643461234 [12:05:43]1041 (16) - 0000000000963346 [12:05:43]1040 (4) - 69807 [12:05:43]1012 (4) - 21.10.2024 05:57 [12:05:43]1206 (1) - 0 [12:05:43]OFD Sender: Remove packet 69807 [12:05:43]ProducePacketName [12:05:43]name=ofd_packets/00069807 [12:05:43]NVStorageDeleteData [12:05:43]Write to MH i2c: 01 00 00 0A 3C 46 [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 07 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 07 00 0A 3C 00 00 00 00 00 21 0D 7B [12:05:43]RasterBufferAndPrint [12:05:43]line [12:05:43]line [12:05:43]line [12:05:43]line [12:05:43]line [12:05:43]written 0, free lines is 3367 [12:05:43]MH_Cut [12:05:43]Write to MH i2c: D1 01 00 11 3C 01 1F [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: D1 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: D1 01 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: D1 01 00 11 3C 00 1E [12:05:43]Write to MH i2c: 01 00 00 12 3C 4E [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:44]OFD Sender: No OFD packet to send [12:05:44]*** Cut start [12:05:44]*** Partial cut [12:05:44]*** CUTSNS_PIN = 1 [12:05:44]*** CUTSNS_PIN = 0 [12:05:44]*** Brake cut motor [12:05:45]Read from MH i2c: 01 [12:05:45]MH_I2C_Read... [12:05:45]*** Stop cut motor [12:05:45]*** Cut end [12:05:45]Read from MH i2c: 01 07 00 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: 01 07 00 12 3C 00 00 00 00 00 FF 0F 63 [12:05:45]process_action close_receipt done [12:05:45]requested_data is exist [12:05:45]produce_requested_data [12:05:45]requested_item fm.sn is exist - process it [12:05:45]wFMCommunicate request_size=4 [12:05:45]MH_SAM_APDU [12:05:45]CAPDU: 80 11 00 00 [12:05:45]Write to MH i2c: E2 08 00 13 3C 80 11 00 00 00 00 00 00 C9 [12:05:45]Write i2c OK [12:05:45]MH_I2C_Read... [12:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:45]Read from MH i2c: E2 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 17 00 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 17 00 13 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [12:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:45]wFMCommunicate OK [12:05:45]requested_item fd.num is exist - process it [12:05:45]SAM_PROTO_GetFieldsCounters [12:05:45]wFMCommunicate request_size=4 [12:05:45]MH_SAM_APDU [12:05:45]CAPDU: 80 13 00 00 [12:05:45]Write to MH i2c: E2 08 00 14 3C 80 13 00 00 00 00 00 00 CC [12:05:45]Write i2c OK [12:05:45]MH_I2C_Read... [12:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:45]Read from MH i2c: E2 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 62 00 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 62 00 14 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:45]wFMCommunicate OK [12:05:45]SAM_PROTO_GetFieldsCounters done [12:05:45]requested_item shift.num is exist - process it [12:05:45]requested_item shift.opened is exist - process it [12:05:45]req_shift_opened [12:05:45]FM_GetShiftState [12:05:45]SAM_PROTO_GetShiftState [12:05:45]wFMCommunicate request_size=4 [12:05:45]MH_SAM_APDU [12:05:45]CAPDU: 80 13 01 00 [12:05:45]Write to MH i2c: E2 08 00 15 3C 80 13 01 00 00 00 00 00 CE [12:05:45]Write i2c OK [12:05:45]MH_I2C_Read... [12:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:45]Read from MH i2c: E2 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 0E 00 [12:05:45]MH_I2C_Read... [12:05:45]Read from MH i2c: E2 0E 00 15 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FA [12:05:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:05:45]wFMCommunicate OK [12:05:45]SAM_PROTO_GetShiftState done [12:05:45]FM_GetShiftState done [12:05:45]req_shift_opened done [12:05:45]requested_item shift.open_date is exist - process it [12:05:45]req_shift_open_date [12:05:45]req_shift_open_date done [12:05:45]produce_requested_data done [12:05:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69807,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:05:45]process_action_free close_receipt [12:05:45]json_value_free [12:05:45]json_value_free done [12:05:45]process_json_proto returns [12:05:45]Send response to host [12:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69807,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:05:45]free response buf [12:05:45]execute_script done [12:05:45]execute_script returns [12:05:45]free content buf [12:05:45]Sock 9.Close socket [12:05:45]Sock 9.Thread stoped [12:05:47]accept exits with 8 [12:05:47]New connection [12:05:47]New thread 3067456868 created [12:05:47]Thread 3067313508 joined [12:05:47]Waiting for new connection... [12:05:47] Sock 8.Parse request [12:05:47]Sock 8.Check first char [12:05:47]Sock 8.First char is OK [12:05:47]request: POST /json_proto HTTP/1.0 [12:05:47]Method: POST [12:05:47]URL: /json_proto [12:05:47]Method is POST - this is cgi request [12:05:47]url: /json_proto [12:05:47]query_string will be loaded in cgi processing [12:05:47]execute_cgi json_proto POST (null) [12:05:47]execute_cgi path=json_proto method=POST [12:05:47]POST find Content-Length [12:05:47]Host: 172.17.50.3:8080 [12:05:47]Content-Length: 770 [12:05:47]Content-Type: application/json [12:05:47] [12:05:47]POST finish read [12:05:47]Found Content-Length = 770 [12:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885551", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:47]execute_script... [12:05:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885551", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:47]POST & json_proto [12:05:47]process_json_proto [12:05:47]json parsed OK: [12:05:47]protocol is kg_v1.0 [12:05:47]action value=close_receipt [12:05:47]process_action close_receipt [12:05:47]cmd_close_receipt [12:05:47]MH_GetDate [12:05:47]Write to MH i2c: F0 00 00 16 3C 41 [12:05:47]Write i2c OK [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: F0 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: F0 09 00 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: F0 09 00 16 3C 00 9E 43 16 67 6B 98 1E 66 2F [12:05:47]GetLastDocTimeStamp 1729512344 [12:05:47]current date 1729512350 [12:05:47]FM_GetShiftState [12:05:47]SAM_PROTO_GetShiftState [12:05:47]wFMCommunicate request_size=4 [12:05:47]MH_SAM_APDU [12:05:47]CAPDU: 80 13 01 00 [12:05:47]Write to MH i2c: E2 08 00 17 3C 80 13 01 00 00 00 00 00 D0 [12:05:47]Write i2c OK [12:05:47]MH_I2C_Read... [12:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:47]Read from MH i2c: E2 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 0E 00 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 0E 00 17 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FC [12:05:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:05:47]wFMCommunicate OK [12:05:47]SAM_PROTO_GetShiftState done [12:05:47]FM_GetShiftState done [12:05:47]opened in 1729469703 [12:05:47]opened+sec_in_day 1729556103 [12:05:47]quantity*price = 100015 [12:05:47]sum+1 = 100017 [12:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 198 21.10.2024 12:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69808 ФПД: 166504125635363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69808&fm=166504125635363&tin=02508201610067®Number=0000000000156251&sum=100016 [12:05:48]StoreToDocumentArchive [12:05:48]shift 194 fd 69808 [12:05:48]save to /storage/0194/doc_00069808 [12:05:48]save last doc name /storage/0194/doc_00069808 to /storage/kkm_last_doc_name [12:05:48]save OK [12:05:48]Clear old archive folders... [12:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:48]tlvbuf is 00D17060 [12:05:48]SAM_PROTO_ClearQueue [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 09 00 00 [12:05:48]Write to MH i2c: E2 08 00 24 3C 80 09 00 00 00 00 00 00 D2 [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 24 3C 00 90 00 D4 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]SAM_PROTO_ClearQueue done [12:05:48]KKMCreateOFDPacket [12:05:48]OFDProtocolAddRootSTLVToBuf [12:05:48]FM_MakeSignedData [12:05:48]FM_MakeSignedData [12:05:48]SAM_PROTO_SignData [12:05:48]wFMCommunicate request_size=4 [12:05:48]MH_SAM_APDU [12:05:48]CAPDU: 80 0D 01 02 [12:05:48]Write to MH i2c: E2 08 00 25 3C 80 0D 01 02 00 00 00 00 DA [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:48]Read from MH i2c: E2 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 [12:05:48]MH_I2C_Read... [12:05:48]Read from MH i2c: E2 03 00 25 3C 00 90 00 D5 [12:05:48]RAPDU: 90 00 [12:05:48]wFMCommunicate OK [12:05:48]wFMCommunicate request_size=255 [12:05:48]MH_SAM_APDU [12:05: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 9E 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 10 01 00 35 04 06 00 97 [12:05:48]Write to MH i2c: E2 02 01 26 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 9E 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 10 01 00 35 04 06 00 97 00 00 BB [12:05:48]Write i2c OK [12:05:48]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 26 3C 00 90 00 D6 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]wFMCommunicate request_size=10 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 02 02 05 6F 43 43 1B 23 [12:05:49]Write to MH i2c: E2 0D 00 27 3C 80 0D 02 02 05 00 6F 43 43 1B 23 00 00 1A [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 03 00 27 3C 00 90 00 D7 [12:05:49]RAPDU: 90 00 [12:05:49]wFMCommunicate OK [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 0D 03 02 [12:05:49]Write to MH i2c: E2 08 00 28 3C 80 0D 03 02 00 00 00 00 DF [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]OFD Sender: No OFD packet to send [12:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 0B 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 0B 00 28 3C 00 0B FA 02 0D 73 F3 0A 4C 90 00 B0 [12:05:49]RAPDU: 0B FA 02 0D 73 F3 0A 4C 90 00 [12:05:49]wFMCommunicate OK [12:05:49]SAM_PROTO_SignData done [12:05:49]FM_MakeSignedData done [12:05:49]CreateOFDProtocolMessage [12:05:49]wFMCommunicate request_size=4 [12:05:49]MH_SAM_APDU [12:05:49]CAPDU: 80 11 00 00 [12:05:49]Write to MH i2c: E2 08 00 29 3C 80 11 00 00 00 00 00 00 DF [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:49]Read from MH i2c: E2 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 17 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: E2 17 00 29 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [12:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:49]wFMCommunicate OK [12:05:49]CreateOFDProtocolMessage done [12:05:49]OFDSenderStorePacket 69808 [12:05:49]StoreOFDPacket docnum=69808 [12:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D C6 07 01 3B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 9E 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 10 01 00 35 04 06 00 97 6F 43 43 1B 23 0B FA 02 0D 73 F3 0A 4C [12:05:49]CheckFolder [12:05:49]dirname=/storage/ofd_packets [12:05:49]CheckFolder done [12:05:49]ProducePacketName [12:05:49]name=ofd_packets/00069808 [12:05:49]NVStorageSaveData ofd_packets/00069808 [12:05:49]File name is /storage/ofd_packets/00069808 [12:05:49]Write 301 bytes [12:05:49]NVStorageSaveData done [12:05:49]OFDSenderStorePacket done [12:05:49]KKMCreateOFDPacket done [12:05:49]NVStorageSaveData kkm_last_timestamp [12:05:49]File name is /storage/kkm_last_timestamp [12:05:49]Write 4 bytes [12:05:49]NVStorageSaveData done [12:05:49]ExternCall_PrintAddStr [12:05:49]wPrintStart [12:05:49]Write to MH i2c: 01 00 00 2A 3C 66 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 FF 0F 7B [12:05:49]RasterBufferAndPrint [12:05:49]line Счет N : (1)2885551 [12:05:49]line ИНН: 02508201610067 [12:05:49]line Контрольно-Кассовый Чек [12:05:49]line ПРОДАЖА [12:05:49]line ТРК (МРК, ГНК) : 42 [12:05:49]line Товар: 2710124130 [12:05:49]line Аи-92-К-5 [12:05:49]line 14.950 * 66.90 [12:05:49]line = 1000.16 [12:05:49]line НДС 12% НСП 1% [12:05:49]line > о реализуемом товаре [12:05:49]line ИТОГО: 1000.16 [12:05:49]line НСП 1% : 8.85 [12:05:49]line НДС 12% : 106.21 [12:05:49]line Наличными: 0.00 [12:05:49]line Безнал.: 1000.16 [12:05:49]line Место: АЗС № 85 "Партнер Нефть" [12:05:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:05:49]line СНО: Общий режим [12:05:49]line Чек 198 21.10.2024 12:05 [12:05:49]line Смена: 194 ФФД: 1.0 [12:05:49]line ЗНМ: 0300000167 [12:05:49]line РНМ: 0000000000156251 [12:05:49]line Версия ККМ: v1.0 [12:05:49]line Платежная система: Mbank [12:05:49]line ФМ: 0000000000963346 [12:05:49]line ФД: 69808 [12:05:49]line ФПД: 166504125635363 [12:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120550&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69808&fm=166504125635363&tin=02508201610067®Number=0000000000156251&sum=100016 [12:05:49]written 0, free lines is 4095 [12:05:49]OFD Sender: Processing packet 69808 [packets to send 18, broken 17] [12:05:49]ProducePacketName [12:05:49]name=ofd_packets/00069808 [12:05:49]OFD Sender: To server: pG, [12:05:49]CommunicateWithHost lk.salyk.kg:30040 [12:05:49]ConnectInit lk.salyk.kg [12:05:49]Connected sock=10 [12:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D C6 07 01 3B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 9E 43 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 10 01 00 35 04 06 00 97 6F 43 43 1B 23 0B FA 02 0D 73 F3 0A 4C [12:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD 1B 47 00 56 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 10 01 00 F4 03 04 00 42 ED 15 67 B6 04 01 00 00 45 39 28 6F 6B A9 29 E4 [12:05:49]CommunicateWithHost err = 0 [12:05:49]CheckOFDResponse [12:05:49]1017 (14) - 77093643461234 [12:05:49]1041 (16) - 0000000000963346 [12:05:49]1040 (4) - 69808 [12:05:49]1012 (4) - 21.10.2024 05:57 [12:05:49]1206 (1) - 0 [12:05:49]OFD Sender: Remove packet 69808 [12:05:49]ProducePacketName [12:05:49]name=ofd_packets/00069808 [12:05:49]NVStorageDeleteData [12:05:49]Write to MH i2c: 01 00 00 53 3C 8F [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: 01 07 00 53 3C 00 00 00 00 00 31 0D D4 [12:05:49]RasterBufferAndPrint [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]line [12:05:49]written 0, free lines is 3393 [12:05:49]MH_Cut [12:05:49]Write to MH i2c: D1 01 00 5A 3C 01 68 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 01 00 [12:05:49]MH_I2C_Read... [12:05:49]Read from MH i2c: D1 01 00 5A 3C 00 67 [12:05:49]Write to MH i2c: 01 00 00 5B 3C 97 [12:05:49]Write i2c OK [12:05:49]MH_I2C_Read... [12:05:50]OFD Sender: No OFD packet to send [12:05:50]*** Cut start [12:05:50]*** Partial cut [12:05:50]*** CUTSNS_PIN = 1 [12:05:50]*** CUTSNS_PIN = 0 [12:05:50]*** Brake cut motor [12:05:50]Read from MH i2c: 01 [12:05:50]MH_I2C_Read... [12:05:50]*** Stop cut motor [12:05:50]*** Cut end [12:05:50]Read from MH i2c: 01 07 00 [12:05:50]MH_I2C_Read... [12:05:50]Read from MH i2c: 01 07 00 5B 3C 00 00 00 00 00 FF 0F AC [12:05:50]process_action close_receipt done [12:05:50]requested_data is exist [12:05:50]produce_requested_data [12:05:50]requested_item fm.sn is exist - process it [12:05:50]wFMCommunicate request_size=4 [12:05:50]MH_SAM_APDU [12:05:50]CAPDU: 80 11 00 00 [12:05:50]Write to MH i2c: E2 08 00 5C 3C 80 11 00 00 00 00 00 00 12 [12:05:50]Write i2c OK [12:05:50]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 17 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 17 00 5C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [12:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:51]wFMCommunicate OK [12:05:51]requested_item fd.num is exist - process it [12:05:51]SAM_PROTO_GetFieldsCounters [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 13 00 00 [12:05:51]Write to MH i2c: E2 08 00 5D 3C 80 13 00 00 00 00 00 00 15 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 62 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 62 00 5D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_GetFieldsCounters done [12:05:51]requested_item shift.num is exist - process it [12:05:51]requested_item shift.opened is exist - process it [12:05:51]req_shift_opened [12:05:51]FM_GetShiftState [12:05:51]SAM_PROTO_GetShiftState [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 13 01 00 [12:05:51]Write to MH i2c: E2 08 00 5E 3C 80 13 01 00 00 00 00 00 17 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 5E 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 43 [12:05:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_GetShiftState done [12:05:51]FM_GetShiftState done [12:05:51]req_shift_opened done [12:05:51]requested_item shift.open_date is exist - process it [12:05:51]req_shift_open_date [12:05:51]req_shift_open_date done [12:05:51]produce_requested_data done [12:05:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69808,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:05:51]process_action_free close_receipt [12:05:51]json_value_free [12:05:51]json_value_free done [12:05:51]process_json_proto returns [12:05:51]Send response to host [12:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69808,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:05:51]free response buf [12:05:51]execute_script done [12:05:51]execute_script returns [12:05:51]free content buf [12:05:51]Sock 8.Close socket [12:05:51]Sock 8.Thread stoped [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: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: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 [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:14]accept exits with 9 [12:12:14]New connection [12:12:14]New thread 3067313508 created [12:12:14]Thread 3067456868 joined [12:12:14]Waiting for new connection... [12:12:14] Sock 9.Parse request [12:12:14]Sock 9.Check first char [12:12:14]Sock 9.First char is OK [12:12:14]request: POST /json_proto HTTP/1.0 [12:12:14]Method: POST [12:12:14]URL: /json_proto [12:12:14]Method is POST - this is cgi request [12:12:14]url: /json_proto [12:12:14]query_string will be loaded in cgi processing [12:12:14]execute_cgi json_proto POST (null) [12:12:14]execute_cgi path=json_proto method=POST [12:12:14]POST find Content-Length [12:12:14]Host: 172.17.50.3:8080 [12:12:14]Content-Length: 689 [12:12:14]Content-Type: application/json [12:12:14] [12:12:14]POST finish read [12:12:14]Found Content-Length = 689 [12:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 55.700, "sum" : 4300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4300.00, "total" : 4300.00, "payments": [ { "type": 0, "sum" : 4300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:14]execute_script... [12:12: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)2885553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 55.700, "sum" : 4300.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4300.00, "total" : 4300.00, "payments": [ { "type": 0, "sum" : 4300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:14]POST & json_proto [12:12:14]process_json_proto [12:12:14]json parsed OK: [12:12:14]protocol is kg_v1.0 [12:12:14]action value=close_receipt [12:12:14]process_action close_receipt [12:12:14]cmd_close_receipt [12:12:14]MH_GetDate [12:12:14]Write to MH i2c: F0 00 00 5F 3C 8A [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 09 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 09 00 5F 3C 00 21 45 16 67 6B 98 1E 66 FD [12:12:14]GetLastDocTimeStamp 1729512350 [12:12:14]current date 1729512737 [12:12:14]FM_GetShiftState [12:12:14]SAM_PROTO_GetShiftState [12:12:14]wFMCommunicate request_size=4 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 13 01 00 [12:12:14]Write to MH i2c: E2 08 00 60 3C 80 13 01 00 00 00 00 00 19 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0E 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0E 00 60 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 45 [12:12:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:12:14]wFMCommunicate OK [12:12:14]SAM_PROTO_GetShiftState done [12:12:14]FM_GetShiftState done [12:12:14]opened in 1729469703 [12:12:14]opened+sec_in_day 1729556103 [12:12:14]quantity*price = 430004 [12:12:14]sum+1 = 430005 [12:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 4300.00 Внесено: 4300.00 СДАЧА: 0.00 НСП 1% : 38.05 НДС 12% : 456.64 Наличными: 4300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 199 21.10.2024 12:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69809 ФПД: 264012626713664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69809&fm=264012626713664&tin=02508201610067®Number=0000000000156251&sum=430000 [12:12:15]StoreToDocumentArchive [12:12:15]shift 194 fd 69809 [12:12:15]save to /storage/0194/doc_00069809 [12:12:15]save last doc name /storage/0194/doc_00069809 to /storage/kkm_last_doc_name [12:12:15]save OK [12:12:15]Clear old archive folders... [12:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:12:15]tlvbuf is B6E230E0 [12:12:15]SAM_PROTO_ClearQueue [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 09 00 00 [12:12:15]Write to MH i2c: E2 08 00 6D 3C 80 09 00 00 00 00 00 00 1B [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 6D 3C 00 90 00 1D [12:12:15]RAPDU: 90 00 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_ClearQueue done [12:12:15]KKMCreateOFDPacket [12:12:15]OFDProtocolAddRootSTLVToBuf [12:12:15]FM_MakeSignedData [12:12:15]FM_MakeSignedData [12:12:15]SAM_PROTO_SignData [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 0D 01 02 [12:12:15]Write to MH i2c: E2 08 00 6E 3C 80 0D 01 02 00 00 00 00 23 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 6E 3C 00 90 00 1E [12:12:15]RAPDU: 90 00 [12:12:15]wFMCommunicate OK [12:12:15]wFMCommunicate request_size=255 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B4 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 B2 00 00 00 00 07 04 06 00 B0 8F 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 10 01 [12:12:15]Write to MH i2c: E2 02 01 6F 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B4 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 B2 00 00 00 00 07 04 06 00 B0 8F 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 10 01 00 00 44 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]OFD Sender: No OFD packet to send [12:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 6F 3C 00 90 00 1F [12:12:15]RAPDU: 90 00 [12:12:15]wFMCommunicate OK [12:12:15]wFMCommunicate request_size=16 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F0 1E 3A D4 DC 40 [12:12:15]Write to MH i2c: E2 13 00 70 3C 80 0D 02 02 0B 00 00 35 04 06 00 F0 1E 3A D4 DC 40 00 00 B3 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 70 3C 00 90 00 20 [12:12:15]RAPDU: 90 00 [12:12:15]wFMCommunicate OK [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 0D 03 02 [12:12:15]Write to MH i2c: E2 08 00 71 3C 80 0D 03 02 00 00 00 00 28 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 0B 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 0B 00 71 3C 00 4A 13 92 C9 0D 45 50 76 90 00 F9 [12:12:15]RAPDU: 4A 13 92 C9 0D 45 50 76 90 00 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_SignData done [12:12:15]FM_MakeSignedData done [12:12:15]CreateOFDProtocolMessage [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 11 00 00 [12:12:15]Write to MH i2c: E2 08 00 72 3C 80 11 00 00 00 00 00 00 28 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 72 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [12:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:15]wFMCommunicate OK [12:12:15]CreateOFDProtocolMessage done [12:12:15]OFDSenderStorePacket 69809 [12:12:15]StoreOFDPacket docnum=69809 [12:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 93 C6 0D 01 E4 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B4 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 B2 00 00 00 00 07 04 06 00 B0 8F 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 10 01 00 35 04 06 00 F0 1E 3A D4 DC 40 4A 13 92 C9 0D 45 50 76 [12:12:15]CheckFolder [12:12:15]dirname=/storage/ofd_packets [12:12:15]CheckFolder done [12:12:15]ProducePacketName [12:12:15]name=ofd_packets/00069809 [12:12:15]NVStorageSaveData ofd_packets/00069809 [12:12:15]File name is /storage/ofd_packets/00069809 [12:12:15]Write 307 bytes [12:12:15]NVStorageSaveData done [12:12:15]OFDSenderStorePacket done [12:12:15]KKMCreateOFDPacket done [12:12:15]NVStorageSaveData kkm_last_timestamp [12:12:15]File name is /storage/kkm_last_timestamp [12:12:15]Write 4 bytes [12:12:15]NVStorageSaveData done [12:12:15]OFD Sender: Processing packet 69809 [packets to send 18, broken 17] [12:12:15]ProducePacketName [12:12:15]name=ofd_packets/00069809 [12:12:15]OFD Sender: To server: pG, [12:12:15]CommunicateWithHost lk.salyk.kg:30040 [12:12:15]ConnectInit lk.salyk.kg [12:12:15]ExternCall_PrintAddStr [12:12:15]wPrintStart [12:12:15]Write to MH i2c: 01 00 00 73 3C AF [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 07 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 07 00 73 3C 00 00 00 00 00 FF 0F C4 [12:12:15]RasterBufferAndPrint [12:12:15]line Счет N : (1)2885553 [12:12:15]line ИНН: 02508201610067 [12:12:15]line Контрольно-Кассовый Чек [12:12:15]line ПРОДАЖА [12:12:15]line ТРК (МРК, ГНК) : 31 [12:12:15]line Товар: 2710194240 [12:12:15]line D-ENERGY Дт-К-2 [12:12:15]line 55.700 * 77.20 [12:12:15]line = 4300.04 [12:12:15]line НДС 12% НСП 1% [12:12:15]line > о реализуемом товаре [12:12:15]line ОКРУГЛЕНИЕ: -0.04 [12:12:15]line ИТОГО: 4300.00 [12:12:15]line Внесено: 4300.00 [12:12:15]line СДАЧА: 0.00 [12:12:15]line НСП 1% : 38.05 [12:12:15]line НДС 12% : 456.64 [12:12:15]line Наличными: 4300.00 [12:12:15]line Безнал.: 0.00 [12:12:15]line Место: АЗС № 85 "Партнер Нефть" [12:12:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:12:15]line СНО: Общий режим [12:12:16]line Чек 199 21.10.2024 12:12 [12:12:16]line Смена: 194 ФФД: 1.0 [12:12:16]line ЗНМ: 0300000167 [12:12:16]line РНМ: 0000000000156251 [12:12:16]line Версия ККМ: v1.0 [12:12:16]line ФМ: 0000000000963346 [12:12:16]line ФД: 69809 [12:12:16]line ФПД: 264012626713664 [12:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69809&fm=264012626713664&tin=02508201610067®Number=0000000000156251&sum=430000 [12:12:16]Connected sock=11 [12:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 93 C6 0D 01 E4 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B4 8F 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 8F 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 B2 00 00 00 00 07 04 06 00 B0 8F 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 10 01 00 35 04 06 00 F0 1E 3A D4 DC 40 4A 13 92 C9 0D 45 50 76 [12:12:16]written 0, free lines is 4095 [12:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 25 63 47 00 2A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 10 01 00 F4 03 04 00 C5 EE 15 67 B6 04 01 00 00 14 78 55 F0 FC 4D 86 95 [12:12:16]CommunicateWithHost err = 0 [12:12:16]CheckOFDResponse [12:12:16]1017 (14) - 77093643461234 [12:12:16]1041 (16) - 0000000000963346 [12:12:16]1040 (4) - 69809 [12:12:16]1012 (4) - 21.10.2024 06:03 [12:12:16]1206 (1) - 0 [12:12:16]OFD Sender: Remove packet 69809 [12:12:16]ProducePacketName [12:12:16]name=ofd_packets/00069809 [12:12:16]NVStorageDeleteData [12:12:16]Write to MH i2c: 01 00 00 9E 3C DA [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 F7 0C E4 [12:12:16]RasterBufferAndPrint [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]written 0, free lines is 3328 [12:12:16]MH_Cut [12:12:16]Write to MH i2c: D1 01 00 A5 3C 01 B3 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 01 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 01 00 A5 3C 00 B2 [12:12:16]Write to MH i2c: 01 00 00 A6 3C E2 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]OFD Sender: No OFD packet to send [12:12:17]*** Cut start [12:12:17]*** Partial cut [12:12:17]*** CUTSNS_PIN = 1 [12:12:17]*** CUTSNS_PIN = 0 [12:12:17]*** Brake cut motor [12:12:17]Read from MH i2c: 01 [12:12:17]MH_I2C_Read... [12:12:17]*** Stop cut motor [12:12:17]*** Cut end [12:12:17]Read from MH i2c: 01 07 00 [12:12:17]MH_I2C_Read... [12:12:17]Read from MH i2c: 01 07 00 A6 3C 00 00 00 00 00 FF 0F F7 [12:12:17]process_action close_receipt done [12:12:17]requested_data is exist [12:12:17]produce_requested_data [12:12:17]requested_item fm.sn is exist - process it [12:12:17]wFMCommunicate request_size=4 [12:12:17]MH_SAM_APDU [12:12:17]CAPDU: 80 11 00 00 [12:12:17]Write to MH i2c: E2 08 00 A7 3C 80 11 00 00 00 00 00 00 5D [12:12:17]Write i2c OK [12:12:17]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 A7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [12:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:18]wFMCommunicate OK [12:12:18]requested_item fd.num is exist - process it [12:12:18]SAM_PROTO_GetFieldsCounters [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 13 00 00 [12:12:18]Write to MH i2c: E2 08 00 A8 3C 80 13 00 00 00 00 00 00 60 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 62 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 62 00 A8 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [12:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_GetFieldsCounters done [12:12:18]requested_item shift.num is exist - process it [12:12:18]requested_item shift.opened is exist - process it [12:12:18]req_shift_opened [12:12:18]FM_GetShiftState [12:12:18]SAM_PROTO_GetShiftState [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 13 01 00 [12:12:18]Write to MH i2c: E2 08 00 A9 3C 80 13 01 00 00 00 00 00 62 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0E 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0E 00 A9 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8E [12:12:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_GetShiftState done [12:12:18]FM_GetShiftState done [12:12:18]req_shift_opened done [12:12:18]requested_item shift.open_date is exist - process it [12:12:18]req_shift_open_date [12:12:18]req_shift_open_date done [12:12:18]produce_requested_data done [12:12:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69809,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:12:18]process_action_free close_receipt [12:12:18]json_value_free [12:12:18]json_value_free done [12:12:18]process_json_proto returns [12:12:18]Send response to host [12:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69809,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:12:18]free response buf [12:12:18]execute_script done [12:12:18]execute_script returns [12:12:18]free content buf [12:12:18]Sock 9.Close socket [12:12:18]Sock 9.Thread stoped [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:44]accept exits with 8 [12:12:44]New connection [12:12:44]New thread 3067456868 created [12:12:44]Thread 3067313508 joined [12:12:44]Waiting for new connection... [12:12:44] Sock 8.Parse request [12:12:44]Sock 8.Check first char [12:12:44]Sock 8.First char is OK [12:12:44]request: POST /json_proto HTTP/1.0 [12:12:44]Method: POST [12:12:44]URL: /json_proto [12:12:44]Method is POST - this is cgi request [12:12:44]url: /json_proto [12:12:44]query_string will be loaded in cgi processing [12:12:44]execute_cgi json_proto POST (null) [12:12:44]execute_cgi path=json_proto method=POST [12:12:44]POST find Content-Length [12:12:44]Host: 172.17.50.3:8080 [12:12:44]Content-Length: 689 [12:12:44]Content-Type: application/json [12:12:44] [12:12:44]POST finish read [12:12:44]Found Content-Length = 689 [12:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:12:44]execute_script... [12:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:12:44]POST & json_proto [12:12:44]process_json_proto [12:12:44]json parsed OK: [12:12:44]protocol is kg_v1.0 [12:12:44]action value=close_receipt [12:12:44]process_action close_receipt [12:12:44]cmd_close_receipt [12:12:44]MH_GetDate [12:12:44]Write to MH i2c: F0 00 00 AA 3C D5 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: F0 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: F0 09 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: F0 09 00 AA 3C 00 3F 45 16 67 6B 98 1E 66 66 [12:12:44]GetLastDocTimeStamp 1729512737 [12:12:44]current date 1729512767 [12:12:44]FM_GetShiftState [12:12:44]SAM_PROTO_GetShiftState [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 13 01 00 [12:12:44]Write to MH i2c: E2 08 00 AB 3C 80 13 01 00 00 00 00 00 64 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 0E 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 0E 00 AB 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 90 [12:12:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:12:44]wFMCommunicate OK [12:12:44]SAM_PROTO_GetShiftState done [12:12:44]FM_GetShiftState done [12:12:44]opened in 1729469703 [12:12:44]opened+sec_in_day 1729556103 [12:12:44]quantity*price = 100051 [12:12:44]sum+1 = 100052 [12:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 200 21.10.2024 12:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69810 ФПД: 145419920354472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69810&fm=145419920354472&tin=02508201610067®Number=0000000000156251&sum=100000 [12:12:45]StoreToDocumentArchive [12:12:45]shift 194 fd 69810 [12:12:45]save to /storage/0194/doc_00069810 [12:12:45]save last doc name /storage/0194/doc_00069810 to /storage/kkm_last_doc_name [12:12:45]save OK [12:12:45]Clear old archive folders... [12:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:12:45]tlvbuf is 00D14990 [12:12:45]SAM_PROTO_ClearQueue [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 09 00 00 [12:12:45]Write to MH i2c: E2 08 00 B8 3C 80 09 00 00 00 00 00 00 66 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 B8 3C 00 90 00 68 [12:12:45]RAPDU: 90 00 [12:12:45]wFMCommunicate OK [12:12:45]SAM_PROTO_ClearQueue done [12:12:45]KKMCreateOFDPacket [12:12:45]OFDProtocolAddRootSTLVToBuf [12:12:45]FM_MakeSignedData [12:12:45]FM_MakeSignedData [12:12:45]SAM_PROTO_SignData [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 0D 01 02 [12:12:45]Write to MH i2c: E2 08 00 B9 3C 80 0D 01 02 00 00 00 00 6E [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 B9 3C 00 90 00 69 [12:12:45]RAPDU: 90 00 [12:12:45]wFMCommunicate OK [12:12:45]wFMCommunicate request_size=255 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C8 00 00 00 F4 03 04 00 3F 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 10 01 [12:12:45]Write to MH i2c: E2 02 01 BA 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C8 00 00 00 F4 03 04 00 3F 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 10 01 00 00 0E [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 BA 3C 00 90 00 6A [12:12:45]RAPDU: 90 00 [12:12:45]wFMCommunicate OK [12:12:45]wFMCommunicate request_size=16 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 84 42 36 B2 2C A8 [12:12:45]Write to MH i2c: E2 13 00 BB 3C 80 0D 02 02 0B 00 00 35 04 06 00 84 42 36 B2 2C A8 00 00 48 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 03 00 BB 3C 00 90 00 6B [12:12:45]RAPDU: 90 00 [12:12:45]wFMCommunicate OK [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 0D 03 02 [12:12:45]Write to MH i2c: E2 08 00 BC 3C 80 0D 03 02 00 00 00 00 73 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 0B 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 0B 00 BC 3C 00 C0 49 77 7D 06 18 47 3B 90 00 11 [12:12:45]RAPDU: C0 49 77 7D 06 18 47 3B 90 00 [12:12:45]wFMCommunicate OK [12:12:45]SAM_PROTO_SignData done [12:12:45]FM_MakeSignedData done [12:12:45]CreateOFDProtocolMessage [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 11 00 00 [12:12:45]Write to MH i2c: E2 08 00 BD 3C 80 11 00 00 00 00 00 00 73 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 17 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 17 00 BD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [12:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:45]wFMCommunicate OK [12:12:45]CreateOFDProtocolMessage done [12:12:45]OFDSenderStorePacket 69810 [12:12:45]StoreOFDPacket docnum=69810 [12:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 B6 0D 01 42 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C8 00 00 00 F4 03 04 00 3F 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 10 01 00 35 04 06 00 84 42 36 B2 2C A8 C0 49 77 7D 06 18 47 3B [12:12:45]CheckFolder [12:12:45]dirname=/storage/ofd_packets [12:12:45]CheckFolder done [12:12:45]ProducePacketName [12:12:45]name=ofd_packets/00069810 [12:12:45]NVStorageSaveData ofd_packets/00069810 [12:12:45]File name is /storage/ofd_packets/00069810 [12:12:45]Write 307 bytes [12:12:45]NVStorageSaveData done [12:12:45]OFDSenderStorePacket done [12:12:45]KKMCreateOFDPacket done [12:12:45]NVStorageSaveData kkm_last_timestamp [12:12:45]File name is /storage/kkm_last_timestamp [12:12:45]Write 4 bytes [12:12:45]NVStorageSaveData done [12:12:45]ExternCall_PrintAddStr [12:12:45]wPrintStart [12:12:45]Write to MH i2c: 01 00 00 BE 3C FA [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: 01 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: 01 07 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 FF 0F 0F [12:12:45]RasterBufferAndPrint [12:12:45]line Счет N : (1)2885555 [12:12:45]line ИНН: 02508201610067 [12:12:45]line Контрольно-Кассовый Чек [12:12:45]line ПРОДАЖА [12:12:45]line ТРК (МРК, ГНК) : 41 [12:12:45]line Товар: 2710194240 [12:12:45]line D-ENERGY Дт-К-2 [12:12:45]line 12.960 * 77.20 [12:12:45]line = 1000.51 [12:12:45]line НДС 12% НСП 1% [12:12:45]line > о реализуемом товаре [12:12:45]line ОКРУГЛЕНИЕ: -0.51 [12:12:45]line ИТОГО: 1000.00 [12:12:45]line Внесено: 1000.00 [12:12:45]line СДАЧА: 0.00 [12:12:45]line НСП 1% : 8.85 [12:12:45]line НДС 12% : 106.25 [12:12:45]line Наличными: 1000.00 [12:12:45]line Безнал.: 0.00 [12:12:45]line Место: АЗС № 85 "Партнер Нефть" [12:12:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:12:45]line СНО: Общий режим [12:12:45]line Чек 200 21.10.2024 12:12 [12:12:45]line Смена: 194 ФФД: 1.0 [12:12:45]line ЗНМ: 0300000167 [12:12:45]line РНМ: 0000000000156251 [12:12:45]line Версия ККМ: v1.0 [12:12:45]line ФМ: 0000000000963346 [12:12:45]line ФД: 69810 [12:12:45]line ФПД: 145419920354472 [12:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69810&fm=145419920354472&tin=02508201610067®Number=0000000000156251&sum=100000 [12:12:46]OFD Sender: Processing packet 69810 [packets to send 18, broken 17] [12:12:46]ProducePacketName [12:12:46]name=ofd_packets/00069810 [12:12:46]OFD Sender: To server: pG, [12:12:46]CommunicateWithHost lk.salyk.kg:30040 [12:12:46]ConnectInit lk.salyk.kg [12:12:46]written 0, free lines is 4095 [12:12:46]Connected sock=10 [12:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 B6 0D 01 42 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C8 00 00 00 F4 03 04 00 3F 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 10 01 00 35 04 06 00 84 42 36 B2 2C A8 C0 49 77 7D 06 18 47 3B [12:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 00 47 00 19 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 10 01 00 F4 03 04 00 E3 EE 15 67 B6 04 01 00 00 BA 0D 2D D7 A4 E2 0D 4E [12:12:46]CommunicateWithHost err = 0 [12:12:46]CheckOFDResponse [12:12:46]1017 (14) - 77093643461234 [12:12:46]1041 (16) - 0000000000963346 [12:12:46]1040 (4) - 69810 [12:12:46]1012 (4) - 21.10.2024 06:04 [12:12:46]1206 (1) - 0 [12:12:46]OFD Sender: Remove packet 69810 [12:12:46]ProducePacketName [12:12:46]name=ofd_packets/00069810 [12:12:46]NVStorageDeleteData [12:12:46]Write to MH i2c: 01 00 00 E9 3C 25 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: 01 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: 01 07 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: 01 07 00 E9 3C 00 00 00 00 00 FA 0C 32 [12:12:46]RasterBufferAndPrint [12:12:46]line [12:12:46]line [12:12:46]line [12:12:46]line [12:12:46]line [12:12:46]written 0, free lines is 3328 [12:12:46]MH_Cut [12:12:46]Write to MH i2c: D1 01 00 F0 3C 01 FE [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: D1 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: D1 01 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: D1 01 00 F0 3C 00 FD [12:12:46]Write to MH i2c: 01 00 00 F1 3C 2D [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:47]OFD Sender: No OFD packet to send [12:12:47]*** Cut start [12:12:47]*** Partial cut [12:12:47]*** CUTSNS_PIN = 1 [12:12:47]*** CUTSNS_PIN = 0 [12:12:47]*** Brake cut motor [12:12:47]Read from MH i2c: 01 [12:12:48]MH_I2C_Read... [12:12:48]*** Stop cut motor [12:12:48]*** Cut end [12:12:48]Read from MH i2c: 01 07 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: 01 07 00 F1 3C 00 00 00 00 00 FF 0F 42 [12:12:48]process_action close_receipt done [12:12:48]requested_data is exist [12:12:48]produce_requested_data [12:12:48]requested_item fm.sn is exist - process it [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 11 00 00 [12:12:48]Write to MH i2c: E2 08 00 F2 3C 80 11 00 00 00 00 00 00 A8 [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 17 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 17 00 F2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [12:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:48]wFMCommunicate OK [12:12:48]requested_item fd.num is exist - process it [12:12:48]SAM_PROTO_GetFieldsCounters [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 13 00 00 [12:12:48]Write to MH i2c: E2 08 00 F3 3C 80 13 00 00 00 00 00 00 AB [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 62 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 62 00 F3 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:48]wFMCommunicate OK [12:12:48]SAM_PROTO_GetFieldsCounters done [12:12:48]requested_item shift.num is exist - process it [12:12:48]requested_item shift.opened is exist - process it [12:12:48]req_shift_opened [12:12:48]FM_GetShiftState [12:12:48]SAM_PROTO_GetShiftState [12:12:48]wFMCommunicate request_size=4 [12:12:48]MH_SAM_APDU [12:12:48]CAPDU: 80 13 01 00 [12:12:48]Write to MH i2c: E2 08 00 F4 3C 80 13 01 00 00 00 00 00 AD [12:12:48]Write i2c OK [12:12:48]MH_I2C_Read... [12:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:48]Read from MH i2c: E2 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0E 00 [12:12:48]MH_I2C_Read... [12:12:48]Read from MH i2c: E2 0E 00 F4 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [12:12:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:12:48]wFMCommunicate OK [12:12:48]SAM_PROTO_GetShiftState done [12:12:48]FM_GetShiftState done [12:12:48]req_shift_opened done [12:12:48]requested_item shift.open_date is exist - process it [12:12:48]req_shift_open_date [12:12:48]req_shift_open_date done [12:12:48]produce_requested_data done [12:12:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69810,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:12:48]process_action_free close_receipt [12:12:48]json_value_free [12:12:48]json_value_free done [12:12:48]process_json_proto returns [12:12:48]Send response to host [12:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69810,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:12:48]free response buf [12:12:48]execute_script done [12:12:48]execute_script returns [12:12:48]free content buf [12:12:48]Sock 8.Close socket [12:12:48]Sock 8.Thread stoped [12:12:52]OFD Sender: No OFD packet to send [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: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: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: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:43]accept exits with 9 [12:14:43]New connection [12:14:43]New thread 3067313508 created [12:14:43]Thread 3067456868 joined [12:14:43]Waiting for new connection... [12:14:43] Sock 9.Parse request [12:14:43]Sock 9.Check first char [12:14:43]Sock 9.First char is OK [12:14:43]request: POST /json_proto HTTP/1.0 [12:14:43]Method: POST [12:14:43]URL: /json_proto [12:14:43]Method is POST - this is cgi request [12:14:43]url: /json_proto [12:14:43]query_string will be loaded in cgi processing [12:14:43]execute_cgi json_proto POST (null) [12:14:43]execute_cgi path=json_proto method=POST [12:14:43]POST find Content-Length [12:14:43]Host: 172.17.50.3:8080 [12:14:43]Content-Length: 689 [12:14:43]Content-Type: application/json [12:14:43] [12:14:43]POST finish read [12:14:43]Found Content-Length = 689 [12:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:14:43]execute_script... [12:14: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)2885556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [12:14:43]POST & json_proto [12:14:43]process_json_proto [12:14:43]json parsed OK: [12:14:43]protocol is kg_v1.0 [12:14:43]action value=close_receipt [12:14:43]process_action close_receipt [12:14:43]cmd_close_receipt [12:14:43]MH_GetDate [12:14:43]Write to MH i2c: F0 00 00 F5 3C 20 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: F0 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: F0 09 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: F0 09 00 F5 3C 00 B7 45 16 67 6B 98 1E 66 29 [12:14:43]GetLastDocTimeStamp 1729512767 [12:14:43]current date 1729512887 [12:14:43]FM_GetShiftState [12:14:43]SAM_PROTO_GetShiftState [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 13 01 00 [12:14:43]Write to MH i2c: E2 08 00 F6 3C 80 13 01 00 00 00 00 00 AF [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 F6 3C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DB [12:14:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_GetShiftState done [12:14:43]FM_GetShiftState done [12:14:43]opened in 1729469703 [12:14:43]opened+sec_in_day 1729556103 [12:14:43]quantity*price = 100051 [12:14:43]sum+1 = 100052 [12:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 201 21.10.2024 12:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69811 ФПД: 119755417869470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69811&fm=119755417869470&tin=02508201610067®Number=0000000000156251&sum=100000 [12:14:44]StoreToDocumentArchive [12:14:44]shift 194 fd 69811 [12:14:44]save to /storage/0194/doc_00069811 [12:14:44]save last doc name /storage/0194/doc_00069811 to /storage/kkm_last_doc_name [12:14:44]save OK [12:14:44]Clear old archive folders... [12:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:14:44]tlvbuf is 00D26E00 [12:14:44]SAM_PROTO_ClearQueue [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 09 00 00 [12:14:44]Write to MH i2c: E2 08 00 03 3D 80 09 00 00 00 00 00 00 B2 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 03 3D 00 90 00 B4 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_ClearQueue done [12:14:44]KKMCreateOFDPacket [12:14:44]OFDProtocolAddRootSTLVToBuf [12:14:44]FM_MakeSignedData [12:14:44]FM_MakeSignedData [12:14:44]SAM_PROTO_SignData [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 01 02 [12:14:44]Write to MH i2c: E2 08 00 04 3D 80 0D 01 02 00 00 00 00 BA [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 04 3D 00 90 00 B5 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=255 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C9 00 00 00 F4 03 04 00 B7 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 10 01 [12:14:44]Write to MH i2c: E2 02 01 05 3D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C9 00 00 00 F4 03 04 00 B7 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 10 01 00 00 D4 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 05 3D 00 90 00 B6 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=16 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6C EA BB 24 5C 9E [12:14:44]Write to MH i2c: E2 13 00 06 3D 80 0D 02 02 0B 00 00 35 04 06 00 6C EA BB 24 5C 9E 00 00 41 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:45]Read from MH i2c: E2 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 03 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 03 00 06 3D 00 90 00 B7 [12:14:45]RAPDU: 90 00 [12:14:45]wFMCommunicate OK [12:14:45]wFMCommunicate request_size=4 [12:14:45]MH_SAM_APDU [12:14:45]CAPDU: 80 0D 03 02 [12:14:45]Write to MH i2c: E2 08 00 07 3D 80 0D 03 02 00 00 00 00 BF [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:45]Read from MH i2c: E2 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 0B 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 0B 00 07 3D 00 7B 3C 1A 7D 8D 09 1D CE 90 00 8F [12:14:45]RAPDU: 7B 3C 1A 7D 8D 09 1D CE 90 00 [12:14:45]wFMCommunicate OK [12:14:45]SAM_PROTO_SignData done [12:14:45]FM_MakeSignedData done [12:14:45]CreateOFDProtocolMessage [12:14:45]wFMCommunicate request_size=4 [12:14:45]MH_SAM_APDU [12:14:45]CAPDU: 80 11 00 00 [12:14:45]Write to MH i2c: E2 08 00 08 3D 80 11 00 00 00 00 00 00 BF [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:45]Read from MH i2c: E2 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 17 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: E2 17 00 08 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [12:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:14:45]wFMCommunicate OK [12:14:45]CreateOFDProtocolMessage done [12:14:45]OFDSenderStorePacket 69811 [12:14:45]StoreOFDPacket docnum=69811 [12:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 DB 0D 01 3D FB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C9 00 00 00 F4 03 04 00 B7 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 10 01 00 35 04 06 00 6C EA BB 24 5C 9E 7B 3C 1A 7D 8D 09 1D CE [12:14:45]CheckFolder [12:14:45]dirname=/storage/ofd_packets [12:14:45]CheckFolder done [12:14:45]ProducePacketName [12:14:45]name=ofd_packets/00069811 [12:14:45]NVStorageSaveData ofd_packets/00069811 [12:14:45]File name is /storage/ofd_packets/00069811 [12:14:45]Write 307 bytes [12:14:45]NVStorageSaveData done [12:14:45]OFDSenderStorePacket done [12:14:45]KKMCreateOFDPacket done [12:14:45]NVStorageSaveData kkm_last_timestamp [12:14:45]File name is /storage/kkm_last_timestamp [12:14:45]Write 4 bytes [12:14:45]NVStorageSaveData done [12:14:45]ExternCall_PrintAddStr [12:14:45]wPrintStart [12:14:45]Write to MH i2c: 01 00 00 09 3D 46 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 09 3D 00 00 00 00 00 FF 0F 5B [12:14:45]RasterBufferAndPrint [12:14:45]line Счет N : (1)2885556 [12:14:45]line ИНН: 02508201610067 [12:14:45]line Контрольно-Кассовый Чек [12:14:45]line ПРОДАЖА [12:14:45]line ТРК (МРК, ГНК) : 11 [12:14:45]line Товар: 2710194240 [12:14:45]line D-ENERGY Дт-К-2 [12:14:45]line 12.960 * 77.20 [12:14:45]line = 1000.51 [12:14:45]line НДС 12% НСП 1% [12:14:45]line > о реализуемом товаре [12:14:45]line ОКРУГЛЕНИЕ: -0.51 [12:14:45]line ИТОГО: 1000.00 [12:14:45]line Внесено: 1000.00 [12:14:45]line СДАЧА: 0.00 [12:14:45]line НСП 1% : 8.85 [12:14:45]line НДС 12% : 106.25 [12:14:45]line Наличными: 1000.00 [12:14:45]line Безнал.: 0.00 [12:14:45]line Место: АЗС № 85 "Партнер Нефть" [12:14:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:14:45]line СНО: Общий режим [12:14:45]line Чек 201 21.10.2024 12:14 [12:14:45]line Смена: 194 ФФД: 1.0 [12:14:45]line ЗНМ: 0300000167 [12:14:45]line РНМ: 0000000000156251 [12:14:45]line Версия ККМ: v1.0 [12:14:45]line ФМ: 0000000000963346 [12:14:45]line ФД: 69811 [12:14:45]line ФПД: 119755417869470 [12:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69811&fm=119755417869470&tin=02508201610067®Number=0000000000156251&sum=100000 [12:14:45]OFD Sender: Processing packet 69811 [packets to send 18, broken 17] [12:14:45]ProducePacketName [12:14:45]name=ofd_packets/00069811 [12:14:45]OFD Sender: To server: pG, [12:14:45]CommunicateWithHost lk.salyk.kg:30040 [12:14:45]ConnectInit lk.salyk.kg [12:14:45]written 0, free lines is 4095 [12:14:45]Connected sock=10 [12:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 DB 0D 01 3D FB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C9 00 00 00 F4 03 04 00 B7 45 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 10 01 00 35 04 06 00 6C EA BB 24 5C 9E 7B 3C 1A 7D 8D 09 1D CE [12:14:45]Write to MH i2c: 01 00 00 34 3D 71 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 34 3D 00 00 00 00 00 F0 0C 74 [12:14:45]RasterBufferAndPrint [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]written 0, free lines is 3318 [12:14:45]MH_Cut [12:14:45]Write to MH i2c: D1 01 00 3B 3D 01 4A [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 01 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 01 00 3B 3D 00 49 [12:14:45]Write to MH i2c: 01 00 00 3C 3D 79 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 ED 47 00 B9 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 10 01 00 F4 03 04 00 5A EF 15 67 B6 04 01 00 00 B2 84 F9 6A 9A 0F 03 89 [12:14:46]CommunicateWithHost err = 0 [12:14:46]CheckOFDResponse [12:14:46]1017 (14) - 77093643461234 [12:14:46]1041 (16) - 0000000000963346 [12:14:46]1040 (4) - 69811 [12:14:46]1012 (4) - 21.10.2024 06:06 [12:14:46]1206 (1) - 0 [12:14:46]OFD Sender: Remove packet 69811 [12:14:46]ProducePacketName [12:14:46]name=ofd_packets/00069811 [12:14:46]NVStorageDeleteData [12:14:46]OFD Sender: No OFD packet to send [12:14:46]*** Cut start [12:14:46]*** Partial cut [12:14:46]*** CUTSNS_PIN = 1 [12:14:46]*** CUTSNS_PIN = 0 [12:14:46]*** Brake cut motor [12:14:47]Read from MH i2c: 01 [12:14:47]MH_I2C_Read... [12:14:47]*** Stop cut motor [12:14:47]*** Cut end [12:14:47]Read from MH i2c: 01 07 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: 01 07 00 3C 3D 00 00 00 00 00 FF 0F 8E [12:14:47]process_action close_receipt done [12:14:47]requested_data is exist [12:14:47]produce_requested_data [12:14:47]requested_item fm.sn is exist - process it [12:14:47]wFMCommunicate request_size=4 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 11 00 00 [12:14:47]Write to MH i2c: E2 08 00 3D 3D 80 11 00 00 00 00 00 00 F4 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 17 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 17 00 3D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [12:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:14:47]wFMCommunicate OK [12:14:47]requested_item fd.num is exist - process it [12:14:47]SAM_PROTO_GetFieldsCounters [12:14:47]wFMCommunicate request_size=4 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 13 00 00 [12:14:47]Write to MH i2c: E2 08 00 3E 3D 80 13 00 00 00 00 00 00 F7 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 62 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 62 00 3E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:47]wFMCommunicate OK [12:14:47]SAM_PROTO_GetFieldsCounters done [12:14:47]requested_item shift.num is exist - process it [12:14:47]requested_item shift.opened is exist - process it [12:14:47]req_shift_opened [12:14:47]FM_GetShiftState [12:14:47]SAM_PROTO_GetShiftState [12:14:47]wFMCommunicate request_size=4 [12:14:47]MH_SAM_APDU [12:14:47]CAPDU: 80 13 01 00 [12:14:47]Write to MH i2c: E2 08 00 3F 3D 80 13 01 00 00 00 00 00 F9 [12:14:47]Write i2c OK [12:14:47]MH_I2C_Read... [12:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:47]Read from MH i2c: E2 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 0E 00 [12:14:47]MH_I2C_Read... [12:14:47]Read from MH i2c: E2 0E 00 3F 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 25 [12:14:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:14:47]wFMCommunicate OK [12:14:47]SAM_PROTO_GetShiftState done [12:14:47]FM_GetShiftState done [12:14:47]req_shift_opened done [12:14:47]requested_item shift.open_date is exist - process it [12:14:47]req_shift_open_date [12:14:47]req_shift_open_date done [12:14:47]produce_requested_data done [12:14:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69811,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:14:47]process_action_free close_receipt [12:14:47]json_value_free [12:14:47]json_value_free done [12:14:47]process_json_proto returns [12:14:47]Send response to host [12:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69811,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:14:47]free response buf [12:14:47]execute_script done [12:14:47]execute_script returns [12:14:47]free content buf [12:14:47]Sock 9.Close socket [12:14:47]Sock 9.Thread stoped [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:24]accept exits with 8 [12:16:24]New connection [12:16:24]New thread 3067456868 created [12:16:24]Thread 3067313508 joined [12:16:24]Waiting for new connection... [12:16:24] Sock 8.Parse request [12:16:24]Sock 8.Check first char [12:16:24]Sock 8.First char is OK [12:16:24]request: POST /json_proto HTTP/1.0 [12:16:24]Method: POST [12:16:24]URL: /json_proto [12:16:24]Method is POST - this is cgi request [12:16:24]url: /json_proto [12:16:24]query_string will be loaded in cgi processing [12:16:24]execute_cgi json_proto POST (null) [12:16:24]execute_cgi path=json_proto method=POST [12:16:24]POST find Content-Length [12:16:24]Host: 172.17.50.3:8080 [12:16:24]Content-Length: 680 [12:16:24]Content-Type: application/json [12:16:24] [12:16:24]POST finish read [12:16:24]Found Content-Length = 680 [12:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "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" ] } } [12:16:24]execute_script... [12:16: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)2885558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "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" ] } } [12:16:24]POST & json_proto [12:16:24]process_json_proto [12:16:24]json parsed OK: [12:16:24]protocol is kg_v1.0 [12:16:24]action value=close_receipt [12:16:24]process_action close_receipt [12:16:24]cmd_close_receipt [12:16:24]MH_GetDate [12:16:24]Write to MH i2c: F0 00 00 40 3D 6C [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: F0 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: F0 09 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: F0 09 00 40 3D 00 1B 46 16 67 6B 98 1E 66 DA [12:16:24]GetLastDocTimeStamp 1729512887 [12:16:24]current date 1729512987 [12:16:24]FM_GetShiftState [12:16:24]SAM_PROTO_GetShiftState [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 13 01 00 [12:16:24]Write to MH i2c: E2 08 00 41 3D 80 13 01 00 00 00 00 00 FB [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0E 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0E 00 41 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 27 [12:16:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:16:24]wFMCommunicate OK [12:16:24]SAM_PROTO_GetShiftState done [12:16:24]FM_GetShiftState done [12:16:24]opened in 1729469703 [12:16:24]opened+sec_in_day 1729556103 [12:16:24]quantity*price = 180060 [12:16:24]sum+1 = 180062 [12:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 202 21.10.2024 12:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69812 ФПД: 223633733713172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69812&fm=223633733713172&tin=02508201610067®Number=0000000000156251&sum=180000 [12:16:25]StoreToDocumentArchive [12:16:25]shift 194 fd 69812 [12:16:25]save to /storage/0194/doc_00069812 [12:16:25]save last doc name /storage/0194/doc_00069812 to /storage/kkm_last_doc_name [12:16:25]save OK [12:16:25]Clear old archive folders... [12:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:16:25]tlvbuf is 00D26EF0 [12:16:25]SAM_PROTO_ClearQueue [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 09 00 00 [12:16:25]Write to MH i2c: E2 08 00 4E 3D 80 09 00 00 00 00 00 00 FD [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 09 00 00... 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 4E 3D 00 90 00 FF [12:16:25]RAPDU: 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_ClearQueue done [12:16:25]KKMCreateOFDPacket [12:16:25]OFDProtocolAddRootSTLVToBuf [12:16:25]FM_MakeSignedData [12:16:25]FM_MakeSignedData [12:16:25]SAM_PROTO_SignData [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 0D 01 02 [12:16:25]Write to MH i2c: E2 08 00 4F 3D 80 0D 01 02 00 00 00 00 05 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 0D 01 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 4F 3D 00 90 00 00 [12:16:25]RAPDU: 90 00 [12:16:25]wFMCommunicate OK [12:16:25]wFMCommunicate request_size=255 [12:16:25]MH_SAM_APDU [12:16: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 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 B1 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 CA 00 00 00 F4 03 04 00 1B 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 10 01 00 35 04 06 00 CB 64 C9 41 [12:16:25]Write to MH i2c: E2 02 01 50 3D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 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 B1 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 CA 00 00 00 F4 03 04 00 1B 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 10 01 00 35 04 06 00 CB 64 C9 41 00 00 69 [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 50 3D 00 90 00 01 [12:16:25]RAPDU: 90 00 [12:16:25]wFMCommunicate OK [12:16:25]wFMCommunicate request_size=7 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 0D 02 02 02 FD 14 [12:16:25]Write to MH i2c: E2 0A 00 51 3D 80 0D 02 02 02 00 FD 14 00 00 1D [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 51 3D 00 90 00 02 [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 52 3D 80 0D 03 02 00 00 00 00 0A [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... [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 52 3D 00 93 FA E2 12 55 48 01 00 90 00 2A [12:16:25]RAPDU: 93 FA E2 12 55 48 01 00 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 53 3D 80 11 00 00 00 00 00 00 0A [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 53 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [12:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:16:25]wFMCommunicate OK [12:16:25]CreateOFDProtocolMessage done [12:16:25]OFDSenderStorePacket 69812 [12:16:25]StoreOFDPacket docnum=69812 [12:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 0A 04 01 34 8E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 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 B1 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 CA 00 00 00 F4 03 04 00 1B 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 10 01 00 35 04 06 00 CB 64 C9 41 FD 14 93 FA E2 12 55 48 01 00 [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/00069812 [12:16:25]NVStorageSaveData ofd_packets/00069812 [12:16:25]File name is /storage/ofd_packets/00069812 [12:16:25]Write 298 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 54 3D 91 [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 54 3D 00 00 00 00 00 FF 0F A6 [12:16:25]RasterBufferAndPrint [12:16:25]line Счет N : (1)2885558 [12:16:25]line ИНН: 02508201610067 [12:16:25]line Контрольно-Кассовый Чек [12:16:25]line ПРОДАЖА [12:16:25]line ТРК (МРК, ГНК) : 61 [12:16:25]line Товар: 2710194210 [12:16:25]line ДТ-К-5 [12:16:25]line 23.630 * 76.20 [12:16:25]line = 1800.61 [12:16:25]line НДС 12% НСП 1% [12:16:25]line > о реализуемом товаре [12:16:25]line ОКРУГЛЕНИЕ: -0.61 [12:16:25]line ИТОГО: 1800.00 [12:16:25]line Внесено: 1800.00 [12:16:25]line СДАЧА: 0.00 [12:16:25]line НСП 1% : 15.93 [12:16:25]line НДС 12% : 191.21 [12:16:25]line Наличными: 1800.00 [12:16:25]line Безнал.: 0.00 [12:16:25]line Место: АЗС № 85 "Партнер Нефть" [12:16:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:16:25]line СНО: Общий режим [12:16:25]line Чек 202 21.10.2024 12:16 [12:16:25]line Смена: 194 ФФД: 1.0 [12:16:25]line ЗНМ: 0300000167 [12:16:25]line РНМ: 0000000000156251 [12:16:25]line Версия ККМ: v1.0 [12:16:25]line ФМ: 0000000000963346 [12:16:25]line ФД: 69812 [12:16:26]line ФПД: 223633733713172 [12:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121627&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69812&fm=223633733713172&tin=02508201610067®Number=0000000000156251&sum=180000 [12:16:26]OFD Sender: Processing packet 69812 [packets to send 18, broken 17] [12:16:26]ProducePacketName [12:16:26]name=ofd_packets/00069812 [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]written 0, free lines is 4095 [12:16:26]Connected sock=10 [12:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 0A 04 01 34 8E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D 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 B1 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 CA 00 00 00 F4 03 04 00 1B 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 10 01 00 35 04 06 00 CB 64 C9 41 FD 14 93 FA E2 12 55 48 01 00 [12:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E 71 47 00 59 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 39 36 33 33 34 36 10 04 04 00 B4 10 01 00 F4 03 04 00 BF EF 15 67 B6 04 01 00 00 50 46 BE C0 E5 77 AF B0 [12:16:26]CommunicateWithHost err = 0 [12:16:26]CheckOFDResponse [12:16:26]1017 (14) - 77093643461234 [12:16:26]1041 (16) - 0000000000963346 [12:16:26]1040 (4) - 69812 [12:16:26]1012 (4) - 21.10.2024 06:07 [12:16:26]1206 (1) - 0 [12:16:26]OFD Sender: Remove packet 69812 [12:16:26]ProducePacketName [12:16:26]name=ofd_packets/00069812 [12:16:26]NVStorageDeleteData [12:16:26]Write to MH i2c: 01 00 00 7F 3D BC [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: 01 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: 01 07 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: 01 07 00 7F 3D 00 00 00 00 00 F7 0C C6 [12:16:26]RasterBufferAndPrint [12:16:26]line [12:16:26]line [12:16:26]line [12:16:26]line [12:16:26]line [12:16:26]written 0, free lines is 3328 [12:16:26]MH_Cut [12:16:26]Write to MH i2c: D1 01 00 86 3D 01 95 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: D1 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: D1 01 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: D1 01 00 86 3D 00 94 [12:16:26]Write to MH i2c: 01 00 00 87 3D C4 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:27]OFD Sender: No OFD packet to send [12:16:27]*** Cut start [12:16:27]*** Partial cut [12:16:27]*** CUTSNS_PIN = 1 [12:16:27]*** CUTSNS_PIN = 0 [12:16:27]*** Brake cut motor [12:16:28]Read from MH i2c: 01 [12:16:28]MH_I2C_Read... [12:16:28]*** Stop cut motor [12:16:28]*** Cut end [12:16:28]Read from MH i2c: 01 07 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 87 3D 00 00 00 00 00 FF 0F D9 [12:16:28]process_action close_receipt done [12:16:28]requested_data is exist [12:16:28]produce_requested_data [12:16:28]requested_item fm.sn is exist - process it [12:16:28]wFMCommunicate request_size=4 [12:16:28]MH_SAM_APDU [12:16:28]CAPDU: 80 11 00 00 [12:16:28]Write to MH i2c: E2 08 00 88 3D 80 11 00 00 00 00 00 00 3F [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:28]Read from MH i2c: E2 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 17 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 17 00 88 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [12:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:16:28]wFMCommunicate OK [12:16:28]requested_item fd.num is exist - process it [12:16:28]SAM_PROTO_GetFieldsCounters [12:16:28]wFMCommunicate request_size=4 [12:16:28]MH_SAM_APDU [12:16:28]CAPDU: 80 13 00 00 [12:16:28]Write to MH i2c: E2 08 00 89 3D 80 13 00 00 00 00 00 00 42 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:28]Read from MH i2c: E2 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 62 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 62 00 89 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:28]wFMCommunicate OK [12:16:28]SAM_PROTO_GetFieldsCounters done [12:16:28]requested_item shift.num is exist - process it [12:16:28]requested_item shift.opened is exist - process it [12:16:28]req_shift_opened [12:16:28]FM_GetShiftState [12:16:28]SAM_PROTO_GetShiftState [12:16:28]wFMCommunicate request_size=4 [12:16:28]MH_SAM_APDU [12:16:28]CAPDU: 80 13 01 00 [12:16:28]Write to MH i2c: E2 08 00 8A 3D 80 13 01 00 00 00 00 00 44 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:28]Read from MH i2c: E2 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 0E 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 0E 00 8A 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 70 [12:16:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:16:28]wFMCommunicate OK [12:16:28]SAM_PROTO_GetShiftState done [12:16:28]FM_GetShiftState done [12:16:28]req_shift_opened done [12:16:28]requested_item shift.open_date is exist - process it [12:16:28]req_shift_open_date [12:16:28]req_shift_open_date done [12:16:28]produce_requested_data done [12:16:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69812,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:16:28]process_action_free close_receipt [12:16:28]json_value_free [12:16:28]json_value_free done [12:16:28]process_json_proto returns [12:16:28]Send response to host [12:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69812,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:16:28]free response buf [12:16:28]execute_script done [12:16:28]execute_script returns [12:16:28]free content buf [12:16:28]Sock 8.Close socket [12:16:28]Sock 8.Thread stoped [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:09]accept exits with 9 [12:17:09]New connection [12:17:09]New thread 3067313508 created [12:17:09]Thread 3067456868 joined [12:17:09]Waiting for new connection... [12:17:09] Sock 9.Parse request [12:17:09]Sock 9.Check first char [12:17:09]Sock 9.First char is OK [12:17:09]request: POST /json_proto HTTP/1.0 [12:17:09]Method: POST [12:17:09]URL: /json_proto [12:17:09]Method is POST - this is cgi request [12:17:09]url: /json_proto [12:17:09]query_string will be loaded in cgi processing [12:17:09]execute_cgi json_proto POST (null) [12:17:09]execute_cgi path=json_proto method=POST [12:17:09]POST find Content-Length [12:17:09]Host: 172.17.50.3:8080 [12:17:09]Content-Length: 683 [12:17:09]Content-Type: application/json [12:17:09] [12:17:09]POST finish read [12:17:09]Found Content-Length = 683 [12:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [12:17:09]execute_script... [12:17: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)2885559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [12:17:09]POST & json_proto [12:17:09]process_json_proto [12:17:09]json parsed OK: [12:17:09]protocol is kg_v1.0 [12:17:09]action value=close_receipt [12:17:09]process_action close_receipt [12:17:09]cmd_close_receipt [12:17:09]MH_GetDate [12:17:09]Write to MH i2c: F0 00 00 8B 3D B7 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: F0 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: F0 09 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: F0 09 00 8B 3D 00 49 46 16 67 6B 98 1E 66 53 [12:17:09]GetLastDocTimeStamp 1729512987 [12:17:09]current date 1729513033 [12:17:09]FM_GetShiftState [12:17:09]SAM_PROTO_GetShiftState [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 01 00 [12:17:09]Write to MH i2c: E2 08 00 8C 3D 80 13 01 00 00 00 00 00 46 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 8C 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 72 [12:17:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetShiftState done [12:17:09]FM_GetShiftState done [12:17:09]opened in 1729469703 [12:17:09]opened+sec_in_day 1729556103 [12:17:09]quantity*price = 150056 [12:17:09]sum+1 = 150058 [12:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 203 21.10.2024 12:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69813 ФПД: 223625310600827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121713&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69813&fm=223625310600827&tin=02508201610067®Number=0000000000156251&sum=150000 [12:17:10]StoreToDocumentArchive [12:17:10]shift 194 fd 69813 [12:17:10]save to /storage/0194/doc_00069813 [12:17:10]save last doc name /storage/0194/doc_00069813 to /storage/kkm_last_doc_name [12:17:10]save OK [12:17:10]Clear old archive folders... [12:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:10]tlvbuf is 00CAF4D0 [12:17:10]SAM_PROTO_ClearQueue [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 09 00 00 [12:17:10]Write to MH i2c: E2 08 00 99 3D 80 09 00 00 00 00 00 00 48 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 99 3D 00 90 00 4A [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_ClearQueue done [12:17:10]KKMCreateOFDPacket [12:17:10]OFDProtocolAddRootSTLVToBuf [12:17:10]FM_MakeSignedData [12:17:10]FM_MakeSignedData [12:17:10]SAM_PROTO_SignData [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 01 02 [12:17:10]Write to MH i2c: E2 08 00 9A 3D 80 0D 01 02 00 00 00 00 50 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 9A 3D 00 90 00 4B [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=255 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CB 00 00 00 F4 03 04 00 49 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 10 01 00 35 04 06 00 CB [12:17:10]Write to MH i2c: E2 02 01 9B 3D 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CB 00 00 00 F4 03 04 00 49 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 10 01 00 35 04 06 00 CB 00 00 4C [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 9B 3D 00 90 00 4C [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=10 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 02 02 05 62 D3 33 7E 7B [12:17:10]Write to MH i2c: E2 0D 00 9C 3D 80 0D 02 02 05 00 62 D3 33 7E 7B 00 00 BE [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 9C 3D 00 90 00 4D [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 03 02 [12:17:10]Write to MH i2c: E2 08 00 9D 3D 80 0D 03 02 00 00 00 00 55 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0B 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 0B 00 9D 3D 00 AC 00 17 4E AE E4 E0 B5 90 00 8E [12:17:11]RAPDU: AC 00 17 4E AE E4 E0 B5 90 00 [12:17:11]wFMCommunicate OK [12:17:11]SAM_PROTO_SignData done [12:17:11]FM_MakeSignedData done [12:17:11]CreateOFDProtocolMessage [12:17:11]wFMCommunicate request_size=4 [12:17:11]MH_SAM_APDU [12:17:11]CAPDU: 80 11 00 00 [12:17:11]Write to MH i2c: E2 08 00 9E 3D 80 11 00 00 00 00 00 00 55 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:11]Read from MH i2c: E2 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 17 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: E2 17 00 9E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [12:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:17:11]wFMCommunicate OK [12:17:11]CreateOFDProtocolMessage done [12:17:11]OFDSenderStorePacket 69813 [12:17:11]StoreOFDPacket docnum=69813 [12:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 18 07 01 7D 39 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CB 00 00 00 F4 03 04 00 49 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 10 01 00 35 04 06 00 CB 62 D3 33 7E 7B AC 00 17 4E AE E4 E0 B5 [12:17:11]CheckFolder [12:17:11]dirname=/storage/ofd_packets [12:17:11]CheckFolder done [12:17:11]ProducePacketName [12:17:11]name=ofd_packets/00069813 [12:17:11]NVStorageSaveData ofd_packets/00069813 [12:17:11]File name is /storage/ofd_packets/00069813 [12:17:11]Write 301 bytes [12:17:11]NVStorageSaveData done [12:17:11]OFDSenderStorePacket done [12:17:11]KKMCreateOFDPacket done [12:17:11]NVStorageSaveData kkm_last_timestamp [12:17:11]File name is /storage/kkm_last_timestamp [12:17:11]Write 4 bytes [12:17:11]NVStorageSaveData done [12:17:11]ExternCall_PrintAddStr [12:17:11]wPrintStart [12:17:11]Write to MH i2c: 01 00 00 9F 3D DC [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 9F 3D 00 00 00 00 00 FF 0F F1 [12:17:11]RasterBufferAndPrint [12:17:11]line Счет N : (1)2885559 [12:17:11]line ИНН: 02508201610067 [12:17:11]line Контрольно-Кассовый Чек [12:17:11]line ПРОДАЖА [12:17:11]line ТРК (МРК, ГНК) : 12 [12:17:11]line Товар: 2710124130 [12:17:11]line Аи-92-К-5 [12:17:11]line 22.430 * 66.90 [12:17:11]line = 1500.57 [12:17:11]line НДС 12% НСП 1% [12:17:11]line > о реализуемом товаре [12:17:11]line ОКРУГЛЕНИЕ: -0.57 [12:17:11]line ИТОГО: 1500.00 [12:17:11]line Внесено: 1500.00 [12:17:11]line СДАЧА: 0.00 [12:17:11]line НСП 1% : 13.28 [12:17:11]line НДС 12% : 159.35 [12:17:11]line Наличными: 1500.00 [12:17:11]line Безнал.: 0.00 [12:17:11]line Место: АЗС № 85 "Партнер Нефть" [12:17:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:17:11]line СНО: Общий режим [12:17:11]line Чек 203 21.10.2024 12:17 [12:17:11]line Смена: 194 ФФД: 1.0 [12:17:11]line ЗНМ: 0300000167 [12:17:11]line РНМ: 0000000000156251 [12:17:11]line Версия ККМ: v1.0 [12:17:11]line ФМ: 0000000000963346 [12:17:11]line ФД: 69813 [12:17:11]line ФПД: 223625310600827 [12:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121713&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69813&fm=223625310600827&tin=02508201610067®Number=0000000000156251&sum=150000 [12:17:11]OFD Sender: Processing packet 69813 [packets to send 18, broken 17] [12:17:11]ProducePacketName [12:17:11]name=ofd_packets/00069813 [12:17:11]OFD Sender: To server: pG, [12:17:11]CommunicateWithHost lk.salyk.kg:30040 [12:17:11]ConnectInit lk.salyk.kg [12:17:11]written 0, free lines is 4095 [12:17:11]Connected sock=8 [12:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 18 07 01 7D 39 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CB 00 00 00 F4 03 04 00 49 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 10 01 00 35 04 06 00 CB 62 D3 33 7E 7B AC 00 17 4E AE E4 E0 B5 [12:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 99 C7 47 00 C8 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 10 01 00 F4 03 04 00 EC EF 15 67 B6 04 01 00 00 EE 28 26 C9 E7 28 F6 09 [12:17:11]CommunicateWithHost err = 0 [12:17:11]CheckOFDResponse [12:17:11]1017 (14) - 77093643461234 [12:17:11]1041 (16) - 0000000000963346 [12:17:11]1040 (4) - 69813 [12:17:11]1012 (4) - 21.10.2024 06:08 [12:17:11]1206 (1) - 0 [12:17:11]OFD Sender: Remove packet 69813 [12:17:11]ProducePacketName [12:17:11]name=ofd_packets/00069813 [12:17:11]NVStorageDeleteData [12:17:11]Write to MH i2c: 01 00 00 CA 3D 07 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 CA 3D 00 00 00 00 00 FA 0C 14 [12:17:11]RasterBufferAndPrint [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]written 0, free lines is 3332 [12:17:11]MH_Cut [12:17:11]Write to MH i2c: D1 01 00 D1 3D 01 E0 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 D1 3D 00 DF [12:17:11]Write to MH i2c: 01 00 00 D2 3D 0F [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:12]OFD Sender: No OFD packet to send [12:17:12]*** Cut start [12:17:12]*** Partial cut [12:17:12]*** CUTSNS_PIN = 1 [12:17:12]*** CUTSNS_PIN = 0 [12:17:12]*** Brake cut motor [12:17:13]Read from MH i2c: 01 [12:17:13]MH_I2C_Read... [12:17:13]*** Stop cut motor [12:17:13]*** Cut end [12:17:13]Read from MH i2c: 01 07 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: 01 07 00 D2 3D 00 00 00 00 00 FF 0F 24 [12:17:13]process_action close_receipt done [12:17:13]requested_data is exist [12:17:13]produce_requested_data [12:17:13]requested_item fm.sn is exist - process it [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 11 00 00 [12:17:13]Write to MH i2c: E2 08 00 D3 3D 80 11 00 00 00 00 00 00 8A [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 17 00 D3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [12:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:17:13]wFMCommunicate OK [12:17:13]requested_item fd.num is exist - process it [12:17:13]SAM_PROTO_GetFieldsCounters [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 13 00 00 [12:17:13]Write to MH i2c: E2 08 00 D4 3D 80 13 00 00 00 00 00 00 8D [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 62 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 62 00 D4 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [12:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_GetFieldsCounters done [12:17:13]requested_item shift.num is exist - process it [12:17:13]requested_item shift.opened is exist - process it [12:17:13]req_shift_opened [12:17:13]FM_GetShiftState [12:17:13]SAM_PROTO_GetShiftState [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 13 01 00 [12:17:13]Write to MH i2c: E2 08 00 D5 3D 80 13 01 00 00 00 00 00 8F [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 D5 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BB [12:17:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_GetShiftState done [12:17:13]FM_GetShiftState done [12:17:13]req_shift_opened done [12:17:13]requested_item shift.open_date is exist - process it [12:17:13]req_shift_open_date [12:17:13]req_shift_open_date done [12:17:13]produce_requested_data done [12:17:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69813,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:17:13]process_action_free close_receipt [12:17:13]json_value_free [12:17:13]json_value_free done [12:17:13]process_json_proto returns [12:17:13]Send response to host [12:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69813,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:17:13]free response buf [12:17:13]execute_script done [12:17:13]execute_script returns [12:17:13]free content buf [12:17:13]Sock 9.Close socket [12:17:13]Sock 9.Thread stoped [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:40]accept exits with 10 [12:18:40]New connection [12:18:40]New thread 3067456868 created [12:18:40]Thread 3067313508 joined [12:18:40]Waiting for new connection... [12:18:40] Sock 10.Parse request [12:18:40]Sock 10.Check first char [12:18:40]Sock 10.First char is OK [12:18:40]request: POST /json_proto HTTP/1.0 [12:18:40]Method: POST [12:18:40]URL: /json_proto [12:18:40]Method is POST - this is cgi request [12:18:40]url: /json_proto [12:18:40]query_string will be loaded in cgi processing [12:18:40]execute_cgi json_proto POST (null) [12:18:40]execute_cgi path=json_proto method=POST [12:18:40]POST find Content-Length [12:18:40]Host: 172.17.50.3:8080 [12:18:40]Content-Length: 682 [12:18:40]Content-Type: application/json [12:18:40] [12:18:40]POST finish read [12:18:40]Found Content-Length = 682 [12:18:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:40]execute_script... [12:18: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)2885560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:40]POST & json_proto [12:18:40]process_json_proto [12:18:40]json parsed OK: [12:18:40]protocol is kg_v1.0 [12:18:40]action value=close_receipt [12:18:40]process_action close_receipt [12:18:40]cmd_close_receipt [12:18:40]MH_GetDate [12:18:40]Write to MH i2c: F0 00 00 D6 3D 02 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: F0 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: F0 09 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: F0 09 00 D6 3D 00 A4 46 16 67 6B 98 1E 66 F9 [12:18:40]GetLastDocTimeStamp 1729513033 [12:18:40]current date 1729513124 [12:18:40]FM_GetShiftState [12:18:40]SAM_PROTO_GetShiftState [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 13 01 00 [12:18:40]Write to MH i2c: E2 08 00 D7 3D 80 13 01 00 00 00 00 00 91 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 D7 3D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BD [12:18:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_GetShiftState done [12:18:40]FM_GetShiftState done [12:18:40]opened in 1729469703 [12:18:40]opened+sec_in_day 1729556103 [12:18:40]quantity*price = 60022 [12:18:40]sum+1 = 60024 [12:18:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 204 21.10.2024 12:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69814 ФПД: 19306790311774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121844&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69814&fm=19306790311774&tin=02508201610067®Number=0000000000156251&sum=60000 [12:18:41]StoreToDocumentArchive [12:18:41]shift 194 fd 69814 [12:18:41]save to /storage/0194/doc_00069814 [12:18:41]save last doc name /storage/0194/doc_00069814 to /storage/kkm_last_doc_name [12:18:41]save OK [12:18:41]Clear old archive folders... [12:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:18:41]tlvbuf is 00D10800 [12:18:41]SAM_PROTO_ClearQueue [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 09 00 00 [12:18:41]Write to MH i2c: E2 08 00 E4 3D 80 09 00 00 00 00 00 00 93 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 E4 3D 00 90 00 95 [12:18:41]RAPDU: 90 00 [12:18:41]wFMCommunicate OK [12:18:41]SAM_PROTO_ClearQueue done [12:18:41]KKMCreateOFDPacket [12:18:41]OFDProtocolAddRootSTLVToBuf [12:18:41]FM_MakeSignedData [12:18:41]FM_MakeSignedData [12:18:41]SAM_PROTO_SignData [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 0D 01 02 [12:18:41]Write to MH i2c: E2 08 00 E5 3D 80 0D 01 02 00 00 00 00 9B [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 E5 3D 00 90 00 96 [12:18:41]RAPDU: 90 00 [12:18:41]wFMCommunicate OK [12:18:41]wFMCommunicate request_size=255 [12:18:41]MH_SAM_APDU [12:18:41]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 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 CC 00 00 00 F4 03 04 00 A4 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 10 01 00 35 04 06 00 11 8F [12:18:41]Write to MH i2c: E2 02 01 E6 3D 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 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 CC 00 00 00 F4 03 04 00 A4 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 10 01 00 35 04 06 00 11 8F 00 00 74 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 E6 3D 00 90 00 97 [12:18:41]RAPDU: 90 00 [12:18:41]wFMCommunicate OK [12:18:41]wFMCommunicate request_size=9 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 0D 02 02 04 36 60 D7 5E [12:18:41]Write to MH i2c: E2 0C 00 E7 3D 80 0D 02 02 04 00 36 60 D7 5E 00 00 71 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 03 00 E7 3D 00 90 00 98 [12:18:41]RAPDU: 90 00 [12:18:41]wFMCommunicate OK [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 0D 03 02 [12:18:41]Write to MH i2c: E2 08 00 E8 3D 80 0D 03 02 00 00 00 00 A0 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 0B 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 0B 00 E8 3D 00 FB DC E9 19 B0 04 D9 68 90 00 6F [12:18:41]RAPDU: FB DC E9 19 B0 04 D9 68 90 00 [12:18:41]wFMCommunicate OK [12:18:41]SAM_PROTO_SignData done [12:18:41]FM_MakeSignedData done [12:18:41]CreateOFDProtocolMessage [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 11 00 00 [12:18:41]Write to MH i2c: E2 08 00 E9 3D 80 11 00 00 00 00 00 00 A0 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 17 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 17 00 E9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [12:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:18:42]wFMCommunicate OK [12:18:42]CreateOFDProtocolMessage done [12:18:42]OFDSenderStorePacket 69814 [12:18:42]StoreOFDPacket docnum=69814 [12:18:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 EC E0 06 01 94 74 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 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 CC 00 00 00 F4 03 04 00 A4 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 10 01 00 35 04 06 00 11 8F 36 60 D7 5E FB DC E9 19 B0 04 D9 68 [12:18:42]CheckFolder [12:18:42]dirname=/storage/ofd_packets [12:18:42]CheckFolder done [12:18:42]ProducePacketName [12:18:42]name=ofd_packets/00069814 [12:18:42]NVStorageSaveData ofd_packets/00069814 [12:18:42]File name is /storage/ofd_packets/00069814 [12:18:42]Write 300 bytes [12:18:42]NVStorageSaveData done [12:18:42]OFDSenderStorePacket done [12:18:42]KKMCreateOFDPacket done [12:18:42]NVStorageSaveData kkm_last_timestamp [12:18:42]File name is /storage/kkm_last_timestamp [12:18:42]Write 4 bytes [12:18:42]NVStorageSaveData done [12:18:42]ExternCall_PrintAddStr [12:18:42]wPrintStart [12:18:42]Write to MH i2c: 01 00 00 EA 3D 27 [12:18:42]OFD Sender: Processing packet 69814 [packets to send 18, broken 17] [12:18:42]ProducePacketName [12:18:42]name=ofd_packets/00069814 [12:18:42]OFD Sender: To server: pG, [12:18:42]CommunicateWithHost lk.salyk.kg:30040 [12:18:42]ConnectInit lk.salyk.kg [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 07 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 07 00 EA 3D 00 00 00 00 00 FF 0F 3C [12:18:42]RasterBufferAndPrint [12:18:42]line Счет N : (1)2885560 [12:18:42]line ИНН: 02508201610067 [12:18:42]line Контрольно-Кассовый Чек [12:18:42]line ПРОДАЖА [12:18:42]line ТРК (МРК, ГНК) : 71 [12:18:42]line Товар: 2711129700 [12:18:42]line ГАЗ-К-3 [12:18:42]line 15.430 * 38.90 [12:18:42]line = 600.23 [12:18:42]line НДС 12% НСП 1% [12:18:42]line > о реализуемом товаре [12:18:42]line ОКРУГЛЕНИЕ: -0.23 [12:18:42]line ИТОГО: 600.00 [12:18:42]line Внесено: 600.00 [12:18:42]line СДАЧА: 0.00 [12:18:42]line НСП 1% : 5.31 [12:18:42]line НДС 12% : 63.74 [12:18:42]line Наличными: 600.00 [12:18:42]line Безнал.: 0.00 [12:18:42]line Место: АЗС № 85 "Партнер Нефть" [12:18:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:18:42]line СНО: Общий режим [12:18:42]line Чек 204 21.10.2024 12:18 [12:18:42]line Смена: 194 ФФД: 1.0 [12:18:42]line ЗНМ: 0300000167 [12:18:42]line РНМ: 0000000000156251 [12:18:42]line Версия ККМ: v1.0 [12:18:42]line ФМ: 0000000000963346 [12:18:42]line ФД: 69814 [12:18:42]line ФПД: 19306790311774 [12:18:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121844&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69814&fm=19306790311774&tin=02508201610067®Number=0000000000156251&sum=60000 [12:18:42]Connected sock=9 [12:18:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 EC E0 06 01 94 74 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 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 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 E6 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 CC 00 00 00 F4 03 04 00 A4 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 10 01 00 35 04 06 00 11 8F 36 60 D7 5E FB DC E9 19 B0 04 D9 68 [12:18:42]written 0, free lines is 4095 [12:18:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FE 18 47 00 63 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 10 01 00 F4 03 04 00 47 F0 15 67 B6 04 01 00 00 83 00 32 19 76 1D FA 01 [12:18:42]CommunicateWithHost err = 0 [12:18:42]CheckOFDResponse [12:18:42]1017 (14) - 77093643461234 [12:18:42]1041 (16) - 0000000000963346 [12:18:42]1040 (4) - 69814 [12:18:42]1012 (4) - 21.10.2024 06:10 [12:18:42]1206 (1) - 0 [12:18:42]OFD Sender: Remove packet 69814 [12:18:42]ProducePacketName [12:18:42]name=ofd_packets/00069814 [12:18:42]NVStorageDeleteData [12:18:42]Write to MH i2c: 01 00 00 15 3E 53 [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 07 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 07 00 15 3E 00 00 00 00 00 D7 0C 3D [12:18:42]RasterBufferAndPrint [12:18:42]line [12:18:42]line [12:18:42]line [12:18:42]line [12:18:42]line [12:18:42]written 0, free lines is 3293 [12:18:42]MH_Cut [12:18:42]Write to MH i2c: D1 01 00 1C 3E 01 2C [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: D1 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: D1 01 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: D1 01 00 1C 3E 00 2B [12:18:42]Write to MH i2c: 01 00 00 1D 3E 5B [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:43]OFD Sender: No OFD packet to send [12:18:43]*** Cut start [12:18:43]*** Partial cut [12:18:43]*** CUTSNS_PIN = 1 [12:18:43]*** CUTSNS_PIN = 0 [12:18:43]*** Brake cut motor [12:18:44]Read from MH i2c: 01 [12:18:44]MH_I2C_Read... [12:18:44]*** Stop cut motor [12:18:44]*** Cut end [12:18:44]Read from MH i2c: 01 07 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: 01 07 00 1D 3E 00 00 00 00 00 FF 0F 70 [12:18:44]process_action close_receipt done [12:18:44]requested_data is exist [12:18:44]produce_requested_data [12:18:44]requested_item fm.sn is exist - process it [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 11 00 00 [12:18:44]Write to MH i2c: E2 08 00 1E 3E 80 11 00 00 00 00 00 00 D6 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 17 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 17 00 1E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [12:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:18:44]wFMCommunicate OK [12:18:44]requested_item fd.num is exist - process it [12:18:44]SAM_PROTO_GetFieldsCounters [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 00 00 [12:18:44]Write to MH i2c: E2 08 00 1F 3E 80 13 00 00 00 00 00 00 D9 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 62 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 62 00 1F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [12:18:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetFieldsCounters done [12:18:44]requested_item shift.num is exist - process it [12:18:44]requested_item shift.opened is exist - process it [12:18:44]req_shift_opened [12:18:44]FM_GetShiftState [12:18:44]SAM_PROTO_GetShiftState [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 01 00 [12:18:44]Write to MH i2c: E2 08 00 20 3E 80 13 01 00 00 00 00 00 DB [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 20 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 07 [12:18:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetShiftState done [12:18:44]FM_GetShiftState done [12:18:44]req_shift_opened done [12:18:44]requested_item shift.open_date is exist - process it [12:18:44]req_shift_open_date [12:18:44]req_shift_open_date done [12:18:44]produce_requested_data done [12:18:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69814,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:18:44]process_action_free close_receipt [12:18:44]json_value_free [12:18:44]json_value_free done [12:18:44]process_json_proto returns [12:18:44]Send response to host [12:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69814,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:18:44]free response buf [12:18:44]execute_script done [12:18:44]execute_script returns [12:18:44]free content buf [12:18:44]Sock 10.Close socket [12:18:44]Sock 10.Thread stoped [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:02]accept exits with 8 [12:20:02]New connection [12:20:02]New thread 3067313508 created [12:20:02]Thread 3067456868 joined [12:20:02]Waiting for new connection... [12:20:02] Sock 8.Parse request [12:20:02]Sock 8.Check first char [12:20:02]Sock 8.First char is OK [12:20:02]request: POST /json_proto HTTP/1.0 [12:20:02]Method: POST [12:20:02]URL: /json_proto [12:20:02]Method is POST - this is cgi request [12:20:02]url: /json_proto [12:20:02]query_string will be loaded in cgi processing [12:20:02]execute_cgi json_proto POST (null) [12:20:02]execute_cgi path=json_proto method=POST [12:20:02]POST find Content-Length [12:20:02]Host: 172.17.50.3:8080 [12:20:02]Content-Length: 683 [12:20:02]Content-Type: application/json [12:20:02] [12:20:02]POST finish read [12:20:02]Found Content-Length = 683 [12:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885561", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:02]execute_script... [12:20: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)2885561", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:02]POST & json_proto [12:20:02]process_json_proto [12:20:02]json parsed OK: [12:20:02]protocol is kg_v1.0 [12:20:02]action value=close_receipt [12:20:02]process_action close_receipt [12:20:02]cmd_close_receipt [12:20:02]MH_GetDate [12:20:02]Write to MH i2c: F0 00 00 21 3E 4E [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: F0 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: F0 09 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: F0 09 00 21 3E 00 F6 46 16 67 6B 98 1E 66 97 [12:20:02]GetLastDocTimeStamp 1729513124 [12:20:02]current date 1729513206 [12:20:02]FM_GetShiftState [12:20:02]SAM_PROTO_GetShiftState [12:20:02]wFMCommunicate request_size=4 [12:20:02]MH_SAM_APDU [12:20:02]CAPDU: 80 13 01 00 [12:20:02]Write to MH i2c: E2 08 00 22 3E 80 13 01 00 00 00 00 00 DD [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:02]Read from MH i2c: E2 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 0E 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 0E 00 22 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 09 [12:20:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:20:02]wFMCommunicate OK [12:20:02]SAM_PROTO_GetShiftState done [12:20:02]FM_GetShiftState done [12:20:02]opened in 1729469703 [12:20:02]opened+sec_in_day 1729556103 [12:20:02]quantity*price = 100015 [12:20:02]sum+1 = 100017 [12:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 205 21.10.2024 12:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69815 ФПД: 264830457615695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69815&fm=264830457615695&tin=02508201610067®Number=0000000000156251&sum=100000 [12:20:03]StoreToDocumentArchive [12:20:03]shift 194 fd 69815 [12:20:03]save to /storage/0194/doc_00069815 [12:20:03]save last doc name /storage/0194/doc_00069815 to /storage/kkm_last_doc_name [12:20:03]save OK [12:20:03]Clear old archive folders... [12:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:03]tlvbuf is 00D70680 [12:20:03]SAM_PROTO_ClearQueue [12:20:03]wFMCommunicate request_size=4 [12:20:03]MH_SAM_APDU [12:20:03]CAPDU: 80 09 00 00 [12:20:03]Write to MH i2c: E2 08 00 2F 3E 80 09 00 00 00 00 00 00 DF [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:03]Read from MH i2c: E2 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 03 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 03 00 2F 3E 00 90 00 E1 [12:20:03]RAPDU: 90 00 [12:20:03]wFMCommunicate OK [12:20:03]SAM_PROTO_ClearQueue done [12:20:03]KKMCreateOFDPacket [12:20:03]OFDProtocolAddRootSTLVToBuf [12:20:03]FM_MakeSignedData [12:20:03]FM_MakeSignedData [12:20:03]SAM_PROTO_SignData [12:20:03]wFMCommunicate request_size=4 [12:20:03]MH_SAM_APDU [12:20:03]CAPDU: 80 0D 01 02 [12:20:03]Write to MH i2c: E2 08 00 30 3E 80 0D 01 02 00 00 00 00 E7 [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:03]Read from MH i2c: E2 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 03 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 03 00 30 3E 00 90 00 E2 [12:20:03]RAPDU: 90 00 [12:20:03]wFMCommunicate OK [12:20:03]wFMCommunicate request_size=255 [12:20:03]MH_SAM_APDU [12:20: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F6 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 10 01 00 35 04 06 00 F0 [12:20:03]Write to MH i2c: E2 02 01 31 3E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F6 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 10 01 00 35 04 06 00 F0 00 00 6A [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=10 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 02 02 05 DC A5 5A 15 4F [12:20:04]Write to MH i2c: E2 0D 00 32 3E 80 0D 02 02 05 00 DC A5 5A 15 4F 00 00 33 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 03 02 [12:20:04]Write to MH i2c: E2 08 00 33 3E 80 0D 03 02 00 00 00 00 EC [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0B 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0B 00 33 3E 00 85 21 6E 6D 48 7E 67 66 90 00 01 [12:20:04]RAPDU: 85 21 6E 6D 48 7E 67 66 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_SignData done [12:20:04]FM_MakeSignedData done [12:20:04]CreateOFDProtocolMessage [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 11 00 00 [12:20:04]Write to MH i2c: E2 08 00 34 3E 80 11 00 00 00 00 00 00 EC [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 34 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [12:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:20:04]wFMCommunicate OK [12:20:04]CreateOFDProtocolMessage done [12:20:04]OFDSenderStorePacket 69815 [12:20:04]StoreOFDPacket docnum=69815 [12:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E 67 07 01 32 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F6 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 10 01 00 35 04 06 00 F0 DC A5 5A 15 4F 85 21 6E 6D 48 7E 67 66 [12:20:04]CheckFolder [12:20:04]dirname=/storage/ofd_packets [12:20:04]CheckFolder done [12:20:04]ProducePacketName [12:20:04]name=ofd_packets/00069815 [12:20:04]NVStorageSaveData ofd_packets/00069815 [12:20:04]File name is /storage/ofd_packets/00069815 [12:20:04]Write 301 bytes [12:20:04]NVStorageSaveData done [12:20:04]OFDSenderStorePacket done [12:20:04]KKMCreateOFDPacket done [12:20:04]NVStorageSaveData kkm_last_timestamp [12:20:04]File name is /storage/kkm_last_timestamp [12:20:04]Write 4 bytes [12:20:04]NVStorageSaveData done [12:20:04]ExternCall_PrintAddStr [12:20:04]wPrintStart [12:20:04]Write to MH i2c: 01 00 00 35 3E 73 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 35 3E 00 00 00 00 00 FF 0F 88 [12:20:04]RasterBufferAndPrint [12:20:04]line Счет N : (1)2885561 [12:20:04]line ИНН: 02508201610067 [12:20:04]line Контрольно-Кассовый Чек [12:20:04]line ПРОДАЖА [12:20:04]line ТРК (МРК, ГНК) : 42 [12:20:04]line Товар: 2710124130 [12:20:04]line Аи-92-К-5 [12:20:04]line 14.950 * 66.90 [12:20:04]line = 1000.16 [12:20:04]line НДС 12% НСП 1% [12:20:04]line > о реализуемом товаре [12:20:04]line ОКРУГЛЕНИЕ: -0.16 [12:20:04]line ИТОГО: 1000.00 [12:20:04]line Внесено: 1000.00 [12:20:04]line СДАЧА: 0.00 [12:20:04]line НСП 1% : 8.85 [12:20:04]line НДС 12% : 106.21 [12:20:04]line Наличными: 1000.00 [12:20:04]line Безнал.: 0.00 [12:20:04]line Место: АЗС № 85 "Партнер Нефть" [12:20:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:20:04]line СНО: Общий режим [12:20:04]line Чек 205 21.10.2024 12:20 [12:20:04]line Смена: 194 ФФД: 1.0 [12:20:04]line ЗНМ: 0300000167 [12:20:04]line РНМ: 0000000000156251 [12:20:04]line Версия ККМ: v1.0 [12:20:04]line ФМ: 0000000000963346 [12:20:04]line ФД: 69815 [12:20:04]line ФПД: 264830457615695 [12:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69815&fm=264830457615695&tin=02508201610067®Number=0000000000156251&sum=100000 [12:20:04]OFD Sender: Processing packet 69815 [packets to send 18, broken 17] [12:20:04]ProducePacketName [12:20:04]name=ofd_packets/00069815 [12:20:04]OFD Sender: To server: pG, [12:20:04]CommunicateWithHost lk.salyk.kg:30040 [12:20:04]ConnectInit lk.salyk.kg [12:20:04]written 0, free lines is 4095 [12:20:04]Connected sock=10 [12:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E 67 07 01 32 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F6 46 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 10 01 00 35 04 06 00 F0 DC A5 5A 15 4F 85 21 6E 6D 48 7E 67 66 [12:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 E1 47 00 E8 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 39 36 33 33 34 36 10 04 04 00 B7 10 01 00 F4 03 04 00 9A F0 15 67 B6 04 01 00 00 B2 21 9B 06 20 F7 D4 47 [12:20:04]CommunicateWithHost err = 0 [12:20:04]CheckOFDResponse [12:20:04]1017 (14) - 77093643461234 [12:20:04]1041 (16) - 0000000000963346 [12:20:04]1040 (4) - 69815 [12:20:04]1012 (4) - 21.10.2024 06:11 [12:20:04]1206 (1) - 0 [12:20:04]OFD Sender: Remove packet 69815 [12:20:04]ProducePacketName [12:20:04]name=ofd_packets/00069815 [12:20:04]NVStorageDeleteData [12:20:05]Write to MH i2c: 01 00 00 60 3E 9E [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 60 3E 00 00 00 00 00 F5 0C A6 [12:20:05]RasterBufferAndPrint [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]written 0, free lines is 3323 [12:20:05]MH_Cut [12:20:05]Write to MH i2c: D1 01 00 67 3E 01 77 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 67 3E 00 76 [12:20:05]Write to MH i2c: 01 00 00 68 3E A6 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]OFD Sender: No OFD packet to send [12:20:05]*** Cut start [12:20:05]*** Partial cut [12:20:05]*** CUTSNS_PIN = 1 [12:20:05]*** CUTSNS_PIN = 0 [12:20:06]*** Brake cut motor [12:20:06]Read from MH i2c: 01 [12:20:06]MH_I2C_Read... [12:20:06]*** Stop cut motor [12:20:06]*** Cut end [12:20:06]Read from MH i2c: 01 07 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: 01 07 00 68 3E 00 00 00 00 00 FF 0F BB [12:20:06]process_action close_receipt done [12:20:06]requested_data is exist [12:20:06]produce_requested_data [12:20:06]requested_item fm.sn is exist - process it [12:20:06]wFMCommunicate request_size=4 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 11 00 00 [12:20:06]Write to MH i2c: E2 08 00 69 3E 80 11 00 00 00 00 00 00 21 [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 17 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 17 00 69 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [12:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:20:06]wFMCommunicate OK [12:20:06]requested_item fd.num is exist - process it [12:20:06]SAM_PROTO_GetFieldsCounters [12:20:06]wFMCommunicate request_size=4 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 13 00 00 [12:20:06]Write to MH i2c: E2 08 00 6A 3E 80 13 00 00 00 00 00 00 24 [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 62 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 62 00 6A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:06]wFMCommunicate OK [12:20:06]SAM_PROTO_GetFieldsCounters done [12:20:06]requested_item shift.num is exist - process it [12:20:06]requested_item shift.opened is exist - process it [12:20:06]req_shift_opened [12:20:06]FM_GetShiftState [12:20:06]SAM_PROTO_GetShiftState [12:20:06]wFMCommunicate request_size=4 [12:20:06]MH_SAM_APDU [12:20:06]CAPDU: 80 13 01 00 [12:20:06]Write to MH i2c: E2 08 00 6B 3E 80 13 01 00 00 00 00 00 26 [12:20:06]Write i2c OK [12:20:06]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0E 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0E 00 6B 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 52 [12:20:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:20:06]wFMCommunicate OK [12:20:06]SAM_PROTO_GetShiftState done [12:20:06]FM_GetShiftState done [12:20:06]req_shift_opened done [12:20:06]requested_item shift.open_date is exist - process it [12:20:06]req_shift_open_date [12:20:06]req_shift_open_date done [12:20:06]produce_requested_data done [12:20:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69815,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:20:06]process_action_free close_receipt [12:20:06]json_value_free [12:20:06]json_value_free done [12:20:06]process_json_proto returns [12:20:06]Send response to host [12:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69815,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:20:06]free response buf [12:20:06]execute_script done [12:20:06]execute_script returns [12:20:06]free content buf [12:20:06]Sock 8.Close socket [12:20:06]Sock 8.Thread stoped [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:42]accept exits with 9 [12:20:42]New connection [12:20:42]New thread 3067456868 created [12:20:42]Thread 3067313508 joined [12:20:42]Waiting for new connection... [12:20:42] Sock 9.Parse request [12:20:42]Sock 9.Check first char [12:20:42]Sock 9.First char is OK [12:20:42]request: POST /json_proto HTTP/1.0 [12:20:42]Method: POST [12:20:42]URL: /json_proto [12:20:42]Method is POST - this is cgi request [12:20:42]url: /json_proto [12:20:42]query_string will be loaded in cgi processing [12:20:42]execute_cgi json_proto POST (null) [12:20:42]execute_cgi path=json_proto method=POST [12:20:42]POST find Content-Length [12:20:42]Host: 172.17.50.3:8080 [12:20:42]Content-Length: 683 [12:20:42]Content-Type: application/json [12:20:42] [12:20:42]POST finish read [12:20:42]Found Content-Length = 683 [12:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885562", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]execute_script... [12:20:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885562", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]POST & json_proto [12:20:42]process_json_proto [12:20:42]json parsed OK: [12:20:42]protocol is kg_v1.0 [12:20:42]action value=close_receipt [12:20:42]process_action close_receipt [12:20:42]cmd_close_receipt [12:20:42]MH_GetDate [12:20:42]Write to MH i2c: F0 00 00 6C 3E 99 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 6C 3E 00 1E 47 16 67 6B 98 1E 66 0B [12:20:42]GetLastDocTimeStamp 1729513206 [12:20:42]current date 1729513246 [12:20:42]FM_GetShiftState [12:20:42]SAM_PROTO_GetShiftState [12:20:42]wFMCommunicate request_size=4 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 13 01 00 [12:20:42]Write to MH i2c: E2 08 00 6D 3E 80 13 01 00 00 00 00 00 28 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 6D 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 54 [12:20:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:20:42]wFMCommunicate OK [12:20:42]SAM_PROTO_GetShiftState done [12:20:42]FM_GetShiftState done [12:20:42]opened in 1729469703 [12:20:42]opened+sec_in_day 1729556103 [12:20:42]quantity*price = 100015 [12:20:42]sum+1 = 100017 [12:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 206 21.10.2024 12:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69816 ФПД: 206990893318492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122046&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69816&fm=206990893318492&tin=02508201610067®Number=0000000000156251&sum=100000 [12:20:43]StoreToDocumentArchive [12:20:43]shift 194 fd 69816 [12:20:43]save to /storage/0194/doc_00069816 [12:20:43]save last doc name /storage/0194/doc_00069816 to /storage/kkm_last_doc_name [12:20:43]save OK [12:20:43]Clear old archive folders... [12:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:43]tlvbuf is 00DA1C30 [12:20:43]SAM_PROTO_ClearQueue [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 09 00 00 [12:20:43]Write to MH i2c: E2 08 00 7A 3E 80 09 00 00 00 00 00 00 2A [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 7A 3E 00 90 00 2C [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_ClearQueue done [12:20:43]KKMCreateOFDPacket [12:20:43]OFDProtocolAddRootSTLVToBuf [12:20:43]FM_MakeSignedData [12:20:43]FM_MakeSignedData [12:20:43]SAM_PROTO_SignData [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 01 02 [12:20:43]Write to MH i2c: E2 08 00 7B 3E 80 0D 01 02 00 00 00 00 32 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 7B 3E 00 90 00 2D [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=255 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1E 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 10 01 00 35 04 06 00 BC [12:20:43]Write to MH i2c: E2 02 01 7C 3E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1E 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 10 01 00 35 04 06 00 BC 00 00 AC [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 7C 3E 00 90 00 2E [12:20:44]RAPDU: 90 00 [12:20:44]wFMCommunicate OK [12:20:44]wFMCommunicate request_size=10 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 0D 02 02 05 41 D2 AB 01 5C [12:20:44]Write to MH i2c: E2 0D 00 7D 3E 80 0D 02 02 05 00 41 D2 AB 01 5C 00 00 5A [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 7D 3E 00 90 00 2F [12:20:44]RAPDU: 90 00 [12:20:44]wFMCommunicate OK [12:20:44]wFMCommunicate request_size=4 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 0D 03 02 [12:20:44]Write to MH i2c: E2 08 00 7E 3E 80 0D 03 02 00 00 00 00 37 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0B 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0B 00 7E 3E 00 C8 29 6C DD E2 76 42 C2 90 00 CE [12:20:44]RAPDU: C8 29 6C DD E2 76 42 C2 90 00 [12:20:44]wFMCommunicate OK [12:20:44]SAM_PROTO_SignData done [12:20:44]FM_MakeSignedData done [12:20:44]CreateOFDProtocolMessage [12:20:44]wFMCommunicate request_size=4 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 11 00 00 [12:20:44]Write to MH i2c: E2 08 00 7F 3E 80 11 00 00 00 00 00 00 37 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 17 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 17 00 7F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [12:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:20:44]wFMCommunicate OK [12:20:44]CreateOFDProtocolMessage done [12:20:44]OFDSenderStorePacket 69816 [12:20:44]StoreOFDPacket docnum=69816 [12:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 4D 07 01 FC 40 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1E 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 10 01 00 35 04 06 00 BC 41 D2 AB 01 5C C8 29 6C DD E2 76 42 C2 [12:20:44]CheckFolder [12:20:44]dirname=/storage/ofd_packets [12:20:44]CheckFolder done [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00069816 [12:20:44]NVStorageSaveData ofd_packets/00069816 [12:20:44]File name is /storage/ofd_packets/00069816 [12:20:44]Write 301 bytes [12:20:44]NVStorageSaveData done [12:20:44]OFDSenderStorePacket done [12:20:44]KKMCreateOFDPacket done [12:20:44]NVStorageSaveData kkm_last_timestamp [12:20:44]File name is /storage/kkm_last_timestamp [12:20:44]Write 4 bytes [12:20:44]NVStorageSaveData done [12:20:44]ExternCall_PrintAddStr [12:20:44]wPrintStart [12:20:44]Write to MH i2c: 01 00 00 80 3E BE [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 80 3E 00 00 00 00 00 FF 0F D3 [12:20:44]RasterBufferAndPrint [12:20:44]line Счет N : (1)2885562 [12:20:44]line ИНН: 02508201610067 [12:20:44]line Контрольно-Кассовый Чек [12:20:44]line ПРОДАЖА [12:20:44]line ТРК (МРК, ГНК) : 32 [12:20:44]line Товар: 2710124130 [12:20:44]line Аи-92-К-5 [12:20:44]line 14.950 * 66.90 [12:20:44]line = 1000.16 [12:20:44]line НДС 12% НСП 1% [12:20:44]line > о реализуемом товаре [12:20:44]line ОКРУГЛЕНИЕ: -0.16 [12:20:44]line ИТОГО: 1000.00 [12:20:44]line Внесено: 1000.00 [12:20:44]line СДАЧА: 0.00 [12:20:44]line НСП 1% : 8.85 [12:20:44]line НДС 12% : 106.21 [12:20:44]line Наличными: 1000.00 [12:20:44]line Безнал.: 0.00 [12:20:44]line Место: АЗС № 85 "Партнер Нефть" [12:20:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:20:44]line СНО: Общий режим [12:20:44]line Чек 206 21.10.2024 12:20 [12:20:44]line Смена: 194 ФФД: 1.0 [12:20:44]line ЗНМ: 0300000167 [12:20:44]line РНМ: 0000000000156251 [12:20:44]line Версия ККМ: v1.0 [12:20:44]line ФМ: 0000000000963346 [12:20:44]line ФД: 69816 [12:20:44]line ФПД: 206990893318492 [12:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122046&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69816&fm=206990893318492&tin=02508201610067®Number=0000000000156251&sum=100000 [12:20:44]written 0, free lines is 4095 [12:20:44]OFD Sender: Processing packet 69816 [packets to send 18, broken 17] [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00069816 [12:20:44]OFD Sender: To server: pG, [12:20:44]CommunicateWithHost lk.salyk.kg:30040 [12:20:44]ConnectInit lk.salyk.kg [12:20:44]Connected sock=10 [12:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 4D 07 01 FC 40 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1E 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 10 01 00 35 04 06 00 BC 41 D2 AB 01 5C C8 29 6C DD E2 76 42 C2 [12:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 5F 47 00 6C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 10 01 00 F4 03 04 00 C1 F0 15 67 B6 04 01 00 00 AD EC 34 F7 95 17 7D F2 [12:20:44]CommunicateWithHost err = 0 [12:20:44]CheckOFDResponse [12:20:44]1017 (14) - 77093643461234 [12:20:44]1041 (16) - 0000000000963346 [12:20:44]1040 (4) - 69816 [12:20:44]1012 (4) - 21.10.2024 06:12 [12:20:44]1206 (1) - 0 [12:20:44]OFD Sender: Remove packet 69816 [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00069816 [12:20:44]NVStorageDeleteData [12:20:44]Write to MH i2c: 01 00 00 AB 3E E9 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 AB 3E 00 00 00 00 00 F3 0C EF [12:20:44]RasterBufferAndPrint [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]written 0, free lines is 3321 [12:20:44]MH_Cut [12:20:44]Write to MH i2c: D1 01 00 B2 3E 01 C2 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 01 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 01 00 B2 3E 00 C1 [12:20:44]Write to MH i2c: 01 00 00 B3 3E F1 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:45]OFD Sender: No OFD packet to send [12:20:45]*** Cut start [12:20:45]*** Partial cut [12:20:45]*** CUTSNS_PIN = 1 [12:20:45]*** CUTSNS_PIN = 0 [12:20:45]*** Brake cut motor [12:20:45]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]*** Stop cut motor [12:20:46]*** Cut end [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 B3 3E 00 00 00 00 00 FF 0F 06 [12:20:46]process_action close_receipt done [12:20:46]requested_data is exist [12:20:46]produce_requested_data [12:20:46]requested_item fm.sn is exist - process it [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 11 00 00 [12:20:46]Write to MH i2c: E2 08 00 B4 3E 80 11 00 00 00 00 00 00 6C [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 B4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BE [12:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:20:46]wFMCommunicate OK [12:20:46]requested_item fd.num is exist - process it [12:20:46]SAM_PROTO_GetFieldsCounters [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 00 00 [12:20:46]Write to MH i2c: E2 08 00 B5 3E 80 13 00 00 00 00 00 00 6F [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 B5 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [12:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetFieldsCounters done [12:20:46]requested_item shift.num is exist - process it [12:20:46]requested_item shift.opened is exist - process it [12:20:46]req_shift_opened [12:20:46]FM_GetShiftState [12:20:46]SAM_PROTO_GetShiftState [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 01 00 [12:20:46]Write to MH i2c: E2 08 00 B6 3E 80 13 01 00 00 00 00 00 71 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 B6 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9D [12:20:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetShiftState done [12:20:46]FM_GetShiftState done [12:20:46]req_shift_opened done [12:20:46]requested_item shift.open_date is exist - process it [12:20:46]req_shift_open_date [12:20:46]req_shift_open_date done [12:20:46]produce_requested_data done [12:20:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69816,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:20:46]process_action_free close_receipt [12:20:46]json_value_free [12:20:46]json_value_free done [12:20:46]process_json_proto returns [12:20:46]Send response to host [12:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69816,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:20:46]free response buf [12:20:46]execute_script done [12:20:46]execute_script returns [12:20:46]free content buf [12:20:46]Sock 9.Close socket [12:20:46]Sock 9.Thread stoped [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:03]accept exits with 8 [12:23:03]New connection [12:23:03]New thread 3067313508 created [12:23:03]Thread 3067456868 joined [12:23:03]Waiting for new connection... [12:23:03] Sock 8.Parse request [12:23:03]Sock 8.Check first char [12:23:03]Sock 8.First char is OK [12:23:03]request: POST /json_proto HTTP/1.0 [12:23:03]Method: POST [12:23:03]URL: /json_proto [12:23:03]Method is POST - this is cgi request [12:23:03]url: /json_proto [12:23:03]query_string will be loaded in cgi processing [12:23:03]execute_cgi json_proto POST (null) [12:23:03]execute_cgi path=json_proto method=POST [12:23:03]POST find Content-Length [12:23:03]Host: 172.17.50.3:8080 [12:23:03]Content-Length: 683 [12:23:03]Content-Type: application/json [12:23:03] [12:23:03]POST finish read [12:23:03]Found Content-Length = 683 [12:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885563", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [12:23:03]execute_script... [12:23: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)2885563", "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" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [12:23:03]POST & json_proto [12:23:03]process_json_proto [12:23:03]json parsed OK: [12:23:03]protocol is kg_v1.0 [12:23:03]action value=close_receipt [12:23:03]process_action close_receipt [12:23:03]cmd_close_receipt [12:23:03]MH_GetDate [12:23:03]Write to MH i2c: F0 00 00 B7 3E E4 [12:23:03]Write i2c OK [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: F0 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: F0 09 00 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: F0 09 00 B7 3E 00 AA 47 16 67 6B 98 1E 66 E2 [12:23:03]GetLastDocTimeStamp 1729513246 [12:23:03]current date 1729513386 [12:23:03]FM_GetShiftState [12:23:03]SAM_PROTO_GetShiftState [12:23:03]wFMCommunicate request_size=4 [12:23:03]MH_SAM_APDU [12:23:03]CAPDU: 80 13 01 00 [12:23:03]Write to MH i2c: E2 08 00 B8 3E 80 13 01 00 00 00 00 00 73 [12:23:03]Write i2c OK [12:23:03]MH_I2C_Read... [12:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:03]Read from MH i2c: E2 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: E2 0E 00 [12:23:03]MH_I2C_Read... [12:23:03]Read from MH i2c: E2 0E 00 B8 3E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9F [12:23:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:23:03]wFMCommunicate OK [12:23:03]SAM_PROTO_GetShiftState done [12:23:03]FM_GetShiftState done [12:23:03]opened in 1729469703 [12:23:03]opened+sec_in_day 1729556103 [12:23:03]quantity*price = 150056 [12:23:03]sum+1 = 150058 [12:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 207 21.10.2024 12:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69817 ФПД: 256841076340679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122306&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69817&fm=256841076340679&tin=02508201610067®Number=0000000000156251&sum=150000 [12:23:04]StoreToDocumentArchive [12:23:04]shift 194 fd 69817 [12:23:04]save to /storage/0194/doc_00069817 [12:23:04]save last doc name /storage/0194/doc_00069817 to /storage/kkm_last_doc_name [12:23:04]save OK [12:23:04]Clear old archive folders... [12:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:04]tlvbuf is 00D4B020 [12:23:04]SAM_PROTO_ClearQueue [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 09 00 00 [12:23:04]Write to MH i2c: E2 08 00 C5 3E 80 09 00 00 00 00 00 00 75 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 C5 3E 00 90 00 77 [12:23:04]RAPDU: 90 00 [12:23:04]wFMCommunicate OK [12:23:04]SAM_PROTO_ClearQueue done [12:23:04]KKMCreateOFDPacket [12:23:04]OFDProtocolAddRootSTLVToBuf [12:23:04]FM_MakeSignedData [12:23:04]FM_MakeSignedData [12:23:04]SAM_PROTO_SignData [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 0D 01 02 [12:23:04]Write to MH i2c: E2 08 00 C6 3E 80 0D 01 02 00 00 00 00 7D [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 C6 3E 00 90 00 78 [12:23:04]RAPDU: 90 00 [12:23:04]wFMCommunicate OK [12:23:04]wFMCommunicate request_size=255 [12:23:04]MH_SAM_APDU [12:23: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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CF 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 10 01 00 35 04 06 00 E9 [12:23:04]Write to MH i2c: E2 02 01 C7 3E 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CF 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 10 01 00 35 04 06 00 E9 00 00 01 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [12:23:04]RAPDU: 90 00 [12:23:04]wFMCommunicate OK [12:23:04]wFMCommunicate request_size=10 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 0D 02 02 05 98 79 1E 77 C7 [12:23:04]Write to MH i2c: E2 0D 00 C8 3E 80 0D 02 02 05 00 98 79 1E 77 C7 00 00 F7 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 03 00 C8 3E 00 90 00 7A [12:23:04]RAPDU: 90 00 [12:23:04]wFMCommunicate OK [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 0D 03 02 [12:23:04]Write to MH i2c: E2 08 00 C9 3E 80 0D 03 02 00 00 00 00 82 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0B 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0B 00 C9 3E 00 BD CF 1E 59 2B F0 FC DF 90 00 7C [12:23:04]RAPDU: BD CF 1E 59 2B F0 FC DF 90 00 [12:23:04]wFMCommunicate OK [12:23:04]SAM_PROTO_SignData done [12:23:04]FM_MakeSignedData done [12:23:04]CreateOFDProtocolMessage [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 11 00 00 [12:23:04]Write to MH i2c: E2 08 00 CA 3E 80 11 00 00 00 00 00 00 82 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 17 00 CA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [12:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:23:04]wFMCommunicate OK [12:23:04]CreateOFDProtocolMessage done [12:23:04]OFDSenderStorePacket 69817 [12:23:04]StoreOFDPacket docnum=69817 [12:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 17 D9 07 01 21 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 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CF 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 10 01 00 35 04 06 00 E9 98 79 1E 77 C7 BD CF 1E 59 2B F0 FC DF [12:23:04]CheckFolder [12:23:04]dirname=/storage/ofd_packets [12:23:04]CheckFolder done [12:23:04]ProducePacketName [12:23:04]name=ofd_packets/00069817 [12:23:04]NVStorageSaveData ofd_packets/00069817 [12:23:04]File name is /storage/ofd_packets/00069817 [12:23:04]Write 301 bytes [12:23:04]NVStorageSaveData done [12:23:04]OFDSenderStorePacket done [12:23:04]KKMCreateOFDPacket done [12:23:04]NVStorageSaveData kkm_last_timestamp [12:23:04]File name is /storage/kkm_last_timestamp [12:23:04]Write 4 bytes [12:23:04]NVStorageSaveData done [12:23:04]ExternCall_PrintAddStr [12:23:04]wPrintStart [12:23:04]Write to MH i2c: 01 00 00 CB 3E 09 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: 01 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: 01 07 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: 01 07 00 CB 3E 00 00 00 00 00 FF 0F 1E [12:23:04]RasterBufferAndPrint [12:23:04]line Счет N : (1)2885563 [12:23:04]line ИНН: 02508201610067 [12:23:04]line Контрольно-Кассовый Чек [12:23:04]line ПРОДАЖА [12:23:04]line ТРК (МРК, ГНК) : 42 [12:23:04]line Товар: 2710124130 [12:23:04]line Аи-92-К-5 [12:23:04]line 22.430 * 66.90 [12:23:04]line = 1500.57 [12:23:04]line НДС 12% НСП 1% [12:23:04]line > о реализуемом товаре [12:23:04]line ОКРУГЛЕНИЕ: -0.57 [12:23:04]line ИТОГО: 1500.00 [12:23:04]line Внесено: 1500.00 [12:23:04]line СДАЧА: 0.00 [12:23:04]line НСП 1% : 13.28 [12:23:04]line НДС 12% : 159.35 [12:23:04]line Наличными: 1500.00 [12:23:04]line Безнал.: 0.00 [12:23:04]line Место: АЗС № 85 "Партнер Нефть" [12:23:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:23:04]line СНО: Общий режим [12:23:04]line Чек 207 21.10.2024 12:23 [12:23:04]line Смена: 194 ФФД: 1.0 [12:23:04]line ЗНМ: 0300000167 [12:23:04]line РНМ: 0000000000156251 [12:23:04]line Версия ККМ: v1.0 [12:23:04]line ФМ: 0000000000963346 [12:23:04]line ФД: 69817 [12:23:05]line ФПД: 256841076340679 [12:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122306&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69817&fm=256841076340679&tin=02508201610067®Number=0000000000156251&sum=150000 [12:23:05]OFD Sender: Processing packet 69817 [packets to send 18, broken 17] [12:23:05]ProducePacketName [12:23:05]name=ofd_packets/00069817 [12:23:05]OFD Sender: To server: pG, [12:23:05]CommunicateWithHost lk.salyk.kg:30040 [12:23:05]ConnectInit lk.salyk.kg [12:23:05]written 0, free lines is 4095 [12:23:05]Connected sock=10 [12:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 17 D9 07 01 21 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 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 CF 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 10 01 00 35 04 06 00 E9 98 79 1E 77 C7 BD CF 1E 59 2B F0 FC DF [12:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C7 0A 47 00 C3 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 10 01 00 F4 03 04 00 4E F1 15 67 B6 04 01 00 00 47 0A BD DE 66 E0 C6 D4 [12:23:05]CommunicateWithHost err = 0 [12:23:05]CheckOFDResponse [12:23:05]1017 (14) - 77093643461234 [12:23:05]1041 (16) - 0000000000963346 [12:23:05]1040 (4) - 69817 [12:23:05]1012 (4) - 21.10.2024 06:14 [12:23:05]1206 (1) - 0 [12:23:05]OFD Sender: Remove packet 69817 [12:23:05]ProducePacketName [12:23:05]name=ofd_packets/00069817 [12:23:05]NVStorageDeleteData [12:23:05]Write to MH i2c: 01 00 00 F6 3E 34 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: 01 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: 01 07 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: 01 07 00 F6 3E 00 00 00 00 00 00 0D 48 [12:23:05]RasterBufferAndPrint [12:23:05]line [12:23:05]line [12:23:05]line [12:23:05]line [12:23:05]line [12:23:05]written 0, free lines is 3334 [12:23:05]MH_Cut [12:23:05]Write to MH i2c: D1 01 00 FD 3E 01 0D [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: D1 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: D1 01 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: D1 01 00 FD 3E 00 0C [12:23:05]Write to MH i2c: 01 00 00 FE 3E 3C [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]OFD Sender: No OFD packet to send [12:23:06]*** Cut start [12:23:06]*** Partial cut [12:23:06]*** CUTSNS_PIN = 1 [12:23:06]*** CUTSNS_PIN = 0 [12:23:06]*** Brake cut motor [12:23:06]Read from MH i2c: 01 [12:23:06]MH_I2C_Read... [12:23:06]*** Stop cut motor [12:23:06]*** Cut end [12:23:06]Read from MH i2c: 01 07 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 FE 3E 00 00 00 00 00 FF 0F 51 [12:23:06]process_action close_receipt done [12:23:06]requested_data is exist [12:23:06]produce_requested_data [12:23:06]requested_item fm.sn is exist - process it [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 11 00 00 [12:23:06]Write to MH i2c: E2 08 00 FF 3E 80 11 00 00 00 00 00 00 B7 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 FF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [12:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:23:06]wFMCommunicate OK [12:23:06]requested_item fd.num is exist - process it [12:23:06]SAM_PROTO_GetFieldsCounters [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 13 00 00 [12:23:06]Write to MH i2c: E2 08 00 00 3F 80 13 00 00 00 00 00 00 BB [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:07]Read from MH i2c: E2 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: E2 62 00 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: E2 62 00 00 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:07]wFMCommunicate OK [12:23:07]SAM_PROTO_GetFieldsCounters done [12:23:07]requested_item shift.num is exist - process it [12:23:07]requested_item shift.opened is exist - process it [12:23:07]req_shift_opened [12:23:07]FM_GetShiftState [12:23:07]SAM_PROTO_GetShiftState [12:23:07]wFMCommunicate request_size=4 [12:23:07]MH_SAM_APDU [12:23:07]CAPDU: 80 13 01 00 [12:23:07]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [12:23:07]Write i2c OK [12:23:07]MH_I2C_Read... [12:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:07]Read from MH i2c: E2 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: E2 0E 00 [12:23:07]MH_I2C_Read... [12:23:07]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [12:23:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:23:07]wFMCommunicate OK [12:23:07]SAM_PROTO_GetShiftState done [12:23:07]FM_GetShiftState done [12:23:07]req_shift_opened done [12:23:07]requested_item shift.open_date is exist - process it [12:23:07]req_shift_open_date [12:23:07]req_shift_open_date done [12:23:07]produce_requested_data done [12:23:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69817,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:23:07]process_action_free close_receipt [12:23:07]json_value_free [12:23:07]json_value_free done [12:23:07]process_json_proto returns [12:23:07]Send response to host [12:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69817,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:23:07]free response buf [12:23:07]execute_script done [12:23:07]execute_script returns [12:23:07]free content buf [12:23:07]Sock 8.Close socket [12:23:07]Sock 8.Thread stoped [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:53]accept exits with 9 [12:34:53]New connection [12:34:53]New thread 3067456868 created [12:34:53]Thread 3067313508 joined [12:34:53]Waiting for new connection... [12:34:53] Sock 9.Parse request [12:34:53]Sock 9.Check first char [12:34:53]Sock 9.First char is OK [12:34:53]request: POST /json_proto HTTP/1.0 [12:34:53]Method: POST [12:34:53]URL: /json_proto [12:34:53]Method is POST - this is cgi request [12:34:53]url: /json_proto [12:34:53]query_string will be loaded in cgi processing [12:34:53]execute_cgi json_proto POST (null) [12:34:53]execute_cgi path=json_proto method=POST [12:34:53]POST find Content-Length [12:34:53]Host: 172.17.50.3:8080 [12:34:53]Content-Length: 767 [12:34:53]Content-Type: application/json [12:34:53] [12:34:53]POST finish read [12:34:53]Found Content-Length = 767 [12:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]execute_script... [12:34: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)2885565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]POST & json_proto [12:34:53]process_json_proto [12:34:53]json parsed OK: [12:34:53]protocol is kg_v1.0 [12:34:53]action value=close_receipt [12:34:53]process_action close_receipt [12:34:53]cmd_close_receipt [12:34:53]MH_GetDate [12:34:53]Write to MH i2c: F0 00 00 02 3F 30 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 02 3F 00 71 4A 16 67 6B 98 1E 66 F8 [12:34:53]GetLastDocTimeStamp 1729513386 [12:34:53]current date 1729514097 [12:34:53]FM_GetShiftState [12:34:53]SAM_PROTO_GetShiftState [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 13 01 00 [12:34:53]Write to MH i2c: E2 08 00 03 3F 80 13 01 00 00 00 00 00 BF [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 03 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EB [12:34:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_GetShiftState done [12:34:53]FM_GetShiftState done [12:34:53]opened in 1729469703 [12:34:53]opened+sec_in_day 1729556103 [12:34:53]quantity*price = 200025 [12:34:53]sum+1 = 200026 [12:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 208 21.10.2024 12:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69818 ФПД: 27581535847763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69818&fm=27581535847763&tin=02508201610067®Number=0000000000156251&sum=200025 [12:34:54]StoreToDocumentArchive [12:34:54]shift 194 fd 69818 [12:34:54]save to /storage/0194/doc_00069818 [12:34:54]save last doc name /storage/0194/doc_00069818 to /storage/kkm_last_doc_name [12:34:54]save OK [12:34:54]Clear old archive folders... [12:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:54]tlvbuf is 00D107C0 [12:34:54]SAM_PROTO_ClearQueue [12:34:54]wFMCommunicate request_size=4 [12:34:54]MH_SAM_APDU [12:34:54]CAPDU: 80 09 00 00 [12:34:54]Write to MH i2c: E2 08 00 10 3F 80 09 00 00 00 00 00 00 C1 [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:54]Read from MH i2c: E2 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [12:34:54]RAPDU: 90 00 [12:34:54]wFMCommunicate OK [12:34:54]SAM_PROTO_ClearQueue done [12:34:54]KKMCreateOFDPacket [12:34:54]OFDProtocolAddRootSTLVToBuf [12:34:54]FM_MakeSignedData [12:34:54]FM_MakeSignedData [12:34:54]SAM_PROTO_SignData [12:34:54]wFMCommunicate request_size=4 [12:34:54]MH_SAM_APDU [12:34:54]CAPDU: 80 0D 01 02 [12:34:54]Write to MH i2c: E2 08 00 11 3F 80 0D 01 02 00 00 00 00 C9 [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:54]Read from MH i2c: E2 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [12:34:54]RAPDU: 90 00 [12:34:54]wFMCommunicate OK [12:34:54]wFMCommunicate request_size=255 [12:34:54]MH_SAM_APDU [12:34: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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 4A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 10 01 00 35 04 06 00 19 15 D3 A5 [12:34:54]Write to MH i2c: E2 02 01 12 3F 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 4A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 10 01 00 35 04 06 00 19 15 D3 A5 00 00 A3 [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 12 3F 00 90 00 C5 [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=7 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 02 02 02 85 53 [12:34:55]Write to MH i2c: E2 0A 00 13 3F 80 0D 02 02 02 00 85 53 00 00 A8 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 13 3F 00 90 00 C6 [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 03 02 [12:34:55]Write to MH i2c: E2 08 00 14 3F 80 0D 03 02 00 00 00 00 CE [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 14 3F 00 7C B4 D2 D1 0B 8F 27 0A 90 00 6D [12:34:55]RAPDU: 7C B4 D2 D1 0B 8F 27 0A 90 00 [12:34:55]wFMCommunicate OK [12:34:55]SAM_PROTO_SignData done [12:34:55]FM_MakeSignedData done [12:34:55]CreateOFDProtocolMessage [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 11 00 00 [12:34:55]Write to MH i2c: E2 08 00 15 3F 80 11 00 00 00 00 00 00 CE [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 15 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [12:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:34:55]wFMCommunicate OK [12:34:55]CreateOFDProtocolMessage done [12:34:55]OFDSenderStorePacket 69818 [12:34:55]StoreOFDPacket docnum=69818 [12:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7E 89 04 01 B0 4A 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 4A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 10 01 00 35 04 06 00 19 15 D3 A5 85 53 7C B4 D2 D1 0B 8F 27 0A [12:34:55]CheckFolder [12:34:55]dirname=/storage/ofd_packets [12:34:55]CheckFolder done [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00069818 [12:34:55]NVStorageSaveData ofd_packets/00069818 [12:34:55]File name is /storage/ofd_packets/00069818 [12:34:55]Write 298 bytes [12:34:55]NVStorageSaveData done [12:34:55]OFDSenderStorePacket done [12:34:55]KKMCreateOFDPacket done [12:34:55]NVStorageSaveData kkm_last_timestamp [12:34:55]File name is /storage/kkm_last_timestamp [12:34:55]Write 4 bytes [12:34:55]NVStorageSaveData done [12:34:55]ExternCall_PrintAddStr [12:34:55]wPrintStart [12:34:55]Write to MH i2c: 01 00 00 16 3F 55 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 16 3F 00 00 00 00 00 FF 0F 6A [12:34:55]RasterBufferAndPrint [12:34:55]line Счет N : (1)2885565 [12:34:55]line ИНН: 02508201610067 [12:34:55]line Контрольно-Кассовый Чек [12:34:55]line ПРОДАЖА [12:34:55]line ТРК (МРК, ГНК) : 61 [12:34:55]line Товар: 2710194210 [12:34:55]line ДТ-К-5 [12:34:55]line 26.250 * 76.20 [12:34:55]line = 2000.25 [12:34:55]line НДС 12% НСП 1% [12:34:55]line > о реализуемом товаре [12:34:55]line ИТОГО: 2000.25 [12:34:55]line НСП 1% : 17.70 [12:34:55]line НДС 12% : 212.42 [12:34:55]line Наличными: 0.00 [12:34:55]line Безнал.: 2000.25 [12:34:55]line Место: АЗС № 85 "Партнер Нефть" [12:34:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:34:55]line СНО: Общий режим [12:34:55]line Чек 208 21.10.2024 12:34 [12:34:55]line Смена: 194 ФФД: 1.0 [12:34:55]line ЗНМ: 0300000167 [12:34:55]line РНМ: 0000000000156251 [12:34:55]line Версия ККМ: v1.0 [12:34:55]line Платежная система: Mbank [12:34:55]line ФМ: 0000000000963346 [12:34:55]line ФД: 69818 [12:34:55]line ФПД: 27581535847763 [12:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69818&fm=27581535847763&tin=02508201610067®Number=0000000000156251&sum=200025 [12:34:55]OFD Sender: Processing packet 69818 [packets to send 18, broken 17] [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00069818 [12:34:55]OFD Sender: To server: pG, [12:34:55]CommunicateWithHost lk.salyk.kg:30040 [12:34:55]ConnectInit lk.salyk.kg [12:34:55]written 0, free lines is 4095 [12:34:55]Connected sock=10 [12:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7E 89 04 01 B0 4A 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 71 4A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 10 01 00 35 04 06 00 19 15 D3 A5 85 53 7C B4 D2 D1 0B 8F 27 0A [12:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 BB 47 00 79 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 10 01 00 F4 03 04 00 15 F4 15 67 B6 04 01 00 00 B9 AF 77 A0 B1 19 47 F9 [12:34:55]CommunicateWithHost err = 0 [12:34:55]CheckOFDResponse [12:34:55]1017 (14) - 77093643461234 [12:34:55]1041 (16) - 0000000000963346 [12:34:55]1040 (4) - 69818 [12:34:55]1012 (4) - 21.10.2024 06:26 [12:34:55]1206 (1) - 0 [12:34:55]OFD Sender: Remove packet 69818 [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00069818 [12:34:55]NVStorageDeleteData [12:34:56]Write to MH i2c: 01 00 00 3F 3F 7E [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 07 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 07 00 3F 3F 00 00 00 00 00 07 0D 99 [12:34:56]RasterBufferAndPrint [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]written 0, free lines is 3341 [12:34:56]MH_Cut [12:34:56]Write to MH i2c: D1 01 00 46 3F 01 57 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 01 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 01 00 46 3F 00 56 [12:34:56]Write to MH i2c: 01 00 00 47 3F 86 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]OFD Sender: No OFD packet to send [12:34:56]*** Cut start [12:34:56]*** Partial cut [12:34:56]*** CUTSNS_PIN = 1 [12:34:56]*** CUTSNS_PIN = 0 [12:34:57]*** Brake cut motor [12:34:57]Read from MH i2c: 01 [12:34:57]MH_I2C_Read... [12:34:57]*** Stop cut motor [12:34:57]*** Cut end [12:34:57]Read from MH i2c: 01 07 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: 01 07 00 47 3F 00 00 00 00 00 FF 0F 9B [12:34:57]process_action close_receipt done [12:34:57]requested_data is exist [12:34:57]produce_requested_data [12:34:57]requested_item fm.sn is exist - process it [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 11 00 00 [12:34:57]Write to MH i2c: E2 08 00 48 3F 80 11 00 00 00 00 00 00 01 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 17 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 17 00 48 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [12:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:34:57]wFMCommunicate OK [12:34:57]requested_item fd.num is exist - process it [12:34:57]SAM_PROTO_GetFieldsCounters [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 00 00 [12:34:57]Write to MH i2c: E2 08 00 49 3F 80 13 00 00 00 00 00 00 04 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 49 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetFieldsCounters done [12:34:57]requested_item shift.num is exist - process it [12:34:57]requested_item shift.opened is exist - process it [12:34:57]req_shift_opened [12:34:57]FM_GetShiftState [12:34:57]SAM_PROTO_GetShiftState [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 01 00 [12:34:57]Write to MH i2c: E2 08 00 4A 3F 80 13 01 00 00 00 00 00 06 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 4A 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [12:34:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetShiftState done [12:34:57]FM_GetShiftState done [12:34:57]req_shift_opened done [12:34:57]requested_item shift.open_date is exist - process it [12:34:57]req_shift_open_date [12:34:57]req_shift_open_date done [12:34:57]produce_requested_data done [12:34:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69818,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:34:57]process_action_free close_receipt [12:34:57]json_value_free [12:34:57]json_value_free done [12:34:57]process_json_proto returns [12:34:57]Send response to host [12:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69818,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:34:57]free response buf [12:34:57]execute_script done [12:34:57]execute_script returns [12:34:57]free content buf [12:34:57]Sock 9.Close socket [12:34:57]Sock 9.Thread stoped [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:03]accept exits with 8 [12:45:03]New connection [12:45:03]New thread 3067313508 created [12:45:03]Thread 3067456868 joined [12:45:03]Waiting for new connection... [12:45:03] Sock 8.Parse request [12:45:03]Sock 8.Check first char [12:45:03]Sock 8.First char is OK [12:45:03]request: POST /json_proto HTTP/1.0 [12:45:03]Method: POST [12:45:03]URL: /json_proto [12:45:03]Method is POST - this is cgi request [12:45:03]url: /json_proto [12:45:03]query_string will be loaded in cgi processing [12:45:03]execute_cgi json_proto POST (null) [12:45:03]execute_cgi path=json_proto method=POST [12:45:03]POST find Content-Length [12:45:03]Host: 172.17.50.3:8080 [12:45:03]Content-Length: 679 [12:45:03]Content-Type: application/json [12:45:03] [12:45:03]POST finish read [12:45:03]Found Content-Length = 679 [12:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885566", "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" : 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" ] } } [12:45:03]execute_script... [12:45: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)2885566", "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" : 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" ] } } [12:45:03]POST & json_proto [12:45:03]process_json_proto [12:45:03]json parsed OK: [12:45:03]protocol is kg_v1.0 [12:45:03]action value=close_receipt [12:45:03]process_action close_receipt [12:45:03]cmd_close_receipt [12:45:03]MH_GetDate [12:45:03]Write to MH i2c: F0 00 00 4B 3F 79 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 4B 3F 00 D2 4C 16 67 6B 98 1E 66 A4 [12:45:03]GetLastDocTimeStamp 1729514097 [12:45:03]current date 1729514706 [12:45:03]FM_GetShiftState [12:45:03]SAM_PROTO_GetShiftState [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 13 01 00 [12:45:03]Write to MH i2c: E2 08 00 4C 3F 80 13 01 00 00 00 00 00 08 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 4C 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 34 [12:45:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_GetShiftState done [12:45:03]FM_GetShiftState done [12:45:03]opened in 1729469703 [12:45:03]opened+sec_in_day 1729556103 [12:45:03]quantity*price = 80061 [12:45:03]sum+1 = 80063 [12:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 209 21.10.2024 12:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69819 ФПД: 31759164798374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69819&fm=31759164798374&tin=02508201610067®Number=0000000000156251&sum=80000 [12:45:04]StoreToDocumentArchive [12:45:04]shift 194 fd 69819 [12:45:04]save to /storage/0194/doc_00069819 [12:45:04]save last doc name /storage/0194/doc_00069819 to /storage/kkm_last_doc_name [12:45:04]save OK [12:45:04]Clear old archive folders... [12:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:04]tlvbuf is 00D936B0 [12:45:04]SAM_PROTO_ClearQueue [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 09 00 00 [12:45:04]Write to MH i2c: E2 08 00 59 3F 80 09 00 00 00 00 00 00 0A [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 59 3F 00 90 00 0C [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]SAM_PROTO_ClearQueue done [12:45:04]KKMCreateOFDPacket [12:45:04]OFDProtocolAddRootSTLVToBuf [12:45:04]FM_MakeSignedData [12:45:04]FM_MakeSignedData [12:45:04]SAM_PROTO_SignData [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 01 02 [12:45:04]Write to MH i2c: E2 08 00 5A 3F 80 0D 01 02 00 00 00 00 12 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 5A 3F 00 90 00 0D [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=255 [12:45:04]MH_SAM_APDU [12:45: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 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 D1 00 00 00 F4 03 04 00 D2 4C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 10 01 00 35 04 06 00 1C [12:45:04]Write to MH i2c: E2 02 01 5B 3F 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 D1 00 00 00 F4 03 04 00 D2 4C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 10 01 00 35 04 06 00 1C 00 00 1E [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=10 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 02 02 05 E2 81 BC 75 A6 [12:45:04]Write to MH i2c: E2 0D 00 5C 3F 80 0D 02 02 05 00 E2 81 BC 75 A6 00 00 59 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 03 02 [12:45:04]Write to MH i2c: E2 08 00 5D 3F 80 0D 03 02 00 00 00 00 17 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 0B 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 0B 00 5D 3F 00 1B 74 6F B3 C3 EF 37 D9 90 00 8B [12:45:04]RAPDU: 1B 74 6F B3 C3 EF 37 D9 90 00 [12:45:04]wFMCommunicate OK [12:45:04]SAM_PROTO_SignData done [12:45:04]FM_MakeSignedData done [12:45:04]CreateOFDProtocolMessage [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 11 00 00 [12:45:04]Write to MH i2c: E2 08 00 5E 3F 80 11 00 00 00 00 00 00 17 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 17 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 17 00 5E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [12:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:45:04]wFMCommunicate OK [12:45:04]CreateOFDProtocolMessage done [12:45:04]OFDSenderStorePacket 69819 [12:45:04]StoreOFDPacket docnum=69819 [12:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB EA 07 01 4F 02 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 D1 00 00 00 F4 03 04 00 D2 4C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 10 01 00 35 04 06 00 1C E2 81 BC 75 A6 1B 74 6F B3 C3 EF 37 D9 [12:45:04]CheckFolder [12:45:04]dirname=/storage/ofd_packets [12:45:04]CheckFolder done [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00069819 [12:45:04]NVStorageSaveData ofd_packets/00069819 [12:45:04]File name is /storage/ofd_packets/00069819 [12:45:04]Write 301 bytes [12:45:04]NVStorageSaveData done [12:45:04]OFDSenderStorePacket done [12:45:04]KKMCreateOFDPacket done [12:45:04]NVStorageSaveData kkm_last_timestamp [12:45:04]File name is /storage/kkm_last_timestamp [12:45:04]Write 4 bytes [12:45:04]NVStorageSaveData done [12:45:04]ExternCall_PrintAddStr [12:45:04]wPrintStart [12:45:04]Write to MH i2c: 01 00 00 5F 3F 9E [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 5F 3F 00 00 00 00 00 FF 0F B3 [12:45:04]RasterBufferAndPrint [12:45:04]line Счет N : (1)2885566 [12:45:04]line ИНН: 02508201610067 [12:45:04]line Контрольно-Кассовый Чек [12:45:04]line ПРОДАЖА [12:45:04]line ТРК (МРК, ГНК) : 33 [12:45:04]line Товар: 2710124500 [12:45:04]line Аи-95-К-5 [12:45:04]line 10.790 * 74.20 [12:45:04]line = 800.62 [12:45:04]line НДС 12% НСП 1% [12:45:04]line > о реализуемом товаре [12:45:04]line ОКРУГЛЕНИЕ: -0.62 [12:45:04]line ИТОГО: 800.00 [12:45:04]line Внесено: 800.00 [12:45:04]line СДАЧА: 0.00 [12:45:04]line НСП 1% : 7.08 [12:45:04]line НДС 12% : 85.02 [12:45:04]line Наличными: 800.00 [12:45:04]line Безнал.: 0.00 [12:45:04]line Место: АЗС № 85 "Партнер Нефть" [12:45:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:45:04]line СНО: Общий режим [12:45:04]line Чек 209 21.10.2024 12:45 [12:45:04]line Смена: 194 ФФД: 1.0 [12:45:04]line ЗНМ: 0300000167 [12:45:04]line РНМ: 0000000000156251 [12:45:04]line Версия ККМ: v1.0 [12:45:04]line ФМ: 0000000000963346 [12:45:04]line ФД: 69819 [12:45:04]line ФПД: 31759164798374 [12:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69819&fm=31759164798374&tin=02508201610067®Number=0000000000156251&sum=80000 [12:45:05]OFD Sender: Processing packet 69819 [packets to send 18, broken 17] [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00069819 [12:45:05]OFD Sender: To server: pG, [12:45:05]CommunicateWithHost lk.salyk.kg:30040 [12:45:05]ConnectInit lk.salyk.kg [12:45:05]written 0, free lines is 4095 [12:45:05]Connected sock=10 [12:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB EA 07 01 4F 02 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 D1 00 00 00 F4 03 04 00 D2 4C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 10 01 00 35 04 06 00 1C E2 81 BC 75 A6 1B 74 6F B3 C3 EF 37 D9 [12:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 67 47 47 00 DD 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 10 01 00 F4 03 04 00 76 F6 15 67 B6 04 01 00 00 B2 40 BA 8A 68 DA B2 C8 [12:45:05]CommunicateWithHost err = 0 [12:45:05]CheckOFDResponse [12:45:05]1017 (14) - 77093643461234 [12:45:05]1041 (16) - 0000000000963346 [12:45:05]1040 (4) - 69819 [12:45:05]1012 (4) - 21.10.2024 06:36 [12:45:05]1206 (1) - 0 [12:45:05]OFD Sender: Remove packet 69819 [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00069819 [12:45:05]NVStorageDeleteData [12:45:05]Write to MH i2c: 01 00 00 8A 3F C9 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 8A 3F 00 00 00 00 00 F1 0C CD [12:45:05]RasterBufferAndPrint [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]written 0, free lines is 3319 [12:45:05]MH_Cut [12:45:05]Write to MH i2c: D1 01 00 91 3F 01 A2 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 91 3F 00 A1 [12:45:05]Write to MH i2c: 01 00 00 92 3F D1 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]OFD Sender: No OFD packet to send [12:45:06]*** Cut start [12:45:06]*** Partial cut [12:45:06]*** CUTSNS_PIN = 1 [12:45:06]*** CUTSNS_PIN = 0 [12:45:06]*** Brake cut motor [12:45:06]Read from MH i2c: 01 [12:45:06]MH_I2C_Read... [12:45:06]*** Stop cut motor [12:45:06]*** Cut end [12:45:06]Read from MH i2c: 01 07 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: 01 07 00 92 3F 00 00 00 00 00 FF 0F E6 [12:45:06]process_action close_receipt done [12:45:06]requested_data is exist [12:45:06]produce_requested_data [12:45:06]requested_item fm.sn is exist - process it [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 11 00 00 [12:45:06]Write to MH i2c: E2 08 00 93 3F 80 11 00 00 00 00 00 00 4C [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:06]Read from MH i2c: E2 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 17 00 [12:45:06]MH_I2C_Read... [12:45:06]Read from MH i2c: E2 17 00 93 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [12:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:45:06]wFMCommunicate OK [12:45:06]requested_item fd.num is exist - process it [12:45:06]SAM_PROTO_GetFieldsCounters [12:45:06]wFMCommunicate request_size=4 [12:45:06]MH_SAM_APDU [12:45:06]CAPDU: 80 13 00 00 [12:45:06]Write to MH i2c: E2 08 00 94 3F 80 13 00 00 00 00 00 00 4F [12:45:06]Write i2c OK [12:45:06]MH_I2C_Read... [12:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:07]Read from MH i2c: E2 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 62 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 62 00 94 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [12:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:07]wFMCommunicate OK [12:45:07]SAM_PROTO_GetFieldsCounters done [12:45:07]requested_item shift.num is exist - process it [12:45:07]requested_item shift.opened is exist - process it [12:45:07]req_shift_opened [12:45:07]FM_GetShiftState [12:45:07]SAM_PROTO_GetShiftState [12:45:07]wFMCommunicate request_size=4 [12:45:07]MH_SAM_APDU [12:45:07]CAPDU: 80 13 01 00 [12:45:07]Write to MH i2c: E2 08 00 95 3F 80 13 01 00 00 00 00 00 51 [12:45:07]Write i2c OK [12:45:07]MH_I2C_Read... [12:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:07]Read from MH i2c: E2 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 0E 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 0E 00 95 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7D [12:45:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:45:07]wFMCommunicate OK [12:45:07]SAM_PROTO_GetShiftState done [12:45:07]FM_GetShiftState done [12:45:07]req_shift_opened done [12:45:07]requested_item shift.open_date is exist - process it [12:45:07]req_shift_open_date [12:45:07]req_shift_open_date done [12:45:07]produce_requested_data done [12:45:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69819,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:45:07]process_action_free close_receipt [12:45:07]json_value_free [12:45:07]json_value_free done [12:45:07]process_json_proto returns [12:45:07]Send response to host [12:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69819,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:45:07]free response buf [12:45:07]execute_script done [12:45:07]execute_script returns [12:45:07]free content buf [12:45:07]Sock 8.Close socket [12:45:07]Sock 8.Thread stoped [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47: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:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]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: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: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: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:52:56]accept exits with 9 [12:52:56]New connection [12:52:56]New thread 3067456868 created [12:52:56]Thread 3067313508 joined [12:52:56]Waiting for new connection... [12:52:56] Sock 9.Parse request [12:52:56]Sock 9.Check first char [12:52:56]Sock 9.First char is OK [12:52:56]request: POST /json_proto HTTP/1.0 [12:52:56]Method: POST [12:52:56]URL: /json_proto [12:52:56]Method is POST - this is cgi request [12:52:56]url: /json_proto [12:52:56]query_string will be loaded in cgi processing [12:52:56]execute_cgi json_proto POST (null) [12:52:56]execute_cgi path=json_proto method=POST [12:52:56]POST find Content-Length [12:52:56]Host: 172.17.50.3:8080 [12:52:56]Content-Length: 678 [12:52:56]Content-Type: application/json [12:52:56] [12:52:56]POST finish read [12:52:56]Found Content-Length = 678 [12:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885569", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:56]execute_script... [12:52: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)2885569", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:56]POST & json_proto [12:52:56]process_json_proto [12:52:56]json parsed OK: [12:52:56]protocol is kg_v1.0 [12:52:56]action value=close_receipt [12:52:56]process_action close_receipt [12:52:56]cmd_close_receipt [12:52:56]MH_GetDate [12:52:56]Write to MH i2c: F0 00 00 96 3F C4 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: F0 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: F0 09 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: F0 09 00 96 3F 00 AC 4E 16 67 6B 98 1E 66 CB [12:52:56]GetLastDocTimeStamp 1729514706 [12:52:56]current date 1729515180 [12:52:56]FM_GetShiftState [12:52:56]SAM_PROTO_GetShiftState [12:52:56]wFMCommunicate request_size=4 [12:52:56]MH_SAM_APDU [12:52:56]CAPDU: 80 13 01 00 [12:52:56]Write to MH i2c: E2 08 00 97 3F 80 13 01 00 00 00 00 00 53 [12:52:56]Write i2c OK [12:52:56]MH_I2C_Read... [12:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:56]Read from MH i2c: E2 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 0E 00 [12:52:56]MH_I2C_Read... [12:52:56]Read from MH i2c: E2 0E 00 97 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7F [12:52:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:52:56]wFMCommunicate OK [12:52:56]SAM_PROTO_GetShiftState done [12:52:56]FM_GetShiftState done [12:52:56]opened in 1729469703 [12:52:56]opened+sec_in_day 1729556103 [12:52:56]quantity*price = 50041 [12:52:56]sum+1 = 50042 [12:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 210 21.10.2024 12:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69820 ФПД: 138244332921540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69820&fm=138244332921540&tin=02508201610067®Number=0000000000156251&sum=50000 [12:52:57]StoreToDocumentArchive [12:52:57]shift 194 fd 69820 [12:52:57]save to /storage/0194/doc_00069820 [12:52:57]save last doc name /storage/0194/doc_00069820 to /storage/kkm_last_doc_name [12:52:57]save OK [12:52:57]Clear old archive folders... [12:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:57]tlvbuf is 00D935F0 [12:52:57]SAM_PROTO_ClearQueue [12:52:57]wFMCommunicate request_size=4 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 09 00 00 [12:52:57]Write to MH i2c: E2 08 00 A4 3F 80 09 00 00 00 00 00 00 55 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 A4 3F 00 90 00 57 [12:52:57]RAPDU: 90 00 [12:52:57]wFMCommunicate OK [12:52:57]SAM_PROTO_ClearQueue done [12:52:57]KKMCreateOFDPacket [12:52:57]OFDProtocolAddRootSTLVToBuf [12:52:57]FM_MakeSignedData [12:52:57]FM_MakeSignedData [12:52:57]SAM_PROTO_SignData [12:52:57]wFMCommunicate request_size=4 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 0D 01 02 [12:52:57]Write to MH i2c: E2 08 00 A5 3F 80 0D 01 02 00 00 00 00 5D [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [12:52:57]RAPDU: 90 00 [12:52:57]wFMCommunicate OK [12:52:57]wFMCommunicate request_size=255 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 10 01 00 35 04 06 00 7D [12:52:57]Write to MH i2c: E2 02 01 A6 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 10 01 00 35 04 06 00 7D 00 00 3B [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [12:52:57]RAPDU: 90 00 [12:52:57]wFMCommunicate OK [12:52:57]wFMCommunicate request_size=10 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 0D 02 02 05 BB 84 5B 22 C4 [12:52:57]Write to MH i2c: E2 0D 00 A7 3F 80 0D 02 02 05 00 BB 84 5B 22 C4 00 00 EA [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [12:52:57]RAPDU: 90 00 [12:52:57]wFMCommunicate OK [12:52:57]wFMCommunicate request_size=4 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 0D 03 02 [12:52:57]Write to MH i2c: E2 08 00 A8 3F 80 0D 03 02 00 00 00 00 62 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 0B 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 0B 00 A8 3F 00 A6 F8 E8 6E 7A 9D DA 5E 90 00 A6 [12:52:57]RAPDU: A6 F8 E8 6E 7A 9D DA 5E 90 00 [12:52:57]wFMCommunicate OK [12:52:57]SAM_PROTO_SignData done [12:52:57]FM_MakeSignedData done [12:52:57]CreateOFDProtocolMessage [12:52:57]wFMCommunicate request_size=4 [12:52:57]MH_SAM_APDU [12:52:57]CAPDU: 80 11 00 00 [12:52:57]Write to MH i2c: E2 08 00 A9 3F 80 11 00 00 00 00 00 00 62 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:57]Read from MH i2c: E2 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 17 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: E2 17 00 A9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [12:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:52:57]wFMCommunicate OK [12:52:57]CreateOFDProtocolMessage done [12:52:57]OFDSenderStorePacket 69820 [12:52:57]StoreOFDPacket docnum=69820 [12:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 83 12 07 01 F8 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 10 01 00 35 04 06 00 7D BB 84 5B 22 C4 A6 F8 E8 6E 7A 9D DA 5E [12:52:57]CheckFolder [12:52:57]dirname=/storage/ofd_packets [12:52:57]CheckFolder done [12:52:57]ProducePacketName [12:52:57]name=ofd_packets/00069820 [12:52:57]NVStorageSaveData ofd_packets/00069820 [12:52:57]File name is /storage/ofd_packets/00069820 [12:52:57]Write 301 bytes [12:52:57]NVStorageSaveData done [12:52:57]OFDSenderStorePacket done [12:52:57]KKMCreateOFDPacket done [12:52:57]NVStorageSaveData kkm_last_timestamp [12:52:57]File name is /storage/kkm_last_timestamp [12:52:57]Write 4 bytes [12:52:57]NVStorageSaveData done [12:52:57]ExternCall_PrintAddStr [12:52:57]wPrintStart [12:52:57]Write to MH i2c: 01 00 00 AA 3F E9 [12:52:57]Write i2c OK [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 07 00 [12:52:57]MH_I2C_Read... [12:52:57]Read from MH i2c: 01 07 00 AA 3F 00 00 00 00 00 FF 0F FE [12:52:57]RasterBufferAndPrint [12:52:57]line Счет N : (1)2885569 [12:52:57]line ИНН: 02508201610067 [12:52:57]line Контрольно-Кассовый Чек [12:52:57]line ПРОДАЖА [12:52:57]line ТРК (МРК, ГНК) : 32 [12:52:57]line Товар: 2710124130 [12:52:57]line Аи-92-К-5 [12:52:57]line 7.480 * 66.90 [12:52:57]line = 500.41 [12:52:57]line НДС 12% НСП 1% [12:52:57]line > о реализуемом товаре [12:52:57]line ОКРУГЛЕНИЕ: -0.41 [12:52:57]line ИТОГО: 500.00 [12:52:57]line Внесено: 500.00 [12:52:57]line СДАЧА: 0.00 [12:52:57]line НСП 1% : 4.43 [12:52:57]line НДС 12% : 53.14 [12:52:57]line Наличными: 500.00 [12:52:57]line Безнал.: 0.00 [12:52:57]line Место: АЗС № 85 "Партнер Нефть" [12:52:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:52:57]line СНО: Общий режим [12:52:57]line Чек 210 21.10.2024 12:53 [12:52:57]line Смена: 194 ФФД: 1.0 [12:52:57]line ЗНМ: 0300000167 [12:52:57]line РНМ: 0000000000156251 [12:52:57]line Версия ККМ: v1.0 [12:52:57]line ФМ: 0000000000963346 [12:52:57]line ФД: 69820 [12:52:57]line ФПД: 138244332921540 [12:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69820&fm=138244332921540&tin=02508201610067®Number=0000000000156251&sum=50000 [12:52:58]OFD Sender: Processing packet 69820 [packets to send 18, broken 17] [12:52:58]ProducePacketName [12:52:58]name=ofd_packets/00069820 [12:52:58]OFD Sender: To server: pG, [12:52:58]CommunicateWithHost lk.salyk.kg:30040 [12:52:58]ConnectInit lk.salyk.kg [12:52:58]written 0, free lines is 4095 [12:52:58]Connected sock=11 [12:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 83 12 07 01 F8 8B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 10 01 00 35 04 06 00 7D BB 84 5B 22 C4 A6 F8 E8 6E 7A 9D DA 5E [12:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 18 47 00 D5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 10 01 00 F4 03 04 00 4F F8 15 67 B6 04 01 00 00 C9 E0 07 F6 EE C7 93 8C [12:52:58]CommunicateWithHost err = 0 [12:52:58]CheckOFDResponse [12:52:58]1017 (14) - 77093643461234 [12:52:58]1041 (16) - 0000000000963346 [12:52:58]1040 (4) - 69820 [12:52:58]1012 (4) - 21.10.2024 06:44 [12:52:58]1206 (1) - 0 [12:52:58]OFD Sender: Remove packet 69820 [12:52:58]ProducePacketName [12:52:58]name=ofd_packets/00069820 [12:52:58]NVStorageDeleteData [12:52:58]Write to MH i2c: 01 00 00 D5 3F 14 [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: 01 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: 01 07 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: 01 07 00 D5 3F 00 00 00 00 00 E6 0C 0D [12:52:58]RasterBufferAndPrint [12:52:58]line [12:52:58]line [12:52:58]line [12:52:58]line [12:52:58]line [12:52:58]written 0, free lines is 3308 [12:52:58]MH_Cut [12:52:58]Write to MH i2c: D1 01 00 DC 3F 01 ED [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: D1 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: D1 01 00 [12:52:58]MH_I2C_Read... [12:52:58]Read from MH i2c: D1 01 00 DC 3F 00 EC [12:52:58]Write to MH i2c: 01 00 00 DD 3F 1C [12:52:58]Write i2c OK [12:52:58]MH_I2C_Read... [12:52:59]OFD Sender: No OFD packet to send [12:52:59]*** Cut start [12:52:59]*** Partial cut [12:52:59]*** CUTSNS_PIN = 1 [12:52:59]*** CUTSNS_PIN = 0 [12:52:59]*** Brake cut motor [12:53:00]Read from MH i2c: 01 [12:53:00]MH_I2C_Read... [12:53:00]*** Stop cut motor [12:53:00]*** Cut end [12:53:00]Read from MH i2c: 01 07 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: 01 07 00 DD 3F 00 00 00 00 00 FF 0F 31 [12:53:00]process_action close_receipt done [12:53:00]requested_data is exist [12:53:00]produce_requested_data [12:53:00]requested_item fm.sn is exist - process it [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 11 00 00 [12:53:00]Write to MH i2c: E2 08 00 DE 3F 80 11 00 00 00 00 00 00 97 [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 17 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 17 00 DE 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [12:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:53:00]wFMCommunicate OK [12:53:00]requested_item fd.num is exist - process it [12:53:00]SAM_PROTO_GetFieldsCounters [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 13 00 00 [12:53:00]Write to MH i2c: E2 08 00 DF 3F 80 13 00 00 00 00 00 00 9A [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 62 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 62 00 DF 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [12:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:00]wFMCommunicate OK [12:53:00]SAM_PROTO_GetFieldsCounters done [12:53:00]requested_item shift.num is exist - process it [12:53:00]requested_item shift.opened is exist - process it [12:53:00]req_shift_opened [12:53:00]FM_GetShiftState [12:53:00]SAM_PROTO_GetShiftState [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 13 01 00 [12:53:00]Write to MH i2c: E2 08 00 E0 3F 80 13 01 00 00 00 00 00 9C [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 0E 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 0E 00 E0 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C8 [12:53:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:53:00]wFMCommunicate OK [12:53:00]SAM_PROTO_GetShiftState done [12:53:00]FM_GetShiftState done [12:53:00]req_shift_opened done [12:53:00]requested_item shift.open_date is exist - process it [12:53:00]req_shift_open_date [12:53:00]req_shift_open_date done [12:53:00]produce_requested_data done [12:53:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69820,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:53:00]process_action_free close_receipt [12:53:00]json_value_free [12:53:00]json_value_free done [12:53:00]process_json_proto returns [12:53:00]Send response to host [12:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69820,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:53:00]free response buf [12:53:00]execute_script done [12:53:00]execute_script returns [12:53:00]free content buf [12:53:00]Sock 9.Close socket [12:53:00]Sock 9.Thread stoped [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:34]accept exits with 8 [12:53:34]New connection [12:53:34]New thread 3067313508 created [12:53:34]Thread 3067456868 joined [12:53:34]Waiting for new connection... [12:53:34] Sock 8.Parse request [12:53:34]Sock 8.Check first char [12:53:34]Sock 8.First char is OK [12:53:34]request: POST /json_proto HTTP/1.0 [12:53:34]Method: POST [12:53:34]URL: /json_proto [12:53:34]Method is POST - this is cgi request [12:53:34]url: /json_proto [12:53:34]query_string will be loaded in cgi processing [12:53:34]execute_cgi json_proto POST (null) [12:53:34]execute_cgi path=json_proto method=POST [12:53:34]POST find Content-Length [12:53:34]Host: 172.17.50.3:8080 [12:53:34]Content-Length: 755 [12:53:34]Content-Type: application/json [12:53:34] [12:53:34]POST finish read [12:53:34]Found Content-Length = 755 [12:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085049", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:34]execute_script... [12:53: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)2885568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085049", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:34]POST & json_proto [12:53:34]process_json_proto [12:53:34]json parsed OK: [12:53:34]protocol is kg_v1.0 [12:53:34]action value=close_receipt [12:53:34]process_action close_receipt [12:53:34]cmd_close_receipt [12:53:34]MH_GetDate [12:53:34]Write to MH i2c: F0 00 00 E1 3F 0F [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: F0 09 00 E1 3F 00 D1 4E 16 67 6B 98 1E 66 3B [12:53:34]GetLastDocTimeStamp 1729515180 [12:53:34]current date 1729515217 [12:53:34]FM_GetShiftState [12:53:34]SAM_PROTO_GetShiftState [12:53:34]wFMCommunicate request_size=4 [12:53:34]MH_SAM_APDU [12:53:34]CAPDU: 80 13 01 00 [12:53:34]Write to MH i2c: E2 08 00 E2 3F 80 13 01 00 00 00 00 00 9E [12:53:34]Write i2c OK [12:53:34]MH_I2C_Read... [12:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:34]Read from MH i2c: E2 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 [12:53:34]MH_I2C_Read... [12:53:34]Read from MH i2c: E2 0E 00 E2 3F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [12:53:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:53:34]wFMCommunicate OK [12:53:34]SAM_PROTO_GetShiftState done [12:53:34]FM_GetShiftState done [12:53:34]opened in 1729469703 [12:53:34]opened+sec_in_day 1729556103 [12:53:34]quantity*price = 0 [12:53:34]sum+1 = 1 [12:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 211 21.10.2024 12:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30085049 ФМ: 0000000000963346 ФД: 69821 ФПД: 137091449079886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125338&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69821&fm=137091449079886&tin=02508201610067®Number=0000000000156251&sum=0 [12:53:35]StoreToDocumentArchive [12:53:35]shift 194 fd 69821 [12:53:35]save to /storage/0194/doc_00069821 [12:53:35]save last doc name /storage/0194/doc_00069821 to /storage/kkm_last_doc_name [12:53:35]save OK [12:53:35]Clear old archive folders... [12:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:35]tlvbuf is 00C634F0 [12:53:35]SAM_PROTO_ClearQueue [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 09 00 00 [12:53:35]Write to MH i2c: E2 08 00 EF 3F 80 09 00 00 00 00 00 00 A0 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 EF 3F 00 90 00 A2 [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]SAM_PROTO_ClearQueue done [12:53:35]KKMCreateOFDPacket [12:53:35]OFDProtocolAddRootSTLVToBuf [12:53:35]FM_MakeSignedData [12:53:35]FM_MakeSignedData [12:53:35]SAM_PROTO_SignData [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 01 02 [12:53:35]Write to MH i2c: E2 08 00 F0 3F 80 0D 01 02 00 00 00 00 A8 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 F0 3F 00 90 00 A3 [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=255 [12:53:35]MH_SAM_APDU [12:53:35]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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D2 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 10 01 00 35 04 06 00 7C [12:53:35]Write to MH i2c: E2 02 01 F1 3F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D2 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 10 01 00 35 04 06 00 7C 00 00 04 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=10 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 02 02 05 AF 17 1F C8 4E [12:53:35]Write to MH i2c: E2 0D 00 F2 3F 80 0D 02 02 05 00 AF 17 1F C8 4E 00 00 B0 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 03 00 F2 3F 00 90 00 A5 [12:53:35]RAPDU: 90 00 [12:53:35]wFMCommunicate OK [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 0D 03 02 [12:53:35]Write to MH i2c: E2 08 00 F3 3F 80 0D 03 02 00 00 00 00 AD [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 0B 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 0B 00 F3 3F 00 D0 12 C6 BC D8 3A 78 2C 90 00 C8 [12:53:35]RAPDU: D0 12 C6 BC D8 3A 78 2C 90 00 [12:53:35]wFMCommunicate OK [12:53:35]SAM_PROTO_SignData done [12:53:35]FM_MakeSignedData done [12:53:35]CreateOFDProtocolMessage [12:53:35]wFMCommunicate request_size=4 [12:53:35]MH_SAM_APDU [12:53:35]CAPDU: 80 11 00 00 [12:53:35]Write to MH i2c: E2 08 00 F4 3F 80 11 00 00 00 00 00 00 AD [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:35]Read from MH i2c: E2 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 17 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: E2 17 00 F4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [12:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:53:35]wFMCommunicate OK [12:53:35]CreateOFDProtocolMessage done [12:53:35]OFDSenderStorePacket 69821 [12:53:35]StoreOFDPacket docnum=69821 [12:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F4 17 07 01 83 B7 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D2 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 10 01 00 35 04 06 00 7C AF 17 1F C8 4E D0 12 C6 BC D8 3A 78 2C [12:53:35]CheckFolder [12:53:35]dirname=/storage/ofd_packets [12:53:35]CheckFolder done [12:53:35]ProducePacketName [12:53:35]name=ofd_packets/00069821 [12:53:35]NVStorageSaveData ofd_packets/00069821 [12:53:35]File name is /storage/ofd_packets/00069821 [12:53:35]Write 301 bytes [12:53:35]NVStorageSaveData done [12:53:35]OFDSenderStorePacket done [12:53:35]KKMCreateOFDPacket done [12:53:35]NVStorageSaveData kkm_last_timestamp [12:53:35]File name is /storage/kkm_last_timestamp [12:53:35]Write 4 bytes [12:53:35]NVStorageSaveData done [12:53:35]ExternCall_PrintAddStr [12:53:35]wPrintStart [12:53:35]Write to MH i2c: 01 00 00 F5 3F 34 [12:53:35]Write i2c OK [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: 01 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: 01 07 00 [12:53:35]MH_I2C_Read... [12:53:35]Read from MH i2c: 01 07 00 F5 3F 00 00 00 00 00 FF 0F 49 [12:53:35]RasterBufferAndPrint [12:53:35]line Счет N : (1)2885568 [12:53:35]line ИНН: 02508201610067 [12:53:35]line Контрольно-Кассовый Чек [12:53:35]line ПРОДАЖА [12:53:35]line ТРК (МРК, ГНК) : 12 [12:53:35]line Товар: 2710124130 [12:53:35]line Аи-92-К-5 [12:53:35]line 40.000 * 0.00 [12:53:35]line = 0.00 [12:53:35]line НДС 12% НСП 1% [12:53:35]line > о реализуемом товаре [12:53:35]line ИТОГО: 0.00 [12:53:35]line НСП 1% : 0.00 [12:53:35]line НДС 12% : 0.00 [12:53:35]line Наличными: 0.00 [12:53:35]line Безнал.: 0.00 [12:53:35]line Место: АЗС № 85 "Партнер Нефть" [12:53:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:53:35]line СНО: Общий режим [12:53:35]line Чек 211 21.10.2024 12:53 [12:53:35]line Смена: 194 ФФД: 1.0 [12:53:35]line ЗНМ: 0300000167 [12:53:35]line РНМ: 0000000000156251 [12:53:35]line Версия ККМ: v1.0 [12:53:36]line Талоны: ТК ГПНА Online [12:53:36]line 30085049 [12:53:36]line ФМ: 0000000000963346 [12:53:36]line ФД: 69821 [12:53:36]line ФПД: 137091449079886 [12:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125338&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69821&fm=137091449079886&tin=02508201610067®Number=0000000000156251&sum=0 [12:53:36]OFD Sender: Processing packet 69821 [packets to send 18, broken 17] [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00069821 [12:53:36]OFD Sender: To server: pG, [12:53:36]CommunicateWithHost lk.salyk.kg:30040 [12:53:36]ConnectInit lk.salyk.kg [12:53:36]written 0, free lines is 4095 [12:53:36]Connected sock=10 [12:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F4 17 07 01 83 B7 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 D2 4E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 10 01 00 35 04 06 00 7C AF 17 1F C8 4E D0 12 C6 BC D8 3A 78 2C [12:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 22 47 00 36 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 10 01 00 F4 03 04 00 75 F8 15 67 B6 04 01 00 00 F2 D5 E0 E8 17 EF E9 B2 [12:53:36]CommunicateWithHost err = 0 [12:53:36]CheckOFDResponse [12:53:36]1017 (14) - 77093643461234 [12:53:36]1041 (16) - 0000000000963346 [12:53:36]1040 (4) - 69821 [12:53:36]1012 (4) - 21.10.2024 06:45 [12:53:36]1206 (1) - 0 [12:53:36]OFD Sender: Remove packet 69821 [12:53:36]ProducePacketName [12:53:36]name=ofd_packets/00069821 [12:53:36]NVStorageDeleteData [12:53:36]Write to MH i2c: 01 00 00 1F 40 5F [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: 01 07 00 1F 40 00 00 00 00 00 F1 0C 63 [12:53:36]RasterBufferAndPrint [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]line [12:53:36]written 0, free lines is 3319 [12:53:36]MH_Cut [12:53:36]Write to MH i2c: D1 01 00 26 40 01 38 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 01 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: D1 01 00 26 40 00 37 [12:53:36]Write to MH i2c: 01 00 00 27 40 67 [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:37]OFD Sender: No OFD packet to send [12:53:37]*** Cut start [12:53:37]*** Partial cut [12:53:37]*** CUTSNS_PIN = 1 [12:53:37]*** CUTSNS_PIN = 0 [12:53:37]*** Brake cut motor [12:53:37]Read from MH i2c: 01 [12:53:37]MH_I2C_Read... [12:53:37]*** Stop cut motor [12:53:37]*** Cut end [12:53:37]Read from MH i2c: 01 07 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 07 00 27 40 00 00 00 00 00 FF 0F 7C [12:53:37]process_action close_receipt done [12:53:37]requested_data is exist [12:53:37]produce_requested_data [12:53:37]requested_item fm.sn is exist - process it [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 11 00 00 [12:53:37]Write to MH i2c: E2 08 00 28 40 80 11 00 00 00 00 00 00 E2 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 28 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [12:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:53:37]wFMCommunicate OK [12:53:37]requested_item fd.num is exist - process it [12:53:37]SAM_PROTO_GetFieldsCounters [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 13 00 00 [12:53:37]Write to MH i2c: E2 08 00 29 40 80 13 00 00 00 00 00 00 E5 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:38]Read from MH i2c: E2 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 62 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 62 00 29 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:38]wFMCommunicate OK [12:53:38]SAM_PROTO_GetFieldsCounters done [12:53:38]requested_item shift.num is exist - process it [12:53:38]requested_item shift.opened is exist - process it [12:53:38]req_shift_opened [12:53:38]FM_GetShiftState [12:53:38]SAM_PROTO_GetShiftState [12:53:38]wFMCommunicate request_size=4 [12:53:38]MH_SAM_APDU [12:53:38]CAPDU: 80 13 01 00 [12:53:38]Write to MH i2c: E2 08 00 2A 40 80 13 01 00 00 00 00 00 E7 [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:38]Read from MH i2c: E2 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 0E 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 0E 00 2A 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [12:53:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:53:38]wFMCommunicate OK [12:53:38]SAM_PROTO_GetShiftState done [12:53:38]FM_GetShiftState done [12:53:38]req_shift_opened done [12:53:38]requested_item shift.open_date is exist - process it [12:53:38]req_shift_open_date [12:53:38]req_shift_open_date done [12:53:38]produce_requested_data done [12:53:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69821,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:53:38]process_action_free close_receipt [12:53:38]json_value_free [12:53:38]json_value_free done [12:53:38]process_json_proto returns [12:53:38]Send response to host [12:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69821,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:53:38]free response buf [12:53:38]execute_script done [12:53:38]execute_script returns [12:53:38]free content buf [12:53:38]Sock 8.Close socket [12:53:38]Sock 8.Thread stoped [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]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:17]accept exits with 9 [12:55:17]New connection [12:55:17]New thread 3067456868 created [12:55:17]Thread 3067313508 joined [12:55:17]Waiting for new connection... [12:55:17] Sock 9.Parse request [12:55:17]Sock 9.Check first char [12:55:17]Sock 9.First char is OK [12:55:17]request: POST /json_proto HTTP/1.0 [12:55:17]Method: POST [12:55:17]URL: /json_proto [12:55:17]Method is POST - this is cgi request [12:55:17]url: /json_proto [12:55:17]query_string will be loaded in cgi processing [12:55:17]execute_cgi json_proto POST (null) [12:55:17]execute_cgi path=json_proto method=POST [12:55:17]POST find Content-Length [12:55:17]Host: 172.17.50.3:8080 [12:55:17]Content-Length: 678 [12:55:17]Content-Type: application/json [12:55:17] [12:55:17]POST finish read [12:55:17]Found Content-Length = 678 [12:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885570", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:17]execute_script... [12:55:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885570", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:17]POST & json_proto [12:55:17]process_json_proto [12:55:17]json parsed OK: [12:55:17]protocol is kg_v1.0 [12:55:17]action value=close_receipt [12:55:17]process_action close_receipt [12:55:17]cmd_close_receipt [12:55:17]MH_GetDate [12:55:17]Write to MH i2c: F0 00 00 2B 40 5A [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: F0 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: F0 09 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: F0 09 00 2B 40 00 39 4F 16 67 6B 98 1E 66 EF [12:55:17]GetLastDocTimeStamp 1729515218 [12:55:17]current date 1729515321 [12:55:17]FM_GetShiftState [12:55:17]SAM_PROTO_GetShiftState [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 13 01 00 [12:55:17]Write to MH i2c: E2 08 00 2C 40 80 13 01 00 00 00 00 00 E9 [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 0E 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 0E 00 2C 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [12:55:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:55:17]wFMCommunicate OK [12:55:17]SAM_PROTO_GetShiftState done [12:55:17]FM_GetShiftState done [12:55:17]opened in 1729469703 [12:55:17]opened+sec_in_day 1729556103 [12:55:17]quantity*price = 40006 [12:55:17]sum+1 = 40007 [12:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 212 21.10.2024 12:55 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69822 ФПД: 173380248582301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69822&fm=173380248582301&tin=02508201610067®Number=0000000000156251&sum=40000 [12:55:18]StoreToDocumentArchive [12:55:18]shift 194 fd 69822 [12:55:18]save to /storage/0194/doc_00069822 [12:55:18]save last doc name /storage/0194/doc_00069822 to /storage/kkm_last_doc_name [12:55:18]save OK [12:55:18]Clear old archive folders... [12:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:18]tlvbuf is 00C74690 [12:55:18]SAM_PROTO_ClearQueue [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 09 00 00 [12:55:18]Write to MH i2c: E2 08 00 39 40 80 09 00 00 00 00 00 00 EB [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 39 40 00 90 00 ED [12:55:18]RAPDU: 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_ClearQueue done [12:55:18]KKMCreateOFDPacket [12:55:18]OFDProtocolAddRootSTLVToBuf [12:55:18]FM_MakeSignedData [12:55:18]FM_MakeSignedData [12:55:18]SAM_PROTO_SignData [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 0D 01 02 [12:55:18]Write to MH i2c: E2 08 00 3A 40 80 0D 01 02 00 00 00 00 F3 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 3A 40 00 90 00 EE [12:55:18]RAPDU: 90 00 [12:55:18]wFMCommunicate OK [12:55:18]wFMCommunicate request_size=255 [12:55:18]MH_SAM_APDU [12:55: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 39 4F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 10 01 00 35 04 06 00 9D [12:55:18]Write to MH i2c: E2 02 01 3B 40 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 39 4F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 10 01 00 35 04 06 00 9D 00 00 52 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 3B 40 00 90 00 EF [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]wFMCommunicate request_size=10 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 02 02 05 B0 3C 20 B8 9D [12:55:19]Write to MH i2c: E2 0D 00 3C 40 80 0D 02 02 05 00 B0 3C 20 B8 9D 00 00 61 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 03 00 3C 40 00 90 00 F0 [12:55:19]RAPDU: 90 00 [12:55:19]wFMCommunicate OK [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 0D 03 02 [12:55:19]Write to MH i2c: E2 08 00 3D 40 80 0D 03 02 00 00 00 00 F8 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0B 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 0B 00 3D 40 00 E7 2C 7E 85 D7 2D 5F 21 90 00 93 [12:55:19]RAPDU: E7 2C 7E 85 D7 2D 5F 21 90 00 [12:55:19]wFMCommunicate OK [12:55:19]SAM_PROTO_SignData done [12:55:19]FM_MakeSignedData done [12:55:19]CreateOFDProtocolMessage [12:55:19]wFMCommunicate request_size=4 [12:55:19]MH_SAM_APDU [12:55:19]CAPDU: 80 11 00 00 [12:55:19]Write to MH i2c: E2 08 00 3E 40 80 11 00 00 00 00 00 00 F8 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:19]Read from MH i2c: E2 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 17 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: E2 17 00 3E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [12:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:55:19]wFMCommunicate OK [12:55:19]CreateOFDProtocolMessage done [12:55:19]OFDSenderStorePacket 69822 [12:55:19]StoreOFDPacket docnum=69822 [12:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 5D 07 01 EB F5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 39 4F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 10 01 00 35 04 06 00 9D B0 3C 20 B8 9D E7 2C 7E 85 D7 2D 5F 21 [12:55:19]CheckFolder [12:55:19]dirname=/storage/ofd_packets [12:55:19]CheckFolder done [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00069822 [12:55:19]NVStorageSaveData ofd_packets/00069822 [12:55:19]File name is /storage/ofd_packets/00069822 [12:55:19]Write 301 bytes [12:55:19]NVStorageSaveData done [12:55:19]OFDSenderStorePacket done [12:55:19]KKMCreateOFDPacket done [12:55:19]NVStorageSaveData kkm_last_timestamp [12:55:19]File name is /storage/kkm_last_timestamp [12:55:19]Write 4 bytes [12:55:19]NVStorageSaveData done [12:55:19]ExternCall_PrintAddStr [12:55:19]wPrintStart [12:55:19]Write to MH i2c: 01 00 00 3F 40 7F [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 3F 40 00 00 00 00 00 FF 0F 94 [12:55:19]RasterBufferAndPrint [12:55:19]line Счет N : (1)2885570 [12:55:19]line ИНН: 02508201610067 [12:55:19]line Контрольно-Кассовый Чек [12:55:19]line ПРОДАЖА [12:55:19]line ТРК (МРК, ГНК) : 42 [12:55:19]line Товар: 2710124130 [12:55:19]line Аи-92-К-5 [12:55:19]line 5.980 * 66.90 [12:55:19]line = 400.06 [12:55:19]line НДС 12% НСП 1% [12:55:19]line > о реализуемом товаре [12:55:19]line ОКРУГЛЕНИЕ: -0.06 [12:55:19]line ИТОГО: 400.00 [12:55:19]line Внесено: 400.00 [12:55:19]line СДАЧА: 0.00 [12:55:19]line НСП 1% : 3.54 [12:55:19]line НДС 12% : 42.48 [12:55:19]line Наличными: 400.00 [12:55:19]line Безнал.: 0.00 [12:55:19]line Место: АЗС № 85 "Партнер Нефть" [12:55:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:55:19]line СНО: Общий режим [12:55:19]line Чек 212 21.10.2024 12:55 [12:55:19]line Смена: 194 ФФД: 1.0 [12:55:19]line ЗНМ: 0300000167 [12:55:19]line РНМ: 0000000000156251 [12:55:19]line Версия ККМ: v1.0 [12:55:19]line ФМ: 0000000000963346 [12:55:19]line ФД: 69822 [12:55:19]line ФПД: 173380248582301 [12:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125521&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69822&fm=173380248582301&tin=02508201610067®Number=0000000000156251&sum=40000 [12:55:19]OFD Sender: Processing packet 69822 [packets to send 18, broken 17] [12:55:19]ProducePacketName [12:55:19]name=ofd_packets/00069822 [12:55:19]OFD Sender: To server: pG, [12:55:19]CommunicateWithHost lk.salyk.kg:30040 [12:55:19]ConnectInit lk.salyk.kg [12:55:19]written 0, free lines is 4095 [12:55:19]Connected sock=10 [12:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 5D 07 01 EB F5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 39 4F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 10 01 00 35 04 06 00 9D B0 3C 20 B8 9D E7 2C 7E 85 D7 2D 5F 21 [12:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 90 52 47 00 EB 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 39 36 33 33 34 36 10 04 04 00 BE 10 01 00 F4 03 04 00 DD F8 15 67 B6 04 01 00 00 32 A0 36 98 05 F8 38 6A [12:55:20]CommunicateWithHost err = 0 [12:55:20]CheckOFDResponse [12:55:20]1017 (14) - 77093643461234 [12:55:20]1041 (16) - 0000000000963346 [12:55:20]1040 (4) - 69822 [12:55:20]1012 (4) - 21.10.2024 06:46 [12:55:20]1206 (1) - 0 [12:55:20]OFD Sender: Remove packet 69822 [12:55:20]ProducePacketName [12:55:20]name=ofd_packets/00069822 [12:55:20]NVStorageDeleteData [12:55:20]Write to MH i2c: 01 00 00 6A 40 AA [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 07 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 07 00 6A 40 00 00 00 00 00 E6 0C A3 [12:55:20]RasterBufferAndPrint [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]line [12:55:20]written 0, free lines is 3312 [12:55:20]MH_Cut [12:55:20]Write to MH i2c: D1 01 00 71 40 01 83 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 01 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: D1 01 00 71 40 00 82 [12:55:20]Write to MH i2c: 01 00 00 72 40 B2 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]OFD Sender: No OFD packet to send [12:55:20]*** Cut start [12:55:20]*** Partial cut [12:55:20]*** CUTSNS_PIN = 1 [12:55:20]*** CUTSNS_PIN = 0 [12:55:21]*** Brake cut motor [12:55:21]Read from MH i2c: 01 [12:55:21]MH_I2C_Read... [12:55:21]*** Stop cut motor [12:55:21]*** Cut end [12:55:21]Read from MH i2c: 01 07 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: 01 07 00 72 40 00 00 00 00 00 FF 0F C7 [12:55:21]process_action close_receipt done [12:55:21]requested_data is exist [12:55:21]produce_requested_data [12:55:21]requested_item fm.sn is exist - process it [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 11 00 00 [12:55:21]Write to MH i2c: E2 08 00 73 40 80 11 00 00 00 00 00 00 2D [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 17 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 17 00 73 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [12:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:55:21]wFMCommunicate OK [12:55:21]requested_item fd.num is exist - process it [12:55:21]SAM_PROTO_GetFieldsCounters [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 13 00 00 [12:55:21]Write to MH i2c: E2 08 00 74 40 80 13 00 00 00 00 00 00 30 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 62 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 62 00 74 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [12:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:21]wFMCommunicate OK [12:55:21]SAM_PROTO_GetFieldsCounters done [12:55:21]requested_item shift.num is exist - process it [12:55:21]requested_item shift.opened is exist - process it [12:55:21]req_shift_opened [12:55:21]FM_GetShiftState [12:55:21]SAM_PROTO_GetShiftState [12:55:21]wFMCommunicate request_size=4 [12:55:21]MH_SAM_APDU [12:55:21]CAPDU: 80 13 01 00 [12:55:21]Write to MH i2c: E2 08 00 75 40 80 13 01 00 00 00 00 00 32 [12:55:21]Write i2c OK [12:55:21]MH_I2C_Read... [12:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:21]Read from MH i2c: E2 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 0E 00 [12:55:21]MH_I2C_Read... [12:55:21]Read from MH i2c: E2 0E 00 75 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [12:55:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:55:21]wFMCommunicate OK [12:55:21]SAM_PROTO_GetShiftState done [12:55:21]FM_GetShiftState done [12:55:21]req_shift_opened done [12:55:21]requested_item shift.open_date is exist - process it [12:55:21]req_shift_open_date [12:55:21]req_shift_open_date done [12:55:21]produce_requested_data done [12:55:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69822,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:55:21]process_action_free close_receipt [12:55:21]json_value_free [12:55:21]json_value_free done [12:55:21]process_json_proto returns [12:55:21]Send response to host [12:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69822,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:55:21]free response buf [12:55:21]execute_script done [12:55:21]execute_script returns [12:55:21]free content buf [12:55:21]Sock 9.Close socket [12:55:21]Sock 9.Thread stoped [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:54]accept exits with 8 [12:58:54]New connection [12:58:54]New thread 3067313508 created [12:58:54]Thread 3067456868 joined [12:58:54]Waiting for new connection... [12:58:54] Sock 8.Parse request [12:58:54]Sock 8.Check first char [12:58:54]Sock 8.First char is OK [12:58:54]request: POST /json_proto HTTP/1.0 [12:58:54]Method: POST [12:58:54]URL: /json_proto [12:58:54]Method is POST - this is cgi request [12:58:54]url: /json_proto [12:58:54]query_string will be loaded in cgi processing [12:58:54]execute_cgi json_proto POST (null) [12:58:54]execute_cgi path=json_proto method=POST [12:58:54]POST find Content-Length [12:58:54]Host: 172.17.50.3:8080 [12:58:54]Content-Length: 684 [12:58:54]Content-Type: application/json [12:58:54] [12:58:54]POST finish read [12:58:54]Found Content-Length = 684 [12:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:54]execute_script... [12:58: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)2885571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:54]POST & json_proto [12:58:54]process_json_proto [12:58:54]json parsed OK: [12:58:54]protocol is kg_v1.0 [12:58:54]action value=close_receipt [12:58:54]process_action close_receipt [12:58:54]cmd_close_receipt [12:58:54]MH_GetDate [12:58:54]Write to MH i2c: F0 00 00 76 40 A5 [12:58:54]Write i2c OK [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: F0 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: F0 09 00 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: F0 09 00 76 40 00 12 50 16 67 6B 98 1E 66 14 [12:58:54]GetLastDocTimeStamp 1729515321 [12:58:54]current date 1729515538 [12:58:54]FM_GetShiftState [12:58:54]SAM_PROTO_GetShiftState [12:58:54]wFMCommunicate request_size=4 [12:58:54]MH_SAM_APDU [12:58:54]CAPDU: 80 13 01 00 [12:58:54]Write to MH i2c: E2 08 00 77 40 80 13 01 00 00 00 00 00 34 [12:58:54]Write i2c OK [12:58:54]MH_I2C_Read... [12:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:54]Read from MH i2c: E2 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: E2 0E 00 [12:58:54]MH_I2C_Read... [12:58:54]Read from MH i2c: E2 0E 00 77 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [12:58:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:58:54]wFMCommunicate OK [12:58:54]SAM_PROTO_GetShiftState done [12:58:54]FM_GetShiftState done [12:58:54]opened in 1729469703 [12:58:54]opened+sec_in_day 1729556103 [12:58:54]quantity*price = 70020 [12:58:54]sum+1 = 70021 [12:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 213 21.10.2024 12:58 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69823 ФПД: 126121955834175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69823&fm=126121955834175&tin=02508201610067®Number=0000000000156251&sum=70000 [12:58:55]StoreToDocumentArchive [12:58:55]shift 194 fd 69823 [12:58:55]save to /storage/0194/doc_00069823 [12:58:55]save last doc name /storage/0194/doc_00069823 to /storage/kkm_last_doc_name [12:58:55]save OK [12:58:55]Clear old archive folders... [12:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:58:55]tlvbuf is 00CCDFA0 [12:58:55]SAM_PROTO_ClearQueue [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 09 00 00 [12:58:55]Write to MH i2c: E2 08 00 84 40 80 09 00 00 00 00 00 00 36 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 84 40 00 90 00 38 [12:58:55]RAPDU: 90 00 [12:58:55]wFMCommunicate OK [12:58:55]SAM_PROTO_ClearQueue done [12:58:55]KKMCreateOFDPacket [12:58:55]OFDProtocolAddRootSTLVToBuf [12:58:55]FM_MakeSignedData [12:58:55]FM_MakeSignedData [12:58:55]SAM_PROTO_SignData [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 0D 01 02 [12:58:55]Write to MH i2c: E2 08 00 85 40 80 0D 01 02 00 00 00 00 3E [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 85 40 00 90 00 39 [12:58:55]RAPDU: 90 00 [12:58:55]wFMCommunicate OK [12:58:55]wFMCommunicate request_size=255 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 D5 00 00 00 F4 03 04 00 12 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 10 01 [12:58:55]Write to MH i2c: E2 02 01 86 40 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 D5 00 00 00 F4 03 04 00 12 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 10 01 00 00 FC [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]OFD Sender: No OFD packet to send [12:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [12:58:55]RAPDU: 90 00 [12:58:55]wFMCommunicate OK [12:58:55]wFMCommunicate request_size=16 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 72 B5 0E 60 39 3F [12:58:55]Write to MH i2c: E2 13 00 87 40 80 0D 02 02 0B 00 00 35 04 06 00 72 B5 0E 60 39 3F 00 00 A3 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [12:58:55]RAPDU: 90 00 [12:58:55]wFMCommunicate OK [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 0D 03 02 [12:58:55]Write to MH i2c: E2 08 00 88 40 80 0D 03 02 00 00 00 00 43 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 0B 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 0B 00 88 40 00 AB 45 95 4F 3C 7A C4 3E 90 00 D0 [12:58:55]RAPDU: AB 45 95 4F 3C 7A C4 3E 90 00 [12:58:55]wFMCommunicate OK [12:58:55]SAM_PROTO_SignData done [12:58:55]FM_MakeSignedData done [12:58:55]CreateOFDProtocolMessage [12:58:55]wFMCommunicate request_size=4 [12:58:55]MH_SAM_APDU [12:58:55]CAPDU: 80 11 00 00 [12:58:55]Write to MH i2c: E2 08 00 89 40 80 11 00 00 00 00 00 00 43 [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:55]Read from MH i2c: E2 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 17 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: E2 17 00 89 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [12:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:58:55]wFMCommunicate OK [12:58:55]CreateOFDProtocolMessage done [12:58:55]OFDSenderStorePacket 69823 [12:58:55]StoreOFDPacket docnum=69823 [12:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A0 6F 0D 01 EF 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 D5 00 00 00 F4 03 04 00 12 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 10 01 00 35 04 06 00 72 B5 0E 60 39 3F AB 45 95 4F 3C 7A C4 3E [12:58:55]CheckFolder [12:58:55]dirname=/storage/ofd_packets [12:58:55]CheckFolder done [12:58:55]ProducePacketName [12:58:55]name=ofd_packets/00069823 [12:58:55]NVStorageSaveData ofd_packets/00069823 [12:58:55]File name is /storage/ofd_packets/00069823 [12:58:55]Write 307 bytes [12:58:55]NVStorageSaveData done [12:58:55]OFDSenderStorePacket done [12:58:55]KKMCreateOFDPacket done [12:58:55]NVStorageSaveData kkm_last_timestamp [12:58:55]File name is /storage/kkm_last_timestamp [12:58:55]Write 4 bytes [12:58:55]NVStorageSaveData done [12:58:55]ExternCall_PrintAddStr [12:58:55]wPrintStart [12:58:55]Write to MH i2c: 01 00 00 8A 40 CA [12:58:55]Write i2c OK [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: 01 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: 01 07 00 [12:58:55]MH_I2C_Read... [12:58:55]Read from MH i2c: 01 07 00 8A 40 00 00 00 00 00 FF 0F DF [12:58:55]RasterBufferAndPrint [12:58:55]line Счет N : (1)2885571 [12:58:55]line ИНН: 02508201610067 [12:58:55]line Контрольно-Кассовый Чек [12:58:55]line ПРОДАЖА [12:58:55]line ТРК (МРК, ГНК) : 21 [12:58:55]line Товар: 2710194240 [12:58:55]line D-ENERGY Дт-К-2 [12:58:55]line 9.070 * 77.20 [12:58:55]line = 700.20 [12:58:55]line НДС 12% НСП 1% [12:58:55]line > о реализуемом товаре [12:58:55]line ОКРУГЛЕНИЕ: -0.20 [12:58:55]line ИТОГО: 700.00 [12:58:55]line Внесено: 700.00 [12:58:55]line СДАЧА: 0.00 [12:58:55]line НСП 1% : 6.20 [12:58:55]line НДС 12% : 74.36 [12:58:55]line Наличными: 700.00 [12:58:55]line Безнал.: 0.00 [12:58:55]line Место: АЗС № 85 "Партнер Нефть" [12:58:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:58:55]line СНО: Общий режим [12:58:55]line Чек 213 21.10.2024 12:58 [12:58:55]line Смена: 194 ФФД: 1.0 [12:58:55]line ЗНМ: 0300000167 [12:58:55]line РНМ: 0000000000156251 [12:58:55]line Версия ККМ: v1.0 [12:58:55]line ФМ: 0000000000963346 [12:58:55]line ФД: 69823 [12:58:56]line ФПД: 126121955834175 [12:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69823&fm=126121955834175&tin=02508201610067®Number=0000000000156251&sum=70000 [12:58:56]OFD Sender: Processing packet 69823 [packets to send 18, broken 17] [12:58:56]ProducePacketName [12:58:56]name=ofd_packets/00069823 [12:58:56]OFD Sender: To server: pG, [12:58:56]CommunicateWithHost lk.salyk.kg:30040 [12:58:56]ConnectInit lk.salyk.kg [12:58:56]written 0, free lines is 4095 [12:58:56]Connected sock=10 [12:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A0 6F 0D 01 EF 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 D5 00 00 00 F4 03 04 00 12 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 10 01 00 35 04 06 00 72 B5 0E 60 39 3F AB 45 95 4F 3C 7A C4 3E [12:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 E4 47 00 B4 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 10 01 00 F4 03 04 00 B5 F9 15 67 B6 04 01 00 00 97 4E F9 A8 96 98 9E AE [12:58:56]CommunicateWithHost err = 0 [12:58:56]CheckOFDResponse [12:58:56]1017 (14) - 77093643461234 [12:58:56]1041 (16) - 0000000000963346 [12:58:56]1040 (4) - 69823 [12:58:56]1012 (4) - 21.10.2024 06:50 [12:58:56]1206 (1) - 0 [12:58:56]OFD Sender: Remove packet 69823 [12:58:56]ProducePacketName [12:58:56]name=ofd_packets/00069823 [12:58:56]NVStorageDeleteData [12:58:56]Write to MH i2c: 01 00 00 B5 40 F5 [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: 01 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: 01 07 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: 01 07 00 B5 40 00 00 00 00 00 E4 0C EC [12:58:56]RasterBufferAndPrint [12:58:56]line [12:58:56]line [12:58:56]line [12:58:56]line [12:58:56]line [12:58:56]written 0, free lines is 3309 [12:58:56]MH_Cut [12:58:56]Write to MH i2c: D1 01 00 BC 40 01 CE [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: D1 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: D1 01 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: D1 01 00 BC 40 00 CD [12:58:56]Write to MH i2c: 01 00 00 BD 40 FD [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:57]OFD Sender: No OFD packet to send [12:58:57]*** Cut start [12:58:57]*** Partial cut [12:58:57]*** CUTSNS_PIN = 1 [12:58:57]*** CUTSNS_PIN = 0 [12:58:57]*** Brake cut motor [12:58:58]Read from MH i2c: 01 [12:58:58]MH_I2C_Read... [12:58:58]*** Stop cut motor [12:58:58]*** Cut end [12:58:58]Read from MH i2c: 01 07 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 BD 40 00 00 00 00 00 FF 0F 12 [12:58:58]process_action close_receipt done [12:58:58]requested_data is exist [12:58:58]produce_requested_data [12:58:58]requested_item fm.sn is exist - process it [12:58:58]wFMCommunicate request_size=4 [12:58:58]MH_SAM_APDU [12:58:58]CAPDU: 80 11 00 00 [12:58:58]Write to MH i2c: E2 08 00 BE 40 80 11 00 00 00 00 00 00 78 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 17 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 17 00 BE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [12:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:58:58]wFMCommunicate OK [12:58:58]requested_item fd.num is exist - process it [12:58:58]SAM_PROTO_GetFieldsCounters [12:58:58]wFMCommunicate request_size=4 [12:58:58]MH_SAM_APDU [12:58:58]CAPDU: 80 13 00 00 [12:58:58]Write to MH i2c: E2 08 00 BF 40 80 13 00 00 00 00 00 00 7B [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 62 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 62 00 BF 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:58:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:58]wFMCommunicate OK [12:58:58]SAM_PROTO_GetFieldsCounters done [12:58:58]requested_item shift.num is exist - process it [12:58:58]requested_item shift.opened is exist - process it [12:58:58]req_shift_opened [12:58:58]FM_GetShiftState [12:58:58]SAM_PROTO_GetShiftState [12:58:58]wFMCommunicate request_size=4 [12:58:58]MH_SAM_APDU [12:58:58]CAPDU: 80 13 01 00 [12:58:58]Write to MH i2c: E2 08 00 C0 40 80 13 01 00 00 00 00 00 7D [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 0E 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 0E 00 C0 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [12:58:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [12:58:58]wFMCommunicate OK [12:58:58]SAM_PROTO_GetShiftState done [12:58:58]FM_GetShiftState done [12:58:58]req_shift_opened done [12:58:58]requested_item shift.open_date is exist - process it [12:58:58]req_shift_open_date [12:58:58]req_shift_open_date done [12:58:58]produce_requested_data done [12:58:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69823,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [12:58:58]process_action_free close_receipt [12:58:58]json_value_free [12:58:58]json_value_free done [12:58:58]process_json_proto returns [12:58:58]Send response to host [12:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69823,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [12:58:58]free response buf [12:58:58]execute_script done [12:58:58]execute_script returns [12:58:58]free content buf [12:58:58]Sock 8.Close socket [12:58:58]Sock 8.Thread stoped [12:59:02]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:39]accept exits with 9 [13:02:39]New connection [13:02:39]New thread 3067456868 created [13:02:39]Thread 3067313508 joined [13:02:39]Waiting for new connection... [13:02:39] Sock 9.Parse request [13:02:39]Sock 9.Check first char [13:02:39]Sock 9.First char is OK [13:02:39]request: POST /json_proto HTTP/1.0 [13:02:39]Method: POST [13:02:39]URL: /json_proto [13:02:39]Method is POST - this is cgi request [13:02:39]url: /json_proto [13:02:39]query_string will be loaded in cgi processing [13:02:39]execute_cgi json_proto POST (null) [13:02:39]execute_cgi path=json_proto method=POST [13:02:39]POST find Content-Length [13:02:39]Host: 172.17.50.3:8080 [13:02:39]Content-Length: 680 [13:02:39]Content-Type: application/json [13:02:39] [13:02:39]POST finish read [13:02:39]Found Content-Length = 680 [13:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:02:39]execute_script... [13:02: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)2885572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:02:39]POST & json_proto [13:02:39]process_json_proto [13:02:39]json parsed OK: [13:02:39]protocol is kg_v1.0 [13:02:39]action value=close_receipt [13:02:39]process_action close_receipt [13:02:39]cmd_close_receipt [13:02:39]MH_GetDate [13:02:39]Write to MH i2c: F0 00 00 C1 40 F0 [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: F0 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: F0 09 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: F0 09 00 C1 40 00 F3 50 16 67 6B 98 1E 66 40 [13:02:39]GetLastDocTimeStamp 1729515538 [13:02:39]current date 1729515763 [13:02:39]FM_GetShiftState [13:02:39]SAM_PROTO_GetShiftState [13:02:39]wFMCommunicate request_size=4 [13:02:39]MH_SAM_APDU [13:02:39]CAPDU: 80 13 01 00 [13:02:39]Write to MH i2c: E2 08 00 C2 40 80 13 01 00 00 00 00 00 7F [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:39]Read from MH i2c: E2 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 C2 40 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [13:02:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:02:39]wFMCommunicate OK [13:02:39]SAM_PROTO_GetShiftState done [13:02:39]FM_GetShiftState done [13:02:39]opened in 1729469703 [13:02:39]opened+sec_in_day 1729556103 [13:02:39]quantity*price = 100050 [13:02:39]sum+1 = 100052 [13:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 214 21.10.2024 13:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69824 ФПД: 20130950122250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130243&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69824&fm=20130950122250&tin=02508201610067®Number=0000000000156251&sum=100000 [13:02:40]StoreToDocumentArchive [13:02:40]shift 194 fd 69824 [13:02:40]save to /storage/0194/doc_00069824 [13:02:40]save last doc name /storage/0194/doc_00069824 to /storage/kkm_last_doc_name [13:02:40]save OK [13:02:40]Clear old archive folders... [13:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:40]tlvbuf is 00CFABF0 [13:02:40]SAM_PROTO_ClearQueue [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 09 00 00 [13:02:40]Write to MH i2c: E2 08 00 CF 40 80 09 00 00 00 00 00 00 81 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 03 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 03 00 CF 40 00 90 00 83 [13:02:40]RAPDU: 90 00 [13:02:40]wFMCommunicate OK [13:02:40]SAM_PROTO_ClearQueue done [13:02:40]KKMCreateOFDPacket [13:02:40]OFDProtocolAddRootSTLVToBuf [13:02:40]FM_MakeSignedData [13:02:40]FM_MakeSignedData [13:02:40]SAM_PROTO_SignData [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 0D 01 02 [13:02:40]Write to MH i2c: E2 08 00 D0 40 80 0D 01 02 00 00 00 00 89 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 03 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 03 00 D0 40 00 90 00 84 [13:02:40]RAPDU: 90 00 [13:02:40]wFMCommunicate OK [13:02:40]wFMCommunicate request_size=255 [13:02:40]MH_SAM_APDU [13:02:40]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 32 31 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 D6 00 00 00 F4 03 04 00 F3 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 10 01 00 35 04 06 00 12 4F 1A 21 [13:02:40]Write to MH i2c: E2 02 01 D1 40 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 32 31 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 D6 00 00 00 F4 03 04 00 F3 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 10 01 00 35 04 06 00 12 4F 1A 21 00 00 CD [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 D1 40 00 90 00 85 [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=7 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 02 02 02 8B 0A [13:02:41]Write to MH i2c: E2 0A 00 D2 40 80 0D 02 02 02 00 8B 0A 00 00 25 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 03 00 D2 40 00 90 00 86 [13:02:41]RAPDU: 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 0D 03 02 [13:02:41]Write to MH i2c: E2 08 00 D3 40 80 0D 03 02 00 00 00 00 8E [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0B 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0B 00 D3 40 00 8E 2C DD EB 7B CC 5F 6B 90 00 22 [13:02:41]RAPDU: 8E 2C DD EB 7B CC 5F 6B 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_SignData done [13:02:41]FM_MakeSignedData done [13:02:41]CreateOFDProtocolMessage [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 11 00 00 [13:02:41]Write to MH i2c: E2 08 00 D4 40 80 11 00 00 00 00 00 00 8E [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 D4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [13:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:02:41]wFMCommunicate OK [13:02:41]CreateOFDProtocolMessage done [13:02:41]OFDSenderStorePacket 69824 [13:02:41]StoreOFDPacket docnum=69824 [13:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8D 58 04 01 0B 5A 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 32 31 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 D6 00 00 00 F4 03 04 00 F3 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 10 01 00 35 04 06 00 12 4F 1A 21 8B 0A 8E 2C DD EB 7B CC 5F 6B [13:02:41]CheckFolder [13:02:41]dirname=/storage/ofd_packets [13:02:41]CheckFolder done [13:02:41]ProducePacketName [13:02:41]name=ofd_packets/00069824 [13:02:41]NVStorageSaveData ofd_packets/00069824 [13:02:41]File name is /storage/ofd_packets/00069824 [13:02:41]Write 298 bytes [13:02:41]NVStorageSaveData done [13:02:41]OFDSenderStorePacket done [13:02:41]KKMCreateOFDPacket done [13:02:41]NVStorageSaveData kkm_last_timestamp [13:02:41]File name is /storage/kkm_last_timestamp [13:02:41]Write 4 bytes [13:02:41]NVStorageSaveData done [13:02:41]ExternCall_PrintAddStr [13:02:41]wPrintStart [13:02:41]Write to MH i2c: 01 00 00 D5 40 15 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 07 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 07 00 D5 40 00 00 00 00 00 FF 0F 2A [13:02:41]RasterBufferAndPrint [13:02:41]line Счет N : (1)2885572 [13:02:41]line ИНН: 02508201610067 [13:02:41]line Контрольно-Кассовый Чек [13:02:41]line ПРОДАЖА [13:02:41]line ТРК (МРК, ГНК) : 51 [13:02:41]line Товар: 2710194210 [13:02:41]line ДТ-К-5 [13:02:41]line 13.130 * 76.20 [13:02:41]line = 1000.51 [13:02:41]line НДС 12% НСП 1% [13:02:41]line > о реализуемом товаре [13:02:41]line ОКРУГЛЕНИЕ: -0.51 [13:02:41]line ИТОГО: 1000.00 [13:02:41]line Внесено: 1000.00 [13:02:41]line СДАЧА: 0.00 [13:02:41]line НСП 1% : 8.85 [13:02:41]line НДС 12% : 106.25 [13:02:41]line Наличными: 1000.00 [13:02:41]line Безнал.: 0.00 [13:02:41]line Место: АЗС № 85 "Партнер Нефть" [13:02:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:02:41]line СНО: Общий режим [13:02:41]line Чек 214 21.10.2024 13:02 [13:02:41]line Смена: 194 ФФД: 1.0 [13:02:41]line ЗНМ: 0300000167 [13:02:41]line РНМ: 0000000000156251 [13:02:41]line Версия ККМ: v1.0 [13:02:41]line ФМ: 0000000000963346 [13:02:41]line ФД: 69824 [13:02:41]line ФПД: 20130950122250 [13:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130243&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69824&fm=20130950122250&tin=02508201610067®Number=0000000000156251&sum=100000 [13:02:41]OFD Sender: Processing packet 69824 [packets to send 18, broken 17] [13:02:41]ProducePacketName [13:02:41]name=ofd_packets/00069824 [13:02:41]OFD Sender: To server: pG, [13:02:41]CommunicateWithHost lk.salyk.kg:30040 [13:02:41]ConnectInit lk.salyk.kg [13:02:41]written 0, free lines is 4095 [13:02:41]Connected sock=10 [13:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8D 58 04 01 0B 5A 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 32 31 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 D6 00 00 00 F4 03 04 00 F3 50 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 10 01 00 35 04 06 00 12 4F 1A 21 8B 0A 8E 2C DD EB 7B CC 5F 6B [13:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3B 11 47 00 B5 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 10 01 00 F4 03 04 00 97 FA 15 67 B6 04 01 00 00 FF 0D 69 7E 68 14 3D 9A [13:02:41]CommunicateWithHost err = 0 [13:02:41]CheckOFDResponse [13:02:41]1017 (14) - 77093643461234 [13:02:41]1041 (16) - 0000000000963346 [13:02:41]1040 (4) - 69824 [13:02:41]1012 (4) - 21.10.2024 06:54 [13:02:41]1206 (1) - 0 [13:02:41]OFD Sender: Remove packet 69824 [13:02:41]ProducePacketName [13:02:41]name=ofd_packets/00069824 [13:02:41]NVStorageDeleteData [13:02:42]Write to MH i2c: 01 00 00 00 41 41 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 00 41 00 00 00 00 00 EC 0C 40 [13:02:42]RasterBufferAndPrint [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]line [13:02:42]written 0, free lines is 3314 [13:02:42]MH_Cut [13:02:42]Write to MH i2c: D1 01 00 07 41 01 1A [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 01 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: D1 01 00 07 41 00 19 [13:02:42]Write to MH i2c: 01 00 00 08 41 49 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]OFD Sender: No OFD packet to send [13:02:42]*** Cut start [13:02:42]*** Partial cut [13:02:42]*** CUTSNS_PIN = 1 [13:02:42]*** CUTSNS_PIN = 0 [13:02:43]*** Brake cut motor [13:02:43]Read from MH i2c: 01 [13:02:43]MH_I2C_Read... [13:02:43]*** Stop cut motor [13:02:43]*** Cut end [13:02:43]Read from MH i2c: 01 07 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 07 00 08 41 00 00 00 00 00 FF 0F 5E [13:02:43]process_action close_receipt done [13:02:43]requested_data is exist [13:02:43]produce_requested_data [13:02:43]requested_item fm.sn is exist - process it [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 11 00 00 [13:02:43]Write to MH i2c: E2 08 00 09 41 80 11 00 00 00 00 00 00 C4 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:43]Read from MH i2c: E2 17 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 17 00 09 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [13:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:02:43]wFMCommunicate OK [13:02:43]requested_item fd.num is exist - process it [13:02:43]SAM_PROTO_GetFieldsCounters [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 13 00 00 [13:02:43]Write to MH i2c: E2 08 00 0A 41 80 13 00 00 00 00 00 00 C7 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 62 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 62 00 0A 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_GetFieldsCounters done [13:02:43]requested_item shift.num is exist - process it [13:02:43]requested_item shift.opened is exist - process it [13:02:43]req_shift_opened [13:02:43]FM_GetShiftState [13:02:43]SAM_PROTO_GetShiftState [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 13 01 00 [13:02:43]Write to MH i2c: E2 08 00 0B 41 80 13 01 00 00 00 00 00 C9 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 0B 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [13:02:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_GetShiftState done [13:02:43]FM_GetShiftState done [13:02:43]req_shift_opened done [13:02:43]requested_item shift.open_date is exist - process it [13:02:43]req_shift_open_date [13:02:43]req_shift_open_date done [13:02:43]produce_requested_data done [13:02:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69824,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:02:43]process_action_free close_receipt [13:02:43]json_value_free [13:02:43]json_value_free done [13:02:43]process_json_proto returns [13:02:43]Send response to host [13:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69824,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:02:43]free response buf [13:02:43]execute_script done [13:02:43]execute_script returns [13:02:43]free content buf [13:02:43]Sock 9.Close socket [13:02:43]Sock 9.Thread stoped [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:49]accept exits with 8 [13:06:49]New connection [13:06:49]New thread 3067313508 created [13:06:49]Thread 3067456868 joined [13:06:49]Waiting for new connection... [13:06:49] Sock 8.Parse request [13:06:49]Sock 8.Check first char [13:06:49]Sock 8.First char is OK [13:06:49]request: POST /json_proto HTTP/1.0 [13:06:49]Method: POST [13:06:49]URL: /json_proto [13:06:49]Method is POST - this is cgi request [13:06:49]url: /json_proto [13:06:49]query_string will be loaded in cgi processing [13:06:49]execute_cgi json_proto POST (null) [13:06:49]execute_cgi path=json_proto method=POST [13:06:49]POST find Content-Length [13:06:49]Host: 172.17.50.3:8080 [13:06:49]Content-Length: 683 [13:06:49]Content-Type: application/json [13:06:49] [13:06:49]POST finish read [13:06:49]Found Content-Length = 683 [13:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885573", "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" ] } } [13:06:49]execute_script... [13:06: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)2885573", "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" ] } } [13:06:49]POST & json_proto [13:06:49]process_json_proto [13:06:49]json parsed OK: [13:06:49]protocol is kg_v1.0 [13:06:49]action value=close_receipt [13:06:49]process_action close_receipt [13:06:49]cmd_close_receipt [13:06:49]MH_GetDate [13:06:49]Write to MH i2c: F0 00 00 0C 41 3C [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: F0 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: F0 09 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: F0 09 00 0C 41 00 ED 51 16 67 6B 98 1E 66 87 [13:06:49]GetLastDocTimeStamp 1729515763 [13:06:49]current date 1729516013 [13:06:49]FM_GetShiftState [13:06:49]SAM_PROTO_GetShiftState [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 13 01 00 [13:06:49]Write to MH i2c: E2 08 00 0D 41 80 13 01 00 00 00 00 00 CB [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0E 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0E 00 0D 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [13:06:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:06:49]wFMCommunicate OK [13:06:49]SAM_PROTO_GetShiftState done [13:06:49]FM_GetShiftState done [13:06:49]opened in 1729469703 [13:06:49]opened+sec_in_day 1729556103 [13:06:49]quantity*price = 100021 [13:06:49]sum+1 = 100023 [13:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 215 21.10.2024 13:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69825 ФПД: 34695186625537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69825&fm=34695186625537&tin=02508201610067®Number=0000000000156251&sum=100000 [13:06:50]StoreToDocumentArchive [13:06:50]shift 194 fd 69825 [13:06:50]save to /storage/0194/doc_00069825 [13:06:50]save last doc name /storage/0194/doc_00069825 to /storage/kkm_last_doc_name [13:06:50]save OK [13:06:50]Clear old archive folders... [13:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:50]tlvbuf is 00C50270 [13:06:50]SAM_PROTO_ClearQueue [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 09 00 00 [13:06:50]Write to MH i2c: E2 08 00 1A 41 80 09 00 00 00 00 00 00 CD [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 1A 41 00 90 00 CF [13:06:50]RAPDU: 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_ClearQueue done [13:06:50]KKMCreateOFDPacket [13:06:50]OFDProtocolAddRootSTLVToBuf [13:06:50]FM_MakeSignedData [13:06:50]FM_MakeSignedData [13:06:50]SAM_PROTO_SignData [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 0D 01 02 [13:06:50]Write to MH i2c: E2 08 00 1B 41 80 0D 01 02 00 00 00 00 D5 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [13:06:50]RAPDU: 90 00 [13:06:50]wFMCommunicate OK [13:06:50]wFMCommunicate request_size=255 [13:06:50]MH_SAM_APDU [13:06: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 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 D7 00 00 00 F4 03 04 00 ED 51 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 10 01 00 35 04 06 00 1F [13:06:50]Write to MH i2c: E2 02 01 1C 41 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 D7 00 00 00 F4 03 04 00 ED 51 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 10 01 00 35 04 06 00 1F 00 00 C0 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 03 00 [13:06:50]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 1C 41 00 90 00 D1 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=10 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 02 02 05 8E 1A 46 34 01 [13:06:51]Write to MH i2c: E2 0D 00 1D 41 80 0D 02 02 05 00 8E 1A 46 34 01 00 00 05 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 1D 41 00 90 00 D2 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 03 02 [13:06:51]Write to MH i2c: E2 08 00 1E 41 80 0D 03 02 00 00 00 00 DA [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0B 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0B 00 1E 41 00 D5 23 63 D2 4A 4E B0 81 90 00 D1 [13:06:51]RAPDU: D5 23 63 D2 4A 4E B0 81 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_SignData done [13:06:51]FM_MakeSignedData done [13:06:51]CreateOFDProtocolMessage [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 11 00 00 [13:06:51]Write to MH i2c: E2 08 00 1F 41 80 11 00 00 00 00 00 00 DA [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 1F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [13:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:06:51]wFMCommunicate OK [13:06:51]CreateOFDProtocolMessage done [13:06:51]OFDSenderStorePacket 69825 [13:06:51]StoreOFDPacket docnum=69825 [13:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E5 0F 07 01 24 BE 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 D7 00 00 00 F4 03 04 00 ED 51 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 10 01 00 35 04 06 00 1F 8E 1A 46 34 01 D5 23 63 D2 4A 4E B0 81 [13:06:51]CheckFolder [13:06:51]dirname=/storage/ofd_packets [13:06:51]CheckFolder done [13:06:51]ProducePacketName [13:06:51]name=ofd_packets/00069825 [13:06:51]NVStorageSaveData ofd_packets/00069825 [13:06:51]File name is /storage/ofd_packets/00069825 [13:06:51]Write 301 bytes [13:06:51]NVStorageSaveData done [13:06:51]OFDSenderStorePacket done [13:06:51]KKMCreateOFDPacket done [13:06:51]NVStorageSaveData kkm_last_timestamp [13:06:51]File name is /storage/kkm_last_timestamp [13:06:51]Write 4 bytes [13:06:51]NVStorageSaveData done [13:06:51]ExternCall_PrintAddStr [13:06:51]wPrintStart [13:06:51]Write to MH i2c: 01 00 00 20 41 61 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 20 41 00 00 00 00 00 FF 0F 76 [13:06:51]RasterBufferAndPrint [13:06:51]line Счет N : (1)2885573 [13:06:51]line ИНН: 02508201610067 [13:06:51]line Контрольно-Кассовый Чек [13:06:51]line ПРОДАЖА [13:06:51]line ТРК (МРК, ГНК) : 43 [13:06:51]line Товар: 2710124500 [13:06:51]line Аи-95-К-5 [13:06:51]line 13.480 * 74.20 [13:06:51]line = 1000.22 [13:06:51]line НДС 12% НСП 1% [13:06:51]line > о реализуемом товаре [13:06:51]line ОКРУГЛЕНИЕ: -0.22 [13:06:51]line ИТОГО: 1000.00 [13:06:51]line Внесено: 1000.00 [13:06:51]line СДАЧА: 0.00 [13:06:51]line НСП 1% : 8.85 [13:06:51]line НДС 12% : 106.22 [13:06:51]line Наличными: 1000.00 [13:06:51]line Безнал.: 0.00 [13:06:51]line Место: АЗС № 85 "Партнер Нефть" [13:06:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:06:51]line СНО: Общий режим [13:06:51]line Чек 215 21.10.2024 13:06 [13:06:51]line Смена: 194 ФФД: 1.0 [13:06:51]line ЗНМ: 0300000167 [13:06:51]line РНМ: 0000000000156251 [13:06:51]line Версия ККМ: v1.0 [13:06:51]line ФМ: 0000000000963346 [13:06:51]line ФД: 69825 [13:06:51]line ФПД: 34695186625537 [13:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69825&fm=34695186625537&tin=02508201610067®Number=0000000000156251&sum=100000 [13:06:51]OFD Sender: Processing packet 69825 [packets to send 18, broken 17] [13:06:51]ProducePacketName [13:06:51]name=ofd_packets/00069825 [13:06:51]OFD Sender: To server: pG, [13:06:51]CommunicateWithHost lk.salyk.kg:30040 [13:06:51]ConnectInit lk.salyk.kg [13:06:51]written 0, free lines is 4095 [13:06:51]Connected sock=10 [13:06:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E5 0F 07 01 24 BE 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 D7 00 00 00 F4 03 04 00 ED 51 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 10 01 00 35 04 06 00 1F 8E 1A 46 34 01 D5 23 63 D2 4A 4E B0 81 [13:06:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B 9A 47 00 88 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 10 01 00 F4 03 04 00 91 FB 15 67 B6 04 01 00 00 F5 BC 53 5B BC FD 57 05 [13:06:51]CommunicateWithHost err = 0 [13:06:51]CheckOFDResponse [13:06:51]1017 (14) - 77093643461234 [13:06:51]1041 (16) - 0000000000963346 [13:06:51]1040 (4) - 69825 [13:06:51]1012 (4) - 21.10.2024 06:58 [13:06:51]1206 (1) - 0 [13:06:51]OFD Sender: Remove packet 69825 [13:06:51]ProducePacketName [13:06:51]name=ofd_packets/00069825 [13:06:51]NVStorageDeleteData [13:06:51]Write to MH i2c: 01 00 00 4B 41 8C [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 4B 41 00 00 00 00 00 EC 0C 8B [13:06:51]RasterBufferAndPrint [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]line [13:06:51]written 0, free lines is 3314 [13:06:51]MH_Cut [13:06:51]Write to MH i2c: D1 01 00 52 41 01 65 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 01 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: D1 01 00 52 41 00 64 [13:06:51]Write to MH i2c: 01 00 00 53 41 94 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:52]OFD Sender: No OFD packet to send [13:06:52]*** Cut start [13:06:52]*** Partial cut [13:06:52]*** CUTSNS_PIN = 1 [13:06:52]*** CUTSNS_PIN = 0 [13:06:52]*** Brake cut motor [13:06:53]Read from MH i2c: 01 [13:06:53]MH_I2C_Read... [13:06:53]*** Stop cut motor [13:06:53]*** Cut end [13:06:53]Read from MH i2c: 01 07 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: 01 07 00 53 41 00 00 00 00 00 FF 0F A9 [13:06:53]process_action close_receipt done [13:06:53]requested_data is exist [13:06:53]produce_requested_data [13:06:53]requested_item fm.sn is exist - process it [13:06:53]wFMCommunicate request_size=4 [13:06:53]MH_SAM_APDU [13:06:53]CAPDU: 80 11 00 00 [13:06:53]Write to MH i2c: E2 08 00 54 41 80 11 00 00 00 00 00 00 0F [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:53]Read from MH i2c: E2 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 17 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 17 00 54 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [13:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:06:53]wFMCommunicate OK [13:06:53]requested_item fd.num is exist - process it [13:06:53]SAM_PROTO_GetFieldsCounters [13:06:53]wFMCommunicate request_size=4 [13:06:53]MH_SAM_APDU [13:06:53]CAPDU: 80 13 00 00 [13:06:53]Write to MH i2c: E2 08 00 55 41 80 13 00 00 00 00 00 00 12 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:53]Read from MH i2c: E2 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 62 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 62 00 55 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [13:06:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:53]wFMCommunicate OK [13:06:53]SAM_PROTO_GetFieldsCounters done [13:06:53]requested_item shift.num is exist - process it [13:06:53]requested_item shift.opened is exist - process it [13:06:53]req_shift_opened [13:06:53]FM_GetShiftState [13:06:53]SAM_PROTO_GetShiftState [13:06:53]wFMCommunicate request_size=4 [13:06:53]MH_SAM_APDU [13:06:53]CAPDU: 80 13 01 00 [13:06:53]Write to MH i2c: E2 08 00 56 41 80 13 01 00 00 00 00 00 14 [13:06:53]Write i2c OK [13:06:53]MH_I2C_Read... [13:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:53]Read from MH i2c: E2 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 0E 00 [13:06:53]MH_I2C_Read... [13:06:53]Read from MH i2c: E2 0E 00 56 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [13:06:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:06:53]wFMCommunicate OK [13:06:53]SAM_PROTO_GetShiftState done [13:06:53]FM_GetShiftState done [13:06:53]req_shift_opened done [13:06:53]requested_item shift.open_date is exist - process it [13:06:53]req_shift_open_date [13:06:53]req_shift_open_date done [13:06:53]produce_requested_data done [13:06:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69825,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:06:53]process_action_free close_receipt [13:06:53]json_value_free [13:06:53]json_value_free done [13:06:53]process_json_proto returns [13:06:53]Send response to host [13:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69825,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:06:53]free response buf [13:06:53]execute_script done [13:06:53]execute_script returns [13:06:53]free content buf [13:06:53]Sock 8.Close socket [13:06:53]Sock 8.Thread stoped [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:38]accept exits with 9 [13:09:38]New connection [13:09:38]New thread 3067456868 created [13:09:38]Thread 3067313508 joined [13:09:38]Waiting for new connection... [13:09:38] Sock 9.Parse request [13:09:38]Sock 9.Check first char [13:09:38]Sock 9.First char is OK [13:09:38]request: POST /json_proto HTTP/1.0 [13:09:38]Method: POST [13:09:38]URL: /json_proto [13:09:38]Method is POST - this is cgi request [13:09:38]url: /json_proto [13:09:38]query_string will be loaded in cgi processing [13:09:38]execute_cgi json_proto POST (null) [13:09:38]execute_cgi path=json_proto method=POST [13:09:38]POST find Content-Length [13:09:38]Host: 172.17.50.3:8080 [13:09:38]Content-Length: 646 [13:09:38]Content-Type: application/json [13:09:38] [13:09:38]POST finish read [13:09:38]Found Content-Length = 646 [13:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 500.000, "sum" : 33450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 33450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]execute_script... [13:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 500.000, "sum" : 33450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 33450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]POST & json_proto [13:09:38]process_json_proto [13:09:38]json parsed OK: [13:09:38]protocol is kg_v1.0 [13:09:38]action value=close_receipt [13:09:38]process_action close_receipt [13:09:38]cmd_close_receipt [13:09:38]MH_GetDate [13:09:38]Write to MH i2c: F0 00 00 57 41 87 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 57 41 00 96 52 16 67 6B 98 1E 66 7C [13:09:38]GetLastDocTimeStamp 1729516013 [13:09:38]current date 1729516182 [13:09:38]FM_GetShiftState [13:09:38]SAM_PROTO_GetShiftState [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 01 00 [13:09:38]Write to MH i2c: E2 08 00 58 41 80 13 01 00 00 00 00 00 16 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 58 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [13:09:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetShiftState done [13:09:38]FM_GetShiftState done [13:09:38]opened in 1729469703 [13:09:38]opened+sec_in_day 1729556103 [13:09:38]quantity*price = 3345000 [13:09:38]sum+1 = 3345001 [13:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 33450.00 НСП 1% : 296.02 НДС 12% : 3552.21 Наличными: 33450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 216 21.10.2024 13:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69826 ФПД: 218764524392373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69826&fm=218764524392373&tin=02508201610067®Number=0000000000156251&sum=3345000 [13:09:39]StoreToDocumentArchive [13:09:39]shift 194 fd 69826 [13:09:39]save to /storage/0194/doc_00069826 [13:09:39]save last doc name /storage/0194/doc_00069826 to /storage/kkm_last_doc_name [13:09:39]save OK [13:09:39]Clear old archive folders... [13:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:39]tlvbuf is 00C92A00 [13:09:39]SAM_PROTO_ClearQueue [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 09 00 00 [13:09:39]Write to MH i2c: E2 08 00 65 41 80 09 00 00 00 00 00 00 18 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_ClearQueue done [13:09:39]KKMCreateOFDPacket [13:09:39]OFDProtocolAddRootSTLVToBuf [13:09:39]FM_MakeSignedData [13:09:39]FM_MakeSignedData [13:09:39]SAM_PROTO_SignData [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 01 02 [13:09:39]Write to MH i2c: E2 08 00 66 41 80 0D 01 02 00 00 00 00 20 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=255 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 96 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 10 01 00 35 04 06 00 C6 [13:09:39]Write to MH i2c: E2 02 01 67 41 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 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 96 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 10 01 00 35 04 06 00 C6 00 00 C9 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 67 41 00 90 00 1C [13:09:40]RAPDU: 90 00 [13:09:40]wFMCommunicate OK [13:09:40]wFMCommunicate request_size=10 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 0D 02 02 05 F7 15 C4 0F B5 [13:09:40]Write to MH i2c: E2 0D 00 68 41 80 0D 02 02 05 00 F7 15 C4 0F B5 00 00 C1 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 68 41 00 90 00 1D [13:09:40]RAPDU: 90 00 [13:09:40]wFMCommunicate OK [13:09:40]wFMCommunicate request_size=4 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 0D 03 02 [13:09:40]Write to MH i2c: E2 08 00 69 41 80 0D 03 02 00 00 00 00 25 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 0B 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 0B 00 69 41 00 07 58 2A 1E 9E DC FA 51 90 00 92 [13:09:40]RAPDU: 07 58 2A 1E 9E DC FA 51 90 00 [13:09:40]wFMCommunicate OK [13:09:40]SAM_PROTO_SignData done [13:09:40]FM_MakeSignedData done [13:09:40]CreateOFDProtocolMessage [13:09:40]wFMCommunicate request_size=4 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 11 00 00 [13:09:40]Write to MH i2c: E2 08 00 6A 41 80 11 00 00 00 00 00 00 25 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 17 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 17 00 6A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [13:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:09:40]wFMCommunicate OK [13:09:40]CreateOFDProtocolMessage done [13:09:40]OFDSenderStorePacket 69826 [13:09:40]StoreOFDPacket docnum=69826 [13:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 0F 07 01 3C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 96 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 10 01 00 35 04 06 00 C6 F7 15 C4 0F B5 07 58 2A 1E 9E DC FA 51 [13:09:40]CheckFolder [13:09:40]dirname=/storage/ofd_packets [13:09:40]CheckFolder done [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00069826 [13:09:40]NVStorageSaveData ofd_packets/00069826 [13:09:40]File name is /storage/ofd_packets/00069826 [13:09:40]Write 301 bytes [13:09:40]NVStorageSaveData done [13:09:40]OFDSenderStorePacket done [13:09:40]KKMCreateOFDPacket done [13:09:40]NVStorageSaveData kkm_last_timestamp [13:09:40]File name is /storage/kkm_last_timestamp [13:09:40]Write 4 bytes [13:09:40]NVStorageSaveData done [13:09:40]ExternCall_PrintAddStr [13:09:40]wPrintStart [13:09:40]Write to MH i2c: 01 00 00 6B 41 AC [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 6B 41 00 00 00 00 00 FF 0F C1 [13:09:40]RasterBufferAndPrint [13:09:40]line Счет N : (1)2885575 [13:09:40]line ИНН: 02508201610067 [13:09:40]line Контрольно-Кассовый Чек [13:09:40]line ПРОДАЖА [13:09:40]line ТРК (МРК, ГНК) : 12 [13:09:40]line Товар: 2710124130 [13:09:40]line Аи-92-К-5 [13:09:40]line 500.000 * 66.90 [13:09:40]line = 33450.00 [13:09:40]line НДС 12% НСП 1% [13:09:40]line > о реализуемом товаре [13:09:40]line ИТОГО: 33450.00 [13:09:40]line НСП 1% : 296.02 [13:09:40]line НДС 12% : 3552.21 [13:09:40]line Наличными: 33450.00 [13:09:40]line Безнал.: 0.00 [13:09:40]line Место: АЗС № 85 "Партнер Нефть" [13:09:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:09:40]line СНО: Общий режим [13:09:40]line Чек 216 21.10.2024 13:09 [13:09:40]line Смена: 194 ФФД: 1.0 [13:09:40]line ЗНМ: 0300000167 [13:09:40]line РНМ: 0000000000156251 [13:09:40]line Версия ККМ: v1.0 [13:09:40]line ФМ: 0000000000963346 [13:09:40]line ФД: 69826 [13:09:40]line ФПД: 218764524392373 [13:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69826&fm=218764524392373&tin=02508201610067®Number=0000000000156251&sum=3345000 [13:09:40]OFD Sender: Processing packet 69826 [packets to send 18, broken 17] [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00069826 [13:09:40]OFD Sender: To server: pG, [13:09:40]CommunicateWithHost lk.salyk.kg:30040 [13:09:40]ConnectInit lk.salyk.kg [13:09:40]written 0, free lines is 4095 [13:09:40]Connected sock=10 [13:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 0F 07 01 3C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 96 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 10 01 00 35 04 06 00 C6 F7 15 C4 0F B5 07 58 2A 1E 9E DC FA 51 [13:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AE EE 47 00 F2 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 39 36 33 33 34 36 10 04 04 00 C2 10 01 00 F4 03 04 00 3A FC 15 67 B6 04 01 00 00 F7 FD 95 DA BB BC C0 F8 [13:09:41]CommunicateWithHost err = 0 [13:09:41]CheckOFDResponse [13:09:41]1017 (14) - 77093643461234 [13:09:41]1041 (16) - 0000000000963346 [13:09:41]1040 (4) - 69826 [13:09:41]1012 (4) - 21.10.2024 07:01 [13:09:41]1206 (1) - 0 [13:09:41]OFD Sender: Remove packet 69826 [13:09:41]ProducePacketName [13:09:41]name=ofd_packets/00069826 [13:09:41]NVStorageDeleteData [13:09:41]Write to MH i2c: 01 00 00 93 41 D4 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 07 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 07 00 93 41 00 00 00 00 00 2F 0D 17 [13:09:41]RasterBufferAndPrint [13:09:41]line [13:09:41]line [13:09:41]line [13:09:41]line [13:09:41]line [13:09:41]written 0, free lines is 3381 [13:09:41]MH_Cut [13:09:41]Write to MH i2c: D1 01 00 9A 41 01 AD [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: D1 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: D1 01 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: D1 01 00 9A 41 00 AC [13:09:41]Write to MH i2c: 01 00 00 9B 41 DC [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]OFD Sender: No OFD packet to send [13:09:41]*** Cut start [13:09:41]*** Partial cut [13:09:41]*** CUTSNS_PIN = 1 [13:09:41]*** CUTSNS_PIN = 0 [13:09:42]*** Brake cut motor [13:09:42]Read from MH i2c: 01 [13:09:42]MH_I2C_Read... [13:09:42]*** Stop cut motor [13:09:42]*** Cut end [13:09:42]Read from MH i2c: 01 07 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 9B 41 00 00 00 00 00 FF 0F F1 [13:09:42]process_action close_receipt done [13:09:42]requested_data is exist [13:09:42]produce_requested_data [13:09:42]requested_item fm.sn is exist - process it [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 11 00 00 [13:09:42]Write to MH i2c: E2 08 00 9C 41 80 11 00 00 00 00 00 00 57 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 9C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [13:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:09:42]wFMCommunicate OK [13:09:42]requested_item fd.num is exist - process it [13:09:42]SAM_PROTO_GetFieldsCounters [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 00 00 [13:09:42]Write to MH i2c: E2 08 00 9D 41 80 13 00 00 00 00 00 00 5A [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 9D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetFieldsCounters done [13:09:42]requested_item shift.num is exist - process it [13:09:42]requested_item shift.opened is exist - process it [13:09:42]req_shift_opened [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 9E 41 80 13 01 00 00 00 00 00 5C [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 9E 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [13:09:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]req_shift_opened done [13:09:42]requested_item shift.open_date is exist - process it [13:09:42]req_shift_open_date [13:09:42]req_shift_open_date done [13:09:42]produce_requested_data done [13:09:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69826,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:09:42]process_action_free close_receipt [13:09:42]json_value_free [13:09:42]json_value_free done [13:09:42]process_json_proto returns [13:09:42]Send response to host [13:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69826,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:09:42]free response buf [13:09:42]execute_script done [13:09:42]execute_script returns [13:09:42]free content buf [13:09:42]Sock 9.Close socket [13:09:42]Sock 9.Thread stoped [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:00]accept exits with 8 [13:11:00]New connection [13:11:00]New thread 3067313508 created [13:11:00]Thread 3067456868 joined [13:11:00]Waiting for new connection... [13:11:00] Sock 8.Parse request [13:11:00]Sock 8.Check first char [13:11:00]Sock 8.First char is OK [13:11:00]request: POST /json_proto HTTP/1.0 [13:11:00]Method: POST [13:11:00]URL: /json_proto [13:11:00]Method is POST - this is cgi request [13:11:00]url: /json_proto [13:11:00]query_string will be loaded in cgi processing [13:11:00]execute_cgi json_proto POST (null) [13:11:00]execute_cgi path=json_proto method=POST [13:11:00]POST find Content-Length [13:11:00]Host: 172.17.50.3:8080 [13:11:00]Content-Length: 702 [13:11:00]Content-Type: application/json [13:11:00] [13:11:00]POST finish read [13:11:00]Found Content-Length = 702 [13:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69826, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 500.000, "sum" : 33450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 33450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:00]execute_script... [13:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69826, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 500.000, "sum" : 33450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 33450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:00]POST & json_proto [13:11:00]process_json_proto [13:11:00]json parsed OK: [13:11:00]protocol is kg_v1.0 [13:11:00]action value=close_receipt [13:11:00]process_action close_receipt [13:11:00]cmd_close_receipt [13:11:00]MH_GetDate [13:11:00]Write to MH i2c: F0 00 00 9F 41 CF [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 09 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 09 00 9F 41 00 E8 52 16 67 6B 98 1E 66 16 [13:11:00]GetLastDocTimeStamp 1729516182 [13:11:00]current date 1729516264 [13:11:00]FM_GetShiftState [13:11:00]SAM_PROTO_GetShiftState [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 13 01 00 [13:11:00]Write to MH i2c: E2 08 00 A0 41 80 13 01 00 00 00 00 00 5E [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 A0 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8A [13:11:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:11:00]wFMCommunicate OK [13:11:00]SAM_PROTO_GetShiftState done [13:11:00]FM_GetShiftState done [13:11:00]opened in 1729469703 [13:11:00]opened+sec_in_day 1729556103 [13:11:00]quantity*price = 3345000 [13:11:00]sum+1 = 3345001 [13:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 33450.00 НСП 1% : 296.02 НДС 12% : 3552.21 Наличными: 33450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 217 21.10.2024 13:11 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69826 ФМ осн.: 0000000000963346 ФМ: 0000000000963346 ФД: 69827 ФПД: 92423928012654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131104&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69827&fm=92423928012654&tin=02508201610067®Number=0000000000156251&sum=3345000 [13:11:01]StoreToDocumentArchive [13:11:01]shift 194 fd 69827 [13:11:01]save to /storage/0194/doc_00069827 [13:11:01]save last doc name /storage/0194/doc_00069827 to /storage/kkm_last_doc_name [13:11:01]save OK [13:11:01]Clear old archive folders... [13:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=279 [13:11:01]tlvbuf is B6E23320 [13:11:01]SAM_PROTO_ClearQueue [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 09 00 00 [13:11:01]Write to MH i2c: E2 08 00 AF 41 80 09 00 00 00 00 00 00 62 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 AF 41 00 90 00 64 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_ClearQueue done [13:11:01]KKMCreateOFDPacket [13:11:01]OFDProtocolAddRootSTLVToBuf [13:11:01]FM_MakeSignedData [13:11:01]FM_MakeSignedData [13:11:01]SAM_PROTO_SignData [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 0D 01 02 [13:11:01]Write to MH i2c: E2 08 00 B0 41 80 0D 01 02 00 00 00 00 6A [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 B0 41 00 90 00 65 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]wFMCommunicate request_size=255 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 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 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 C2 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 [13:11:01]Write to MH i2c: E2 02 01 B1 41 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 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 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 C2 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 00 00 02 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 B1 41 00 90 00 66 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=38 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 10 01 00 35 04 06 00 54 0F 1F 65 DF 6E [13:11:02]Write to MH i2c: E2 29 00 B2 41 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 10 01 00 35 04 06 00 54 0F 1F 65 DF 6E 00 00 FD [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 B2 41 00 90 00 67 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 03 02 [13:11:02]Write to MH i2c: E2 08 00 B3 41 80 0D 03 02 00 00 00 00 6F [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 B3 41 00 37 22 F2 1D 84 A8 8B 2E 90 00 BD [13:11:02]RAPDU: 37 22 F2 1D 84 A8 8B 2E 90 00 [13:11:02]wFMCommunicate OK [13:11:02]SAM_PROTO_SignData done [13:11:02]FM_MakeSignedData done [13:11:02]CreateOFDProtocolMessage [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 11 00 00 [13:11:02]Write to MH i2c: E2 08 00 B4 41 80 11 00 00 00 00 00 00 6F [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 B4 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [13:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:02]wFMCommunicate OK [13:11:02]CreateOFDProtocolMessage done [13:11:02]OFDSenderStorePacket 69827 [13:11:02]StoreOFDPacket docnum=69827 [13:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 FD 42 23 01 F4 29 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 C2 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 10 01 00 35 04 06 00 54 0F 1F 65 DF 6E 37 22 F2 1D 84 A8 8B 2E [13:11:02]CheckFolder [13:11:02]dirname=/storage/ofd_packets [13:11:02]CheckFolder done [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00069827 [13:11:02]NVStorageSaveData ofd_packets/00069827 [13:11:02]File name is /storage/ofd_packets/00069827 [13:11:02]Write 329 bytes [13:11:02]NVStorageSaveData done [13:11:02]OFDSenderStorePacket done [13:11:02]KKMCreateOFDPacket done [13:11:02]NVStorageSaveData kkm_last_timestamp [13:11:02]File name is /storage/kkm_last_timestamp [13:11:02]Write 4 bytes [13:11:02]NVStorageSaveData done [13:11:02]ExternCall_PrintAddStr [13:11:02]wPrintStart [13:11:02]Write to MH i2c: 01 00 00 B5 41 F6 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 B5 41 00 00 00 00 00 FF 0F 0B [13:11:02]RasterBufferAndPrint [13:11:02]line Счет N : (1)2885575 [13:11:02]line ИНН: 02508201610067 [13:11:02]line Контрольно-Кассовый Чек [13:11:02]line ВОЗВРАТ ПРОДАЖИ [13:11:02]line ТРК (МРК, ГНК) : 12 [13:11:02]line Товар: 2710124130 [13:11:02]line Аи-92-К-5 [13:11:02]line 500.000 * 66.90 [13:11:02]line = 33450.00 [13:11:02]line НДС 12% НСП 1% [13:11:02]line > о реализуемом товаре [13:11:02]line ИТОГО: 33450.00 [13:11:02]line НСП 1% : 296.02 [13:11:02]line НДС 12% : 3552.21 [13:11:02]line Наличными: 33450.00 [13:11:02]line Безнал.: 0.00 [13:11:02]line Место: АЗС № 85 "Партнер Нефть" [13:11:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:11:02]line СНО: Общий режим [13:11:02]line Чек 217 21.10.2024 13:11 [13:11:02]line Смена: 194 ФФД: 1.0 [13:11:02]line ЗНМ: 0300000167 [13:11:02]line РНМ: 0000000000156251 [13:11:02]line Версия ККМ: v1.0 [13:11:02]line ФД осн.: 69826 [13:11:02]line ФМ осн.: 0000000000963346 [13:11:02]line ФМ: 0000000000963346 [13:11:02]line ФД: 69827 [13:11:02]line ФПД: 92423928012654 [13:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131104&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69827&fm=92423928012654&tin=02508201610067®Number=0000000000156251&sum=3345000 [13:11:02]OFD Sender: Processing packet 69827 [packets to send 18, broken 17] [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00069827 [13:11:02]OFD Sender: To server: pG, [13:11:02]CommunicateWithHost lk.salyk.kg:30040 [13:11:02]ConnectInit lk.salyk.kg [13:11:02]written 0, free lines is 4095 [13:11:02]Connected sock=10 [13:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 FD 42 23 01 F4 29 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 20 A1 07 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 68 0A 33 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 0A 33 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 73 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 6B 05 00 00 00 07 04 06 00 68 0A 33 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 C2 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 10 01 00 35 04 06 00 54 0F 1F 65 DF 6E 37 22 F2 1D 84 A8 8B 2E [13:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 40 1B 47 00 D3 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 39 36 33 33 34 36 10 04 04 00 C3 10 01 00 F4 03 04 00 8C FC 15 67 B6 04 01 00 00 1A BA 08 92 FF 1B 9A 61 [13:11:03]CommunicateWithHost err = 0 [13:11:03]CheckOFDResponse [13:11:03]1017 (14) - 77093643461234 [13:11:03]1041 (16) - 0000000000963346 [13:11:03]1040 (4) - 69827 [13:11:03]1012 (4) - 21.10.2024 07:02 [13:11:03]1206 (1) - 0 [13:11:03]OFD Sender: Remove packet 69827 [13:11:03]ProducePacketName [13:11:03]name=ofd_packets/00069827 [13:11:03]NVStorageDeleteData [13:11:03]Write to MH i2c: 01 00 00 DF 41 20 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 DF 41 00 00 00 00 00 29 0D 5D [13:11:03]RasterBufferAndPrint [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]written 0, free lines is 3374 [13:11:03]MH_Cut [13:11:03]Write to MH i2c: D1 01 00 E6 41 01 F9 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 E6 41 00 F8 [13:11:03]Write to MH i2c: 01 00 00 E7 41 28 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]OFD Sender: No OFD packet to send [13:11:03]*** Cut start [13:11:03]*** Partial cut [13:11:03]*** CUTSNS_PIN = 1 [13:11:03]*** CUTSNS_PIN = 0 [13:11:04]*** Brake cut motor [13:11:04]Read from MH i2c: 01 [13:11:04]MH_I2C_Read... [13:11:04]*** Stop cut motor [13:11:04]*** Cut end [13:11:04]Read from MH i2c: 01 07 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 E7 41 00 00 00 00 00 FF 0F 3D [13:11:04]process_action close_receipt done [13:11:04]requested_data is exist [13:11:04]produce_requested_data [13:11:04]requested_item fm.sn is exist - process it [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 11 00 00 [13:11:04]Write to MH i2c: E2 08 00 E8 41 80 11 00 00 00 00 00 00 A3 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 E8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [13:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:04]wFMCommunicate OK [13:11:04]requested_item fd.num is exist - process it [13:11:04]SAM_PROTO_GetFieldsCounters [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 00 00 [13:11:04]Write to MH i2c: E2 08 00 E9 41 80 13 00 00 00 00 00 00 A6 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 62 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 62 00 E9 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetFieldsCounters done [13:11:04]requested_item shift.num is exist - process it [13:11:04]requested_item shift.opened is exist - process it [13:11:04]req_shift_opened [13:11:04]FM_GetShiftState [13:11:04]SAM_PROTO_GetShiftState [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 01 00 [13:11:04]Write to MH i2c: E2 08 00 EA 41 80 13 01 00 00 00 00 00 A8 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 EA 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D4 [13:11:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetShiftState done [13:11:04]FM_GetShiftState done [13:11:04]req_shift_opened done [13:11:04]requested_item shift.open_date is exist - process it [13:11:04]req_shift_open_date [13:11:04]req_shift_open_date done [13:11:04]produce_requested_data done [13:11:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69827,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:11:04]process_action_free close_receipt [13:11:04]json_value_free [13:11:04]json_value_free done [13:11:04]process_json_proto returns [13:11:04]Send response to host [13:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69827,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:11:04]free response buf [13:11:04]execute_script done [13:11:04]execute_script returns [13:11:04]free content buf [13:11:04]Sock 8.Close socket [13:11:04]Sock 8.Thread stoped [13:11:05]accept exits with 9 [13:11:05]New connection [13:11:05]New thread 3067456868 created [13:11:05]Thread 3067313508 joined [13:11:05]Waiting for new connection... [13:11:05] Sock 9.Parse request [13:11:05]Sock 9.Check first char [13:11:05]Sock 9.First char is OK [13:11:05]request: POST /json_proto HTTP/1.0 [13:11:05]Method: POST [13:11:05]URL: /json_proto [13:11:05]Method is POST - this is cgi request [13:11:05]url: /json_proto [13:11:05]query_string will be loaded in cgi processing [13:11:05]execute_cgi json_proto POST (null) [13:11:05]execute_cgi path=json_proto method=POST [13:11:05]POST find Content-Length [13:11:05]Host: 172.17.50.3:8080 [13:11:05]Content-Length: 681 [13:11:05]Content-Type: application/json [13:11:05] [13:11:05]POST finish read [13:11:05]Found Content-Length = 681 [13:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 33450.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:05]execute_script... [13:11: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)2885575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 33450.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:05]POST & json_proto [13:11:05]process_json_proto [13:11:05]json parsed OK: [13:11:05]protocol is kg_v1.0 [13:11:05]action value=close_receipt [13:11:05]process_action close_receipt [13:11:05]cmd_close_receipt [13:11:05]MH_GetDate [13:11:05]Write to MH i2c: F0 00 00 EB 41 1B [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 EB 41 00 ED 52 16 67 6B 98 1E 66 67 [13:11:05]GetLastDocTimeStamp 1729516264 [13:11:05]current date 1729516269 [13:11:05]FM_GetShiftState [13:11:05]SAM_PROTO_GetShiftState [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 13 01 00 [13:11:05]Write to MH i2c: E2 08 00 EC 41 80 13 01 00 00 00 00 00 AA [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 EC 41 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D6 [13:11:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_GetShiftState done [13:11:05]FM_GetShiftState done [13:11:05]opened in 1729469703 [13:11:05]opened+sec_in_day 1729556103 [13:11:05]quantity*price = 70044 [13:11:05]sum+1 = 70045 [13:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 33450.00 СДАЧА: 32750.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 218 21.10.2024 13:11 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69828 ФПД: 208193822956905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69828&fm=208193822956905&tin=02508201610067®Number=0000000000156251&sum=70000 [13:11:06]StoreToDocumentArchive [13:11:06]shift 194 fd 69828 [13:11:06]save to /storage/0194/doc_00069828 [13:11:06]save last doc name /storage/0194/doc_00069828 to /storage/kkm_last_doc_name [13:11:06]save OK [13:11:06]Clear old archive folders... [13:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:06]tlvbuf is 00D34D90 [13:11:06]SAM_PROTO_ClearQueue [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 09 00 00 [13:11:06]Write to MH i2c: E2 08 00 F9 41 80 09 00 00 00 00 00 00 AC [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 F9 41 00 90 00 AE [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_ClearQueue done [13:11:06]KKMCreateOFDPacket [13:11:06]OFDProtocolAddRootSTLVToBuf [13:11:06]FM_MakeSignedData [13:11:06]FM_MakeSignedData [13:11:06]SAM_PROTO_SignData [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 01 02 [13:11:06]Write to MH i2c: E2 08 00 FA 41 80 0D 01 02 00 00 00 00 B4 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 FA 41 00 90 00 AF [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=255 [13:11:06]MH_SAM_APDU [13:11:06]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 ED 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 10 01 00 35 04 06 00 BD [13:11:06]Write to MH i2c: E2 02 01 FB 41 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 ED 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 10 01 00 35 04 06 00 BD 00 00 37 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 FB 41 00 90 00 B0 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=10 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 02 02 05 59 E6 DC 9D 69 [13:11:07]Write to MH i2c: E2 0D 00 FC 41 80 0D 02 02 05 00 59 E6 DC 9D 69 00 00 E2 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 FC 41 00 90 00 B1 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 03 02 [13:11:07]Write to MH i2c: E2 08 00 FD 41 80 0D 03 02 00 00 00 00 B9 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 FD 41 00 73 13 26 64 34 D9 0E 3A 90 00 1F [13:11:07]RAPDU: 73 13 26 64 34 D9 0E 3A 90 00 [13:11:07]wFMCommunicate OK [13:11:07]SAM_PROTO_SignData done [13:11:07]FM_MakeSignedData done [13:11:07]CreateOFDProtocolMessage [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 11 00 00 [13:11:07]Write to MH i2c: E2 08 00 FE 41 80 11 00 00 00 00 00 00 B9 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 FE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [13:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:07]wFMCommunicate OK [13:11:07]CreateOFDProtocolMessage done [13:11:07]OFDSenderStorePacket 69828 [13:11:07]StoreOFDPacket docnum=69828 [13:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 4F 07 01 1C D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 ED 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 10 01 00 35 04 06 00 BD 59 E6 DC 9D 69 73 13 26 64 34 D9 0E 3A [13:11:07]CheckFolder [13:11:07]dirname=/storage/ofd_packets [13:11:07]CheckFolder done [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00069828 [13:11:07]NVStorageSaveData ofd_packets/00069828 [13:11:07]File name is /storage/ofd_packets/00069828 [13:11:07]Write 301 bytes [13:11:07]NVStorageSaveData done [13:11:07]OFDSenderStorePacket done [13:11:07]KKMCreateOFDPacket done [13:11:07]NVStorageSaveData kkm_last_timestamp [13:11:07]File name is /storage/kkm_last_timestamp [13:11:07]Write 4 bytes [13:11:07]NVStorageSaveData done [13:11:07]ExternCall_PrintAddStr [13:11:07]wPrintStart [13:11:07]Write to MH i2c: 01 00 00 FF 41 40 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 FF 41 00 00 00 00 00 FF 0F 55 [13:11:07]RasterBufferAndPrint [13:11:07]line Счет N : (1)2885575 [13:11:07]line ИНН: 02508201610067 [13:11:07]line Контрольно-Кассовый Чек [13:11:07]line ПРОДАЖА [13:11:07]line ТРК (МРК, ГНК) : 12 [13:11:07]line Товар: 2710124130 [13:11:07]line Аи-92-К-5 [13:11:07]line 10.470 * 66.90 [13:11:07]line = 700.44 [13:11:07]line НДС 12% НСП 1% [13:11:07]line > о реализуемом товаре [13:11:07]line ОКРУГЛЕНИЕ: -0.44 [13:11:07]line ИТОГО: 700.00 [13:11:07]line Внесено: 33450.00 [13:11:07]line СДАЧА: 32750.00 [13:11:07]line НСП 1% : 6.20 [13:11:07]line НДС 12% : 74.38 [13:11:07]line Наличными: 700.00 [13:11:07]line Безнал.: 0.00 [13:11:07]line Место: АЗС № 85 "Партнер Нефть" [13:11:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:11:07]line СНО: Общий режим [13:11:07]line Чек 218 21.10.2024 13:11 [13:11:07]line Смена: 194 ФФД: 1.0 [13:11:07]line ЗНМ: 0300000167 [13:11:07]line РНМ: 0000000000156251 [13:11:07]line Версия ККМ: v1.0 [13:11:07]line ФМ: 0000000000963346 [13:11:07]line ФД: 69828 [13:11:07]line ФПД: 208193822956905 [13:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131109&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69828&fm=208193822956905&tin=02508201610067®Number=0000000000156251&sum=70000 [13:11:07]OFD Sender: Processing packet 69828 [packets to send 18, broken 17] [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00069828 [13:11:07]OFD Sender: To server: pG, [13:11:07]CommunicateWithHost lk.salyk.kg:30040 [13:11:07]ConnectInit lk.salyk.kg [13:11:07]written 0, free lines is 4095 [13:11:07]Connected sock=10 [13:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 4F 07 01 1C D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 ED 52 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 10 01 00 35 04 06 00 BD 59 E6 DC 9D 69 73 13 26 64 34 D9 0E 3A [13:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 2C 47 00 03 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 10 01 00 F4 03 04 00 91 FC 15 67 B6 04 01 00 00 95 6C 3E D6 92 A1 2F 91 [13:11:08]CommunicateWithHost err = 0 [13:11:08]CheckOFDResponse [13:11:08]1017 (14) - 77093643461234 [13:11:08]1041 (16) - 0000000000963346 [13:11:08]1040 (4) - 69828 [13:11:08]1012 (4) - 21.10.2024 07:02 [13:11:08]1206 (1) - 0 [13:11:08]OFD Sender: Remove packet 69828 [13:11:08]ProducePacketName [13:11:08]name=ofd_packets/00069828 [13:11:08]NVStorageDeleteData [13:11:08]Write to MH i2c: 01 00 00 2A 42 6C [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 2A 42 00 00 00 00 00 06 0D 86 [13:11:08]RasterBufferAndPrint [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]written 0, free lines is 3349 [13:11:08]MH_Cut [13:11:08]Write to MH i2c: D1 01 00 31 42 01 45 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 31 42 00 44 [13:11:08]Write to MH i2c: 01 00 00 32 42 74 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]OFD Sender: No OFD packet to send [13:11:08]*** Cut start [13:11:08]*** Partial cut [13:11:08]*** CUTSNS_PIN = 1 [13:11:08]*** CUTSNS_PIN = 0 [13:11:09]*** Brake cut motor [13:11:09]Read from MH i2c: 01 [13:11:09]MH_I2C_Read... [13:11:09]*** Stop cut motor [13:11:09]*** Cut end [13:11:09]Read from MH i2c: 01 07 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: 01 07 00 32 42 00 00 00 00 00 FF 0F 89 [13:11:09]process_action close_receipt done [13:11:09]requested_data is exist [13:11:09]produce_requested_data [13:11:09]requested_item fm.sn is exist - process it [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 11 00 00 [13:11:09]Write to MH i2c: E2 08 00 33 42 80 11 00 00 00 00 00 00 EF [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 17 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 17 00 33 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [13:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:09]wFMCommunicate OK [13:11:09]requested_item fd.num is exist - process it [13:11:09]SAM_PROTO_GetFieldsCounters [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 13 00 00 [13:11:09]Write to MH i2c: E2 08 00 34 42 80 13 00 00 00 00 00 00 F2 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 62 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 62 00 34 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:09]wFMCommunicate OK [13:11:09]SAM_PROTO_GetFieldsCounters done [13:11:09]requested_item shift.num is exist - process it [13:11:09]requested_item shift.opened is exist - process it [13:11:09]req_shift_opened [13:11:09]FM_GetShiftState [13:11:09]SAM_PROTO_GetShiftState [13:11:09]wFMCommunicate request_size=4 [13:11:09]MH_SAM_APDU [13:11:09]CAPDU: 80 13 01 00 [13:11:09]Write to MH i2c: E2 08 00 35 42 80 13 01 00 00 00 00 00 F4 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:09]Read from MH i2c: E2 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 0E 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: E2 0E 00 35 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 20 [13:11:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:11:09]wFMCommunicate OK [13:11:09]SAM_PROTO_GetShiftState done [13:11:09]FM_GetShiftState done [13:11:09]req_shift_opened done [13:11:09]requested_item shift.open_date is exist - process it [13:11:09]req_shift_open_date [13:11:09]req_shift_open_date done [13:11:09]produce_requested_data done [13:11:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69828,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:11:09]process_action_free close_receipt [13:11:09]json_value_free [13:11:09]json_value_free done [13:11:09]process_json_proto returns [13:11:09]Send response to host [13:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69828,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:11:09]free response buf [13:11:09]execute_script done [13:11:09]execute_script returns [13:11:09]free content buf [13:11:09]Sock 9.Close socket [13:11:09]Sock 9.Thread stoped [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:10]accept exits with 8 [13:14:10]New connection [13:14:10]New thread 3067313508 created [13:14:10]Thread 3067456868 joined [13:14:10]Waiting for new connection... [13:14:10] Sock 8.Parse request [13:14:10]Sock 8.Check first char [13:14:10]Sock 8.First char is OK [13:14:10]request: POST /json_proto HTTP/1.0 [13:14:10]Method: POST [13:14:10]URL: /json_proto [13:14:10]Method is POST - this is cgi request [13:14:10]url: /json_proto [13:14:10]query_string will be loaded in cgi processing [13:14:10]execute_cgi json_proto POST (null) [13:14:10]execute_cgi path=json_proto method=POST [13:14:10]POST find Content-Length [13:14:10]Host: 172.17.50.3:8080 [13:14:10]Content-Length: 676 [13:14:10]Content-Type: application/json [13:14:10] [13:14:10]POST finish read [13:14:10]Found Content-Length = 676 [13:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [13:14:10]execute_script... [13: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)2885576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [13:14:10]POST & json_proto [13:14:10]process_json_proto [13:14:10]json parsed OK: [13:14:10]protocol is kg_v1.0 [13:14:10]action value=close_receipt [13:14:10]process_action close_receipt [13:14:10]cmd_close_receipt [13:14:10]MH_GetDate [13:14:10]Write to MH i2c: F0 00 00 36 42 67 [13:14:10]Write i2c OK [13:14:10]MH_I2C_Read... [13:14:10]Read from MH i2c: F0 [13:14:10]MH_I2C_Read... [13:14:10]Read from MH i2c: F0 09 00 [13:14:10]MH_I2C_Read... [13:14:10]Read from MH i2c: F0 09 00 36 42 00 A6 53 16 67 6B 98 1E 66 6D [13:14:10]GetLastDocTimeStamp 1729516269 [13:14:10]current date 1729516454 [13:14:10]FM_GetShiftState [13:14:10]SAM_PROTO_GetShiftState [13:14:10]wFMCommunicate request_size=4 [13:14:10]MH_SAM_APDU [13:14:10]CAPDU: 80 13 01 00 [13:14:10]Write to MH i2c: E2 08 00 37 42 80 13 01 00 00 00 00 00 F6 [13:14:10]Write i2c OK [13:14:10]MH_I2C_Read... [13:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:10]Read from MH i2c: E2 [13:14:10]MH_I2C_Read... [13:14:10]Read from MH i2c: E2 0E 00 [13:14:10]MH_I2C_Read... [13:14:10]Read from MH i2c: E2 0E 00 37 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 22 [13:14:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:14:10]wFMCommunicate OK [13:14:10]SAM_PROTO_GetShiftState done [13:14:10]FM_GetShiftState done [13:14:10]opened in 1729469703 [13:14:10]opened+sec_in_day 1729556103 [13:14:10]quantity*price = 80010 [13:14:10]sum+1 = 80011 [13:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 219 21.10.2024 13:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69829 ФПД: 149846985880061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69829&fm=149846985880061&tin=02508201610067®Number=0000000000156251&sum=80000 [13:14:11]StoreToDocumentArchive [13:14:11]shift 194 fd 69829 [13:14:11]save to /storage/0194/doc_00069829 [13:14:11]save last doc name /storage/0194/doc_00069829 to /storage/kkm_last_doc_name [13:14:11]save OK [13:14:11]Clear old archive folders... [13:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:14:11]tlvbuf is 00D09850 [13:14:11]SAM_PROTO_ClearQueue [13:14:11]wFMCommunicate request_size=4 [13:14:11]MH_SAM_APDU [13:14:11]CAPDU: 80 09 00 00 [13:14:11]Write to MH i2c: E2 08 00 44 42 80 09 00 00 00 00 00 00 F8 [13:14:11]Write i2c OK [13:14:11]MH_I2C_Read... [13:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:11]Read from MH i2c: E2 [13:14:11]MH_I2C_Read... [13:14:11]Read from MH i2c: E2 03 00 [13:14:11]MH_I2C_Read... [13:14:11]Read from MH i2c: E2 03 00 44 42 00 90 00 FA [13:14:11]RAPDU: 90 00 [13:14:11]wFMCommunicate OK [13:14:11]SAM_PROTO_ClearQueue done [13:14:11]KKMCreateOFDPacket [13:14:11]OFDProtocolAddRootSTLVToBuf [13:14:11]FM_MakeSignedData [13:14:11]FM_MakeSignedData [13:14:11]SAM_PROTO_SignData [13:14:11]wFMCommunicate request_size=4 [13:14:11]MH_SAM_APDU [13:14:11]CAPDU: 80 0D 01 02 [13:14:11]Write to MH i2c: E2 08 00 45 42 80 0D 01 02 00 00 00 00 00 [13:14:11]Write i2c OK [13:14:11]MH_I2C_Read... [13:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:11]Read from MH i2c: E2 [13:14:11]MH_I2C_Read... [13:14:11]Read from MH i2c: E2 03 00 [13:14:11]MH_I2C_Read... [13:14:11]Read from MH i2c: E2 03 00 45 42 00 90 00 FB [13:14:11]RAPDU: 90 00 [13:14:11]wFMCommunicate OK [13:14:11]wFMCommunicate request_size=255 [13:14:11]MH_SAM_APDU [13:14:11]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 DB 00 00 00 F4 03 04 00 A6 53 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 10 01 00 35 04 06 00 88 48 F8 5D [13:14:11]Write to MH i2c: E2 02 01 46 42 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 DB 00 00 00 F4 03 04 00 A6 53 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 10 01 00 35 04 06 00 88 48 F8 5D 00 00 C0 [13:14:11]Write i2c OK [13:14:11]MH_I2C_Read... [13:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:12]Read from MH i2c: E2 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 03 00 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 03 00 46 42 00 90 00 FC [13:14:12]RAPDU: 90 00 [13:14:12]wFMCommunicate OK [13:14:12]wFMCommunicate request_size=7 [13:14:12]MH_SAM_APDU [13:14:12]CAPDU: 80 0D 02 02 02 31 FD [13:14:12]Write to MH i2c: E2 0A 00 47 42 80 0D 02 02 02 00 31 FD 00 00 35 [13:14:12]Write i2c OK [13:14:12]MH_I2C_Read... [13:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:12]Read from MH i2c: E2 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 03 00 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 03 00 47 42 00 90 00 FD [13:14:12]RAPDU: 90 00 [13:14:12]wFMCommunicate OK [13:14:12]wFMCommunicate request_size=4 [13:14:12]MH_SAM_APDU [13:14:12]CAPDU: 80 0D 03 02 [13:14:12]Write to MH i2c: E2 08 00 48 42 80 0D 03 02 00 00 00 00 05 [13:14:12]Write i2c OK [13:14:12]MH_I2C_Read... [13:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:12]Read from MH i2c: E2 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 0B 00 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 0B 00 48 42 00 A1 5B CE CD C5 65 9A 06 90 00 67 [13:14:12]RAPDU: A1 5B CE CD C5 65 9A 06 90 00 [13:14:12]wFMCommunicate OK [13:14:12]SAM_PROTO_SignData done [13:14:12]FM_MakeSignedData done [13:14:12]CreateOFDProtocolMessage [13:14:12]wFMCommunicate request_size=4 [13:14:12]MH_SAM_APDU [13:14:12]CAPDU: 80 11 00 00 [13:14:12]Write to MH i2c: E2 08 00 49 42 80 11 00 00 00 00 00 00 05 [13:14:12]Write i2c OK [13:14:12]MH_I2C_Read... [13:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:12]Read from MH i2c: E2 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 17 00 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: E2 17 00 49 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [13:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:14:12]wFMCommunicate OK [13:14:12]CreateOFDProtocolMessage done [13:14:12]OFDSenderStorePacket 69829 [13:14:12]StoreOFDPacket docnum=69829 [13:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9F A8 04 01 6A 30 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 DB 00 00 00 F4 03 04 00 A6 53 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 10 01 00 35 04 06 00 88 48 F8 5D 31 FD A1 5B CE CD C5 65 9A 06 [13:14:12]CheckFolder [13:14:12]dirname=/storage/ofd_packets [13:14:12]CheckFolder done [13:14:12]ProducePacketName [13:14:12]name=ofd_packets/00069829 [13:14:12]NVStorageSaveData ofd_packets/00069829 [13:14:12]File name is /storage/ofd_packets/00069829 [13:14:12]Write 298 bytes [13:14:12]NVStorageSaveData done [13:14:12]OFDSenderStorePacket done [13:14:12]KKMCreateOFDPacket done [13:14:12]NVStorageSaveData kkm_last_timestamp [13:14:12]File name is /storage/kkm_last_timestamp [13:14:12]Write 4 bytes [13:14:12]NVStorageSaveData done [13:14:12]ExternCall_PrintAddStr [13:14:12]wPrintStart [13:14:12]Write to MH i2c: 01 00 00 4A 42 8C [13:14:12]Write i2c OK [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: 01 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: 01 07 00 [13:14:12]MH_I2C_Read... [13:14:12]Read from MH i2c: 01 07 00 4A 42 00 00 00 00 00 FF 0F A1 [13:14:12]RasterBufferAndPrint [13:14:12]line Счет N : (1)2885576 [13:14:12]line ИНН: 02508201610067 [13:14:12]line Контрольно-Кассовый Чек [13:14:12]line ПРОДАЖА [13:14:12]line ТРК (МРК, ГНК) : 51 [13:14:12]line Товар: 2710194210 [13:14:12]line ДТ-К-5 [13:14:12]line 10.500 * 76.20 [13:14:12]line = 800.10 [13:14:12]line НДС 12% НСП 1% [13:14:12]line > о реализуемом товаре [13:14:12]line ОКРУГЛЕНИЕ: -0.10 [13:14:12]line ИТОГО: 800.00 [13:14:12]line Внесено: 800.00 [13:14:12]line СДАЧА: 0.00 [13:14:12]line НСП 1% : 7.08 [13:14:12]line НДС 12% : 84.97 [13:14:12]line Наличными: 800.00 [13:14:12]line Безнал.: 0.00 [13:14:12]line Место: АЗС № 85 "Партнер Нефть" [13:14:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:14:12]line СНО: Общий режим [13:14:12]line Чек 219 21.10.2024 13:14 [13:14:12]line Смена: 194 ФФД: 1.0 [13:14:12]line ЗНМ: 0300000167 [13:14:12]line РНМ: 0000000000156251 [13:14:12]line Версия ККМ: v1.0 [13:14:12]line ФМ: 0000000000963346 [13:14:12]line ФД: 69829 [13:14:12]line ФПД: 149846985880061 [13:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69829&fm=149846985880061&tin=02508201610067®Number=0000000000156251&sum=80000 [13:14:12]OFD Sender: Processing packet 69829 [packets to send 18, broken 17] [13:14:12]ProducePacketName [13:14:12]name=ofd_packets/00069829 [13:14:12]OFD Sender: To server: pG, [13:14:12]CommunicateWithHost lk.salyk.kg:30040 [13:14:12]ConnectInit lk.salyk.kg [13:14:12]written 0, free lines is 4095 [13:14:12]Connected sock=10 [13:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9F A8 04 01 6A 30 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 DB 00 00 00 F4 03 04 00 A6 53 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 10 01 00 35 04 06 00 88 48 F8 5D 31 FD A1 5B CE CD C5 65 9A 06 [13:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CF 64 47 00 9A 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 39 36 33 33 34 36 10 04 04 00 C5 10 01 00 F4 03 04 00 4A FD 15 67 B6 04 01 00 00 CB C1 F4 BF 60 6F 57 0B [13:14:12]CommunicateWithHost err = 0 [13:14:12]CheckOFDResponse [13:14:12]1017 (14) - 77093643461234 [13:14:12]1041 (16) - 0000000000963346 [13:14:12]1040 (4) - 69829 [13:14:12]1012 (4) - 21.10.2024 07:05 [13:14:12]1206 (1) - 0 [13:14:12]OFD Sender: Remove packet 69829 [13:14:12]ProducePacketName [13:14:12]name=ofd_packets/00069829 [13:14:12]NVStorageDeleteData [13:14:13]Write to MH i2c: 01 00 00 75 42 B7 [13:14:13]Write i2c OK [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: 01 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: 01 07 00 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: 01 07 00 75 42 00 00 00 00 00 EC 0C B6 [13:14:13]RasterBufferAndPrint [13:14:13]line [13:14:13]line [13:14:13]line [13:14:13]line [13:14:13]line [13:14:13]written 0, free lines is 3314 [13:14:13]MH_Cut [13:14:13]Write to MH i2c: D1 01 00 7C 42 01 90 [13:14:13]Write i2c OK [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: D1 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: D1 01 00 [13:14:13]MH_I2C_Read... [13:14:13]Read from MH i2c: D1 01 00 7C 42 00 8F [13:14:13]Write to MH i2c: 01 00 00 7D 42 BF [13:14:13]Write i2c OK [13:14:13]MH_I2C_Read... [13:14:13]OFD Sender: No OFD packet to send [13:14:13]*** Cut start [13:14:13]*** Partial cut [13:14:13]*** CUTSNS_PIN = 1 [13:14:13]*** CUTSNS_PIN = 0 [13:14:14]*** Brake cut motor [13:14:14]Read from MH i2c: 01 [13:14:14]MH_I2C_Read... [13:14:14]*** Stop cut motor [13:14:14]*** Cut end [13:14:14]Read from MH i2c: 01 07 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: 01 07 00 7D 42 00 00 00 00 00 FF 0F D4 [13:14:14]process_action close_receipt done [13:14:14]requested_data is exist [13:14:14]produce_requested_data [13:14:14]requested_item fm.sn is exist - process it [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 11 00 00 [13:14:14]Write to MH i2c: E2 08 00 7E 42 80 11 00 00 00 00 00 00 3A [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 17 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 17 00 7E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [13:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:14:14]wFMCommunicate OK [13:14:14]requested_item fd.num is exist - process it [13:14:14]SAM_PROTO_GetFieldsCounters [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 13 00 00 [13:14:14]Write to MH i2c: E2 08 00 7F 42 80 13 00 00 00 00 00 00 3D [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 62 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 62 00 7F 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [13:14:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:14]wFMCommunicate OK [13:14:14]SAM_PROTO_GetFieldsCounters done [13:14:14]requested_item shift.num is exist - process it [13:14:14]requested_item shift.opened is exist - process it [13:14:14]req_shift_opened [13:14:14]FM_GetShiftState [13:14:14]SAM_PROTO_GetShiftState [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 13 01 00 [13:14:14]Write to MH i2c: E2 08 00 80 42 80 13 01 00 00 00 00 00 3F [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 0E 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 0E 00 80 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6B [13:14:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:14:14]wFMCommunicate OK [13:14:14]SAM_PROTO_GetShiftState done [13:14:14]FM_GetShiftState done [13:14:14]req_shift_opened done [13:14:14]requested_item shift.open_date is exist - process it [13:14:14]req_shift_open_date [13:14:14]req_shift_open_date done [13:14:14]produce_requested_data done [13:14:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69829,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:14:14]process_action_free close_receipt [13:14:14]json_value_free [13:14:14]json_value_free done [13:14:14]process_json_proto returns [13:14:14]Send response to host [13:14:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69829,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:14:14]free response buf [13:14:14]execute_script done [13:14:14]execute_script returns [13:14:14]free content buf [13:14:14]Sock 8.Close socket [13:14:14]Sock 8.Thread stoped [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:57]accept exits with 9 [13:16:57]New connection [13:16:57]New thread 3067456868 created [13:16:57]Thread 3067313508 joined [13:16:57]Waiting for new connection... [13:16:57] Sock 9.Parse request [13:16:57]Sock 9.Check first char [13:16:57]Sock 9.First char is OK [13:16:57]request: POST /json_proto HTTP/1.0 [13:16:57]Method: POST [13:16:57]URL: /json_proto [13:16:57]Method is POST - this is cgi request [13:16:57]url: /json_proto [13:16:57]query_string will be loaded in cgi processing [13:16:57]execute_cgi json_proto POST (null) [13:16:57]execute_cgi path=json_proto method=POST [13:16:57]POST find Content-Length [13:16:57]Host: 172.17.50.3:8080 [13:16:57]Content-Length: 683 [13:16:57]Content-Type: application/json [13:16:57] [13:16:57]POST finish read [13:16:57]Found Content-Length = 683 [13:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885578", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:57]execute_script... [13:16: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)2885578", "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" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:57]POST & json_proto [13:16:57]process_json_proto [13:16:57]json parsed OK: [13:16:57]protocol is kg_v1.0 [13:16:57]action value=close_receipt [13:16:57]process_action close_receipt [13:16:57]cmd_close_receipt [13:16:57]MH_GetDate [13:16:57]Write to MH i2c: F0 00 00 81 42 B2 [13:16:57]Write i2c OK [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: F0 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: F0 09 00 [13:16:57]MH_I2C_Read... [13:16:57]Read from MH i2c: F0 09 00 81 42 00 4D 54 16 67 6B 98 1E 66 60 [13:16:57]GetLastDocTimeStamp 1729516454 [13:16:57]current date 1729516621 [13:16:57]FM_GetShiftState [13:16:57]SAM_PROTO_GetShiftState [13:16:57]wFMCommunicate request_size=4 [13:16:57]MH_SAM_APDU [13:16:57]CAPDU: 80 13 01 00 [13:16:57]Write to MH i2c: E2 08 00 82 42 80 13 01 00 00 00 00 00 41 [13:16:57]Write i2c OK [13:16:57]MH_I2C_Read... [13:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:58]Read from MH i2c: E2 [13:16:58]MH_I2C_Read... [13:16:58]Read from MH i2c: E2 0E 00 [13:16:58]MH_I2C_Read... [13:16:58]Read from MH i2c: E2 0E 00 82 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6D [13:16:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:16:58]wFMCommunicate OK [13:16:58]SAM_PROTO_GetShiftState done [13:16:58]FM_GetShiftState done [13:16:58]opened in 1729469703 [13:16:58]opened+sec_in_day 1729556103 [13:16:58]quantity*price = 140021 [13:16:58]sum+1 = 140023 [13:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 220 21.10.2024 13:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69830 ФПД: 76559414396227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69830&fm=76559414396227&tin=02508201610067®Number=0000000000156251&sum=140000 [13:16:59]StoreToDocumentArchive [13:16:59]shift 194 fd 69830 [13:16:59]save to /storage/0194/doc_00069830 [13:16:59]save last doc name /storage/0194/doc_00069830 to /storage/kkm_last_doc_name [13:16:59]save OK [13:16:59]Clear old archive folders... [13:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:59]tlvbuf is 00CCE7B0 [13:16:59]SAM_PROTO_ClearQueue [13:16:59]wFMCommunicate request_size=4 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 09 00 00 [13:16:59]Write to MH i2c: E2 08 00 8F 42 80 09 00 00 00 00 00 00 43 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 8F 42 00 90 00 45 [13:16:59]RAPDU: 90 00 [13:16:59]wFMCommunicate OK [13:16:59]SAM_PROTO_ClearQueue done [13:16:59]KKMCreateOFDPacket [13:16:59]OFDProtocolAddRootSTLVToBuf [13:16:59]FM_MakeSignedData [13:16:59]FM_MakeSignedData [13:16:59]SAM_PROTO_SignData [13:16:59]wFMCommunicate request_size=4 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 0D 01 02 [13:16:59]Write to MH i2c: E2 08 00 90 42 80 0D 01 02 00 00 00 00 4B [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 90 42 00 90 00 46 [13:16:59]RAPDU: 90 00 [13:16:59]wFMCommunicate OK [13:16:59]wFMCommunicate request_size=255 [13:16:59]MH_SAM_APDU [13:16: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4D 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 10 01 00 35 04 06 00 45 [13:16:59]Write to MH i2c: E2 02 01 91 42 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4D 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 10 01 00 35 04 06 00 45 00 00 C3 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 91 42 00 90 00 47 [13:16:59]RAPDU: 90 00 [13:16:59]wFMCommunicate OK [13:16:59]wFMCommunicate request_size=10 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 0D 02 02 05 A1 60 B3 05 43 [13:16:59]Write to MH i2c: E2 0D 00 92 42 80 0D 02 02 05 00 A1 60 B3 05 43 00 00 54 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 03 00 92 42 00 90 00 48 [13:16:59]RAPDU: 90 00 [13:16:59]wFMCommunicate OK [13:16:59]wFMCommunicate request_size=4 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 0D 03 02 [13:16:59]Write to MH i2c: E2 08 00 93 42 80 0D 03 02 00 00 00 00 50 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 0B 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 0B 00 93 42 00 74 9A 0B EE 37 09 C2 DB 90 00 35 [13:16:59]RAPDU: 74 9A 0B EE 37 09 C2 DB 90 00 [13:16:59]wFMCommunicate OK [13:16:59]SAM_PROTO_SignData done [13:16:59]FM_MakeSignedData done [13:16:59]CreateOFDProtocolMessage [13:16:59]wFMCommunicate request_size=4 [13:16:59]MH_SAM_APDU [13:16:59]CAPDU: 80 11 00 00 [13:16:59]Write to MH i2c: E2 08 00 94 42 80 11 00 00 00 00 00 00 50 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:59]Read from MH i2c: E2 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 17 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: E2 17 00 94 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [13:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:16:59]wFMCommunicate OK [13:16:59]CreateOFDProtocolMessage done [13:16:59]OFDSenderStorePacket 69830 [13:16:59]StoreOFDPacket docnum=69830 [13:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF 18 07 01 2F F7 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4D 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 10 01 00 35 04 06 00 45 A1 60 B3 05 43 74 9A 0B EE 37 09 C2 DB [13:16:59]CheckFolder [13:16:59]dirname=/storage/ofd_packets [13:16:59]CheckFolder done [13:16:59]ProducePacketName [13:16:59]name=ofd_packets/00069830 [13:16:59]NVStorageSaveData ofd_packets/00069830 [13:16:59]File name is /storage/ofd_packets/00069830 [13:16:59]Write 301 bytes [13:16:59]NVStorageSaveData done [13:16:59]OFDSenderStorePacket done [13:16:59]KKMCreateOFDPacket done [13:16:59]NVStorageSaveData kkm_last_timestamp [13:16:59]File name is /storage/kkm_last_timestamp [13:16:59]Write 4 bytes [13:16:59]NVStorageSaveData done [13:16:59]ExternCall_PrintAddStr [13:16:59]wPrintStart [13:16:59]Write to MH i2c: 01 00 00 95 42 D7 [13:16:59]Write i2c OK [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: 01 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: 01 07 00 [13:16:59]MH_I2C_Read... [13:16:59]Read from MH i2c: 01 07 00 95 42 00 00 00 00 00 FF 0F EC [13:16:59]RasterBufferAndPrint [13:16:59]line Счет N : (1)2885578 [13:16:59]line ИНН: 02508201610067 [13:16:59]line Контрольно-Кассовый Чек [13:16:59]line ПРОДАЖА [13:16:59]line ТРК (МРК, ГНК) : 32 [13:16:59]line Товар: 2710124130 [13:16:59]line Аи-92-К-5 [13:16:59]line 20.930 * 66.90 [13:16:59]line = 1400.22 [13:16:59]line НДС 12% НСП 1% [13:16:59]line > о реализуемом товаре [13:16:59]line ОКРУГЛЕНИЕ: -0.22 [13:16:59]line ИТОГО: 1400.00 [13:16:59]line Внесено: 1400.00 [13:16:59]line СДАЧА: 0.00 [13:16:59]line НСП 1% : 12.39 [13:16:59]line НДС 12% : 148.70 [13:16:59]line Наличными: 1400.00 [13:16:59]line Безнал.: 0.00 [13:16:59]line Место: АЗС № 85 "Партнер Нефть" [13:16:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:16:59]line СНО: Общий режим [13:16:59]line Чек 220 21.10.2024 13:17 [13:16:59]line Смена: 194 ФФД: 1.0 [13:16:59]line ЗНМ: 0300000167 [13:16:59]line РНМ: 0000000000156251 [13:16:59]line Версия ККМ: v1.0 [13:16:59]line ФМ: 0000000000963346 [13:16:59]line ФД: 69830 [13:16:59]line ФПД: 76559414396227 [13:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69830&fm=76559414396227&tin=02508201610067®Number=0000000000156251&sum=140000 [13:17:00]OFD Sender: Processing packet 69830 [packets to send 18, broken 17] [13:17:00]ProducePacketName [13:17:00]name=ofd_packets/00069830 [13:17:00]OFD Sender: To server: pG, [13:17:00]CommunicateWithHost lk.salyk.kg:30040 [13:17:00]ConnectInit lk.salyk.kg [13:17:00]written 0, free lines is 4095 [13:17:00]Connected sock=10 [13:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF 18 07 01 2F F7 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4D 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 10 01 00 35 04 06 00 45 A1 60 B3 05 43 74 9A 0B EE 37 09 C2 DB [13:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DA 5F 47 00 0B B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 10 01 00 F4 03 04 00 F1 FD 15 67 B6 04 01 00 00 6A BC 07 A0 07 D8 86 56 [13:17:00]CommunicateWithHost err = 0 [13:17:00]CheckOFDResponse [13:17:00]1017 (14) - 77093643461234 [13:17:00]1041 (16) - 0000000000963346 [13:17:00]1040 (4) - 69830 [13:17:00]1012 (4) - 21.10.2024 07:08 [13:17:00]1206 (1) - 0 [13:17:00]OFD Sender: Remove packet 69830 [13:17:00]ProducePacketName [13:17:00]name=ofd_packets/00069830 [13:17:00]NVStorageDeleteData [13:17:00]Write to MH i2c: 01 00 00 C0 42 02 [13:17:00]Write i2c OK [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: 01 [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: 01 07 00 [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: 01 07 00 C0 42 00 00 00 00 00 EC 0C 01 [13:17:00]RasterBufferAndPrint [13:17:00]line [13:17:00]line [13:17:00]line [13:17:00]line [13:17:00]line [13:17:00]written 0, free lines is 3314 [13:17:00]MH_Cut [13:17:00]Write to MH i2c: D1 01 00 C7 42 01 DB [13:17:00]Write i2c OK [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: D1 [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: D1 01 00 [13:17:00]MH_I2C_Read... [13:17:00]Read from MH i2c: D1 01 00 C7 42 00 DA [13:17:00]Write to MH i2c: 01 00 00 C8 42 0A [13:17:00]Write i2c OK [13:17:00]MH_I2C_Read... [13:17:00]OFD Sender: No OFD packet to send [13:17:01]*** Cut start [13:17:01]*** Partial cut [13:17:01]*** CUTSNS_PIN = 1 [13:17:01]*** CUTSNS_PIN = 0 [13:17:01]*** Brake cut motor [13:17:01]Read from MH i2c: 01 [13:17:01]MH_I2C_Read... [13:17:01]*** Stop cut motor [13:17:01]*** Cut end [13:17:01]Read from MH i2c: 01 07 00 [13:17:01]MH_I2C_Read... [13:17:01]Read from MH i2c: 01 07 00 C8 42 00 00 00 00 00 FF 0F 1F [13:17:01]process_action close_receipt done [13:17:01]requested_data is exist [13:17:01]produce_requested_data [13:17:01]requested_item fm.sn is exist - process it [13:17:01]wFMCommunicate request_size=4 [13:17:01]MH_SAM_APDU [13:17:01]CAPDU: 80 11 00 00 [13:17:01]Write to MH i2c: E2 08 00 C9 42 80 11 00 00 00 00 00 00 85 [13:17:01]Write i2c OK [13:17:01]MH_I2C_Read... [13:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:01]Read from MH i2c: E2 [13:17:01]MH_I2C_Read... [13:17:01]Read from MH i2c: E2 17 00 [13:17:01]MH_I2C_Read... [13:17:01]Read from MH i2c: E2 17 00 C9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [13:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:17:01]wFMCommunicate OK [13:17:01]requested_item fd.num is exist - process it [13:17:01]SAM_PROTO_GetFieldsCounters [13:17:01]wFMCommunicate request_size=4 [13:17:01]MH_SAM_APDU [13:17:01]CAPDU: 80 13 00 00 [13:17:01]Write to MH i2c: E2 08 00 CA 42 80 13 00 00 00 00 00 00 88 [13:17:01]Write i2c OK [13:17:01]MH_I2C_Read... [13:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:01]Read from MH i2c: E2 [13:17:01]MH_I2C_Read... [13:17:01]Read from MH i2c: E2 62 00 [13:17:01]MH_I2C_Read... [13:17:01]Read from MH i2c: E2 62 00 CA 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:01]wFMCommunicate OK [13:17:01]SAM_PROTO_GetFieldsCounters done [13:17:01]requested_item shift.num is exist - process it [13:17:01]requested_item shift.opened is exist - process it [13:17:01]req_shift_opened [13:17:01]FM_GetShiftState [13:17:01]SAM_PROTO_GetShiftState [13:17:01]wFMCommunicate request_size=4 [13:17:01]MH_SAM_APDU [13:17:01]CAPDU: 80 13 01 00 [13:17:01]Write to MH i2c: E2 08 00 CB 42 80 13 01 00 00 00 00 00 8A [13:17:01]Write i2c OK [13:17:01]MH_I2C_Read... [13:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:02]Read from MH i2c: E2 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: E2 0E 00 [13:17:02]MH_I2C_Read... [13:17:02]Read from MH i2c: E2 0E 00 CB 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B6 [13:17:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:17:02]wFMCommunicate OK [13:17:02]SAM_PROTO_GetShiftState done [13:17:02]FM_GetShiftState done [13:17:02]req_shift_opened done [13:17:02]requested_item shift.open_date is exist - process it [13:17:02]req_shift_open_date [13:17:02]req_shift_open_date done [13:17:02]produce_requested_data done [13:17:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69830,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:17:02]process_action_free close_receipt [13:17:02]json_value_free [13:17:02]json_value_free done [13:17:02]process_json_proto returns [13:17:02]Send response to host [13:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69830,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:17:02]free response buf [13:17:02]execute_script done [13:17:02]execute_script returns [13:17:02]free content buf [13:17:02]Sock 9.Close socket [13:17:02]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:39]accept exits with 8 [13:17:39]New connection [13:17:39]New thread 3067313508 created [13:17:39]Thread 3067456868 joined [13:17:39]Waiting for new connection... [13:17:39] Sock 8.Parse request [13:17:39]Sock 8.Check first char [13:17:39]Sock 8.First char is OK [13:17:39]request: POST /json_proto HTTP/1.0 [13:17:39]Method: POST [13:17:39]URL: /json_proto [13:17:39]Method is POST - this is cgi request [13:17:39]url: /json_proto [13:17:39]query_string will be loaded in cgi processing [13:17:39]execute_cgi json_proto POST (null) [13:17:39]execute_cgi path=json_proto method=POST [13:17:39]POST find Content-Length [13:17:39]Host: 172.17.50.3:8080 [13:17:39]Content-Length: 683 [13:17:39]Content-Type: application/json [13:17:39] [13:17:39]POST finish read [13:17:39]Found Content-Length = 683 [13:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885579", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:39]execute_script... [13:17: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)2885579", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:39]POST & json_proto [13:17:39]process_json_proto [13:17:39]json parsed OK: [13:17:39]protocol is kg_v1.0 [13:17:39]action value=close_receipt [13:17:39]process_action close_receipt [13:17:39]cmd_close_receipt [13:17:39]MH_GetDate [13:17:39]Write to MH i2c: F0 00 00 CC 42 FD [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: F0 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: F0 09 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: F0 09 00 CC 42 00 77 54 16 67 6B 98 1E 66 D5 [13:17:39]GetLastDocTimeStamp 1729516621 [13:17:39]current date 1729516663 [13:17:39]FM_GetShiftState [13:17:39]SAM_PROTO_GetShiftState [13:17:39]wFMCommunicate request_size=4 [13:17:39]MH_SAM_APDU [13:17:39]CAPDU: 80 13 01 00 [13:17:39]Write to MH i2c: E2 08 00 CD 42 80 13 01 00 00 00 00 00 8C [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:39]Read from MH i2c: E2 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 0E 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: E2 0E 00 CD 42 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B8 [13:17:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:17:39]wFMCommunicate OK [13:17:39]SAM_PROTO_GetShiftState done [13:17:39]FM_GetShiftState done [13:17:39]opened in 1729469703 [13:17:39]opened+sec_in_day 1729556103 [13:17:39]quantity*price = 100015 [13:17:39]sum+1 = 100017 [13:17:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 221 21.10.2024 13:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69831 ФПД: 258439978002371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69831&fm=258439978002371&tin=02508201610067®Number=0000000000156251&sum=100000 [13:17:40]StoreToDocumentArchive [13:17:40]shift 194 fd 69831 [13:17:40]save to /storage/0194/doc_00069831 [13:17:40]save last doc name /storage/0194/doc_00069831 to /storage/kkm_last_doc_name [13:17:40]save OK [13:17:40]Clear old archive folders... [13:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:40]tlvbuf is 00C50180 [13:17:40]SAM_PROTO_ClearQueue [13:17:40]wFMCommunicate request_size=4 [13:17:40]MH_SAM_APDU [13:17:40]CAPDU: 80 09 00 00 [13:17:40]Write to MH i2c: E2 08 00 DA 42 80 09 00 00 00 00 00 00 8E [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 DA 42 00 90 00 90 [13:17:40]RAPDU: 90 00 [13:17:40]wFMCommunicate OK [13:17:40]SAM_PROTO_ClearQueue done [13:17:40]KKMCreateOFDPacket [13:17:40]OFDProtocolAddRootSTLVToBuf [13:17:40]FM_MakeSignedData [13:17:40]FM_MakeSignedData [13:17:40]SAM_PROTO_SignData [13:17:40]wFMCommunicate request_size=4 [13:17:40]MH_SAM_APDU [13:17:40]CAPDU: 80 0D 01 02 [13:17:40]Write to MH i2c: E2 08 00 DB 42 80 0D 01 02 00 00 00 00 96 [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [13:17:40]RAPDU: 90 00 [13:17:40]wFMCommunicate OK [13:17:40]wFMCommunicate request_size=255 [13:17:40]MH_SAM_APDU [13:17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 10 01 00 35 04 06 00 EB [13:17:40]Write to MH i2c: E2 02 01 DC 42 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 10 01 00 35 04 06 00 EB 00 00 C3 [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [13:17:40]RAPDU: 90 00 [13:17:40]wFMCommunicate OK [13:17:40]wFMCommunicate request_size=10 [13:17:40]MH_SAM_APDU [13:17:40]CAPDU: 80 0D 02 02 05 0C BF 15 A7 C3 [13:17:40]Write to MH i2c: E2 0D 00 DD 42 80 0D 02 02 05 00 0C BF 15 A7 C3 00 00 ED [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [13:17:40]RAPDU: 90 00 [13:17:40]wFMCommunicate OK [13:17:40]wFMCommunicate request_size=4 [13:17:40]MH_SAM_APDU [13:17:40]CAPDU: 80 0D 03 02 [13:17:40]Write to MH i2c: E2 08 00 DE 42 80 0D 03 02 00 00 00 00 9B [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 0B 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 0B 00 DE 42 00 4F 57 66 7C 68 EE FD CF 90 00 46 [13:17:40]RAPDU: 4F 57 66 7C 68 EE FD CF 90 00 [13:17:40]wFMCommunicate OK [13:17:40]SAM_PROTO_SignData done [13:17:40]FM_MakeSignedData done [13:17:40]CreateOFDProtocolMessage [13:17:40]wFMCommunicate request_size=4 [13:17:40]MH_SAM_APDU [13:17:40]CAPDU: 80 11 00 00 [13:17:40]Write to MH i2c: E2 08 00 DF 42 80 11 00 00 00 00 00 00 9B [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:40]Read from MH i2c: E2 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 17 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: E2 17 00 DF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [13:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:17:40]wFMCommunicate OK [13:17:40]CreateOFDProtocolMessage done [13:17:40]OFDSenderStorePacket 69831 [13:17:40]StoreOFDPacket docnum=69831 [13:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 A6 07 01 CF F8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 10 01 00 35 04 06 00 EB 0C BF 15 A7 C3 4F 57 66 7C 68 EE FD CF [13:17:40]CheckFolder [13:17:40]dirname=/storage/ofd_packets [13:17:40]CheckFolder done [13:17:40]ProducePacketName [13:17:40]name=ofd_packets/00069831 [13:17:40]NVStorageSaveData ofd_packets/00069831 [13:17:40]File name is /storage/ofd_packets/00069831 [13:17:40]Write 301 bytes [13:17:40]NVStorageSaveData done [13:17:40]OFDSenderStorePacket done [13:17:40]KKMCreateOFDPacket done [13:17:40]NVStorageSaveData kkm_last_timestamp [13:17:40]File name is /storage/kkm_last_timestamp [13:17:40]Write 4 bytes [13:17:40]NVStorageSaveData done [13:17:40]ExternCall_PrintAddStr [13:17:40]wPrintStart [13:17:40]Write to MH i2c: 01 00 00 E0 42 22 [13:17:40]Write i2c OK [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: 01 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: 01 07 00 [13:17:40]MH_I2C_Read... [13:17:40]Read from MH i2c: 01 07 00 E0 42 00 00 00 00 00 FF 0F 37 [13:17:40]RasterBufferAndPrint [13:17:40]line Счет N : (1)2885579 [13:17:40]line ИНН: 02508201610067 [13:17:40]line Контрольно-Кассовый Чек [13:17:40]line ПРОДАЖА [13:17:40]line ТРК (МРК, ГНК) : 42 [13:17:40]line Товар: 2710124130 [13:17:40]line Аи-92-К-5 [13:17:40]line 14.950 * 66.90 [13:17:40]line = 1000.16 [13:17:40]line НДС 12% НСП 1% [13:17:40]line > о реализуемом товаре [13:17:40]line ОКРУГЛЕНИЕ: -0.16 [13:17:40]line ИТОГО: 1000.00 [13:17:40]line Внесено: 1000.00 [13:17:40]line СДАЧА: 0.00 [13:17:40]line НСП 1% : 8.85 [13:17:40]line НДС 12% : 106.21 [13:17:40]line Наличными: 1000.00 [13:17:40]line Безнал.: 0.00 [13:17:40]line Место: АЗС № 85 "Партнер Нефть" [13:17:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:17:40]line СНО: Общий режим [13:17:40]line Чек 221 21.10.2024 13:17 [13:17:40]line Смена: 194 ФФД: 1.0 [13:17:40]line ЗНМ: 0300000167 [13:17:40]line РНМ: 0000000000156251 [13:17:40]line Версия ККМ: v1.0 [13:17:40]line ФМ: 0000000000963346 [13:17:40]line ФД: 69831 [13:17:40]line ФПД: 258439978002371 [13:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69831&fm=258439978002371&tin=02508201610067®Number=0000000000156251&sum=100000 [13:17:41]OFD Sender: Processing packet 69831 [packets to send 18, broken 17] [13:17:41]ProducePacketName [13:17:41]name=ofd_packets/00069831 [13:17:41]OFD Sender: To server: pG, [13:17:41]CommunicateWithHost lk.salyk.kg:30040 [13:17:41]ConnectInit lk.salyk.kg [13:17:41]written 0, free lines is 4095 [13:17:41]Connected sock=10 [13:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 A6 07 01 CF F8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 77 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 10 01 00 35 04 06 00 EB 0C BF 15 A7 C3 4F 57 66 7C 68 EE FD CF [13:17:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F6 62 47 00 51 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 10 01 00 F4 03 04 00 1A FE 15 67 B6 04 01 00 00 4E F9 C6 0B EA EC D5 08 [13:17:41]CommunicateWithHost err = 0 [13:17:41]CheckOFDResponse [13:17:41]1017 (14) - 77093643461234 [13:17:41]1041 (16) - 0000000000963346 [13:17:41]1040 (4) - 69831 [13:17:41]1012 (4) - 21.10.2024 07:09 [13:17:41]1206 (1) - 0 [13:17:41]OFD Sender: Remove packet 69831 [13:17:41]ProducePacketName [13:17:41]name=ofd_packets/00069831 [13:17:41]NVStorageDeleteData [13:17:41]Write to MH i2c: 01 00 00 0B 43 4E [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: 01 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: 01 07 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: 01 07 00 0B 43 00 00 00 00 00 F0 0C 51 [13:17:41]RasterBufferAndPrint [13:17:41]line [13:17:41]line [13:17:41]line [13:17:41]line [13:17:41]line [13:17:41]written 0, free lines is 3318 [13:17:41]MH_Cut [13:17:41]Write to MH i2c: D1 01 00 12 43 01 27 [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: D1 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: D1 01 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: D1 01 00 12 43 00 26 [13:17:41]Write to MH i2c: 01 00 00 13 43 56 [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]OFD Sender: No OFD packet to send [13:17:42]*** Cut start [13:17:42]*** Partial cut [13:17:42]*** CUTSNS_PIN = 1 [13:17:42]*** CUTSNS_PIN = 0 [13:17:42]*** Brake cut motor [13:17:42]Read from MH i2c: 01 [13:17:42]MH_I2C_Read... [13:17:42]*** Stop cut motor [13:17:42]*** Cut end [13:17:42]Read from MH i2c: 01 07 00 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: 01 07 00 13 43 00 00 00 00 00 FF 0F 6B [13:17:42]process_action close_receipt done [13:17:42]requested_data is exist [13:17:42]produce_requested_data [13:17:42]requested_item fm.sn is exist - process it [13:17:42]wFMCommunicate request_size=4 [13:17:42]MH_SAM_APDU [13:17:42]CAPDU: 80 11 00 00 [13:17:42]Write to MH i2c: E2 08 00 14 43 80 11 00 00 00 00 00 00 D1 [13:17:42]Write i2c OK [13:17:42]MH_I2C_Read... [13:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:42]Read from MH i2c: E2 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: E2 17 00 [13:17:42]MH_I2C_Read... [13:17:42]Read from MH i2c: E2 17 00 14 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [13:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:17:42]wFMCommunicate OK [13:17:42]requested_item fd.num is exist - process it [13:17:42]SAM_PROTO_GetFieldsCounters [13:17:42]wFMCommunicate request_size=4 [13:17:42]MH_SAM_APDU [13:17:42]CAPDU: 80 13 00 00 [13:17:42]Write to MH i2c: E2 08 00 15 43 80 13 00 00 00 00 00 00 D4 [13:17:42]Write i2c OK [13:17:42]MH_I2C_Read... [13:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:43]Read from MH i2c: E2 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 62 00 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 62 00 15 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [13:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:43]wFMCommunicate OK [13:17:43]SAM_PROTO_GetFieldsCounters done [13:17:43]requested_item shift.num is exist - process it [13:17:43]requested_item shift.opened is exist - process it [13:17:43]req_shift_opened [13:17:43]FM_GetShiftState [13:17:43]SAM_PROTO_GetShiftState [13:17:43]wFMCommunicate request_size=4 [13:17:43]MH_SAM_APDU [13:17:43]CAPDU: 80 13 01 00 [13:17:43]Write to MH i2c: E2 08 00 16 43 80 13 01 00 00 00 00 00 D6 [13:17:43]Write i2c OK [13:17:43]MH_I2C_Read... [13:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:43]Read from MH i2c: E2 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 0E 00 [13:17:43]MH_I2C_Read... [13:17:43]Read from MH i2c: E2 0E 00 16 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 02 [13:17:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:17:43]wFMCommunicate OK [13:17:43]SAM_PROTO_GetShiftState done [13:17:43]FM_GetShiftState done [13:17:43]req_shift_opened done [13:17:43]requested_item shift.open_date is exist - process it [13:17:43]req_shift_open_date [13:17:43]req_shift_open_date done [13:17:43]produce_requested_data done [13:17:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69831,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:17:43]process_action_free close_receipt [13:17:43]json_value_free [13:17:43]json_value_free done [13:17:43]process_json_proto returns [13:17:43]Send response to host [13:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69831,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:17:43]free response buf [13:17:43]execute_script done [13:17:43]execute_script returns [13:17:43]free content buf [13:17:43]Sock 8.Close socket [13:17:43]Sock 8.Thread stoped [13:17:46]OFD Sender: No OFD packet to send [13:17:50]accept exits with 9 [13:17:50]New connection [13:17:50]New thread 3067456868 created [13:17:50]Thread 3067313508 joined [13:17:50]Waiting for new connection... [13:17:50] Sock 9.Parse request [13:17:50]Sock 9.Check first char [13:17:50]Sock 9.First char is OK [13:17:50]request: POST /json_proto HTTP/1.0 [13:17:50]Method: POST [13:17:50]URL: /json_proto [13:17:50]Method is POST - this is cgi request [13:17:50]url: /json_proto [13:17:50]query_string will be loaded in cgi processing [13:17:50]execute_cgi json_proto POST (null) [13:17:50]execute_cgi path=json_proto method=POST [13:17:50]POST find Content-Length [13:17:50]Host: 172.17.50.3:8080 [13:17:50]Content-Length: 689 [13:17:50]Content-Type: application/json [13:17:50] [13:17:50]POST finish read [13:17:50]Found Content-Length = 689 [13:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:17:50]execute_script... [13:17: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)2885580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:17:50]POST & json_proto [13:17:50]process_json_proto [13:17:50]json parsed OK: [13:17:50]protocol is kg_v1.0 [13:17:50]action value=close_receipt [13:17:50]process_action close_receipt [13:17:50]cmd_close_receipt [13:17:50]MH_GetDate [13:17:50]Write to MH i2c: F0 00 00 17 43 49 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: F0 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: F0 09 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: F0 09 00 17 43 00 81 54 16 67 6B 98 1E 66 2B [13:17:50]GetLastDocTimeStamp 1729516663 [13:17:50]current date 1729516673 [13:17:50]FM_GetShiftState [13:17:50]SAM_PROTO_GetShiftState [13:17:50]wFMCommunicate request_size=4 [13:17:50]MH_SAM_APDU [13:17:50]CAPDU: 80 13 01 00 [13:17:50]Write to MH i2c: E2 08 00 18 43 80 13 01 00 00 00 00 00 D8 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 0E 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 0E 00 18 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 04 [13:17:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:17:50]wFMCommunicate OK [13:17:50]SAM_PROTO_GetShiftState done [13:17:50]FM_GetShiftState done [13:17:50]opened in 1729469703 [13:17:50]opened+sec_in_day 1729556103 [13:17:50]quantity*price = 100051 [13:17:50]sum+1 = 100052 [13:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 222 21.10.2024 13:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69832 ФПД: 129986372831407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69832&fm=129986372831407&tin=02508201610067®Number=0000000000156251&sum=100000 [13:17:51]StoreToDocumentArchive [13:17:51]shift 194 fd 69832 [13:17:51]save to /storage/0194/doc_00069832 [13:17:51]save last doc name /storage/0194/doc_00069832 to /storage/kkm_last_doc_name [13:17:51]save OK [13:17:51]Clear old archive folders... [13:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:17:51]tlvbuf is 00C50300 [13:17:51]SAM_PROTO_ClearQueue [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 09 00 00 [13:17:51]Write to MH i2c: E2 08 00 25 43 80 09 00 00 00 00 00 00 DA [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 25 43 00 90 00 DC [13:17:51]RAPDU: 90 00 [13:17:51]wFMCommunicate OK [13:17:51]SAM_PROTO_ClearQueue done [13:17:51]KKMCreateOFDPacket [13:17:51]OFDProtocolAddRootSTLVToBuf [13:17:51]FM_MakeSignedData [13:17:51]FM_MakeSignedData [13:17:51]SAM_PROTO_SignData [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 0D 01 02 [13:17:51]Write to MH i2c: E2 08 00 26 43 80 0D 01 02 00 00 00 00 E2 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 26 43 00 90 00 DD [13:17:51]RAPDU: 90 00 [13:17:51]wFMCommunicate OK [13:17:51]wFMCommunicate request_size=255 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DE 00 00 00 F4 03 04 00 82 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 10 01 [13:17:51]Write to MH i2c: E2 02 01 27 43 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DE 00 00 00 F4 03 04 00 82 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 10 01 00 00 00 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 27 43 00 90 00 DE [13:17:51]RAPDU: 90 00 [13:17:51]wFMCommunicate OK [13:17:51]wFMCommunicate request_size=16 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 76 38 CF 94 08 AF [13:17:51]Write to MH i2c: E2 13 00 28 43 80 0D 02 02 0B 00 00 35 04 06 00 76 38 CF 94 08 AF 00 00 02 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 03 00 28 43 00 90 00 DF [13:17:51]RAPDU: 90 00 [13:17:51]wFMCommunicate OK [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 0D 03 02 [13:17:51]Write to MH i2c: E2 08 00 29 43 80 0D 03 02 00 00 00 00 E7 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 0B 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 0B 00 29 43 00 7D 91 E2 FB 90 0A 15 23 90 00 A5 [13:17:51]RAPDU: 7D 91 E2 FB 90 0A 15 23 90 00 [13:17:51]wFMCommunicate OK [13:17:51]SAM_PROTO_SignData done [13:17:51]FM_MakeSignedData done [13:17:51]CreateOFDProtocolMessage [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 11 00 00 [13:17:51]Write to MH i2c: E2 08 00 2A 43 80 11 00 00 00 00 00 00 E7 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 17 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 17 00 2A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [13:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:17:51]wFMCommunicate OK [13:17:51]CreateOFDProtocolMessage done [13:17:51]OFDSenderStorePacket 69832 [13:17:51]StoreOFDPacket docnum=69832 [13:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C0 9A 0D 01 78 A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DE 00 00 00 F4 03 04 00 82 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 10 01 00 35 04 06 00 76 38 CF 94 08 AF 7D 91 E2 FB 90 0A 15 23 [13:17:51]CheckFolder [13:17:51]dirname=/storage/ofd_packets [13:17:51]CheckFolder done [13:17:51]ProducePacketName [13:17:51]name=ofd_packets/00069832 [13:17:51]NVStorageSaveData ofd_packets/00069832 [13:17:51]File name is /storage/ofd_packets/00069832 [13:17:51]Write 307 bytes [13:17:51]NVStorageSaveData done [13:17:51]OFDSenderStorePacket done [13:17:51]KKMCreateOFDPacket done [13:17:51]NVStorageSaveData kkm_last_timestamp [13:17:51]File name is /storage/kkm_last_timestamp [13:17:51]Write 4 bytes [13:17:51]NVStorageSaveData done [13:17:51]ExternCall_PrintAddStr [13:17:51]wPrintStart [13:17:51]Write to MH i2c: 01 00 00 2B 43 6E [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 2B 43 00 00 00 00 00 FF 0F 83 [13:17:51]RasterBufferAndPrint [13:17:51]line Счет N : (1)2885580 [13:17:51]line ИНН: 02508201610067 [13:17:51]line Контрольно-Кассовый Чек [13:17:51]line ПРОДАЖА [13:17:51]line ТРК (МРК, ГНК) : 11 [13:17:51]line Товар: 2710194240 [13:17:51]line D-ENERGY Дт-К-2 [13:17:51]line 12.960 * 77.20 [13:17:51]line = 1000.51 [13:17:51]line НДС 12% НСП 1% [13:17:51]line > о реализуемом товаре [13:17:51]line ОКРУГЛЕНИЕ: -0.51 [13:17:51]line ИТОГО: 1000.00 [13:17:51]line Внесено: 1000.00 [13:17:51]line СДАЧА: 0.00 [13:17:51]line НСП 1% : 8.85 [13:17:51]line НДС 12% : 106.25 [13:17:51]line Наличными: 1000.00 [13:17:51]line Безнал.: 0.00 [13:17:51]line Место: АЗС № 85 "Партнер Нефть" [13:17:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:17:51]line СНО: Общий режим [13:17:51]line Чек 222 21.10.2024 13:17 [13:17:51]line Смена: 194 ФФД: 1.0 [13:17:51]line ЗНМ: 0300000167 [13:17:51]line РНМ: 0000000000156251 [13:17:51]line Версия ККМ: v1.0 [13:17:51]line ФМ: 0000000000963346 [13:17:51]line ФД: 69832 [13:17:51]line ФПД: 129986372831407 [13:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69832&fm=129986372831407&tin=02508201610067®Number=0000000000156251&sum=100000 [13:17:52]OFD Sender: Processing packet 69832 [packets to send 18, broken 17] [13:17:52]ProducePacketName [13:17:52]name=ofd_packets/00069832 [13:17:52]OFD Sender: To server: pG, [13:17:52]CommunicateWithHost lk.salyk.kg:30040 [13:17:52]ConnectInit lk.salyk.kg [13:17:52]written 0, free lines is 4095 [13:17:52]Connected sock=10 [13:17:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C0 9A 0D 01 78 A5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 DE 00 00 00 F4 03 04 00 82 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 10 01 00 35 04 06 00 76 38 CF 94 08 AF 7D 91 E2 FB 90 0A 15 23 [13:17:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4C 12 47 00 03 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 10 01 00 F4 03 04 00 25 FE 15 67 B6 04 01 00 00 B3 51 B6 7D 17 A4 D5 5E [13:17:52]CommunicateWithHost err = 0 [13:17:52]CheckOFDResponse [13:17:52]1017 (14) - 77093643461234 [13:17:52]1041 (16) - 0000000000963346 [13:17:52]1040 (4) - 69832 [13:17:52]1012 (4) - 21.10.2024 07:09 [13:17:52]1206 (1) - 0 [13:17:52]OFD Sender: Remove packet 69832 [13:17:52]ProducePacketName [13:17:52]name=ofd_packets/00069832 [13:17:52]NVStorageDeleteData [13:17:52]Write to MH i2c: 01 00 00 56 43 99 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: 01 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: 01 07 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: 01 07 00 56 43 00 00 00 00 00 F9 0C A5 [13:17:52]RasterBufferAndPrint [13:17:52]line [13:17:52]line [13:17:52]line [13:17:52]line [13:17:52]line [13:17:52]written 0, free lines is 3330 [13:17:52]MH_Cut [13:17:52]Write to MH i2c: D1 01 00 5D 43 01 72 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: D1 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: D1 01 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: D1 01 00 5D 43 00 71 [13:17:52]Write to MH i2c: 01 00 00 5E 43 A1 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]OFD Sender: No OFD packet to send [13:17:53]*** Cut start [13:17:53]*** Partial cut [13:17:53]*** CUTSNS_PIN = 1 [13:17:53]*** CUTSNS_PIN = 0 [13:17:53]*** Brake cut motor [13:17:53]Read from MH i2c: 01 [13:17:53]MH_I2C_Read... [13:17:53]*** Stop cut motor [13:17:53]*** Cut end [13:17:53]Read from MH i2c: 01 07 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 07 00 5E 43 00 00 00 00 00 FF 0F B6 [13:17:53]process_action close_receipt done [13:17:53]requested_data is exist [13:17:53]produce_requested_data [13:17:53]requested_item fm.sn is exist - process it [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 11 00 00 [13:17:53]Write to MH i2c: E2 08 00 5F 43 80 11 00 00 00 00 00 00 1C [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 17 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 17 00 5F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [13:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:17:53]wFMCommunicate OK [13:17:53]requested_item fd.num is exist - process it [13:17:53]SAM_PROTO_GetFieldsCounters [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 13 00 00 [13:17:53]Write to MH i2c: E2 08 00 60 43 80 13 00 00 00 00 00 00 1F [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:54]Read from MH i2c: E2 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 62 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 62 00 60 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:54]wFMCommunicate OK [13:17:54]SAM_PROTO_GetFieldsCounters done [13:17:54]requested_item shift.num is exist - process it [13:17:54]requested_item shift.opened is exist - process it [13:17:54]req_shift_opened [13:17:54]FM_GetShiftState [13:17:54]SAM_PROTO_GetShiftState [13:17:54]wFMCommunicate request_size=4 [13:17:54]MH_SAM_APDU [13:17:54]CAPDU: 80 13 01 00 [13:17:54]Write to MH i2c: E2 08 00 61 43 80 13 01 00 00 00 00 00 21 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:54]Read from MH i2c: E2 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0E 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0E 00 61 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4D [13:17:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:17:54]wFMCommunicate OK [13:17:54]SAM_PROTO_GetShiftState done [13:17:54]FM_GetShiftState done [13:17:54]req_shift_opened done [13:17:54]requested_item shift.open_date is exist - process it [13:17:54]req_shift_open_date [13:17:54]req_shift_open_date done [13:17:54]produce_requested_data done [13:17:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69832,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:17:54]process_action_free close_receipt [13:17:54]json_value_free [13:17:54]json_value_free done [13:17:54]process_json_proto returns [13:17:54]Send response to host [13:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69832,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:17:54]free response buf [13:17:54]execute_script done [13:17:54]execute_script returns [13:17:54]free content buf [13:17:54]Sock 9.Close socket [13:17:54]Sock 9.Thread stoped [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:48]accept exits with 8 [13:18:48]New connection [13:18:48]New thread 3067313508 created [13:18:48]Thread 3067456868 joined [13:18:48]Waiting for new connection... [13:18:48] Sock 8.Parse request [13:18:48]Sock 8.Check first char [13:18:48]Sock 8.First char is OK [13:18:48]request: POST /json_proto HTTP/1.0 [13:18:48]Method: POST [13:18:48]URL: /json_proto [13:18:48]Method is POST - this is cgi request [13:18:48]url: /json_proto [13:18:48]query_string will be loaded in cgi processing [13:18:48]execute_cgi json_proto POST (null) [13:18:48]execute_cgi path=json_proto method=POST [13:18:48]POST find Content-Length [13:18:48]Host: 172.17.50.3:8080 [13:18:48]Content-Length: 770 [13:18:48]Content-Type: application/json [13:18:48] [13:18:48]POST finish read [13:18:48]Found Content-Length = 770 [13:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:48]execute_script... [13:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:48]POST & json_proto [13:18:48]process_json_proto [13:18:48]json parsed OK: [13:18:48]protocol is kg_v1.0 [13:18:48]action value=close_receipt [13:18:48]process_action close_receipt [13:18:48]cmd_close_receipt [13:18:48]MH_GetDate [13:18:48]Write to MH i2c: F0 00 00 62 43 94 [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: F0 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: F0 09 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: F0 09 00 62 43 00 BC 54 16 67 6B 98 1E 66 B1 [13:18:48]GetLastDocTimeStamp 1729516674 [13:18:48]current date 1729516732 [13:18:48]FM_GetShiftState [13:18:48]SAM_PROTO_GetShiftState [13:18:48]wFMCommunicate request_size=4 [13:18:48]MH_SAM_APDU [13:18:48]CAPDU: 80 13 01 00 [13:18:48]Write to MH i2c: E2 08 00 63 43 80 13 01 00 00 00 00 00 23 [13:18:48]Write i2c OK [13:18:48]MH_I2C_Read... [13:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:48]Read from MH i2c: E2 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 0E 00 [13:18:48]MH_I2C_Read... [13:18:48]Read from MH i2c: E2 0E 00 63 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [13:18:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:18:48]wFMCommunicate OK [13:18:48]SAM_PROTO_GetShiftState done [13:18:48]FM_GetShiftState done [13:18:48]opened in 1729469703 [13:18:48]opened+sec_in_day 1729556103 [13:18:48]quantity*price = 100015 [13:18:48]sum+1 = 100017 [13:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 223 21.10.2024 13:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69833 ФПД: 26915894145654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69833&fm=26915894145654&tin=02508201610067®Number=0000000000156251&sum=100016 [13:18:49]StoreToDocumentArchive [13:18:49]shift 194 fd 69833 [13:18:49]save to /storage/0194/doc_00069833 [13:18:49]save last doc name /storage/0194/doc_00069833 to /storage/kkm_last_doc_name [13:18:49]save OK [13:18:49]Clear old archive folders... [13:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:49]tlvbuf is 00CA9690 [13:18:49]SAM_PROTO_ClearQueue [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 09 00 00 [13:18:49]Write to MH i2c: E2 08 00 70 43 80 09 00 00 00 00 00 00 25 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 70 43 00 90 00 27 [13:18:49]RAPDU: 90 00 [13:18:49]wFMCommunicate OK [13:18:49]SAM_PROTO_ClearQueue done [13:18:49]KKMCreateOFDPacket [13:18:49]OFDProtocolAddRootSTLVToBuf [13:18:49]FM_MakeSignedData [13:18:49]FM_MakeSignedData [13:18:49]SAM_PROTO_SignData [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 0D 01 02 [13:18:49]Write to MH i2c: E2 08 00 71 43 80 0D 01 02 00 00 00 00 2D [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 71 43 00 90 00 28 [13:18:49]RAPDU: 90 00 [13:18:49]wFMCommunicate OK [13:18:49]wFMCommunicate request_size=255 [13:18:49]MH_SAM_APDU [13:18: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 10 01 00 35 04 06 00 18 [13:18:49]Write to MH i2c: E2 02 01 72 43 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 10 01 00 35 04 06 00 18 00 00 F0 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 72 43 00 90 00 29 [13:18:49]RAPDU: 90 00 [13:18:49]wFMCommunicate OK [13:18:49]wFMCommunicate request_size=10 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 0D 02 02 05 7A D8 4F 32 76 [13:18:49]Write to MH i2c: E2 0D 00 73 43 80 0D 02 02 05 00 7A D8 4F 32 76 00 00 83 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 03 00 73 43 00 90 00 2A [13:18:49]RAPDU: 90 00 [13:18:49]wFMCommunicate OK [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 0D 03 02 [13:18:49]Write to MH i2c: E2 08 00 74 43 80 0D 03 02 00 00 00 00 32 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 0B 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 0B 00 74 43 00 3E D7 93 1A E0 D5 F3 D5 90 00 72 [13:18:49]RAPDU: 3E D7 93 1A E0 D5 F3 D5 90 00 [13:18:49]wFMCommunicate OK [13:18:49]SAM_PROTO_SignData done [13:18:49]FM_MakeSignedData done [13:18:49]CreateOFDProtocolMessage [13:18:49]wFMCommunicate request_size=4 [13:18:49]MH_SAM_APDU [13:18:49]CAPDU: 80 11 00 00 [13:18:49]Write to MH i2c: E2 08 00 75 43 80 11 00 00 00 00 00 00 32 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:49]Read from MH i2c: E2 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 17 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: E2 17 00 75 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [13:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:18:49]wFMCommunicate OK [13:18:49]CreateOFDProtocolMessage done [13:18:49]OFDSenderStorePacket 69833 [13:18:49]StoreOFDPacket docnum=69833 [13:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 70 A6 07 01 96 62 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 10 01 00 35 04 06 00 18 7A D8 4F 32 76 3E D7 93 1A E0 D5 F3 D5 [13:18:49]CheckFolder [13:18:49]dirname=/storage/ofd_packets [13:18:49]CheckFolder done [13:18:49]ProducePacketName [13:18:49]name=ofd_packets/00069833 [13:18:49]NVStorageSaveData ofd_packets/00069833 [13:18:49]File name is /storage/ofd_packets/00069833 [13:18:49]Write 301 bytes [13:18:49]NVStorageSaveData done [13:18:49]OFDSenderStorePacket done [13:18:49]KKMCreateOFDPacket done [13:18:49]NVStorageSaveData kkm_last_timestamp [13:18:49]File name is /storage/kkm_last_timestamp [13:18:49]Write 4 bytes [13:18:49]NVStorageSaveData done [13:18:49]ExternCall_PrintAddStr [13:18:49]wPrintStart [13:18:49]Write to MH i2c: 01 00 00 76 43 B9 [13:18:49]Write i2c OK [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: 01 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: 01 07 00 [13:18:49]MH_I2C_Read... [13:18:49]Read from MH i2c: 01 07 00 76 43 00 00 00 00 00 FF 0F CE [13:18:49]RasterBufferAndPrint [13:18:49]line Счет N : (1)2885581 [13:18:49]line ИНН: 02508201610067 [13:18:49]line Контрольно-Кассовый Чек [13:18:49]line ПРОДАЖА [13:18:49]line ТРК (МРК, ГНК) : 22 [13:18:49]line Товар: 2710124130 [13:18:49]line Аи-92-К-5 [13:18:49]line 14.950 * 66.90 [13:18:49]line = 1000.16 [13:18:49]line НДС 12% НСП 1% [13:18:49]line > о реализуемом товаре [13:18:49]line ИТОГО: 1000.16 [13:18:49]line НСП 1% : 8.85 [13:18:49]line НДС 12% : 106.21 [13:18:49]line Наличными: 0.00 [13:18:49]line Безнал.: 1000.16 [13:18:49]line Место: АЗС № 85 "Партнер Нефть" [13:18:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:18:49]line СНО: Общий режим [13:18:49]line Чек 223 21.10.2024 13:18 [13:18:49]line Смена: 194 ФФД: 1.0 [13:18:49]line ЗНМ: 0300000167 [13:18:49]line РНМ: 0000000000156251 [13:18:49]line Версия ККМ: v1.0 [13:18:49]line Платежная система: Mbank [13:18:49]line ФМ: 0000000000963346 [13:18:49]line ФД: 69833 [13:18:49]line ФПД: 26915894145654 [13:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69833&fm=26915894145654&tin=02508201610067®Number=0000000000156251&sum=100016 [13:18:50]OFD Sender: Processing packet 69833 [packets to send 18, broken 17] [13:18:50]ProducePacketName [13:18:50]name=ofd_packets/00069833 [13:18:50]OFD Sender: To server: pG, [13:18:50]CommunicateWithHost lk.salyk.kg:30040 [13:18:50]ConnectInit lk.salyk.kg [13:18:50]written 0, free lines is 4095 [13:18:50]Connected sock=10 [13:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 70 A6 07 01 96 62 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC 54 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 10 01 00 35 04 06 00 18 7A D8 4F 32 76 3E D7 93 1A E0 D5 F3 D5 [13:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0D EB 47 00 E9 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 10 01 00 F4 03 04 00 5F FE 15 67 B6 04 01 00 00 25 53 10 75 BB BC C1 B5 [13:18:50]CommunicateWithHost err = 0 [13:18:50]CheckOFDResponse [13:18:50]1017 (14) - 77093643461234 [13:18:50]1041 (16) - 0000000000963346 [13:18:50]1040 (4) - 69833 [13:18:50]1012 (4) - 21.10.2024 07:10 [13:18:50]1206 (1) - 0 [13:18:50]OFD Sender: Remove packet 69833 [13:18:50]ProducePacketName [13:18:50]name=ofd_packets/00069833 [13:18:50]NVStorageDeleteData [13:18:50]Write to MH i2c: 01 00 00 9F 43 E2 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: 01 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: 01 07 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: 01 07 00 9F 43 00 00 00 00 00 11 0D 07 [13:18:50]RasterBufferAndPrint [13:18:50]line [13:18:50]line [13:18:50]line [13:18:50]line [13:18:50]line [13:18:50]written 0, free lines is 3351 [13:18:50]MH_Cut [13:18:50]Write to MH i2c: D1 01 00 A6 43 01 BB [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: D1 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: D1 01 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: D1 01 00 A6 43 00 BA [13:18:50]Write to MH i2c: 01 00 00 A7 43 EA [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:51]OFD Sender: No OFD packet to send [13:18:51]*** Cut start [13:18:51]*** Partial cut [13:18:51]*** CUTSNS_PIN = 1 [13:18:51]*** CUTSNS_PIN = 0 [13:18:51]*** Brake cut motor [13:18:51]Read from MH i2c: 01 [13:18:51]MH_I2C_Read... [13:18:51]*** Stop cut motor [13:18:51]*** Cut end [13:18:51]Read from MH i2c: 01 07 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: 01 07 00 A7 43 00 00 00 00 00 FF 0F FF [13:18:51]process_action close_receipt done [13:18:51]requested_data is exist [13:18:51]produce_requested_data [13:18:51]requested_item fm.sn is exist - process it [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 11 00 00 [13:18:51]Write to MH i2c: E2 08 00 A8 43 80 11 00 00 00 00 00 00 65 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 A8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [13:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:18:52]wFMCommunicate OK [13:18:52]requested_item fd.num is exist - process it [13:18:52]SAM_PROTO_GetFieldsCounters [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 13 00 00 [13:18:52]Write to MH i2c: E2 08 00 A9 43 80 13 00 00 00 00 00 00 68 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 62 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 62 00 A9 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [13:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_GetFieldsCounters done [13:18:52]requested_item shift.num is exist - process it [13:18:52]requested_item shift.opened is exist - process it [13:18:52]req_shift_opened [13:18:52]FM_GetShiftState [13:18:52]SAM_PROTO_GetShiftState [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 13 01 00 [13:18:52]Write to MH i2c: E2 08 00 AA 43 80 13 01 00 00 00 00 00 6A [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0E 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0E 00 AA 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 96 [13:18:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_GetShiftState done [13:18:52]FM_GetShiftState done [13:18:52]req_shift_opened done [13:18:52]requested_item shift.open_date is exist - process it [13:18:52]req_shift_open_date [13:18:52]req_shift_open_date done [13:18:52]produce_requested_data done [13:18:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69833,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:18:52]process_action_free close_receipt [13:18:52]json_value_free [13:18:52]json_value_free done [13:18:52]process_json_proto returns [13:18:52]Send response to host [13:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69833,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:18:52]free response buf [13:18:52]execute_script done [13:18:52]execute_script returns [13:18:52]free content buf [13:18:52]Sock 8.Close socket [13:18:52]Sock 8.Thread stoped [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:31]accept exits with 9 [13:21:31]New connection [13:21:31]New thread 3067456868 created [13:21:31]Thread 3067313508 joined [13:21:31]Waiting for new connection... [13:21:31] Sock 9.Parse request [13:21:31]Sock 9.Check first char [13:21:31]Sock 9.First char is OK [13:21:31]request: POST /json_proto HTTP/1.0 [13:21:31]Method: POST [13:21:31]URL: /json_proto [13:21:31]Method is POST - this is cgi request [13:21:31]url: /json_proto [13:21:31]query_string will be loaded in cgi processing [13:21:31]execute_cgi json_proto POST (null) [13:21:31]execute_cgi path=json_proto method=POST [13:21:31]POST find Content-Length [13:21:31]Host: 172.17.50.3:8080 [13:21:31]Content-Length: 679 [13:21:31]Content-Type: application/json [13:21:31] [13:21:31]POST finish read [13:21:31]Found Content-Length = 679 [13:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885582", "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" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:31]execute_script... [13:21: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)2885582", "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" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:31]POST & json_proto [13:21:31]process_json_proto [13:21:31]json parsed OK: [13:21:31]protocol is kg_v1.0 [13:21:31]action value=close_receipt [13:21:31]process_action close_receipt [13:21:31]cmd_close_receipt [13:21:31]MH_GetDate [13:21:31]Write to MH i2c: F0 00 00 AB 43 DD [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: F0 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: F0 09 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: F0 09 00 AB 43 00 5F 55 16 67 6B 98 1E 66 9E [13:21:31]GetLastDocTimeStamp 1729516732 [13:21:31]current date 1729516895 [13:21:31]FM_GetShiftState [13:21:31]SAM_PROTO_GetShiftState [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 13 01 00 [13:21:31]Write to MH i2c: E2 08 00 AC 43 80 13 01 00 00 00 00 00 6C [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:31]Read from MH i2c: E2 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 0E 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 0E 00 AC 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 98 [13:21:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:21:31]wFMCommunicate OK [13:21:31]SAM_PROTO_GetShiftState done [13:21:31]FM_GetShiftState done [13:21:31]opened in 1729469703 [13:21:31]opened+sec_in_day 1729556103 [13:21:31]quantity*price = 75016 [13:21:31]sum+1 = 75017 [13:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 224 21.10.2024 13:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69834 ФПД: 22856708881619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132135&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69834&fm=22856708881619&tin=02508201610067®Number=0000000000156251&sum=75000 [13:21:32]StoreToDocumentArchive [13:21:32]shift 194 fd 69834 [13:21:32]save to /storage/0194/doc_00069834 [13:21:32]save last doc name /storage/0194/doc_00069834 to /storage/kkm_last_doc_name [13:21:32]save OK [13:21:32]Clear old archive folders... [13:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:32]tlvbuf is 00C48A20 [13:21:32]SAM_PROTO_ClearQueue [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 09 00 00 [13:21:32]Write to MH i2c: E2 08 00 B9 43 80 09 00 00 00 00 00 00 6E [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 03 00 B9 43 00 90 00 70 [13:21:32]RAPDU: 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_ClearQueue done [13:21:32]KKMCreateOFDPacket [13:21:32]OFDProtocolAddRootSTLVToBuf [13:21:32]FM_MakeSignedData [13:21:32]FM_MakeSignedData [13:21:32]SAM_PROTO_SignData [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 0D 01 02 [13:21:32]Write to MH i2c: E2 08 00 BA 43 80 0D 01 02 00 00 00 00 76 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:33]Read from MH i2c: E2 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 BA 43 00 90 00 71 [13:21:33]RAPDU: 90 00 [13:21:33]wFMCommunicate OK [13:21:33]wFMCommunicate request_size=255 [13:21:33]MH_SAM_APDU [13:21: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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5F 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 10 01 00 35 04 06 00 14 [13:21:33]Write to MH i2c: E2 02 01 BB 43 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5F 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 10 01 00 35 04 06 00 14 00 00 3C [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:33]Read from MH i2c: E2 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 BB 43 00 90 00 72 [13:21:33]RAPDU: 90 00 [13:21:33]wFMCommunicate OK [13:21:33]wFMCommunicate request_size=10 [13:21:33]MH_SAM_APDU [13:21:33]CAPDU: 80 0D 02 02 05 C9 BE 03 7C D3 [13:21:33]Write to MH i2c: E2 0D 00 BC 43 80 0D 02 02 05 00 C9 BE 03 7C D3 00 00 5C [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:33]Read from MH i2c: E2 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 03 00 BC 43 00 90 00 73 [13:21:33]RAPDU: 90 00 [13:21:33]wFMCommunicate OK [13:21:33]wFMCommunicate request_size=4 [13:21:33]MH_SAM_APDU [13:21:33]CAPDU: 80 0D 03 02 [13:21:33]Write to MH i2c: E2 08 00 BD 43 80 0D 03 02 00 00 00 00 7B [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:33]Read from MH i2c: E2 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 0B 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 0B 00 BD 43 00 FB 38 FE EA FF 7C E1 9B 90 00 8E [13:21:33]RAPDU: FB 38 FE EA FF 7C E1 9B 90 00 [13:21:33]wFMCommunicate OK [13:21:33]SAM_PROTO_SignData done [13:21:33]FM_MakeSignedData done [13:21:33]CreateOFDProtocolMessage [13:21:33]wFMCommunicate request_size=4 [13:21:33]MH_SAM_APDU [13:21:33]CAPDU: 80 11 00 00 [13:21:33]Write to MH i2c: E2 08 00 BE 43 80 11 00 00 00 00 00 00 7B [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:33]Read from MH i2c: E2 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 17 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: E2 17 00 BE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [13:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:21:33]wFMCommunicate OK [13:21:33]CreateOFDProtocolMessage done [13:21:33]OFDSenderStorePacket 69834 [13:21:33]StoreOFDPacket docnum=69834 [13:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E CB 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5F 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 10 01 00 35 04 06 00 14 C9 BE 03 7C D3 FB 38 FE EA FF 7C E1 9B [13:21:33]CheckFolder [13:21:33]dirname=/storage/ofd_packets [13:21:33]CheckFolder done [13:21:33]ProducePacketName [13:21:33]name=ofd_packets/00069834 [13:21:33]NVStorageSaveData ofd_packets/00069834 [13:21:33]File name is /storage/ofd_packets/00069834 [13:21:33]Write 301 bytes [13:21:33]NVStorageSaveData done [13:21:33]OFDSenderStorePacket done [13:21:33]KKMCreateOFDPacket done [13:21:33]NVStorageSaveData kkm_last_timestamp [13:21:33]File name is /storage/kkm_last_timestamp [13:21:33]Write 4 bytes [13:21:33]NVStorageSaveData done [13:21:33]ExternCall_PrintAddStr [13:21:33]wPrintStart [13:21:33]Write to MH i2c: 01 00 00 BF 43 02 [13:21:33]Write i2c OK [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 07 00 [13:21:33]MH_I2C_Read... [13:21:33]Read from MH i2c: 01 07 00 BF 43 00 00 00 00 00 FF 0F 17 [13:21:33]RasterBufferAndPrint [13:21:33]line Счет N : (1)2885582 [13:21:33]line ИНН: 02508201610067 [13:21:33]line Контрольно-Кассовый Чек [13:21:33]line ПРОДАЖА [13:21:33]line ТРК (МРК, ГНК) : 33 [13:21:33]line Товар: 2710124500 [13:21:33]line Аи-95-К-5 [13:21:33]line 10.110 * 74.20 [13:21:33]line = 750.16 [13:21:33]line НДС 12% НСП 1% [13:21:33]line > о реализуемом товаре [13:21:33]line ОКРУГЛЕНИЕ: -0.16 [13:21:33]line ИТОГО: 750.00 [13:21:33]line Внесено: 750.00 [13:21:33]line СДАЧА: 0.00 [13:21:33]line НСП 1% : 6.64 [13:21:33]line НДС 12% : 79.66 [13:21:33]line Наличными: 750.00 [13:21:33]line Безнал.: 0.00 [13:21:33]line Место: АЗС № 85 "Партнер Нефть" [13:21:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:21:33]line СНО: Общий режим [13:21:33]line Чек 224 21.10.2024 13:21 [13:21:33]line Смена: 194 ФФД: 1.0 [13:21:33]line ЗНМ: 0300000167 [13:21:33]line РНМ: 0000000000156251 [13:21:33]line Версия ККМ: v1.0 [13:21:33]line ФМ: 0000000000963346 [13:21:33]line ФД: 69834 [13:21:33]line ФПД: 22856708881619 [13:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132135&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69834&fm=22856708881619&tin=02508201610067®Number=0000000000156251&sum=75000 [13:21:33]OFD Sender: Processing packet 69834 [packets to send 18, broken 17] [13:21:33]ProducePacketName [13:21:33]name=ofd_packets/00069834 [13:21:33]OFD Sender: To server: pG, [13:21:33]CommunicateWithHost lk.salyk.kg:30040 [13:21:33]ConnectInit lk.salyk.kg [13:21:33]written 0, free lines is 4095 [13:21:33]Connected sock=10 [13:21:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E CB 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5F 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 10 01 00 35 04 06 00 14 C9 BE 03 7C D3 FB 38 FE EA FF 7C E1 9B [13:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EA 8B 47 00 C8 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 39 36 33 33 34 36 10 04 04 00 CA 10 01 00 F4 03 04 00 03 FF 15 67 B6 04 01 00 00 30 C9 22 6B 1C BD 72 16 [13:21:34]CommunicateWithHost err = 0 [13:21:34]CheckOFDResponse [13:21:34]1017 (14) - 77093643461234 [13:21:34]1041 (16) - 0000000000963346 [13:21:34]1040 (4) - 69834 [13:21:34]1012 (4) - 21.10.2024 07:13 [13:21:34]1206 (1) - 0 [13:21:34]OFD Sender: Remove packet 69834 [13:21:34]ProducePacketName [13:21:34]name=ofd_packets/00069834 [13:21:34]NVStorageDeleteData [13:21:34]Write to MH i2c: 01 00 00 EA 43 2D [13:21:34]Write i2c OK [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: 01 [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: 01 07 00 [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: 01 07 00 EA 43 00 00 00 00 00 F3 0C 33 [13:21:34]RasterBufferAndPrint [13:21:34]line [13:21:34]line [13:21:34]line [13:21:34]line [13:21:34]line [13:21:34]written 0, free lines is 3321 [13:21:34]MH_Cut [13:21:34]Write to MH i2c: D1 01 00 F1 43 01 06 [13:21:34]Write i2c OK [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: D1 [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: D1 01 00 [13:21:34]MH_I2C_Read... [13:21:34]Read from MH i2c: D1 01 00 F1 43 00 05 [13:21:34]Write to MH i2c: 01 00 00 F2 43 35 [13:21:34]Write i2c OK [13:21:34]MH_I2C_Read... [13:21:34]OFD Sender: No OFD packet to send [13:21:34]*** Cut start [13:21:34]*** Partial cut [13:21:34]*** CUTSNS_PIN = 1 [13:21:34]*** CUTSNS_PIN = 0 [13:21:35]*** Brake cut motor [13:21:35]Read from MH i2c: 01 [13:21:35]MH_I2C_Read... [13:21:35]*** Stop cut motor [13:21:35]*** Cut end [13:21:35]Read from MH i2c: 01 07 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: 01 07 00 F2 43 00 00 00 00 00 FF 0F 4A [13:21:35]process_action close_receipt done [13:21:35]requested_data is exist [13:21:35]produce_requested_data [13:21:35]requested_item fm.sn is exist - process it [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 11 00 00 [13:21:35]Write to MH i2c: E2 08 00 F3 43 80 11 00 00 00 00 00 00 B0 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 17 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 17 00 F3 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [13:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:21:35]wFMCommunicate OK [13:21:35]requested_item fd.num is exist - process it [13:21:35]SAM_PROTO_GetFieldsCounters [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 00 00 [13:21:35]Write to MH i2c: E2 08 00 F4 43 80 13 00 00 00 00 00 00 B3 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 62 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 62 00 F4 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [13:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetFieldsCounters done [13:21:35]requested_item shift.num is exist - process it [13:21:35]requested_item shift.opened is exist - process it [13:21:35]req_shift_opened [13:21:35]FM_GetShiftState [13:21:35]SAM_PROTO_GetShiftState [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 01 00 [13:21:35]Write to MH i2c: E2 08 00 F5 43 80 13 01 00 00 00 00 00 B5 [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 F5 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E1 [13:21:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetShiftState done [13:21:35]FM_GetShiftState done [13:21:35]req_shift_opened done [13:21:35]requested_item shift.open_date is exist - process it [13:21:35]req_shift_open_date [13:21:35]req_shift_open_date done [13:21:35]produce_requested_data done [13:21:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69834,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:21:35]process_action_free close_receipt [13:21:35]json_value_free [13:21:35]json_value_free done [13:21:35]process_json_proto returns [13:21:35]Send response to host [13:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69834,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:21:35]free response buf [13:21:35]execute_script done [13:21:35]execute_script returns [13:21:35]free content buf [13:21:35]Sock 9.Close socket [13:21:35]Sock 9.Thread stoped [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]accept exits with 8 [13:22:09]New connection [13:22:09]New thread 3067313508 created [13:22:09]Thread 3067456868 joined [13:22:09]Waiting for new connection... [13:22:09] Sock 8.Parse request [13:22:09]Sock 8.Check first char [13:22:09]Sock 8.First char is OK [13:22:09]request: POST /json_proto HTTP/1.0 [13:22:09]Method: POST [13:22:09]URL: /json_proto [13:22:09]Method is POST - this is cgi request [13:22:09]url: /json_proto [13:22:09]query_string will be loaded in cgi processing [13:22:09]execute_cgi json_proto POST (null) [13:22:09]execute_cgi path=json_proto method=POST [13:22:09]POST find Content-Length [13:22:09]Host: 172.17.50.3:8080 [13:22:09]Content-Length: 678 [13:22:09]Content-Type: application/json [13:22:09] [13:22:09]POST finish read [13:22:09]Found Content-Length = 678 [13:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885583", "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" : 9.440, "sum" : 700.45, "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" ] } } [13:22:09]execute_script... [13:22: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)2885583", "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" : 9.440, "sum" : 700.45, "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" ] } } [13:22:09]POST & json_proto [13:22:09]process_json_proto [13:22:09]json parsed OK: [13:22:09]protocol is kg_v1.0 [13:22:09]action value=close_receipt [13:22:09]process_action close_receipt [13:22:09]cmd_close_receipt [13:22:09]MH_GetDate [13:22:09]Write to MH i2c: F0 00 00 F6 43 28 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: F0 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: F0 09 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: F0 09 00 F6 43 00 85 55 16 67 6B 98 1E 66 0F [13:22:09]GetLastDocTimeStamp 1729516895 [13:22:09]current date 1729516933 [13:22:09]FM_GetShiftState [13:22:09]SAM_PROTO_GetShiftState [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 13 01 00 [13:22:09]Write to MH i2c: E2 08 00 F7 43 80 13 01 00 00 00 00 00 B7 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 0E 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 0E 00 F7 43 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E3 [13:22:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:22:09]wFMCommunicate OK [13:22:09]SAM_PROTO_GetShiftState done [13:22:09]FM_GetShiftState done [13:22:09]opened in 1729469703 [13:22:09]opened+sec_in_day 1729556103 [13:22:09]quantity*price = 70044 [13:22:09]sum+1 = 70046 [13:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 225 21.10.2024 13:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69835 ФПД: 8922074087303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69835&fm=8922074087303&tin=02508201610067®Number=0000000000156251&sum=70000 [13:22:10]StoreToDocumentArchive [13:22:10]shift 194 fd 69835 [13:22:10]save to /storage/0194/doc_00069835 [13:22:10]save last doc name /storage/0194/doc_00069835 to /storage/kkm_last_doc_name [13:22:10]save OK [13:22:10]Clear old archive folders... [13:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:10]tlvbuf is 00C699F0 [13:22:10]SAM_PROTO_ClearQueue [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 09 00 00 [13:22:10]Write to MH i2c: E2 08 00 04 44 80 09 00 00 00 00 00 00 BA [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 04 44 00 90 00 BC [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_ClearQueue done [13:22:10]KKMCreateOFDPacket [13:22:10]OFDProtocolAddRootSTLVToBuf [13:22:10]FM_MakeSignedData [13:22:10]FM_MakeSignedData [13:22:10]SAM_PROTO_SignData [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 01 02 [13:22:10]Write to MH i2c: E2 08 00 05 44 80 0D 01 02 00 00 00 00 C2 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 05 44 00 90 00 BD [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=255 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E1 00 00 00 F4 03 04 00 85 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 10 01 00 35 04 06 00 08 [13:22:10]Write to MH i2c: E2 02 01 06 44 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E1 00 00 00 F4 03 04 00 85 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 10 01 00 35 04 06 00 08 00 00 10 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 06 44 00 90 00 BE [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=10 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 02 02 05 1D 55 0E 7F 87 [13:22:10]Write to MH i2c: E2 0D 00 07 44 80 0D 02 02 05 00 1D 55 0E 7F 87 00 00 55 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 07 44 00 90 00 BF [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 03 02 [13:22:10]Write to MH i2c: E2 08 00 08 44 80 0D 03 02 00 00 00 00 C7 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 08 44 00 12 97 F9 24 4E EF ED 17 90 00 CF [13:22:10]RAPDU: 12 97 F9 24 4E EF ED 17 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_SignData done [13:22:10]FM_MakeSignedData done [13:22:10]CreateOFDProtocolMessage [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 11 00 00 [13:22:10]Write to MH i2c: E2 08 00 09 44 80 11 00 00 00 00 00 00 C7 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 09 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [13:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:22:10]wFMCommunicate OK [13:22:10]CreateOFDProtocolMessage done [13:22:10]OFDSenderStorePacket 69835 [13:22:10]StoreOFDPacket docnum=69835 [13:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 65 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E1 00 00 00 F4 03 04 00 85 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 10 01 00 35 04 06 00 08 1D 55 0E 7F 87 12 97 F9 24 4E EF ED 17 [13:22:10]CheckFolder [13:22:10]dirname=/storage/ofd_packets [13:22:10]CheckFolder done [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00069835 [13:22:10]NVStorageSaveData ofd_packets/00069835 [13:22:10]File name is /storage/ofd_packets/00069835 [13:22:10]Write 301 bytes [13:22:10]NVStorageSaveData done [13:22:10]OFDSenderStorePacket done [13:22:10]KKMCreateOFDPacket done [13:22:10]NVStorageSaveData kkm_last_timestamp [13:22:10]File name is /storage/kkm_last_timestamp [13:22:10]Write 4 bytes [13:22:10]NVStorageSaveData done [13:22:10]ExternCall_PrintAddStr [13:22:10]wPrintStart [13:22:10]Write to MH i2c: 01 00 00 0A 44 4E [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 0A 44 00 00 00 00 00 FF 0F 63 [13:22:10]RasterBufferAndPrint [13:22:10]line Счет N : (1)2885583 [13:22:10]line ИНН: 02508201610067 [13:22:10]line Контрольно-Кассовый Чек [13:22:10]line ПРОДАЖА [13:22:10]line ТРК (МРК, ГНК) : 43 [13:22:10]line Товар: 2710124500 [13:22:10]line Аи-95-К-5 [13:22:10]line 9.440 * 74.20 [13:22:10]line = 700.45 [13:22:10]line НДС 12% НСП 1% [13:22:10]line > о реализуемом товаре [13:22:10]line ОКРУГЛЕНИЕ: -0.45 [13:22:10]line ИТОГО: 700.00 [13:22:10]line Внесено: 700.00 [13:22:10]line СДАЧА: 0.00 [13:22:10]line НСП 1% : 6.20 [13:22:10]line НДС 12% : 74.38 [13:22:10]line Наличными: 700.00 [13:22:10]line Безнал.: 0.00 [13:22:10]line Место: АЗС № 85 "Партнер Нефть" [13:22:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:22:10]line СНО: Общий режим [13:22:10]line Чек 225 21.10.2024 13:22 [13:22:10]line Смена: 194 ФФД: 1.0 [13:22:10]line ЗНМ: 0300000167 [13:22:10]line РНМ: 0000000000156251 [13:22:10]line Версия ККМ: v1.0 [13:22:10]line ФМ: 0000000000963346 [13:22:10]line ФД: 69835 [13:22:10]line ФПД: 8922074087303 [13:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69835&fm=8922074087303&tin=02508201610067®Number=0000000000156251&sum=70000 [13:22:11]OFD Sender: Processing packet 69835 [packets to send 18, broken 17] [13:22:11]ProducePacketName [13:22:11]name=ofd_packets/00069835 [13:22:11]OFD Sender: To server: pG, [13:22:11]CommunicateWithHost lk.salyk.kg:30040 [13:22:11]ConnectInit lk.salyk.kg [13:22:11]written 0, free lines is 4095 [13:22:11]Connected sock=10 [13:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 65 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E1 00 00 00 F4 03 04 00 85 55 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 10 01 00 35 04 06 00 08 1D 55 0E 7F 87 12 97 F9 24 4E EF ED 17 [13:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 62 7D 47 00 E8 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 10 01 00 F4 03 04 00 28 FF 15 67 B6 04 01 00 00 27 1C B0 C5 EC 75 36 2B [13:22:11]CommunicateWithHost err = 0 [13:22:11]CheckOFDResponse [13:22:11]1017 (14) - 77093643461234 [13:22:11]1041 (16) - 0000000000963346 [13:22:11]1040 (4) - 69835 [13:22:11]1012 (4) - 21.10.2024 07:13 [13:22:11]1206 (1) - 0 [13:22:11]OFD Sender: Remove packet 69835 [13:22:11]ProducePacketName [13:22:11]name=ofd_packets/00069835 [13:22:11]NVStorageDeleteData [13:22:11]Write to MH i2c: 01 00 00 35 44 79 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 07 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: 01 07 00 35 44 00 00 00 00 00 F8 0C 84 [13:22:11]RasterBufferAndPrint [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]line [13:22:11]written 0, free lines is 3326 [13:22:11]MH_Cut [13:22:11]Write to MH i2c: D1 01 00 3C 44 01 52 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: D1 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: D1 01 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: D1 01 00 3C 44 00 51 [13:22:11]Write to MH i2c: 01 00 00 3D 44 81 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:12]OFD Sender: No OFD packet to send [13:22:12]*** Cut start [13:22:12]*** Partial cut [13:22:12]*** CUTSNS_PIN = 1 [13:22:12]*** CUTSNS_PIN = 0 [13:22:12]*** Brake cut motor [13:22:12]Read from MH i2c: 01 [13:22:12]MH_I2C_Read... [13:22:12]*** Stop cut motor [13:22:12]*** Cut end [13:22:12]Read from MH i2c: 01 07 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 07 00 3D 44 00 00 00 00 00 FF 0F 96 [13:22:12]process_action close_receipt done [13:22:12]requested_data is exist [13:22:12]produce_requested_data [13:22:12]requested_item fm.sn is exist - process it [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 11 00 00 [13:22:12]Write to MH i2c: E2 08 00 3E 44 80 11 00 00 00 00 00 00 FC [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 17 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 17 00 3E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [13:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:22:13]wFMCommunicate OK [13:22:13]requested_item fd.num is exist - process it [13:22:13]SAM_PROTO_GetFieldsCounters [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 13 00 00 [13:22:13]Write to MH i2c: E2 08 00 3F 44 80 13 00 00 00 00 00 00 FF [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 62 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 62 00 3F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:13]wFMCommunicate OK [13:22:13]SAM_PROTO_GetFieldsCounters done [13:22:13]requested_item shift.num is exist - process it [13:22:13]requested_item shift.opened is exist - process it [13:22:13]req_shift_opened [13:22:13]FM_GetShiftState [13:22:13]SAM_PROTO_GetShiftState [13:22:13]wFMCommunicate request_size=4 [13:22:13]MH_SAM_APDU [13:22:13]CAPDU: 80 13 01 00 [13:22:13]Write to MH i2c: E2 08 00 40 44 80 13 01 00 00 00 00 00 01 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:13]Read from MH i2c: E2 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0E 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: E2 0E 00 40 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2D [13:22:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:22:13]wFMCommunicate OK [13:22:13]SAM_PROTO_GetShiftState done [13:22:13]FM_GetShiftState done [13:22:13]req_shift_opened done [13:22:13]requested_item shift.open_date is exist - process it [13:22:13]req_shift_open_date [13:22:13]req_shift_open_date done [13:22:13]produce_requested_data done [13:22:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69835,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:22:13]process_action_free close_receipt [13:22:13]json_value_free [13:22:13]json_value_free done [13:22:13]process_json_proto returns [13:22:13]Send response to host [13:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69835,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:22:13]free response buf [13:22:13]execute_script done [13:22:13]execute_script returns [13:22:13]free content buf [13:22:13]Sock 8.Close socket [13:22:13]Sock 8.Thread stoped [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:31]accept exits with 9 [13:29:31]New connection [13:29:31]New thread 3067456868 created [13:29:31]Thread 3067313508 joined [13:29:31]Waiting for new connection... [13:29:31] Sock 9.Parse request [13:29:31]Sock 9.Check first char [13:29:31]Sock 9.First char is OK [13:29:31]request: POST /json_proto HTTP/1.0 [13:29:31]Method: POST [13:29:31]URL: /json_proto [13:29:31]Method is POST - this is cgi request [13:29:31]url: /json_proto [13:29:31]query_string will be loaded in cgi processing [13:29:31]execute_cgi json_proto POST (null) [13:29:31]execute_cgi path=json_proto method=POST [13:29:31]POST find Content-Length [13:29:31]Host: 172.17.50.3:8080 [13:29:31]Content-Length: 680 [13:29:31]Content-Type: application/json [13:29:31] [13:29:31]POST finish read [13:29:31]Found Content-Length = 680 [13:29:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:29:31]execute_script... [13:29: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)2885585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:29:31]POST & json_proto [13:29:31]process_json_proto [13:29:31]json parsed OK: [13:29:31]protocol is kg_v1.0 [13:29:31]action value=close_receipt [13:29:31]process_action close_receipt [13:29:31]cmd_close_receipt [13:29:31]MH_GetDate [13:29:31]Write to MH i2c: F0 00 00 41 44 74 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: F0 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: F0 09 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: F0 09 00 41 44 00 3F 57 16 67 6B 98 1E 66 17 [13:29:31]GetLastDocTimeStamp 1729516933 [13:29:31]current date 1729517375 [13:29:31]FM_GetShiftState [13:29:31]SAM_PROTO_GetShiftState [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 13 01 00 [13:29:31]Write to MH i2c: E2 08 00 42 44 80 13 01 00 00 00 00 00 03 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0E 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0E 00 42 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2F [13:29:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:29:31]wFMCommunicate OK [13:29:31]SAM_PROTO_GetShiftState done [13:29:31]FM_GetShiftState done [13:29:31]opened in 1729469703 [13:29:31]opened+sec_in_day 1729556103 [13:29:31]quantity*price = 100050 [13:29:31]sum+1 = 100052 [13:29:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 226 21.10.2024 13:29 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69836 ФПД: 123106016002498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132935&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69836&fm=123106016002498&tin=02508201610067®Number=0000000000156251&sum=100000 [13:29:32]StoreToDocumentArchive [13:29:32]shift 194 fd 69836 [13:29:32]save to /storage/0194/doc_00069836 [13:29:32]save last doc name /storage/0194/doc_00069836 to /storage/kkm_last_doc_name [13:29:32]save OK [13:29:32]Clear old archive folders... [13:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:32]tlvbuf is 00D6FAC0 [13:29:32]SAM_PROTO_ClearQueue [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 09 00 00 [13:29:32]Write to MH i2c: E2 08 00 4F 44 80 09 00 00 00 00 00 00 05 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 4F 44 00 90 00 07 [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]SAM_PROTO_ClearQueue done [13:29:32]KKMCreateOFDPacket [13:29:32]OFDProtocolAddRootSTLVToBuf [13:29:32]FM_MakeSignedData [13:29:32]FM_MakeSignedData [13:29:32]SAM_PROTO_SignData [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 01 02 [13:29:32]Write to MH i2c: E2 08 00 50 44 80 0D 01 02 00 00 00 00 0D [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]OFD Sender: No OFD packet to send [13:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 50 44 00 90 00 08 [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=255 [13:29:32]MH_SAM_APDU [13:29:32]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 32 31 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 E2 00 00 00 F4 03 04 00 3F 57 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 10 01 00 35 04 06 00 6F F6 DA 5A [13:29:32]Write to MH i2c: E2 02 01 51 44 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 32 31 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 E2 00 00 00 F4 03 04 00 3F 57 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 10 01 00 35 04 06 00 6F F6 DA 5A 00 00 B9 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 51 44 00 90 00 09 [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=7 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 02 02 02 81 C2 [13:29:32]Write to MH i2c: E2 0A 00 52 44 80 0D 02 02 02 00 81 C2 00 00 57 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 52 44 00 90 00 0A [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 03 02 [13:29:32]Write to MH i2c: E2 08 00 53 44 80 0D 03 02 00 00 00 00 12 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 0B 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 0B 00 53 44 00 21 9B 13 5F 7A 54 F3 37 90 00 39 [13:29:32]RAPDU: 21 9B 13 5F 7A 54 F3 37 90 00 [13:29:32]wFMCommunicate OK [13:29:32]SAM_PROTO_SignData done [13:29:32]FM_MakeSignedData done [13:29:32]CreateOFDProtocolMessage [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 11 00 00 [13:29:32]Write to MH i2c: E2 08 00 54 44 80 11 00 00 00 00 00 00 12 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 17 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 17 00 54 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [13:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:29:32]wFMCommunicate OK [13:29:32]CreateOFDProtocolMessage done [13:29:32]OFDSenderStorePacket 69836 [13:29:32]StoreOFDPacket docnum=69836 [13:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D5 93 04 01 75 32 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 32 31 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 E2 00 00 00 F4 03 04 00 3F 57 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 10 01 00 35 04 06 00 6F F6 DA 5A 81 C2 21 9B 13 5F 7A 54 F3 37 [13:29:32]CheckFolder [13:29:32]dirname=/storage/ofd_packets [13:29:32]CheckFolder done [13:29:32]ProducePacketName [13:29:32]name=ofd_packets/00069836 [13:29:32]NVStorageSaveData ofd_packets/00069836 [13:29:32]File name is /storage/ofd_packets/00069836 [13:29:32]Write 298 bytes [13:29:32]NVStorageSaveData done [13:29:32]OFDSenderStorePacket done [13:29:32]KKMCreateOFDPacket done [13:29:32]NVStorageSaveData kkm_last_timestamp [13:29:32]File name is /storage/kkm_last_timestamp [13:29:32]Write 4 bytes [13:29:32]NVStorageSaveData done [13:29:32]ExternCall_PrintAddStr [13:29:32]wPrintStart [13:29:32]Write to MH i2c: 01 00 00 55 44 99 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 07 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 07 00 55 44 00 00 00 00 00 FF 0F AE [13:29:32]RasterBufferAndPrint [13:29:32]line Счет N : (1)2885585 [13:29:32]line ИНН: 02508201610067 [13:29:32]line Контрольно-Кассовый Чек [13:29:32]line ПРОДАЖА [13:29:32]line ТРК (МРК, ГНК) : 51 [13:29:32]line Товар: 2710194210 [13:29:32]line ДТ-К-5 [13:29:32]line 13.130 * 76.20 [13:29:32]line = 1000.51 [13:29:32]line НДС 12% НСП 1% [13:29:32]line > о реализуемом товаре [13:29:32]line ОКРУГЛЕНИЕ: -0.51 [13:29:32]line ИТОГО: 1000.00 [13:29:32]line Внесено: 1000.00 [13:29:32]line СДАЧА: 0.00 [13:29:32]line НСП 1% : 8.85 [13:29:32]line НДС 12% : 106.25 [13:29:32]line Наличными: 1000.00 [13:29:32]line Безнал.: 0.00 [13:29:32]line Место: АЗС № 85 "Партнер Нефть" [13:29:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:29:32]line СНО: Общий режим [13:29:32]line Чек 226 21.10.2024 13:29 [13:29:32]line Смена: 194 ФФД: 1.0 [13:29:32]line ЗНМ: 0300000167 [13:29:32]line РНМ: 0000000000156251 [13:29:32]line Версия ККМ: v1.0 [13:29:32]line ФМ: 0000000000963346 [13:29:32]line ФД: 69836 [13:29:32]line ФПД: 123106016002498 [13:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132935&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69836&fm=123106016002498&tin=02508201610067®Number=0000000000156251&sum=100000 [13:29:33]OFD Sender: Processing packet 69836 [packets to send 18, broken 17] [13:29:33]ProducePacketName [13:29:33]name=ofd_packets/00069836 [13:29:33]OFD Sender: To server: pG, [13:29:33]CommunicateWithHost lk.salyk.kg:30040 [13:29:33]ConnectInit lk.salyk.kg [13:29:33]written 0, free lines is 4095 [13:29:33]Connected sock=10 [13:29:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D5 93 04 01 75 32 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 32 31 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 E2 00 00 00 F4 03 04 00 3F 57 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 10 01 00 35 04 06 00 6F F6 DA 5A 81 C2 21 9B 13 5F 7A 54 F3 37 [13:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 31 87 47 00 E5 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 10 01 00 F4 03 04 00 E2 00 16 67 B6 04 01 00 00 76 62 CD 07 53 3A 29 7A [13:29:33]CommunicateWithHost err = 0 [13:29:33]CheckOFDResponse [13:29:33]1017 (14) - 77093643461234 [13:29:33]1041 (16) - 0000000000963346 [13:29:33]1040 (4) - 69836 [13:29:33]1012 (4) - 21.10.2024 07:21 [13:29:33]1206 (1) - 0 [13:29:33]OFD Sender: Remove packet 69836 [13:29:33]ProducePacketName [13:29:33]name=ofd_packets/00069836 [13:29:33]NVStorageDeleteData [13:29:33]Write to MH i2c: 01 00 00 80 44 C4 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 07 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 07 00 80 44 00 00 00 00 00 FA 0C D1 [13:29:33]RasterBufferAndPrint [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]written 0, free lines is 3331 [13:29:33]MH_Cut [13:29:33]Write to MH i2c: D1 01 00 87 44 01 9D [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 01 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 01 00 87 44 00 9C [13:29:33]Write to MH i2c: 01 00 00 88 44 CC [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:34]OFD Sender: No OFD packet to send [13:29:34]*** Cut start [13:29:34]*** Partial cut [13:29:34]*** CUTSNS_PIN = 1 [13:29:34]*** CUTSNS_PIN = 0 [13:29:34]*** Brake cut motor [13:29:34]Read from MH i2c: 01 [13:29:34]MH_I2C_Read... [13:29:34]*** Stop cut motor [13:29:34]*** Cut end [13:29:34]Read from MH i2c: 01 07 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: 01 07 00 88 44 00 00 00 00 00 FF 0F E1 [13:29:34]process_action close_receipt done [13:29:34]requested_data is exist [13:29:34]produce_requested_data [13:29:34]requested_item fm.sn is exist - process it [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 11 00 00 [13:29:34]Write to MH i2c: E2 08 00 89 44 80 11 00 00 00 00 00 00 47 [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 89 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [13:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:29:35]wFMCommunicate OK [13:29:35]requested_item fd.num is exist - process it [13:29:35]SAM_PROTO_GetFieldsCounters [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 13 00 00 [13:29:35]Write to MH i2c: E2 08 00 8A 44 80 13 00 00 00 00 00 00 4A [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 62 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 62 00 8A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [13:29:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:35]wFMCommunicate OK [13:29:35]SAM_PROTO_GetFieldsCounters done [13:29:35]requested_item shift.num is exist - process it [13:29:35]requested_item shift.opened is exist - process it [13:29:35]req_shift_opened [13:29:35]FM_GetShiftState [13:29:35]SAM_PROTO_GetShiftState [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 13 01 00 [13:29:35]Write to MH i2c: E2 08 00 8B 44 80 13 01 00 00 00 00 00 4C [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0E 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0E 00 8B 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 78 [13:29:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:29:35]wFMCommunicate OK [13:29:35]SAM_PROTO_GetShiftState done [13:29:35]FM_GetShiftState done [13:29:35]req_shift_opened done [13:29:35]requested_item shift.open_date is exist - process it [13:29:35]req_shift_open_date [13:29:35]req_shift_open_date done [13:29:35]produce_requested_data done [13:29:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69836,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:29:35]process_action_free close_receipt [13:29:35]json_value_free [13:29:35]json_value_free done [13:29:35]process_json_proto returns [13:29:35]Send response to host [13:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69836,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:29:35]free response buf [13:29:35]execute_script done [13:29:35]execute_script returns [13:29:35]free content buf [13:29:35]Sock 9.Close socket [13:29:35]Sock 9.Thread stoped [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:36]accept exits with 8 [13:36:36]New connection [13:36:36]New thread 3067313508 created [13:36:36]Thread 3067456868 joined [13:36:36]Waiting for new connection... [13:36:36] Sock 8.Parse request [13:36:36]Sock 8.Check first char [13:36:36]Sock 8.First char is OK [13:36:36]request: POST /json_proto HTTP/1.0 [13:36:36]Method: POST [13:36:36]URL: /json_proto [13:36:36]Method is POST - this is cgi request [13:36:36]url: /json_proto [13:36:36]query_string will be loaded in cgi processing [13:36:36]execute_cgi json_proto POST (null) [13:36:36]execute_cgi path=json_proto method=POST [13:36:36]POST find Content-Length [13:36:36]Host: 172.17.50.3:8080 [13:36:36]Content-Length: 770 [13:36:36]Content-Type: application/json [13:36:36] [13:36:36]POST finish read [13:36:36]Found Content-Length = 770 [13:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:36]execute_script... [13:36: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)2885586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:36]POST & json_proto [13:36:36]process_json_proto [13:36:36]json parsed OK: [13:36:36]protocol is kg_v1.0 [13:36:36]action value=close_receipt [13:36:36]process_action close_receipt [13:36:36]cmd_close_receipt [13:36:36]MH_GetDate [13:36:36]Write to MH i2c: F0 00 00 8C 44 BF [13:36:36]Write i2c OK [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 09 00 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: F0 09 00 8C 44 00 E8 58 16 67 6B 98 1E 66 0C [13:36:36]GetLastDocTimeStamp 1729517375 [13:36:36]current date 1729517800 [13:36:36]FM_GetShiftState [13:36:36]SAM_PROTO_GetShiftState [13:36:36]wFMCommunicate request_size=4 [13:36:36]MH_SAM_APDU [13:36:36]CAPDU: 80 13 01 00 [13:36:36]Write to MH i2c: E2 08 00 8D 44 80 13 01 00 00 00 00 00 4E [13:36:36]Write i2c OK [13:36:36]MH_I2C_Read... [13:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:36]Read from MH i2c: E2 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: E2 0E 00 [13:36:36]MH_I2C_Read... [13:36:36]Read from MH i2c: E2 0E 00 8D 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7A [13:36:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:36:36]wFMCommunicate OK [13:36:36]SAM_PROTO_GetShiftState done [13:36:36]FM_GetShiftState done [13:36:36]opened in 1729469703 [13:36:36]opened+sec_in_day 1729556103 [13:36:36]quantity*price = 100015 [13:36:36]sum+1 = 100017 [13:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 227 21.10.2024 13:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69837 ФПД: 223215792681957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69837&fm=223215792681957&tin=02508201610067®Number=0000000000156251&sum=100016 [13:36:37]StoreToDocumentArchive [13:36:37]shift 194 fd 69837 [13:36:37]save to /storage/0194/doc_00069837 [13:36:37]save last doc name /storage/0194/doc_00069837 to /storage/kkm_last_doc_name [13:36:37]save OK [13:36:37]Clear old archive folders... [13:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:37]tlvbuf is B6E23640 [13:36:37]SAM_PROTO_ClearQueue [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 09 00 00 [13:36:37]Write to MH i2c: E2 08 00 9A 44 80 09 00 00 00 00 00 00 50 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]SAM_PROTO_ClearQueue done [13:36:37]KKMCreateOFDPacket [13:36:37]OFDProtocolAddRootSTLVToBuf [13:36:37]FM_MakeSignedData [13:36:37]FM_MakeSignedData [13:36:37]SAM_PROTO_SignData [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 01 02 [13:36:37]Write to MH i2c: E2 08 00 9B 44 80 0D 01 02 00 00 00 00 58 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 9B 44 00 90 00 53 [13:36:38]RAPDU: 90 00 [13:36:38]wFMCommunicate OK [13:36:38]wFMCommunicate request_size=255 [13:36:38]MH_SAM_APDU [13:36: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E8 58 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 10 01 00 35 04 06 00 CB [13:36:38]Write to MH i2c: E2 02 01 9C 44 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E8 58 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 10 01 00 35 04 06 00 CB 00 00 06 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 9C 44 00 90 00 54 [13:36:38]RAPDU: 90 00 [13:36:38]wFMCommunicate OK [13:36:38]wFMCommunicate request_size=10 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 0D 02 02 05 03 7A 07 F3 E5 [13:36:38]Write to MH i2c: E2 0D 00 9D 44 80 0D 02 02 05 00 03 7A 07 F3 E5 00 00 C1 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 03 00 9D 44 00 90 00 55 [13:36:38]RAPDU: 90 00 [13:36:38]wFMCommunicate OK [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 0D 03 02 [13:36:38]Write to MH i2c: E2 08 00 9E 44 80 0D 03 02 00 00 00 00 5D [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0B 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0B 00 9E 44 00 4C D7 4C 20 E3 D0 1F 72 90 00 31 [13:36:38]RAPDU: 4C D7 4C 20 E3 D0 1F 72 90 00 [13:36:38]wFMCommunicate OK [13:36:38]SAM_PROTO_SignData done [13:36:38]FM_MakeSignedData done [13:36:38]CreateOFDProtocolMessage [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 11 00 00 [13:36:38]Write to MH i2c: E2 08 00 9F 44 80 11 00 00 00 00 00 00 5D [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 9F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [13:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:38]wFMCommunicate OK [13:36:38]CreateOFDProtocolMessage done [13:36:38]OFDSenderStorePacket 69837 [13:36:38]StoreOFDPacket docnum=69837 [13:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D 5E 07 01 F7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E8 58 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 10 01 00 35 04 06 00 CB 03 7A 07 F3 E5 4C D7 4C 20 E3 D0 1F 72 [13:36:38]CheckFolder [13:36:38]dirname=/storage/ofd_packets [13:36:38]CheckFolder done [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00069837 [13:36:38]NVStorageSaveData ofd_packets/00069837 [13:36:38]File name is /storage/ofd_packets/00069837 [13:36:38]Write 301 bytes [13:36:38]NVStorageSaveData done [13:36:38]OFDSenderStorePacket done [13:36:38]KKMCreateOFDPacket done [13:36:38]NVStorageSaveData kkm_last_timestamp [13:36:38]File name is /storage/kkm_last_timestamp [13:36:38]Write 4 bytes [13:36:38]NVStorageSaveData done [13:36:38]ExternCall_PrintAddStr [13:36:38]wPrintStart [13:36:38]Write to MH i2c: 01 00 00 A0 44 E4 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 A0 44 00 00 00 00 00 FF 0F F9 [13:36:38]RasterBufferAndPrint [13:36:38]line Счет N : (1)2885586 [13:36:38]line ИНН: 02508201610067 [13:36:38]line Контрольно-Кассовый Чек [13:36:38]line ПРОДАЖА [13:36:38]line ТРК (МРК, ГНК) : 22 [13:36:38]line Товар: 2710124130 [13:36:38]line Аи-92-К-5 [13:36:38]line 14.950 * 66.90 [13:36:38]line = 1000.16 [13:36:38]line НДС 12% НСП 1% [13:36:38]line > о реализуемом товаре [13:36:38]line ИТОГО: 1000.16 [13:36:38]line НСП 1% : 8.85 [13:36:38]line НДС 12% : 106.21 [13:36:38]line Наличными: 0.00 [13:36:38]line Безнал.: 1000.16 [13:36:38]line Место: АЗС № 85 "Партнер Нефть" [13:36:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:36:38]line СНО: Общий режим [13:36:38]line Чек 227 21.10.2024 13:36 [13:36:38]line Смена: 194 ФФД: 1.0 [13:36:38]line ЗНМ: 0300000167 [13:36:38]line РНМ: 0000000000156251 [13:36:38]line Версия ККМ: v1.0 [13:36:38]line Платежная система: Mbank [13:36:38]line ФМ: 0000000000963346 [13:36:38]line ФД: 69837 [13:36:38]line ФПД: 223215792681957 [13:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69837&fm=223215792681957&tin=02508201610067®Number=0000000000156251&sum=100016 [13:36:38]OFD Sender: Processing packet 69837 [packets to send 18, broken 17] [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00069837 [13:36:38]OFD Sender: To server: pG, [13:36:38]CommunicateWithHost lk.salyk.kg:30040 [13:36:38]ConnectInit lk.salyk.kg [13:36:38]written 0, free lines is 4095 [13:36:38]Connected sock=10 [13:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D 5E 07 01 F7 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E8 58 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 10 01 00 35 04 06 00 CB 03 7A 07 F3 E5 4C D7 4C 20 E3 D0 1F 72 [13:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EB F1 47 00 E2 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 10 01 00 F4 03 04 00 8C 02 16 67 B6 04 01 00 00 B4 73 97 40 D2 A1 96 49 [13:36:39]CommunicateWithHost err = 0 [13:36:39]CheckOFDResponse [13:36:39]1017 (14) - 77093643461234 [13:36:39]1041 (16) - 0000000000963346 [13:36:39]1040 (4) - 69837 [13:36:39]1012 (4) - 21.10.2024 07:28 [13:36:39]1206 (1) - 0 [13:36:39]OFD Sender: Remove packet 69837 [13:36:39]ProducePacketName [13:36:39]name=ofd_packets/00069837 [13:36:39]NVStorageDeleteData [13:36:39]Write to MH i2c: 01 00 00 C9 44 0D [13:36:39]Write i2c OK [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: 01 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: 01 07 00 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: 01 07 00 C9 44 00 00 00 00 00 21 0D 42 [13:36:39]RasterBufferAndPrint [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]line [13:36:39]written 0, free lines is 3367 [13:36:39]MH_Cut [13:36:39]Write to MH i2c: D1 01 00 D0 44 01 E6 [13:36:39]Write i2c OK [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 01 00 [13:36:39]MH_I2C_Read... [13:36:39]Read from MH i2c: D1 01 00 D0 44 00 E5 [13:36:39]Write to MH i2c: 01 00 00 D1 44 15 [13:36:39]Write i2c OK [13:36:39]MH_I2C_Read... [13:36:39]OFD Sender: No OFD packet to send [13:36:39]*** Cut start [13:36:39]*** Partial cut [13:36:39]*** CUTSNS_PIN = 1 [13:36:39]*** CUTSNS_PIN = 0 [13:36:40]*** Brake cut motor [13:36:40]Read from MH i2c: 01 [13:36:40]MH_I2C_Read... [13:36:40]*** Stop cut motor [13:36:40]*** Cut end [13:36:40]Read from MH i2c: 01 07 00 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: 01 07 00 D1 44 00 00 00 00 00 FF 0F 2A [13:36:40]process_action close_receipt done [13:36:40]requested_data is exist [13:36:40]produce_requested_data [13:36:40]requested_item fm.sn is exist - process it [13:36:40]wFMCommunicate request_size=4 [13:36:40]MH_SAM_APDU [13:36:40]CAPDU: 80 11 00 00 [13:36:40]Write to MH i2c: E2 08 00 D2 44 80 11 00 00 00 00 00 00 90 [13:36:40]Write i2c OK [13:36:40]MH_I2C_Read... [13:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:40]Read from MH i2c: E2 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 17 00 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 17 00 D2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [13:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:40]wFMCommunicate OK [13:36:40]requested_item fd.num is exist - process it [13:36:40]SAM_PROTO_GetFieldsCounters [13:36:40]wFMCommunicate request_size=4 [13:36:40]MH_SAM_APDU [13:36:40]CAPDU: 80 13 00 00 [13:36:40]Write to MH i2c: E2 08 00 D3 44 80 13 00 00 00 00 00 00 93 [13:36:40]Write i2c OK [13:36:40]MH_I2C_Read... [13:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:40]Read from MH i2c: E2 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 62 00 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 62 00 D3 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:40]wFMCommunicate OK [13:36:40]SAM_PROTO_GetFieldsCounters done [13:36:40]requested_item shift.num is exist - process it [13:36:40]requested_item shift.opened is exist - process it [13:36:40]req_shift_opened [13:36:40]FM_GetShiftState [13:36:40]SAM_PROTO_GetShiftState [13:36:40]wFMCommunicate request_size=4 [13:36:40]MH_SAM_APDU [13:36:40]CAPDU: 80 13 01 00 [13:36:40]Write to MH i2c: E2 08 00 D4 44 80 13 01 00 00 00 00 00 95 [13:36:40]Write i2c OK [13:36:40]MH_I2C_Read... [13:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:40]Read from MH i2c: E2 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 0E 00 [13:36:40]MH_I2C_Read... [13:36:40]Read from MH i2c: E2 0E 00 D4 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [13:36:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:36:40]wFMCommunicate OK [13:36:40]SAM_PROTO_GetShiftState done [13:36:40]FM_GetShiftState done [13:36:40]req_shift_opened done [13:36:40]requested_item shift.open_date is exist - process it [13:36:40]req_shift_open_date [13:36:40]req_shift_open_date done [13:36:40]produce_requested_data done [13:36:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69837,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:36:40]process_action_free close_receipt [13:36:40]json_value_free [13:36:40]json_value_free done [13:36:40]process_json_proto returns [13:36:40]Send response to host [13:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69837,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:36:40]free response buf [13:36:40]execute_script done [13:36:40]execute_script returns [13:36:40]free content buf [13:36:40]Sock 8.Close socket [13:36:40]Sock 8.Thread stoped [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:56]accept exits with 9 [13:39:56]New connection [13:39:56]New thread 3067456868 created [13:39:56]Thread 3067313508 joined [13:39:56]Waiting for new connection... [13:39:56] Sock 9.Parse request [13:39:56]Sock 9.Check first char [13:39:56]Sock 9.First char is OK [13:39:56]request: POST /json_proto HTTP/1.0 [13:39:56]Method: POST [13:39:56]URL: /json_proto [13:39:56]Method is POST - this is cgi request [13:39:56]url: /json_proto [13:39:56]query_string will be loaded in cgi processing [13:39:56]execute_cgi json_proto POST (null) [13:39:56]execute_cgi path=json_proto method=POST [13:39:56]POST find Content-Length [13:39:56]Host: 172.17.50.3:8080 [13:39:56]Content-Length: 683 [13:39:56]Content-Type: application/json [13:39:56] [13:39:56]POST finish read [13:39:56]Found Content-Length = 683 [13:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885588", "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" ] } } [13:39:56]execute_script... [13:39: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)2885588", "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" ] } } [13:39:56]POST & json_proto [13:39:56]process_json_proto [13:39:56]json parsed OK: [13:39:56]protocol is kg_v1.0 [13:39:56]action value=close_receipt [13:39:56]process_action close_receipt [13:39:56]cmd_close_receipt [13:39:56]MH_GetDate [13:39:56]Write to MH i2c: F0 00 00 D5 44 08 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: F0 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: F0 09 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: F0 09 00 D5 44 00 B0 59 16 67 6B 98 1E 66 1E [13:39:56]GetLastDocTimeStamp 1729517800 [13:39:56]current date 1729518000 [13:39:56]FM_GetShiftState [13:39:56]SAM_PROTO_GetShiftState [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 13 01 00 [13:39:56]Write to MH i2c: E2 08 00 D6 44 80 13 01 00 00 00 00 00 97 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0E 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0E 00 D6 44 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C3 [13:39:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:39:56]wFMCommunicate OK [13:39:56]SAM_PROTO_GetShiftState done [13:39:56]FM_GetShiftState done [13:39:56]opened in 1729469703 [13:39:56]opened+sec_in_day 1729556103 [13:39:56]quantity*price = 100021 [13:39:56]sum+1 = 100023 [13:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 228 21.10.2024 13:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69838 ФПД: 49447762584613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69838&fm=49447762584613&tin=02508201610067®Number=0000000000156251&sum=100000 [13:39:57]StoreToDocumentArchive [13:39:57]shift 194 fd 69838 [13:39:57]save to /storage/0194/doc_00069838 [13:39:57]save last doc name /storage/0194/doc_00069838 to /storage/kkm_last_doc_name [13:39:57]save OK [13:39:57]Clear old archive folders... [13:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:57]tlvbuf is 00C50270 [13:39:57]SAM_PROTO_ClearQueue [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 09 00 00 [13:39:57]Write to MH i2c: E2 08 00 E3 44 80 09 00 00 00 00 00 00 99 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 E3 44 00 90 00 9B [13:39:57]RAPDU: 90 00 [13:39:57]wFMCommunicate OK [13:39:57]SAM_PROTO_ClearQueue done [13:39:57]KKMCreateOFDPacket [13:39:57]OFDProtocolAddRootSTLVToBuf [13:39:57]FM_MakeSignedData [13:39:57]FM_MakeSignedData [13:39:57]SAM_PROTO_SignData [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 0D 01 02 [13:39:57]Write to MH i2c: E2 08 00 E4 44 80 0D 01 02 00 00 00 00 A1 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 E4 44 00 90 00 9C [13:39:57]RAPDU: 90 00 [13:39:57]wFMCommunicate OK [13:39:57]wFMCommunicate request_size=255 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 B0 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 10 01 00 35 04 06 00 2C [13:39:57]Write to MH i2c: E2 02 01 E5 44 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 E4 00 00 00 F4 03 04 00 B0 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 10 01 00 35 04 06 00 2C 00 00 7E [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [13:39:57]RAPDU: 90 00 [13:39:57]wFMCommunicate OK [13:39:57]wFMCommunicate request_size=10 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 0D 02 02 05 F8 F4 52 E4 25 [13:39:57]Write to MH i2c: E2 0D 00 E6 44 80 0D 02 02 05 00 F8 F4 52 E4 25 00 00 F5 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 03 00 E6 44 00 90 00 9E [13:39:57]RAPDU: 90 00 [13:39:57]wFMCommunicate OK [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 0D 03 02 [13:39:57]Write to MH i2c: E2 08 00 E7 44 80 0D 03 02 00 00 00 00 A6 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 0B 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 0B 00 E7 44 00 F0 F6 FF 2B 7E 08 D8 62 90 00 77 [13:39:57]RAPDU: F0 F6 FF 2B 7E 08 D8 62 90 00 [13:39:57]wFMCommunicate OK [13:39:57]SAM_PROTO_SignData done [13:39:57]FM_MakeSignedData done [13:39:57]CreateOFDProtocolMessage [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 11 00 00 [13:39:57]Write to MH i2c: E2 08 00 E8 44 80 11 00 00 00 00 00 00 A6 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 17 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 17 00 E8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [13:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:39:57]wFMCommunicate OK [13:39:57]CreateOFDProtocolMessage done [13:39:57]OFDSenderStorePacket 69838 [13:39:57]StoreOFDPacket docnum=69838 [13:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 60 07 01 DD D7 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 E4 00 00 00 F4 03 04 00 B0 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 10 01 00 35 04 06 00 2C F8 F4 52 E4 25 F0 F6 FF 2B 7E 08 D8 62 [13:39:57]CheckFolder [13:39:57]dirname=/storage/ofd_packets [13:39:57]CheckFolder done [13:39:57]ProducePacketName [13:39:57]name=ofd_packets/00069838 [13:39:57]NVStorageSaveData ofd_packets/00069838 [13:39:57]File name is /storage/ofd_packets/00069838 [13:39:57]Write 301 bytes [13:39:57]NVStorageSaveData done [13:39:57]OFDSenderStorePacket done [13:39:57]KKMCreateOFDPacket done [13:39:57]NVStorageSaveData kkm_last_timestamp [13:39:57]File name is /storage/kkm_last_timestamp [13:39:57]Write 4 bytes [13:39:57]NVStorageSaveData done [13:39:57]ExternCall_PrintAddStr [13:39:57]wPrintStart [13:39:57]Write to MH i2c: 01 00 00 E9 44 2D [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 E9 44 00 00 00 00 00 FF 0F 42 [13:39:57]RasterBufferAndPrint [13:39:57]line Счет N : (1)2885588 [13:39:57]line ИНН: 02508201610067 [13:39:57]line Контрольно-Кассовый Чек [13:39:57]line ПРОДАЖА [13:39:57]line ТРК (МРК, ГНК) : 33 [13:39:57]line Товар: 2710124500 [13:39:57]line Аи-95-К-5 [13:39:57]line 13.480 * 74.20 [13:39:57]line = 1000.22 [13:39:57]line НДС 12% НСП 1% [13:39:57]line > о реализуемом товаре [13:39:57]line ОКРУГЛЕНИЕ: -0.22 [13:39:57]line ИТОГО: 1000.00 [13:39:57]line Внесено: 1000.00 [13:39:57]line СДАЧА: 0.00 [13:39:57]line НСП 1% : 8.85 [13:39:57]line НДС 12% : 106.22 [13:39:57]line Наличными: 1000.00 [13:39:57]line Безнал.: 0.00 [13:39:57]line Место: АЗС № 85 "Партнер Нефть" [13:39:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:39:57]line СНО: Общий режим [13:39:57]line Чек 228 21.10.2024 13:40 [13:39:57]line Смена: 194 ФФД: 1.0 [13:39:57]line ЗНМ: 0300000167 [13:39:57]line РНМ: 0000000000156251 [13:39:57]line Версия ККМ: v1.0 [13:39:57]line ФМ: 0000000000963346 [13:39:57]line ФД: 69838 [13:39:57]line ФПД: 49447762584613 [13:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69838&fm=49447762584613&tin=02508201610067®Number=0000000000156251&sum=100000 [13:39:58]OFD Sender: Processing packet 69838 [packets to send 18, broken 17] [13:39:58]ProducePacketName [13:39:58]name=ofd_packets/00069838 [13:39:58]OFD Sender: To server: pG, [13:39:58]CommunicateWithHost lk.salyk.kg:30040 [13:39:58]ConnectInit lk.salyk.kg [13:39:58]written 0, free lines is 4095 [13:39:58]Connected sock=10 [13:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 60 07 01 DD D7 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 E4 00 00 00 F4 03 04 00 B0 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 10 01 00 35 04 06 00 2C F8 F4 52 E4 25 F0 F6 FF 2B 7E 08 D8 62 [13:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 36 B3 47 00 ED 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 39 36 33 33 34 36 10 04 04 00 CE 10 01 00 F4 03 04 00 53 03 16 67 B6 04 01 00 00 72 C6 7B 6A B6 6D BF A0 [13:39:58]CommunicateWithHost err = 0 [13:39:58]CheckOFDResponse [13:39:58]1017 (14) - 77093643461234 [13:39:58]1041 (16) - 0000000000963346 [13:39:58]1040 (4) - 69838 [13:39:58]1012 (4) - 21.10.2024 07:31 [13:39:58]1206 (1) - 0 [13:39:58]OFD Sender: Remove packet 69838 [13:39:58]ProducePacketName [13:39:58]name=ofd_packets/00069838 [13:39:58]NVStorageDeleteData [13:39:58]Write to MH i2c: 01 00 00 14 45 59 [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: 01 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: 01 07 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: 01 07 00 14 45 00 00 00 00 00 EC 0C 58 [13:39:58]RasterBufferAndPrint [13:39:58]line [13:39:58]line [13:39:58]line [13:39:58]line [13:39:58]line [13:39:58]written 0, free lines is 3314 [13:39:58]MH_Cut [13:39:58]Write to MH i2c: D1 01 00 1B 45 01 32 [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: D1 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: D1 01 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: D1 01 00 1B 45 00 31 [13:39:58]Write to MH i2c: 01 00 00 1C 45 61 [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:59]OFD Sender: No OFD packet to send [13:39:59]*** Cut start [13:39:59]*** Partial cut [13:39:59]*** CUTSNS_PIN = 1 [13:39:59]*** CUTSNS_PIN = 0 [13:39:59]*** Brake cut motor [13:40:00]Read from MH i2c: 01 [13:40:00]MH_I2C_Read... [13:40:00]*** Stop cut motor [13:40:00]*** Cut end [13:40:00]Read from MH i2c: 01 07 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: 01 07 00 1C 45 00 00 00 00 00 FF 0F 76 [13:40:00]process_action close_receipt done [13:40:00]requested_data is exist [13:40:00]produce_requested_data [13:40:00]requested_item fm.sn is exist - process it [13:40:00]wFMCommunicate request_size=4 [13:40:00]MH_SAM_APDU [13:40:00]CAPDU: 80 11 00 00 [13:40:00]Write to MH i2c: E2 08 00 1D 45 80 11 00 00 00 00 00 00 DC [13:40:00]Write i2c OK [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 [13:40:00]MH_I2C_Read... [13:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:00]Read from MH i2c: E2 17 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 17 00 1D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [13:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:40:00]wFMCommunicate OK [13:40:00]requested_item fd.num is exist - process it [13:40:00]SAM_PROTO_GetFieldsCounters [13:40:00]wFMCommunicate request_size=4 [13:40:00]MH_SAM_APDU [13:40:00]CAPDU: 80 13 00 00 [13:40:00]Write to MH i2c: E2 08 00 1E 45 80 13 00 00 00 00 00 00 DF [13:40:00]Write i2c OK [13:40:00]MH_I2C_Read... [13:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:00]Read from MH i2c: E2 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 62 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 62 00 1E 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [13:40:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:00]wFMCommunicate OK [13:40:00]SAM_PROTO_GetFieldsCounters done [13:40:00]requested_item shift.num is exist - process it [13:40:00]requested_item shift.opened is exist - process it [13:40:00]req_shift_opened [13:40:00]FM_GetShiftState [13:40:00]SAM_PROTO_GetShiftState [13:40:00]wFMCommunicate request_size=4 [13:40:00]MH_SAM_APDU [13:40:00]CAPDU: 80 13 01 00 [13:40:00]Write to MH i2c: E2 08 00 1F 45 80 13 01 00 00 00 00 00 E1 [13:40:00]Write i2c OK [13:40:00]MH_I2C_Read... [13:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:00]Read from MH i2c: E2 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 0E 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 0E 00 1F 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0D [13:40:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:40:00]wFMCommunicate OK [13:40:00]SAM_PROTO_GetShiftState done [13:40:00]FM_GetShiftState done [13:40:00]req_shift_opened done [13:40:00]requested_item shift.open_date is exist - process it [13:40:00]req_shift_open_date [13:40:00]req_shift_open_date done [13:40:00]produce_requested_data done [13:40:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69838,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:40:00]process_action_free close_receipt [13:40:00]json_value_free [13:40:00]json_value_free done [13:40:00]process_json_proto returns [13:40:00]Send response to host [13:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69838,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:40:00]free response buf [13:40:00]execute_script done [13:40:00]execute_script returns [13:40:00]free content buf [13:40:00]Sock 9.Close socket [13:40:00]Sock 9.Thread stoped [13:40:00]accept exits with 8 [13:40:00]New connection [13:40:00]New thread 3067313508 created [13:40:00]Thread 3067456868 joined [13:40:00]Waiting for new connection... [13:40:00] Sock 8.Parse request [13:40:00]Sock 8.Check first char [13:40:00]Sock 8.First char is OK [13:40:00]request: POST /json_proto HTTP/1.0 [13:40:00]Method: POST [13:40:00]URL: /json_proto [13:40:00]Method is POST - this is cgi request [13:40:00]url: /json_proto [13:40:00]query_string will be loaded in cgi processing [13:40:00]execute_cgi json_proto POST (null) [13:40:00]execute_cgi path=json_proto method=POST [13:40:00]POST find Content-Length [13:40:00]Host: 172.17.50.3:8080 [13:40:00]Content-Length: 679 [13:40:00]Content-Type: application/json [13:40:00] [13:40:00]POST finish read [13:40:00]Found Content-Length = 679 [13:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885587", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [13:40:00]execute_script... [13:40: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)2885587", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [13:40:00]POST & json_proto [13:40:00]process_json_proto [13:40:00]json parsed OK: [13:40:00]protocol is kg_v1.0 [13:40:00]action value=close_receipt [13:40:00]process_action close_receipt [13:40:00]cmd_close_receipt [13:40:00]MH_GetDate [13:40:00]Write to MH i2c: F0 00 00 20 45 54 [13:40:00]Write i2c OK [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: F0 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: F0 09 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: F0 09 00 20 45 00 B4 59 16 67 6B 98 1E 66 6E [13:40:00]GetLastDocTimeStamp 1729518000 [13:40:00]current date 1729518004 [13:40:00]FM_GetShiftState [13:40:00]SAM_PROTO_GetShiftState [13:40:00]wFMCommunicate request_size=4 [13:40:00]MH_SAM_APDU [13:40:00]CAPDU: 80 13 01 00 [13:40:00]Write to MH i2c: E2 08 00 21 45 80 13 01 00 00 00 00 00 E3 [13:40:00]Write i2c OK [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 [13:40:00]MH_I2C_Read... [13:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:00]Read from MH i2c: E2 0E 00 [13:40:00]MH_I2C_Read... [13:40:00]Read from MH i2c: E2 0E 00 21 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0F [13:40:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:40:00]wFMCommunicate OK [13:40:00]SAM_PROTO_GetShiftState done [13:40:00]FM_GetShiftState done [13:40:00]opened in 1729469703 [13:40:00]opened+sec_in_day 1729556103 [13:40:00]quantity*price = 80012 [13:40:00]sum+1 = 80013 [13:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 229 21.10.2024 13:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69839 ФПД: 112104299577877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69839&fm=112104299577877&tin=02508201610067®Number=0000000000156251&sum=80000 [13:40:02]StoreToDocumentArchive [13:40:02]shift 194 fd 69839 [13:40:02]save to /storage/0194/doc_00069839 [13:40:02]save last doc name /storage/0194/doc_00069839 to /storage/kkm_last_doc_name [13:40:02]save OK [13:40:02]Clear old archive folders... [13:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:02]tlvbuf is 00CC6990 [13:40:02]SAM_PROTO_ClearQueue [13:40:02]wFMCommunicate request_size=4 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 09 00 00 [13:40:02]Write to MH i2c: E2 08 00 2E 45 80 09 00 00 00 00 00 00 E5 [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 2E 45 00 90 00 E7 [13:40:02]RAPDU: 90 00 [13:40:02]wFMCommunicate OK [13:40:02]SAM_PROTO_ClearQueue done [13:40:02]KKMCreateOFDPacket [13:40:02]OFDProtocolAddRootSTLVToBuf [13:40:02]FM_MakeSignedData [13:40:02]FM_MakeSignedData [13:40:02]SAM_PROTO_SignData [13:40:02]wFMCommunicate request_size=4 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 0D 01 02 [13:40:02]Write to MH i2c: E2 08 00 2F 45 80 0D 01 02 00 00 00 00 ED [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 2F 45 00 90 00 E8 [13:40:02]RAPDU: 90 00 [13:40:02]wFMCommunicate OK [13:40:02]wFMCommunicate request_size=255 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 E5 00 00 00 F4 03 04 00 B4 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 10 01 00 35 04 06 00 65 [13:40:02]Write to MH i2c: E2 02 01 30 45 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 E5 00 00 00 F4 03 04 00 B4 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 10 01 00 35 04 06 00 65 00 00 D8 [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [13:40:02]RAPDU: 90 00 [13:40:02]wFMCommunicate OK [13:40:02]wFMCommunicate request_size=10 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 0D 02 02 05 F5 50 F4 42 15 [13:40:02]Write to MH i2c: E2 0D 00 31 45 80 0D 02 02 05 00 F5 50 F4 42 15 00 00 8A [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [13:40:02]RAPDU: 90 00 [13:40:02]wFMCommunicate OK [13:40:02]wFMCommunicate request_size=4 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 0D 03 02 [13:40:02]Write to MH i2c: E2 08 00 32 45 80 0D 03 02 00 00 00 00 F2 [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 0B 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 0B 00 32 45 00 1C 92 95 BD 2A B6 53 F6 90 00 1C [13:40:02]RAPDU: 1C 92 95 BD 2A B6 53 F6 90 00 [13:40:02]wFMCommunicate OK [13:40:02]SAM_PROTO_SignData done [13:40:02]FM_MakeSignedData done [13:40:02]CreateOFDProtocolMessage [13:40:02]wFMCommunicate request_size=4 [13:40:02]MH_SAM_APDU [13:40:02]CAPDU: 80 11 00 00 [13:40:02]Write to MH i2c: E2 08 00 33 45 80 11 00 00 00 00 00 00 F2 [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:02]Read from MH i2c: E2 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 17 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: E2 17 00 33 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 44 [13:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:40:02]wFMCommunicate OK [13:40:02]CreateOFDProtocolMessage done [13:40:02]OFDSenderStorePacket 69839 [13:40:02]StoreOFDPacket docnum=69839 [13:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 51 B1 07 01 3A 9D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 E5 00 00 00 F4 03 04 00 B4 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 10 01 00 35 04 06 00 65 F5 50 F4 42 15 1C 92 95 BD 2A B6 53 F6 [13:40:02]CheckFolder [13:40:02]dirname=/storage/ofd_packets [13:40:02]CheckFolder done [13:40:02]ProducePacketName [13:40:02]name=ofd_packets/00069839 [13:40:02]NVStorageSaveData ofd_packets/00069839 [13:40:02]File name is /storage/ofd_packets/00069839 [13:40:02]Write 301 bytes [13:40:02]NVStorageSaveData done [13:40:02]OFDSenderStorePacket done [13:40:02]KKMCreateOFDPacket done [13:40:02]NVStorageSaveData kkm_last_timestamp [13:40:02]File name is /storage/kkm_last_timestamp [13:40:02]Write 4 bytes [13:40:02]NVStorageSaveData done [13:40:02]ExternCall_PrintAddStr [13:40:02]wPrintStart [13:40:02]Write to MH i2c: 01 00 00 34 45 79 [13:40:02]Write i2c OK [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 07 00 [13:40:02]MH_I2C_Read... [13:40:02]Read from MH i2c: 01 07 00 34 45 00 00 00 00 00 FF 0F 8E [13:40:02]RasterBufferAndPrint [13:40:02]line Счет N : (1)2885587 [13:40:02]line ИНН: 02508201610067 [13:40:02]line Контрольно-Кассовый Чек [13:40:02]line ПРОДАЖА [13:40:02]line ТРК (МРК, ГНК) : 42 [13:40:02]line Товар: 2710124130 [13:40:02]line Аи-92-К-5 [13:40:02]line 11.960 * 66.90 [13:40:02]line = 800.12 [13:40:02]line НДС 12% НСП 1% [13:40:02]line > о реализуемом товаре [13:40:02]line ОКРУГЛЕНИЕ: -0.12 [13:40:02]line ИТОГО: 800.00 [13:40:02]line Внесено: 800.00 [13:40:02]line СДАЧА: 0.00 [13:40:02]line НСП 1% : 7.08 [13:40:02]line НДС 12% : 84.97 [13:40:02]line Наличными: 800.00 [13:40:02]line Безнал.: 0.00 [13:40:02]line Место: АЗС № 85 "Партнер Нефть" [13:40:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:40:02]line СНО: Общий режим [13:40:02]line Чек 229 21.10.2024 13:40 [13:40:02]line Смена: 194 ФФД: 1.0 [13:40:02]line ЗНМ: 0300000167 [13:40:02]line РНМ: 0000000000156251 [13:40:02]line Версия ККМ: v1.0 [13:40:02]line ФМ: 0000000000963346 [13:40:02]line ФД: 69839 [13:40:02]line ФПД: 112104299577877 [13:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69839&fm=112104299577877&tin=02508201610067®Number=0000000000156251&sum=80000 [13:40:03]OFD Sender: Processing packet 69839 [packets to send 18, broken 17] [13:40:03]ProducePacketName [13:40:03]name=ofd_packets/00069839 [13:40:03]OFD Sender: To server: pG, [13:40:03]CommunicateWithHost lk.salyk.kg:30040 [13:40:03]ConnectInit lk.salyk.kg [13:40:03]written 0, free lines is 4095 [13:40:03]Connected sock=10 [13:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 51 B1 07 01 3A 9D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 E5 00 00 00 F4 03 04 00 B4 59 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 10 01 00 35 04 06 00 65 F5 50 F4 42 15 1C 92 95 BD 2A B6 53 F6 [13:40:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 77 19 47 00 47 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 10 01 00 F4 03 04 00 58 03 16 67 B6 04 01 00 00 B1 B7 24 FE BF 64 D3 D1 [13:40:03]CommunicateWithHost err = 0 [13:40:03]CheckOFDResponse [13:40:03]1017 (14) - 77093643461234 [13:40:03]1041 (16) - 0000000000963346 [13:40:03]1040 (4) - 69839 [13:40:03]1012 (4) - 21.10.2024 07:31 [13:40:03]1206 (1) - 0 [13:40:03]OFD Sender: Remove packet 69839 [13:40:03]ProducePacketName [13:40:03]name=ofd_packets/00069839 [13:40:03]NVStorageDeleteData [13:40:03]Write to MH i2c: 01 00 00 5F 45 A4 [13:40:03]Write i2c OK [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: 01 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: 01 07 00 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: 01 07 00 5F 45 00 00 00 00 00 FE 0C B5 [13:40:03]RasterBufferAndPrint [13:40:03]line [13:40:03]line [13:40:03]line [13:40:03]line [13:40:03]line [13:40:03]written 0, free lines is 3341 [13:40:03]MH_Cut [13:40:03]Write to MH i2c: D1 01 00 66 45 01 7D [13:40:03]Write i2c OK [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: D1 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: D1 01 00 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: D1 01 00 66 45 00 7C [13:40:03]Write to MH i2c: 01 00 00 67 45 AC [13:40:03]Write i2c OK [13:40:03]MH_I2C_Read... [13:40:04]OFD Sender: No OFD packet to send [13:40:04]*** Cut start [13:40:04]*** Partial cut [13:40:04]*** CUTSNS_PIN = 1 [13:40:04]*** CUTSNS_PIN = 0 [13:40:04]*** Brake cut motor [13:40:04]Read from MH i2c: 01 [13:40:04]MH_I2C_Read... [13:40:04]*** Stop cut motor [13:40:04]*** Cut end [13:40:04]Read from MH i2c: 01 07 00 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: 01 07 00 67 45 00 00 00 00 00 FF 0F C1 [13:40:04]process_action close_receipt done [13:40:04]requested_data is exist [13:40:04]produce_requested_data [13:40:04]requested_item fm.sn is exist - process it [13:40:04]wFMCommunicate request_size=4 [13:40:04]MH_SAM_APDU [13:40:04]CAPDU: 80 11 00 00 [13:40:04]Write to MH i2c: E2 08 00 68 45 80 11 00 00 00 00 00 00 27 [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 17 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 17 00 68 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [13:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:40:05]wFMCommunicate OK [13:40:05]requested_item fd.num is exist - process it [13:40:05]SAM_PROTO_GetFieldsCounters [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 13 00 00 [13:40:05]Write to MH i2c: E2 08 00 69 45 80 13 00 00 00 00 00 00 2A [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 62 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 62 00 69 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:05]wFMCommunicate OK [13:40:05]SAM_PROTO_GetFieldsCounters done [13:40:05]requested_item shift.num is exist - process it [13:40:05]requested_item shift.opened is exist - process it [13:40:05]req_shift_opened [13:40:05]FM_GetShiftState [13:40:05]SAM_PROTO_GetShiftState [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 13 01 00 [13:40:05]Write to MH i2c: E2 08 00 6A 45 80 13 01 00 00 00 00 00 2C [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0E 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0E 00 6A 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 58 [13:40:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:40:05]wFMCommunicate OK [13:40:05]SAM_PROTO_GetShiftState done [13:40:05]FM_GetShiftState done [13:40:05]req_shift_opened done [13:40:05]requested_item shift.open_date is exist - process it [13:40:05]req_shift_open_date [13:40:05]req_shift_open_date done [13:40:05]produce_requested_data done [13:40:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69839,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:40:05]process_action_free close_receipt [13:40:05]json_value_free [13:40:05]json_value_free done [13:40:05]process_json_proto returns [13:40:05]Send response to host [13:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69839,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:40:05]free response buf [13:40:05]execute_script done [13:40:05]execute_script returns [13:40:05]free content buf [13:40:05]Sock 8.Close socket [13:40:05]Sock 8.Thread stoped [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:13]accept exits with 9 [13:44:13]New connection [13:44:13]New thread 3067456868 created [13:44:13]Thread 3067313508 joined [13:44:13]Waiting for new connection... [13:44:13] Sock 9.Parse request [13:44:13]Sock 9.Check first char [13:44:13]Sock 9.First char is OK [13:44:13]request: POST /json_proto HTTP/1.0 [13:44:13]Method: POST [13:44:13]URL: /json_proto [13:44:13]Method is POST - this is cgi request [13:44:13]url: /json_proto [13:44:13]query_string will be loaded in cgi processing [13:44:13]execute_cgi json_proto POST (null) [13:44:13]execute_cgi path=json_proto method=POST [13:44:13]POST find Content-Length [13:44:13]Host: 172.17.50.3:8080 [13:44:13]Content-Length: 683 [13:44:13]Content-Type: application/json [13:44:13] [13:44:13]POST finish read [13:44:13]Found Content-Length = 683 [13:44:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885589", "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" ] } } [13:44:13]execute_script... [13:44: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)2885589", "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" ] } } [13:44:13]POST & json_proto [13:44:13]process_json_proto [13:44:13]json parsed OK: [13:44:13]protocol is kg_v1.0 [13:44:13]action value=close_receipt [13:44:13]process_action close_receipt [13:44:13]cmd_close_receipt [13:44:13]MH_GetDate [13:44:13]Write to MH i2c: F0 00 00 6B 45 9F [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: F0 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: F0 09 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: F0 09 00 6B 45 00 B1 5A 16 67 6B 98 1E 66 B7 [13:44:13]GetLastDocTimeStamp 1729518004 [13:44:13]current date 1729518257 [13:44:13]FM_GetShiftState [13:44:13]SAM_PROTO_GetShiftState [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 13 01 00 [13:44:13]Write to MH i2c: E2 08 00 6C 45 80 13 01 00 00 00 00 00 2E [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0E 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0E 00 6C 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5A [13:44:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_GetShiftState done [13:44:13]FM_GetShiftState done [13:44:13]opened in 1729469703 [13:44:13]opened+sec_in_day 1729556103 [13:44:13]quantity*price = 100021 [13:44:13]sum+1 = 100023 [13:44:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 230 21.10.2024 13:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69840 ФПД: 231585908101134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69840&fm=231585908101134&tin=02508201610067®Number=0000000000156251&sum=100000 [13:44:14]StoreToDocumentArchive [13:44:14]shift 194 fd 69840 [13:44:14]save to /storage/0194/doc_00069840 [13:44:14]save last doc name /storage/0194/doc_00069840 to /storage/kkm_last_doc_name [13:44:14]save OK [13:44:14]Clear old archive folders... [13:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:14]tlvbuf is 00D93B50 [13:44:14]SAM_PROTO_ClearQueue [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 09 00 00 [13:44:14]Write to MH i2c: E2 08 00 79 45 80 09 00 00 00 00 00 00 30 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 79 45 00 90 00 32 [13:44:14]RAPDU: 90 00 [13:44:14]wFMCommunicate OK [13:44:14]SAM_PROTO_ClearQueue done [13:44:14]KKMCreateOFDPacket [13:44:14]OFDProtocolAddRootSTLVToBuf [13:44:14]FM_MakeSignedData [13:44:14]FM_MakeSignedData [13:44:14]SAM_PROTO_SignData [13:44:14]wFMCommunicate request_size=4 [13:44:14]MH_SAM_APDU [13:44:14]CAPDU: 80 0D 01 02 [13:44:14]Write to MH i2c: E2 08 00 7A 45 80 0D 01 02 00 00 00 00 38 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:14]Read from MH i2c: E2 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: E2 03 00 7A 45 00 90 00 33 [13:44:14]RAPDU: 90 00 [13:44:14]wFMCommunicate OK [13:44:14]wFMCommunicate request_size=255 [13:44:14]MH_SAM_APDU [13:44: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 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 E6 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 10 01 00 35 04 06 00 D2 [13:44:14]Write to MH i2c: E2 02 01 7B 45 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 E6 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 10 01 00 35 04 06 00 D2 00 00 C1 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 7B 45 00 90 00 34 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]wFMCommunicate request_size=10 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 02 02 05 A0 4B C9 90 0E [13:44:15]Write to MH i2c: E2 0D 00 7C 45 80 0D 02 02 05 00 A0 4B C9 90 0E 00 00 97 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 03 00 7C 45 00 90 00 35 [13:44:15]RAPDU: 90 00 [13:44:15]wFMCommunicate OK [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 0D 03 02 [13:44:15]Write to MH i2c: E2 08 00 7D 45 80 0D 03 02 00 00 00 00 3D [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 0B 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 0B 00 7D 45 00 92 16 17 F3 D7 A2 2D CF 90 00 65 [13:44:15]RAPDU: 92 16 17 F3 D7 A2 2D CF 90 00 [13:44:15]wFMCommunicate OK [13:44:15]SAM_PROTO_SignData done [13:44:15]FM_MakeSignedData done [13:44:15]CreateOFDProtocolMessage [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 11 00 00 [13:44:15]Write to MH i2c: E2 08 00 7E 45 80 11 00 00 00 00 00 00 3D [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 7E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [13:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:44:15]wFMCommunicate OK [13:44:15]CreateOFDProtocolMessage done [13:44:15]OFDSenderStorePacket 69840 [13:44:15]StoreOFDPacket docnum=69840 [13:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E1 A7 07 01 11 EC 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 E6 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 10 01 00 35 04 06 00 D2 A0 4B C9 90 0E 92 16 17 F3 D7 A2 2D CF [13:44:15]CheckFolder [13:44:15]dirname=/storage/ofd_packets [13:44:15]CheckFolder done [13:44:15]ProducePacketName [13:44:15]name=ofd_packets/00069840 [13:44:15]NVStorageSaveData ofd_packets/00069840 [13:44:15]File name is /storage/ofd_packets/00069840 [13:44:15]Write 301 bytes [13:44:15]NVStorageSaveData done [13:44:15]OFDSenderStorePacket done [13:44:15]KKMCreateOFDPacket done [13:44:15]NVStorageSaveData kkm_last_timestamp [13:44:15]File name is /storage/kkm_last_timestamp [13:44:15]Write 4 bytes [13:44:15]NVStorageSaveData done [13:44:15]ExternCall_PrintAddStr [13:44:15]OFD Sender: Processing packet 69840 [packets to send 18, broken 17] [13:44:15]ProducePacketName [13:44:15]name=ofd_packets/00069840 [13:44:15]OFD Sender: To server: pG, [13:44:15]CommunicateWithHost lk.salyk.kg:30040 [13:44:15]ConnectInit lk.salyk.kg [13:44:15]wPrintStart [13:44:15]Write to MH i2c: 01 00 00 7F 45 C4 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 7F 45 00 00 00 00 00 FF 0F D9 [13:44:15]RasterBufferAndPrint [13:44:15]line Счет N : (1)2885589 [13:44:15]line ИНН: 02508201610067 [13:44:15]line Контрольно-Кассовый Чек [13:44:15]line ПРОДАЖА [13:44:15]line ТРК (МРК, ГНК) : 43 [13:44:15]line Товар: 2710124500 [13:44:15]line Аи-95-К-5 [13:44:15]line 13.480 * 74.20 [13:44:15]line = 1000.22 [13:44:15]line НДС 12% НСП 1% [13:44:15]line > о реализуемом товаре [13:44:15]line ОКРУГЛЕНИЕ: -0.22 [13:44:15]line ИТОГО: 1000.00 [13:44:15]line Внесено: 1000.00 [13:44:15]line СДАЧА: 0.00 [13:44:15]line НСП 1% : 8.85 [13:44:15]line НДС 12% : 106.22 [13:44:15]line Наличными: 1000.00 [13:44:15]line Безнал.: 0.00 [13:44:15]line Место: АЗС № 85 "Партнер Нефть" [13:44:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:44:15]line СНО: Общий режим [13:44:15]line Чек 230 21.10.2024 13:44 [13:44:15]line Смена: 194 ФФД: 1.0 [13:44:15]line ЗНМ: 0300000167 [13:44:15]line РНМ: 0000000000156251 [13:44:15]line Версия ККМ: v1.0 [13:44:15]line ФМ: 0000000000963346 [13:44:15]line ФД: 69840 [13:44:15]line ФПД: 231585908101134 [13:44:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134417&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69840&fm=231585908101134&tin=02508201610067®Number=0000000000156251&sum=100000 [13:44:15]Connected sock=10 [13:44:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E1 A7 07 01 11 EC 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 E6 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 10 01 00 35 04 06 00 D2 A0 4B C9 90 0E 92 16 17 F3 D7 A2 2D CF [13:44:15]written 0, free lines is 4095 [13:44:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 53 25 47 00 50 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 10 01 00 F4 03 04 00 55 04 16 67 B6 04 01 00 00 31 0B 97 62 DB 00 50 36 [13:44:15]CommunicateWithHost err = 0 [13:44:15]CheckOFDResponse [13:44:15]1017 (14) - 77093643461234 [13:44:15]1041 (16) - 0000000000963346 [13:44:15]1040 (4) - 69840 [13:44:15]1012 (4) - 21.10.2024 07:35 [13:44:15]1206 (1) - 0 [13:44:15]OFD Sender: Remove packet 69840 [13:44:15]ProducePacketName [13:44:15]name=ofd_packets/00069840 [13:44:15]NVStorageDeleteData [13:44:15]Write to MH i2c: 01 00 00 AA 45 EF [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 [13:44:15]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: 01 07 00 AA 45 00 00 00 00 00 F0 0C F2 [13:44:16]RasterBufferAndPrint [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]line [13:44:16]written 0, free lines is 3319 [13:44:16]MH_Cut [13:44:16]Write to MH i2c: D1 01 00 B1 45 01 C8 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 01 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: D1 01 00 B1 45 00 C7 [13:44:16]Write to MH i2c: 01 00 00 B2 45 F7 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]OFD Sender: No OFD packet to send [13:44:16]*** Cut start [13:44:16]*** Partial cut [13:44:16]*** CUTSNS_PIN = 1 [13:44:16]*** CUTSNS_PIN = 0 [13:44:16]*** Brake cut motor [13:44:17]Read from MH i2c: 01 [13:44:17]MH_I2C_Read... [13:44:17]*** Stop cut motor [13:44:17]*** Cut end [13:44:17]Read from MH i2c: 01 07 00 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: 01 07 00 B2 45 00 00 00 00 00 FF 0F 0C [13:44:17]process_action close_receipt done [13:44:17]requested_data is exist [13:44:17]produce_requested_data [13:44:17]requested_item fm.sn is exist - process it [13:44:17]wFMCommunicate request_size=4 [13:44:17]MH_SAM_APDU [13:44:17]CAPDU: 80 11 00 00 [13:44:17]Write to MH i2c: E2 08 00 B3 45 80 11 00 00 00 00 00 00 72 [13:44:17]Write i2c OK [13:44:17]MH_I2C_Read... [13:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:17]Read from MH i2c: E2 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 17 00 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 17 00 B3 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [13:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:44:17]wFMCommunicate OK [13:44:17]requested_item fd.num is exist - process it [13:44:17]SAM_PROTO_GetFieldsCounters [13:44:17]wFMCommunicate request_size=4 [13:44:17]MH_SAM_APDU [13:44:17]CAPDU: 80 13 00 00 [13:44:17]Write to MH i2c: E2 08 00 B4 45 80 13 00 00 00 00 00 00 75 [13:44:17]Write i2c OK [13:44:17]MH_I2C_Read... [13:44:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:17]Read from MH i2c: E2 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 62 00 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 62 00 B4 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [13:44:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:17]wFMCommunicate OK [13:44:17]SAM_PROTO_GetFieldsCounters done [13:44:17]requested_item shift.num is exist - process it [13:44:17]requested_item shift.opened is exist - process it [13:44:17]req_shift_opened [13:44:17]FM_GetShiftState [13:44:17]SAM_PROTO_GetShiftState [13:44:17]wFMCommunicate request_size=4 [13:44:17]MH_SAM_APDU [13:44:17]CAPDU: 80 13 01 00 [13:44:17]Write to MH i2c: E2 08 00 B5 45 80 13 01 00 00 00 00 00 77 [13:44:17]Write i2c OK [13:44:17]MH_I2C_Read... [13:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:17]Read from MH i2c: E2 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 0E 00 [13:44:17]MH_I2C_Read... [13:44:17]Read from MH i2c: E2 0E 00 B5 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A3 [13:44:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:44:17]wFMCommunicate OK [13:44:17]SAM_PROTO_GetShiftState done [13:44:17]FM_GetShiftState done [13:44:17]req_shift_opened done [13:44:17]requested_item shift.open_date is exist - process it [13:44:17]req_shift_open_date [13:44:17]req_shift_open_date done [13:44:17]produce_requested_data done [13:44:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69840,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:44:17]process_action_free close_receipt [13:44:17]json_value_free [13:44:17]json_value_free done [13:44:17]process_json_proto returns [13:44:17]Send response to host [13:44:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69840,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:44:17]free response buf [13:44:17]execute_script done [13:44:17]execute_script returns [13:44:17]free content buf [13:44:17]Sock 9.Close socket [13:44:17]Sock 9.Thread stoped [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:02]accept exits with 8 [13:55:02]New connection [13:55:02]New thread 3067313508 created [13:55:02]Thread 3067456868 joined [13:55:02]Waiting for new connection... [13:55:02] Sock 8.Parse request [13:55:02]Sock 8.Check first char [13:55:02]Sock 8.First char is OK [13:55:02]request: POST /json_proto HTTP/1.0 [13:55:02]Method: POST [13:55:02]URL: /json_proto [13:55:02]Method is POST - this is cgi request [13:55:02]url: /json_proto [13:55:02]query_string will be loaded in cgi processing [13:55:02]execute_cgi json_proto POST (null) [13:55:02]execute_cgi path=json_proto method=POST [13:55:02]POST find Content-Length [13:55:02]Host: 172.17.50.3:8080 [13:55:02]Content-Length: 678 [13:55:02]Content-Type: application/json [13:55:02] [13:55:02]POST finish read [13:55:02]Found Content-Length = 678 [13:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885590", "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" : 9.440, "sum" : 700.45, "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" ] } } [13:55:02]execute_script... [13:55: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)2885590", "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" : 9.440, "sum" : 700.45, "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" ] } } [13:55:02]POST & json_proto [13:55:02]process_json_proto [13:55:02]json parsed OK: [13:55:02]protocol is kg_v1.0 [13:55:02]action value=close_receipt [13:55:02]process_action close_receipt [13:55:02]cmd_close_receipt [13:55:02]MH_GetDate [13:55:02]Write to MH i2c: F0 00 00 B6 45 EA [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 B6 45 00 3A 5D 16 67 6B 98 1E 66 8E [13:55:02]GetLastDocTimeStamp 1729518257 [13:55:02]current date 1729518906 [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 B7 45 80 13 01 00 00 00 00 00 79 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 B7 45 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [13:55:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]opened in 1729469703 [13:55:02]opened+sec_in_day 1729556103 [13:55:02]quantity*price = 70044 [13:55:02]sum+1 = 70046 [13:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 231 21.10.2024 13:55 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69841 ФПД: 254016975689209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69841&fm=254016975689209&tin=02508201610067®Number=0000000000156251&sum=70000 [13:55:03]StoreToDocumentArchive [13:55:03]shift 194 fd 69841 [13:55:03]save to /storage/0194/doc_00069841 [13:55:03]save last doc name /storage/0194/doc_00069841 to /storage/kkm_last_doc_name [13:55:03]save OK [13:55:03]Clear old archive folders... [13:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:03]tlvbuf is 00CFAF80 [13:55:03]SAM_PROTO_ClearQueue [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 09 00 00 [13:55:03]Write to MH i2c: E2 08 00 C4 45 80 09 00 00 00 00 00 00 7B [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 C4 45 00 90 00 7D [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_ClearQueue done [13:55:03]KKMCreateOFDPacket [13:55:03]OFDProtocolAddRootSTLVToBuf [13:55:03]FM_MakeSignedData [13:55:03]FM_MakeSignedData [13:55:03]SAM_PROTO_SignData [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 01 02 [13:55:03]Write to MH i2c: E2 08 00 C5 45 80 0D 01 02 00 00 00 00 83 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=255 [13:55:03]MH_SAM_APDU [13:55: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E7 00 00 00 F4 03 04 00 3A 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 10 01 00 35 04 06 00 E7 [13:55:03]Write to MH i2c: E2 02 01 C6 45 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E7 00 00 00 F4 03 04 00 3A 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 10 01 00 35 04 06 00 E7 00 00 79 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=10 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 02 02 05 06 EF 9A 55 F9 [13:55:04]Write to MH i2c: E2 0D 00 C7 45 80 0D 02 02 05 00 06 EF 9A 55 F9 00 00 6D [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 C7 45 00 90 00 80 [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 03 02 [13:55:04]Write to MH i2c: E2 08 00 C8 45 80 0D 03 02 00 00 00 00 88 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 C8 45 00 C3 2B 61 C5 5F 33 E2 A7 90 00 B8 [13:55:04]RAPDU: C3 2B 61 C5 5F 33 E2 A7 90 00 [13:55:04]wFMCommunicate OK [13:55:04]SAM_PROTO_SignData done [13:55:04]FM_MakeSignedData done [13:55:04]CreateOFDProtocolMessage [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 11 00 00 [13:55:04]Write to MH i2c: E2 08 00 C9 45 80 11 00 00 00 00 00 00 88 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 C9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [13:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:04]wFMCommunicate OK [13:55:04]CreateOFDProtocolMessage done [13:55:04]OFDSenderStorePacket 69841 [13:55:04]StoreOFDPacket docnum=69841 [13:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF CF 07 01 F8 A5 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E7 00 00 00 F4 03 04 00 3A 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 10 01 00 35 04 06 00 E7 06 EF 9A 55 F9 C3 2B 61 C5 5F 33 E2 A7 [13:55:04]CheckFolder [13:55:04]dirname=/storage/ofd_packets [13:55:04]CheckFolder done [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00069841 [13:55:04]NVStorageSaveData ofd_packets/00069841 [13:55:04]File name is /storage/ofd_packets/00069841 [13:55:04]Write 301 bytes [13:55:04]NVStorageSaveData done [13:55:04]OFDSenderStorePacket done [13:55:04]KKMCreateOFDPacket done [13:55:04]NVStorageSaveData kkm_last_timestamp [13:55:04]File name is /storage/kkm_last_timestamp [13:55:04]Write 4 bytes [13:55:04]NVStorageSaveData done [13:55:04]ExternCall_PrintAddStr [13:55:04]wPrintStart [13:55:04]Write to MH i2c: 01 00 00 CA 45 0F [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 CA 45 00 00 00 00 00 FF 0F 24 [13:55:04]RasterBufferAndPrint [13:55:04]line Счет N : (1)2885590 [13:55:04]line ИНН: 02508201610067 [13:55:04]line Контрольно-Кассовый Чек [13:55:04]line ПРОДАЖА [13:55:04]line ТРК (МРК, ГНК) : 33 [13:55:04]line Товар: 2710124500 [13:55:04]line Аи-95-К-5 [13:55:04]line 9.440 * 74.20 [13:55:04]line = 700.45 [13:55:04]line НДС 12% НСП 1% [13:55:04]line > о реализуемом товаре [13:55:04]line ОКРУГЛЕНИЕ: -0.45 [13:55:04]line ИТОГО: 700.00 [13:55:04]line Внесено: 700.00 [13:55:04]line СДАЧА: 0.00 [13:55:04]line НСП 1% : 6.20 [13:55:04]line НДС 12% : 74.38 [13:55:04]line Наличными: 700.00 [13:55:04]line Безнал.: 0.00 [13:55:04]line Место: АЗС № 85 "Партнер Нефть" [13:55:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:55:04]line СНО: Общий режим [13:55:04]line Чек 231 21.10.2024 13:55 [13:55:04]line Смена: 194 ФФД: 1.0 [13:55:04]line ЗНМ: 0300000167 [13:55:04]line РНМ: 0000000000156251 [13:55:04]line Версия ККМ: v1.0 [13:55:04]line ФМ: 0000000000963346 [13:55:04]line ФД: 69841 [13:55:04]line ФПД: 254016975689209 [13:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69841&fm=254016975689209&tin=02508201610067®Number=0000000000156251&sum=70000 [13:55:04]OFD Sender: Processing packet 69841 [packets to send 18, broken 17] [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00069841 [13:55:04]OFD Sender: To server: pG, [13:55:04]CommunicateWithHost lk.salyk.kg:30040 [13:55:04]ConnectInit lk.salyk.kg [13:55:04]written 0, free lines is 4095 [13:55:04]Connected sock=10 [13:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BF CF 07 01 F8 A5 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 E7 00 00 00 F4 03 04 00 3A 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 10 01 00 35 04 06 00 E7 06 EF 9A 55 F9 C3 2B 61 C5 5F 33 E2 A7 [13:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 80 78 47 00 C2 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 39 36 33 33 34 36 10 04 04 00 D1 10 01 00 F4 03 04 00 DE 06 16 67 B6 04 01 00 00 A9 70 B0 CB EA EC F8 0E [13:55:04]CommunicateWithHost err = 0 [13:55:04]CheckOFDResponse [13:55:04]1017 (14) - 77093643461234 [13:55:04]1041 (16) - 0000000000963346 [13:55:04]1040 (4) - 69841 [13:55:04]1012 (4) - 21.10.2024 07:46 [13:55:04]1206 (1) - 0 [13:55:04]OFD Sender: Remove packet 69841 [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00069841 [13:55:04]NVStorageDeleteData [13:55:04]Write to MH i2c: 01 00 00 F5 45 3A [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 07 00 [13:55:04]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 F5 45 00 00 00 00 00 E6 0C 33 [13:55:05]RasterBufferAndPrint [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]written 0, free lines is 3309 [13:55:05]MH_Cut [13:55:05]Write to MH i2c: D1 01 00 FC 45 01 13 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 FC 45 00 12 [13:55:05]Write to MH i2c: 01 00 00 FD 45 42 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]OFD Sender: No OFD packet to send [13:55:05]*** Cut start [13:55:05]*** Partial cut [13:55:05]*** CUTSNS_PIN = 1 [13:55:05]*** CUTSNS_PIN = 0 [13:55:05]*** Brake cut motor [13:55:06]Read from MH i2c: 01 [13:55:06]MH_I2C_Read... [13:55:06]*** Stop cut motor [13:55:06]*** Cut end [13:55:06]Read from MH i2c: 01 07 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 FD 45 00 00 00 00 00 FF 0F 57 [13:55:06]process_action close_receipt done [13:55:06]requested_data is exist [13:55:06]produce_requested_data [13:55:06]requested_item fm.sn is exist - process it [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 11 00 00 [13:55:06]Write to MH i2c: E2 08 00 FE 45 80 11 00 00 00 00 00 00 BD [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:06]Read from MH i2c: E2 17 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 FE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [13:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:06]wFMCommunicate OK [13:55:06]requested_item fd.num is exist - process it [13:55:06]SAM_PROTO_GetFieldsCounters [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 00 00 [13:55:06]Write to MH i2c: E2 08 00 FF 45 80 13 00 00 00 00 00 00 C0 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 62 00 FF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [13:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetFieldsCounters done [13:55:06]requested_item shift.num is exist - process it [13:55:06]requested_item shift.opened is exist - process it [13:55:06]req_shift_opened [13:55:06]FM_GetShiftState [13:55:06]SAM_PROTO_GetShiftState [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 01 00 [13:55:06]Write to MH i2c: E2 08 00 00 46 80 13 01 00 00 00 00 00 C3 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 00 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EF [13:55:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetShiftState done [13:55:06]FM_GetShiftState done [13:55:06]req_shift_opened done [13:55:06]requested_item shift.open_date is exist - process it [13:55:06]req_shift_open_date [13:55:06]req_shift_open_date done [13:55:06]produce_requested_data done [13:55:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69841,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:55:06]process_action_free close_receipt [13:55:06]json_value_free [13:55:06]json_value_free done [13:55:06]process_json_proto returns [13:55:06]Send response to host [13:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69841,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:55:06]free response buf [13:55:06]execute_script done [13:55:06]execute_script returns [13:55:06]free content buf [13:55:06]Sock 8.Close socket [13:55:06]Sock 8.Thread stoped [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:30]accept exits with 9 [13:56:30]New connection [13:56:30]New thread 3067456868 created [13:56:30]Thread 3067313508 joined [13:56:30]Waiting for new connection... [13:56:30] Sock 9.Parse request [13:56:30]Sock 9.Check first char [13:56:30]Sock 9.First char is OK [13:56:30]request: POST /json_proto HTTP/1.0 [13:56:30]Method: POST [13:56:30]URL: /json_proto [13:56:30]Method is POST - this is cgi request [13:56:30]url: /json_proto [13:56:30]query_string will be loaded in cgi processing [13:56:30]execute_cgi json_proto POST (null) [13:56:30]execute_cgi path=json_proto method=POST [13:56:30]POST find Content-Length [13:56:30]Host: 172.17.50.3:8080 [13:56:30]Content-Length: 678 [13:56:30]Content-Type: application/json [13:56:30] [13:56:30]POST finish read [13:56:30]Found Content-Length = 678 [13:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885591", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:30]execute_script... [13:56: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)2885591", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:30]POST & json_proto [13:56:30]process_json_proto [13:56:30]json parsed OK: [13:56:30]protocol is kg_v1.0 [13:56:30]action value=close_receipt [13:56:30]process_action close_receipt [13:56:30]cmd_close_receipt [13:56:30]MH_GetDate [13:56:30]Write to MH i2c: F0 00 00 01 46 36 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: F0 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: F0 09 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: F0 09 00 01 46 00 92 5D 16 67 6B 98 1E 66 32 [13:56:30]GetLastDocTimeStamp 1729518906 [13:56:30]current date 1729518994 [13:56:30]FM_GetShiftState [13:56:30]SAM_PROTO_GetShiftState [13:56:30]wFMCommunicate request_size=4 [13:56:30]MH_SAM_APDU [13:56:30]CAPDU: 80 13 01 00 [13:56:30]Write to MH i2c: E2 08 00 02 46 80 13 01 00 00 00 00 00 C5 [13:56:30]Write i2c OK [13:56:30]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0E 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0E 00 02 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F1 [13:56:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:56:30]wFMCommunicate OK [13:56:30]SAM_PROTO_GetShiftState done [13:56:30]FM_GetShiftState done [13:56:30]opened in 1729469703 [13:56:30]opened+sec_in_day 1729556103 [13:56:30]quantity*price = 50041 [13:56:30]sum+1 = 50042 [13:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 232 21.10.2024 13:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69842 ФПД: 102944816373337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135634&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69842&fm=102944816373337&tin=02508201610067®Number=0000000000156251&sum=50000 [13:56:31]StoreToDocumentArchive [13:56:31]shift 194 fd 69842 [13:56:31]save to /storage/0194/doc_00069842 [13:56:31]save last doc name /storage/0194/doc_00069842 to /storage/kkm_last_doc_name [13:56:31]save OK [13:56:31]Clear old archive folders... [13:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:31]tlvbuf is 00D6FAC0 [13:56:31]SAM_PROTO_ClearQueue [13:56:31]wFMCommunicate request_size=4 [13:56:31]MH_SAM_APDU [13:56:31]CAPDU: 80 09 00 00 [13:56:31]Write to MH i2c: E2 08 00 0F 46 80 09 00 00 00 00 00 00 C7 [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:31]Read from MH i2c: E2 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 03 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 03 00 0F 46 00 90 00 C9 [13:56:31]RAPDU: 90 00 [13:56:31]wFMCommunicate OK [13:56:31]SAM_PROTO_ClearQueue done [13:56:31]KKMCreateOFDPacket [13:56:31]OFDProtocolAddRootSTLVToBuf [13:56:31]FM_MakeSignedData [13:56:31]FM_MakeSignedData [13:56:31]SAM_PROTO_SignData [13:56:31]wFMCommunicate request_size=4 [13:56:31]MH_SAM_APDU [13:56:31]CAPDU: 80 0D 01 02 [13:56:31]Write to MH i2c: E2 08 00 10 46 80 0D 01 02 00 00 00 00 CF [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:31]Read from MH i2c: E2 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 03 00 [13:56:31]MH_I2C_Read... [13:56:31]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [13:56:31]RAPDU: 90 00 [13:56:31]wFMCommunicate OK [13:56:31]wFMCommunicate request_size=255 [13:56:31]MH_SAM_APDU [13:56:31]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 10 01 00 35 04 06 00 5D [13:56:31]Write to MH i2c: E2 02 01 11 46 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 10 01 00 35 04 06 00 5D 00 00 AE [13:56:31]Write i2c OK [13:56:31]MH_I2C_Read... [13:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:32]Read from MH i2c: E2 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 03 00 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 03 00 11 46 00 90 00 CB [13:56:32]RAPDU: 90 00 [13:56:32]wFMCommunicate OK [13:56:32]wFMCommunicate request_size=10 [13:56:32]MH_SAM_APDU [13:56:32]CAPDU: 80 0D 02 02 05 A0 B5 36 1E 59 [13:56:32]Write to MH i2c: E2 0D 00 12 46 80 0D 02 02 05 00 A0 B5 36 1E 59 00 00 DE [13:56:32]Write i2c OK [13:56:32]MH_I2C_Read... [13:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:32]Read from MH i2c: E2 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 03 00 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 03 00 12 46 00 90 00 CC [13:56:32]RAPDU: 90 00 [13:56:32]wFMCommunicate OK [13:56:32]wFMCommunicate request_size=4 [13:56:32]MH_SAM_APDU [13:56:32]CAPDU: 80 0D 03 02 [13:56:32]Write to MH i2c: E2 08 00 13 46 80 0D 03 02 00 00 00 00 D4 [13:56:32]Write i2c OK [13:56:32]MH_I2C_Read... [13:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:32]Read from MH i2c: E2 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 0B 00 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 0B 00 13 46 00 2F EC 01 1A B1 33 90 AB 90 00 2A [13:56:32]RAPDU: 2F EC 01 1A B1 33 90 AB 90 00 [13:56:32]wFMCommunicate OK [13:56:32]SAM_PROTO_SignData done [13:56:32]FM_MakeSignedData done [13:56:32]CreateOFDProtocolMessage [13:56:32]wFMCommunicate request_size=4 [13:56:32]MH_SAM_APDU [13:56:32]CAPDU: 80 11 00 00 [13:56:32]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [13:56:32]Write i2c OK [13:56:32]MH_I2C_Read... [13:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:32]Read from MH i2c: E2 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 17 00 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [13:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:56:32]wFMCommunicate OK [13:56:32]CreateOFDProtocolMessage done [13:56:32]OFDSenderStorePacket 69842 [13:56:32]StoreOFDPacket docnum=69842 [13:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B9 21 07 01 54 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 10 01 00 35 04 06 00 5D A0 B5 36 1E 59 2F EC 01 1A B1 33 90 AB [13:56:32]CheckFolder [13:56:32]dirname=/storage/ofd_packets [13:56:32]CheckFolder done [13:56:32]ProducePacketName [13:56:32]name=ofd_packets/00069842 [13:56:32]NVStorageSaveData ofd_packets/00069842 [13:56:32]File name is /storage/ofd_packets/00069842 [13:56:32]Write 301 bytes [13:56:32]NVStorageSaveData done [13:56:32]OFDSenderStorePacket done [13:56:32]KKMCreateOFDPacket done [13:56:32]NVStorageSaveData kkm_last_timestamp [13:56:32]File name is /storage/kkm_last_timestamp [13:56:32]Write 4 bytes [13:56:32]NVStorageSaveData done [13:56:32]ExternCall_PrintAddStr [13:56:32]wPrintStart [13:56:32]Write to MH i2c: 01 00 00 15 46 5B [13:56:32]Write i2c OK [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: 01 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: 01 07 00 [13:56:32]MH_I2C_Read... [13:56:32]Read from MH i2c: 01 07 00 15 46 00 00 00 00 00 FF 0F 70 [13:56:32]RasterBufferAndPrint [13:56:32]line Счет N : (1)2885591 [13:56:32]line ИНН: 02508201610067 [13:56:32]line Контрольно-Кассовый Чек [13:56:32]line ПРОДАЖА [13:56:32]line ТРК (МРК, ГНК) : 42 [13:56:32]line Товар: 2710124130 [13:56:32]line Аи-92-К-5 [13:56:32]line 7.480 * 66.90 [13:56:32]line = 500.41 [13:56:32]line НДС 12% НСП 1% [13:56:32]line > о реализуемом товаре [13:56:32]line ОКРУГЛЕНИЕ: -0.41 [13:56:32]line ИТОГО: 500.00 [13:56:32]line Внесено: 500.00 [13:56:32]line СДАЧА: 0.00 [13:56:32]line НСП 1% : 4.43 [13:56:32]line НДС 12% : 53.14 [13:56:32]line Наличными: 500.00 [13:56:32]line Безнал.: 0.00 [13:56:32]line Место: АЗС № 85 "Партнер Нефть" [13:56:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:56:32]line СНО: Общий режим [13:56:32]line Чек 232 21.10.2024 13:56 [13:56:32]line Смена: 194 ФФД: 1.0 [13:56:32]line ЗНМ: 0300000167 [13:56:32]line РНМ: 0000000000156251 [13:56:32]line Версия ККМ: v1.0 [13:56:32]line ФМ: 0000000000963346 [13:56:32]line ФД: 69842 [13:56:32]line ФПД: 102944816373337 [13:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135634&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69842&fm=102944816373337&tin=02508201610067®Number=0000000000156251&sum=50000 [13:56:32]OFD Sender: Processing packet 69842 [packets to send 18, broken 17] [13:56:32]ProducePacketName [13:56:32]name=ofd_packets/00069842 [13:56:32]OFD Sender: To server: pG, [13:56:32]CommunicateWithHost lk.salyk.kg:30040 [13:56:32]ConnectInit lk.salyk.kg [13:56:32]written 0, free lines is 4095 [13:56:32]Connected sock=10 [13:56:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B9 21 07 01 54 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 10 01 00 35 04 06 00 5D A0 B5 36 1E 59 2F EC 01 1A B1 33 90 AB [13:56:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 70 47 00 7C 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 39 36 33 33 34 36 10 04 04 00 D2 10 01 00 F4 03 04 00 36 07 16 67 B6 04 01 00 00 11 C6 EB 7A 5E A5 85 00 [13:56:32]CommunicateWithHost err = 0 [13:56:32]CheckOFDResponse [13:56:32]1017 (14) - 77093643461234 [13:56:32]1041 (16) - 0000000000963346 [13:56:32]1040 (4) - 69842 [13:56:32]1012 (4) - 21.10.2024 07:48 [13:56:32]1206 (1) - 0 [13:56:32]OFD Sender: Remove packet 69842 [13:56:32]ProducePacketName [13:56:32]name=ofd_packets/00069842 [13:56:32]NVStorageDeleteData [13:56:33]Write to MH i2c: 01 00 00 40 46 86 [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: 01 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: 01 07 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: 01 07 00 40 46 00 00 00 00 00 F2 0C 8B [13:56:33]RasterBufferAndPrint [13:56:33]line [13:56:33]line [13:56:33]line [13:56:33]line [13:56:33]line [13:56:33]written 0, free lines is 3320 [13:56:33]MH_Cut [13:56:33]Write to MH i2c: D1 01 00 47 46 01 5F [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: D1 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: D1 01 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: D1 01 00 47 46 00 5E [13:56:33]Write to MH i2c: 01 00 00 48 46 8E [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]OFD Sender: No OFD packet to send [13:56:33]*** Cut start [13:56:33]*** Partial cut [13:56:33]*** CUTSNS_PIN = 1 [13:56:33]*** CUTSNS_PIN = 0 [13:56:33]*** Brake cut motor [13:56:34]Read from MH i2c: 01 [13:56:34]MH_I2C_Read... [13:56:34]*** Stop cut motor [13:56:34]*** Cut end [13:56:34]Read from MH i2c: 01 07 00 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: 01 07 00 48 46 00 00 00 00 00 FF 0F A3 [13:56:34]process_action close_receipt done [13:56:34]requested_data is exist [13:56:34]produce_requested_data [13:56:34]requested_item fm.sn is exist - process it [13:56:34]wFMCommunicate request_size=4 [13:56:34]MH_SAM_APDU [13:56:34]CAPDU: 80 11 00 00 [13:56:34]Write to MH i2c: E2 08 00 49 46 80 11 00 00 00 00 00 00 09 [13:56:34]Write i2c OK [13:56:34]MH_I2C_Read... [13:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:34]Read from MH i2c: E2 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 17 00 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 17 00 49 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [13:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:56:34]wFMCommunicate OK [13:56:34]requested_item fd.num is exist - process it [13:56:34]SAM_PROTO_GetFieldsCounters [13:56:34]wFMCommunicate request_size=4 [13:56:34]MH_SAM_APDU [13:56:34]CAPDU: 80 13 00 00 [13:56:34]Write to MH i2c: E2 08 00 4A 46 80 13 00 00 00 00 00 00 0C [13:56:34]Write i2c OK [13:56:34]MH_I2C_Read... [13:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:34]Read from MH i2c: E2 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 62 00 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 62 00 4A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [13:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:34]wFMCommunicate OK [13:56:34]SAM_PROTO_GetFieldsCounters done [13:56:34]requested_item shift.num is exist - process it [13:56:34]requested_item shift.opened is exist - process it [13:56:34]req_shift_opened [13:56:34]FM_GetShiftState [13:56:34]SAM_PROTO_GetShiftState [13:56:34]wFMCommunicate request_size=4 [13:56:34]MH_SAM_APDU [13:56:34]CAPDU: 80 13 01 00 [13:56:34]Write to MH i2c: E2 08 00 4B 46 80 13 01 00 00 00 00 00 0E [13:56:34]Write i2c OK [13:56:34]MH_I2C_Read... [13:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:34]Read from MH i2c: E2 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 0E 00 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 0E 00 4B 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3A [13:56:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:56:34]wFMCommunicate OK [13:56:34]SAM_PROTO_GetShiftState done [13:56:34]FM_GetShiftState done [13:56:34]req_shift_opened done [13:56:34]requested_item shift.open_date is exist - process it [13:56:34]req_shift_open_date [13:56:34]req_shift_open_date done [13:56:34]produce_requested_data done [13:56:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69842,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:56:34]process_action_free close_receipt [13:56:34]json_value_free [13:56:34]json_value_free done [13:56:34]process_json_proto returns [13:56:34]Send response to host [13:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69842,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:56:34]free response buf [13:56:34]execute_script done [13:56:34]execute_script returns [13:56:34]free content buf [13:56:34]Sock 9.Close socket [13:56:34]Sock 9.Thread stoped [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:41]accept exits with 8 [13:57:41]New connection [13:57:41]New thread 3067313508 created [13:57:41]Thread 3067456868 joined [13:57:41]Waiting for new connection... [13:57:41] Sock 8.Parse request [13:57:41]Sock 8.Check first char [13:57:41]Sock 8.First char is OK [13:57:41]request: POST /json_proto HTTP/1.0 [13:57:41]Method: POST [13:57:41]URL: /json_proto [13:57:41]Method is POST - this is cgi request [13:57:41]url: /json_proto [13:57:41]query_string will be loaded in cgi processing [13:57:41]execute_cgi json_proto POST (null) [13:57:41]execute_cgi path=json_proto method=POST [13:57:41]POST find Content-Length [13:57:41]Host: 172.17.50.3:8080 [13:57:41]Content-Length: 683 [13:57:41]Content-Type: application/json [13:57:41] [13:57:41]POST finish read [13:57:41]Found Content-Length = 683 [13:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:41]execute_script... [13:57: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)2885592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:41]POST & json_proto [13:57:41]process_json_proto [13:57:41]json parsed OK: [13:57:41]protocol is kg_v1.0 [13:57:41]action value=close_receipt [13:57:41]process_action close_receipt [13:57:41]cmd_close_receipt [13:57:41]MH_GetDate [13:57:41]Write to MH i2c: F0 00 00 4C 46 81 [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: F0 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: F0 09 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: F0 09 00 4C 46 00 D9 5D 16 67 6B 98 1E 66 C4 [13:57:41]GetLastDocTimeStamp 1729518994 [13:57:41]current date 1729519065 [13:57:41]FM_GetShiftState [13:57:41]SAM_PROTO_GetShiftState [13:57:41]wFMCommunicate request_size=4 [13:57:41]MH_SAM_APDU [13:57:41]CAPDU: 80 13 01 00 [13:57:41]Write to MH i2c: E2 08 00 4D 46 80 13 01 00 00 00 00 00 10 [13:57:41]Write i2c OK [13:57:41]MH_I2C_Read... [13:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:41]Read from MH i2c: E2 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0E 00 [13:57:41]MH_I2C_Read... [13:57:41]Read from MH i2c: E2 0E 00 4D 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3C [13:57:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:57:41]wFMCommunicate OK [13:57:41]SAM_PROTO_GetShiftState done [13:57:41]FM_GetShiftState done [13:57:41]opened in 1729469703 [13:57:41]opened+sec_in_day 1729556103 [13:57:41]quantity*price = 100015 [13:57:41]sum+1 = 100017 [13:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 233 21.10.2024 13:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69843 ФПД: 221438605362482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69843&fm=221438605362482&tin=02508201610067®Number=0000000000156251&sum=100000 [13:57:42]StoreToDocumentArchive [13:57:42]shift 194 fd 69843 [13:57:42]save to /storage/0194/doc_00069843 [13:57:42]save last doc name /storage/0194/doc_00069843 to /storage/kkm_last_doc_name [13:57:42]save OK [13:57:42]Clear old archive folders... [13:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:42]tlvbuf is B6FD0570 [13:57:42]SAM_PROTO_ClearQueue [13:57:42]wFMCommunicate request_size=4 [13:57:42]MH_SAM_APDU [13:57:42]CAPDU: 80 09 00 00 [13:57:42]Write to MH i2c: E2 08 00 5A 46 80 09 00 00 00 00 00 00 12 [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 5A 46 00 90 00 14 [13:57:42]RAPDU: 90 00 [13:57:42]wFMCommunicate OK [13:57:42]SAM_PROTO_ClearQueue done [13:57:42]KKMCreateOFDPacket [13:57:42]OFDProtocolAddRootSTLVToBuf [13:57:42]FM_MakeSignedData [13:57:42]FM_MakeSignedData [13:57:42]SAM_PROTO_SignData [13:57:42]wFMCommunicate request_size=4 [13:57:42]MH_SAM_APDU [13:57:42]CAPDU: 80 0D 01 02 [13:57:42]Write to MH i2c: E2 08 00 5B 46 80 0D 01 02 00 00 00 00 1A [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 5B 46 00 90 00 15 [13:57:42]RAPDU: 90 00 [13:57:42]wFMCommunicate OK [13:57:42]wFMCommunicate request_size=255 [13:57:42]MH_SAM_APDU [13:57: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D9 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 10 01 00 35 04 06 00 C9 [13:57:42]Write to MH i2c: E2 02 01 5C 46 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D9 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 10 01 00 35 04 06 00 C9 00 00 A8 [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 5C 46 00 90 00 16 [13:57:42]RAPDU: 90 00 [13:57:42]wFMCommunicate OK [13:57:42]wFMCommunicate request_size=10 [13:57:42]MH_SAM_APDU [13:57:42]CAPDU: 80 0D 02 02 05 65 B1 69 85 32 [13:57:42]Write to MH i2c: E2 0D 00 5D 46 80 0D 02 02 05 00 65 B1 69 85 32 00 00 5D [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 03 00 5D 46 00 90 00 17 [13:57:42]RAPDU: 90 00 [13:57:42]wFMCommunicate OK [13:57:42]wFMCommunicate request_size=4 [13:57:42]MH_SAM_APDU [13:57:42]CAPDU: 80 0D 03 02 [13:57:42]Write to MH i2c: E2 08 00 5E 46 80 0D 03 02 00 00 00 00 1F [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 0B 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 0B 00 5E 46 00 BB 72 C1 EA BF 13 01 9A 90 00 65 [13:57:42]RAPDU: BB 72 C1 EA BF 13 01 9A 90 00 [13:57:42]wFMCommunicate OK [13:57:42]SAM_PROTO_SignData done [13:57:42]FM_MakeSignedData done [13:57:42]CreateOFDProtocolMessage [13:57:42]wFMCommunicate request_size=4 [13:57:42]MH_SAM_APDU [13:57:42]CAPDU: 80 11 00 00 [13:57:42]Write to MH i2c: E2 08 00 5F 46 80 11 00 00 00 00 00 00 1F [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:42]Read from MH i2c: E2 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 17 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: E2 17 00 5F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [13:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:42]wFMCommunicate OK [13:57:42]CreateOFDProtocolMessage done [13:57:42]OFDSenderStorePacket 69843 [13:57:42]StoreOFDPacket docnum=69843 [13:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 18 07 01 FD E5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D9 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 10 01 00 35 04 06 00 C9 65 B1 69 85 32 BB 72 C1 EA BF 13 01 9A [13:57:42]CheckFolder [13:57:42]dirname=/storage/ofd_packets [13:57:42]CheckFolder done [13:57:42]ProducePacketName [13:57:42]name=ofd_packets/00069843 [13:57:42]NVStorageSaveData ofd_packets/00069843 [13:57:42]File name is /storage/ofd_packets/00069843 [13:57:42]Write 301 bytes [13:57:42]NVStorageSaveData done [13:57:42]OFDSenderStorePacket done [13:57:42]KKMCreateOFDPacket done [13:57:42]NVStorageSaveData kkm_last_timestamp [13:57:42]File name is /storage/kkm_last_timestamp [13:57:42]Write 4 bytes [13:57:42]NVStorageSaveData done [13:57:42]ExternCall_PrintAddStr [13:57:42]wPrintStart [13:57:42]Write to MH i2c: 01 00 00 60 46 A6 [13:57:42]Write i2c OK [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 07 00 [13:57:42]MH_I2C_Read... [13:57:42]Read from MH i2c: 01 07 00 60 46 00 00 00 00 00 FF 0F BB [13:57:42]RasterBufferAndPrint [13:57:42]line Счет N : (1)2885592 [13:57:42]line ИНН: 02508201610067 [13:57:42]line Контрольно-Кассовый Чек [13:57:42]line ПРОДАЖА [13:57:42]line ТРК (МРК, ГНК) : 22 [13:57:42]line Товар: 2710124130 [13:57:42]line Аи-92-К-5 [13:57:42]line 14.950 * 66.90 [13:57:42]line = 1000.16 [13:57:42]line НДС 12% НСП 1% [13:57:42]line > о реализуемом товаре [13:57:42]line ОКРУГЛЕНИЕ: -0.16 [13:57:42]line ИТОГО: 1000.00 [13:57:42]line Внесено: 1000.00 [13:57:42]line СДАЧА: 0.00 [13:57:42]line НСП 1% : 8.85 [13:57:42]line НДС 12% : 106.21 [13:57:42]line Наличными: 1000.00 [13:57:42]line Безнал.: 0.00 [13:57:42]line Место: АЗС № 85 "Партнер Нефть" [13:57:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:42]line СНО: Общий режим [13:57:42]line Чек 233 21.10.2024 13:57 [13:57:42]line Смена: 194 ФФД: 1.0 [13:57:42]line ЗНМ: 0300000167 [13:57:43]line РНМ: 0000000000156251 [13:57:43]line Версия ККМ: v1.0 [13:57:43]line ФМ: 0000000000963346 [13:57:43]line ФД: 69843 [13:57:43]line ФПД: 221438605362482 [13:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69843&fm=221438605362482&tin=02508201610067®Number=0000000000156251&sum=100000 [13:57:43]OFD Sender: Processing packet 69843 [packets to send 18, broken 17] [13:57:43]ProducePacketName [13:57:43]name=ofd_packets/00069843 [13:57:43]OFD Sender: To server: pG, [13:57:43]CommunicateWithHost lk.salyk.kg:30040 [13:57:43]ConnectInit lk.salyk.kg [13:57:43]written 0, free lines is 4095 [13:57:43]Connected sock=10 [13:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 18 07 01 FD E5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D9 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 10 01 00 35 04 06 00 C9 65 B1 69 85 32 BB 72 C1 EA BF 13 01 9A [13:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 DA 47 00 EB E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 10 01 00 F4 03 04 00 7C 07 16 67 B6 04 01 00 00 1D 78 98 1C 36 AE 2E D4 [13:57:43]CommunicateWithHost err = 0 [13:57:43]CheckOFDResponse [13:57:43]1017 (14) - 77093643461234 [13:57:43]1041 (16) - 0000000000963346 [13:57:43]1040 (4) - 69843 [13:57:43]1012 (4) - 21.10.2024 07:49 [13:57:43]1206 (1) - 0 [13:57:43]OFD Sender: Remove packet 69843 [13:57:43]ProducePacketName [13:57:43]name=ofd_packets/00069843 [13:57:43]NVStorageDeleteData [13:57:43]Write to MH i2c: 01 00 00 8B 46 D1 [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: 01 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: 01 07 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: 01 07 00 8B 46 00 00 00 00 00 F9 0C DD [13:57:43]RasterBufferAndPrint [13:57:43]line [13:57:43]line [13:57:43]line [13:57:43]line [13:57:43]line [13:57:43]written 0, free lines is 3327 [13:57:43]MH_Cut [13:57:43]Write to MH i2c: D1 01 00 92 46 01 AA [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: D1 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: D1 01 00 [13:57:43]MH_I2C_Read... [13:57:43]Read from MH i2c: D1 01 00 92 46 00 A9 [13:57:43]Write to MH i2c: 01 00 00 93 46 D9 [13:57:43]Write i2c OK [13:57:43]MH_I2C_Read... [13:57:44]OFD Sender: No OFD packet to send [13:57:44]*** Cut start [13:57:44]*** Partial cut [13:57:44]*** CUTSNS_PIN = 1 [13:57:44]*** CUTSNS_PIN = 0 [13:57:44]*** Brake cut motor [13:57:45]Read from MH i2c: 01 [13:57:45]MH_I2C_Read... [13:57:45]*** Stop cut motor [13:57:45]*** Cut end [13:57:45]Read from MH i2c: 01 07 00 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: 01 07 00 93 46 00 00 00 00 00 FF 0F EE [13:57:45]process_action close_receipt done [13:57:45]requested_data is exist [13:57:45]produce_requested_data [13:57:45]requested_item fm.sn is exist - process it [13:57:45]wFMCommunicate request_size=4 [13:57:45]MH_SAM_APDU [13:57:45]CAPDU: 80 11 00 00 [13:57:45]Write to MH i2c: E2 08 00 94 46 80 11 00 00 00 00 00 00 54 [13:57:45]Write i2c OK [13:57:45]MH_I2C_Read... [13:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:45]Read from MH i2c: E2 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 17 00 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 17 00 94 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [13:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:45]wFMCommunicate OK [13:57:45]requested_item fd.num is exist - process it [13:57:45]SAM_PROTO_GetFieldsCounters [13:57:45]wFMCommunicate request_size=4 [13:57:45]MH_SAM_APDU [13:57:45]CAPDU: 80 13 00 00 [13:57:45]Write to MH i2c: E2 08 00 95 46 80 13 00 00 00 00 00 00 57 [13:57:45]Write i2c OK [13:57:45]MH_I2C_Read... [13:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:45]Read from MH i2c: E2 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 62 00 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 62 00 95 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [13:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:45]wFMCommunicate OK [13:57:45]SAM_PROTO_GetFieldsCounters done [13:57:45]requested_item shift.num is exist - process it [13:57:45]requested_item shift.opened is exist - process it [13:57:45]req_shift_opened [13:57:45]FM_GetShiftState [13:57:45]SAM_PROTO_GetShiftState [13:57:45]wFMCommunicate request_size=4 [13:57:45]MH_SAM_APDU [13:57:45]CAPDU: 80 13 01 00 [13:57:45]Write to MH i2c: E2 08 00 96 46 80 13 01 00 00 00 00 00 59 [13:57:45]Write i2c OK [13:57:45]MH_I2C_Read... [13:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:45]Read from MH i2c: E2 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 0E 00 [13:57:45]MH_I2C_Read... [13:57:45]Read from MH i2c: E2 0E 00 96 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 85 [13:57:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:57:45]wFMCommunicate OK [13:57:45]SAM_PROTO_GetShiftState done [13:57:45]FM_GetShiftState done [13:57:45]req_shift_opened done [13:57:45]requested_item shift.open_date is exist - process it [13:57:45]req_shift_open_date [13:57:45]req_shift_open_date done [13:57:45]produce_requested_data done [13:57:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69843,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:57:45]process_action_free close_receipt [13:57:45]json_value_free [13:57:45]json_value_free done [13:57:45]process_json_proto returns [13:57:45]Send response to host [13:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69843,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:57:45]free response buf [13:57:45]execute_script done [13:57:45]execute_script returns [13:57:45]free content buf [13:57:45]Sock 8.Close socket [13:57:45]Sock 8.Thread stoped [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:16]accept exits with 9 [13:58:16]New connection [13:58:16]New thread 3067456868 created [13:58:16]Thread 3067313508 joined [13:58:16]Waiting for new connection... [13:58:16] Sock 9.Parse request [13:58:16]Sock 9.Check first char [13:58:16]Sock 9.First char is OK [13:58:16]request: POST /json_proto HTTP/1.0 [13:58:16]Method: POST [13:58:16]URL: /json_proto [13:58:16]Method is POST - this is cgi request [13:58:16]url: /json_proto [13:58:16]query_string will be loaded in cgi processing [13:58:16]execute_cgi json_proto POST (null) [13:58:16]execute_cgi path=json_proto method=POST [13:58:16]POST find Content-Length [13:58:16]Host: 172.17.50.3:8080 [13:58:16]Content-Length: 686 [13:58:16]Content-Type: application/json [13:58:16] [13:58:16]POST finish read [13:58:16]Found Content-Length = 686 [13:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:16]execute_script... [13:58: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)2885593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:16]POST & json_proto [13:58:16]process_json_proto [13:58:16]json parsed OK: [13:58:16]protocol is kg_v1.0 [13:58:16]action value=close_receipt [13:58:16]process_action close_receipt [13:58:16]cmd_close_receipt [13:58:16]MH_GetDate [13:58:16]Write to MH i2c: F0 00 00 97 46 CC [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: F0 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: F0 09 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: F0 09 00 97 46 00 FC 5D 16 67 6B 98 1E 66 32 [13:58:16]GetLastDocTimeStamp 1729519065 [13:58:16]current date 1729519100 [13:58:16]FM_GetShiftState [13:58:16]SAM_PROTO_GetShiftState [13:58:16]wFMCommunicate request_size=4 [13:58:16]MH_SAM_APDU [13:58:16]CAPDU: 80 13 01 00 [13:58:16]Write to MH i2c: E2 08 00 98 46 80 13 01 00 00 00 00 00 5B [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:16]Read from MH i2c: E2 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 0E 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: E2 0E 00 98 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 87 [13:58:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:58:16]wFMCommunicate OK [13:58:16]SAM_PROTO_GetShiftState done [13:58:16]FM_GetShiftState done [13:58:16]opened in 1729469703 [13:58:16]opened+sec_in_day 1729556103 [13:58:16]quantity*price = 100011 [13:58:16]sum+1 = 100013 [13:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 234 21.10.2024 13:58 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69844 ФПД: 264183974537005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135820&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69844&fm=264183974537005&tin=02508201610067®Number=0000000000156251&sum=100000 [13:58:17]StoreToDocumentArchive [13:58:17]shift 194 fd 69844 [13:58:17]save to /storage/0194/doc_00069844 [13:58:17]save last doc name /storage/0194/doc_00069844 to /storage/kkm_last_doc_name [13:58:17]save OK [13:58:17]Clear old archive folders... [13:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:58:17]tlvbuf is 00D93E90 [13:58:17]SAM_PROTO_ClearQueue [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 09 00 00 [13:58:17]Write to MH i2c: E2 08 00 A5 46 80 09 00 00 00 00 00 00 5D [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [13:58:17]RAPDU: 90 00 [13:58:17]wFMCommunicate OK [13:58:17]SAM_PROTO_ClearQueue done [13:58:17]KKMCreateOFDPacket [13:58:17]OFDProtocolAddRootSTLVToBuf [13:58:17]FM_MakeSignedData [13:58:17]FM_MakeSignedData [13:58:17]SAM_PROTO_SignData [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 0D 01 02 [13:58:17]Write to MH i2c: E2 08 00 A6 46 80 0D 01 02 00 00 00 00 65 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [13:58:17]RAPDU: 90 00 [13:58:17]wFMCommunicate OK [13:58:17]wFMCommunicate request_size=255 [13:58:17]MH_SAM_APDU [13:58:17]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 FC 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 10 01 00 35 04 06 00 F0 46 [13:58:17]Write to MH i2c: E2 02 01 A7 46 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 FC 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 10 01 00 35 04 06 00 F0 46 00 00 66 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 03 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 03 00 A7 46 00 90 00 61 [13:58:18]RAPDU: 90 00 [13:58:18]wFMCommunicate OK [13:58:18]wFMCommunicate request_size=9 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 0D 02 02 04 1F F5 27 2D [13:58:18]Write to MH i2c: E2 0C 00 A8 46 80 0D 02 02 04 00 1F F5 27 2D 00 00 D8 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 03 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 03 00 A8 46 00 90 00 62 [13:58:18]RAPDU: 90 00 [13:58:18]wFMCommunicate OK [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 0D 03 02 [13:58:18]Write to MH i2c: E2 08 00 A9 46 80 0D 03 02 00 00 00 00 6A [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 0B 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 0B 00 A9 46 00 A9 50 F3 A6 EB 0B 61 97 90 00 EB [13:58:18]RAPDU: A9 50 F3 A6 EB 0B 61 97 90 00 [13:58:18]wFMCommunicate OK [13:58:18]SAM_PROTO_SignData done [13:58:18]FM_MakeSignedData done [13:58:18]CreateOFDProtocolMessage [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 11 00 00 [13:58:18]Write to MH i2c: E2 08 00 AA 46 80 11 00 00 00 00 00 00 6A [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 AA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [13:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:58:18]wFMCommunicate OK [13:58:18]CreateOFDProtocolMessage done [13:58:18]OFDSenderStorePacket 69844 [13:58:18]StoreOFDPacket docnum=69844 [13:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 48 90 06 01 B9 AD 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 FC 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 10 01 00 35 04 06 00 F0 46 1F F5 27 2D A9 50 F3 A6 EB 0B 61 97 [13:58:18]CheckFolder [13:58:18]dirname=/storage/ofd_packets [13:58:18]CheckFolder done [13:58:18]ProducePacketName [13:58:18]name=ofd_packets/00069844 [13:58:18]NVStorageSaveData ofd_packets/00069844 [13:58:18]File name is /storage/ofd_packets/00069844 [13:58:18]Write 300 bytes [13:58:18]NVStorageSaveData done [13:58:18]OFDSenderStorePacket done [13:58:18]KKMCreateOFDPacket done [13:58:18]NVStorageSaveData kkm_last_timestamp [13:58:18]File name is /storage/kkm_last_timestamp [13:58:18]Write 4 bytes [13:58:18]NVStorageSaveData done [13:58:18]ExternCall_PrintAddStr [13:58:18]wPrintStart [13:58:18]Write to MH i2c: 01 00 00 AB 46 F1 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 07 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: 01 07 00 AB 46 00 00 00 00 00 FF 0F 06 [13:58:18]RasterBufferAndPrint [13:58:18]line Счет N : (1)2885593 [13:58:18]line ИНН: 02508201610067 [13:58:18]line Контрольно-Кассовый Чек [13:58:18]line ПРОДАЖА [13:58:18]line ТРК (МРК, ГНК) : 71 [13:58:18]line Товар: 2711129700 [13:58:18]line ГАЗ-К-3 [13:58:18]line 25.710 * 38.90 [13:58:18]line = 1000.12 [13:58:18]line НДС 12% НСП 1% [13:58:18]line > о реализуемом товаре [13:58:18]line ОКРУГЛЕНИЕ: -0.12 [13:58:18]line ИТОГО: 1000.00 [13:58:18]line Внесено: 1000.00 [13:58:18]line СДАЧА: 0.00 [13:58:18]line НСП 1% : 8.85 [13:58:18]line НДС 12% : 106.21 [13:58:18]line Наличными: 1000.00 [13:58:18]line Безнал.: 0.00 [13:58:18]line Место: АЗС № 85 "Партнер Нефть" [13:58:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:58:18]line СНО: Общий режим [13:58:18]line Чек 234 21.10.2024 13:58 [13:58:18]line Смена: 194 ФФД: 1.0 [13:58:18]line ЗНМ: 0300000167 [13:58:18]line РНМ: 0000000000156251 [13:58:18]line Версия ККМ: v1.0 [13:58:18]line ФМ: 0000000000963346 [13:58:18]line ФД: 69844 [13:58:18]line ФПД: 264183974537005 [13:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135820&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69844&fm=264183974537005&tin=02508201610067®Number=0000000000156251&sum=100000 [13:58:18]OFD Sender: Processing packet 69844 [packets to send 18, broken 17] [13:58:18]ProducePacketName [13:58:18]name=ofd_packets/00069844 [13:58:18]OFD Sender: To server: pG, [13:58:18]CommunicateWithHost lk.salyk.kg:30040 [13:58:18]ConnectInit lk.salyk.kg [13:58:18]written 0, free lines is 4095 [13:58:18]Connected sock=10 [13:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 48 90 06 01 B9 AD 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 FC 5D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 10 01 00 35 04 06 00 F0 46 1F F5 27 2D A9 50 F3 A6 EB 0B 61 97 [13:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 96 47 00 6A E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 10 01 00 F4 03 04 00 A0 07 16 67 B6 04 01 00 00 49 FB 28 B8 1F A2 79 84 [13:58:18]CommunicateWithHost err = 0 [13:58:18]CheckOFDResponse [13:58:18]1017 (14) - 77093643461234 [13:58:18]1041 (16) - 0000000000963346 [13:58:18]1040 (4) - 69844 [13:58:18]1012 (4) - 21.10.2024 07:49 [13:58:18]1206 (1) - 0 [13:58:18]OFD Sender: Remove packet 69844 [13:58:18]ProducePacketName [13:58:18]name=ofd_packets/00069844 [13:58:18]NVStorageDeleteData [13:58:19]Write to MH i2c: 01 00 00 D6 46 1C [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 07 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 07 00 D6 46 00 00 00 00 00 E1 0C 10 [13:58:19]RasterBufferAndPrint [13:58:19]line [13:58:19]line [13:58:19]line [13:58:19]line [13:58:19]line [13:58:19]written 0, free lines is 3306 [13:58:19]MH_Cut [13:58:19]Write to MH i2c: D1 01 00 DD 46 01 F5 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: D1 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: D1 01 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: D1 01 00 DD 46 00 F4 [13:58:19]Write to MH i2c: 01 00 00 DE 46 24 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]OFD Sender: No OFD packet to send [13:58:19]*** Cut start [13:58:19]*** Partial cut [13:58:19]*** CUTSNS_PIN = 1 [13:58:19]*** CUTSNS_PIN = 0 [13:58:20]*** Brake cut motor [13:58:20]Read from MH i2c: 01 [13:58:20]MH_I2C_Read... [13:58:20]*** Stop cut motor [13:58:20]*** Cut end [13:58:20]Read from MH i2c: 01 07 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: 01 07 00 DE 46 00 00 00 00 00 FF 0F 39 [13:58:20]process_action close_receipt done [13:58:20]requested_data is exist [13:58:20]produce_requested_data [13:58:20]requested_item fm.sn is exist - process it [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 11 00 00 [13:58:20]Write to MH i2c: E2 08 00 DF 46 80 11 00 00 00 00 00 00 9F [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 17 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 17 00 DF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [13:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:58:20]wFMCommunicate OK [13:58:20]requested_item fd.num is exist - process it [13:58:20]SAM_PROTO_GetFieldsCounters [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 13 00 00 [13:58:20]Write to MH i2c: E2 08 00 E0 46 80 13 00 00 00 00 00 00 A2 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 62 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 62 00 E0 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:58:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_GetFieldsCounters done [13:58:20]requested_item shift.num is exist - process it [13:58:20]requested_item shift.opened is exist - process it [13:58:20]req_shift_opened [13:58:20]FM_GetShiftState [13:58:20]SAM_PROTO_GetShiftState [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 13 01 00 [13:58:20]Write to MH i2c: E2 08 00 E1 46 80 13 01 00 00 00 00 00 A4 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 E1 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D0 [13:58:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_GetShiftState done [13:58:20]FM_GetShiftState done [13:58:20]req_shift_opened done [13:58:20]requested_item shift.open_date is exist - process it [13:58:20]req_shift_open_date [13:58:20]req_shift_open_date done [13:58:20]produce_requested_data done [13:58:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69844,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [13:58:20]process_action_free close_receipt [13:58:20]json_value_free [13:58:20]json_value_free done [13:58:20]process_json_proto returns [13:58:20]Send response to host [13:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69844,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [13:58:20]free response buf [13:58:20]execute_script done [13:58:20]execute_script returns [13:58:20]free content buf [13:58:20]Sock 9.Close socket [13:58:20]Sock 9.Thread stoped [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:38]accept exits with 8 [14:00:38]New connection [14:00:38]New thread 3067313508 created [14:00:38]Thread 3067456868 joined [14:00:38]Waiting for new connection... [14:00:38] Sock 8.Parse request [14:00:38]Sock 8.Check first char [14:00:38]Sock 8.First char is OK [14:00:38]request: POST /json_proto HTTP/1.0 [14:00:38]Method: POST [14:00:38]URL: /json_proto [14:00:38]Method is POST - this is cgi request [14:00:38]url: /json_proto [14:00:38]query_string will be loaded in cgi processing [14:00:38]execute_cgi json_proto POST (null) [14:00:38]execute_cgi path=json_proto method=POST [14:00:38]POST find Content-Length [14:00:38]Host: 172.17.50.3:8080 [14:00:38]Content-Length: 675 [14:00:38]Content-Type: application/json [14:00:38] [14:00:38]POST finish read [14:00:38]Found Content-Length = 675 [14:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [14:00:38]execute_script... [14:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [14:00:38]POST & json_proto [14:00:38]process_json_proto [14:00:38]json parsed OK: [14:00:38]protocol is kg_v1.0 [14:00:38]action value=close_receipt [14:00:38]process_action close_receipt [14:00:38]cmd_close_receipt [14:00:38]MH_GetDate [14:00:38]Write to MH i2c: F0 00 00 E2 46 17 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: F0 09 00 E2 46 00 8A 5E 16 67 6B 98 1E 66 0C [14:00:38]GetLastDocTimeStamp 1729519100 [14:00:38]current date 1729519242 [14:00:38]FM_GetShiftState [14:00:38]SAM_PROTO_GetShiftState [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 01 00 [14:00:38]Write to MH i2c: E2 08 00 E3 46 80 13 01 00 00 00 00 00 A6 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 0E 00 E3 46 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D2 [14:00:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:00:38]wFMCommunicate OK [14:00:38]SAM_PROTO_GetShiftState done [14:00:38]FM_GetShiftState done [14:00:38]opened in 1729469703 [14:00:38]opened+sec_in_day 1729556103 [14:00:38]quantity*price = 60045 [14:00:38]sum+1 = 60047 [14:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 235 21.10.2024 14:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69845 ФПД: 256012803651126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69845&fm=256012803651126&tin=02508201610067®Number=0000000000156251&sum=60000 [14:00:39]StoreToDocumentArchive [14:00:39]shift 194 fd 69845 [14:00:39]save to /storage/0194/doc_00069845 [14:00:39]save last doc name /storage/0194/doc_00069845 to /storage/kkm_last_doc_name [14:00:39]save OK [14:00:39]Clear old archive folders... [14:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:39]tlvbuf is 00D93A40 [14:00:39]SAM_PROTO_ClearQueue [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 09 00 00 [14:00:39]Write to MH i2c: E2 08 00 F0 46 80 09 00 00 00 00 00 00 A8 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [14:00:39]RAPDU: 90 00 [14:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_ClearQueue done [14:00:39]KKMCreateOFDPacket [14:00:39]OFDProtocolAddRootSTLVToBuf [14:00:39]FM_MakeSignedData [14:00:39]FM_MakeSignedData [14:00:39]SAM_PROTO_SignData [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 0D 01 02 [14:00:39]Write to MH i2c: E2 08 00 F1 46 80 0D 01 02 00 00 00 00 B0 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 03 00 F1 46 00 90 00 AB [14:00:39]RAPDU: 90 00 [14:00:39]wFMCommunicate OK [14:00:39]wFMCommunicate request_size=255 [14:00:39]MH_SAM_APDU [14:00:39]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 EB 00 00 00 F4 03 04 00 8A 5E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 10 01 00 35 04 06 00 E8 D7 A0 38 [14:00:39]Write to MH i2c: E2 02 01 F2 46 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 EB 00 00 00 F4 03 04 00 8A 5E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 10 01 00 35 04 06 00 E8 D7 A0 38 00 00 7F [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 F2 46 00 90 00 AC [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=7 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 02 02 02 36 36 [14:00:40]Write to MH i2c: E2 0A 00 F3 46 80 0D 02 02 02 00 36 36 00 00 23 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 03 00 F3 46 00 90 00 AD [14:00:40]RAPDU: 90 00 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 0D 03 02 [14:00:40]Write to MH i2c: E2 08 00 F4 46 80 0D 03 02 00 00 00 00 B5 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0B 00 F4 46 00 89 D8 C5 37 D8 FD 10 F2 90 00 EA [14:00:40]RAPDU: 89 D8 C5 37 D8 FD 10 F2 90 00 [14:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_SignData done [14:00:40]FM_MakeSignedData done [14:00:40]CreateOFDProtocolMessage [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 11 00 00 [14:00:40]Write to MH i2c: E2 08 00 F5 46 80 11 00 00 00 00 00 00 B5 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 17 00 F5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [14:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:00:40]wFMCommunicate OK [14:00:40]CreateOFDProtocolMessage done [14:00:40]OFDSenderStorePacket 69845 [14:00:40]StoreOFDPacket docnum=69845 [14:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B6 3F 04 01 13 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 EB 00 00 00 F4 03 04 00 8A 5E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 10 01 00 35 04 06 00 E8 D7 A0 38 36 36 89 D8 C5 37 D8 FD 10 F2 [14:00:40]CheckFolder [14:00:40]dirname=/storage/ofd_packets [14:00:40]CheckFolder done [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00069845 [14:00:40]NVStorageSaveData ofd_packets/00069845 [14:00:40]File name is /storage/ofd_packets/00069845 [14:00:40]Write 298 bytes [14:00:40]NVStorageSaveData done [14:00:40]OFDSenderStorePacket done [14:00:40]KKMCreateOFDPacket done [14:00:40]NVStorageSaveData kkm_last_timestamp [14:00:40]File name is /storage/kkm_last_timestamp [14:00:40]Write 4 bytes [14:00:40]NVStorageSaveData done [14:00:40]ExternCall_PrintAddStr [14:00:40]wPrintStart [14:00:40]Write to MH i2c: 01 00 00 F6 46 3C [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 F6 46 00 00 00 00 00 FF 0F 51 [14:00:40]RasterBufferAndPrint [14:00:40]line Счет N : (1)2885594 [14:00:40]line ИНН: 02508201610067 [14:00:40]line Контрольно-Кассовый Чек [14:00:40]line ПРОДАЖА [14:00:40]line ТРК (МРК, ГНК) : 51 [14:00:40]line Товар: 2710194210 [14:00:40]line ДТ-К-5 [14:00:40]line 7.880 * 76.20 [14:00:40]line = 600.46 [14:00:40]line НДС 12% НСП 1% [14:00:40]line > о реализуемом товаре [14:00:40]line ОКРУГЛЕНИЕ: -0.46 [14:00:40]line ИТОГО: 600.00 [14:00:40]line Внесено: 600.00 [14:00:40]line СДАЧА: 0.00 [14:00:40]line НСП 1% : 5.31 [14:00:40]line НДС 12% : 63.77 [14:00:40]line Наличными: 600.00 [14:00:40]line Безнал.: 0.00 [14:00:40]line Место: АЗС № 85 "Партнер Нефть" [14:00:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:00:40]line СНО: Общий режим [14:00:40]line Чек 235 21.10.2024 14:00 [14:00:40]line Смена: 194 ФФД: 1.0 [14:00:40]line ЗНМ: 0300000167 [14:00:40]line РНМ: 0000000000156251 [14:00:40]line Версия ККМ: v1.0 [14:00:40]line ФМ: 0000000000963346 [14:00:40]line ФД: 69845 [14:00:40]line ФПД: 256012803651126 [14:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140042&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69845&fm=256012803651126&tin=02508201610067®Number=0000000000156251&sum=60000 [14:00:40]OFD Sender: Processing packet 69845 [packets to send 18, broken 17] [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00069845 [14:00:40]OFD Sender: To server: pG, [14:00:40]CommunicateWithHost lk.salyk.kg:30040 [14:00:40]ConnectInit lk.salyk.kg [14:00:40]written 0, free lines is 4095 [14:00:40]Connected sock=10 [14:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B6 3F 04 01 13 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 EB 00 00 00 F4 03 04 00 8A 5E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 10 01 00 35 04 06 00 E8 D7 A0 38 36 36 89 D8 C5 37 D8 FD 10 F2 [14:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD 7B 47 00 C8 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 10 01 00 F4 03 04 00 2E 08 16 67 B6 04 01 00 00 8E 5B 40 6E F9 31 C7 DA [14:00:40]CommunicateWithHost err = 0 [14:00:40]CheckOFDResponse [14:00:40]1017 (14) - 77093643461234 [14:00:40]1041 (16) - 0000000000963346 [14:00:40]1040 (4) - 69845 [14:00:40]1012 (4) - 21.10.2024 07:52 [14:00:40]1206 (1) - 0 [14:00:40]OFD Sender: Remove packet 69845 [14:00:40]ProducePacketName [14:00:40]name=ofd_packets/00069845 [14:00:40]NVStorageDeleteData [14:00:40]Write to MH i2c: 01 00 00 21 47 68 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: 01 07 00 21 47 00 00 00 00 00 E0 0C 5B [14:00:40]RasterBufferAndPrint [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]line [14:00:40]written 0, free lines is 3305 [14:00:40]MH_Cut [14:00:40]Write to MH i2c: D1 01 00 28 47 01 41 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 01 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: D1 01 00 28 47 00 40 [14:00:41]Write to MH i2c: 01 00 00 29 47 70 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]OFD Sender: No OFD packet to send [14:00:41]*** Cut start [14:00:41]*** Partial cut [14:00:41]*** CUTSNS_PIN = 1 [14:00:41]*** CUTSNS_PIN = 0 [14:00:41]*** Brake cut motor [14:00:42]Read from MH i2c: 01 [14:00:42]MH_I2C_Read... [14:00:42]*** Stop cut motor [14:00:42]*** Cut end [14:00:42]Read from MH i2c: 01 07 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: 01 07 00 29 47 00 00 00 00 00 FF 0F 85 [14:00:42]process_action close_receipt done [14:00:42]requested_data is exist [14:00:42]produce_requested_data [14:00:42]requested_item fm.sn is exist - process it [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 11 00 00 [14:00:42]Write to MH i2c: E2 08 00 2A 47 80 11 00 00 00 00 00 00 EB [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 17 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 17 00 2A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [14:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:00:42]wFMCommunicate OK [14:00:42]requested_item fd.num is exist - process it [14:00:42]SAM_PROTO_GetFieldsCounters [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 13 00 00 [14:00:42]Write to MH i2c: E2 08 00 2B 47 80 13 00 00 00 00 00 00 EE [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 62 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 62 00 2B 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_GetFieldsCounters done [14:00:42]requested_item shift.num is exist - process it [14:00:42]requested_item shift.opened is exist - process it [14:00:42]req_shift_opened [14:00:42]FM_GetShiftState [14:00:42]SAM_PROTO_GetShiftState [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 13 01 00 [14:00:42]Write to MH i2c: E2 08 00 2C 47 80 13 01 00 00 00 00 00 F0 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 2C 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1C [14:00:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_GetShiftState done [14:00:42]FM_GetShiftState done [14:00:42]req_shift_opened done [14:00:42]requested_item shift.open_date is exist - process it [14:00:42]req_shift_open_date [14:00:42]req_shift_open_date done [14:00:42]produce_requested_data done [14:00:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69845,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:00:42]process_action_free close_receipt [14:00:42]json_value_free [14:00:42]json_value_free done [14:00:42]process_json_proto returns [14:00:42]Send response to host [14:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69845,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:00:42]free response buf [14:00:42]execute_script done [14:00:42]execute_script returns [14:00:42]free content buf [14:00:42]Sock 8.Close socket [14:00:42]Sock 8.Thread stoped [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:10]accept exits with 9 [14:09:10]New connection [14:09:10]New thread 3067456868 created [14:09:10]Thread 3067313508 joined [14:09:10]Waiting for new connection... [14:09:10] Sock 9.Parse request [14:09:10]Sock 9.Check first char [14:09:10]Sock 9.First char is OK [14:09:10]request: POST /json_proto HTTP/1.0 [14:09:10]Method: POST [14:09:10]URL: /json_proto [14:09:10]Method is POST - this is cgi request [14:09:10]url: /json_proto [14:09:10]query_string will be loaded in cgi processing [14:09:10]execute_cgi json_proto POST (null) [14:09:10]execute_cgi path=json_proto method=POST [14:09:10]POST find Content-Length [14:09:10]Host: 172.17.50.3:8080 [14:09:10]Content-Length: 678 [14:09:10]Content-Type: application/json [14:09:10] [14:09:10]POST finish read [14:09:10]Found Content-Length = 678 [14:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:10]execute_script... [14:09: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)2885597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:10]POST & json_proto [14:09:10]process_json_proto [14:09:10]json parsed OK: [14:09:10]protocol is kg_v1.0 [14:09:10]action value=close_receipt [14:09:10]process_action close_receipt [14:09:10]cmd_close_receipt [14:09:10]MH_GetDate [14:09:10]Write to MH i2c: F0 00 00 2D 47 63 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: F0 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: F0 09 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: F0 09 00 2D 47 00 8A 60 16 67 6B 98 1E 66 5A [14:09:10]GetLastDocTimeStamp 1729519242 [14:09:10]current date 1729519754 [14:09:10]FM_GetShiftState [14:09:10]SAM_PROTO_GetShiftState [14:09:10]wFMCommunicate request_size=4 [14:09:10]MH_SAM_APDU [14:09:10]CAPDU: 80 13 01 00 [14:09:10]Write to MH i2c: E2 08 00 2E 47 80 13 01 00 00 00 00 00 F2 [14:09:10]Write i2c OK [14:09:10]MH_I2C_Read... [14:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:10]Read from MH i2c: E2 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 0E 00 [14:09:10]MH_I2C_Read... [14:09:10]Read from MH i2c: E2 0E 00 2E 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1E [14:09:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:09:10]wFMCommunicate OK [14:09:10]SAM_PROTO_GetShiftState done [14:09:10]FM_GetShiftState done [14:09:10]opened in 1729469703 [14:09:10]opened+sec_in_day 1729556103 [14:09:10]quantity*price = 34052 [14:09:10]sum+1 = 34053 [14:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 236 21.10.2024 14:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69846 ФПД: 151025788761560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69846&fm=151025788761560&tin=02508201610067®Number=0000000000156251&sum=34000 [14:09:11]StoreToDocumentArchive [14:09:11]shift 194 fd 69846 [14:09:11]save to /storage/0194/doc_00069846 [14:09:11]save last doc name /storage/0194/doc_00069846 to /storage/kkm_last_doc_name [14:09:11]save OK [14:09:11]Clear old archive folders... [14:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:11]tlvbuf is 00CCDEE0 [14:09:11]SAM_PROTO_ClearQueue [14:09:11]wFMCommunicate request_size=4 [14:09:11]MH_SAM_APDU [14:09:11]CAPDU: 80 09 00 00 [14:09:11]Write to MH i2c: E2 08 00 3B 47 80 09 00 00 00 00 00 00 F4 [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:11]Read from MH i2c: E2 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [14:09:11]RAPDU: 90 00 [14:09:11]wFMCommunicate OK [14:09:11]SAM_PROTO_ClearQueue done [14:09:11]KKMCreateOFDPacket [14:09:11]OFDProtocolAddRootSTLVToBuf [14:09:11]FM_MakeSignedData [14:09:11]FM_MakeSignedData [14:09:11]SAM_PROTO_SignData [14:09:11]wFMCommunicate request_size=4 [14:09:11]MH_SAM_APDU [14:09:11]CAPDU: 80 0D 01 02 [14:09:11]Write to MH i2c: E2 08 00 3C 47 80 0D 01 02 00 00 00 00 FC [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:11]Read from MH i2c: E2 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 3C 47 00 90 00 F7 [14:09:11]RAPDU: 90 00 [14:09:11]wFMCommunicate OK [14:09:11]wFMCommunicate request_size=255 [14:09:11]MH_SAM_APDU [14:09: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8A 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 10 01 00 35 04 06 00 89 [14:09:11]Write to MH i2c: E2 02 01 3D 47 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8A 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 10 01 00 35 04 06 00 89 00 00 43 [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]OFD Sender: No OFD packet to send [14:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:11]Read from MH i2c: E2 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 3D 47 00 90 00 F8 [14:09:11]RAPDU: 90 00 [14:09:11]wFMCommunicate OK [14:09:11]wFMCommunicate request_size=10 [14:09:11]MH_SAM_APDU [14:09:11]CAPDU: 80 0D 02 02 05 5B 6E 7D B5 D8 [14:09:11]Write to MH i2c: E2 0D 00 3E 47 80 0D 02 02 05 00 5B 6E 7D B5 D8 00 00 DC [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:11]Read from MH i2c: E2 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 03 00 3E 47 00 90 00 F9 [14:09:11]RAPDU: 90 00 [14:09:11]wFMCommunicate OK [14:09:11]wFMCommunicate request_size=4 [14:09:11]MH_SAM_APDU [14:09:11]CAPDU: 80 0D 03 02 [14:09:11]Write to MH i2c: E2 08 00 3F 47 80 0D 03 02 00 00 00 00 01 [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 0B 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 0B 00 3F 47 00 4B 0C 20 4F 98 7A EE A5 90 00 6D [14:09:12]RAPDU: 4B 0C 20 4F 98 7A EE A5 90 00 [14:09:12]wFMCommunicate OK [14:09:12]SAM_PROTO_SignData done [14:09:12]FM_MakeSignedData done [14:09:12]CreateOFDProtocolMessage [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 11 00 00 [14:09:12]Write to MH i2c: E2 08 00 40 47 80 11 00 00 00 00 00 00 01 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 17 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 17 00 40 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [14:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:09:12]wFMCommunicate OK [14:09:12]CreateOFDProtocolMessage done [14:09:12]OFDSenderStorePacket 69846 [14:09:12]StoreOFDPacket docnum=69846 [14:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 F6 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8A 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 10 01 00 35 04 06 00 89 5B 6E 7D B5 D8 4B 0C 20 4F 98 7A EE A5 [14:09:12]CheckFolder [14:09:12]dirname=/storage/ofd_packets [14:09:12]CheckFolder done [14:09:12]ProducePacketName [14:09:12]name=ofd_packets/00069846 [14:09:12]NVStorageSaveData ofd_packets/00069846 [14:09:12]File name is /storage/ofd_packets/00069846 [14:09:12]Write 301 bytes [14:09:12]NVStorageSaveData done [14:09:12]OFDSenderStorePacket done [14:09:12]KKMCreateOFDPacket done [14:09:12]NVStorageSaveData kkm_last_timestamp [14:09:12]File name is /storage/kkm_last_timestamp [14:09:12]Write 4 bytes [14:09:12]NVStorageSaveData done [14:09:12]ExternCall_PrintAddStr [14:09:12]wPrintStart [14:09:12]Write to MH i2c: 01 00 00 41 47 88 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 07 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 07 00 41 47 00 00 00 00 00 FF 0F 9D [14:09:12]RasterBufferAndPrint [14:09:12]line Счет N : (1)2885597 [14:09:12]line ИНН: 02508201610067 [14:09:12]line Контрольно-Кассовый Чек [14:09:12]line ПРОДАЖА [14:09:12]line ТРК (МРК, ГНК) : 12 [14:09:12]line Товар: 2710124130 [14:09:12]line Аи-92-К-5 [14:09:12]line 5.090 * 66.90 [14:09:12]line = 340.52 [14:09:12]line НДС 12% НСП 1% [14:09:12]line > о реализуемом товаре [14:09:12]line ОКРУГЛЕНИЕ: -0.52 [14:09:12]line ИТОГО: 340.00 [14:09:12]line Внесено: 340.00 [14:09:12]line СДАЧА: 0.00 [14:09:12]line НСП 1% : 3.01 [14:09:12]line НДС 12% : 36.16 [14:09:12]line Наличными: 340.00 [14:09:12]line Безнал.: 0.00 [14:09:12]line Место: АЗС № 85 "Партнер Нефть" [14:09:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:09:12]line СНО: Общий режим [14:09:12]line Чек 236 21.10.2024 14:09 [14:09:12]line Смена: 194 ФФД: 1.0 [14:09:12]line ЗНМ: 0300000167 [14:09:12]line РНМ: 0000000000156251 [14:09:12]line Версия ККМ: v1.0 [14:09:12]line ФМ: 0000000000963346 [14:09:12]line ФД: 69846 [14:09:12]line ФПД: 151025788761560 [14:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69846&fm=151025788761560&tin=02508201610067®Number=0000000000156251&sum=34000 [14:09:12]OFD Sender: Processing packet 69846 [packets to send 18, broken 17] [14:09:12]ProducePacketName [14:09:12]name=ofd_packets/00069846 [14:09:12]OFD Sender: To server: pG, [14:09:12]CommunicateWithHost lk.salyk.kg:30040 [14:09:12]ConnectInit lk.salyk.kg [14:09:12]written 0, free lines is 4095 [14:09:12]Connected sock=10 [14:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 F6 07 01 70 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 8A 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 10 01 00 35 04 06 00 89 5B 6E 7D B5 D8 4B 0C 20 4F 98 7A EE A5 [14:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 83 7B 47 00 B1 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 10 01 00 F4 03 04 00 2E 0A 16 67 B6 04 01 00 00 F2 FA FE A5 D5 66 0F 90 [14:09:12]CommunicateWithHost err = 0 [14:09:12]CheckOFDResponse [14:09:12]1017 (14) - 77093643461234 [14:09:12]1041 (16) - 0000000000963346 [14:09:12]1040 (4) - 69846 [14:09:12]1012 (4) - 21.10.2024 08:00 [14:09:12]1206 (1) - 0 [14:09:12]OFD Sender: Remove packet 69846 [14:09:12]ProducePacketName [14:09:12]name=ofd_packets/00069846 [14:09:12]NVStorageDeleteData [14:09:12]Write to MH i2c: 01 00 00 6C 47 B3 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 07 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: 01 07 00 6C 47 00 00 00 00 00 E6 0C AC [14:09:12]RasterBufferAndPrint [14:09:12]line [14:09:12]line [14:09:12]line [14:09:12]line [14:09:12]line [14:09:12]written 0, free lines is 3308 [14:09:12]MH_Cut [14:09:12]Write to MH i2c: D1 01 00 73 47 01 8C [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: D1 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: D1 01 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: D1 01 00 73 47 00 8B [14:09:12]Write to MH i2c: 01 00 00 74 47 BB [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:13]OFD Sender: No OFD packet to send [14:09:13]*** Cut start [14:09:13]*** Partial cut [14:09:13]*** CUTSNS_PIN = 1 [14:09:13]*** CUTSNS_PIN = 0 [14:09:13]*** Brake cut motor [14:09:14]Read from MH i2c: 01 [14:09:14]MH_I2C_Read... [14:09:14]*** Stop cut motor [14:09:14]*** Cut end [14:09:14]Read from MH i2c: 01 07 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: 01 07 00 74 47 00 00 00 00 00 FF 0F D0 [14:09:14]process_action close_receipt done [14:09:14]requested_data is exist [14:09:14]produce_requested_data [14:09:14]requested_item fm.sn is exist - process it [14:09:14]wFMCommunicate request_size=4 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 11 00 00 [14:09:14]Write to MH i2c: E2 08 00 75 47 80 11 00 00 00 00 00 00 36 [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:14]Read from MH i2c: E2 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 17 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 17 00 75 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [14:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:09:14]wFMCommunicate OK [14:09:14]requested_item fd.num is exist - process it [14:09:14]SAM_PROTO_GetFieldsCounters [14:09:14]wFMCommunicate request_size=4 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 13 00 00 [14:09:14]Write to MH i2c: E2 08 00 76 47 80 13 00 00 00 00 00 00 39 [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:14]Read from MH i2c: E2 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 62 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 62 00 76 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:14]wFMCommunicate OK [14:09:14]SAM_PROTO_GetFieldsCounters done [14:09:14]requested_item shift.num is exist - process it [14:09:14]requested_item shift.opened is exist - process it [14:09:14]req_shift_opened [14:09:14]FM_GetShiftState [14:09:14]SAM_PROTO_GetShiftState [14:09:14]wFMCommunicate request_size=4 [14:09:14]MH_SAM_APDU [14:09:14]CAPDU: 80 13 01 00 [14:09:14]Write to MH i2c: E2 08 00 77 47 80 13 01 00 00 00 00 00 3B [14:09:14]Write i2c OK [14:09:14]MH_I2C_Read... [14:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:14]Read from MH i2c: E2 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 0E 00 [14:09:14]MH_I2C_Read... [14:09:14]Read from MH i2c: E2 0E 00 77 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 67 [14:09:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:09:14]wFMCommunicate OK [14:09:14]SAM_PROTO_GetShiftState done [14:09:14]FM_GetShiftState done [14:09:14]req_shift_opened done [14:09:14]requested_item shift.open_date is exist - process it [14:09:14]req_shift_open_date [14:09:14]req_shift_open_date done [14:09:14]produce_requested_data done [14:09:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69846,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:09:14]process_action_free close_receipt [14:09:14]json_value_free [14:09:14]json_value_free done [14:09:14]process_json_proto returns [14:09:14]Send response to host [14:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69846,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:09:14]free response buf [14:09:14]execute_script done [14:09:14]execute_script returns [14:09:14]free content buf [14:09:14]Sock 9.Close socket [14:09:14]Sock 9.Thread stoped [14:09:18]OFD Sender: No OFD packet to send [14:09:20]accept exits with 8 [14:09:20]New connection [14:09:20]New thread 3067313508 created [14:09:20]Thread 3067456868 joined [14:09:20]Waiting for new connection... [14:09:20] Sock 8.Parse request [14:09:20]Sock 8.Check first char [14:09:20]Sock 8.First char is OK [14:09:20]request: POST /json_proto HTTP/1.0 [14:09:20]Method: POST [14:09:20]URL: /json_proto [14:09:20]Method is POST - this is cgi request [14:09:20]url: /json_proto [14:09:20]query_string will be loaded in cgi processing [14:09:20]execute_cgi json_proto POST (null) [14:09:20]execute_cgi path=json_proto method=POST [14:09:20]POST find Content-Length [14:09:20]Host: 172.17.50.3:8080 [14:09:20]Content-Length: 798 [14:09:20]Content-Type: application/json [14:09:20] [14:09:20]POST finish read [14:09:20]Found Content-Length = 798 [14:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4296245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:20]execute_script... [14:09: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)2885596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4296245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:20]POST & json_proto [14:09:20]process_json_proto [14:09:20]json parsed OK: [14:09:20]protocol is kg_v1.0 [14:09:20]action value=close_receipt [14:09:20]process_action close_receipt [14:09:20]cmd_close_receipt [14:09:20]MH_GetDate [14:09:20]Write to MH i2c: F0 00 00 78 47 AE [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: F0 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: F0 09 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: F0 09 00 78 47 00 94 60 16 67 6B 98 1E 66 AF [14:09:20]GetLastDocTimeStamp 1729519754 [14:09:20]current date 1729519764 [14:09:20]FM_GetShiftState [14:09:20]SAM_PROTO_GetShiftState [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 13 01 00 [14:09:20]Write to MH i2c: E2 08 00 79 47 80 13 01 00 00 00 00 00 3D [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 0E 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 0E 00 79 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 69 [14:09:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:09:20]wFMCommunicate OK [14:09:20]SAM_PROTO_GetShiftState done [14:09:20]FM_GetShiftState done [14:09:20]opened in 1729469703 [14:09:20]opened+sec_in_day 1729556103 [14:09:20]quantity*price = 0 [14:09:20]sum+1 = 1 [14:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 237 21.10.2024 14:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4296245 ФМ: 0000000000963346 ФД: 69847 ФПД: 185881232687543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69847&fm=185881232687543&tin=02508201610067®Number=0000000000156251&sum=0 [14:09:21]StoreToDocumentArchive [14:09:21]shift 194 fd 69847 [14:09:21]save to /storage/0194/doc_00069847 [14:09:21]save last doc name /storage/0194/doc_00069847 to /storage/kkm_last_doc_name [14:09:21]save OK [14:09:21]Clear old archive folders... [14:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:09:21]tlvbuf is 00D17060 [14:09:21]SAM_PROTO_ClearQueue [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 09 00 00 [14:09:21]Write to MH i2c: E2 08 00 86 47 80 09 00 00 00 00 00 00 3F [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 03 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 03 00 86 47 00 90 00 41 [14:09:21]RAPDU: 90 00 [14:09:21]wFMCommunicate OK [14:09:21]SAM_PROTO_ClearQueue done [14:09:21]KKMCreateOFDPacket [14:09:21]OFDProtocolAddRootSTLVToBuf [14:09:21]FM_MakeSignedData [14:09:21]FM_MakeSignedData [14:09:21]SAM_PROTO_SignData [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 0D 01 02 [14:09:21]Write to MH i2c: E2 08 00 87 47 80 0D 01 02 00 00 00 00 47 [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 03 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 03 00 87 47 00 90 00 42 [14:09:21]RAPDU: 90 00 [14:09:21]wFMCommunicate OK [14:09:21]wFMCommunicate request_size=255 [14:09:21]MH_SAM_APDU [14:09:21]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 94 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 10 01 00 35 04 06 00 A9 0E D8 D8 [14:09:22]Write to MH i2c: E2 02 01 88 47 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 94 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 10 01 00 35 04 06 00 A9 0E D8 D8 00 00 7B [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:22]Read from MH i2c: E2 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 03 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 03 00 88 47 00 90 00 43 [14:09:22]RAPDU: 90 00 [14:09:22]wFMCommunicate OK [14:09:22]wFMCommunicate request_size=7 [14:09:22]MH_SAM_APDU [14:09:22]CAPDU: 80 0D 02 02 02 41 B7 [14:09:22]Write to MH i2c: E2 0A 00 89 47 80 0D 02 02 02 00 41 B7 00 00 46 [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:22]Read from MH i2c: E2 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 03 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 03 00 89 47 00 90 00 44 [14:09:22]RAPDU: 90 00 [14:09:22]wFMCommunicate OK [14:09:22]wFMCommunicate request_size=4 [14:09:22]MH_SAM_APDU [14:09:22]CAPDU: 80 0D 03 02 [14:09:22]Write to MH i2c: E2 08 00 8A 47 80 0D 03 02 00 00 00 00 4C [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:22]Read from MH i2c: E2 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 0B 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 0B 00 8A 47 00 DB 06 F1 25 DA B3 E8 19 90 00 D2 [14:09:22]RAPDU: DB 06 F1 25 DA B3 E8 19 90 00 [14:09:22]wFMCommunicate OK [14:09:22]SAM_PROTO_SignData done [14:09:22]FM_MakeSignedData done [14:09:22]CreateOFDProtocolMessage [14:09:22]wFMCommunicate request_size=4 [14:09:22]MH_SAM_APDU [14:09:22]CAPDU: 80 11 00 00 [14:09:22]Write to MH i2c: E2 08 00 8B 47 80 11 00 00 00 00 00 00 4C [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:22]Read from MH i2c: E2 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 17 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: E2 17 00 8B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [14:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:09:22]wFMCommunicate OK [14:09:22]CreateOFDProtocolMessage done [14:09:22]OFDSenderStorePacket 69847 [14:09:22]StoreOFDPacket docnum=69847 [14:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 67 C5 04 01 20 30 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 94 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 10 01 00 35 04 06 00 A9 0E D8 D8 41 B7 DB 06 F1 25 DA B3 E8 19 [14:09:22]CheckFolder [14:09:22]dirname=/storage/ofd_packets [14:09:22]CheckFolder done [14:09:22]ProducePacketName [14:09:22]name=ofd_packets/00069847 [14:09:22]NVStorageSaveData ofd_packets/00069847 [14:09:22]File name is /storage/ofd_packets/00069847 [14:09:22]Write 298 bytes [14:09:22]NVStorageSaveData done [14:09:22]OFDSenderStorePacket done [14:09:22]KKMCreateOFDPacket done [14:09:22]NVStorageSaveData kkm_last_timestamp [14:09:22]File name is /storage/kkm_last_timestamp [14:09:22]Write 4 bytes [14:09:22]NVStorageSaveData done [14:09:22]ExternCall_PrintAddStr [14:09:22]wPrintStart [14:09:22]Write to MH i2c: 01 00 00 8C 47 D3 [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 07 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 07 00 8C 47 00 00 00 00 00 FF 0F E8 [14:09:22]RasterBufferAndPrint [14:09:22]line Счет N : (1)2885596 [14:09:22]line ИНН: 02508201610067 [14:09:22]line Контрольно-Кассовый Чек [14:09:22]line ПРОДАЖА [14:09:22]line ТРК (МРК, ГНК) : 51 [14:09:22]line Товар: 2710194210 [14:09:22]line ДТ-К-5 [14:09:22]line 20.000 * 0.00 [14:09:22]line = 0.00 [14:09:22]line НДС 12% НСП 1% [14:09:22]line > о реализуемом товаре [14:09:22]line ИТОГО: 0.00 [14:09:22]line НСП 1% : 0.00 [14:09:22]line НДС 12% : 0.00 [14:09:22]line Наличными: 0.00 [14:09:22]line Безнал.: 0.00 [14:09:22]line Место: АЗС № 85 "Партнер Нефть" [14:09:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:09:22]line СНО: Общий режим [14:09:22]line Чек 237 21.10.2024 14:09 [14:09:22]line Смена: 194 ФФД: 1.0 [14:09:22]line ЗНМ: 0300000167 [14:09:22]line РНМ: 0000000000156251 [14:09:22]line Версия ККМ: v1.0 [14:09:22]line Талоны: Топливные Талоны [14:09:22]line 4296245 [14:09:22]line ФМ: 0000000000963346 [14:09:22]line ФД: 69847 [14:09:22]line ФПД: 185881232687543 [14:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140924&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69847&fm=185881232687543&tin=02508201610067®Number=0000000000156251&sum=0 [14:09:22]written 0, free lines is 4095 [14:09:22]OFD Sender: Processing packet 69847 [packets to send 18, broken 17] [14:09:22]ProducePacketName [14:09:22]name=ofd_packets/00069847 [14:09:22]OFD Sender: To server: pG, [14:09:22]CommunicateWithHost lk.salyk.kg:30040 [14:09:22]ConnectInit lk.salyk.kg [14:09:22]Connected sock=10 [14:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 67 C5 04 01 20 30 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 94 60 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 10 01 00 35 04 06 00 A9 0E D8 D8 41 B7 DB 06 F1 25 DA B3 E8 19 [14:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 9A 47 00 DA 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 39 36 33 33 34 36 10 04 04 00 D7 10 01 00 F4 03 04 00 38 0A 16 67 B6 04 01 00 00 FA 81 8D E8 CB 7A EE 0D [14:09:22]CommunicateWithHost err = 0 [14:09:22]CheckOFDResponse [14:09:22]1017 (14) - 77093643461234 [14:09:22]1041 (16) - 0000000000963346 [14:09:22]1040 (4) - 69847 [14:09:22]1012 (4) - 21.10.2024 08:00 [14:09:22]1206 (1) - 0 [14:09:22]OFD Sender: Remove packet 69847 [14:09:22]ProducePacketName [14:09:22]name=ofd_packets/00069847 [14:09:22]NVStorageDeleteData [14:09:22]Write to MH i2c: 01 00 00 B6 47 FD [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 07 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: 01 07 00 B6 47 00 00 00 00 00 F6 0C 06 [14:09:22]RasterBufferAndPrint [14:09:22]line [14:09:22]line [14:09:22]line [14:09:22]line [14:09:22]line [14:09:22]written 0, free lines is 3324 [14:09:22]MH_Cut [14:09:22]Write to MH i2c: D1 01 00 BD 47 01 D6 [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: D1 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: D1 01 00 [14:09:22]MH_I2C_Read... [14:09:22]Read from MH i2c: D1 01 00 BD 47 00 D5 [14:09:22]Write to MH i2c: 01 00 00 BE 47 05 [14:09:22]Write i2c OK [14:09:22]MH_I2C_Read... [14:09:23]OFD Sender: No OFD packet to send [14:09:23]*** Cut start [14:09:23]*** Partial cut [14:09:23]*** CUTSNS_PIN = 1 [14:09:23]*** CUTSNS_PIN = 0 [14:09:23]*** Brake cut motor [14:09:24]Read from MH i2c: 01 [14:09:24]MH_I2C_Read... [14:09:24]*** Stop cut motor [14:09:24]*** Cut end [14:09:24]Read from MH i2c: 01 07 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: 01 07 00 BE 47 00 00 00 00 00 FF 0F 1A [14:09:24]process_action close_receipt done [14:09:24]requested_data is exist [14:09:24]produce_requested_data [14:09:24]requested_item fm.sn is exist - process it [14:09:24]wFMCommunicate request_size=4 [14:09:24]MH_SAM_APDU [14:09:24]CAPDU: 80 11 00 00 [14:09:24]Write to MH i2c: E2 08 00 BF 47 80 11 00 00 00 00 00 00 80 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:24]Read from MH i2c: E2 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 17 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 17 00 BF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [14:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:09:24]wFMCommunicate OK [14:09:24]requested_item fd.num is exist - process it [14:09:24]SAM_PROTO_GetFieldsCounters [14:09:24]wFMCommunicate request_size=4 [14:09:24]MH_SAM_APDU [14:09:24]CAPDU: 80 13 00 00 [14:09:24]Write to MH i2c: E2 08 00 C0 47 80 13 00 00 00 00 00 00 83 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:24]Read from MH i2c: E2 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 62 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 62 00 C0 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [14:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:24]wFMCommunicate OK [14:09:24]SAM_PROTO_GetFieldsCounters done [14:09:24]requested_item shift.num is exist - process it [14:09:24]requested_item shift.opened is exist - process it [14:09:24]req_shift_opened [14:09:24]FM_GetShiftState [14:09:24]SAM_PROTO_GetShiftState [14:09:24]wFMCommunicate request_size=4 [14:09:24]MH_SAM_APDU [14:09:24]CAPDU: 80 13 01 00 [14:09:24]Write to MH i2c: E2 08 00 C1 47 80 13 01 00 00 00 00 00 85 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:24]Read from MH i2c: E2 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 0E 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 0E 00 C1 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B1 [14:09:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:09:24]wFMCommunicate OK [14:09:24]SAM_PROTO_GetShiftState done [14:09:24]FM_GetShiftState done [14:09:24]req_shift_opened done [14:09:24]requested_item shift.open_date is exist - process it [14:09:24]req_shift_open_date [14:09:24]req_shift_open_date done [14:09:24]produce_requested_data done [14:09:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69847,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:09:24]process_action_free close_receipt [14:09:24]json_value_free [14:09:24]json_value_free done [14:09:24]process_json_proto returns [14:09:24]Send response to host [14:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69847,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:09:24]free response buf [14:09:24]execute_script done [14:09:24]execute_script returns [14:09:24]free content buf [14:09:24]Sock 8.Close socket [14:09:24]Sock 8.Thread stoped [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:50]accept exits with 9 [14:15:50]New connection [14:15:50]New thread 3067456868 created [14:15:50]Thread 3067313508 joined [14:15:50]Waiting for new connection... [14:15:50] Sock 9.Parse request [14:15:50]Sock 9.Check first char [14:15:50]Sock 9.First char is OK [14:15:50]request: POST /json_proto HTTP/1.0 [14:15:50]Method: POST [14:15:50]URL: /json_proto [14:15:50]Method is POST - this is cgi request [14:15:50]url: /json_proto [14:15:50]query_string will be loaded in cgi processing [14:15:50]execute_cgi json_proto POST (null) [14:15:50]execute_cgi path=json_proto method=POST [14:15:50]POST find Content-Length [14:15:50]Host: 172.17.50.3:8080 [14:15:50]Content-Length: 770 [14:15:50]Content-Type: application/json [14:15:50] [14:15:50]POST finish read [14:15:50]Found Content-Length = 770 [14:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885598", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:50]execute_script... [14:15: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)2885598", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:50]POST & json_proto [14:15:50]process_json_proto [14:15:50]json parsed OK: [14:15:50]protocol is kg_v1.0 [14:15:50]action value=close_receipt [14:15:50]process_action close_receipt [14:15:50]cmd_close_receipt [14:15:50]MH_GetDate [14:15:50]Write to MH i2c: F0 00 00 C2 47 F8 [14:15:50]Write i2c OK [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: F0 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: F0 09 00 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: F0 09 00 C2 47 00 1A 62 16 67 6B 98 1E 66 81 [14:15:50]GetLastDocTimeStamp 1729519764 [14:15:50]current date 1729520154 [14:15:50]FM_GetShiftState [14:15:50]SAM_PROTO_GetShiftState [14:15:50]wFMCommunicate request_size=4 [14:15:50]MH_SAM_APDU [14:15:50]CAPDU: 80 13 01 00 [14:15:50]Write to MH i2c: E2 08 00 C3 47 80 13 01 00 00 00 00 00 87 [14:15:50]Write i2c OK [14:15:50]MH_I2C_Read... [14:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:50]Read from MH i2c: E2 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: E2 0E 00 [14:15:50]MH_I2C_Read... [14:15:50]Read from MH i2c: E2 0E 00 C3 47 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B3 [14:15:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:15:50]wFMCommunicate OK [14:15:50]SAM_PROTO_GetShiftState done [14:15:50]FM_GetShiftState done [14:15:50]opened in 1729469703 [14:15:50]opened+sec_in_day 1729556103 [14:15:50]quantity*price = 100021 [14:15:50]sum+1 = 100023 [14:15:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 238 21.10.2024 14:15 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69848 ФПД: 104904018124251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69848&fm=104904018124251&tin=02508201610067®Number=0000000000156251&sum=100022 [14:15:51]StoreToDocumentArchive [14:15:51]shift 194 fd 69848 [14:15:51]save to /storage/0194/doc_00069848 [14:15:51]save last doc name /storage/0194/doc_00069848 to /storage/kkm_last_doc_name [14:15:51]save OK [14:15:51]Clear old archive folders... [14:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:51]tlvbuf is 00C7CF30 [14:15:51]SAM_PROTO_ClearQueue [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 09 00 00 [14:15:51]Write to MH i2c: E2 08 00 D0 47 80 09 00 00 00 00 00 00 89 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 D0 47 00 90 00 8B [14:15:51]RAPDU: 90 00 [14:15:51]wFMCommunicate OK [14:15:51]SAM_PROTO_ClearQueue done [14:15:51]KKMCreateOFDPacket [14:15:51]OFDProtocolAddRootSTLVToBuf [14:15:51]FM_MakeSignedData [14:15:51]FM_MakeSignedData [14:15:51]SAM_PROTO_SignData [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 0D 01 02 [14:15:51]Write to MH i2c: E2 08 00 D1 47 80 0D 01 02 00 00 00 00 91 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 D1 47 00 90 00 8C [14:15:51]RAPDU: 90 00 [14:15:51]wFMCommunicate OK [14:15:51]wFMCommunicate request_size=255 [14:15:51]MH_SAM_APDU [14:15: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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1A 62 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 10 01 00 35 04 06 00 5F [14:15:51]Write to MH i2c: E2 02 01 D2 47 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1A 62 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 10 01 00 35 04 06 00 5F 00 00 54 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 D2 47 00 90 00 8D [14:15:51]RAPDU: 90 00 [14:15:51]wFMCommunicate OK [14:15:51]wFMCommunicate request_size=10 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 0D 02 02 05 68 DE BC 5D DB [14:15:51]Write to MH i2c: E2 0D 00 D3 47 80 0D 02 02 05 00 68 DE BC 5D DB 00 00 D8 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 03 00 D3 47 00 90 00 8E [14:15:51]RAPDU: 90 00 [14:15:51]wFMCommunicate OK [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 0D 03 02 [14:15:51]Write to MH i2c: E2 08 00 D4 47 80 0D 03 02 00 00 00 00 96 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 0B 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 0B 00 D4 47 00 C6 D5 36 40 0E 21 C9 C5 90 00 65 [14:15:51]RAPDU: C6 D5 36 40 0E 21 C9 C5 90 00 [14:15:51]wFMCommunicate OK [14:15:51]SAM_PROTO_SignData done [14:15:51]FM_MakeSignedData done [14:15:51]CreateOFDProtocolMessage [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 11 00 00 [14:15:51]Write to MH i2c: E2 08 00 D5 47 80 11 00 00 00 00 00 00 96 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 17 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 17 00 D5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [14:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:15:51]wFMCommunicate OK [14:15:51]CreateOFDProtocolMessage done [14:15:51]OFDSenderStorePacket 69848 [14:15:51]StoreOFDPacket docnum=69848 [14:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 70 CA 07 01 8D 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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1A 62 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 10 01 00 35 04 06 00 5F 68 DE BC 5D DB C6 D5 36 40 0E 21 C9 C5 [14:15:51]CheckFolder [14:15:51]dirname=/storage/ofd_packets [14:15:51]CheckFolder done [14:15:51]ProducePacketName [14:15:51]name=ofd_packets/00069848 [14:15:51]NVStorageSaveData ofd_packets/00069848 [14:15:51]File name is /storage/ofd_packets/00069848 [14:15:51]Write 301 bytes [14:15:51]NVStorageSaveData done [14:15:51]OFDSenderStorePacket done [14:15:51]KKMCreateOFDPacket done [14:15:51]NVStorageSaveData kkm_last_timestamp [14:15:51]File name is /storage/kkm_last_timestamp [14:15:51]Write 4 bytes [14:15:51]NVStorageSaveData done [14:15:51]ExternCall_PrintAddStr [14:15:51]wPrintStart [14:15:51]Write to MH i2c: 01 00 00 D6 47 1D [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: 01 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: 01 07 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: 01 07 00 D6 47 00 00 00 00 00 FF 0F 32 [14:15:51]RasterBufferAndPrint [14:15:51]line Счет N : (1)2885598 [14:15:51]line ИНН: 02508201610067 [14:15:51]line Контрольно-Кассовый Чек [14:15:51]line ПРОДАЖА [14:15:51]line ТРК (МРК, ГНК) : 43 [14:15:51]line Товар: 2710124500 [14:15:51]line Аи-95-К-5 [14:15:51]line 13.480 * 74.20 [14:15:51]line = 1000.22 [14:15:51]line НДС 12% НСП 1% [14:15:51]line > о реализуемом товаре [14:15:51]line ИТОГО: 1000.22 [14:15:51]line НСП 1% : 8.85 [14:15:51]line НДС 12% : 106.22 [14:15:51]line Наличными: 0.00 [14:15:51]line Безнал.: 1000.22 [14:15:51]line Место: АЗС № 85 "Партнер Нефть" [14:15:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:15:51]line СНО: Общий режим [14:15:51]line Чек 238 21.10.2024 14:15 [14:15:51]line Смена: 194 ФФД: 1.0 [14:15:51]line ЗНМ: 0300000167 [14:15:51]line РНМ: 0000000000156251 [14:15:51]line Версия ККМ: v1.0 [14:15:51]line Платежная система: Mbank [14:15:51]line ФМ: 0000000000963346 [14:15:51]line ФД: 69848 [14:15:51]line ФПД: 104904018124251 [14:15:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69848&fm=104904018124251&tin=02508201610067®Number=0000000000156251&sum=100022 [14:15:52]OFD Sender: Processing packet 69848 [packets to send 18, broken 17] [14:15:52]ProducePacketName [14:15:52]name=ofd_packets/00069848 [14:15:52]OFD Sender: To server: pG, [14:15:52]CommunicateWithHost lk.salyk.kg:30040 [14:15:52]ConnectInit lk.salyk.kg [14:15:52]written 0, free lines is 4095 [14:15:52]Connected sock=10 [14:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 70 CA 07 01 8D 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 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1A 62 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 10 01 00 35 04 06 00 5F 68 DE BC 5D DB C6 D5 36 40 0E 21 C9 C5 [14:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9C E5 47 00 8D 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 39 36 33 33 34 36 10 04 04 00 D8 10 01 00 F4 03 04 00 BD 0B 16 67 B6 04 01 00 00 DE BC FA ED C5 49 0E AC [14:15:52]CommunicateWithHost err = 0 [14:15:52]CheckOFDResponse [14:15:52]1017 (14) - 77093643461234 [14:15:52]1041 (16) - 0000000000963346 [14:15:52]1040 (4) - 69848 [14:15:52]1012 (4) - 21.10.2024 08:07 [14:15:52]1206 (1) - 0 [14:15:52]OFD Sender: Remove packet 69848 [14:15:52]ProducePacketName [14:15:52]name=ofd_packets/00069848 [14:15:52]NVStorageDeleteData [14:15:52]Write to MH i2c: 01 00 00 FF 47 46 [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: 01 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: 01 07 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: 01 07 00 FF 47 00 00 00 00 00 19 0D 73 [14:15:52]RasterBufferAndPrint [14:15:52]line [14:15:52]line [14:15:52]line [14:15:52]line [14:15:52]line [14:15:52]written 0, free lines is 3359 [14:15:52]MH_Cut [14:15:52]Write to MH i2c: D1 01 00 06 48 01 20 [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: D1 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: D1 01 00 [14:15:52]MH_I2C_Read... [14:15:52]Read from MH i2c: D1 01 00 06 48 00 1F [14:15:52]Write to MH i2c: 01 00 00 07 48 4F [14:15:52]Write i2c OK [14:15:52]MH_I2C_Read... [14:15:53]OFD Sender: No OFD packet to send [14:15:53]*** Cut start [14:15:53]*** Partial cut [14:15:53]*** CUTSNS_PIN = 1 [14:15:53]*** CUTSNS_PIN = 0 [14:15:53]*** Brake cut motor [14:15:53]Read from MH i2c: 01 [14:15:54]MH_I2C_Read... [14:15:54]*** Stop cut motor [14:15:54]*** Cut end [14:15:54]Read from MH i2c: 01 07 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: 01 07 00 07 48 00 00 00 00 00 FF 0F 64 [14:15:54]process_action close_receipt done [14:15:54]requested_data is exist [14:15:54]produce_requested_data [14:15:54]requested_item fm.sn is exist - process it [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 11 00 00 [14:15:54]Write to MH i2c: E2 08 00 08 48 80 11 00 00 00 00 00 00 CA [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 17 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 17 00 08 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [14:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:15:54]wFMCommunicate OK [14:15:54]requested_item fd.num is exist - process it [14:15:54]SAM_PROTO_GetFieldsCounters [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 13 00 00 [14:15:54]Write to MH i2c: E2 08 00 09 48 80 13 00 00 00 00 00 00 CD [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 62 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 62 00 09 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [14:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:54]wFMCommunicate OK [14:15:54]SAM_PROTO_GetFieldsCounters done [14:15:54]requested_item shift.num is exist - process it [14:15:54]requested_item shift.opened is exist - process it [14:15:54]req_shift_opened [14:15:54]FM_GetShiftState [14:15:54]SAM_PROTO_GetShiftState [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 13 01 00 [14:15:54]Write to MH i2c: E2 08 00 0A 48 80 13 01 00 00 00 00 00 CF [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 0E 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 0E 00 0A 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FB [14:15:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:15:54]wFMCommunicate OK [14:15:54]SAM_PROTO_GetShiftState done [14:15:54]FM_GetShiftState done [14:15:54]req_shift_opened done [14:15:54]requested_item shift.open_date is exist - process it [14:15:54]req_shift_open_date [14:15:54]req_shift_open_date done [14:15:54]produce_requested_data done [14:15:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69848,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:15:54]process_action_free close_receipt [14:15:54]json_value_free [14:15:54]json_value_free done [14:15:54]process_json_proto returns [14:15:54]Send response to host [14:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69848,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:15:54]free response buf [14:15:54]execute_script done [14:15:54]execute_script returns [14:15:54]free content buf [14:15:54]Sock 9.Close socket [14:15:54]Sock 9.Thread stoped [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:03]accept exits with 8 [14:22:03]New connection [14:22:03]New thread 3067313508 created [14:22:03]Thread 3067456868 joined [14:22:03]Waiting for new connection... [14:22:03] Sock 8.Parse request [14:22:03]Sock 8.Check first char [14:22:03]Sock 8.First char is OK [14:22:03]request: POST /json_proto HTTP/1.0 [14:22:03]Method: POST [14:22:03]URL: /json_proto [14:22:03]Method is POST - this is cgi request [14:22:03]url: /json_proto [14:22:03]query_string will be loaded in cgi processing [14:22:03]execute_cgi json_proto POST (null) [14:22:03]execute_cgi path=json_proto method=POST [14:22:03]POST find Content-Length [14:22:03]Host: 172.17.50.3:8080 [14:22:03]Content-Length: 752 [14:22:03]Content-Type: application/json [14:22:03] [14:22:03]POST finish read [14:22:03]Found Content-Length = 752 [14:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:03]execute_script... [14: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)2885599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:03]POST & json_proto [14:22:03]process_json_proto [14:22:03]json parsed OK: [14:22:03]protocol is kg_v1.0 [14:22:03]action value=close_receipt [14:22:03]process_action close_receipt [14:22:03]cmd_close_receipt [14:22:03]MH_GetDate [14:22:03]Write to MH i2c: F0 00 00 0B 48 42 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: F0 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: F0 09 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: F0 09 00 0B 48 00 8F 63 16 67 6B 98 1E 66 41 [14:22:03]GetLastDocTimeStamp 1729520154 [14:22:03]current date 1729520527 [14:22:03]FM_GetShiftState [14:22:03]SAM_PROTO_GetShiftState [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 13 01 00 [14:22:03]Write to MH i2c: E2 08 00 0C 48 80 13 01 00 00 00 00 00 D1 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 0C 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FD [14:22:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_GetShiftState done [14:22:03]FM_GetShiftState done [14:22:03]opened in 1729469703 [14:22:03]opened+sec_in_day 1729556103 [14:22:03]quantity*price = 0 [14:22:03]sum+1 = 1 [14:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 239 21.10.2024 14:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30087137 ФМ: 0000000000963346 ФД: 69849 ФПД: 238848892292166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69849&fm=238848892292166&tin=02508201610067®Number=0000000000156251&sum=0 [14:22:04]StoreToDocumentArchive [14:22:04]shift 194 fd 69849 [14:22:04]save to /storage/0194/doc_00069849 [14:22:04]save last doc name /storage/0194/doc_00069849 to /storage/kkm_last_doc_name [14:22:04]save OK [14:22:04]Clear old archive folders... [14:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:04]tlvbuf is 00C95050 [14:22:04]SAM_PROTO_ClearQueue [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 09 00 00 [14:22:04]Write to MH i2c: E2 08 00 19 48 80 09 00 00 00 00 00 00 D3 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 19 48 00 90 00 D5 [14:22:04]RAPDU: 90 00 [14:22:04]wFMCommunicate OK [14:22:04]SAM_PROTO_ClearQueue done [14:22:04]KKMCreateOFDPacket [14:22:04]OFDProtocolAddRootSTLVToBuf [14:22:04]FM_MakeSignedData [14:22:04]FM_MakeSignedData [14:22:04]SAM_PROTO_SignData [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:05]CAPDU: 80 0D 01 02 [14:22:05]Write to MH i2c: E2 08 00 1A 48 80 0D 01 02 00 00 00 00 DB [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [14:22:05]RAPDU: 90 00 [14:22:05]wFMCommunicate OK [14:22:05]wFMCommunicate request_size=255 [14:22:05]MH_SAM_APDU [14:22: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 32 31 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 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 EF 00 00 00 F4 03 04 00 8F 63 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 10 01 00 35 04 06 00 D9 3B 57 61 [14:22:05]Write to MH i2c: E2 02 01 1B 48 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 32 31 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 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 EF 00 00 00 F4 03 04 00 8F 63 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 10 01 00 35 04 06 00 D9 3B 57 61 00 00 F8 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 1B 48 00 90 00 D7 [14:22:05]RAPDU: 90 00 [14:22:05]wFMCommunicate OK [14:22:05]wFMCommunicate request_size=7 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 0D 02 02 02 4C 46 [14:22:05]Write to MH i2c: E2 0A 00 1C 48 80 0D 02 02 02 00 4C 46 00 00 74 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 03 00 1C 48 00 90 00 D8 [14:22:05]RAPDU: 90 00 [14:22:05]wFMCommunicate OK [14:22:05]wFMCommunicate request_size=4 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 0D 03 02 [14:22:05]Write to MH i2c: E2 08 00 1D 48 80 0D 03 02 00 00 00 00 E0 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 0B 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 0B 00 1D 48 00 A8 C5 5A 25 8D A5 16 E6 90 00 FB [14:22:05]RAPDU: A8 C5 5A 25 8D A5 16 E6 90 00 [14:22:05]wFMCommunicate OK [14:22:05]SAM_PROTO_SignData done [14:22:05]FM_MakeSignedData done [14:22:05]CreateOFDProtocolMessage [14:22:05]wFMCommunicate request_size=4 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 11 00 00 [14:22:05]Write to MH i2c: E2 08 00 1E 48 80 11 00 00 00 00 00 00 E0 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 17 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 17 00 1E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [14:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:22:05]wFMCommunicate OK [14:22:05]CreateOFDProtocolMessage done [14:22:05]OFDSenderStorePacket 69849 [14:22:05]StoreOFDPacket docnum=69849 [14:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 79 8D 04 01 BD 6D 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 32 31 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 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 EF 00 00 00 F4 03 04 00 8F 63 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 10 01 00 35 04 06 00 D9 3B 57 61 4C 46 A8 C5 5A 25 8D A5 16 E6 [14:22:05]CheckFolder [14:22:05]dirname=/storage/ofd_packets [14:22:05]CheckFolder done [14:22:05]ProducePacketName [14:22:05]name=ofd_packets/00069849 [14:22:05]NVStorageSaveData ofd_packets/00069849 [14:22:05]File name is /storage/ofd_packets/00069849 [14:22:05]Write 298 bytes [14:22:05]NVStorageSaveData done [14:22:05]OFDSenderStorePacket done [14:22:05]KKMCreateOFDPacket done [14:22:05]NVStorageSaveData kkm_last_timestamp [14:22:05]File name is /storage/kkm_last_timestamp [14:22:05]Write 4 bytes [14:22:05]NVStorageSaveData done [14:22:05]ExternCall_PrintAddStr [14:22:05]wPrintStart [14:22:05]Write to MH i2c: 01 00 00 1F 48 67 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 FF 0F 7C [14:22:05]RasterBufferAndPrint [14:22:05]line Счет N : (1)2885599 [14:22:05]line ИНН: 02508201610067 [14:22:05]line Контрольно-Кассовый Чек [14:22:05]line ПРОДАЖА [14:22:05]line ТРК (МРК, ГНК) : 61 [14:22:05]line Товар: 2710194210 [14:22:05]line ДТ-К-5 [14:22:05]line 26.250 * 0.00 [14:22:05]line = 0.00 [14:22:05]line НДС 12% НСП 1% [14:22:05]line > о реализуемом товаре [14:22:05]line ИТОГО: 0.00 [14:22:05]line НСП 1% : 0.00 [14:22:05]line НДС 12% : 0.00 [14:22:05]line Наличными: 0.00 [14:22:05]line Безнал.: 0.00 [14:22:05]line Место: АЗС № 85 "Партнер Нефть" [14:22:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:22:05]line СНО: Общий режим [14:22:05]line Чек 239 21.10.2024 14:22 [14:22:05]line Смена: 194 ФФД: 1.0 [14:22:05]line ЗНМ: 0300000167 [14:22:05]line РНМ: 0000000000156251 [14:22:05]line Версия ККМ: v1.0 [14:22:05]line Талоны: ТК ГПНА Online [14:22:05]line 30087137 [14:22:05]line ФМ: 0000000000963346 [14:22:05]line ФД: 69849 [14:22:05]line ФПД: 238848892292166 [14:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69849&fm=238848892292166&tin=02508201610067®Number=0000000000156251&sum=0 [14:22:05]OFD Sender: Processing packet 69849 [packets to send 18, broken 17] [14:22:05]ProducePacketName [14:22:05]name=ofd_packets/00069849 [14:22:05]OFD Sender: To server: pG, [14:22:05]CommunicateWithHost lk.salyk.kg:30040 [14:22:05]ConnectInit lk.salyk.kg [14:22:05]written 0, free lines is 4095 [14:22:05]Connected sock=10 [14:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 79 8D 04 01 BD 6D 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 32 31 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 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 EF 00 00 00 F4 03 04 00 8F 63 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 10 01 00 35 04 06 00 D9 3B 57 61 4C 46 A8 C5 5A 25 8D A5 16 E6 [14:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1C 11 47 00 71 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 10 01 00 F4 03 04 00 33 0D 16 67 B6 04 01 00 00 3A F5 27 DE 7B 88 6B 49 [14:22:06]CommunicateWithHost err = 0 [14:22:06]CheckOFDResponse [14:22:06]1017 (14) - 77093643461234 [14:22:06]1041 (16) - 0000000000963346 [14:22:06]1040 (4) - 69849 [14:22:06]1012 (4) - 21.10.2024 08:13 [14:22:06]1206 (1) - 0 [14:22:06]OFD Sender: Remove packet 69849 [14:22:06]ProducePacketName [14:22:06]name=ofd_packets/00069849 [14:22:06]NVStorageDeleteData [14:22:06]Write to MH i2c: 01 00 00 49 48 91 [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: 01 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: 01 07 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 FB 0C 9F [14:22:06]RasterBufferAndPrint [14:22:06]line [14:22:06]line [14:22:06]line [14:22:06]line [14:22:06]line [14:22:06]written 0, free lines is 3329 [14:22:06]MH_Cut [14:22:06]Write to MH i2c: D1 01 00 50 48 01 6A [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: D1 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: D1 01 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: D1 01 00 50 48 00 69 [14:22:06]Write to MH i2c: 01 00 00 51 48 99 [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]OFD Sender: No OFD packet to send [14:22:06]*** Cut start [14:22:06]*** Partial cut [14:22:06]*** CUTSNS_PIN = 1 [14:22:06]*** CUTSNS_PIN = 0 [14:22:07]*** Brake cut motor [14:22:07]Read from MH i2c: 01 [14:22:07]MH_I2C_Read... [14:22:07]*** Stop cut motor [14:22:07]*** Cut end [14:22:07]Read from MH i2c: 01 07 00 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: 01 07 00 51 48 00 00 00 00 00 FF 0F AE [14:22:07]process_action close_receipt done [14:22:07]requested_data is exist [14:22:07]produce_requested_data [14:22:07]requested_item fm.sn is exist - process it [14:22:07]wFMCommunicate request_size=4 [14:22:07]MH_SAM_APDU [14:22:07]CAPDU: 80 11 00 00 [14:22:07]Write to MH i2c: E2 08 00 52 48 80 11 00 00 00 00 00 00 14 [14:22:07]Write i2c OK [14:22:07]MH_I2C_Read... [14:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:07]Read from MH i2c: E2 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 17 00 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 17 00 52 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [14:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:22:07]wFMCommunicate OK [14:22:07]requested_item fd.num is exist - process it [14:22:07]SAM_PROTO_GetFieldsCounters [14:22:07]wFMCommunicate request_size=4 [14:22:07]MH_SAM_APDU [14:22:07]CAPDU: 80 13 00 00 [14:22:07]Write to MH i2c: E2 08 00 53 48 80 13 00 00 00 00 00 00 17 [14:22:07]Write i2c OK [14:22:07]MH_I2C_Read... [14:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:07]Read from MH i2c: E2 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 62 00 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 62 00 53 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [14:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:07]wFMCommunicate OK [14:22:07]SAM_PROTO_GetFieldsCounters done [14:22:07]requested_item shift.num is exist - process it [14:22:07]requested_item shift.opened is exist - process it [14:22:07]req_shift_opened [14:22:07]FM_GetShiftState [14:22:07]SAM_PROTO_GetShiftState [14:22:07]wFMCommunicate request_size=4 [14:22:07]MH_SAM_APDU [14:22:07]CAPDU: 80 13 01 00 [14:22:07]Write to MH i2c: E2 08 00 54 48 80 13 01 00 00 00 00 00 19 [14:22:07]Write i2c OK [14:22:07]MH_I2C_Read... [14:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:07]Read from MH i2c: E2 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 0E 00 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 0E 00 54 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 45 [14:22:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:22:07]wFMCommunicate OK [14:22:07]SAM_PROTO_GetShiftState done [14:22:07]FM_GetShiftState done [14:22:07]req_shift_opened done [14:22:07]requested_item shift.open_date is exist - process it [14:22:07]req_shift_open_date [14:22:07]req_shift_open_date done [14:22:07]produce_requested_data done [14:22:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69849,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:22:07]process_action_free close_receipt [14:22:07]json_value_free [14:22:07]json_value_free done [14:22:07]process_json_proto returns [14:22:07]Send response to host [14:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69849,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:22:07]free response buf [14:22:07]execute_script done [14:22:07]execute_script returns [14:22:07]free content buf [14:22:07]Sock 8.Close socket [14:22:07]Sock 8.Thread stoped [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:42]accept exits with 9 [14:27:42]New connection [14:27:42]New thread 3067456868 created [14:27:42]Thread 3067313508 joined [14:27:42]Waiting for new connection... [14:27:42] Sock 9.Parse request [14:27:42]Sock 9.Check first char [14:27:42]Sock 9.First char is OK [14:27:42]request: POST /json_proto HTTP/1.0 [14:27:42]Method: POST [14:27:42]URL: /json_proto [14:27:42]Method is POST - this is cgi request [14:27:42]url: /json_proto [14:27:42]query_string will be loaded in cgi processing [14:27:42]execute_cgi json_proto POST (null) [14:27:42]execute_cgi path=json_proto method=POST [14:27:42]POST find Content-Length [14:27:42]Host: 172.17.50.3:8080 [14:27:42]Content-Length: 791 [14:27:42]Content-Type: application/json [14:27:42] [14:27:42]POST finish read [14:27:42]Found Content-Length = 791 [14:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:42]execute_script... [14:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:42]POST & json_proto [14:27:42]process_json_proto [14:27:42]json parsed OK: [14:27:42]protocol is kg_v1.0 [14:27:42]action value=close_receipt [14:27:42]process_action close_receipt [14:27:42]cmd_close_receipt [14:27:42]MH_GetDate [14:27:42]Write to MH i2c: F0 00 00 55 48 8C [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 09 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 09 00 55 48 00 E2 64 16 67 6B 98 1E 66 DF [14:27:42]GetLastDocTimeStamp 1729520527 [14:27:42]current date 1729520866 [14:27:42]FM_GetShiftState [14:27:42]SAM_PROTO_GetShiftState [14:27:42]wFMCommunicate request_size=4 [14:27:42]MH_SAM_APDU [14:27:42]CAPDU: 80 13 01 00 [14:27:42]Write to MH i2c: E2 08 00 56 48 80 13 01 00 00 00 00 00 1B [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:42]Read from MH i2c: E2 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 56 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 47 [14:27:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:27:42]wFMCommunicate OK [14:27:42]SAM_PROTO_GetShiftState done [14:27:42]FM_GetShiftState done [14:27:42]opened in 1729469703 [14:27:42]opened+sec_in_day 1729556103 [14:27:42]quantity*price = 0 [14:27:42]sum+1 = 1 [14:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 240 21.10.2024 14:27 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69850 ФПД: 122216854418088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69850&fm=122216854418088&tin=02508201610067®Number=0000000000156251&sum=0 [14:27:43]StoreToDocumentArchive [14:27:43]shift 194 fd 69850 [14:27:43]save to /storage/0194/doc_00069850 [14:27:43]save last doc name /storage/0194/doc_00069850 to /storage/kkm_last_doc_name [14:27:43]save OK [14:27:43]Clear old archive folders... [14:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:27:43]tlvbuf is 00D73F50 [14:27:43]SAM_PROTO_ClearQueue [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 09 00 00 [14:27:43]Write to MH i2c: E2 08 00 63 48 80 09 00 00 00 00 00 00 1D [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 63 48 00 90 00 1F [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]SAM_PROTO_ClearQueue done [14:27:43]KKMCreateOFDPacket [14:27:43]OFDProtocolAddRootSTLVToBuf [14:27:43]FM_MakeSignedData [14:27:43]FM_MakeSignedData [14:27:43]SAM_PROTO_SignData [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 0D 01 02 [14:27:43]Write to MH i2c: E2 08 00 64 48 80 0D 01 02 00 00 00 00 25 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 64 48 00 90 00 20 [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]wFMCommunicate request_size=255 [14:27:43]MH_SAM_APDU [14:27: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 32 31 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 F0 00 00 00 F4 03 04 00 E2 64 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 10 01 00 35 04 06 00 6F 27 D4 31 [14:27:43]Write to MH i2c: E2 02 01 65 48 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 32 31 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 F0 00 00 00 F4 03 04 00 E2 64 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 10 01 00 35 04 06 00 6F 27 D4 31 00 00 9E [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]wFMCommunicate request_size=7 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 02 02 02 72 A8 [14:27:44]Write to MH i2c: E2 0A 00 66 48 80 0D 02 02 02 00 72 A8 00 00 46 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 66 48 00 90 00 22 [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 03 02 [14:27:44]Write to MH i2c: E2 08 00 67 48 80 0D 03 02 00 00 00 00 2A [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0B 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0B 00 67 48 00 D7 3C 11 EE A3 93 39 0C 90 00 B8 [14:27:44]RAPDU: D7 3C 11 EE A3 93 39 0C 90 00 [14:27:44]wFMCommunicate OK [14:27:44]SAM_PROTO_SignData done [14:27:44]FM_MakeSignedData done [14:27:44]CreateOFDProtocolMessage [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 11 00 00 [14:27:44]Write to MH i2c: E2 08 00 68 48 80 11 00 00 00 00 00 00 2A [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 17 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 17 00 68 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [14:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:27:44]wFMCommunicate OK [14:27:44]CreateOFDProtocolMessage done [14:27:44]OFDSenderStorePacket 69850 [14:27:44]StoreOFDPacket docnum=69850 [14:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 97 0C 04 01 ED E6 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 32 31 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 F0 00 00 00 F4 03 04 00 E2 64 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 10 01 00 35 04 06 00 6F 27 D4 31 72 A8 D7 3C 11 EE A3 93 39 0C [14:27:44]CheckFolder [14:27:44]dirname=/storage/ofd_packets [14:27:44]CheckFolder done [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00069850 [14:27:44]NVStorageSaveData ofd_packets/00069850 [14:27:44]File name is /storage/ofd_packets/00069850 [14:27:44]Write 298 bytes [14:27:44]NVStorageSaveData done [14:27:44]OFDSenderStorePacket done [14:27:44]KKMCreateOFDPacket done [14:27:44]NVStorageSaveData kkm_last_timestamp [14:27:44]File name is /storage/kkm_last_timestamp [14:27:44]Write 4 bytes [14:27:44]NVStorageSaveData done [14:27:44]ExternCall_PrintAddStr [14:27:44]wPrintStart [14:27:44]Write to MH i2c: 01 00 00 69 48 B1 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 69 48 00 00 00 00 00 FF 0F C6 [14:27:44]RasterBufferAndPrint [14:27:44]line Счет N : (1)2885600 [14:27:44]line ИНН: 02508201610067 [14:27:44]line Контрольно-Кассовый Чек [14:27:44]line ПРОДАЖА [14:27:44]line ТРК (МРК, ГНК) : 61 [14:27:44]line Товар: 2710194210 [14:27:44]line ДТ-К-5 [14:27:44]line 100.000 * 0.00 [14:27:44]line = 0.00 [14:27:44]line НДС 12% НСП 1% [14:27:44]line > о реализуемом товаре [14:27:44]line ИТОГО: 0.00 [14:27:44]line НСП 1% : 0.00 [14:27:44]line НДС 12% : 0.00 [14:27:44]line Наличными: 0.00 [14:27:44]line Безнал.: 0.00 [14:27:44]line Место: АЗС № 85 "Партнер Нефть" [14:27:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:27:44]line СНО: Общий режим [14:27:44]line Чек 240 21.10.2024 14:27 [14:27:44]line Смена: 194 ФФД: 1.0 [14:27:44]line ЗНМ: 0300000167 [14:27:44]line РНМ: 0000000000156251 [14:27:44]line Версия ККМ: v1.0 [14:27:44]line Талоны: Топливная Карта [14:27:44]line 31095 [14:27:44]line ФМ: 0000000000963346 [14:27:44]line ФД: 69850 [14:27:44]line ФПД: 122216854418088 [14:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69850&fm=122216854418088&tin=02508201610067®Number=0000000000156251&sum=0 [14:27:44]OFD Sender: Processing packet 69850 [packets to send 18, broken 17] [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00069850 [14:27:44]OFD Sender: To server: pG, [14:27:44]CommunicateWithHost lk.salyk.kg:30040 [14:27:44]ConnectInit lk.salyk.kg [14:27:44]written 0, free lines is 4095 [14:27:44]Connected sock=10 [14:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 97 0C 04 01 ED E6 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 32 31 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 F0 00 00 00 F4 03 04 00 E2 64 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 10 01 00 35 04 06 00 6F 27 D4 31 72 A8 D7 3C 11 EE A3 93 39 0C [14:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BB CE 47 00 C4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 10 01 00 F4 03 04 00 85 0E 16 67 B6 04 01 00 00 71 4E 5B 6A 20 6A 2A C9 [14:27:44]CommunicateWithHost err = 0 [14:27:44]CheckOFDResponse [14:27:44]1017 (14) - 77093643461234 [14:27:44]1041 (16) - 0000000000963346 [14:27:44]1040 (4) - 69850 [14:27:44]1012 (4) - 21.10.2024 08:19 [14:27:44]1206 (1) - 0 [14:27:44]OFD Sender: Remove packet 69850 [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00069850 [14:27:44]NVStorageDeleteData [14:27:44]Write to MH i2c: 01 00 00 93 48 DB [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 93 48 00 00 00 00 00 F4 0C E2 [14:27:44]RasterBufferAndPrint [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]written 0, free lines is 3322 [14:27:44]MH_Cut [14:27:44]Write to MH i2c: D1 01 00 9A 48 01 B4 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 01 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 01 00 9A 48 00 B3 [14:27:44]Write to MH i2c: 01 00 00 9B 48 E3 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:45]OFD Sender: No OFD packet to send [14:27:45]*** Cut start [14:27:45]*** Partial cut [14:27:45]*** CUTSNS_PIN = 1 [14:27:45]*** CUTSNS_PIN = 0 [14:27:45]*** Brake cut motor [14:27:45]Read from MH i2c: 01 [14:27:45]MH_I2C_Read... [14:27:45]*** Stop cut motor [14:27:46]*** Cut end [14:27:46]Read from MH i2c: 01 07 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 9B 48 00 00 00 00 00 FF 0F F8 [14:27:46]process_action close_receipt done [14:27:46]requested_data is exist [14:27:46]produce_requested_data [14:27:46]requested_item fm.sn is exist - process it [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 11 00 00 [14:27:46]Write to MH i2c: E2 08 00 9C 48 80 11 00 00 00 00 00 00 5E [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 9C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [14:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:27:46]wFMCommunicate OK [14:27:46]requested_item fd.num is exist - process it [14:27:46]SAM_PROTO_GetFieldsCounters [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 00 00 [14:27:46]Write to MH i2c: E2 08 00 9D 48 80 13 00 00 00 00 00 00 61 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 9D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetFieldsCounters done [14:27:46]requested_item shift.num is exist - process it [14:27:46]requested_item shift.opened is exist - process it [14:27:46]req_shift_opened [14:27:46]FM_GetShiftState [14:27:46]SAM_PROTO_GetShiftState [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 01 00 [14:27:46]Write to MH i2c: E2 08 00 9E 48 80 13 01 00 00 00 00 00 63 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 9E 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8F [14:27:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetShiftState done [14:27:46]FM_GetShiftState done [14:27:46]req_shift_opened done [14:27:46]requested_item shift.open_date is exist - process it [14:27:46]req_shift_open_date [14:27:46]req_shift_open_date done [14:27:46]produce_requested_data done [14:27:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69850,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:27:46]process_action_free close_receipt [14:27:46]json_value_free [14:27:46]json_value_free done [14:27:46]process_json_proto returns [14:27:46]Send response to host [14:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69850,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:27:46]free response buf [14:27:46]execute_script done [14:27:46]execute_script returns [14:27:46]free content buf [14:27:46]Sock 9.Close socket [14:27:46]Sock 9.Thread stoped [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:13]accept exits with 8 [14:28:13]New connection [14:28:13]New thread 3067313508 created [14:28:13]Thread 3067456868 joined [14:28:13]Waiting for new connection... [14:28:13] Sock 8.Parse request [14:28:13]Sock 8.Check first char [14:28:13]Sock 8.First char is OK [14:28:13]request: POST /json_proto HTTP/1.0 [14:28:13]Method: POST [14:28:13]URL: /json_proto [14:28:13]Method is POST - this is cgi request [14:28:13]url: /json_proto [14:28:13]query_string will be loaded in cgi processing [14:28:13]execute_cgi json_proto POST (null) [14:28:13]execute_cgi path=json_proto method=POST [14:28:13]POST find Content-Length [14:28:13]Host: 172.17.50.3:8080 [14:28:13]Content-Length: 684 [14:28:13]Content-Type: application/json [14:28:13] [14:28:13]POST finish read [14:28:13]Found Content-Length = 684 [14:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [14:28:13]execute_script... [14:28: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)2885601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [14:28:13]POST & json_proto [14:28:13]process_json_proto [14:28:13]json parsed OK: [14:28:13]protocol is kg_v1.0 [14:28:13]action value=close_receipt [14:28:13]process_action close_receipt [14:28:13]cmd_close_receipt [14:28:13]MH_GetDate [14:28:13]Write to MH i2c: F0 00 00 9F 48 D6 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 9F 48 00 01 65 16 67 6B 98 1E 66 49 [14:28:13]GetLastDocTimeStamp 1729520866 [14:28:13]current date 1729520897 [14:28:13]FM_GetShiftState [14:28:13]SAM_PROTO_GetShiftState [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 13 01 00 [14:28:13]Write to MH i2c: E2 08 00 A0 48 80 13 01 00 00 00 00 00 65 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 A0 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 91 [14:28:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:28:13]wFMCommunicate OK [14:28:13]SAM_PROTO_GetShiftState done [14:28:13]FM_GetShiftState done [14:28:13]opened in 1729469703 [14:28:13]opened+sec_in_day 1729556103 [14:28:13]quantity*price = 70020 [14:28:13]sum+1 = 70021 [14:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 241 21.10.2024 14:28 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69851 ФПД: 191793019790195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69851&fm=191793019790195&tin=02508201610067®Number=0000000000156251&sum=70000 [14:28:14]StoreToDocumentArchive [14:28:14]shift 194 fd 69851 [14:28:14]save to /storage/0194/doc_00069851 [14:28:14]save last doc name /storage/0194/doc_00069851 to /storage/kkm_last_doc_name [14:28:14]save OK [14:28:14]Clear old archive folders... [14:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:28:14]tlvbuf is 00CF85C0 [14:28:14]SAM_PROTO_ClearQueue [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 09 00 00 [14:28:14]Write to MH i2c: E2 08 00 AD 48 80 09 00 00 00 00 00 00 67 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 AD 48 00 90 00 69 [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_ClearQueue done [14:28:14]KKMCreateOFDPacket [14:28:14]OFDProtocolAddRootSTLVToBuf [14:28:14]FM_MakeSignedData [14:28:14]FM_MakeSignedData [14:28:14]SAM_PROTO_SignData [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 01 02 [14:28:14]Write to MH i2c: E2 08 00 AE 48 80 0D 01 02 00 00 00 00 6F [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 AE 48 00 90 00 6A [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=255 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 F1 00 00 00 F4 03 04 00 01 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 10 01 [14:28:14]Write to MH i2c: E2 02 01 AF 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 F1 00 00 00 F4 03 04 00 01 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 10 01 00 00 69 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 AF 48 00 90 00 6B [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=16 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AE 6F 4A D0 A3 73 [14:28:14]Write to MH i2c: E2 13 00 B0 48 80 0D 02 02 0B 00 00 35 04 06 00 AE 6F 4A D0 A3 73 00 00 14 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 B0 48 00 90 00 6C [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 03 02 [14:28:14]Write to MH i2c: E2 08 00 B1 48 80 0D 03 02 00 00 00 00 74 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 B1 48 00 4F 87 61 C8 10 AF 23 F3 90 00 49 [14:28:14]RAPDU: 4F 87 61 C8 10 AF 23 F3 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_SignData done [14:28:14]FM_MakeSignedData done [14:28:14]CreateOFDProtocolMessage [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 11 00 00 [14:28:14]Write to MH i2c: E2 08 00 B2 48 80 11 00 00 00 00 00 00 74 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:15]Read from MH i2c: E2 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 B2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [14:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:28:15]wFMCommunicate OK [14:28:15]CreateOFDProtocolMessage done [14:28:15]OFDSenderStorePacket 69851 [14:28:15]StoreOFDPacket docnum=69851 [14:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4B F0 0D 01 86 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 F1 00 00 00 F4 03 04 00 01 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 10 01 00 35 04 06 00 AE 6F 4A D0 A3 73 4F 87 61 C8 10 AF 23 F3 [14:28:15]CheckFolder [14:28:15]dirname=/storage/ofd_packets [14:28:15]CheckFolder done [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00069851 [14:28:15]NVStorageSaveData ofd_packets/00069851 [14:28:15]File name is /storage/ofd_packets/00069851 [14:28:15]Write 307 bytes [14:28:15]NVStorageSaveData done [14:28:15]OFDSenderStorePacket done [14:28:15]KKMCreateOFDPacket done [14:28:15]NVStorageSaveData kkm_last_timestamp [14:28:15]File name is /storage/kkm_last_timestamp [14:28:15]Write 4 bytes [14:28:15]NVStorageSaveData done [14:28:15]OFD Sender: Processing packet 69851 [packets to send 18, broken 17] [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00069851 [14:28:15]OFD Sender: To server: pG, [14:28:15]CommunicateWithHost lk.salyk.kg:30040 [14:28:15]ConnectInit lk.salyk.kg [14:28:15]ExternCall_PrintAddStr [14:28:15]wPrintStart [14:28:15]Write to MH i2c: 01 00 00 B3 48 FB [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 B3 48 00 00 00 00 00 FF 0F 10 [14:28:15]RasterBufferAndPrint [14:28:15]line Счет N : (1)2885601 [14:28:15]line ИНН: 02508201610067 [14:28:15]line Контрольно-Кассовый Чек [14:28:15]line ПРОДАЖА [14:28:15]line ТРК (МРК, ГНК) : 21 [14:28:15]line Товар: 2710194240 [14:28:15]line D-ENERGY Дт-К-2 [14:28:15]line 9.070 * 77.20 [14:28:15]line = 700.20 [14:28:15]line НДС 12% НСП 1% [14:28:15]line > о реализуемом товаре [14:28:15]line ОКРУГЛЕНИЕ: -0.20 [14:28:15]line ИТОГО: 700.00 [14:28:15]line Внесено: 700.00 [14:28:15]line СДАЧА: 0.00 [14:28:15]line НСП 1% : 6.20 [14:28:15]line НДС 12% : 74.36 [14:28:15]line Наличными: 700.00 [14:28:15]line Безнал.: 0.00 [14:28:15]line Место: АЗС № 85 "Партнер Нефть" [14:28:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:28:15]line СНО: Общий режим [14:28:15]line Чек 241 21.10.2024 14:28 [14:28:15]line Смена: 194 ФФД: 1.0 [14:28:15]line ЗНМ: 0300000167 [14:28:15]line РНМ: 0000000000156251 [14:28:15]line Версия ККМ: v1.0 [14:28:15]line ФМ: 0000000000963346 [14:28:15]line ФД: 69851 [14:28:15]line ФПД: 191793019790195 [14:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69851&fm=191793019790195&tin=02508201610067®Number=0000000000156251&sum=70000 [14:28:15]Connected sock=11 [14:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4B F0 0D 01 86 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 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 0C 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 F1 00 00 00 F4 03 04 00 01 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 10 01 00 35 04 06 00 AE 6F 4A D0 A3 73 4F 87 61 C8 10 AF 23 F3 [14:28:15]written 0, free lines is 4095 [14:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8B 8F 47 00 3C 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 10 01 00 F4 03 04 00 A4 0E 16 67 B6 04 01 00 00 2D F2 C5 80 01 F9 0B 62 [14:28:15]CommunicateWithHost err = 0 [14:28:15]CheckOFDResponse [14:28:15]1017 (14) - 77093643461234 [14:28:15]1041 (16) - 0000000000963346 [14:28:15]1040 (4) - 69851 [14:28:15]1012 (4) - 21.10.2024 08:19 [14:28:15]1206 (1) - 0 [14:28:15]OFD Sender: Remove packet 69851 [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00069851 [14:28:15]NVStorageDeleteData [14:28:15]Write to MH i2c: 01 00 00 DE 48 26 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 DE 48 00 00 00 00 00 E0 0C 19 [14:28:15]RasterBufferAndPrint [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]written 0, free lines is 3302 [14:28:15]MH_Cut [14:28:15]Write to MH i2c: D1 01 00 E5 48 01 FF [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 E5 48 00 FE [14:28:15]Write to MH i2c: 01 00 00 E6 48 2E [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:16]OFD Sender: No OFD packet to send [14:28:16]*** Cut start [14:28:16]*** Partial cut [14:28:16]*** CUTSNS_PIN = 1 [14:28:16]*** CUTSNS_PIN = 0 [14:28:16]*** Brake cut motor [14:28:17]Read from MH i2c: 01 [14:28:17]MH_I2C_Read... [14:28:17]*** Stop cut motor [14:28:17]*** Cut end [14:28:17]Read from MH i2c: 01 07 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: 01 07 00 E6 48 00 00 00 00 00 FF 0F 43 [14:28:17]process_action close_receipt done [14:28:17]requested_data is exist [14:28:17]produce_requested_data [14:28:17]requested_item fm.sn is exist - process it [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 11 00 00 [14:28:17]Write to MH i2c: E2 08 00 E7 48 80 11 00 00 00 00 00 00 A9 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 17 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 17 00 E7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [14:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:28:17]wFMCommunicate OK [14:28:17]requested_item fd.num is exist - process it [14:28:17]SAM_PROTO_GetFieldsCounters [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 13 00 00 [14:28:17]Write to MH i2c: E2 08 00 E8 48 80 13 00 00 00 00 00 00 AC [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 62 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 62 00 E8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_GetFieldsCounters done [14:28:17]requested_item shift.num is exist - process it [14:28:17]requested_item shift.opened is exist - process it [14:28:17]req_shift_opened [14:28:17]FM_GetShiftState [14:28:17]SAM_PROTO_GetShiftState [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 13 01 00 [14:28:17]Write to MH i2c: E2 08 00 E9 48 80 13 01 00 00 00 00 00 AE [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 0E 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 0E 00 E9 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DA [14:28:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_GetShiftState done [14:28:17]FM_GetShiftState done [14:28:17]req_shift_opened done [14:28:17]requested_item shift.open_date is exist - process it [14:28:17]req_shift_open_date [14:28:17]req_shift_open_date done [14:28:17]produce_requested_data done [14:28:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69851,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:28:17]process_action_free close_receipt [14:28:17]json_value_free [14:28:17]json_value_free done [14:28:17]process_json_proto returns [14:28:17]Send response to host [14:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69851,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:28:17]free response buf [14:28:17]execute_script done [14:28:17]execute_script returns [14:28:17]free content buf [14:28:17]Sock 8.Close socket [14:28:17]Sock 8.Thread stoped [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:03]accept exits with 9 [14:32:03]New connection [14:32:03]New thread 3067456868 created [14:32:03]Thread 3067313508 joined [14:32:03]Waiting for new connection... [14:32:03] Sock 9.Parse request [14:32:03]Sock 9.Check first char [14:32:03]Sock 9.First char is OK [14:32:03]request: POST /json_proto HTTP/1.0 [14:32:03]Method: POST [14:32:03]URL: /json_proto [14:32:03]Method is POST - this is cgi request [14:32:03]url: /json_proto [14:32:03]query_string will be loaded in cgi processing [14:32:03]execute_cgi json_proto POST (null) [14:32:03]execute_cgi path=json_proto method=POST [14:32:03]POST find Content-Length [14:32:03]Host: 172.17.50.3:8080 [14:32:03]Content-Length: 768 [14:32:03]Content-Type: application/json [14:32:03] [14:32:03]POST finish read [14:32:03]Found Content-Length = 768 [14:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 750.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:03]execute_script... [14:32: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)2885602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 750.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:03]POST & json_proto [14:32:03]process_json_proto [14:32:03]json parsed OK: [14:32:03]protocol is kg_v1.0 [14:32:03]action value=close_receipt [14:32:03]process_action close_receipt [14:32:03]cmd_close_receipt [14:32:03]MH_GetDate [14:32:03]Write to MH i2c: F0 00 00 EA 48 21 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 09 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: F0 09 00 EA 48 00 E7 65 16 67 6B 98 1E 66 7A [14:32:03]GetLastDocTimeStamp 1729520897 [14:32:03]current date 1729521127 [14:32:03]FM_GetShiftState [14:32:03]SAM_PROTO_GetShiftState [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 13 01 00 [14:32:03]Write to MH i2c: E2 08 00 EB 48 80 13 01 00 00 00 00 00 B0 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0E 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 0E 00 EB 48 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DC [14:32:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_GetShiftState done [14:32:03]FM_GetShiftState done [14:32:03]opened in 1729469703 [14:32:03]opened+sec_in_day 1729556103 [14:32:03]quantity*price = 75016 [14:32:03]sum+1 = 75017 [14:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.16 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 242 21.10.2024 14:32 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69852 ФПД: 219404800193417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69852&fm=219404800193417&tin=02508201610067®Number=0000000000156251&sum=75016 [14:32:04]StoreToDocumentArchive [14:32:04]shift 194 fd 69852 [14:32:04]save to /storage/0194/doc_00069852 [14:32:04]save last doc name /storage/0194/doc_00069852 to /storage/kkm_last_doc_name [14:32:04]save OK [14:32:04]Clear old archive folders... [14:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:04]tlvbuf is 00CA9770 [14:32:04]SAM_PROTO_ClearQueue [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 09 00 00 [14:32:04]Write to MH i2c: E2 08 00 F8 48 80 09 00 00 00 00 00 00 B2 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 F8 48 00 90 00 B4 [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]SAM_PROTO_ClearQueue done [14:32:04]KKMCreateOFDPacket [14:32:04]OFDProtocolAddRootSTLVToBuf [14:32:04]FM_MakeSignedData [14:32:04]FM_MakeSignedData [14:32:04]SAM_PROTO_SignData [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 01 02 [14:32:04]Write to MH i2c: E2 08 00 F9 48 80 0D 01 02 00 00 00 00 BA [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 F9 48 00 90 00 B5 [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=255 [14:32:04]MH_SAM_APDU [14:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E7 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 10 01 00 35 04 06 00 C7 [14:32:04]Write to MH i2c: E2 02 01 FA 48 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E7 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 10 01 00 35 04 06 00 C7 00 00 11 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:05]Read from MH i2c: E2 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 03 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 03 00 FA 48 00 90 00 B6 [14:32:05]RAPDU: 90 00 [14:32:05]wFMCommunicate OK [14:32:05]wFMCommunicate request_size=10 [14:32:05]MH_SAM_APDU [14:32:05]CAPDU: 80 0D 02 02 05 8C 29 2D 73 89 [14:32:05]Write to MH i2c: E2 0D 00 FB 48 80 0D 02 02 05 00 8C 29 2D 73 89 00 00 A5 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:05]Read from MH i2c: E2 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 03 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 03 00 FB 48 00 90 00 B7 [14:32:05]RAPDU: 90 00 [14:32:05]wFMCommunicate OK [14:32:05]wFMCommunicate request_size=4 [14:32:05]MH_SAM_APDU [14:32:05]CAPDU: 80 0D 03 02 [14:32:05]Write to MH i2c: E2 08 00 FC 48 80 0D 03 02 00 00 00 00 BF [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:05]Read from MH i2c: E2 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 0B 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 0B 00 FC 48 00 A4 A9 41 73 B9 0E 2C AD 90 00 61 [14:32:05]RAPDU: A4 A9 41 73 B9 0E 2C AD 90 00 [14:32:05]wFMCommunicate OK [14:32:05]SAM_PROTO_SignData done [14:32:05]FM_MakeSignedData done [14:32:05]CreateOFDProtocolMessage [14:32:05]wFMCommunicate request_size=4 [14:32:05]MH_SAM_APDU [14:32:05]CAPDU: 80 11 00 00 [14:32:05]Write to MH i2c: E2 08 00 FD 48 80 11 00 00 00 00 00 00 BF [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:05]Read from MH i2c: E2 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 17 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: E2 17 00 FD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [14:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:05]wFMCommunicate OK [14:32:05]CreateOFDProtocolMessage done [14:32:05]OFDSenderStorePacket 69852 [14:32:05]StoreOFDPacket docnum=69852 [14:32:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3C A4 07 01 2B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E7 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 10 01 00 35 04 06 00 C7 8C 29 2D 73 89 A4 A9 41 73 B9 0E 2C AD [14:32:05]CheckFolder [14:32:05]dirname=/storage/ofd_packets [14:32:05]CheckFolder done [14:32:05]ProducePacketName [14:32:05]name=ofd_packets/00069852 [14:32:05]NVStorageSaveData ofd_packets/00069852 [14:32:05]File name is /storage/ofd_packets/00069852 [14:32:05]Write 301 bytes [14:32:05]NVStorageSaveData done [14:32:05]OFDSenderStorePacket done [14:32:05]KKMCreateOFDPacket done [14:32:05]NVStorageSaveData kkm_last_timestamp [14:32:05]File name is /storage/kkm_last_timestamp [14:32:05]Write 4 bytes [14:32:05]NVStorageSaveData done [14:32:05]ExternCall_PrintAddStr [14:32:05]wPrintStart [14:32:05]Write to MH i2c: 01 00 00 FE 48 46 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 FE 48 00 00 00 00 00 FF 0F 5B [14:32:05]RasterBufferAndPrint [14:32:05]line Счет N : (1)2885602 [14:32:05]line ИНН: 02508201610067 [14:32:05]line Контрольно-Кассовый Чек [14:32:05]line ПРОДАЖА [14:32:05]line ТРК (МРК, ГНК) : 23 [14:32:05]line Товар: 2710124500 [14:32:05]line Аи-95-К-5 [14:32:05]line 10.110 * 74.20 [14:32:05]line = 750.16 [14:32:05]line НДС 12% НСП 1% [14:32:05]line > о реализуемом товаре [14:32:05]line ИТОГО: 750.16 [14:32:05]line НСП 1% : 6.64 [14:32:05]line НДС 12% : 79.66 [14:32:05]line Наличными: 0.00 [14:32:05]line Безнал.: 750.16 [14:32:05]line Место: АЗС № 85 "Партнер Нефть" [14:32:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:32:05]line СНО: Общий режим [14:32:05]line Чек 242 21.10.2024 14:32 [14:32:05]line Смена: 194 ФФД: 1.0 [14:32:05]line ЗНМ: 0300000167 [14:32:05]line РНМ: 0000000000156251 [14:32:05]line Версия ККМ: v1.0 [14:32:05]line Платежная система: Mbank [14:32:05]line ФМ: 0000000000963346 [14:32:05]line ФД: 69852 [14:32:05]line ФПД: 219404800193417 [14:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69852&fm=219404800193417&tin=02508201610067®Number=0000000000156251&sum=75016 [14:32:05]OFD Sender: Processing packet 69852 [packets to send 18, broken 17] [14:32:05]ProducePacketName [14:32:05]name=ofd_packets/00069852 [14:32:05]OFD Sender: To server: pG, [14:32:05]CommunicateWithHost lk.salyk.kg:30040 [14:32:05]ConnectInit lk.salyk.kg [14:32:05]written 0, free lines is 4095 [14:32:05]Connected sock=10 [14:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3C A4 07 01 2B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E7 65 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 10 01 00 35 04 06 00 C7 8C 29 2D 73 89 A4 A9 41 73 B9 0E 2C AD [14:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F 8F 47 00 61 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 39 36 33 33 34 36 10 04 04 00 DC 10 01 00 F4 03 04 00 8B 0F 16 67 B6 04 01 00 00 2A F5 9C B1 B8 38 C6 FF [14:32:05]CommunicateWithHost err = 0 [14:32:05]CheckOFDResponse [14:32:05]1017 (14) - 77093643461234 [14:32:05]1041 (16) - 0000000000963346 [14:32:05]1040 (4) - 69852 [14:32:05]1012 (4) - 21.10.2024 08:23 [14:32:05]1206 (1) - 0 [14:32:05]OFD Sender: Remove packet 69852 [14:32:05]ProducePacketName [14:32:05]name=ofd_packets/00069852 [14:32:05]NVStorageDeleteData [14:32:05]Write to MH i2c: 01 00 00 27 49 70 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: 01 07 00 27 49 00 00 00 00 00 13 0D 97 [14:32:05]RasterBufferAndPrint [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]line [14:32:05]written 0, free lines is 3354 [14:32:05]MH_Cut [14:32:05]Write to MH i2c: D1 01 00 2E 49 01 49 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 2E 49 00 48 [14:32:05]Write to MH i2c: 01 00 00 2F 49 78 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:06]OFD Sender: No OFD packet to send [14:32:06]*** Cut start [14:32:06]*** Partial cut [14:32:06]*** CUTSNS_PIN = 1 [14:32:06]*** CUTSNS_PIN = 0 [14:32:06]*** Brake cut motor [14:32:07]Read from MH i2c: 01 [14:32:07]MH_I2C_Read... [14:32:07]*** Stop cut motor [14:32:07]*** Cut end [14:32:07]Read from MH i2c: 01 07 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: 01 07 00 2F 49 00 00 00 00 00 FF 0F 8D [14:32:07]process_action close_receipt done [14:32:07]requested_data is exist [14:32:07]produce_requested_data [14:32:07]requested_item fm.sn is exist - process it [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 11 00 00 [14:32:07]Write to MH i2c: E2 08 00 30 49 80 11 00 00 00 00 00 00 F3 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 30 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [14:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:07]wFMCommunicate OK [14:32:07]requested_item fd.num is exist - process it [14:32:07]SAM_PROTO_GetFieldsCounters [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 13 00 00 [14:32:07]Write to MH i2c: E2 08 00 31 49 80 13 00 00 00 00 00 00 F6 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 62 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 62 00 31 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_GetFieldsCounters done [14:32:07]requested_item shift.num is exist - process it [14:32:07]requested_item shift.opened is exist - process it [14:32:07]req_shift_opened [14:32:07]FM_GetShiftState [14:32:07]SAM_PROTO_GetShiftState [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 13 01 00 [14:32:07]Write to MH i2c: E2 08 00 32 49 80 13 01 00 00 00 00 00 F8 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 32 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [14:32:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_GetShiftState done [14:32:07]FM_GetShiftState done [14:32:07]req_shift_opened done [14:32:07]requested_item shift.open_date is exist - process it [14:32:07]req_shift_open_date [14:32:07]req_shift_open_date done [14:32:07]produce_requested_data done [14:32:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69852,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:32:07]process_action_free close_receipt [14:32:07]json_value_free [14:32:07]json_value_free done [14:32:07]process_json_proto returns [14:32:07]Send response to host [14:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69852,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:32:07]free response buf [14:32:07]execute_script done [14:32:07]execute_script returns [14:32:07]free content buf [14:32:07]Sock 9.Close socket [14:32:07]Sock 9.Thread stoped [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:27]accept exits with 8 [14:35:27]New connection [14:35:27]New thread 3067313508 created [14:35:27]Thread 3067456868 joined [14:35:27]Waiting for new connection... [14:35:27] Sock 8.Parse request [14:35:27]Sock 8.Check first char [14:35:27]Sock 8.First char is OK [14:35:27]request: POST /json_proto HTTP/1.0 [14:35:27]Method: POST [14:35:27]URL: /json_proto [14:35:27]Method is POST - this is cgi request [14:35:27]url: /json_proto [14:35:27]query_string will be loaded in cgi processing [14:35:27]execute_cgi json_proto POST (null) [14:35:27]execute_cgi path=json_proto method=POST [14:35:27]POST find Content-Length [14:35:27]Host: 172.17.50.3:8080 [14:35:27]Content-Length: 678 [14:35:27]Content-Type: application/json [14:35:27] [14:35:27]POST finish read [14:35:27]Found Content-Length = 678 [14:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885603", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:27]execute_script... [14:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885603", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:27]POST & json_proto [14:35:27]process_json_proto [14:35:27]json parsed OK: [14:35:27]protocol is kg_v1.0 [14:35:27]action value=close_receipt [14:35:27]process_action close_receipt [14:35:27]cmd_close_receipt [14:35:27]MH_GetDate [14:35:27]Write to MH i2c: F0 00 00 33 49 6B [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 09 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 09 00 33 49 00 B3 66 16 67 6B 98 1E 66 91 [14:35:27]GetLastDocTimeStamp 1729521127 [14:35:27]current date 1729521331 [14:35:27]FM_GetShiftState [14:35:27]SAM_PROTO_GetShiftState [14:35:27]wFMCommunicate request_size=4 [14:35:27]MH_SAM_APDU [14:35:27]CAPDU: 80 13 01 00 [14:35:27]Write to MH i2c: E2 08 00 34 49 80 13 01 00 00 00 00 00 FA [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:27]Read from MH i2c: E2 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 34 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 26 [14:35:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:35:27]wFMCommunicate OK [14:35:27]SAM_PROTO_GetShiftState done [14:35:27]FM_GetShiftState done [14:35:27]opened in 1729469703 [14:35:27]opened+sec_in_day 1729556103 [14:35:27]quantity*price = 40006 [14:35:27]sum+1 = 40007 [14:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 243 21.10.2024 14:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69853 ФПД: 2454839083053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69853&fm=2454839083053&tin=02508201610067®Number=0000000000156251&sum=40000 [14:35:28]StoreToDocumentArchive [14:35:28]shift 194 fd 69853 [14:35:28]save to /storage/0194/doc_00069853 [14:35:28]save last doc name /storage/0194/doc_00069853 to /storage/kkm_last_doc_name [14:35:28]save OK [14:35:28]Clear old archive folders... [14:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:28]tlvbuf is 00D6FEF0 [14:35:28]SAM_PROTO_ClearQueue [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 09 00 00 [14:35:28]Write to MH i2c: E2 08 00 41 49 80 09 00 00 00 00 00 00 FC [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 41 49 00 90 00 FE [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_ClearQueue done [14:35:28]KKMCreateOFDPacket [14:35:28]OFDProtocolAddRootSTLVToBuf [14:35:28]FM_MakeSignedData [14:35:28]FM_MakeSignedData [14:35:28]SAM_PROTO_SignData [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 01 02 [14:35:28]Write to MH i2c: E2 08 00 42 49 80 0D 01 02 00 00 00 00 04 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 42 49 00 90 00 FF [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=255 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 B3 66 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 10 01 00 35 04 06 00 02 [14:35:28]Write to MH i2c: E2 02 01 43 49 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 B3 66 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 10 01 00 35 04 06 00 02 00 00 97 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 43 49 00 90 00 00 [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=10 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 02 02 05 3B 8F CF C0 2D [14:35:28]Write to MH i2c: E2 0D 00 44 49 80 0D 02 02 05 00 3B 8F CF C0 2D 00 00 97 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 44 49 00 90 00 01 [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 03 02 [14:35:28]Write to MH i2c: E2 08 00 45 49 80 0D 03 02 00 00 00 00 09 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0B 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0B 00 45 49 00 B9 92 7B EF 90 DE C8 2C 90 00 21 [14:35:28]RAPDU: B9 92 7B EF 90 DE C8 2C 90 00 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_SignData done [14:35:28]FM_MakeSignedData done [14:35:28]CreateOFDProtocolMessage [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 11 00 00 [14:35:28]Write to MH i2c: E2 08 00 46 49 80 11 00 00 00 00 00 00 09 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 46 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [14:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:35:28]wFMCommunicate OK [14:35:28]CreateOFDProtocolMessage done [14:35:28]OFDSenderStorePacket 69853 [14:35:28]StoreOFDPacket docnum=69853 [14:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C8 2D 07 01 26 5E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 B3 66 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 10 01 00 35 04 06 00 02 3B 8F CF C0 2D B9 92 7B EF 90 DE C8 2C [14:35:28]CheckFolder [14:35:28]dirname=/storage/ofd_packets [14:35:28]CheckFolder done [14:35:28]ProducePacketName [14:35:28]name=ofd_packets/00069853 [14:35:28]NVStorageSaveData ofd_packets/00069853 [14:35:28]File name is /storage/ofd_packets/00069853 [14:35:28]Write 301 bytes [14:35:28]NVStorageSaveData done [14:35:28]OFDSenderStorePacket done [14:35:28]KKMCreateOFDPacket done [14:35:28]NVStorageSaveData kkm_last_timestamp [14:35:28]File name is /storage/kkm_last_timestamp [14:35:28]Write 4 bytes [14:35:28]NVStorageSaveData done [14:35:28]ExternCall_PrintAddStr [14:35:28]wPrintStart [14:35:28]Write to MH i2c: 01 00 00 47 49 90 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 07 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 07 00 47 49 00 00 00 00 00 FF 0F A5 [14:35:28]RasterBufferAndPrint [14:35:28]line Счет N : (1)2885603 [14:35:28]line ИНН: 02508201610067 [14:35:28]line Контрольно-Кассовый Чек [14:35:28]line ПРОДАЖА [14:35:28]line ТРК (МРК, ГНК) : 32 [14:35:28]line Товар: 2710124130 [14:35:28]line Аи-92-К-5 [14:35:28]line 5.980 * 66.90 [14:35:28]line = 400.06 [14:35:28]line НДС 12% НСП 1% [14:35:28]line > о реализуемом товаре [14:35:28]line ОКРУГЛЕНИЕ: -0.06 [14:35:28]line ИТОГО: 400.00 [14:35:28]line Внесено: 400.00 [14:35:28]line СДАЧА: 0.00 [14:35:28]line НСП 1% : 3.54 [14:35:28]line НДС 12% : 42.48 [14:35:28]line Наличными: 400.00 [14:35:28]line Безнал.: 0.00 [14:35:28]line Место: АЗС № 85 "Партнер Нефть" [14:35:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:35:28]line СНО: Общий режим [14:35:28]line Чек 243 21.10.2024 14:35 [14:35:28]line Смена: 194 ФФД: 1.0 [14:35:28]line ЗНМ: 0300000167 [14:35:28]line РНМ: 0000000000156251 [14:35:28]line Версия ККМ: v1.0 [14:35:28]line ФМ: 0000000000963346 [14:35:28]line ФД: 69853 [14:35:28]line ФПД: 2454839083053 [14:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69853&fm=2454839083053&tin=02508201610067®Number=0000000000156251&sum=40000 [14:35:29]OFD Sender: Processing packet 69853 [packets to send 18, broken 17] [14:35:29]ProducePacketName [14:35:29]name=ofd_packets/00069853 [14:35:29]OFD Sender: To server: pG, [14:35:29]CommunicateWithHost lk.salyk.kg:30040 [14:35:29]ConnectInit lk.salyk.kg [14:35:29]written 0, free lines is 4095 [14:35:29]Connected sock=11 [14:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C8 2D 07 01 26 5E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 B3 66 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 10 01 00 35 04 06 00 02 3B 8F CF C0 2D B9 92 7B EF 90 DE C8 2C [14:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FA 13 47 00 6F 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 10 01 00 F4 03 04 00 56 10 16 67 B6 04 01 00 00 A4 66 30 99 BA C2 8F 44 [14:35:29]CommunicateWithHost err = 0 [14:35:29]CheckOFDResponse [14:35:29]1017 (14) - 77093643461234 [14:35:29]1041 (16) - 0000000000963346 [14:35:29]1040 (4) - 69853 [14:35:29]1012 (4) - 21.10.2024 08:27 [14:35:29]1206 (1) - 0 [14:35:29]OFD Sender: Remove packet 69853 [14:35:29]ProducePacketName [14:35:29]name=ofd_packets/00069853 [14:35:29]NVStorageDeleteData [14:35:29]Write to MH i2c: 01 00 00 72 49 BB [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 07 00 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 07 00 72 49 00 00 00 00 00 F4 0C C2 [14:35:29]RasterBufferAndPrint [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]written 0, free lines is 3322 [14:35:29]MH_Cut [14:35:29]Write to MH i2c: D1 01 00 79 49 01 94 [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 01 00 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 01 00 79 49 00 93 [14:35:29]Write to MH i2c: 01 00 00 7A 49 C3 [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:30]OFD Sender: No OFD packet to send [14:35:30]*** Cut start [14:35:30]*** Partial cut [14:35:30]*** CUTSNS_PIN = 1 [14:35:30]*** CUTSNS_PIN = 0 [14:35:30]*** Brake cut motor [14:35:30]Read from MH i2c: 01 [14:35:30]MH_I2C_Read... [14:35:30]*** Stop cut motor [14:35:30]*** Cut end [14:35:30]Read from MH i2c: 01 07 00 [14:35:30]MH_I2C_Read... [14:35:30]Read from MH i2c: 01 07 00 7A 49 00 00 00 00 00 FF 0F D8 [14:35:30]process_action close_receipt done [14:35:30]requested_data is exist [14:35:30]produce_requested_data [14:35:30]requested_item fm.sn is exist - process it [14:35:30]wFMCommunicate request_size=4 [14:35:30]MH_SAM_APDU [14:35:30]CAPDU: 80 11 00 00 [14:35:30]Write to MH i2c: E2 08 00 7B 49 80 11 00 00 00 00 00 00 3E [14:35:30]Write i2c OK [14:35:30]MH_I2C_Read... [14:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:31]Read from MH i2c: E2 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 17 00 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 17 00 7B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [14:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:35:31]wFMCommunicate OK [14:35:31]requested_item fd.num is exist - process it [14:35:31]SAM_PROTO_GetFieldsCounters [14:35:31]wFMCommunicate request_size=4 [14:35:31]MH_SAM_APDU [14:35:31]CAPDU: 80 13 00 00 [14:35:31]Write to MH i2c: E2 08 00 7C 49 80 13 00 00 00 00 00 00 41 [14:35:31]Write i2c OK [14:35:31]MH_I2C_Read... [14:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:31]Read from MH i2c: E2 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 62 00 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 62 00 7C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [14:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:31]wFMCommunicate OK [14:35:31]SAM_PROTO_GetFieldsCounters done [14:35:31]requested_item shift.num is exist - process it [14:35:31]requested_item shift.opened is exist - process it [14:35:31]req_shift_opened [14:35:31]FM_GetShiftState [14:35:31]SAM_PROTO_GetShiftState [14:35:31]wFMCommunicate request_size=4 [14:35:31]MH_SAM_APDU [14:35:31]CAPDU: 80 13 01 00 [14:35:31]Write to MH i2c: E2 08 00 7D 49 80 13 01 00 00 00 00 00 43 [14:35:31]Write i2c OK [14:35:31]MH_I2C_Read... [14:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:31]Read from MH i2c: E2 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 0E 00 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 0E 00 7D 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6F [14:35:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:35:31]wFMCommunicate OK [14:35:31]SAM_PROTO_GetShiftState done [14:35:31]FM_GetShiftState done [14:35:31]req_shift_opened done [14:35:31]requested_item shift.open_date is exist - process it [14:35:31]req_shift_open_date [14:35:31]req_shift_open_date done [14:35:31]produce_requested_data done [14:35:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69853,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:35:31]process_action_free close_receipt [14:35:31]json_value_free [14:35:31]json_value_free done [14:35:31]process_json_proto returns [14:35:31]Send response to host [14:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69853,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:35:31]free response buf [14:35:31]execute_script done [14:35:31]execute_script returns [14:35:31]free content buf [14:35:31]Sock 8.Close socket [14:35:31]Sock 8.Thread stoped [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:24]accept exits with 9 [14:37:24]New connection [14:37:24]New thread 3067456868 created [14:37:24]Thread 3067313508 joined [14:37:24]Waiting for new connection... [14:37:24] Sock 9.Parse request [14:37:24]Sock 9.Check first char [14:37:24]Sock 9.First char is OK [14:37:24]request: POST /json_proto HTTP/1.0 [14:37:24]Method: POST [14:37:24]URL: /json_proto [14:37:24]Method is POST - this is cgi request [14:37:24]url: /json_proto [14:37:24]query_string will be loaded in cgi processing [14:37:24]execute_cgi json_proto POST (null) [14:37:24]execute_cgi path=json_proto method=POST [14:37:24]POST find Content-Length [14:37:24]Host: 172.17.50.3:8080 [14:37:24]Content-Length: 678 [14:37:24]Content-Type: application/json [14:37:24] [14:37:24]POST finish read [14:37:24]Found Content-Length = 678 [14:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885604", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:24]execute_script... [14:37: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)2885604", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:24]POST & json_proto [14:37:24]process_json_proto [14:37:24]json parsed OK: [14:37:24]protocol is kg_v1.0 [14:37:24]action value=close_receipt [14:37:24]process_action close_receipt [14:37:24]cmd_close_receipt [14:37:24]MH_GetDate [14:37:24]Write to MH i2c: F0 00 00 7E 49 B6 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 09 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 09 00 7E 49 00 29 67 16 67 6B 98 1E 66 53 [14:37:24]GetLastDocTimeStamp 1729521331 [14:37:24]current date 1729521449 [14:37:24]FM_GetShiftState [14:37:24]SAM_PROTO_GetShiftState [14:37:24]wFMCommunicate request_size=4 [14:37:24]MH_SAM_APDU [14:37:24]CAPDU: 80 13 01 00 [14:37:24]Write to MH i2c: E2 08 00 7F 49 80 13 01 00 00 00 00 00 45 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:24]Read from MH i2c: E2 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 7F 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 71 [14:37:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:37:24]wFMCommunicate OK [14:37:24]SAM_PROTO_GetShiftState done [14:37:24]FM_GetShiftState done [14:37:24]opened in 1729469703 [14:37:24]opened+sec_in_day 1729556103 [14:37:25]quantity*price = 20003 [14:37:25]sum+1 = 20004 [14:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 244 21.10.2024 14:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69854 ФПД: 164532041091863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143729&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69854&fm=164532041091863&tin=02508201610067®Number=0000000000156251&sum=20000 [14:37:26]StoreToDocumentArchive [14:37:26]shift 194 fd 69854 [14:37:26]save to /storage/0194/doc_00069854 [14:37:26]save last doc name /storage/0194/doc_00069854 to /storage/kkm_last_doc_name [14:37:26]save OK [14:37:26]Clear old archive folders... [14:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:26]tlvbuf is B6F557F0 [14:37:26]SAM_PROTO_ClearQueue [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 09 00 00 [14:37:26]Write to MH i2c: E2 08 00 8C 49 80 09 00 00 00 00 00 00 47 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 8C 49 00 90 00 49 [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]SAM_PROTO_ClearQueue done [14:37:26]KKMCreateOFDPacket [14:37:26]OFDProtocolAddRootSTLVToBuf [14:37:26]FM_MakeSignedData [14:37:26]FM_MakeSignedData [14:37:26]SAM_PROTO_SignData [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 01 02 [14:37:26]Write to MH i2c: E2 08 00 8D 49 80 0D 01 02 00 00 00 00 4F [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 8D 49 00 90 00 4A [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=255 [14:37:26]MH_SAM_APDU [14:37:26]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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 29 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 10 01 00 35 04 06 00 95 [14:37:26]Write to MH i2c: E2 02 01 8E 49 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 29 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 10 01 00 35 04 06 00 95 00 00 E1 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 8E 49 00 90 00 4B [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=10 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 02 02 05 A4 19 DD 0B 17 [14:37:26]Write to MH i2c: E2 0D 00 8F 49 80 0D 02 02 05 00 A4 19 DD 0B 17 00 00 18 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 8F 49 00 90 00 4C [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 03 02 [14:37:26]Write to MH i2c: E2 08 00 90 49 80 0D 03 02 00 00 00 00 54 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 90 49 00 7C FC D8 1D 55 37 E9 0D 90 00 44 [14:37:26]RAPDU: 7C FC D8 1D 55 37 E9 0D 90 00 [14:37:26]wFMCommunicate OK [14:37:26]SAM_PROTO_SignData done [14:37:26]FM_MakeSignedData done [14:37:26]CreateOFDProtocolMessage [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 11 00 00 [14:37:26]Write to MH i2c: E2 08 00 91 49 80 11 00 00 00 00 00 00 54 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 91 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [14:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:26]wFMCommunicate OK [14:37:26]CreateOFDProtocolMessage done [14:37:26]OFDSenderStorePacket 69854 [14:37:26]StoreOFDPacket docnum=69854 [14:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 98 07 01 9B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 29 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 10 01 00 35 04 06 00 95 A4 19 DD 0B 17 7C FC D8 1D 55 37 E9 0D [14:37:26]CheckFolder [14:37:26]dirname=/storage/ofd_packets [14:37:26]CheckFolder done [14:37:26]ProducePacketName [14:37:26]name=ofd_packets/00069854 [14:37:26]NVStorageSaveData ofd_packets/00069854 [14:37:26]File name is /storage/ofd_packets/00069854 [14:37:26]Write 301 bytes [14:37:26]NVStorageSaveData done [14:37:26]OFDSenderStorePacket done [14:37:26]KKMCreateOFDPacket done [14:37:26]NVStorageSaveData kkm_last_timestamp [14:37:26]File name is /storage/kkm_last_timestamp [14:37:26]Write 4 bytes [14:37:26]NVStorageSaveData done [14:37:26]ExternCall_PrintAddStr [14:37:26]wPrintStart [14:37:26]Write to MH i2c: 01 00 00 92 49 DB [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 92 49 00 00 00 00 00 FF 0F F0 [14:37:26]RasterBufferAndPrint [14:37:26]line Счет N : (1)2885604 [14:37:26]line ИНН: 02508201610067 [14:37:26]line Контрольно-Кассовый Чек [14:37:26]line ПРОДАЖА [14:37:26]line ТРК (МРК, ГНК) : 42 [14:37:26]line Товар: 2710124130 [14:37:26]line Аи-92-К-5 [14:37:26]line 2.990 * 66.90 [14:37:26]line = 200.03 [14:37:26]line НДС 12% НСП 1% [14:37:26]line > о реализуемом товаре [14:37:26]line ОКРУГЛЕНИЕ: -0.03 [14:37:26]line ИТОГО: 200.00 [14:37:26]line Внесено: 200.00 [14:37:26]line СДАЧА: 0.00 [14:37:26]line НСП 1% : 1.77 [14:37:26]line НДС 12% : 21.24 [14:37:26]line Наличными: 200.00 [14:37:26]line Безнал.: 0.00 [14:37:26]line Место: АЗС № 85 "Партнер Нефть" [14:37:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:37:26]line СНО: Общий режим [14:37:26]line Чек 244 21.10.2024 14:37 [14:37:26]line Смена: 194 ФФД: 1.0 [14:37:26]line ЗНМ: 0300000167 [14:37:26]line РНМ: 0000000000156251 [14:37:26]line Версия ККМ: v1.0 [14:37:26]line ФМ: 0000000000963346 [14:37:26]line ФД: 69854 [14:37:26]line ФПД: 164532041091863 [14:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143729&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69854&fm=164532041091863&tin=02508201610067®Number=0000000000156251&sum=20000 [14:37:26]OFD Sender: Processing packet 69854 [packets to send 18, broken 17] [14:37:26]ProducePacketName [14:37:26]name=ofd_packets/00069854 [14:37:26]OFD Sender: To server: pG, [14:37:26]CommunicateWithHost lk.salyk.kg:30040 [14:37:26]ConnectInit lk.salyk.kg [14:37:26]written 0, free lines is 4095 [14:37:27]Connected sock=10 [14:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 98 07 01 9B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 29 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 10 01 00 35 04 06 00 95 A4 19 DD 0B 17 7C FC D8 1D 55 37 E9 0D [14:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6C 49 47 00 BE 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 10 01 00 F4 03 04 00 CC 10 16 67 B6 04 01 00 00 E0 61 77 6B 6B 9B 3D 28 [14:37:27]CommunicateWithHost err = 0 [14:37:27]CheckOFDResponse [14:37:27]1017 (14) - 77093643461234 [14:37:27]1041 (16) - 0000000000963346 [14:37:27]1040 (4) - 69854 [14:37:27]1012 (4) - 21.10.2024 08:29 [14:37:27]1206 (1) - 0 [14:37:27]OFD Sender: Remove packet 69854 [14:37:27]ProducePacketName [14:37:27]name=ofd_packets/00069854 [14:37:27]NVStorageDeleteData [14:37:27]Write to MH i2c: 01 00 00 BD 49 06 [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 07 00 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: 01 07 00 BD 49 00 00 00 00 00 E4 0C FD [14:37:27]RasterBufferAndPrint [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]line [14:37:27]written 0, free lines is 3306 [14:37:27]MH_Cut [14:37:27]Write to MH i2c: D1 01 00 C4 49 01 DF [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 01 00 [14:37:27]MH_I2C_Read... [14:37:27]Read from MH i2c: D1 01 00 C4 49 00 DE [14:37:27]Write to MH i2c: 01 00 00 C5 49 0E [14:37:27]Write i2c OK [14:37:27]MH_I2C_Read... [14:37:27]OFD Sender: No OFD packet to send [14:37:28]*** Cut start [14:37:28]*** Partial cut [14:37:28]*** CUTSNS_PIN = 1 [14:37:28]*** CUTSNS_PIN = 0 [14:37:28]*** Brake cut motor [14:37:28]Read from MH i2c: 01 [14:37:28]MH_I2C_Read... [14:37:28]*** Stop cut motor [14:37:28]*** Cut end [14:37:28]Read from MH i2c: 01 07 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: 01 07 00 C5 49 00 00 00 00 00 FF 0F 23 [14:37:28]process_action close_receipt done [14:37:28]requested_data is exist [14:37:28]produce_requested_data [14:37:28]requested_item fm.sn is exist - process it [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 11 00 00 [14:37:28]Write to MH i2c: E2 08 00 C6 49 80 11 00 00 00 00 00 00 89 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 C6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [14:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:28]wFMCommunicate OK [14:37:28]requested_item fd.num is exist - process it [14:37:28]SAM_PROTO_GetFieldsCounters [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 00 00 [14:37:28]Write to MH i2c: E2 08 00 C7 49 80 13 00 00 00 00 00 00 8C [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 C7 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [14:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetFieldsCounters done [14:37:28]requested_item shift.num is exist - process it [14:37:28]requested_item shift.opened is exist - process it [14:37:28]req_shift_opened [14:37:28]FM_GetShiftState [14:37:28]SAM_PROTO_GetShiftState [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 01 00 [14:37:28]Write to MH i2c: E2 08 00 C8 49 80 13 01 00 00 00 00 00 8E [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:29]Read from MH i2c: E2 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 0E 00 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 0E 00 C8 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BA [14:37:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:37:29]wFMCommunicate OK [14:37:29]SAM_PROTO_GetShiftState done [14:37:29]FM_GetShiftState done [14:37:29]req_shift_opened done [14:37:29]requested_item shift.open_date is exist - process it [14:37:29]req_shift_open_date [14:37:29]req_shift_open_date done [14:37:29]produce_requested_data done [14:37:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69854,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:37:29]process_action_free close_receipt [14:37:29]json_value_free [14:37:29]json_value_free done [14:37:29]process_json_proto returns [14:37:29]Send response to host [14:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69854,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:37:29]free response buf [14:37:29]execute_script done [14:37:29]execute_script returns [14:37:29]free content buf [14:37:29]Sock 9.Close socket [14:37:29]Sock 9.Thread stoped [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:51]accept exits with 8 [14:39:51]New connection [14:39:51]New thread 3067313508 created [14:39:51]Thread 3067456868 joined [14:39:51]Waiting for new connection... [14:39:51] Sock 8.Parse request [14:39:51]Sock 8.Check first char [14:39:51]Sock 8.First char is OK [14:39:51]request: POST /json_proto HTTP/1.0 [14:39:51]Method: POST [14:39:51]URL: /json_proto [14:39:51]Method is POST - this is cgi request [14:39:51]url: /json_proto [14:39:51]query_string will be loaded in cgi processing [14:39:51]execute_cgi json_proto POST (null) [14:39:51]execute_cgi path=json_proto method=POST [14:39:51]POST find Content-Length [14:39:51]Host: 172.17.50.3:8080 [14:39:51]Content-Length: 678 [14:39:51]Content-Type: application/json [14:39:51] [14:39:51]POST finish read [14:39:51]Found Content-Length = 678 [14:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885605", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:51]execute_script... [14:39: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)2885605", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:51]POST & json_proto [14:39:51]process_json_proto [14:39:51]json parsed OK: [14:39:51]protocol is kg_v1.0 [14:39:51]action value=close_receipt [14:39:51]process_action close_receipt [14:39:51]cmd_close_receipt [14:39:51]MH_GetDate [14:39:51]Write to MH i2c: F0 00 00 C9 49 01 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: F0 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: F0 09 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: F0 09 00 C9 49 00 BB 67 16 67 6B 98 1E 66 30 [14:39:51]GetLastDocTimeStamp 1729521449 [14:39:51]current date 1729521595 [14:39:51]FM_GetShiftState [14:39:51]SAM_PROTO_GetShiftState [14:39:51]wFMCommunicate request_size=4 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 13 01 00 [14:39:51]Write to MH i2c: E2 08 00 CA 49 80 13 01 00 00 00 00 00 90 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 0E 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 0E 00 CA 49 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BC [14:39:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:39:51]wFMCommunicate OK [14:39:51]SAM_PROTO_GetShiftState done [14:39:51]FM_GetShiftState done [14:39:51]opened in 1729469703 [14:39:51]opened+sec_in_day 1729556103 [14:39:51]quantity*price = 30038 [14:39:51]sum+1 = 30039 [14:39:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 245 21.10.2024 14:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69855 ФПД: 79852203183798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69855&fm=79852203183798&tin=02508201610067®Number=0000000000156251&sum=30000 [14:39:52]StoreToDocumentArchive [14:39:52]shift 194 fd 69855 [14:39:52]save to /storage/0194/doc_00069855 [14:39:52]save last doc name /storage/0194/doc_00069855 to /storage/kkm_last_doc_name [14:39:52]save OK [14:39:52]Clear old archive folders... [14:39:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:52]tlvbuf is 00CA0C20 [14:39:52]SAM_PROTO_ClearQueue [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 09 00 00 [14:39:52]Write to MH i2c: E2 08 00 D7 49 80 09 00 00 00 00 00 00 92 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 D7 49 00 90 00 94 [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_ClearQueue done [14:39:52]KKMCreateOFDPacket [14:39:52]OFDProtocolAddRootSTLVToBuf [14:39:52]FM_MakeSignedData [14:39:52]FM_MakeSignedData [14:39:52]SAM_PROTO_SignData [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 0D 01 02 [14:39:52]Write to MH i2c: E2 08 00 D8 49 80 0D 01 02 00 00 00 00 9A [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 D8 49 00 90 00 95 [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]wFMCommunicate request_size=255 [14:39:52]MH_SAM_APDU [14:39:52]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 BB 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 10 01 00 35 04 06 00 48 [14:39:52]Write to MH i2c: E2 02 01 D9 49 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 BB 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 10 01 00 35 04 06 00 48 00 00 A5 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]wFMCommunicate request_size=10 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 0D 02 02 05 A0 0A 34 8E B6 [14:39:52]Write to MH i2c: E2 0D 00 DA 49 80 0D 02 02 05 00 A0 0A 34 8E B6 00 00 C9 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 0D 03 02 [14:39:52]Write to MH i2c: E2 08 00 DB 49 80 0D 03 02 00 00 00 00 9F [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0B 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0B 00 DB 49 00 D5 DF 73 97 E6 E3 43 27 90 00 91 [14:39:52]RAPDU: D5 DF 73 97 E6 E3 43 27 90 00 [14:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_SignData done [14:39:52]FM_MakeSignedData done [14:39:52]CreateOFDProtocolMessage [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 11 00 00 [14:39:52]Write to MH i2c: E2 08 00 DC 49 80 11 00 00 00 00 00 00 9F [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]OFD Sender: No OFD packet to send [14:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 DC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [14:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:39:52]wFMCommunicate OK [14:39:52]CreateOFDProtocolMessage done [14:39:52]OFDSenderStorePacket 69855 [14:39:52]StoreOFDPacket docnum=69855 [14:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B AF 07 01 E9 30 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 BB 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 10 01 00 35 04 06 00 48 A0 0A 34 8E B6 D5 DF 73 97 E6 E3 43 27 [14:39:52]CheckFolder [14:39:52]dirname=/storage/ofd_packets [14:39:52]CheckFolder done [14:39:52]ProducePacketName [14:39:52]name=ofd_packets/00069855 [14:39:52]NVStorageSaveData ofd_packets/00069855 [14:39:52]File name is /storage/ofd_packets/00069855 [14:39:52]Write 301 bytes [14:39:52]NVStorageSaveData done [14:39:52]OFDSenderStorePacket done [14:39:52]KKMCreateOFDPacket done [14:39:52]NVStorageSaveData kkm_last_timestamp [14:39:52]File name is /storage/kkm_last_timestamp [14:39:52]Write 4 bytes [14:39:52]NVStorageSaveData done [14:39:52]ExternCall_PrintAddStr [14:39:52]wPrintStart [14:39:52]Write to MH i2c: 01 00 00 DD 49 26 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 07 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 07 00 DD 49 00 00 00 00 00 FF 0F 3B [14:39:52]RasterBufferAndPrint [14:39:52]line Счет N : (1)2885605 [14:39:52]line ИНН: 02508201610067 [14:39:52]line Контрольно-Кассовый Чек [14:39:52]line ПРОДАЖА [14:39:52]line ТРК (МРК, ГНК) : 42 [14:39:52]line Товар: 2710124130 [14:39:52]line Аи-92-К-5 [14:39:52]line 4.490 * 66.90 [14:39:52]line = 300.38 [14:39:52]line НДС 12% НСП 1% [14:39:52]line > о реализуемом товаре [14:39:52]line ОКРУГЛЕНИЕ: -0.38 [14:39:52]line ИТОГО: 300.00 [14:39:52]line Внесено: 300.00 [14:39:52]line СДАЧА: 0.00 [14:39:52]line НСП 1% : 2.66 [14:39:52]line НДС 12% : 31.90 [14:39:52]line Наличными: 300.00 [14:39:52]line Безнал.: 0.00 [14:39:52]line Место: АЗС № 85 "Партнер Нефть" [14:39:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:39:52]line СНО: Общий режим [14:39:52]line Чек 245 21.10.2024 14:39 [14:39:52]line Смена: 194 ФФД: 1.0 [14:39:52]line ЗНМ: 0300000167 [14:39:52]line РНМ: 0000000000156251 [14:39:52]line Версия ККМ: v1.0 [14:39:52]line ФМ: 0000000000963346 [14:39:52]line ФД: 69855 [14:39:52]line ФПД: 79852203183798 [14:39:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143955&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69855&fm=79852203183798&tin=02508201610067®Number=0000000000156251&sum=30000 [14:39:53]OFD Sender: Processing packet 69855 [packets to send 18, broken 17] [14:39:53]ProducePacketName [14:39:53]name=ofd_packets/00069855 [14:39:53]OFD Sender: To server: pG, [14:39:53]CommunicateWithHost lk.salyk.kg:30040 [14:39:53]ConnectInit lk.salyk.kg [14:39:53]written 0, free lines is 4095 [14:39:53]Connected sock=10 [14:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B AF 07 01 E9 30 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 BB 67 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 10 01 00 35 04 06 00 48 A0 0A 34 8E B6 D5 DF 73 97 E6 E3 43 27 [14:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5D A3 47 00 88 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 10 01 00 F4 03 04 00 5F 11 16 67 B6 04 01 00 00 05 44 06 1F 71 27 F5 24 [14:39:53]CommunicateWithHost err = 0 [14:39:53]CheckOFDResponse [14:39:53]1017 (14) - 77093643461234 [14:39:53]1041 (16) - 0000000000963346 [14:39:53]1040 (4) - 69855 [14:39:53]1012 (4) - 21.10.2024 08:31 [14:39:53]1206 (1) - 0 [14:39:53]OFD Sender: Remove packet 69855 [14:39:53]ProducePacketName [14:39:53]name=ofd_packets/00069855 [14:39:53]NVStorageDeleteData [14:39:53]Write to MH i2c: 01 00 00 08 4A 52 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 07 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 07 00 08 4A 00 00 00 00 00 F6 0C 5B [14:39:53]RasterBufferAndPrint [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]written 0, free lines is 3328 [14:39:53]MH_Cut [14:39:53]Write to MH i2c: D1 01 00 0F 4A 01 2B [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 01 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 01 00 0F 4A 00 2A [14:39:53]Write to MH i2c: 01 00 00 10 4A 5A [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:54]OFD Sender: No OFD packet to send [14:39:54]*** Cut start [14:39:54]*** Partial cut [14:39:54]*** CUTSNS_PIN = 1 [14:39:54]*** CUTSNS_PIN = 0 [14:39:54]*** Brake cut motor [14:39:55]Read from MH i2c: 01 [14:39:55]MH_I2C_Read... [14:39:55]*** Stop cut motor [14:39:55]*** Cut end [14:39:55]Read from MH i2c: 01 07 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 10 4A 00 00 00 00 00 FF 0F 6F [14:39:55]process_action close_receipt done [14:39:55]requested_data is exist [14:39:55]produce_requested_data [14:39:55]requested_item fm.sn is exist - process it [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 11 00 00 [14:39:55]Write to MH i2c: E2 08 00 11 4A 80 11 00 00 00 00 00 00 D5 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 11 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [14:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:39:55]wFMCommunicate OK [14:39:55]requested_item fd.num is exist - process it [14:39:55]SAM_PROTO_GetFieldsCounters [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 13 00 00 [14:39:55]Write to MH i2c: E2 08 00 12 4A 80 13 00 00 00 00 00 00 D8 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 62 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 62 00 12 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [14:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:55]wFMCommunicate OK [14:39:55]SAM_PROTO_GetFieldsCounters done [14:39:55]requested_item shift.num is exist - process it [14:39:55]requested_item shift.opened is exist - process it [14:39:55]req_shift_opened [14:39:55]FM_GetShiftState [14:39:55]SAM_PROTO_GetShiftState [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 13 01 00 [14:39:55]Write to MH i2c: E2 08 00 13 4A 80 13 01 00 00 00 00 00 DA [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0E 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0E 00 13 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 06 [14:39:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:39:55]wFMCommunicate OK [14:39:55]SAM_PROTO_GetShiftState done [14:39:55]FM_GetShiftState done [14:39:55]req_shift_opened done [14:39:55]requested_item shift.open_date is exist - process it [14:39:55]req_shift_open_date [14:39:55]req_shift_open_date done [14:39:55]produce_requested_data done [14:39:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69855,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:39:55]process_action_free close_receipt [14:39:55]json_value_free [14:39:55]json_value_free done [14:39:55]process_json_proto returns [14:39:55]Send response to host [14:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69855,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:39:55]free response buf [14:39:55]execute_script done [14:39:55]execute_script returns [14:39:55]free content buf [14:39:55]Sock 8.Close socket [14:39:55]Sock 8.Thread stoped [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:20]accept exits with 9 [14:43:20]New connection [14:43:20]New thread 3067456868 created [14:43:20]Thread 3067313508 joined [14:43:20]Waiting for new connection... [14:43:20] Sock 9.Parse request [14:43:20]Sock 9.Check first char [14:43:20]Sock 9.First char is OK [14:43:20]request: POST /json_proto HTTP/1.0 [14:43:20]Method: POST [14:43:20]URL: /json_proto [14:43:20]Method is POST - this is cgi request [14:43:20]url: /json_proto [14:43:20]query_string will be loaded in cgi processing [14:43:20]execute_cgi json_proto POST (null) [14:43:20]execute_cgi path=json_proto method=POST [14:43:20]POST find Content-Length [14:43:20]Host: 172.17.50.3:8080 [14:43:20]Content-Length: 776 [14:43:20]Content-Type: application/json [14:43:20] [14:43:20]POST finish read [14:43:20]Found Content-Length = 776 [14:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.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: Mbank", "payments": [ { "type": 1, "sum" : 1300.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:20]execute_script... [14:43: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)2885607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.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: Mbank", "payments": [ { "type": 1, "sum" : 1300.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:20]POST & json_proto [14:43:20]process_json_proto [14:43:20]json parsed OK: [14:43:20]protocol is kg_v1.0 [14:43:20]action value=close_receipt [14:43:20]process_action close_receipt [14:43:20]cmd_close_receipt [14:43:20]MH_GetDate [14:43:20]Write to MH i2c: F0 00 00 14 4A 4D [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 09 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 09 00 14 4A 00 8D 68 16 67 6B 98 1E 66 4F [14:43:20]GetLastDocTimeStamp 1729521595 [14:43:20]current date 1729521805 [14:43:20]FM_GetShiftState [14:43:20]SAM_PROTO_GetShiftState [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 13 01 00 [14:43:20]Write to MH i2c: E2 08 00 15 4A 80 13 01 00 00 00 00 00 DC [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 15 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 08 [14:43:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:43:20]wFMCommunicate OK [14:43:20]SAM_PROTO_GetShiftState done [14:43:20]FM_GetShiftState done [14:43:20]opened in 1729469703 [14:43:20]opened+sec_in_day 1729556103 [14:43:20]quantity*price = 130004 [14:43:20]sum+1 = 130006 [14:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.05 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 0.00 Безнал.: 1300.05 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 246 21.10.2024 14:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69856 ФПД: 15421246574514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69856&fm=15421246574514&tin=02508201610067®Number=0000000000156251&sum=130005 [14:43:22]StoreToDocumentArchive [14:43:22]shift 194 fd 69856 [14:43:22]save to /storage/0194/doc_00069856 [14:43:22]save last doc name /storage/0194/doc_00069856 to /storage/kkm_last_doc_name [14:43:22]save OK [14:43:22]Clear old archive folders... [14:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:43:22]tlvbuf is B6E23470 [14:43:22]SAM_PROTO_ClearQueue [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 09 00 00 [14:43:22]Write to MH i2c: E2 08 00 22 4A 80 09 00 00 00 00 00 00 DE [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 22 4A 00 90 00 E0 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]SAM_PROTO_ClearQueue done [14:43:22]KKMCreateOFDPacket [14:43:22]OFDProtocolAddRootSTLVToBuf [14:43:22]FM_MakeSignedData [14:43:22]FM_MakeSignedData [14:43:22]SAM_PROTO_SignData [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 01 02 [14:43:22]Write to MH i2c: E2 08 00 23 4A 80 0D 01 02 00 00 00 00 E6 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 23 4A 00 90 00 E1 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]wFMCommunicate request_size=255 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 8D 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 10 01 [14:43:22]Write to MH i2c: E2 02 01 24 4A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 8D 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 10 01 00 00 D8 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 24 4A 00 90 00 E2 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]wFMCommunicate request_size=16 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0E 06 89 EC 8F B2 [14:43:22]Write to MH i2c: E2 13 00 25 4A 80 0D 02 02 0B 00 00 35 04 06 00 0E 06 89 EC 8F B2 00 00 08 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 25 4A 00 90 00 E3 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 03 02 [14:43:22]Write to MH i2c: E2 08 00 26 4A 80 0D 03 02 00 00 00 00 EB [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 0B 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 0B 00 26 4A 00 A9 18 B1 BB 95 74 18 84 90 00 BE [14:43:22]RAPDU: A9 18 B1 BB 95 74 18 84 90 00 [14:43:22]wFMCommunicate OK [14:43:22]SAM_PROTO_SignData done [14:43:22]FM_MakeSignedData done [14:43:22]CreateOFDProtocolMessage [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 11 00 00 [14:43:22]Write to MH i2c: E2 08 00 27 4A 80 11 00 00 00 00 00 00 EB [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 17 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 17 00 27 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [14:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:43:22]wFMCommunicate OK [14:43:22]CreateOFDProtocolMessage done [14:43:22]OFDSenderStorePacket 69856 [14:43:22]StoreOFDPacket docnum=69856 [14:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 58 5D 0D 01 94 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 8D 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 10 01 00 35 04 06 00 0E 06 89 EC 8F B2 A9 18 B1 BB 95 74 18 84 [14:43:22]CheckFolder [14:43:22]dirname=/storage/ofd_packets [14:43:22]CheckFolder done [14:43:22]ProducePacketName [14:43:22]name=ofd_packets/00069856 [14:43:22]NVStorageSaveData ofd_packets/00069856 [14:43:22]File name is /storage/ofd_packets/00069856 [14:43:22]Write 307 bytes [14:43:22]NVStorageSaveData done [14:43:22]OFDSenderStorePacket done [14:43:22]KKMCreateOFDPacket done [14:43:22]NVStorageSaveData kkm_last_timestamp [14:43:22]File name is /storage/kkm_last_timestamp [14:43:22]Write 4 bytes [14:43:22]NVStorageSaveData done [14:43:22]ExternCall_PrintAddStr [14:43:22]wPrintStart [14:43:22]Write to MH i2c: 01 00 00 28 4A 72 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 28 4A 00 00 00 00 00 FF 0F 87 [14:43:22]RasterBufferAndPrint [14:43:22]line Счет N : (1)2885607 [14:43:22]line ИНН: 02508201610067 [14:43:22]line Контрольно-Кассовый Чек [14:43:22]line ПРОДАЖА [14:43:22]line ТРК (МРК, ГНК) : 31 [14:43:22]line Товар: 2710194240 [14:43:22]line D-ENERGY Дт-К-2 [14:43:22]line 16.840 * 77.20 [14:43:22]line = 1300.05 [14:43:22]line НДС 12% НСП 1% [14:43:22]line > о реализуемом товаре [14:43:22]line ИТОГО: 1300.05 [14:43:22]line НСП 1% : 11.50 [14:43:22]line НДС 12% : 138.06 [14:43:22]line Наличными: 0.00 [14:43:22]line Безнал.: 1300.05 [14:43:22]line Место: АЗС № 85 "Партнер Нефть" [14:43:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:43:22]line СНО: Общий режим [14:43:22]line Чек 246 21.10.2024 14:43 [14:43:22]line Смена: 194 ФФД: 1.0 [14:43:22]line ЗНМ: 0300000167 [14:43:22]line РНМ: 0000000000156251 [14:43:22]line Версия ККМ: v1.0 [14:43:22]line Платежная система: Mbank [14:43:22]line ФМ: 0000000000963346 [14:43:22]line ФД: 69856 [14:43:22]line ФПД: 15421246574514 [14:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69856&fm=15421246574514&tin=02508201610067®Number=0000000000156251&sum=130005 [14:43:22]OFD Sender: Processing packet 69856 [packets to send 18, broken 17] [14:43:22]ProducePacketName [14:43:22]name=ofd_packets/00069856 [14:43:22]OFD Sender: To server: pG, [14:43:22]CommunicateWithHost lk.salyk.kg:30040 [14:43:22]ConnectInit lk.salyk.kg [14:43:22]written 0, free lines is 4095 [14:43:23]Connected sock=10 [14:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 58 5D 0D 01 94 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 8D 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 10 01 00 35 04 06 00 0E 06 89 EC 8F B2 A9 18 B1 BB 95 74 18 84 [14:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 06 47 00 DA 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 39 36 33 33 34 36 10 04 04 00 E0 10 01 00 F4 03 04 00 30 12 16 67 B6 04 01 00 00 4A C2 E7 A6 50 B0 BA 9E [14:43:23]CommunicateWithHost err = 0 [14:43:23]CheckOFDResponse [14:43:23]1017 (14) - 77093643461234 [14:43:23]1041 (16) - 0000000000963346 [14:43:23]1040 (4) - 69856 [14:43:23]1012 (4) - 21.10.2024 08:34 [14:43:23]1206 (1) - 0 [14:43:23]OFD Sender: Remove packet 69856 [14:43:23]ProducePacketName [14:43:23]name=ofd_packets/00069856 [14:43:23]NVStorageDeleteData [14:43:23]Write to MH i2c: 01 00 00 51 4A 9B [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: 01 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: 01 07 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: 01 07 00 51 4A 00 00 00 00 00 21 0D D0 [14:43:23]RasterBufferAndPrint [14:43:23]line [14:43:23]line [14:43:23]line [14:43:23]line [14:43:23]line [14:43:23]written 0, free lines is 3370 [14:43:23]MH_Cut [14:43:23]Write to MH i2c: D1 01 00 58 4A 01 74 [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: D1 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: D1 01 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: D1 01 00 58 4A 00 73 [14:43:23]Write to MH i2c: 01 00 00 59 4A A3 [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]OFD Sender: No OFD packet to send [14:43:24]*** Cut start [14:43:24]*** Partial cut [14:43:24]*** CUTSNS_PIN = 1 [14:43:24]*** CUTSNS_PIN = 0 [14:43:24]*** Brake cut motor [14:43:24]Read from MH i2c: 01 [14:43:24]MH_I2C_Read... [14:43:24]*** Stop cut motor [14:43:24]*** Cut end [14:43:24]Read from MH i2c: 01 07 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: 01 07 00 59 4A 00 00 00 00 00 FF 0F B8 [14:43:24]process_action close_receipt done [14:43:24]requested_data is exist [14:43:24]produce_requested_data [14:43:24]requested_item fm.sn is exist - process it [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 11 00 00 [14:43:24]Write to MH i2c: E2 08 00 5A 4A 80 11 00 00 00 00 00 00 1E [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 17 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 17 00 5A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [14:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:43:24]wFMCommunicate OK [14:43:24]requested_item fd.num is exist - process it [14:43:24]SAM_PROTO_GetFieldsCounters [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 13 00 00 [14:43:24]Write to MH i2c: E2 08 00 5B 4A 80 13 00 00 00 00 00 00 21 [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 62 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 62 00 5B 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:24]wFMCommunicate OK [14:43:24]SAM_PROTO_GetFieldsCounters done [14:43:24]requested_item shift.num is exist - process it [14:43:24]requested_item shift.opened is exist - process it [14:43:24]req_shift_opened [14:43:24]FM_GetShiftState [14:43:24]SAM_PROTO_GetShiftState [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 13 01 00 [14:43:24]Write to MH i2c: E2 08 00 5C 4A 80 13 01 00 00 00 00 00 23 [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 0E 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 0E 00 5C 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [14:43:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:43:24]wFMCommunicate OK [14:43:24]SAM_PROTO_GetShiftState done [14:43:24]FM_GetShiftState done [14:43:24]req_shift_opened done [14:43:24]requested_item shift.open_date is exist - process it [14:43:24]req_shift_open_date [14:43:24]req_shift_open_date done [14:43:24]produce_requested_data done [14:43:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69856,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:43:24]process_action_free close_receipt [14:43:24]json_value_free [14:43:24]json_value_free done [14:43:24]process_json_proto returns [14:43:24]Send response to host [14:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69856,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:43:24]free response buf [14:43:24]execute_script done [14:43:24]execute_script returns [14:43:24]free content buf [14:43:24]Sock 9.Close socket [14:43:24]Sock 9.Thread stoped [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:07]accept exits with 8 [14:45:07]New connection [14:45:07]New thread 3067313508 created [14:45:07]Thread 3067456868 joined [14:45:07]Waiting for new connection... [14:45:07] Sock 8.Parse request [14:45:07]Sock 8.Check first char [14:45:07]Sock 8.First char is OK [14:45:07]request: POST /json_proto HTTP/1.0 [14:45:07]Method: POST [14:45:07]URL: /json_proto [14:45:07]Method is POST - this is cgi request [14:45:07]url: /json_proto [14:45:07]query_string will be loaded in cgi processing [14:45:07]execute_cgi json_proto POST (null) [14:45:07]execute_cgi path=json_proto method=POST [14:45:07]POST find Content-Length [14:45:07]Host: 172.17.50.3:8080 [14:45:07]Content-Length: 678 [14:45:07]Content-Type: application/json [14:45:07] [14:45:07]POST finish read [14:45:07]Found Content-Length = 678 [14:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:07]execute_script... [14:45: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)2885608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:07]POST & json_proto [14:45:07]process_json_proto [14:45:07]json parsed OK: [14:45:07]protocol is kg_v1.0 [14:45:07]action value=close_receipt [14:45:07]process_action close_receipt [14:45:07]cmd_close_receipt [14:45:07]MH_GetDate [14:45:07]Write to MH i2c: F0 00 00 5D 4A 96 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 5D 4A 00 F7 68 16 67 6B 98 1E 66 02 [14:45:07]GetLastDocTimeStamp 1729521805 [14:45:07]current date 1729521911 [14:45:07]FM_GetShiftState [14:45:07]SAM_PROTO_GetShiftState [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 13 01 00 [14:45:07]Write to MH i2c: E2 08 00 5E 4A 80 13 01 00 00 00 00 00 25 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 5E 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 51 [14:45:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_GetShiftState done [14:45:07]FM_GetShiftState done [14:45:07]opened in 1729469703 [14:45:07]opened+sec_in_day 1729556103 [14:45:07]quantity*price = 50041 [14:45:07]sum+1 = 50042 [14:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 247 21.10.2024 14:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69857 ФПД: 114125319975348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69857&fm=114125319975348&tin=02508201610067®Number=0000000000156251&sum=50000 [14:45:08]StoreToDocumentArchive [14:45:08]shift 194 fd 69857 [14:45:08]save to /storage/0194/doc_00069857 [14:45:08]save last doc name /storage/0194/doc_00069857 to /storage/kkm_last_doc_name [14:45:08]save OK [14:45:08]Clear old archive folders... [14:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:08]tlvbuf is 00DAA090 [14:45:08]SAM_PROTO_ClearQueue [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 09 00 00 [14:45:08]Write to MH i2c: E2 08 00 6B 4A 80 09 00 00 00 00 00 00 27 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 6B 4A 00 90 00 29 [14:45:08]RAPDU: 90 00 [14:45:08]wFMCommunicate OK [14:45:08]SAM_PROTO_ClearQueue done [14:45:08]KKMCreateOFDPacket [14:45:08]OFDProtocolAddRootSTLVToBuf [14:45:08]FM_MakeSignedData [14:45:08]FM_MakeSignedData [14:45:08]SAM_PROTO_SignData [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 0D 01 02 [14:45:08]Write to MH i2c: E2 08 00 6C 4A 80 0D 01 02 00 00 00 00 2F [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 03 00 6C 4A 00 90 00 2A [14:45:08]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=255 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F8 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 10 01 00 35 04 06 00 67 [14:45:09]Write to MH i2c: E2 02 01 6D 4A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F8 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 10 01 00 35 04 06 00 67 00 00 A7 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 6D 4A 00 90 00 2B [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=10 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 02 02 05 CB DF 28 31 B4 [14:45:09]Write to MH i2c: E2 0D 00 6E 4A 80 0D 02 02 05 00 CB DF 28 31 B4 00 00 F3 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 6E 4A 00 90 00 2C [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 03 02 [14:45:09]Write to MH i2c: E2 08 00 6F 4A 80 0D 03 02 00 00 00 00 34 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 6F 4A 00 84 7E AE A2 BF 7C 5D 6D 90 00 8C [14:45:09]RAPDU: 84 7E AE A2 BF 7C 5D 6D 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_SignData done [14:45:09]FM_MakeSignedData done [14:45:09]CreateOFDProtocolMessage [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 11 00 00 [14:45:09]Write to MH i2c: E2 08 00 70 4A 80 11 00 00 00 00 00 00 34 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 70 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [14:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:45:09]wFMCommunicate OK [14:45:09]CreateOFDProtocolMessage done [14:45:09]OFDSenderStorePacket 69857 [14:45:09]StoreOFDPacket docnum=69857 [14:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F2 17 07 01 FC A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F8 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 10 01 00 35 04 06 00 67 CB DF 28 31 B4 84 7E AE A2 BF 7C 5D 6D [14:45:09]CheckFolder [14:45:09]dirname=/storage/ofd_packets [14:45:09]CheckFolder done [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00069857 [14:45:09]NVStorageSaveData ofd_packets/00069857 [14:45:09]File name is /storage/ofd_packets/00069857 [14:45:09]Write 301 bytes [14:45:09]NVStorageSaveData done [14:45:09]OFDSenderStorePacket done [14:45:09]KKMCreateOFDPacket done [14:45:09]NVStorageSaveData kkm_last_timestamp [14:45:09]File name is /storage/kkm_last_timestamp [14:45:09]Write 4 bytes [14:45:09]NVStorageSaveData done [14:45:09]ExternCall_PrintAddStr [14:45:09]wPrintStart [14:45:09]Write to MH i2c: 01 00 00 71 4A BB [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 71 4A 00 00 00 00 00 FF 0F D0 [14:45:09]RasterBufferAndPrint [14:45:09]line Счет N : (1)2885608 [14:45:09]line ИНН: 02508201610067 [14:45:09]line Контрольно-Кассовый Чек [14:45:09]line ПРОДАЖА [14:45:09]line ТРК (МРК, ГНК) : 12 [14:45:09]line Товар: 2710124130 [14:45:09]line Аи-92-К-5 [14:45:09]line 7.480 * 66.90 [14:45:09]line = 500.41 [14:45:09]line НДС 12% НСП 1% [14:45:09]line > о реализуемом товаре [14:45:09]line ОКРУГЛЕНИЕ: -0.41 [14:45:09]line ИТОГО: 500.00 [14:45:09]line Внесено: 500.00 [14:45:09]line СДАЧА: 0.00 [14:45:09]line НСП 1% : 4.43 [14:45:09]line НДС 12% : 53.14 [14:45:09]line Наличными: 500.00 [14:45:09]line Безнал.: 0.00 [14:45:09]line Место: АЗС № 85 "Партнер Нефть" [14:45:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:45:09]line СНО: Общий режим [14:45:09]line Чек 247 21.10.2024 14:45 [14:45:09]line Смена: 194 ФФД: 1.0 [14:45:09]line ЗНМ: 0300000167 [14:45:09]line РНМ: 0000000000156251 [14:45:09]line Версия ККМ: v1.0 [14:45:09]line ФМ: 0000000000963346 [14:45:09]line ФД: 69857 [14:45:09]line ФПД: 114125319975348 [14:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144512&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69857&fm=114125319975348&tin=02508201610067®Number=0000000000156251&sum=50000 [14:45:09]OFD Sender: Processing packet 69857 [packets to send 18, broken 17] [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00069857 [14:45:09]OFD Sender: To server: pG, [14:45:09]CommunicateWithHost lk.salyk.kg:30040 [14:45:09]ConnectInit lk.salyk.kg [14:45:09]written 0, free lines is 4095 [14:45:09]Connected sock=10 [14:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F2 17 07 01 FC A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F8 68 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 10 01 00 35 04 06 00 67 CB DF 28 31 B4 84 7E AE A2 BF 7C 5D 6D [14:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 70 47 00 53 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 10 01 00 F4 03 04 00 9B 12 16 67 B6 04 01 00 00 B9 B6 2D 25 8E BA DA C7 [14:45:10]CommunicateWithHost err = 0 [14:45:10]CheckOFDResponse [14:45:10]1017 (14) - 77093643461234 [14:45:10]1041 (16) - 0000000000963346 [14:45:10]1040 (4) - 69857 [14:45:10]1012 (4) - 21.10.2024 08:36 [14:45:10]1206 (1) - 0 [14:45:10]OFD Sender: Remove packet 69857 [14:45:10]ProducePacketName [14:45:10]name=ofd_packets/00069857 [14:45:10]NVStorageDeleteData [14:45:10]Write to MH i2c: 01 00 00 9C 4A E6 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 9C 4A 00 00 00 00 00 F0 0C E9 [14:45:10]RasterBufferAndPrint [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]written 0, free lines is 3318 [14:45:10]MH_Cut [14:45:10]Write to MH i2c: D1 01 00 A3 4A 01 BF [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 A3 4A 00 BE [14:45:10]Write to MH i2c: 01 00 00 A4 4A EE [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]OFD Sender: No OFD packet to send [14:45:10]*** Cut start [14:45:10]*** Partial cut [14:45:10]*** CUTSNS_PIN = 1 [14:45:10]*** CUTSNS_PIN = 0 [14:45:11]*** Brake cut motor [14:45:11]Read from MH i2c: 01 [14:45:11]MH_I2C_Read... [14:45:11]*** Stop cut motor [14:45:11]*** Cut end [14:45:11]Read from MH i2c: 01 07 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 07 00 A4 4A 00 00 00 00 00 FF 0F 03 [14:45:11]process_action close_receipt done [14:45:11]requested_data is exist [14:45:11]produce_requested_data [14:45:11]requested_item fm.sn is exist - process it [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 11 00 00 [14:45:11]Write to MH i2c: E2 08 00 A5 4A 80 11 00 00 00 00 00 00 69 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 A5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [14:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:45:11]wFMCommunicate OK [14:45:11]requested_item fd.num is exist - process it [14:45:11]SAM_PROTO_GetFieldsCounters [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 00 00 [14:45:11]Write to MH i2c: E2 08 00 A6 4A 80 13 00 00 00 00 00 00 6C [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 A6 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [14:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetFieldsCounters done [14:45:11]requested_item shift.num is exist - process it [14:45:11]requested_item shift.opened is exist - process it [14:45:11]req_shift_opened [14:45:11]FM_GetShiftState [14:45:11]SAM_PROTO_GetShiftState [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 01 00 [14:45:11]Write to MH i2c: E2 08 00 A7 4A 80 13 01 00 00 00 00 00 6E [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 A7 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9A [14:45:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetShiftState done [14:45:11]FM_GetShiftState done [14:45:11]req_shift_opened done [14:45:11]requested_item shift.open_date is exist - process it [14:45:11]req_shift_open_date [14:45:11]req_shift_open_date done [14:45:11]produce_requested_data done [14:45:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69857,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:45:11]process_action_free close_receipt [14:45:11]json_value_free [14:45:11]json_value_free done [14:45:11]process_json_proto returns [14:45:11]Send response to host [14:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69857,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:45:11]free response buf [14:45:11]execute_script done [14:45:11]execute_script returns [14:45:11]free content buf [14:45:11]Sock 8.Close socket [14:45:11]Sock 8.Thread stoped [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:16]accept exits with 9 [14:46:16]New connection [14:46:16]New thread 3067456868 created [14:46:16]Thread 3067313508 joined [14:46:16]Waiting for new connection... [14:46:16] Sock 9.Parse request [14:46:16]Sock 9.Check first char [14:46:16]Sock 9.First char is OK [14:46:16]request: POST /json_proto HTTP/1.0 [14:46:16]Method: POST [14:46:16]URL: /json_proto [14:46:16]Method is POST - this is cgi request [14:46:16]url: /json_proto [14:46:16]query_string will be loaded in cgi processing [14:46:16]execute_cgi json_proto POST (null) [14:46:16]execute_cgi path=json_proto method=POST [14:46:16]POST find Content-Length [14:46:16]Host: 172.17.50.3:8080 [14:46:16]Content-Length: 683 [14:46:16]Content-Type: application/json [14:46:16] [14:46:16]POST finish read [14:46:16]Found Content-Length = 683 [14:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885609", "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" ] } } [14:46:16]execute_script... [14:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885609", "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" ] } } [14:46:16]POST & json_proto [14:46:16]process_json_proto [14:46:16]json parsed OK: [14:46:16]protocol is kg_v1.0 [14:46:16]action value=close_receipt [14:46:16]process_action close_receipt [14:46:16]cmd_close_receipt [14:46:16]MH_GetDate [14:46:16]Write to MH i2c: F0 00 00 A8 4A E1 [14:46:16]Write i2c OK [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: F0 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: F0 09 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: F0 09 00 A8 4A 00 3C 69 16 67 6B 98 1E 66 93 [14:46:16]GetLastDocTimeStamp 1729521912 [14:46:16]current date 1729521980 [14:46:16]FM_GetShiftState [14:46:16]SAM_PROTO_GetShiftState [14:46:16]wFMCommunicate request_size=4 [14:46:16]MH_SAM_APDU [14:46:16]CAPDU: 80 13 01 00 [14:46:16]Write to MH i2c: E2 08 00 A9 4A 80 13 01 00 00 00 00 00 70 [14:46:16]Write i2c OK [14:46:16]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 0E 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 0E 00 A9 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9C [14:46:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:46:16]wFMCommunicate OK [14:46:16]SAM_PROTO_GetShiftState done [14:46:16]FM_GetShiftState done [14:46:16]opened in 1729469703 [14:46:16]opened+sec_in_day 1729556103 [14:46:16]quantity*price = 100021 [14:46:16]sum+1 = 100023 [14:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 248 21.10.2024 14:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69858 ФПД: 215051125379310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69858&fm=215051125379310&tin=02508201610067®Number=0000000000156251&sum=100000 [14:46:17]StoreToDocumentArchive [14:46:17]shift 194 fd 69858 [14:46:17]save to /storage/0194/doc_00069858 [14:46:17]save last doc name /storage/0194/doc_00069858 to /storage/kkm_last_doc_name [14:46:17]save OK [14:46:17]Clear old archive folders... [14:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:17]tlvbuf is 00C413B0 [14:46:17]SAM_PROTO_ClearQueue [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 09 00 00 [14:46:17]Write to MH i2c: E2 08 00 B6 4A 80 09 00 00 00 00 00 00 72 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 B6 4A 00 90 00 74 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_ClearQueue done [14:46:17]KKMCreateOFDPacket [14:46:17]OFDProtocolAddRootSTLVToBuf [14:46:17]FM_MakeSignedData [14:46:17]FM_MakeSignedData [14:46:17]SAM_PROTO_SignData [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 01 02 [14:46:17]Write to MH i2c: E2 08 00 B7 4A 80 0D 01 02 00 00 00 00 7A [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 B7 4A 00 90 00 75 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=255 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 3C 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 10 01 00 35 04 06 00 C3 [14:46:17]Write to MH i2c: E2 02 01 B8 4A 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 F8 00 00 00 F4 03 04 00 3C 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 10 01 00 35 04 06 00 C3 00 00 B2 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 B8 4A 00 90 00 76 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=10 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 02 02 05 96 7D EF D0 EE [14:46:17]Write to MH i2c: E2 0D 00 B9 4A 80 0D 02 02 05 00 96 7D EF D0 EE 00 00 47 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 B9 4A 00 90 00 77 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 03 02 [14:46:17]Write to MH i2c: E2 08 00 BA 4A 80 0D 03 02 00 00 00 00 7F [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0B 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0B 00 BA 4A 00 21 79 5C CA 99 D9 24 41 90 00 17 [14:46:17]RAPDU: 21 79 5C CA 99 D9 24 41 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_SignData done [14:46:17]FM_MakeSignedData done [14:46:17]CreateOFDProtocolMessage [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 11 00 00 [14:46:17]Write to MH i2c: E2 08 00 BB 4A 80 11 00 00 00 00 00 00 7F [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 17 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 17 00 BB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [14:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:46:17]wFMCommunicate OK [14:46:17]CreateOFDProtocolMessage done [14:46:17]OFDSenderStorePacket 69858 [14:46:17]StoreOFDPacket docnum=69858 [14:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 3F 07 01 C7 0D 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 F8 00 00 00 F4 03 04 00 3C 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 10 01 00 35 04 06 00 C3 96 7D EF D0 EE 21 79 5C CA 99 D9 24 41 [14:46:17]CheckFolder [14:46:17]dirname=/storage/ofd_packets [14:46:17]CheckFolder done [14:46:17]ProducePacketName [14:46:17]name=ofd_packets/00069858 [14:46:17]NVStorageSaveData ofd_packets/00069858 [14:46:17]File name is /storage/ofd_packets/00069858 [14:46:17]Write 301 bytes [14:46:17]NVStorageSaveData done [14:46:17]OFDSenderStorePacket done [14:46:17]KKMCreateOFDPacket done [14:46:17]NVStorageSaveData kkm_last_timestamp [14:46:17]File name is /storage/kkm_last_timestamp [14:46:17]Write 4 bytes [14:46:17]NVStorageSaveData done [14:46:17]ExternCall_PrintAddStr [14:46:17]wPrintStart [14:46:17]Write to MH i2c: 01 00 00 BC 4A 06 [14:46:17]OFD Sender: Processing packet 69858 [packets to send 18, broken 17] [14:46:17]ProducePacketName [14:46:17]name=ofd_packets/00069858 [14:46:17]OFD Sender: To server: pG, [14:46:17]CommunicateWithHost lk.salyk.kg:30040 [14:46:17]ConnectInit lk.salyk.kg [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 07 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 07 00 BC 4A 00 00 00 00 00 FF 0F 1B [14:46:17]RasterBufferAndPrint [14:46:17]line Счет N : (1)2885609 [14:46:17]line ИНН: 02508201610067 [14:46:17]line Контрольно-Кассовый Чек [14:46:17]line ПРОДАЖА [14:46:17]line ТРК (МРК, ГНК) : 43 [14:46:17]line Товар: 2710124500 [14:46:17]line Аи-95-К-5 [14:46:17]line 13.480 * 74.20 [14:46:17]line = 1000.22 [14:46:17]line НДС 12% НСП 1% [14:46:17]line > о реализуемом товаре [14:46:17]line ОКРУГЛЕНИЕ: -0.22 [14:46:17]line ИТОГО: 1000.00 [14:46:17]line Внесено: 1000.00 [14:46:17]line СДАЧА: 0.00 [14:46:17]line НСП 1% : 8.85 [14:46:17]line НДС 12% : 106.22 [14:46:17]line Наличными: 1000.00 [14:46:17]line Безнал.: 0.00 [14:46:17]line Место: АЗС № 85 "Партнер Нефть" [14:46:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:46:17]line СНО: Общий режим [14:46:17]line Чек 248 21.10.2024 14:46 [14:46:17]line Смена: 194 ФФД: 1.0 [14:46:17]line ЗНМ: 0300000167 [14:46:17]line РНМ: 0000000000156251 [14:46:17]line Версия ККМ: v1.0 [14:46:17]line ФМ: 0000000000963346 [14:46:17]line ФД: 69858 [14:46:17]line ФПД: 215051125379310 [14:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69858&fm=215051125379310&tin=02508201610067®Number=0000000000156251&sum=100000 [14:46:18]Connected sock=10 [14:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 3F 07 01 C7 0D 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 F8 00 00 00 F4 03 04 00 3C 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 10 01 00 35 04 06 00 C3 96 7D EF D0 EE 21 79 5C CA 99 D9 24 41 [14:46:18]written 0, free lines is 4095 [14:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 74 AB 47 00 6D 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 10 01 00 F4 03 04 00 DF 12 16 67 B6 04 01 00 00 14 FD F4 37 42 2C 66 0B [14:46:18]CommunicateWithHost err = 0 [14:46:18]CheckOFDResponse [14:46:18]1017 (14) - 77093643461234 [14:46:18]1041 (16) - 0000000000963346 [14:46:18]1040 (4) - 69858 [14:46:18]1012 (4) - 21.10.2024 08:37 [14:46:18]1206 (1) - 0 [14:46:18]OFD Sender: Remove packet 69858 [14:46:18]ProducePacketName [14:46:18]name=ofd_packets/00069858 [14:46:18]NVStorageDeleteData [14:46:18]Write to MH i2c: 01 00 00 E7 4A 31 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 E7 4A 00 00 00 00 00 E4 0C 28 [14:46:18]RasterBufferAndPrint [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]written 0, free lines is 3306 [14:46:18]MH_Cut [14:46:18]Write to MH i2c: D1 01 00 EE 4A 01 0A [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 01 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 01 00 EE 4A 00 09 [14:46:18]Write to MH i2c: 01 00 00 EF 4A 39 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]OFD Sender: No OFD packet to send [14:46:19]*** Cut start [14:46:19]*** Partial cut [14:46:19]*** CUTSNS_PIN = 1 [14:46:19]*** CUTSNS_PIN = 0 [14:46:19]*** Brake cut motor [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]*** Stop cut motor [14:46:20]*** Cut end [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 EF 4A 00 00 00 00 00 FF 0F 4E [14:46:20]process_action close_receipt done [14:46:20]requested_data is exist [14:46:20]produce_requested_data [14:46:20]requested_item fm.sn is exist - process it [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 11 00 00 [14:46:20]Write to MH i2c: E2 08 00 F0 4A 80 11 00 00 00 00 00 00 B4 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 F0 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [14:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:46:20]wFMCommunicate OK [14:46:20]requested_item fd.num is exist - process it [14:46:20]SAM_PROTO_GetFieldsCounters [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 13 00 00 [14:46:20]Write to MH i2c: E2 08 00 F1 4A 80 13 00 00 00 00 00 00 B7 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 62 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 62 00 F1 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_GetFieldsCounters done [14:46:20]requested_item shift.num is exist - process it [14:46:20]requested_item shift.opened is exist - process it [14:46:20]req_shift_opened [14:46:20]FM_GetShiftState [14:46:20]SAM_PROTO_GetShiftState [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 13 01 00 [14:46:20]Write to MH i2c: E2 08 00 F2 4A 80 13 01 00 00 00 00 00 B9 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0E 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0E 00 F2 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E5 [14:46:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_GetShiftState done [14:46:20]FM_GetShiftState done [14:46:20]req_shift_opened done [14:46:20]requested_item shift.open_date is exist - process it [14:46:20]req_shift_open_date [14:46:20]req_shift_open_date done [14:46:20]produce_requested_data done [14:46:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69858,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:46:20]process_action_free close_receipt [14:46:20]json_value_free [14:46:20]json_value_free done [14:46:20]process_json_proto returns [14:46:20]Send response to host [14:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69858,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:46:20]free response buf [14:46:20]execute_script done [14:46:20]execute_script returns [14:46:20]free content buf [14:46:20]Sock 9.Close socket [14:46:20]Sock 9.Thread stoped [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:10]accept exits with 8 [14:47:10]New connection [14:47:10]New thread 3067313508 created [14:47:10]Thread 3067456868 joined [14:47:10]Waiting for new connection... [14:47:10] Sock 8.Parse request [14:47:10]Sock 8.Check first char [14:47:10]Sock 8.First char is OK [14:47:10]request: POST /json_proto HTTP/1.0 [14:47:10]Method: POST [14:47:10]URL: /json_proto [14:47:10]Method is POST - this is cgi request [14:47:10]url: /json_proto [14:47:10]query_string will be loaded in cgi processing [14:47:10]execute_cgi json_proto POST (null) [14:47:10]execute_cgi path=json_proto method=POST [14:47:10]POST find Content-Length [14:47:10]Host: 172.17.50.3:8080 [14:47:10]Content-Length: 678 [14:47:10]Content-Type: application/json [14:47:10] [14:47:10]POST finish read [14:47:10]Found Content-Length = 678 [14:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885611", "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" : 5.400, "sum" : 400.68, "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" ] } } [14:47:10]execute_script... [14:47: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)2885611", "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" : 5.400, "sum" : 400.68, "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" ] } } [14:47:10]POST & json_proto [14:47:10]process_json_proto [14:47:10]json parsed OK: [14:47:10]protocol is kg_v1.0 [14:47:10]action value=close_receipt [14:47:10]process_action close_receipt [14:47:10]cmd_close_receipt [14:47:10]MH_GetDate [14:47:10]Write to MH i2c: F0 00 00 F3 4A 2C [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: F0 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: F0 09 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: F0 09 00 F3 4A 00 72 69 16 67 6B 98 1E 66 14 [14:47:10]GetLastDocTimeStamp 1729521980 [14:47:10]current date 1729522034 [14:47:10]FM_GetShiftState [14:47:10]SAM_PROTO_GetShiftState [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 13 01 00 [14:47:10]Write to MH i2c: E2 08 00 F4 4A 80 13 01 00 00 00 00 00 BB [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 0E 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 0E 00 F4 4A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [14:47:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:47:10]wFMCommunicate OK [14:47:10]SAM_PROTO_GetShiftState done [14:47:10]FM_GetShiftState done [14:47:10]opened in 1729469703 [14:47:10]opened+sec_in_day 1729556103 [14:47:10]quantity*price = 40068 [14:47:10]sum+1 = 40069 [14:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 249 21.10.2024 14:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69859 ФПД: 77668238003434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69859&fm=77668238003434&tin=02508201610067®Number=0000000000156251&sum=40000 [14:47:11]StoreToDocumentArchive [14:47:11]shift 194 fd 69859 [14:47:11]save to /storage/0194/doc_00069859 [14:47:11]save last doc name /storage/0194/doc_00069859 to /storage/kkm_last_doc_name [14:47:11]save OK [14:47:11]Clear old archive folders... [14:47:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:11]tlvbuf is 00CA9680 [14:47:11]SAM_PROTO_ClearQueue [14:47:11]wFMCommunicate request_size=4 [14:47:11]MH_SAM_APDU [14:47:11]CAPDU: 80 09 00 00 [14:47:11]Write to MH i2c: E2 08 00 01 4B 80 09 00 00 00 00 00 00 BE [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:11]Read from MH i2c: E2 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 03 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 03 00 01 4B 00 90 00 C0 [14:47:11]RAPDU: 90 00 [14:47:11]wFMCommunicate OK [14:47:11]SAM_PROTO_ClearQueue done [14:47:11]KKMCreateOFDPacket [14:47:11]OFDProtocolAddRootSTLVToBuf [14:47:11]FM_MakeSignedData [14:47:11]FM_MakeSignedData [14:47:11]SAM_PROTO_SignData [14:47:11]wFMCommunicate request_size=4 [14:47:11]MH_SAM_APDU [14:47:11]CAPDU: 80 0D 01 02 [14:47:11]Write to MH i2c: E2 08 00 02 4B 80 0D 01 02 00 00 00 00 C6 [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:11]Read from MH i2c: E2 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 03 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 03 00 02 4B 00 90 00 C1 [14:47:11]RAPDU: 90 00 [14:47:11]wFMCommunicate OK [14:47:11]wFMCommunicate request_size=255 [14:47:11]MH_SAM_APDU [14:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F9 00 00 00 F4 03 04 00 72 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 10 01 00 35 04 06 00 46 [14:47:11]Write to MH i2c: E2 02 01 03 4B 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F9 00 00 00 F4 03 04 00 72 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 10 01 00 35 04 06 00 46 00 00 4B [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 03 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 03 00 03 4B 00 90 00 C2 [14:47:12]RAPDU: 90 00 [14:47:12]wFMCommunicate OK [14:47:12]wFMCommunicate request_size=10 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 0D 02 02 05 A3 8B BC 8C EA [14:47:12]Write to MH i2c: E2 0D 00 04 4B 80 0D 02 02 05 00 A3 8B BC 8C EA 00 00 33 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 03 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 03 00 04 4B 00 90 00 C3 [14:47:12]RAPDU: 90 00 [14:47:12]wFMCommunicate OK [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 0D 03 02 [14:47:12]Write to MH i2c: E2 08 00 05 4B 80 0D 03 02 00 00 00 00 CB [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0B 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0B 00 05 4B 00 CB 07 68 37 78 74 43 AF 90 00 1B [14:47:12]RAPDU: CB 07 68 37 78 74 43 AF 90 00 [14:47:12]wFMCommunicate OK [14:47:12]SAM_PROTO_SignData done [14:47:12]FM_MakeSignedData done [14:47:12]CreateOFDProtocolMessage [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 11 00 00 [14:47:12]Write to MH i2c: E2 08 00 06 4B 80 11 00 00 00 00 00 00 CB [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 17 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 17 00 06 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [14:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:47:12]wFMCommunicate OK [14:47:12]CreateOFDProtocolMessage done [14:47:12]OFDSenderStorePacket 69859 [14:47:12]StoreOFDPacket docnum=69859 [14:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 AA 07 01 67 74 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F9 00 00 00 F4 03 04 00 72 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 10 01 00 35 04 06 00 46 A3 8B BC 8C EA CB 07 68 37 78 74 43 AF [14:47:12]CheckFolder [14:47:12]dirname=/storage/ofd_packets [14:47:12]CheckFolder done [14:47:12]ProducePacketName [14:47:12]name=ofd_packets/00069859 [14:47:12]NVStorageSaveData ofd_packets/00069859 [14:47:12]File name is /storage/ofd_packets/00069859 [14:47:12]Write 301 bytes [14:47:12]NVStorageSaveData done [14:47:12]OFDSenderStorePacket done [14:47:12]KKMCreateOFDPacket done [14:47:12]NVStorageSaveData kkm_last_timestamp [14:47:12]File name is /storage/kkm_last_timestamp [14:47:12]Write 4 bytes [14:47:12]NVStorageSaveData done [14:47:12]ExternCall_PrintAddStr [14:47:12]wPrintStart [14:47:12]Write to MH i2c: 01 00 00 07 4B 52 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 07 4B 00 00 00 00 00 FF 0F 67 [14:47:12]RasterBufferAndPrint [14:47:12]line Счет N : (1)2885611 [14:47:12]line ИНН: 02508201610067 [14:47:12]line Контрольно-Кассовый Чек [14:47:12]line ПРОДАЖА [14:47:12]line ТРК (МРК, ГНК) : 33 [14:47:12]line Товар: 2710124500 [14:47:12]line Аи-95-К-5 [14:47:12]line 5.400 * 74.20 [14:47:12]line = 400.68 [14:47:12]line НДС 12% НСП 1% [14:47:12]line > о реализуемом товаре [14:47:12]line ОКРУГЛЕНИЕ: -0.68 [14:47:12]line ИТОГО: 400.00 [14:47:12]line Внесено: 400.00 [14:47:12]line СДАЧА: 0.00 [14:47:12]line НСП 1% : 3.55 [14:47:12]line НДС 12% : 42.55 [14:47:12]line Наличными: 400.00 [14:47:12]line Безнал.: 0.00 [14:47:12]line Место: АЗС № 85 "Партнер Нефть" [14:47:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:47:12]line СНО: Общий режим [14:47:12]line Чек 249 21.10.2024 14:47 [14:47:12]line Смена: 194 ФФД: 1.0 [14:47:12]line ЗНМ: 0300000167 [14:47:12]line РНМ: 0000000000156251 [14:47:12]line Версия ККМ: v1.0 [14:47:12]line ФМ: 0000000000963346 [14:47:12]line ФД: 69859 [14:47:12]line ФПД: 77668238003434 [14:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69859&fm=77668238003434&tin=02508201610067®Number=0000000000156251&sum=40000 [14:47:12]OFD Sender: Processing packet 69859 [packets to send 18, broken 17] [14:47:12]ProducePacketName [14:47:12]name=ofd_packets/00069859 [14:47:12]OFD Sender: To server: pG, [14:47:12]CommunicateWithHost lk.salyk.kg:30040 [14:47:12]ConnectInit lk.salyk.kg [14:47:12]written 0, free lines is 4095 [14:47:12]Connected sock=10 [14:47:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 AA 07 01 67 74 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 F9 00 00 00 F4 03 04 00 72 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 10 01 00 35 04 06 00 46 A3 8B BC 8C EA CB 07 68 37 78 74 43 AF [14:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EF B1 47 00 DE C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 10 01 00 F4 03 04 00 16 13 16 67 B6 04 01 00 00 1D 25 25 FE 8C A5 8C EE [14:47:12]CommunicateWithHost err = 0 [14:47:12]CheckOFDResponse [14:47:12]1017 (14) - 77093643461234 [14:47:12]1041 (16) - 0000000000963346 [14:47:12]1040 (4) - 69859 [14:47:12]1012 (4) - 21.10.2024 08:38 [14:47:12]1206 (1) - 0 [14:47:12]OFD Sender: Remove packet 69859 [14:47:12]ProducePacketName [14:47:12]name=ofd_packets/00069859 [14:47:12]NVStorageDeleteData [14:47:13]Write to MH i2c: 01 00 00 32 4B 7D [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 32 4B 00 00 00 00 00 E6 0C 76 [14:47:13]RasterBufferAndPrint [14:47:13]line [14:47:13]line [14:47:13]line [14:47:13]line [14:47:13]line [14:47:13]written 0, free lines is 3311 [14:47:13]MH_Cut [14:47:13]Write to MH i2c: D1 01 00 39 4B 01 56 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D1 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D1 01 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D1 01 00 39 4B 00 55 [14:47:13]Write to MH i2c: 01 00 00 3A 4B 85 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]OFD Sender: No OFD packet to send [14:47:13]*** Cut start [14:47:13]*** Partial cut [14:47:13]*** CUTSNS_PIN = 1 [14:47:13]*** CUTSNS_PIN = 0 [14:47:14]*** Brake cut motor [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]*** Stop cut motor [14:47:14]*** Cut end [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 3A 4B 00 00 00 00 00 FF 0F 9A [14:47:14]process_action close_receipt done [14:47:14]requested_data is exist [14:47:14]produce_requested_data [14:47:14]requested_item fm.sn is exist - process it [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 11 00 00 [14:47:14]Write to MH i2c: E2 08 00 3B 4B 80 11 00 00 00 00 00 00 00 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:14]Read from MH i2c: E2 17 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 17 00 3B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [14:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:47:14]wFMCommunicate OK [14:47:14]requested_item fd.num is exist - process it [14:47:14]SAM_PROTO_GetFieldsCounters [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 13 00 00 [14:47:14]Write to MH i2c: E2 08 00 3C 4B 80 13 00 00 00 00 00 00 03 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 62 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 62 00 3C 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [14:47:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:14]wFMCommunicate OK [14:47:14]SAM_PROTO_GetFieldsCounters done [14:47:14]requested_item shift.num is exist - process it [14:47:14]requested_item shift.opened is exist - process it [14:47:14]req_shift_opened [14:47:14]FM_GetShiftState [14:47:14]SAM_PROTO_GetShiftState [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 13 01 00 [14:47:14]Write to MH i2c: E2 08 00 3D 4B 80 13 01 00 00 00 00 00 05 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 3D 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 31 [14:47:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:47:14]wFMCommunicate OK [14:47:14]SAM_PROTO_GetShiftState done [14:47:14]FM_GetShiftState done [14:47:14]req_shift_opened done [14:47:14]requested_item shift.open_date is exist - process it [14:47:14]req_shift_open_date [14:47:14]req_shift_open_date done [14:47:14]produce_requested_data done [14:47:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69859,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:47:14]process_action_free close_receipt [14:47:14]json_value_free [14:47:14]json_value_free done [14:47:14]process_json_proto returns [14:47:14]Send response to host [14:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69859,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:47:14]free response buf [14:47:14]execute_script done [14:47:14]execute_script returns [14:47:14]free content buf [14:47:14]Sock 8.Close socket [14:47:14]Sock 8.Thread stoped [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:14]accept exits with 9 [14:48:14]New connection [14:48:14]New thread 3067456868 created [14:48:14]Thread 3067313508 joined [14:48:14]Waiting for new connection... [14:48:14] Sock 9.Parse request [14:48:14]Sock 9.Check first char [14:48:14]Sock 9.First char is OK [14:48:14]request: POST /json_proto HTTP/1.0 [14:48:14]Method: POST [14:48:14]URL: /json_proto [14:48:14]Method is POST - this is cgi request [14:48:14]url: /json_proto [14:48:14]query_string will be loaded in cgi processing [14:48:14]execute_cgi json_proto POST (null) [14:48:14]execute_cgi path=json_proto method=POST [14:48:14]POST find Content-Length [14:48:14]Host: 172.17.50.3:8080 [14:48:14]Content-Length: 791 [14:48:14]Content-Type: application/json [14:48:14] [14:48:14]POST finish read [14:48:14]Found Content-Length = 791 [14:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:14]execute_script... [14:48: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)2885610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:14]POST & json_proto [14:48:14]process_json_proto [14:48:14]json parsed OK: [14:48:14]protocol is kg_v1.0 [14:48:14]action value=close_receipt [14:48:14]process_action close_receipt [14:48:14]cmd_close_receipt [14:48:14]MH_GetDate [14:48:14]Write to MH i2c: F0 00 00 3E 4B 78 [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 09 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: F0 09 00 3E 4B 00 B3 69 16 67 6B 98 1E 66 A1 [14:48:14]GetLastDocTimeStamp 1729522034 [14:48:14]current date 1729522099 [14:48:14]FM_GetShiftState [14:48:14]SAM_PROTO_GetShiftState [14:48:14]wFMCommunicate request_size=4 [14:48:14]MH_SAM_APDU [14:48:14]CAPDU: 80 13 01 00 [14:48:14]Write to MH i2c: E2 08 00 3F 4B 80 13 01 00 00 00 00 00 07 [14:48:14]Write i2c OK [14:48:14]MH_I2C_Read... [14:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:14]Read from MH i2c: E2 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: E2 0E 00 [14:48:14]MH_I2C_Read... [14:48:14]Read from MH i2c: E2 0E 00 3F 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 33 [14:48:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:48:14]wFMCommunicate OK [14:48:14]SAM_PROTO_GetShiftState done [14:48:14]FM_GetShiftState done [14:48:14]opened in 1729469703 [14:48:14]opened+sec_in_day 1729556103 [14:48:14]quantity*price = 0 [14:48:14]sum+1 = 1 [14:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 250 21.10.2024 14:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69860 ФПД: 111162524273277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69860&fm=111162524273277&tin=02508201610067®Number=0000000000156251&sum=0 [14:48:16]StoreToDocumentArchive [14:48:16]shift 194 fd 69860 [14:48:16]save to /storage/0194/doc_00069860 [14:48:16]save last doc name /storage/0194/doc_00069860 to /storage/kkm_last_doc_name [14:48:16]save OK [14:48:16]Clear old archive folders... [14:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:16]tlvbuf is 00C41480 [14:48:16]SAM_PROTO_ClearQueue [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 09 00 00 [14:48:16]Write to MH i2c: E2 08 00 4C 4B 80 09 00 00 00 00 00 00 09 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 4C 4B 00 90 00 0B [14:48:16]RAPDU: 90 00 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_ClearQueue done [14:48:16]KKMCreateOFDPacket [14:48:16]OFDProtocolAddRootSTLVToBuf [14:48:16]FM_MakeSignedData [14:48:16]FM_MakeSignedData [14:48:16]SAM_PROTO_SignData [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 0D 01 02 [14:48:16]Write to MH i2c: E2 08 00 4D 4B 80 0D 01 02 00 00 00 00 11 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 4D 4B 00 90 00 0C [14:48:16]RAPDU: 90 00 [14:48:16]wFMCommunicate OK [14:48:16]wFMCommunicate request_size=255 [14:48:16]MH_SAM_APDU [14:48: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 32 31 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 FA 00 00 00 F4 03 04 00 B3 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 10 01 00 35 04 06 00 65 1A 0A C5 [14:48:16]Write to MH i2c: E2 02 01 4E 4B 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 32 31 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 FA 00 00 00 F4 03 04 00 B3 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 10 01 00 35 04 06 00 65 1A 0A C5 00 00 27 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [14:48:16]RAPDU: 90 00 [14:48:16]wFMCommunicate OK [14:48:16]wFMCommunicate request_size=7 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 0D 02 02 02 8A 7D [14:48:16]Write to MH i2c: E2 0A 00 4F 4B 80 0D 02 02 02 00 8A 7D 00 00 1F [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 4F 4B 00 90 00 0E [14:48:16]RAPDU: 90 00 [14:48:16]wFMCommunicate OK [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 0D 03 02 [14:48:16]Write to MH i2c: E2 08 00 50 4B 80 0D 03 02 00 00 00 00 16 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0B 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 0B 00 50 4B 00 93 13 A3 A6 49 B4 1D 4F 90 00 6F [14:48:16]RAPDU: 93 13 A3 A6 49 B4 1D 4F 90 00 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_SignData done [14:48:16]FM_MakeSignedData done [14:48:16]CreateOFDProtocolMessage [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 11 00 00 [14:48:16]Write to MH i2c: E2 08 00 51 4B 80 11 00 00 00 00 00 00 16 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 17 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 17 00 51 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [14:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:48:16]wFMCommunicate OK [14:48:16]CreateOFDProtocolMessage done [14:48:16]OFDSenderStorePacket 69860 [14:48:16]StoreOFDPacket docnum=69860 [14:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 0B 30 04 01 E7 D0 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 32 31 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 FA 00 00 00 F4 03 04 00 B3 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 10 01 00 35 04 06 00 65 1A 0A C5 8A 7D 93 13 A3 A6 49 B4 1D 4F [14:48:16]CheckFolder [14:48:16]dirname=/storage/ofd_packets [14:48:16]CheckFolder done [14:48:16]ProducePacketName [14:48:16]name=ofd_packets/00069860 [14:48:16]NVStorageSaveData ofd_packets/00069860 [14:48:16]File name is /storage/ofd_packets/00069860 [14:48:16]Write 298 bytes [14:48:16]NVStorageSaveData done [14:48:16]OFDSenderStorePacket done [14:48:16]KKMCreateOFDPacket done [14:48:16]NVStorageSaveData kkm_last_timestamp [14:48:16]File name is /storage/kkm_last_timestamp [14:48:16]Write 4 bytes [14:48:16]NVStorageSaveData done [14:48:16]ExternCall_PrintAddStr [14:48:16]wPrintStart [14:48:16]Write to MH i2c: 01 00 00 52 4B 9D [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: 01 07 00 52 4B 00 00 00 00 00 FF 0F B2 [14:48:16]RasterBufferAndPrint [14:48:16]line Счет N : (1)2885610 [14:48:16]line ИНН: 02508201610067 [14:48:16]line Контрольно-Кассовый Чек [14:48:16]line ПРОДАЖА [14:48:16]line ТРК (МРК, ГНК) : 61 [14:48:16]line Товар: 2710194210 [14:48:16]line ДТ-К-5 [14:48:16]line 100.000 * 0.00 [14:48:16]line = 0.00 [14:48:16]line НДС 12% НСП 1% [14:48:16]line > о реализуемом товаре [14:48:16]line ИТОГО: 0.00 [14:48:16]line НСП 1% : 0.00 [14:48:16]line НДС 12% : 0.00 [14:48:16]line Наличными: 0.00 [14:48:16]line Безнал.: 0.00 [14:48:16]line Место: АЗС № 85 "Партнер Нефть" [14:48:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:48:16]line СНО: Общий режим [14:48:16]line Чек 250 21.10.2024 14:48 [14:48:16]line Смена: 194 ФФД: 1.0 [14:48:16]line ЗНМ: 0300000167 [14:48:16]line РНМ: 0000000000156251 [14:48:16]line Версия ККМ: v1.0 [14:48:16]line Талоны: Топливная Карта [14:48:16]line 31095 [14:48:16]line ФМ: 0000000000963346 [14:48:16]line ФД: 69860 [14:48:16]line ФПД: 111162524273277 [14:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144819&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69860&fm=111162524273277&tin=02508201610067®Number=0000000000156251&sum=0 [14:48:16]OFD Sender: Processing packet 69860 [packets to send 18, broken 17] [14:48:16]ProducePacketName [14:48:16]name=ofd_packets/00069860 [14:48:16]OFD Sender: To server: pG, [14:48:16]CommunicateWithHost lk.salyk.kg:30040 [14:48:16]ConnectInit lk.salyk.kg [14:48:16]written 0, free lines is 4095 [14:48:16]Connected sock=11 [14:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 0B 30 04 01 E7 D0 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 32 31 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 FA 00 00 00 F4 03 04 00 B3 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 10 01 00 35 04 06 00 65 1A 0A C5 8A 7D 93 13 A3 A6 49 B4 1D 4F [14:48:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 94 47 00 22 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 10 01 00 F4 03 04 00 56 13 16 67 B6 04 01 00 00 43 6B 31 E8 0E F4 CD 2F [14:48:17]CommunicateWithHost err = 0 [14:48:17]CheckOFDResponse [14:48:17]1017 (14) - 77093643461234 [14:48:17]1041 (16) - 0000000000963346 [14:48:17]1040 (4) - 69860 [14:48:17]1012 (4) - 21.10.2024 08:39 [14:48:17]1206 (1) - 0 [14:48:17]OFD Sender: Remove packet 69860 [14:48:17]ProducePacketName [14:48:17]name=ofd_packets/00069860 [14:48:17]NVStorageDeleteData [14:48:17]Write to MH i2c: 01 00 00 7C 4B C7 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 7C 4B 00 00 00 00 00 ED 0C C7 [14:48:17]RasterBufferAndPrint [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]written 0, free lines is 3316 [14:48:17]MH_Cut [14:48:17]Write to MH i2c: D1 01 00 83 4B 01 A0 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 01 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 01 00 83 4B 00 9F [14:48:17]Write to MH i2c: 01 00 00 84 4B CF [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]OFD Sender: No OFD packet to send [14:48:18]*** Cut start [14:48:18]*** Partial cut [14:48:18]*** CUTSNS_PIN = 1 [14:48:18]*** CUTSNS_PIN = 0 [14:48:18]*** Brake cut motor [14:48:18]Read from MH i2c: 01 [14:48:18]MH_I2C_Read... [14:48:18]*** Stop cut motor [14:48:18]*** Cut end [14:48:18]Read from MH i2c: 01 07 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: 01 07 00 84 4B 00 00 00 00 00 FF 0F E4 [14:48:18]process_action close_receipt done [14:48:18]requested_data is exist [14:48:18]produce_requested_data [14:48:18]requested_item fm.sn is exist - process it [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 11 00 00 [14:48:18]Write to MH i2c: E2 08 00 85 4B 80 11 00 00 00 00 00 00 4A [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 17 00 85 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [14:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:48:18]wFMCommunicate OK [14:48:18]requested_item fd.num is exist - process it [14:48:18]SAM_PROTO_GetFieldsCounters [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 13 00 00 [14:48:18]Write to MH i2c: E2 08 00 86 4B 80 13 00 00 00 00 00 00 4D [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 62 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 62 00 86 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [14:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:18]wFMCommunicate OK [14:48:18]SAM_PROTO_GetFieldsCounters done [14:48:18]requested_item shift.num is exist - process it [14:48:18]requested_item shift.opened is exist - process it [14:48:18]req_shift_opened [14:48:18]FM_GetShiftState [14:48:18]SAM_PROTO_GetShiftState [14:48:18]wFMCommunicate request_size=4 [14:48:18]MH_SAM_APDU [14:48:18]CAPDU: 80 13 01 00 [14:48:18]Write to MH i2c: E2 08 00 87 4B 80 13 01 00 00 00 00 00 4F [14:48:18]Write i2c OK [14:48:18]MH_I2C_Read... [14:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:18]Read from MH i2c: E2 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0E 00 [14:48:18]MH_I2C_Read... [14:48:18]Read from MH i2c: E2 0E 00 87 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7B [14:48:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:48:18]wFMCommunicate OK [14:48:18]SAM_PROTO_GetShiftState done [14:48:18]FM_GetShiftState done [14:48:18]req_shift_opened done [14:48:18]requested_item shift.open_date is exist - process it [14:48:18]req_shift_open_date [14:48:18]req_shift_open_date done [14:48:18]produce_requested_data done [14:48:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69860,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:48:18]process_action_free close_receipt [14:48:18]json_value_free [14:48:18]json_value_free done [14:48:18]process_json_proto returns [14:48:18]Send response to host [14:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69860,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:48:18]free response buf [14:48:18]execute_script done [14:48:18]execute_script returns [14:48:18]free content buf [14:48:18]Sock 9.Close socket [14:48:18]Sock 9.Thread stoped [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:18]accept exits with 8 [14:49:18]New connection [14:49:18]New thread 3067313508 created [14:49:18]Thread 3067456868 joined [14:49:18]Waiting for new connection... [14:49:18] Sock 8.Parse request [14:49:18]Sock 8.Check first char [14:49:18]Sock 8.First char is OK [14:49:18]request: POST /json_proto HTTP/1.0 [14:49:18]Method: POST [14:49:18]URL: /json_proto [14:49:18]Method is POST - this is cgi request [14:49:18]url: /json_proto [14:49:18]query_string will be loaded in cgi processing [14:49:18]execute_cgi json_proto POST (null) [14:49:18]execute_cgi path=json_proto method=POST [14:49:18]POST find Content-Length [14:49:18]Host: 172.17.50.3:8080 [14:49:18]Content-Length: 675 [14:49:18]Content-Type: application/json [14:49:18] [14:49:18]POST finish read [14:49:18]Found Content-Length = 675 [14:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:18]execute_script... [14:49: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)2885613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:18]POST & json_proto [14:49:18]process_json_proto [14:49:18]json parsed OK: [14:49:18]protocol is kg_v1.0 [14:49:18]action value=close_receipt [14:49:18]process_action close_receipt [14:49:18]cmd_close_receipt [14:49:18]MH_GetDate [14:49:18]Write to MH i2c: F0 00 00 88 4B C2 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 09 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 09 00 88 4B 00 F2 69 16 67 6B 98 1E 66 2A [14:49:18]GetLastDocTimeStamp 1729522099 [14:49:18]current date 1729522162 [14:49:18]FM_GetShiftState [14:49:18]SAM_PROTO_GetShiftState [14:49:18]wFMCommunicate request_size=4 [14:49:18]MH_SAM_APDU [14:49:18]CAPDU: 80 13 01 00 [14:49:18]Write to MH i2c: E2 08 00 89 4B 80 13 01 00 00 00 00 00 51 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:18]Read from MH i2c: E2 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 89 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7D [14:49:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:49:18]wFMCommunicate OK [14:49:18]SAM_PROTO_GetShiftState done [14:49:18]FM_GetShiftState done [14:49:18]opened in 1729469703 [14:49:18]opened+sec_in_day 1729556103 [14:49:18]quantity*price = 55016 [14:49:18]sum+1 = 55017 [14:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 251 21.10.2024 14:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69861 ФПД: 102240457134221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69861&fm=102240457134221&tin=02508201610067®Number=0000000000156251&sum=55000 [14:49:19]StoreToDocumentArchive [14:49:19]shift 194 fd 69861 [14:49:19]save to /storage/0194/doc_00069861 [14:49:19]save last doc name /storage/0194/doc_00069861 to /storage/kkm_last_doc_name [14:49:19]save OK [14:49:19]Clear old archive folders... [14:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:19]tlvbuf is 00CFD2E0 [14:49:19]SAM_PROTO_ClearQueue [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 09 00 00 [14:49:19]Write to MH i2c: E2 08 00 96 4B 80 09 00 00 00 00 00 00 53 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 96 4B 00 90 00 55 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]SAM_PROTO_ClearQueue done [14:49:19]KKMCreateOFDPacket [14:49:19]OFDProtocolAddRootSTLVToBuf [14:49:19]FM_MakeSignedData [14:49:19]FM_MakeSignedData [14:49:19]SAM_PROTO_SignData [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 01 02 [14:49:19]Write to MH i2c: E2 08 00 97 4B 80 0D 01 02 00 00 00 00 5B [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 97 4B 00 90 00 56 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=255 [14:49:19]MH_SAM_APDU [14:49:19]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F2 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 10 01 00 35 04 06 00 5C FC B6 21 [14:49:19]Write to MH i2c: E2 02 01 98 4B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F2 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 10 01 00 35 04 06 00 5C FC B6 21 00 00 87 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 98 4B 00 90 00 57 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=7 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 02 02 02 10 8D [14:49:19]Write to MH i2c: E2 0A 00 99 4B 80 0D 02 02 02 00 10 8D 00 00 FF [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 03 02 [14:49:19]Write to MH i2c: E2 08 00 9A 4B 80 0D 03 02 00 00 00 00 60 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 0B 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 0B 00 9A 4B 00 4B C4 F1 D5 5F 66 41 CD 90 00 09 [14:49:19]RAPDU: 4B C4 F1 D5 5F 66 41 CD 90 00 [14:49:19]wFMCommunicate OK [14:49:19]SAM_PROTO_SignData done [14:49:19]FM_MakeSignedData done [14:49:19]CreateOFDProtocolMessage [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 11 00 00 [14:49:19]Write to MH i2c: E2 08 00 9B 4B 80 11 00 00 00 00 00 00 60 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 17 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 17 00 9B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [14:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:49:19]wFMCommunicate OK [14:49:19]CreateOFDProtocolMessage done [14:49:19]OFDSenderStorePacket 69861 [14:49:19]StoreOFDPacket docnum=69861 [14:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F2 DD 04 01 BE A0 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F2 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 10 01 00 35 04 06 00 5C FC B6 21 10 8D 4B C4 F1 D5 5F 66 41 CD [14:49:19]CheckFolder [14:49:19]dirname=/storage/ofd_packets [14:49:19]CheckFolder done [14:49:19]ProducePacketName [14:49:19]name=ofd_packets/00069861 [14:49:19]NVStorageSaveData ofd_packets/00069861 [14:49:19]File name is /storage/ofd_packets/00069861 [14:49:19]Write 298 bytes [14:49:19]NVStorageSaveData done [14:49:19]OFDSenderStorePacket done [14:49:19]KKMCreateOFDPacket done [14:49:19]NVStorageSaveData kkm_last_timestamp [14:49:19]File name is /storage/kkm_last_timestamp [14:49:19]Write 4 bytes [14:49:19]NVStorageSaveData done [14:49:19]ExternCall_PrintAddStr [14:49:19]wPrintStart [14:49:19]Write to MH i2c: 01 00 00 9C 4B E7 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: 01 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: 01 07 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: 01 07 00 9C 4B 00 00 00 00 00 FF 0F FC [14:49:19]RasterBufferAndPrint [14:49:19]line Счет N : (1)2885613 [14:49:19]line ИНН: 02508201610067 [14:49:19]line Контрольно-Кассовый Чек [14:49:19]line ПРОДАЖА [14:49:19]line ТРК (МРК, ГНК) : 51 [14:49:19]line Товар: 2710194210 [14:49:19]line ДТ-К-5 [14:49:19]line 7.220 * 76.20 [14:49:19]line = 550.16 [14:49:19]line НДС 12% НСП 1% [14:49:19]line > о реализуемом товаре [14:49:19]line ОКРУГЛЕНИЕ: -0.16 [14:49:19]line ИТОГО: 550.00 [14:49:19]line Внесено: 550.00 [14:49:19]line СДАЧА: 0.00 [14:49:19]line НСП 1% : 4.87 [14:49:19]line НДС 12% : 58.42 [14:49:19]line Наличными: 550.00 [14:49:19]line Безнал.: 0.00 [14:49:19]line Место: АЗС № 85 "Партнер Нефть" [14:49:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:49:19]line СНО: Общий режим [14:49:19]line Чек 251 21.10.2024 14:49 [14:49:19]line Смена: 194 ФФД: 1.0 [14:49:19]line ЗНМ: 0300000167 [14:49:19]line РНМ: 0000000000156251 [14:49:19]line Версия ККМ: v1.0 [14:49:19]line ФМ: 0000000000963346 [14:49:19]line ФД: 69861 [14:49:20]line ФПД: 102240457134221 [14:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144922&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69861&fm=102240457134221&tin=02508201610067®Number=0000000000156251&sum=55000 [14:49:20]OFD Sender: Processing packet 69861 [packets to send 18, broken 17] [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00069861 [14:49:20]OFD Sender: To server: pG, [14:49:20]CommunicateWithHost lk.salyk.kg:30040 [14:49:20]ConnectInit lk.salyk.kg [14:49:20]written 0, free lines is 4095 [14:49:20]Connected sock=10 [14:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F2 DD 04 01 BE A0 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F2 69 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 10 01 00 35 04 06 00 5C FC B6 21 10 8D 4B C4 F1 D5 5F 66 41 CD [14:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E4 94 47 00 55 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 10 01 00 F4 03 04 00 95 13 16 67 B6 04 01 00 00 22 C6 67 91 F0 B7 0C 4E [14:49:20]CommunicateWithHost err = 0 [14:49:20]CheckOFDResponse [14:49:20]1017 (14) - 77093643461234 [14:49:20]1041 (16) - 0000000000963346 [14:49:20]1040 (4) - 69861 [14:49:20]1012 (4) - 21.10.2024 08:40 [14:49:20]1206 (1) - 0 [14:49:20]OFD Sender: Remove packet 69861 [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00069861 [14:49:20]NVStorageDeleteData [14:49:20]Write to MH i2c: 01 00 00 C7 4B 12 [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 C7 4B 00 00 00 00 00 EF 0C 14 [14:49:20]RasterBufferAndPrint [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]written 0, free lines is 3317 [14:49:20]MH_Cut [14:49:20]Write to MH i2c: D1 01 00 CE 4B 01 EB [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 01 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 01 00 CE 4B 00 EA [14:49:20]Write to MH i2c: 01 00 00 CF 4B 1A [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]OFD Sender: No OFD packet to send [14:49:21]*** Cut start [14:49:21]*** Partial cut [14:49:21]*** CUTSNS_PIN = 1 [14:49:21]*** CUTSNS_PIN = 0 [14:49:21]*** Brake cut motor [14:49:21]Read from MH i2c: 01 [14:49:21]MH_I2C_Read... [14:49:21]*** Stop cut motor [14:49:21]*** Cut end [14:49:21]Read from MH i2c: 01 07 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: 01 07 00 CF 4B 00 00 00 00 00 FF 0F 2F [14:49:21]process_action close_receipt done [14:49:21]requested_data is exist [14:49:21]produce_requested_data [14:49:21]requested_item fm.sn is exist - process it [14:49:21]wFMCommunicate request_size=4 [14:49:21]MH_SAM_APDU [14:49:21]CAPDU: 80 11 00 00 [14:49:21]Write to MH i2c: E2 08 00 D0 4B 80 11 00 00 00 00 00 00 95 [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:21]Read from MH i2c: E2 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 17 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 17 00 D0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [14:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:49:21]wFMCommunicate OK [14:49:21]requested_item fd.num is exist - process it [14:49:21]SAM_PROTO_GetFieldsCounters [14:49:21]wFMCommunicate request_size=4 [14:49:21]MH_SAM_APDU [14:49:21]CAPDU: 80 13 00 00 [14:49:21]Write to MH i2c: E2 08 00 D1 4B 80 13 00 00 00 00 00 00 98 [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 62 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 62 00 D1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [14:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_GetFieldsCounters done [14:49:22]requested_item shift.num is exist - process it [14:49:22]requested_item shift.opened is exist - process it [14:49:22]req_shift_opened [14:49:22]FM_GetShiftState [14:49:22]SAM_PROTO_GetShiftState [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 13 01 00 [14:49:22]Write to MH i2c: E2 08 00 D2 4B 80 13 01 00 00 00 00 00 9A [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 D2 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C6 [14:49:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_GetShiftState done [14:49:22]FM_GetShiftState done [14:49:22]req_shift_opened done [14:49:22]requested_item shift.open_date is exist - process it [14:49:22]req_shift_open_date [14:49:22]req_shift_open_date done [14:49:22]produce_requested_data done [14:49:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69861,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:49:22]process_action_free close_receipt [14:49:22]json_value_free [14:49:22]json_value_free done [14:49:22]process_json_proto returns [14:49:22]Send response to host [14:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69861,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:49:22]free response buf [14:49:22]execute_script done [14:49:22]execute_script returns [14:49:22]free content buf [14:49:22]Sock 8.Close socket [14:49:22]Sock 8.Thread stoped [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]accept exits with 9 [14:51:25]New connection [14:51:25]New thread 3067456868 created [14:51:25]Thread 3067313508 joined [14:51:25]Waiting for new connection... [14:51:25] Sock 9.Parse request [14:51:25]Sock 9.Check first char [14:51:25]Sock 9.First char is OK [14:51:25]request: POST /json_proto HTTP/1.0 [14:51:25]Method: POST [14:51:25]URL: /json_proto [14:51:25]Method is POST - this is cgi request [14:51:25]url: /json_proto [14:51:25]query_string will be loaded in cgi processing [14:51:25]execute_cgi json_proto POST (null) [14:51:25]execute_cgi path=json_proto method=POST [14:51:25]POST find Content-Length [14:51:25]Host: 172.17.50.3:8080 [14:51:25]Content-Length: 791 [14:51:25]Content-Type: application/json [14:51:25] [14:51:25]POST finish read [14:51:25]Found Content-Length = 791 [14:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:25]execute_script... [14:51: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)2885612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:25]POST & json_proto [14:51:25]process_json_proto [14:51:25]json parsed OK: [14:51:25]protocol is kg_v1.0 [14:51:25]action value=close_receipt [14:51:25]process_action close_receipt [14:51:25]cmd_close_receipt [14:51:25]MH_GetDate [14:51:25]Write to MH i2c: F0 00 00 D3 4B 0D [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: F0 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: F0 09 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: F0 09 00 D3 4B 00 71 6A 16 67 6B 98 1E 66 F5 [14:51:25]GetLastDocTimeStamp 1729522162 [14:51:25]current date 1729522289 [14:51:25]FM_GetShiftState [14:51:25]SAM_PROTO_GetShiftState [14:51:25]wFMCommunicate request_size=4 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 13 01 00 [14:51:25]Write to MH i2c: E2 08 00 D4 4B 80 13 01 00 00 00 00 00 9C [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 0E 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 0E 00 D4 4B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C8 [14:51:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:51:25]wFMCommunicate OK [14:51:25]SAM_PROTO_GetShiftState done [14:51:25]FM_GetShiftState done [14:51:25]opened in 1729469703 [14:51:25]opened+sec_in_day 1729556103 [14:51:25]quantity*price = 0 [14:51:25]sum+1 = 1 [14:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 252 21.10.2024 14:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69862 ФПД: 240154331096746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69862&fm=240154331096746&tin=02508201610067®Number=0000000000156251&sum=0 [14:51:26]StoreToDocumentArchive [14:51:26]shift 194 fd 69862 [14:51:26]save to /storage/0194/doc_00069862 [14:51:26]save last doc name /storage/0194/doc_00069862 to /storage/kkm_last_doc_name [14:51:26]save OK [14:51:26]Clear old archive folders... [14:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:51:26]tlvbuf is 00CFCC70 [14:51:26]SAM_PROTO_ClearQueue [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 09 00 00 [14:51:26]Write to MH i2c: E2 08 00 E1 4B 80 09 00 00 00 00 00 00 9E [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 03 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 03 00 E1 4B 00 90 00 A0 [14:51:26]RAPDU: 90 00 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_ClearQueue done [14:51:26]KKMCreateOFDPacket [14:51:26]OFDProtocolAddRootSTLVToBuf [14:51:26]FM_MakeSignedData [14:51:26]FM_MakeSignedData [14:51:26]SAM_PROTO_SignData [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 0D 01 02 [14:51:26]Write to MH i2c: E2 08 00 E2 4B 80 0D 01 02 00 00 00 00 A6 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 03 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 03 00 E2 4B 00 90 00 A1 [14:51:26]RAPDU: 90 00 [14:51:26]wFMCommunicate OK [14:51:26]wFMCommunicate request_size=255 [14:51:26]MH_SAM_APDU [14:51: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 32 31 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 FC 00 00 00 F4 03 04 00 72 6A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 10 01 00 35 04 06 00 DA 6B 49 98 [14:51:26]Write to MH i2c: E2 02 01 E3 4B 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 32 31 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 FC 00 00 00 F4 03 04 00 72 6A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 10 01 00 35 04 06 00 DA 6B 49 98 00 00 58 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 E3 4B 00 90 00 A2 [14:51:27]RAPDU: 90 00 [14:51:27]wFMCommunicate OK [14:51:27]wFMCommunicate request_size=7 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 0D 02 02 02 A6 AA [14:51:27]Write to MH i2c: E2 0A 00 E4 4B 80 0D 02 02 02 00 A6 AA 00 00 FD [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 E4 4B 00 90 00 A3 [14:51:27]RAPDU: 90 00 [14:51:27]wFMCommunicate OK [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 0D 03 02 [14:51:27]Write to MH i2c: E2 08 00 E5 4B 80 0D 03 02 00 00 00 00 AB [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 0B 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 0B 00 E5 4B 00 E4 8E 38 7E F9 B8 9B 6C 90 00 8C [14:51:27]RAPDU: E4 8E 38 7E F9 B8 9B 6C 90 00 [14:51:27]wFMCommunicate OK [14:51:27]SAM_PROTO_SignData done [14:51:27]FM_MakeSignedData done [14:51:27]CreateOFDProtocolMessage [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 11 00 00 [14:51:27]Write to MH i2c: E2 08 00 E6 4B 80 11 00 00 00 00 00 00 AB [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 17 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 17 00 E6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [14:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:51:27]wFMCommunicate OK [14:51:27]CreateOFDProtocolMessage done [14:51:27]OFDSenderStorePacket 69862 [14:51:27]StoreOFDPacket docnum=69862 [14:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DC A6 04 01 85 29 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 32 31 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 FC 00 00 00 F4 03 04 00 72 6A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 10 01 00 35 04 06 00 DA 6B 49 98 A6 AA E4 8E 38 7E F9 B8 9B 6C [14:51:27]CheckFolder [14:51:27]dirname=/storage/ofd_packets [14:51:27]CheckFolder done [14:51:27]ProducePacketName [14:51:27]name=ofd_packets/00069862 [14:51:27]NVStorageSaveData ofd_packets/00069862 [14:51:27]File name is /storage/ofd_packets/00069862 [14:51:27]Write 298 bytes [14:51:27]NVStorageSaveData done [14:51:27]OFDSenderStorePacket done [14:51:27]KKMCreateOFDPacket done [14:51:27]NVStorageSaveData kkm_last_timestamp [14:51:27]File name is /storage/kkm_last_timestamp [14:51:27]Write 4 bytes [14:51:27]NVStorageSaveData done [14:51:27]ExternCall_PrintAddStr [14:51:27]wPrintStart [14:51:27]Write to MH i2c: 01 00 00 E7 4B 32 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: 01 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: 01 07 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: 01 07 00 E7 4B 00 00 00 00 00 FF 0F 47 [14:51:27]RasterBufferAndPrint [14:51:27]line Счет N : (1)2885612 [14:51:27]line ИНН: 02508201610067 [14:51:27]line Контрольно-Кассовый Чек [14:51:27]line ПРОДАЖА [14:51:27]line ТРК (МРК, ГНК) : 61 [14:51:27]line Товар: 2710194210 [14:51:27]line ДТ-К-5 [14:51:27]line 100.000 * 0.00 [14:51:27]line = 0.00 [14:51:27]line НДС 12% НСП 1% [14:51:27]line > о реализуемом товаре [14:51:27]line ИТОГО: 0.00 [14:51:27]line НСП 1% : 0.00 [14:51:27]line НДС 12% : 0.00 [14:51:27]line Наличными: 0.00 [14:51:27]line Безнал.: 0.00 [14:51:27]line Место: АЗС № 85 "Партнер Нефть" [14:51:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:51:27]line СНО: Общий режим [14:51:27]line Чек 252 21.10.2024 14:51 [14:51:27]line Смена: 194 ФФД: 1.0 [14:51:27]line ЗНМ: 0300000167 [14:51:27]line РНМ: 0000000000156251 [14:51:27]line Версия ККМ: v1.0 [14:51:27]line Талоны: Топливная Карта [14:51:27]line 31095 [14:51:27]line ФМ: 0000000000963346 [14:51:27]line ФД: 69862 [14:51:27]line ФПД: 240154331096746 [14:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69862&fm=240154331096746&tin=02508201610067®Number=0000000000156251&sum=0 [14:51:27]OFD Sender: Processing packet 69862 [packets to send 18, broken 17] [14:51:27]ProducePacketName [14:51:27]name=ofd_packets/00069862 [14:51:27]OFD Sender: To server: pG, [14:51:27]CommunicateWithHost lk.salyk.kg:30040 [14:51:27]ConnectInit lk.salyk.kg [14:51:27]written 0, free lines is 4095 [14:51:27]Connected sock=11 [14:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DC A6 04 01 85 29 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 32 31 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 FC 00 00 00 F4 03 04 00 72 6A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 10 01 00 35 04 06 00 DA 6B 49 98 A6 AA E4 8E 38 7E F9 B8 9B 6C [14:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 63 43 47 00 5B 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 39 36 33 33 34 36 10 04 04 00 E6 10 01 00 F4 03 04 00 15 14 16 67 B6 04 01 00 00 5D 42 50 E3 F5 5A 5B 1A [14:51:28]CommunicateWithHost err = 0 [14:51:28]CheckOFDResponse [14:51:28]1017 (14) - 77093643461234 [14:51:28]1041 (16) - 0000000000963346 [14:51:28]1040 (4) - 69862 [14:51:28]1012 (4) - 21.10.2024 08:43 [14:51:28]1206 (1) - 0 [14:51:28]OFD Sender: Remove packet 69862 [14:51:28]ProducePacketName [14:51:28]name=ofd_packets/00069862 [14:51:28]NVStorageDeleteData [14:51:28]Write to MH i2c: 01 00 00 11 4C 5D [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 07 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 07 00 11 4C 00 00 00 00 00 FC 0C 6C [14:51:28]RasterBufferAndPrint [14:51:28]line [14:51:28]line [14:51:28]line [14:51:28]line [14:51:28]line [14:51:28]written 0, free lines is 3330 [14:51:28]MH_Cut [14:51:28]Write to MH i2c: D1 01 00 18 4C 01 36 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: D1 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: D1 01 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: D1 01 00 18 4C 00 35 [14:51:28]Write to MH i2c: 01 00 00 19 4C 65 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]OFD Sender: No OFD packet to send [14:51:28]*** Cut start [14:51:28]*** Partial cut [14:51:28]*** CUTSNS_PIN = 1 [14:51:28]*** CUTSNS_PIN = 0 [14:51:29]*** Brake cut motor [14:51:29]Read from MH i2c: 01 [14:51:29]MH_I2C_Read... [14:51:29]*** Stop cut motor [14:51:29]*** Cut end [14:51:29]Read from MH i2c: 01 07 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: 01 07 00 19 4C 00 00 00 00 00 FF 0F 7A [14:51:29]process_action close_receipt done [14:51:29]requested_data is exist [14:51:29]produce_requested_data [14:51:29]requested_item fm.sn is exist - process it [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 11 00 00 [14:51:29]Write to MH i2c: E2 08 00 1A 4C 80 11 00 00 00 00 00 00 E0 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 17 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 17 00 1A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [14:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:51:29]wFMCommunicate OK [14:51:29]requested_item fd.num is exist - process it [14:51:29]SAM_PROTO_GetFieldsCounters [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 13 00 00 [14:51:29]Write to MH i2c: E2 08 00 1B 4C 80 13 00 00 00 00 00 00 E3 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 62 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 62 00 1B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [14:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:29]wFMCommunicate OK [14:51:29]SAM_PROTO_GetFieldsCounters done [14:51:29]requested_item shift.num is exist - process it [14:51:29]requested_item shift.opened is exist - process it [14:51:29]req_shift_opened [14:51:29]FM_GetShiftState [14:51:29]SAM_PROTO_GetShiftState [14:51:29]wFMCommunicate request_size=4 [14:51:29]MH_SAM_APDU [14:51:29]CAPDU: 80 13 01 00 [14:51:29]Write to MH i2c: E2 08 00 1C 4C 80 13 01 00 00 00 00 00 E5 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:29]Read from MH i2c: E2 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0E 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: E2 0E 00 1C 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [14:51:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:51:29]wFMCommunicate OK [14:51:29]SAM_PROTO_GetShiftState done [14:51:29]FM_GetShiftState done [14:51:29]req_shift_opened done [14:51:29]requested_item shift.open_date is exist - process it [14:51:29]req_shift_open_date [14:51:29]req_shift_open_date done [14:51:29]produce_requested_data done [14:51:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69862,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:51:29]process_action_free close_receipt [14:51:29]json_value_free [14:51:29]json_value_free done [14:51:29]process_json_proto returns [14:51:29]Send response to host [14:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69862,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:51:29]free response buf [14:51:29]execute_script done [14:51:29]execute_script returns [14:51:29]free content buf [14:51:29]Sock 9.Close socket [14:51:29]Sock 9.Thread stoped [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:27]accept exits with 8 [14:56:27]New connection [14:56:27]New thread 3067313508 created [14:56:27]Thread 3067456868 joined [14:56:27]Waiting for new connection... [14:56:27] Sock 8.Parse request [14:56:27]Sock 8.Check first char [14:56:27]Sock 8.First char is OK [14:56:27]request: POST /json_proto HTTP/1.0 [14:56:27]Method: POST [14:56:27]URL: /json_proto [14:56:27]Method is POST - this is cgi request [14:56:27]url: /json_proto [14:56:27]query_string will be loaded in cgi processing [14:56:27]execute_cgi json_proto POST (null) [14:56:27]execute_cgi path=json_proto method=POST [14:56:27]POST find Content-Length [14:56:27]Host: 172.17.50.3:8080 [14:56:27]Content-Length: 752 [14:56:27]Content-Type: application/json [14:56:27] [14:56:27]POST finish read [14:56:27]Found Content-Length = 752 [14:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:27]execute_script... [14:56:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.610, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:27]POST & json_proto [14:56:27]process_json_proto [14:56:27]json parsed OK: [14:56:27]protocol is kg_v1.0 [14:56:27]action value=close_receipt [14:56:27]process_action close_receipt [14:56:27]cmd_close_receipt [14:56:27]MH_GetDate [14:56:27]Write to MH i2c: F0 00 00 1D 4C 58 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 09 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: F0 09 00 1D 4C 00 9F 6B 16 67 6B 98 1E 66 6F [14:56:27]GetLastDocTimeStamp 1729522290 [14:56:27]current date 1729522591 [14:56:27]FM_GetShiftState [14:56:27]SAM_PROTO_GetShiftState [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 13 01 00 [14:56:27]Write to MH i2c: E2 08 00 1E 4C 80 13 01 00 00 00 00 00 E7 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0E 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 0E 00 1E 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [14:56:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:56:27]wFMCommunicate OK [14:56:27]SAM_PROTO_GetShiftState done [14:56:27]FM_GetShiftState done [14:56:27]opened in 1729469703 [14:56:27]opened+sec_in_day 1729556103 [14:56:27]quantity*price = 0 [14:56:27]sum+1 = 1 [14:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 253 21.10.2024 14:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30077137 ФМ: 0000000000963346 ФД: 69863 ФПД: 273362542914321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69863&fm=273362542914321&tin=02508201610067®Number=0000000000156251&sum=0 [14:56:28]StoreToDocumentArchive [14:56:28]shift 194 fd 69863 [14:56:28]save to /storage/0194/doc_00069863 [14:56:28]save last doc name /storage/0194/doc_00069863 to /storage/kkm_last_doc_name [14:56:28]save OK [14:56:28]Clear old archive folders... [14:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:56:28]tlvbuf is 00CCE4C0 [14:56:28]SAM_PROTO_ClearQueue [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 09 00 00 [14:56:28]Write to MH i2c: E2 08 00 2B 4C 80 09 00 00 00 00 00 00 E9 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2B 4C 00 90 00 EB [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_ClearQueue done [14:56:28]KKMCreateOFDPacket [14:56:28]OFDProtocolAddRootSTLVToBuf [14:56:28]FM_MakeSignedData [14:56:28]FM_MakeSignedData [14:56:28]SAM_PROTO_SignData [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 01 02 [14:56:28]Write to MH i2c: E2 08 00 2C 4C 80 0D 01 02 00 00 00 00 F1 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2C 4C 00 90 00 EC [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=255 [14:56:28]MH_SAM_APDU [14:56:28]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 00 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 FD 00 00 00 F4 03 04 00 9F 6B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 10 01 00 35 04 06 00 F8 9F 2D 43 [14:56:28]Write to MH i2c: E2 02 01 2D 4C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 00 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 FD 00 00 00 F4 03 04 00 9F 6B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 10 01 00 35 04 06 00 F8 9F 2D 43 00 00 D8 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]OFD Sender: No OFD packet to send [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 2D 4C 00 90 00 ED [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=7 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 02 02 02 EB 11 [14:56:28]Write to MH i2c: E2 0A 00 2E 4C 80 0D 02 02 02 00 EB 11 00 00 F4 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 03 00 2E 4C 00 90 00 EE [14:56:29]RAPDU: 90 00 [14:56:29]wFMCommunicate OK [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 0D 03 02 [14:56:29]Write to MH i2c: E2 08 00 2F 4C 80 0D 03 02 00 00 00 00 F6 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0B 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0B 00 2F 4C 00 2D ED F9 D1 01 E6 B5 44 90 00 BB [14:56:29]RAPDU: 2D ED F9 D1 01 E6 B5 44 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_SignData done [14:56:29]FM_MakeSignedData done [14:56:29]CreateOFDProtocolMessage [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 11 00 00 [14:56:29]Write to MH i2c: E2 08 00 30 4C 80 11 00 00 00 00 00 00 F6 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 30 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [14:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:56:29]wFMCommunicate OK [14:56:29]CreateOFDProtocolMessage done [14:56:29]OFDSenderStorePacket 69863 [14:56:29]StoreOFDPacket docnum=69863 [14:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A0 38 04 01 BE B1 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 00 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 FD 00 00 00 F4 03 04 00 9F 6B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 10 01 00 35 04 06 00 F8 9F 2D 43 EB 11 2D ED F9 D1 01 E6 B5 44 [14:56:29]CheckFolder [14:56:29]dirname=/storage/ofd_packets [14:56:29]CheckFolder done [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00069863 [14:56:29]NVStorageSaveData ofd_packets/00069863 [14:56:29]File name is /storage/ofd_packets/00069863 [14:56:29]Write 298 bytes [14:56:29]NVStorageSaveData done [14:56:29]OFDSenderStorePacket done [14:56:29]KKMCreateOFDPacket done [14:56:29]NVStorageSaveData kkm_last_timestamp [14:56:29]File name is /storage/kkm_last_timestamp [14:56:29]Write 4 bytes [14:56:29]NVStorageSaveData done [14:56:29]ExternCall_PrintAddStr [14:56:29]wPrintStart [14:56:29]Write to MH i2c: 01 00 00 31 4C 7D [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 31 4C 00 00 00 00 00 FF 0F 92 [14:56:29]RasterBufferAndPrint [14:56:29]line Счет N : (1)2885614 [14:56:29]line ИНН: 02508201610067 [14:56:29]line Контрольно-Кассовый Чек [14:56:29]line ПРОДАЖА [14:56:29]line ТРК (МРК, ГНК) : 61 [14:56:29]line Товар: 2710194210 [14:56:29]line ДТ-К-5 [14:56:29]line 65.610 * 0.00 [14:56:29]line = 0.00 [14:56:29]line НДС 12% НСП 1% [14:56:29]line > о реализуемом товаре [14:56:29]line ИТОГО: 0.00 [14:56:29]line НСП 1% : 0.00 [14:56:29]line НДС 12% : 0.00 [14:56:29]line Наличными: 0.00 [14:56:29]line Безнал.: 0.00 [14:56:29]line Место: АЗС № 85 "Партнер Нефть" [14:56:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:56:29]line СНО: Общий режим [14:56:29]line Чек 253 21.10.2024 14:56 [14:56:29]line Смена: 194 ФФД: 1.0 [14:56:29]line ЗНМ: 0300000167 [14:56:29]line РНМ: 0000000000156251 [14:56:29]line Версия ККМ: v1.0 [14:56:29]line Талоны: ТК ГПНА Online [14:56:29]line 30077137 [14:56:29]line ФМ: 0000000000963346 [14:56:29]line ФД: 69863 [14:56:29]line ФПД: 273362542914321 [14:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69863&fm=273362542914321&tin=02508201610067®Number=0000000000156251&sum=0 [14:56:29]OFD Sender: Processing packet 69863 [packets to send 18, broken 17] [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00069863 [14:56:29]OFD Sender: To server: pG, [14:56:29]CommunicateWithHost lk.salyk.kg:30040 [14:56:29]ConnectInit lk.salyk.kg [14:56:29]written 0, free lines is 4095 [14:56:29]Connected sock=10 [14:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A0 38 04 01 BE B1 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 00 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 FD 00 00 00 F4 03 04 00 9F 6B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 10 01 00 35 04 06 00 F8 9F 2D 43 EB 11 2D ED F9 D1 01 E6 B5 44 [14:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 74 47 00 C6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 10 01 00 F4 03 04 00 43 15 16 67 B6 04 01 00 00 A6 FC CE 18 F2 91 1C D2 [14:56:29]CommunicateWithHost err = 0 [14:56:29]CheckOFDResponse [14:56:29]1017 (14) - 77093643461234 [14:56:29]1041 (16) - 0000000000963346 [14:56:29]1040 (4) - 69863 [14:56:29]1012 (4) - 21.10.2024 08:48 [14:56:29]1206 (1) - 0 [14:56:29]OFD Sender: Remove packet 69863 [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00069863 [14:56:29]NVStorageDeleteData [14:56:29]Write to MH i2c: 01 00 00 5B 4C A7 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 5B 4C 00 00 00 00 00 FE 0C B8 [14:56:29]RasterBufferAndPrint [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]written 0, free lines is 3333 [14:56:29]MH_Cut [14:56:29]Write to MH i2c: D1 01 00 62 4C 01 80 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 62 4C 00 7F [14:56:29]Write to MH i2c: 01 00 00 63 4C AF [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:30]OFD Sender: No OFD packet to send [14:56:30]*** Cut start [14:56:30]*** Partial cut [14:56:30]*** CUTSNS_PIN = 1 [14:56:30]*** CUTSNS_PIN = 0 [14:56:30]*** Brake cut motor [14:56:31]Read from MH i2c: 01 [14:56:31]MH_I2C_Read... [14:56:31]*** Stop cut motor [14:56:31]*** Cut end [14:56:31]Read from MH i2c: 01 07 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: 01 07 00 63 4C 00 00 00 00 00 FF 0F C4 [14:56:31]process_action close_receipt done [14:56:31]requested_data is exist [14:56:31]produce_requested_data [14:56:31]requested_item fm.sn is exist - process it [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 11 00 00 [14:56:31]Write to MH i2c: E2 08 00 64 4C 80 11 00 00 00 00 00 00 2A [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 17 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 17 00 64 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [14:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:56:31]wFMCommunicate OK [14:56:31]requested_item fd.num is exist - process it [14:56:31]SAM_PROTO_GetFieldsCounters [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 13 00 00 [14:56:31]Write to MH i2c: E2 08 00 65 4C 80 13 00 00 00 00 00 00 2D [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 62 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 62 00 65 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetFieldsCounters done [14:56:31]requested_item shift.num is exist - process it [14:56:31]requested_item shift.opened is exist - process it [14:56:31]req_shift_opened [14:56:31]FM_GetShiftState [14:56:31]SAM_PROTO_GetShiftState [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 13 01 00 [14:56:31]Write to MH i2c: E2 08 00 66 4C 80 13 01 00 00 00 00 00 2F [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 66 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5B [14:56:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetShiftState done [14:56:31]FM_GetShiftState done [14:56:31]req_shift_opened done [14:56:31]requested_item shift.open_date is exist - process it [14:56:31]req_shift_open_date [14:56:31]req_shift_open_date done [14:56:31]produce_requested_data done [14:56:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69863,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [14:56:31]process_action_free close_receipt [14:56:31]json_value_free [14:56:31]json_value_free done [14:56:31]process_json_proto returns [14:56:31]Send response to host [14:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69863,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [14:56:31]free response buf [14:56:31]execute_script done [14:56:31]execute_script returns [14:56:31]free content buf [14:56:31]Sock 8.Close socket [14:56:31]Sock 8.Thread stoped [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:06:56]accept exits with 9 [15:06:56]New connection [15:06:56]New thread 3067456868 created [15:06:56]Thread 3067313508 joined [15:06:56]Waiting for new connection... [15:06:56] Sock 9.Parse request [15:06:56]Sock 9.Check first char [15:06:56]Sock 9.First char is OK [15:06:56]request: POST /json_proto HTTP/1.0 [15:06:56]Method: POST [15:06:56]URL: /json_proto [15:06:56]Method is POST - this is cgi request [15:06:56]url: /json_proto [15:06:56]query_string will be loaded in cgi processing [15:06:56]execute_cgi json_proto POST (null) [15:06:56]execute_cgi path=json_proto method=POST [15:06:56]POST find Content-Length [15:06:56]Host: 172.17.50.3:8080 [15:06:56]Content-Length: 680 [15:06:56]Content-Type: application/json [15:06:56] [15:06:56]POST finish read [15:06:56]Found Content-Length = 680 [15:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [15:06:56]execute_script... [15:06: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)2885617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [15:06:56]POST & json_proto [15:06:56]process_json_proto [15:06:56]json parsed OK: [15:06:56]protocol is kg_v1.0 [15:06:56]action value=close_receipt [15:06:56]process_action close_receipt [15:06:56]cmd_close_receipt [15:06:56]MH_GetDate [15:06:56]Write to MH i2c: F0 00 00 67 4C A2 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 67 4C 00 15 6E 16 67 6B 98 1E 66 32 [15:06:56]GetLastDocTimeStamp 1729522591 [15:06:56]current date 1729523221 [15:06:56]FM_GetShiftState [15:06:56]SAM_PROTO_GetShiftState [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 01 00 [15:06:56]Write to MH i2c: E2 08 00 68 4C 80 13 01 00 00 00 00 00 31 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 68 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5D [15:06:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetShiftState done [15:06:56]FM_GetShiftState done [15:06:56]opened in 1729469703 [15:06:56]opened+sec_in_day 1729556103 [15:06:56]quantity*price = 100050 [15:06:56]sum+1 = 100052 [15:06: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 254 21.10.2024 15:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69864 ФПД: 124555938547549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69864&fm=124555938547549&tin=02508201610067®Number=0000000000156251&sum=100000 [15:06:57]StoreToDocumentArchive [15:06:57]shift 194 fd 69864 [15:06:57]save to /storage/0194/doc_00069864 [15:06:57]save last doc name /storage/0194/doc_00069864 to /storage/kkm_last_doc_name [15:06:57]save OK [15:06:57]Clear old archive folders... [15:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:06:57]tlvbuf is 00C92210 [15:06:57]SAM_PROTO_ClearQueue [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 09 00 00 [15:06:57]Write to MH i2c: E2 08 00 75 4C 80 09 00 00 00 00 00 00 33 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 75 4C 00 90 00 35 [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_ClearQueue done [15:06:57]KKMCreateOFDPacket [15:06:57]OFDProtocolAddRootSTLVToBuf [15:06:57]FM_MakeSignedData [15:06:57]FM_MakeSignedData [15:06:57]SAM_PROTO_SignData [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 01 02 [15:06:57]Write to MH i2c: E2 08 00 76 4C 80 0D 01 02 00 00 00 00 3B [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 76 4C 00 90 00 36 [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=255 [15:06:57]MH_SAM_APDU [15:06: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 32 31 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 FE 00 00 00 F4 03 04 00 15 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 10 01 00 35 04 06 00 71 48 70 78 [15:06:57]Write to MH i2c: E2 02 01 77 4C 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 32 31 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 FE 00 00 00 F4 03 04 00 15 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 10 01 00 35 04 06 00 71 48 70 78 00 00 14 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 77 4C 00 90 00 37 [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]wFMCommunicate request_size=7 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 02 02 02 C7 5D [15:06:58]Write to MH i2c: E2 0A 00 78 4C 80 0D 02 02 02 00 C7 5D 00 00 66 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 78 4C 00 90 00 38 [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 03 02 [15:06:58]Write to MH i2c: E2 08 00 79 4C 80 0D 03 02 00 00 00 00 40 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0B 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0B 00 79 4C 00 5C 14 B1 59 D8 BB 69 EE 90 00 A5 [15:06:58]RAPDU: 5C 14 B1 59 D8 BB 69 EE 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_SignData done [15:06:58]FM_MakeSignedData done [15:06:58]CreateOFDProtocolMessage [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 11 00 00 [15:06:58]Write to MH i2c: E2 08 00 7A 4C 80 11 00 00 00 00 00 00 40 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 17 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 17 00 7A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [15:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:06:58]wFMCommunicate OK [15:06:58]CreateOFDProtocolMessage done [15:06:58]OFDSenderStorePacket 69864 [15:06:58]StoreOFDPacket docnum=69864 [15:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E4 62 04 01 15 40 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 32 31 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 FE 00 00 00 F4 03 04 00 15 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 10 01 00 35 04 06 00 71 48 70 78 C7 5D 5C 14 B1 59 D8 BB 69 EE [15:06:58]CheckFolder [15:06:58]dirname=/storage/ofd_packets [15:06:58]CheckFolder done [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00069864 [15:06:58]NVStorageSaveData ofd_packets/00069864 [15:06:58]File name is /storage/ofd_packets/00069864 [15:06:58]Write 298 bytes [15:06:58]NVStorageSaveData done [15:06:58]OFDSenderStorePacket done [15:06:58]KKMCreateOFDPacket done [15:06:58]NVStorageSaveData kkm_last_timestamp [15:06:58]File name is /storage/kkm_last_timestamp [15:06:58]Write 4 bytes [15:06:58]NVStorageSaveData done [15:06:58]ExternCall_PrintAddStr [15:06:58]wPrintStart [15:06:58]Write to MH i2c: 01 00 00 7B 4C C7 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 7B 4C 00 00 00 00 00 FF 0F DC [15:06:58]RasterBufferAndPrint [15:06:58]line Счет N : (1)2885617 [15:06:58]line ИНН: 02508201610067 [15:06:58]line Контрольно-Кассовый Чек [15:06:58]line ПРОДАЖА [15:06:58]line ТРК (МРК, ГНК) : 51 [15:06:58]line Товар: 2710194210 [15:06:58]line ДТ-К-5 [15:06:58]line 13.130 * 76.20 [15:06:58]line = 1000.51 [15:06:58]line НДС 12% НСП 1% [15:06:58]line > о реализуемом товаре [15:06:58]line ОКРУГЛЕНИЕ: -0.51 [15:06:58]line ИТОГО: 1000.00 [15:06:58]line Внесено: 1000.00 [15:06:58]line СДАЧА: 0.00 [15:06:58]line НСП 1% : 8.85 [15:06:58]line НДС 12% : 106.25 [15:06:58]line Наличными: 1000.00 [15:06:58]line Безнал.: 0.00 [15:06:58]line Место: АЗС № 85 "Партнер Нефть" [15:06:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:06:58]line СНО: Общий режим [15:06:58]line Чек 254 21.10.2024 15:07 [15:06:58]line Смена: 194 ФФД: 1.0 [15:06:58]line ЗНМ: 0300000167 [15:06:58]line РНМ: 0000000000156251 [15:06:58]line Версия ККМ: v1.0 [15:06:58]line ФМ: 0000000000963346 [15:06:58]line ФД: 69864 [15:06:58]line ФПД: 124555938547549 [15:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69864&fm=124555938547549&tin=02508201610067®Number=0000000000156251&sum=100000 [15:06:58]OFD Sender: Processing packet 69864 [packets to send 18, broken 17] [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00069864 [15:06:58]OFD Sender: To server: pG, [15:06:58]CommunicateWithHost lk.salyk.kg:30040 [15:06:58]ConnectInit lk.salyk.kg [15:06:58]written 0, free lines is 4095 [15:06:59]Write to MH i2c: 01 00 00 A6 4C F2 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 A6 4C 00 00 00 00 00 E3 0C E8 [15:06:59]RasterBufferAndPrint [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]written 0, free lines is 3305 [15:06:59]MH_Cut [15:06:59]Write to MH i2c: D1 01 00 AD 4C 01 CB [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 01 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 01 00 AD 4C 00 CA [15:06:59]Write to MH i2c: 01 00 00 AE 4C FA [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]*** Cut start [15:06:59]*** Partial cut [15:06:59]*** CUTSNS_PIN = 1 [15:06:59]*** CUTSNS_PIN = 0 [15:07:00]*** Brake cut motor [15:07:00]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]*** Stop cut motor [15:07:00]*** Cut end [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 AE 4C 00 00 00 00 00 FF 0F 0F [15:07:00]process_action close_receipt done [15:07:00]requested_data is exist [15:07:00]produce_requested_data [15:07:00]requested_item fm.sn is exist - process it [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 11 00 00 [15:07:00]Write to MH i2c: E2 08 00 AF 4C 80 11 00 00 00 00 00 00 75 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 AF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [15:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:07:00]wFMCommunicate OK [15:07:00]requested_item fd.num is exist - process it [15:07:00]SAM_PROTO_GetFieldsCounters [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 00 00 [15:07:00]Write to MH i2c: E2 08 00 B0 4C 80 13 00 00 00 00 00 00 78 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 B0 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetFieldsCounters done [15:07:00]requested_item shift.num is exist - process it [15:07:00]requested_item shift.opened is exist - process it [15:07:00]req_shift_opened [15:07:00]FM_GetShiftState [15:07:00]SAM_PROTO_GetShiftState [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 01 00 [15:07:00]Write to MH i2c: E2 08 00 B1 4C 80 13 01 00 00 00 00 00 7A [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 B1 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A6 [15:07:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetShiftState done [15:07:00]FM_GetShiftState done [15:07:00]req_shift_opened done [15:07:00]requested_item shift.open_date is exist - process it [15:07:00]req_shift_open_date [15:07:00]req_shift_open_date done [15:07:00]produce_requested_data done [15:07:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69864,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:07:00]process_action_free close_receipt [15:07:00]json_value_free [15:07:00]json_value_free done [15:07:00]process_json_proto returns [15:07:00]Send response to host [15:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69864,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:07:00]free response buf [15:07:00]execute_script done [15:07:00]execute_script returns [15:07:00]free content buf [15:07:00]Sock 9.Close socket [15:07:00]Sock 9.Thread stoped [15:09:10]ConnectInit Can't connect to host [15:09:10]CommunicateWithHost connect error [15:09:10]CommunicateWithHost err = -1 [15:09:10]OFD Sender: Server communicate error [15:09:15]OFD Sender: Processing packet 69864 [packets to send 18, broken 17] [15:09:15]ProducePacketName [15:09:15]name=ofd_packets/00069864 [15:09:15]OFD Sender: To server: pG, [15:09:15]CommunicateWithHost lk.salyk.kg:30040 [15:09:15]ConnectInit lk.salyk.kg [15:09:15]Connected sock=9 [15:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E4 62 04 01 15 40 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 32 31 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 FE 00 00 00 F4 03 04 00 15 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 10 01 00 35 04 06 00 71 48 70 78 C7 5D 5C 14 B1 59 D8 BB 69 EE [15:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8F 1D 47 00 56 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 10 01 00 F4 03 04 00 40 18 16 67 B6 04 01 00 00 34 44 AB 0E 22 8F F4 A9 [15:09:15]CommunicateWithHost err = 0 [15:09:15]CheckOFDResponse [15:09:15]1017 (14) - 77093643461234 [15:09:15]1041 (16) - 0000000000963346 [15:09:15]1040 (4) - 69864 [15:09:15]1012 (4) - 21.10.2024 09:00 [15:09:15]1206 (1) - 0 [15:09:15]OFD Sender: Remove packet 69864 [15:09:15]ProducePacketName [15:09:15]name=ofd_packets/00069864 [15:09:15]NVStorageDeleteData [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:02]accept exits with 8 [15:10:02]New connection [15:10:02]New thread 3067313508 created [15:10:02]Thread 3067456868 joined [15:10:02]Waiting for new connection... [15:10:02] Sock 8.Parse request [15:10:02]Sock 8.Check first char [15:10:02]Sock 8.First char is OK [15:10:02]request: POST /json_proto HTTP/1.0 [15:10:02]Method: POST [15:10:02]URL: /json_proto [15:10:02]Method is POST - this is cgi request [15:10:02]url: /json_proto [15:10:02]query_string will be loaded in cgi processing [15:10:02]execute_cgi json_proto POST (null) [15:10:02]execute_cgi path=json_proto method=POST [15:10:02]POST find Content-Length [15:10:02]Host: 172.17.50.3:8080 [15:10:02]Content-Length: 754 [15:10:02]Content-Type: application/json [15:10:02] [15:10:02]POST finish read [15:10:02]Found Content-Length = 754 [15:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885618", "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" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]execute_script... [15:10: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)2885618", "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" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]POST & json_proto [15:10:02]process_json_proto [15:10:02]json parsed OK: [15:10:02]protocol is kg_v1.0 [15:10:02]action value=close_receipt [15:10:02]process_action close_receipt [15:10:02]cmd_close_receipt [15:10:02]MH_GetDate [15:10:02]Write to MH i2c: F0 00 00 B2 4C ED [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 B2 4C 00 CE 6E 16 67 6B 98 1E 66 36 [15:10:02]GetLastDocTimeStamp 1729523221 [15:10:02]current date 1729523406 [15:10:02]FM_GetShiftState [15:10:02]SAM_PROTO_GetShiftState [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 13 01 00 [15:10:02]Write to MH i2c: E2 08 00 B3 4C 80 13 01 00 00 00 00 00 7C [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 B3 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A8 [15:10:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_GetShiftState done [15:10:02]FM_GetShiftState done [15:10:02]opened in 1729469703 [15:10:02]opened+sec_in_day 1729556103 [15:10:02]quantity*price = 0 [15:10:02]sum+1 = 1 [15:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 255 21.10.2024 15:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69865 ФПД: 278125020400903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69865&fm=278125020400903&tin=02508201610067®Number=0000000000156251&sum=0 [15:10:03]StoreToDocumentArchive [15:10:03]shift 194 fd 69865 [15:10:03]save to /storage/0194/doc_00069865 [15:10:03]save last doc name /storage/0194/doc_00069865 to /storage/kkm_last_doc_name [15:10:03]save OK [15:10:03]Clear old archive folders... [15:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:03]tlvbuf is B6F55640 [15:10:03]SAM_PROTO_ClearQueue [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 09 00 00 [15:10:03]Write to MH i2c: E2 08 00 C0 4C 80 09 00 00 00 00 00 00 7E [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 C0 4C 00 90 00 80 [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_ClearQueue done [15:10:03]KKMCreateOFDPacket [15:10:03]OFDProtocolAddRootSTLVToBuf [15:10:03]FM_MakeSignedData [15:10:03]FM_MakeSignedData [15:10:03]SAM_PROTO_SignData [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 01 02 [15:10:03]Write to MH i2c: E2 08 00 C1 4C 80 0D 01 02 00 00 00 00 86 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 C1 4C 00 90 00 81 [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]wFMCommunicate request_size=255 [15:10:03]MH_SAM_APDU [15:10: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CE 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 10 01 00 35 04 06 00 FC [15:10:03]Write to MH i2c: E2 02 01 C2 4C 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CE 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 10 01 00 35 04 06 00 FC 00 00 95 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 C2 4C 00 90 00 82 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=10 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 02 02 05 F4 07 0B 4D 07 [15:10:04]Write to MH i2c: E2 0D 00 C3 4C 80 0D 02 02 05 00 F4 07 0B 4D 07 00 00 ED [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 03 00 C3 4C 00 90 00 83 [15:10:04]RAPDU: 90 00 [15:10:04]wFMCommunicate OK [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 0D 03 02 [15:10:04]Write to MH i2c: E2 08 00 C4 4C 80 0D 03 02 00 00 00 00 8B [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 0B 00 C4 4C 00 03 69 14 64 B8 C7 83 8E 90 00 00 [15:10:04]RAPDU: 03 69 14 64 B8 C7 83 8E 90 00 [15:10:04]wFMCommunicate OK [15:10:04]SAM_PROTO_SignData done [15:10:04]FM_MakeSignedData done [15:10:04]CreateOFDProtocolMessage [15:10:04]wFMCommunicate request_size=4 [15:10:04]MH_SAM_APDU [15:10:04]CAPDU: 80 11 00 00 [15:10:04]Write to MH i2c: E2 08 00 C5 4C 80 11 00 00 00 00 00 00 8B [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:04]Read from MH i2c: E2 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 17 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: E2 17 00 C5 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [15:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:10:04]wFMCommunicate OK [15:10:04]CreateOFDProtocolMessage done [15:10:04]OFDSenderStorePacket 69865 [15:10:04]StoreOFDPacket docnum=69865 [15:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7B 4A 07 01 E0 BC 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CE 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 10 01 00 35 04 06 00 FC F4 07 0B 4D 07 03 69 14 64 B8 C7 83 8E [15:10:04]CheckFolder [15:10:04]dirname=/storage/ofd_packets [15:10:04]CheckFolder done [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00069865 [15:10:04]NVStorageSaveData ofd_packets/00069865 [15:10:04]File name is /storage/ofd_packets/00069865 [15:10:04]Write 301 bytes [15:10:04]NVStorageSaveData done [15:10:04]OFDSenderStorePacket done [15:10:04]KKMCreateOFDPacket done [15:10:04]NVStorageSaveData kkm_last_timestamp [15:10:04]File name is /storage/kkm_last_timestamp [15:10:04]Write 4 bytes [15:10:04]NVStorageSaveData done [15:10:04]ExternCall_PrintAddStr [15:10:04]wPrintStart [15:10:04]Write to MH i2c: 01 00 00 C6 4C 12 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 C6 4C 00 00 00 00 00 FF 0F 27 [15:10:04]RasterBufferAndPrint [15:10:04]line Счет N : (1)2885618 [15:10:04]line ИНН: 02508201610067 [15:10:04]line Контрольно-Кассовый Чек [15:10:04]line ПРОДАЖА [15:10:04]line ТРК (МРК, ГНК) : 32 [15:10:04]line Товар: 2710124130 [15:10:04]line Аи-92-К-5 [15:10:04]line 5.000 * 0.00 [15:10:04]line = 0.00 [15:10:04]line НДС 12% НСП 1% [15:10:04]line > о реализуемом товаре [15:10:04]line ИТОГО: 0.00 [15:10:04]line НСП 1% : 0.00 [15:10:04]line НДС 12% : 0.00 [15:10:04]line Наличными: 0.00 [15:10:04]line Безнал.: 0.00 [15:10:04]line Место: АЗС № 85 "Партнер Нефть" [15:10:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:10:04]line СНО: Общий режим [15:10:04]line Чек 255 21.10.2024 15:10 [15:10:04]line Смена: 194 ФФД: 1.0 [15:10:04]line ЗНМ: 0300000167 [15:10:04]line РНМ: 0000000000156251 [15:10:04]line Версия ККМ: v1.0 [15:10:04]line Талоны: ТК ГПНА Online [15:10:04]line 30100970 [15:10:04]line ФМ: 0000000000963346 [15:10:04]line ФД: 69865 [15:10:04]line ФПД: 278125020400903 [15:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69865&fm=278125020400903&tin=02508201610067®Number=0000000000156251&sum=0 [15:10:04]OFD Sender: Processing packet 69865 [packets to send 18, broken 17] [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00069865 [15:10:04]OFD Sender: To server: pG, [15:10:04]CommunicateWithHost lk.salyk.kg:30040 [15:10:04]ConnectInit lk.salyk.kg [15:10:04]written 0, free lines is 4095 [15:10:04]Connected sock=10 [15:10:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7B 4A 07 01 E0 BC 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 CE 6E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 10 01 00 35 04 06 00 FC F4 07 0B 4D 07 03 69 14 64 B8 C7 83 8E [15:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E1 C1 47 00 11 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 10 01 00 F4 03 04 00 72 18 16 67 B6 04 01 00 00 E9 F7 99 3F F3 0E 5A B4 [15:10:04]CommunicateWithHost err = 0 [15:10:04]CheckOFDResponse [15:10:04]1017 (14) - 77093643461234 [15:10:04]1041 (16) - 0000000000963346 [15:10:04]1040 (4) - 69865 [15:10:04]1012 (4) - 21.10.2024 09:01 [15:10:04]1206 (1) - 0 [15:10:04]OFD Sender: Remove packet 69865 [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00069865 [15:10:04]NVStorageDeleteData [15:10:05]Write to MH i2c: 01 00 00 F0 4C 3C [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 F0 4C 00 00 00 00 00 E9 0C 38 [15:10:05]RasterBufferAndPrint [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]line [15:10:05]written 0, free lines is 3312 [15:10:05]MH_Cut [15:10:05]Write to MH i2c: D1 01 00 F7 4C 01 15 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 01 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: D1 01 00 F7 4C 00 14 [15:10:05]Write to MH i2c: 01 00 00 F8 4C 44 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]OFD Sender: No OFD packet to send [15:10:05]*** Cut start [15:10:05]*** Partial cut [15:10:05]*** CUTSNS_PIN = 1 [15:10:05]*** CUTSNS_PIN = 0 [15:10:06]*** Brake cut motor [15:10:06]Read from MH i2c: 01 [15:10:06]MH_I2C_Read... [15:10:06]*** Stop cut motor [15:10:06]Read from MH i2c: *** Cut end [15:10:06]01 07 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: 01 07 00 F8 4C 00 00 00 00 00 FF 0F 59 [15:10:06]process_action close_receipt done [15:10:06]requested_data is exist [15:10:06]produce_requested_data [15:10:06]requested_item fm.sn is exist - process it [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 11 00 00 [15:10:06]Write to MH i2c: E2 08 00 F9 4C 80 11 00 00 00 00 00 00 BF [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 17 00 F9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [15:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:10:06]wFMCommunicate OK [15:10:06]requested_item fd.num is exist - process it [15:10:06]SAM_PROTO_GetFieldsCounters [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 00 00 [15:10:06]Write to MH i2c: E2 08 00 FA 4C 80 13 00 00 00 00 00 00 C2 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 62 00 FA 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetFieldsCounters done [15:10:06]requested_item shift.num is exist - process it [15:10:06]requested_item shift.opened is exist - process it [15:10:06]req_shift_opened [15:10:06]FM_GetShiftState [15:10:06]SAM_PROTO_GetShiftState [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 13 01 00 [15:10:06]Write to MH i2c: E2 08 00 FB 4C 80 13 01 00 00 00 00 00 C4 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 0E 00 FB 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F0 [15:10:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_GetShiftState done [15:10:06]FM_GetShiftState done [15:10:06]req_shift_opened done [15:10:06]requested_item shift.open_date is exist - process it [15:10:06]req_shift_open_date [15:10:06]req_shift_open_date done [15:10:06]produce_requested_data done [15:10:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69865,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:10:06]process_action_free close_receipt [15:10:06]json_value_free [15:10:06]json_value_free done [15:10:06]process_json_proto returns [15:10:06]Send response to host [15:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69865,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:10:06]free response buf [15:10:06]execute_script done [15:10:06]execute_script returns [15:10:06]free content buf [15:10:06]Sock 8.Close socket [15:10:06]Sock 8.Thread stoped [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:42]accept exits with 9 [15:16:42]New connection [15:16:42]New thread 3067456868 created [15:16:42]Thread 3067313508 joined [15:16:42]Waiting for new connection... [15:16:42] Sock 9.Parse request [15:16:42]Sock 9.Check first char [15:16:42]Sock 9.First char is OK [15:16:42]request: POST /json_proto HTTP/1.0 [15:16:42]Method: POST [15:16:42]URL: /json_proto [15:16:42]Method is POST - this is cgi request [15:16:42]url: /json_proto [15:16:42]query_string will be loaded in cgi processing [15:16:42]execute_cgi json_proto POST (null) [15:16:42]execute_cgi path=json_proto method=POST [15:16:42]POST find Content-Length [15:16:42]Host: 172.17.50.3:8080 [15:16:42]Content-Length: 752 [15:16:42]Content-Type: application/json [15:16:42] [15:16:42]POST finish read [15:16:42]Found Content-Length = 752 [15:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:42]execute_script... [15:16:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:42]POST & json_proto [15:16:42]process_json_proto [15:16:42]json parsed OK: [15:16:42]protocol is kg_v1.0 [15:16:42]action value=close_receipt [15:16:42]process_action close_receipt [15:16:42]cmd_close_receipt [15:16:42]MH_GetDate [15:16:42]Write to MH i2c: F0 00 00 FC 4C 37 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 09 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: F0 09 00 FC 4C 00 5E 70 16 67 6B 98 1E 66 12 [15:16:42]GetLastDocTimeStamp 1729523406 [15:16:42]current date 1729523806 [15:16:42]FM_GetShiftState [15:16:42]SAM_PROTO_GetShiftState [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 13 01 00 [15:16:42]Write to MH i2c: E2 08 00 FD 4C 80 13 01 00 00 00 00 00 C6 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 FD 4C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F2 [15:16:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_GetShiftState done [15:16:42]FM_GetShiftState done [15:16:42]opened in 1729469703 [15:16:42]opened+sec_in_day 1729556103 [15:16:42]quantity*price = 0 [15:16:42]sum+1 = 1 [15:16:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 256 21.10.2024 15:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30077137 ФМ: 0000000000963346 ФД: 69866 ФПД: 238528937121258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69866&fm=238528937121258&tin=02508201610067®Number=0000000000156251&sum=0 [15:16:43]StoreToDocumentArchive [15:16:43]shift 194 fd 69866 [15:16:43]save to /storage/0194/doc_00069866 [15:16:43]save last doc name /storage/0194/doc_00069866 to /storage/kkm_last_doc_name [15:16:43]save OK [15:16:43]Clear old archive folders... [15:16:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:43]tlvbuf is B6E23010 [15:16:43]SAM_PROTO_ClearQueue [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 09 00 00 [15:16:43]Write to MH i2c: E2 08 00 0A 4D 80 09 00 00 00 00 00 00 C9 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 0A 4D 00 90 00 CB [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]SAM_PROTO_ClearQueue done [15:16:43]KKMCreateOFDPacket [15:16:43]OFDProtocolAddRootSTLVToBuf [15:16:43]FM_MakeSignedData [15:16:43]FM_MakeSignedData [15:16:43]SAM_PROTO_SignData [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 0D 01 02 [15:16:43]Write to MH i2c: E2 08 00 0B 4D 80 0D 01 02 00 00 00 00 D1 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 0B 4D 00 90 00 CC [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]wFMCommunicate request_size=255 [15:16:43]MH_SAM_APDU [15:16: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 32 31 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 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 00 01 00 00 F4 03 04 00 5E 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 10 01 00 35 04 06 00 D8 F0 D8 90 [15:16:43]Write to MH i2c: E2 02 01 0C 4D 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 32 31 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 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 00 01 00 00 F4 03 04 00 5E 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 10 01 00 35 04 06 00 D8 F0 D8 90 00 00 51 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 0C 4D 00 90 00 CD [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]wFMCommunicate request_size=7 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 0D 02 02 02 D5 EA [15:16:43]Write to MH i2c: E2 0A 00 0D 4D 80 0D 02 02 02 00 D5 EA 00 00 97 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 03 00 0D 4D 00 90 00 CE [15:16:43]RAPDU: 90 00 [15:16:43]wFMCommunicate OK [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 0D 03 02 [15:16:43]Write to MH i2c: E2 08 00 0E 4D 80 0D 03 02 00 00 00 00 D6 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:43]Read from MH i2c: E2 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 0B 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: E2 0B 00 0E 4D 00 30 0D 99 93 E3 CB F6 F5 90 00 D9 [15:16:43]RAPDU: 30 0D 99 93 E3 CB F6 F5 90 00 [15:16:43]wFMCommunicate OK [15:16:43]SAM_PROTO_SignData done [15:16:43]FM_MakeSignedData done [15:16:43]CreateOFDProtocolMessage [15:16:43]wFMCommunicate request_size=4 [15:16:43]MH_SAM_APDU [15:16:43]CAPDU: 80 11 00 00 [15:16:43]Write to MH i2c: E2 08 00 0F 4D 80 11 00 00 00 00 00 00 D6 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:44]Read from MH i2c: E2 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 17 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: E2 17 00 0F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [15:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:16:44]wFMCommunicate OK [15:16:44]CreateOFDProtocolMessage done [15:16:44]OFDSenderStorePacket 69866 [15:16:44]StoreOFDPacket docnum=69866 [15:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 41 F2 04 01 16 18 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 32 31 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 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 00 01 00 00 F4 03 04 00 5E 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 10 01 00 35 04 06 00 D8 F0 D8 90 D5 EA 30 0D 99 93 E3 CB F6 F5 [15:16:44]CheckFolder [15:16:44]dirname=/storage/ofd_packets [15:16:44]CheckFolder done [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00069866 [15:16:44]NVStorageSaveData ofd_packets/00069866 [15:16:44]File name is /storage/ofd_packets/00069866 [15:16:44]Write 298 bytes [15:16:44]NVStorageSaveData done [15:16:44]OFDSenderStorePacket done [15:16:44]KKMCreateOFDPacket done [15:16:44]NVStorageSaveData kkm_last_timestamp [15:16:44]File name is /storage/kkm_last_timestamp [15:16:44]Write 4 bytes [15:16:44]NVStorageSaveData done [15:16:44]ExternCall_PrintAddStr [15:16:44]wPrintStart [15:16:44]Write to MH i2c: 01 00 00 10 4D 5D [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 10 4D 00 00 00 00 00 FF 0F 72 [15:16:44]RasterBufferAndPrint [15:16:44]line Счет N : (1)2885619 [15:16:44]line ИНН: 02508201610067 [15:16:44]line Контрольно-Кассовый Чек [15:16:44]line ПРОДАЖА [15:16:44]line ТРК (МРК, ГНК) : 61 [15:16:44]line Товар: 2710194210 [15:16:44]line ДТ-К-5 [15:16:44]line 26.250 * 0.00 [15:16:44]line = 0.00 [15:16:44]line НДС 12% НСП 1% [15:16:44]line > о реализуемом товаре [15:16:44]line ИТОГО: 0.00 [15:16:44]line НСП 1% : 0.00 [15:16:44]line НДС 12% : 0.00 [15:16:44]line Наличными: 0.00 [15:16:44]line Безнал.: 0.00 [15:16:44]line Место: АЗС № 85 "Партнер Нефть" [15:16:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:16:44]line СНО: Общий режим [15:16:44]line Чек 256 21.10.2024 15:16 [15:16:44]line Смена: 194 ФФД: 1.0 [15:16:44]line ЗНМ: 0300000167 [15:16:44]line РНМ: 0000000000156251 [15:16:44]line Версия ККМ: v1.0 [15:16:44]line Талоны: ТК ГПНА Online [15:16:44]line 30077137 [15:16:44]line ФМ: 0000000000963346 [15:16:44]line ФД: 69866 [15:16:44]line ФПД: 238528937121258 [15:16:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69866&fm=238528937121258&tin=02508201610067®Number=0000000000156251&sum=0 [15:16:44]OFD Sender: Processing packet 69866 [packets to send 18, broken 17] [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00069866 [15:16:44]OFD Sender: To server: pG, [15:16:44]CommunicateWithHost lk.salyk.kg:30040 [15:16:44]ConnectInit lk.salyk.kg [15:16:44]written 0, free lines is 4095 [15:16:44]Connected sock=10 [15:16:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 41 F2 04 01 16 18 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 32 31 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 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 00 01 00 00 F4 03 04 00 5E 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 10 01 00 35 04 06 00 D8 F0 D8 90 D5 EA 30 0D 99 93 E3 CB F6 F5 [15:16:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 2F 47 00 86 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 39 36 33 33 34 36 10 04 04 00 EA 10 01 00 F4 03 04 00 02 1A 16 67 B6 04 01 00 00 EA 75 BD BE C2 8D 90 50 [15:16:44]CommunicateWithHost err = 0 [15:16:44]CheckOFDResponse [15:16:44]1017 (14) - 77093643461234 [15:16:44]1041 (16) - 0000000000963346 [15:16:44]1040 (4) - 69866 [15:16:44]1012 (4) - 21.10.2024 09:08 [15:16:44]1206 (1) - 0 [15:16:44]OFD Sender: Remove packet 69866 [15:16:44]ProducePacketName [15:16:44]name=ofd_packets/00069866 [15:16:44]NVStorageDeleteData [15:16:44]Write to MH i2c: 01 00 00 3A 4D 87 [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: 01 07 00 3A 4D 00 00 00 00 00 FF 0C 99 [15:16:44]RasterBufferAndPrint [15:16:44]line [15:16:44]line [15:16:44]line [15:16:44]line [15:16:44]line [15:16:44]written 0, free lines is 3336 [15:16:44]MH_Cut [15:16:44]Write to MH i2c: D1 01 00 41 4D 01 60 [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: D1 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: D1 01 00 [15:16:44]MH_I2C_Read... [15:16:44]Read from MH i2c: D1 01 00 41 4D 00 5F [15:16:44]Write to MH i2c: 01 00 00 42 4D 8F [15:16:44]Write i2c OK [15:16:44]MH_I2C_Read... [15:16:45]OFD Sender: No OFD packet to send [15:16:45]*** Cut start [15:16:45]*** Partial cut [15:16:45]*** CUTSNS_PIN = 1 [15:16:45]*** CUTSNS_PIN = 0 [15:16:45]*** Brake cut motor [15:16:46]Read from MH i2c: 01 [15:16:46]MH_I2C_Read... [15:16:46]*** Stop cut motor [15:16:46]*** Cut end [15:16:46]Read from MH i2c: 01 07 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: 01 07 00 42 4D 00 00 00 00 00 FF 0F A4 [15:16:46]process_action close_receipt done [15:16:46]requested_data is exist [15:16:46]produce_requested_data [15:16:46]requested_item fm.sn is exist - process it [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 11 00 00 [15:16:46]Write to MH i2c: E2 08 00 43 4D 80 11 00 00 00 00 00 00 0A [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:46]Read from MH i2c: E2 17 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 17 00 43 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [15:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:16:46]wFMCommunicate OK [15:16:46]requested_item fd.num is exist - process it [15:16:46]SAM_PROTO_GetFieldsCounters [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 13 00 00 [15:16:46]Write to MH i2c: E2 08 00 44 4D 80 13 00 00 00 00 00 00 0D [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 62 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 62 00 44 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_GetFieldsCounters done [15:16:46]requested_item shift.num is exist - process it [15:16:46]requested_item shift.opened is exist - process it [15:16:46]req_shift_opened [15:16:46]FM_GetShiftState [15:16:46]SAM_PROTO_GetShiftState [15:16:46]wFMCommunicate request_size=4 [15:16:46]MH_SAM_APDU [15:16:46]CAPDU: 80 13 01 00 [15:16:46]Write to MH i2c: E2 08 00 45 4D 80 13 01 00 00 00 00 00 0F [15:16:46]Write i2c OK [15:16:46]MH_I2C_Read... [15:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:46]Read from MH i2c: E2 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0E 00 [15:16:46]MH_I2C_Read... [15:16:46]Read from MH i2c: E2 0E 00 45 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3B [15:16:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:16:46]wFMCommunicate OK [15:16:46]SAM_PROTO_GetShiftState done [15:16:46]FM_GetShiftState done [15:16:46]req_shift_opened done [15:16:46]requested_item shift.open_date is exist - process it [15:16:46]req_shift_open_date [15:16:46]req_shift_open_date done [15:16:46]produce_requested_data done [15:16:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69866,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:16:46]process_action_free close_receipt [15:16:46]json_value_free [15:16:46]json_value_free done [15:16:46]process_json_proto returns [15:16:46]Send response to host [15:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69866,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:16:46]free response buf [15:16:46]execute_script done [15:16:46]execute_script returns [15:16:46]free content buf [15:16:46]Sock 9.Close socket [15:16:46]Sock 9.Thread stoped [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:19]accept exits with 8 [15:18:19]New connection [15:18:19]New thread 3067313508 created [15:18:19]Thread 3067456868 joined [15:18:19]Waiting for new connection... [15:18:19] Sock 8.Parse request [15:18:19]Sock 8.Check first char [15:18:19]Sock 8.First char is OK [15:18:19]request: POST /json_proto HTTP/1.0 [15:18:19]Method: POST [15:18:19]URL: /json_proto [15:18:19]Method is POST - this is cgi request [15:18:19]url: /json_proto [15:18:19]query_string will be loaded in cgi processing [15:18:19]execute_cgi json_proto POST (null) [15:18:19]execute_cgi path=json_proto method=POST [15:18:19]POST find Content-Length [15:18:19]Host: 172.17.50.3:8080 [15:18:19]Content-Length: 683 [15:18:19]Content-Type: application/json [15:18:19] [15:18:19]POST finish read [15:18:19]Found Content-Length = 683 [15:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [15:18:19]execute_script... [15:18:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "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" ] } } [15:18:19]POST & json_proto [15:18:19]process_json_proto [15:18:19]json parsed OK: [15:18:19]protocol is kg_v1.0 [15:18:19]action value=close_receipt [15:18:19]process_action close_receipt [15:18:19]cmd_close_receipt [15:18:19]MH_GetDate [15:18:19]Write to MH i2c: F0 00 00 46 4D 82 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: F0 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: F0 09 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: F0 09 00 46 4D 00 BF 70 16 67 6B 98 1E 66 BE [15:18:19]GetLastDocTimeStamp 1729523806 [15:18:19]current date 1729523903 [15:18:19]FM_GetShiftState [15:18:19]SAM_PROTO_GetShiftState [15:18:19]wFMCommunicate request_size=4 [15:18:19]MH_SAM_APDU [15:18:19]CAPDU: 80 13 01 00 [15:18:19]Write to MH i2c: E2 08 00 47 4D 80 13 01 00 00 00 00 00 11 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:19]Read from MH i2c: E2 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: E2 0E 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: E2 0E 00 47 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3D [15:18:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:18:19]wFMCommunicate OK [15:18:19]SAM_PROTO_GetShiftState done [15:18:19]FM_GetShiftState done [15:18:19]opened in 1729469703 [15:18:19]opened+sec_in_day 1729556103 [15:18:19]quantity*price = 300064 [15:18:19]sum+1 = 300066 [15:18:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 257 21.10.2024 15:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69867 ФПД: 199397035501942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69867&fm=199397035501942&tin=02508201610067®Number=0000000000156251&sum=300000 [15:18:20]StoreToDocumentArchive [15:18:20]shift 194 fd 69867 [15:18:20]save to /storage/0194/doc_00069867 [15:18:20]save last doc name /storage/0194/doc_00069867 to /storage/kkm_last_doc_name [15:18:20]save OK [15:18:20]Clear old archive folders... [15:18:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:20]tlvbuf is 00CA0860 [15:18:20]SAM_PROTO_ClearQueue [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 09 00 00 [15:18:20]Write to MH i2c: E2 08 00 54 4D 80 09 00 00 00 00 00 00 13 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 03 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [15:18:20]RAPDU: 90 00 [15:18:20]wFMCommunicate OK [15:18:20]SAM_PROTO_ClearQueue done [15:18:20]KKMCreateOFDPacket [15:18:20]OFDProtocolAddRootSTLVToBuf [15:18:20]FM_MakeSignedData [15:18:20]FM_MakeSignedData [15:18:20]SAM_PROTO_SignData [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 0D 01 02 [15:18:20]Write to MH i2c: E2 08 00 55 4D 80 0D 01 02 00 00 00 00 1B [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 03 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 03 00 55 4D 00 90 00 16 [15:18:20]RAPDU: 90 00 [15:18:20]wFMCommunicate OK [15:18:20]wFMCommunicate request_size=255 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 01 01 00 00 F4 03 04 00 BF 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 10 01 00 35 04 06 00 B5 [15:18:20]Write to MH i2c: E2 02 01 56 4D 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 01 01 00 00 F4 03 04 00 BF 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 10 01 00 35 04 06 00 B5 00 00 F6 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 56 4D 00 90 00 17 [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]wFMCommunicate request_size=10 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 0D 02 02 05 59 BD 78 69 76 [15:18:21]Write to MH i2c: E2 0D 00 57 4D 80 0D 02 02 05 00 59 BD 78 69 76 00 00 95 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 57 4D 00 90 00 18 [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 0D 03 02 [15:18:21]Write to MH i2c: E2 08 00 58 4D 80 0D 03 02 00 00 00 00 20 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0B 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0B 00 58 4D 00 0E 3D 58 DC 5A 98 E7 D6 90 00 4F [15:18:21]RAPDU: 0E 3D 58 DC 5A 98 E7 D6 90 00 [15:18:21]wFMCommunicate OK [15:18:21]SAM_PROTO_SignData done [15:18:21]FM_MakeSignedData done [15:18:21]CreateOFDProtocolMessage [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 11 00 00 [15:18:21]Write to MH i2c: E2 08 00 59 4D 80 11 00 00 00 00 00 00 20 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 17 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 17 00 59 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [15:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:18:21]wFMCommunicate OK [15:18:21]CreateOFDProtocolMessage done [15:18:21]OFDSenderStorePacket 69867 [15:18:21]StoreOFDPacket docnum=69867 [15:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FB 27 07 01 73 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 01 01 00 00 F4 03 04 00 BF 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 10 01 00 35 04 06 00 B5 59 BD 78 69 76 0E 3D 58 DC 5A 98 E7 D6 [15:18:21]CheckFolder [15:18:21]dirname=/storage/ofd_packets [15:18:21]CheckFolder done [15:18:21]ProducePacketName [15:18:21]name=ofd_packets/00069867 [15:18:21]NVStorageSaveData ofd_packets/00069867 [15:18:21]File name is /storage/ofd_packets/00069867 [15:18:21]Write 301 bytes [15:18:21]NVStorageSaveData done [15:18:21]OFDSenderStorePacket done [15:18:21]KKMCreateOFDPacket done [15:18:21]NVStorageSaveData kkm_last_timestamp [15:18:21]File name is /storage/kkm_last_timestamp [15:18:21]Write 4 bytes [15:18:21]NVStorageSaveData done [15:18:21]ExternCall_PrintAddStr [15:18:21]wPrintStart [15:18:21]Write to MH i2c: 01 00 00 5A 4D A7 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 07 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 07 00 5A 4D 00 00 00 00 00 FF 0F BC [15:18:21]RasterBufferAndPrint [15:18:21]line Счет N : (1)2885620 [15:18:21]line ИНН: 02508201610067 [15:18:21]line Контрольно-Кассовый Чек [15:18:21]line ПРОДАЖА [15:18:21]line ТРК (МРК, ГНК) : 13 [15:18:21]line Товар: 2710124500 [15:18:21]line Аи-95-К-5 [15:18:21]line 40.440 * 74.20 [15:18:21]line = 3000.65 [15:18:21]line НДС 12% НСП 1% [15:18:21]line > о реализуемом товаре [15:18:21]line ОКРУГЛЕНИЕ: -0.65 [15:18:21]line ИТОГО: 3000.00 [15:18:21]line Внесено: 3000.00 [15:18:21]line СДАЧА: 0.00 [15:18:21]line НСП 1% : 26.55 [15:18:21]line НДС 12% : 318.65 [15:18:21]line Наличными: 3000.00 [15:18:21]line Безнал.: 0.00 [15:18:21]line Место: АЗС № 85 "Партнер Нефть" [15:18:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:18:21]line СНО: Общий режим [15:18:21]line Чек 257 21.10.2024 15:18 [15:18:21]line Смена: 194 ФФД: 1.0 [15:18:21]line ЗНМ: 0300000167 [15:18:21]line РНМ: 0000000000156251 [15:18:21]line Версия ККМ: v1.0 [15:18:21]line ФМ: 0000000000963346 [15:18:21]line ФД: 69867 [15:18:21]line ФПД: 199397035501942 [15:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69867&fm=199397035501942&tin=02508201610067®Number=0000000000156251&sum=300000 [15:18:21]OFD Sender: Processing packet 69867 [packets to send 18, broken 17] [15:18:21]ProducePacketName [15:18:21]name=ofd_packets/00069867 [15:18:21]OFD Sender: To server: pG, [15:18:21]CommunicateWithHost lk.salyk.kg:30040 [15:18:21]ConnectInit lk.salyk.kg [15:18:21]written 0, free lines is 4095 [15:18:21]Connected sock=10 [15:18:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FB 27 07 01 73 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 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 79 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 01 01 00 00 F4 03 04 00 BF 70 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 10 01 00 35 04 06 00 B5 59 BD 78 69 76 0E 3D 58 DC 5A 98 E7 D6 [15:18:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A F6 47 00 BA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 10 01 00 F4 03 04 00 63 1A 16 67 B6 04 01 00 00 98 1E E7 04 97 0D EA 71 [15:18:21]CommunicateWithHost err = 0 [15:18:21]CheckOFDResponse [15:18:21]1017 (14) - 77093643461234 [15:18:21]1041 (16) - 0000000000963346 [15:18:21]1040 (4) - 69867 [15:18:21]1012 (4) - 21.10.2024 09:09 [15:18:21]1206 (1) - 0 [15:18:21]OFD Sender: Remove packet 69867 [15:18:21]ProducePacketName [15:18:21]name=ofd_packets/00069867 [15:18:21]NVStorageDeleteData [15:18:22]Write to MH i2c: 01 00 00 85 4D D2 [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 07 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 07 00 85 4D 00 00 00 00 00 EC 0C D1 [15:18:22]RasterBufferAndPrint [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]written 0, free lines is 3314 [15:18:22]MH_Cut [15:18:22]Write to MH i2c: D1 01 00 8C 4D 01 AB [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 01 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 01 00 8C 4D 00 AA [15:18:22]Write to MH i2c: 01 00 00 8D 4D DA [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]OFD Sender: No OFD packet to send [15:18:22]*** Cut start [15:18:22]*** Partial cut [15:18:22]*** CUTSNS_PIN = 1 [15:18:22]*** CUTSNS_PIN = 0 [15:18:23]*** Brake cut motor [15:18:23]Read from MH i2c: 01 [15:18:23]MH_I2C_Read... [15:18:23]*** Stop cut motor [15:18:23]*** Cut end [15:18:23]Read from MH i2c: 01 07 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: 01 07 00 8D 4D 00 00 00 00 00 FF 0F EF [15:18:23]process_action close_receipt done [15:18:23]requested_data is exist [15:18:23]produce_requested_data [15:18:23]requested_item fm.sn is exist - process it [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 11 00 00 [15:18:23]Write to MH i2c: E2 08 00 8E 4D 80 11 00 00 00 00 00 00 55 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 8E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [15:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:18:23]wFMCommunicate OK [15:18:23]requested_item fd.num is exist - process it [15:18:23]SAM_PROTO_GetFieldsCounters [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 13 00 00 [15:18:23]Write to MH i2c: E2 08 00 8F 4D 80 13 00 00 00 00 00 00 58 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 62 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 62 00 8F 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:23]wFMCommunicate OK [15:18:23]SAM_PROTO_GetFieldsCounters done [15:18:23]requested_item shift.num is exist - process it [15:18:23]requested_item shift.opened is exist - process it [15:18:23]req_shift_opened [15:18:23]FM_GetShiftState [15:18:23]SAM_PROTO_GetShiftState [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 13 01 00 [15:18:23]Write to MH i2c: E2 08 00 90 4D 80 13 01 00 00 00 00 00 5A [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0E 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0E 00 90 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 86 [15:18:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:18:23]wFMCommunicate OK [15:18:23]SAM_PROTO_GetShiftState done [15:18:23]FM_GetShiftState done [15:18:23]req_shift_opened done [15:18:23]requested_item shift.open_date is exist - process it [15:18:23]req_shift_open_date [15:18:23]req_shift_open_date done [15:18:23]produce_requested_data done [15:18:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69867,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:18:23]process_action_free close_receipt [15:18:23]json_value_free [15:18:23]json_value_free done [15:18:23]process_json_proto returns [15:18:23]Send response to host [15:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69867,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:18:23]free response buf [15:18:23]execute_script done [15:18:23]execute_script returns [15:18:23]free content buf [15:18:23]Sock 8.Close socket [15:18:23]Sock 8.Thread stoped [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:39]accept exits with 9 [15:20:39]New connection [15:20:39]New thread 3067456868 created [15:20:39]Thread 3067313508 joined [15:20:39]Waiting for new connection... [15:20:39] Sock 9.Parse request [15:20:39]Sock 9.Check first char [15:20:39]Sock 9.First char is OK [15:20:39]request: POST /json_proto HTTP/1.0 [15:20:39]Method: POST [15:20:39]URL: /json_proto [15:20:39]Method is POST - this is cgi request [15:20:39]url: /json_proto [15:20:39]query_string will be loaded in cgi processing [15:20:39]execute_cgi json_proto POST (null) [15:20:39]execute_cgi path=json_proto method=POST [15:20:39]POST find Content-Length [15:20:39]Host: 172.17.50.3:8080 [15:20:39]Content-Length: 978 [15:20:39]Content-Type: application/json [15:20:39] [15:20:39]POST finish read [15:20:39]Found Content-Length = 978 [15:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:39]execute_script... [15:20: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)2885622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:39]POST & json_proto [15:20:39]process_json_proto [15:20:39]json parsed OK: [15:20:39]protocol is kg_v1.0 [15:20:39]action value=close_receipt [15:20:39]process_action close_receipt [15:20:39]cmd_close_receipt [15:20:39]MH_GetDate [15:20:39]Write to MH i2c: F0 00 00 91 4D CD [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: F0 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: F0 09 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: F0 09 00 91 4D 00 4C 71 16 67 6B 98 1E 66 97 [15:20:39]GetLastDocTimeStamp 1729523903 [15:20:39]current date 1729524044 [15:20:39]FM_GetShiftState [15:20:39]SAM_PROTO_GetShiftState [15:20:39]wFMCommunicate request_size=4 [15:20:39]MH_SAM_APDU [15:20:39]CAPDU: 80 13 01 00 [15:20:39]Write to MH i2c: E2 08 00 92 4D 80 13 01 00 00 00 00 00 5C [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:39]Read from MH i2c: E2 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 0E 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 0E 00 92 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [15:20:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:20:39]wFMCommunicate OK [15:20:39]SAM_PROTO_GetShiftState done [15:20:39]FM_GetShiftState done [15:20:39]opened in 1729469703 [15:20:39]opened+sec_in_day 1729556103 [15:20:39]quantity*price = 450072 [15:20:39]sum+1 = 450073 [15:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 258 21.10.2024 15:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 59.85 сом ФМ: 0000000000963346 ФД: 69868 ФПД: 276259528056462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152044&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69868&fm=276259528056462&tin=02508201610067®Number=0000000000156251&sum=450000 [15:20:40]StoreToDocumentArchive [15:20:40]shift 194 fd 69868 [15:20:40]save to /storage/0194/doc_00069868 [15:20:40]save last doc name /storage/0194/doc_00069868 to /storage/kkm_last_doc_name [15:20:40]save OK [15:20:40]Clear old archive folders... [15:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:20:40]tlvbuf is 00D701C0 [15:20:40]SAM_PROTO_ClearQueue [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 09 00 00 [15:20:40]Write to MH i2c: E2 08 00 9F 4D 80 09 00 00 00 00 00 00 5E [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 03 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 03 00 9F 4D 00 90 00 60 [15:20:40]RAPDU: 90 00 [15:20:40]wFMCommunicate OK [15:20:40]SAM_PROTO_ClearQueue done [15:20:40]KKMCreateOFDPacket [15:20:40]OFDProtocolAddRootSTLVToBuf [15:20:40]FM_MakeSignedData [15:20:40]FM_MakeSignedData [15:20:40]SAM_PROTO_SignData [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 0D 01 02 [15:20:40]Write to MH i2c: E2 08 00 A0 4D 80 0D 01 02 00 00 00 00 66 [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 03 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 03 00 A0 4D 00 90 00 61 [15:20:40]RAPDU: 90 00 [15:20:40]wFMCommunicate OK [15:20:40]wFMCommunicate request_size=255 [15:20:40]MH_SAM_APDU [15:20:40]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4C 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 10 01 00 35 04 06 00 FB 41 AF 09 [15:20:40]Write to MH i2c: E2 02 01 A1 4D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4C 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 10 01 00 35 04 06 00 FB 41 AF 09 00 00 4A [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:41]Read from MH i2c: E2 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 03 00 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 03 00 A1 4D 00 90 00 62 [15:20:41]RAPDU: 90 00 [15:20:41]wFMCommunicate OK [15:20:41]wFMCommunicate request_size=7 [15:20:41]MH_SAM_APDU [15:20:41]CAPDU: 80 0D 02 02 02 1E 8E [15:20:41]Write to MH i2c: E2 0A 00 A2 4D 80 0D 02 02 02 00 1E 8E 00 00 19 [15:20:41]Write i2c OK [15:20:41]MH_I2C_Read... [15:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:41]Read from MH i2c: E2 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 03 00 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [15:20:41]RAPDU: 90 00 [15:20:41]wFMCommunicate OK [15:20:41]wFMCommunicate request_size=4 [15:20:41]MH_SAM_APDU [15:20:41]CAPDU: 80 0D 03 02 [15:20:41]Write to MH i2c: E2 08 00 A3 4D 80 0D 03 02 00 00 00 00 6B [15:20:41]Write i2c OK [15:20:41]MH_I2C_Read... [15:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:41]Read from MH i2c: E2 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 0B 00 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 0B 00 A3 4D 00 14 B2 36 A3 17 47 81 14 90 00 FE [15:20:41]RAPDU: 14 B2 36 A3 17 47 81 14 90 00 [15:20:41]wFMCommunicate OK [15:20:41]SAM_PROTO_SignData done [15:20:41]FM_MakeSignedData done [15:20:41]CreateOFDProtocolMessage [15:20:41]wFMCommunicate request_size=4 [15:20:41]MH_SAM_APDU [15:20:41]CAPDU: 80 11 00 00 [15:20:41]Write to MH i2c: E2 08 00 A4 4D 80 11 00 00 00 00 00 00 6B [15:20:41]Write i2c OK [15:20:41]MH_I2C_Read... [15:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:41]Read from MH i2c: E2 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 17 00 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: E2 17 00 A4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [15:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:20:41]wFMCommunicate OK [15:20:41]CreateOFDProtocolMessage done [15:20:41]OFDSenderStorePacket 69868 [15:20:41]StoreOFDPacket docnum=69868 [15:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B2 E0 04 01 1F 51 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4C 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 10 01 00 35 04 06 00 FB 41 AF 09 1E 8E 14 B2 36 A3 17 47 81 14 [15:20:41]CheckFolder [15:20:41]dirname=/storage/ofd_packets [15:20:41]CheckFolder done [15:20:41]ProducePacketName [15:20:41]name=ofd_packets/00069868 [15:20:41]NVStorageSaveData ofd_packets/00069868 [15:20:41]File name is /storage/ofd_packets/00069868 [15:20:41]Write 298 bytes [15:20:41]NVStorageSaveData done [15:20:41]OFDSenderStorePacket done [15:20:41]KKMCreateOFDPacket done [15:20:41]NVStorageSaveData kkm_last_timestamp [15:20:41]File name is /storage/kkm_last_timestamp [15:20:41]Write 4 bytes [15:20:41]NVStorageSaveData done [15:20:41]ExternCall_PrintAddStr [15:20:41]wPrintStart [15:20:41]Write to MH i2c: 01 00 00 A5 4D F2 [15:20:41]Write i2c OK [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: 01 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: 01 07 00 [15:20:41]MH_I2C_Read... [15:20:41]Read from MH i2c: 01 07 00 A5 4D 00 00 00 00 00 FF 0F 07 [15:20:41]RasterBufferAndPrint [15:20:41]line Счет N : (1)2885622 [15:20:41]line ИНН: 02508201610067 [15:20:41]line Контрольно-Кассовый Чек [15:20:41]line ПРОДАЖА [15:20:41]line ТРК (МРК, ГНК) : 61 [15:20:41]line Товар: 2710194210 [15:20:41]line ДТ-К-5 [15:20:41]line 59.850 * 75.20 [15:20:41]line = 4500.72 [15:20:41]line НДС 12% НСП 1% [15:20:41]line > о реализуемом товаре [15:20:41]line ОКРУГЛЕНИЕ: -0.72 [15:20:41]line ИТОГО: 4500.00 [15:20:41]line Внесено: 4500.00 [15:20:41]line СДАЧА: 0.00 [15:20:41]line НСП 1% : 39.83 [15:20:41]line НДС 12% : 477.95 [15:20:41]line Наличными: 4500.00 [15:20:41]line Безнал.: 0.00 [15:20:41]line Место: АЗС № 85 "Партнер Нефть" [15:20:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:20:41]line СНО: Общий режим [15:20:41]line Чек 258 21.10.2024 15:20 [15:20:41]line Смена: 194 ФФД: 1.0 [15:20:41]line ЗНМ: 0300000167 [15:20:41]line РНМ: 0000000000156251 [15:20:41]line Версия ККМ: v1.0 [15:20:41]line [15:20:41]line Дисконтная программа [15:20:41]line ДТ [15:20:41]line номер 85 [15:20:41]line сэкономлено 59.85 сом [15:20:41]line ФМ: 0000000000963346 [15:20:41]line ФД: 69868 [15:20:41]line ФПД: 276259528056462 [15:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152044&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69868&fm=276259528056462&tin=02508201610067®Number=0000000000156251&sum=450000 [15:20:41]OFD Sender: Processing packet 69868 [packets to send 18, broken 17] [15:20:41]ProducePacketName [15:20:41]name=ofd_packets/00069868 [15:20:41]OFD Sender: To server: pG, [15:20:41]CommunicateWithHost lk.salyk.kg:30040 [15:20:41]ConnectInit lk.salyk.kg [15:20:41]written 0, free lines is 4095 [15:20:41]Connected sock=10 [15:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B2 E0 04 01 1F 51 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4C 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 10 01 00 35 04 06 00 FB 41 AF 09 1E 8E 14 B2 36 A3 17 47 81 14 [15:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B A9 47 00 75 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 10 01 00 F4 03 04 00 EF 1A 16 67 B6 04 01 00 00 31 19 6A 7C F2 B9 E7 D1 [15:20:41]CommunicateWithHost err = 0 [15:20:41]CheckOFDResponse [15:20:41]1017 (14) - 77093643461234 [15:20:41]1041 (16) - 0000000000963346 [15:20:41]1040 (4) - 69868 [15:20:41]1012 (4) - 21.10.2024 09:12 [15:20:41]1206 (1) - 0 [15:20:41]OFD Sender: Remove packet 69868 [15:20:41]ProducePacketName [15:20:41]name=ofd_packets/00069868 [15:20:41]NVStorageDeleteData [15:20:42]Write to MH i2c: 01 00 00 D5 4D 22 [15:20:42]Write i2c OK [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: 01 [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: 01 07 00 [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: 01 07 00 D5 4D 00 00 00 00 00 96 0C CB [15:20:42]RasterBufferAndPrint [15:20:42]line [15:20:42]line [15:20:42]line [15:20:42]line [15:20:42]line [15:20:42]written 0, free lines is 3231 [15:20:42]MH_Cut [15:20:42]Write to MH i2c: D1 01 00 DC 4D 01 FB [15:20:42]Write i2c OK [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: D1 [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: D1 01 00 [15:20:42]MH_I2C_Read... [15:20:42]Read from MH i2c: D1 01 00 DC 4D 00 FA [15:20:42]Write to MH i2c: 01 00 00 DD 4D 2A [15:20:42]Write i2c OK [15:20:42]MH_I2C_Read... [15:20:42]OFD Sender: No OFD packet to send [15:20:42]*** Cut start [15:20:42]*** Partial cut [15:20:42]*** CUTSNS_PIN = 1 [15:20:42]*** CUTSNS_PIN = 0 [15:20:43]*** Brake cut motor [15:20:43]Read from MH i2c: 01 [15:20:43]MH_I2C_Read... [15:20:43]*** Stop cut motor [15:20:43]*** Cut end [15:20:43]Read from MH i2c: 01 07 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: 01 07 00 DD 4D 00 00 00 00 00 FF 0F 3F [15:20:43]process_action close_receipt done [15:20:43]requested_data is exist [15:20:43]produce_requested_data [15:20:43]requested_item fm.sn is exist - process it [15:20:43]wFMCommunicate request_size=4 [15:20:43]MH_SAM_APDU [15:20:43]CAPDU: 80 11 00 00 [15:20:43]Write to MH i2c: E2 08 00 DE 4D 80 11 00 00 00 00 00 00 A5 [15:20:43]Write i2c OK [15:20:43]MH_I2C_Read... [15:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:43]Read from MH i2c: E2 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 17 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 17 00 DE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [15:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:20:43]wFMCommunicate OK [15:20:43]requested_item fd.num is exist - process it [15:20:43]SAM_PROTO_GetFieldsCounters [15:20:43]wFMCommunicate request_size=4 [15:20:43]MH_SAM_APDU [15:20:43]CAPDU: 80 13 00 00 [15:20:43]Write to MH i2c: E2 08 00 DF 4D 80 13 00 00 00 00 00 00 A8 [15:20:43]Write i2c OK [15:20:43]MH_I2C_Read... [15:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:43]Read from MH i2c: E2 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 62 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 62 00 DF 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [15:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:43]wFMCommunicate OK [15:20:43]SAM_PROTO_GetFieldsCounters done [15:20:43]requested_item shift.num is exist - process it [15:20:43]requested_item shift.opened is exist - process it [15:20:43]req_shift_opened [15:20:43]FM_GetShiftState [15:20:43]SAM_PROTO_GetShiftState [15:20:43]wFMCommunicate request_size=4 [15:20:43]MH_SAM_APDU [15:20:43]CAPDU: 80 13 01 00 [15:20:43]Write to MH i2c: E2 08 00 E0 4D 80 13 01 00 00 00 00 00 AA [15:20:43]Write i2c OK [15:20:43]MH_I2C_Read... [15:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:43]Read from MH i2c: E2 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 0E 00 [15:20:43]MH_I2C_Read... [15:20:43]Read from MH i2c: E2 0E 00 E0 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D6 [15:20:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:20:43]wFMCommunicate OK [15:20:43]SAM_PROTO_GetShiftState done [15:20:43]FM_GetShiftState done [15:20:43]req_shift_opened done [15:20:43]requested_item shift.open_date is exist - process it [15:20:43]req_shift_open_date [15:20:43]req_shift_open_date done [15:20:43]produce_requested_data done [15:20:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69868,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:20:43]process_action_free close_receipt [15:20:43]json_value_free [15:20:43]json_value_free done [15:20:43]process_json_proto returns [15:20:43]Send response to host [15:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69868,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:20:43]free response buf [15:20:43]execute_script done [15:20:43]execute_script returns [15:20:43]free content buf [15:20:43]Sock 9.Close socket [15:20:43]Sock 9.Thread stoped [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:01]accept exits with 8 [15:21:01]New connection [15:21:01]New thread 3067313508 created [15:21:01]Thread 3067456868 joined [15:21:01]Waiting for new connection... [15:21:01] Sock 8.Parse request [15:21:01]Sock 8.Check first char [15:21:01]Sock 8.First char is OK [15:21:01]request: POST /json_proto HTTP/1.0 [15:21:01]Method: POST [15:21:01]URL: /json_proto [15:21:01]Method is POST - this is cgi request [15:21:01]url: /json_proto [15:21:01]query_string will be loaded in cgi processing [15:21:01]execute_cgi json_proto POST (null) [15:21:01]execute_cgi path=json_proto method=POST [15:21:01]POST find Content-Length [15:21:01]Host: 172.17.50.3:8080 [15:21:01]Content-Length: 755 [15:21:01]Content-Type: application/json [15:21:01] [15:21:01]POST finish read [15:21:01]Found Content-Length = 755 [15:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 75.150, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:01]execute_script... [15:21: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)2885621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 75.150, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:01]POST & json_proto [15:21:01]process_json_proto [15:21:01]json parsed OK: [15:21:01]protocol is kg_v1.0 [15:21:01]action value=close_receipt [15:21:01]process_action close_receipt [15:21:01]cmd_close_receipt [15:21:01]MH_GetDate [15:21:01]Write to MH i2c: F0 00 00 E1 4D 1D [15:21:01]Write i2c OK [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 09 00 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: F0 09 00 E1 4D 00 62 71 16 67 6B 98 1E 66 FD [15:21:01]GetLastDocTimeStamp 1729524044 [15:21:01]current date 1729524066 [15:21:01]FM_GetShiftState [15:21:01]SAM_PROTO_GetShiftState [15:21:01]wFMCommunicate request_size=4 [15:21:01]MH_SAM_APDU [15:21:01]CAPDU: 80 13 01 00 [15:21:01]Write to MH i2c: E2 08 00 E2 4D 80 13 01 00 00 00 00 00 AC [15:21:01]Write i2c OK [15:21:01]MH_I2C_Read... [15:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:01]Read from MH i2c: E2 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: E2 0E 00 [15:21:01]MH_I2C_Read... [15:21:01]Read from MH i2c: E2 0E 00 E2 4D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D8 [15:21:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:21:01]wFMCommunicate OK [15:21:01]SAM_PROTO_GetShiftState done [15:21:01]FM_GetShiftState done [15:21:01]opened in 1729469703 [15:21:01]opened+sec_in_day 1729556103 [15:21:01]quantity*price = 0 [15:21:01]sum+1 = 1 [15:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 259 21.10.2024 15:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69869 ФПД: 105161783220852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152106&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69869&fm=105161783220852&tin=02508201610067®Number=0000000000156251&sum=0 [15:21:03]StoreToDocumentArchive [15:21:03]shift 194 fd 69869 [15:21:03]save to /storage/0194/doc_00069869 [15:21:03]save last doc name /storage/0194/doc_00069869 to /storage/kkm_last_doc_name [15:21:03]save OK [15:21:03]Clear old archive folders... [15:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:03]tlvbuf is 00C4C2D0 [15:21:03]SAM_PROTO_ClearQueue [15:21:03]wFMCommunicate request_size=4 [15:21:03]MH_SAM_APDU [15:21:03]CAPDU: 80 09 00 00 [15:21:03]Write to MH i2c: E2 08 00 EF 4D 80 09 00 00 00 00 00 00 AE [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 EF 4D 00 90 00 B0 [15:21:03]RAPDU: 90 00 [15:21:03]wFMCommunicate OK [15:21:03]SAM_PROTO_ClearQueue done [15:21:03]KKMCreateOFDPacket [15:21:03]OFDProtocolAddRootSTLVToBuf [15:21:03]FM_MakeSignedData [15:21:03]FM_MakeSignedData [15:21:03]SAM_PROTO_SignData [15:21:03]wFMCommunicate request_size=4 [15:21:03]MH_SAM_APDU [15:21:03]CAPDU: 80 0D 01 02 [15:21:03]Write to MH i2c: E2 08 00 F0 4D 80 0D 01 02 00 00 00 00 B6 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 F0 4D 00 90 00 B1 [15:21:03]RAPDU: 90 00 [15:21:03]wFMCommunicate OK [15:21:03]wFMCommunicate request_size=255 [15:21:03]MH_SAM_APDU [15:21: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 25 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 03 01 00 00 F4 03 04 00 62 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 10 01 00 35 04 06 00 5F [15:21:03]Write to MH i2c: E2 02 01 F1 4D 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 8E 25 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 03 01 00 00 F4 03 04 00 62 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 10 01 00 35 04 06 00 5F 00 00 E1 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 F1 4D 00 90 00 B2 [15:21:03]RAPDU: 90 00 [15:21:03]wFMCommunicate OK [15:21:03]wFMCommunicate request_size=10 [15:21:03]MH_SAM_APDU [15:21:03]CAPDU: 80 0D 02 02 05 A4 E2 BB 9A 74 [15:21:03]Write to MH i2c: E2 0D 00 F2 4D 80 0D 02 02 05 00 A4 E2 BB 9A 74 00 00 12 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 03 00 F2 4D 00 90 00 B3 [15:21:03]RAPDU: 90 00 [15:21:03]wFMCommunicate OK [15:21:03]wFMCommunicate request_size=4 [15:21:03]MH_SAM_APDU [15:21:03]CAPDU: 80 0D 03 02 [15:21:03]Write to MH i2c: E2 08 00 F3 4D 80 0D 03 02 00 00 00 00 BB [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 0B 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 0B 00 F3 4D 00 21 3E 25 2E C7 0B 83 2F 90 00 F2 [15:21:03]RAPDU: 21 3E 25 2E C7 0B 83 2F 90 00 [15:21:03]wFMCommunicate OK [15:21:03]SAM_PROTO_SignData done [15:21:03]FM_MakeSignedData done [15:21:03]CreateOFDProtocolMessage [15:21:03]wFMCommunicate request_size=4 [15:21:03]MH_SAM_APDU [15:21:03]CAPDU: 80 11 00 00 [15:21:03]Write to MH i2c: E2 08 00 F4 4D 80 11 00 00 00 00 00 00 BB [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:03]Read from MH i2c: E2 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 17 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: E2 17 00 F4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [15:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:21:03]wFMCommunicate OK [15:21:03]CreateOFDProtocolMessage done [15:21:03]OFDSenderStorePacket 69869 [15:21:03]StoreOFDPacket docnum=69869 [15:21:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F DB 07 01 17 1D 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 8E 25 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 03 01 00 00 F4 03 04 00 62 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 10 01 00 35 04 06 00 5F A4 E2 BB 9A 74 21 3E 25 2E C7 0B 83 2F [15:21:03]CheckFolder [15:21:03]dirname=/storage/ofd_packets [15:21:03]CheckFolder done [15:21:03]ProducePacketName [15:21:03]name=ofd_packets/00069869 [15:21:03]NVStorageSaveData ofd_packets/00069869 [15:21:03]File name is /storage/ofd_packets/00069869 [15:21:03]Write 301 bytes [15:21:03]NVStorageSaveData done [15:21:03]OFDSenderStorePacket done [15:21:03]KKMCreateOFDPacket done [15:21:03]NVStorageSaveData kkm_last_timestamp [15:21:03]File name is /storage/kkm_last_timestamp [15:21:03]Write 4 bytes [15:21:03]NVStorageSaveData done [15:21:03]ExternCall_PrintAddStr [15:21:03]wPrintStart [15:21:03]Write to MH i2c: 01 00 00 F5 4D 42 [15:21:03]Write i2c OK [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 07 00 [15:21:03]MH_I2C_Read... [15:21:03]Read from MH i2c: 01 07 00 F5 4D 00 00 00 00 00 FF 0F 57 [15:21:03]RasterBufferAndPrint [15:21:03]line Счет N : (1)2885621 [15:21:03]line ИНН: 02508201610067 [15:21:03]line Контрольно-Кассовый Чек [15:21:03]line ПРОДАЖА [15:21:03]line ТРК (МРК, ГНК) : 12 [15:21:03]line Товар: 2710124130 [15:21:03]line Аи-92-К-5 [15:21:03]line 75.150 * 0.00 [15:21:03]line = 0.00 [15:21:03]line НДС 12% НСП 1% [15:21:03]line > о реализуемом товаре [15:21:03]line ИТОГО: 0.00 [15:21:03]line НСП 1% : 0.00 [15:21:03]line НДС 12% : 0.00 [15:21:03]line Наличными: 0.00 [15:21:03]line Безнал.: 0.00 [15:21:03]line Место: АЗС № 85 "Партнер Нефть" [15:21:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:21:03]line СНО: Общий режим [15:21:03]line Чек 259 21.10.2024 15:21 [15:21:03]line Смена: 194 ФФД: 1.0 [15:21:03]line ЗНМ: 0300000167 [15:21:03]line РНМ: 0000000000156251 [15:21:03]line Версия ККМ: v1.0 [15:21:03]line Талоны: ТК ГПНА Online [15:21:03]line 30100970 [15:21:03]line ФМ: 0000000000963346 [15:21:03]line ФД: 69869 [15:21:03]line ФПД: 105161783220852 [15:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152106&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69869&fm=105161783220852&tin=02508201610067®Number=0000000000156251&sum=0 [15:21:03]OFD Sender: Processing packet 69869 [packets to send 18, broken 17] [15:21:03]ProducePacketName [15:21:03]name=ofd_packets/00069869 [15:21:03]OFD Sender: To server: pG, [15:21:03]CommunicateWithHost lk.salyk.kg:30040 [15:21:03]ConnectInit lk.salyk.kg [15:21:03]written 0, free lines is 4095 [15:21:04]Connected sock=10 [15:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F DB 07 01 17 1D 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 8E 25 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 03 01 00 00 F4 03 04 00 62 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 10 01 00 35 04 06 00 5F A4 E2 BB 9A 74 21 3E 25 2E C7 0B 83 2F [15:21:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 36 80 47 00 56 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 10 01 00 F4 03 04 00 05 1B 16 67 B6 04 01 00 00 E3 ED 89 94 80 1A 52 F7 [15:21:04]CommunicateWithHost err = 0 [15:21:04]CheckOFDResponse [15:21:04]1017 (14) - 77093643461234 [15:21:04]1041 (16) - 0000000000963346 [15:21:04]1040 (4) - 69869 [15:21:04]1012 (4) - 21.10.2024 09:12 [15:21:04]1206 (1) - 0 [15:21:04]OFD Sender: Remove packet 69869 [15:21:04]ProducePacketName [15:21:04]name=ofd_packets/00069869 [15:21:04]NVStorageDeleteData [15:21:04]Write to MH i2c: 01 00 00 1F 4E 6D [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 07 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: 01 07 00 1F 4E 00 00 00 00 00 F0 0C 70 [15:21:04]RasterBufferAndPrint [15:21:04]line [15:21:04]line [15:21:04]line [15:21:04]line [15:21:04]line [15:21:04]written 0, free lines is 3318 [15:21:04]MH_Cut [15:21:04]Write to MH i2c: D1 01 00 26 4E 01 46 [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: D1 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: D1 01 00 [15:21:04]MH_I2C_Read... [15:21:04]Read from MH i2c: D1 01 00 26 4E 00 45 [15:21:04]Write to MH i2c: 01 00 00 27 4E 75 [15:21:04]Write i2c OK [15:21:04]MH_I2C_Read... [15:21:04]OFD Sender: No OFD packet to send [15:21:05]*** Cut start [15:21:05]*** Partial cut [15:21:05]*** CUTSNS_PIN = 1 [15:21:05]*** CUTSNS_PIN = 0 [15:21:05]*** Brake cut motor [15:21:05]Read from MH i2c: 01 [15:21:05]MH_I2C_Read... [15:21:05]*** Stop cut motor [15:21:05]*** Cut end [15:21:05]Read from MH i2c: 01 07 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 27 4E 00 00 00 00 00 FF 0F 8A [15:21:05]process_action close_receipt done [15:21:05]requested_data is exist [15:21:05]produce_requested_data [15:21:05]requested_item fm.sn is exist - process it [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 11 00 00 [15:21:05]Write to MH i2c: E2 08 00 28 4E 80 11 00 00 00 00 00 00 F0 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 17 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 17 00 28 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [15:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:21:05]wFMCommunicate OK [15:21:05]requested_item fd.num is exist - process it [15:21:05]SAM_PROTO_GetFieldsCounters [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 13 00 00 [15:21:05]Write to MH i2c: E2 08 00 29 4E 80 13 00 00 00 00 00 00 F3 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 62 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 62 00 29 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:21:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:05]wFMCommunicate OK [15:21:05]SAM_PROTO_GetFieldsCounters done [15:21:05]requested_item shift.num is exist - process it [15:21:05]requested_item shift.opened is exist - process it [15:21:05]req_shift_opened [15:21:05]FM_GetShiftState [15:21:05]SAM_PROTO_GetShiftState [15:21:05]wFMCommunicate request_size=4 [15:21:05]MH_SAM_APDU [15:21:05]CAPDU: 80 13 01 00 [15:21:05]Write to MH i2c: E2 08 00 2A 4E 80 13 01 00 00 00 00 00 F5 [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:05]Read from MH i2c: E2 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 0E 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: E2 0E 00 2A 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 21 [15:21:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:21:05]wFMCommunicate OK [15:21:05]SAM_PROTO_GetShiftState done [15:21:05]FM_GetShiftState done [15:21:05]req_shift_opened done [15:21:05]requested_item shift.open_date is exist - process it [15:21:05]req_shift_open_date [15:21:05]req_shift_open_date done [15:21:05]produce_requested_data done [15:21:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69869,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:21:05]process_action_free close_receipt [15:21:05]json_value_free [15:21:05]json_value_free done [15:21:05]process_json_proto returns [15:21:05]Send response to host [15:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69869,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:21:05]free response buf [15:21:05]execute_script done [15:21:05]execute_script returns [15:21:05]free content buf [15:21:05]Sock 8.Close socket [15:21:05]Sock 8.Thread stoped [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:02]accept exits with 9 [15:22:02]New connection [15:22:02]New thread 3067456868 created [15:22:02]Thread 3067313508 joined [15:22:02]Waiting for new connection... [15:22:02] Sock 9.Parse request [15:22:02]Sock 9.Check first char [15:22:02]Sock 9.First char is OK [15:22:02]request: POST /json_proto HTTP/1.0 [15:22:02]Method: POST [15:22:02]URL: /json_proto [15:22:02]Method is POST - this is cgi request [15:22:02]url: /json_proto [15:22:02]query_string will be loaded in cgi processing [15:22:02]execute_cgi json_proto POST (null) [15:22:02]execute_cgi path=json_proto method=POST [15:22:02]POST find Content-Length [15:22:02]Host: 172.17.50.3:8080 [15:22:02]Content-Length: 689 [15:22:02]Content-Type: application/json [15:22:02] [15:22:02]POST finish read [15:22:02]Found Content-Length = 689 [15:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:22:02]execute_script... [15:22: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)2885624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:22:02]POST & json_proto [15:22:02]process_json_proto [15:22:02]json parsed OK: [15:22:02]protocol is kg_v1.0 [15:22:02]action value=close_receipt [15:22:02]process_action close_receipt [15:22:02]cmd_close_receipt [15:22:02]MH_GetDate [15:22:02]Write to MH i2c: F0 00 00 2B 4E 68 [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: F0 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: F0 09 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: F0 09 00 2B 4E 00 9F 71 16 67 6B 98 1E 66 85 [15:22:02]GetLastDocTimeStamp 1729524066 [15:22:02]current date 1729524127 [15:22:02]FM_GetShiftState [15:22:02]SAM_PROTO_GetShiftState [15:22:02]wFMCommunicate request_size=4 [15:22:02]MH_SAM_APDU [15:22:02]CAPDU: 80 13 01 00 [15:22:02]Write to MH i2c: E2 08 00 2C 4E 80 13 01 00 00 00 00 00 F7 [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:02]Read from MH i2c: E2 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 0E 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 0E 00 2C 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 23 [15:22:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:22:02]wFMCommunicate OK [15:22:02]SAM_PROTO_GetShiftState done [15:22:02]FM_GetShiftState done [15:22:02]opened in 1729469703 [15:22:02]opened+sec_in_day 1729556103 [15:22:02]quantity*price = 150076 [15:22:02]sum+1 = 150078 [15:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 260 21.10.2024 15:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69870 ФПД: 3802909619488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69870&fm=3802909619488&tin=02508201610067®Number=0000000000156251&sum=150000 [15:22:03]StoreToDocumentArchive [15:22:03]shift 194 fd 69870 [15:22:03]save to /storage/0194/doc_00069870 [15:22:03]save last doc name /storage/0194/doc_00069870 to /storage/kkm_last_doc_name [15:22:03]save OK [15:22:03]Clear old archive folders... [15:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:22:03]tlvbuf is 00C2DAF0 [15:22:03]SAM_PROTO_ClearQueue [15:22:03]wFMCommunicate request_size=4 [15:22:03]MH_SAM_APDU [15:22:03]CAPDU: 80 09 00 00 [15:22:03]Write to MH i2c: E2 08 00 39 4E 80 09 00 00 00 00 00 00 F9 [15:22:03]Write i2c OK [15:22:03]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 39 4E 00 90 00 FB [15:22:04]RAPDU: 90 00 [15:22:04]wFMCommunicate OK [15:22:04]SAM_PROTO_ClearQueue done [15:22:04]KKMCreateOFDPacket [15:22:04]OFDProtocolAddRootSTLVToBuf [15:22:04]FM_MakeSignedData [15:22:04]FM_MakeSignedData [15:22:04]SAM_PROTO_SignData [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 0D 01 02 [15:22:04]Write to MH i2c: E2 08 00 3A 4E 80 0D 01 02 00 00 00 00 01 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 3A 4E 00 90 00 FC [15:22:04]RAPDU: 90 00 [15:22:04]wFMCommunicate OK [15:22:04]wFMCommunicate request_size=255 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 04 01 00 00 F4 03 04 00 9F 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 10 01 [15:22:04]Write to MH i2c: E2 02 01 3B 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 04 01 00 00 F4 03 04 00 9F 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 10 01 00 00 F8 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 3B 4E 00 90 00 FD [15:22:04]RAPDU: 90 00 [15:22:04]wFMCommunicate OK [15:22:04]wFMCommunicate request_size=16 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 03 75 6F 13 B5 20 [15:22:04]Write to MH i2c: E2 13 00 3C 4E 80 0D 02 02 0B 00 00 35 04 06 00 03 75 6F 13 B5 20 00 00 28 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 03 00 3C 4E 00 90 00 FE [15:22:04]RAPDU: 90 00 [15:22:04]wFMCommunicate OK [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 0D 03 02 [15:22:04]Write to MH i2c: E2 08 00 3D 4E 80 0D 03 02 00 00 00 00 06 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 0B 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 0B 00 3D 4E 00 37 9C F5 56 7E 57 98 05 90 00 97 [15:22:04]RAPDU: 37 9C F5 56 7E 57 98 05 90 00 [15:22:04]wFMCommunicate OK [15:22:04]SAM_PROTO_SignData done [15:22:04]FM_MakeSignedData done [15:22:04]CreateOFDProtocolMessage [15:22:04]wFMCommunicate request_size=4 [15:22:04]MH_SAM_APDU [15:22:04]CAPDU: 80 11 00 00 [15:22:04]Write to MH i2c: E2 08 00 3E 4E 80 11 00 00 00 00 00 00 06 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:04]Read from MH i2c: E2 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 17 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: E2 17 00 3E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [15:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:04]wFMCommunicate OK [15:22:04]CreateOFDProtocolMessage done [15:22:04]OFDSenderStorePacket 69870 [15:22:04]StoreOFDPacket docnum=69870 [15:22:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4D 28 0D 01 E1 D0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 04 01 00 00 F4 03 04 00 9F 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 10 01 00 35 04 06 00 03 75 6F 13 B5 20 37 9C F5 56 7E 57 98 05 [15:22:04]CheckFolder [15:22:04]dirname=/storage/ofd_packets [15:22:04]CheckFolder done [15:22:04]ProducePacketName [15:22:04]name=ofd_packets/00069870 [15:22:04]NVStorageSaveData ofd_packets/00069870 [15:22:04]File name is /storage/ofd_packets/00069870 [15:22:04]Write 307 bytes [15:22:04]NVStorageSaveData done [15:22:04]OFDSenderStorePacket done [15:22:04]KKMCreateOFDPacket done [15:22:04]NVStorageSaveData kkm_last_timestamp [15:22:04]File name is /storage/kkm_last_timestamp [15:22:04]Write 4 bytes [15:22:04]NVStorageSaveData done [15:22:04]ExternCall_PrintAddStr [15:22:04]wPrintStart [15:22:04]Write to MH i2c: 01 00 00 3F 4E 8D [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 07 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 07 00 3F 4E 00 00 00 00 00 FF 0F A2 [15:22:04]RasterBufferAndPrint [15:22:04]line Счет N : (1)2885624 [15:22:04]line ИНН: 02508201610067 [15:22:04]line Контрольно-Кассовый Чек [15:22:04]line ПРОДАЖА [15:22:04]line ТРК (МРК, ГНК) : 31 [15:22:04]line Товар: 2710194240 [15:22:04]line D-ENERGY Дт-К-2 [15:22:04]line 19.440 * 77.20 [15:22:04]line = 1500.77 [15:22:04]line НДС 12% НСП 1% [15:22:04]line > о реализуемом товаре [15:22:04]line ОКРУГЛЕНИЕ: -0.77 [15:22:04]line ИТОГО: 1500.00 [15:22:04]line Внесено: 1500.00 [15:22:04]line СДАЧА: 0.00 [15:22:04]line НСП 1% : 13.28 [15:22:04]line НДС 12% : 159.37 [15:22:04]line Наличными: 1500.00 [15:22:04]line Безнал.: 0.00 [15:22:04]line Место: АЗС № 85 "Партнер Нефть" [15:22:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:22:04]line СНО: Общий режим [15:22:04]line Чек 260 21.10.2024 15:22 [15:22:04]line Смена: 194 ФФД: 1.0 [15:22:04]line ЗНМ: 0300000167 [15:22:04]line РНМ: 0000000000156251 [15:22:04]line Версия ККМ: v1.0 [15:22:04]line ФМ: 0000000000963346 [15:22:04]line ФД: 69870 [15:22:04]line ФПД: 3802909619488 [15:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152207&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69870&fm=3802909619488&tin=02508201610067®Number=0000000000156251&sum=150000 [15:22:04]OFD Sender: Processing packet 69870 [packets to send 18, broken 17] [15:22:04]ProducePacketName [15:22:04]name=ofd_packets/00069870 [15:22:04]OFD Sender: To server: pG, [15:22:04]CommunicateWithHost lk.salyk.kg:30040 [15:22:04]ConnectInit lk.salyk.kg [15:22:04]written 0, free lines is 4095 [15:22:04]Connected sock=10 [15:22:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4D 28 0D 01 E1 D0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 04 01 00 00 F4 03 04 00 9F 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 10 01 00 35 04 06 00 03 75 6F 13 B5 20 37 9C F5 56 7E 57 98 05 [15:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 55 47 00 3D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 10 01 00 F4 03 04 00 42 1B 16 67 B6 04 01 00 00 93 CE 6D B4 D2 1F 87 EF [15:22:05]CommunicateWithHost err = 0 [15:22:05]CheckOFDResponse [15:22:05]1017 (14) - 77093643461234 [15:22:05]1041 (16) - 0000000000963346 [15:22:05]1040 (4) - 69870 [15:22:05]1012 (4) - 21.10.2024 09:13 [15:22:05]1206 (1) - 0 [15:22:05]OFD Sender: Remove packet 69870 [15:22:05]ProducePacketName [15:22:05]name=ofd_packets/00069870 [15:22:05]NVStorageDeleteData [15:22:05]Write to MH i2c: 01 00 00 6A 4E B8 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: 01 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: 01 07 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: 01 07 00 6A 4E 00 00 00 00 00 03 0D CF [15:22:05]RasterBufferAndPrint [15:22:05]line [15:22:05]line [15:22:05]line [15:22:05]line [15:22:05]line [15:22:05]written 0, free lines is 3337 [15:22:05]MH_Cut [15:22:05]Write to MH i2c: D1 01 00 71 4E 01 91 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: D1 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: D1 01 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: D1 01 00 71 4E 00 90 [15:22:05]Write to MH i2c: 01 00 00 72 4E C0 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]OFD Sender: No OFD packet to send [15:22:05]*** Cut start [15:22:05]*** Partial cut [15:22:05]*** CUTSNS_PIN = 1 [15:22:06]*** CUTSNS_PIN = 0 [15:22:06]*** Brake cut motor [15:22:06]Read from MH i2c: 01 [15:22:06]MH_I2C_Read... [15:22:06]*** Stop cut motor [15:22:06]*** Cut end [15:22:06]Read from MH i2c: 01 07 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: 01 07 00 72 4E 00 00 00 00 00 FF 0F D5 [15:22:06]process_action close_receipt done [15:22:06]requested_data is exist [15:22:06]produce_requested_data [15:22:06]requested_item fm.sn is exist - process it [15:22:06]wFMCommunicate request_size=4 [15:22:06]MH_SAM_APDU [15:22:06]CAPDU: 80 11 00 00 [15:22:06]Write to MH i2c: E2 08 00 73 4E 80 11 00 00 00 00 00 00 3B [15:22:06]Write i2c OK [15:22:06]MH_I2C_Read... [15:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:06]Read from MH i2c: E2 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 17 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 17 00 73 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [15:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:22:06]wFMCommunicate OK [15:22:06]requested_item fd.num is exist - process it [15:22:06]SAM_PROTO_GetFieldsCounters [15:22:06]wFMCommunicate request_size=4 [15:22:06]MH_SAM_APDU [15:22:06]CAPDU: 80 13 00 00 [15:22:06]Write to MH i2c: E2 08 00 74 4E 80 13 00 00 00 00 00 00 3E [15:22:06]Write i2c OK [15:22:06]MH_I2C_Read... [15:22:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:06]Read from MH i2c: E2 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 62 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 62 00 74 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [15:22:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:06]wFMCommunicate OK [15:22:06]SAM_PROTO_GetFieldsCounters done [15:22:06]requested_item shift.num is exist - process it [15:22:06]requested_item shift.opened is exist - process it [15:22:06]req_shift_opened [15:22:06]FM_GetShiftState [15:22:06]SAM_PROTO_GetShiftState [15:22:06]wFMCommunicate request_size=4 [15:22:06]MH_SAM_APDU [15:22:06]CAPDU: 80 13 01 00 [15:22:06]Write to MH i2c: E2 08 00 75 4E 80 13 01 00 00 00 00 00 40 [15:22:06]Write i2c OK [15:22:06]MH_I2C_Read... [15:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:06]Read from MH i2c: E2 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 0E 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 0E 00 75 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6C [15:22:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:22:06]wFMCommunicate OK [15:22:06]SAM_PROTO_GetShiftState done [15:22:06]FM_GetShiftState done [15:22:06]req_shift_opened done [15:22:06]requested_item shift.open_date is exist - process it [15:22:06]req_shift_open_date [15:22:06]req_shift_open_date done [15:22:06]produce_requested_data done [15:22:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69870,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:22:06]process_action_free close_receipt [15:22:06]json_value_free [15:22:06]json_value_free done [15:22:06]process_json_proto returns [15:22:06]Send response to host [15:22:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69870,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:22:06]free response buf [15:22:06]execute_script done [15:22:06]execute_script returns [15:22:06]free content buf [15:22:06]Sock 9.Close socket [15:22:06]Sock 9.Thread stoped [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:04]accept exits with 8 [15:23:04]New connection [15:23:04]New thread 3067313508 created [15:23:04]Thread 3067456868 joined [15:23:04]Waiting for new connection... [15:23:04] Sock 8.Parse request [15:23:04]Sock 8.Check first char [15:23:04]Sock 8.First char is OK [15:23:04]request: POST /json_proto HTTP/1.0 [15:23:04]Method: POST [15:23:04]URL: /json_proto [15:23:04]Method is POST - this is cgi request [15:23:04]url: /json_proto [15:23:04]query_string will be loaded in cgi processing [15:23:04]execute_cgi json_proto POST (null) [15:23:04]execute_cgi path=json_proto method=POST [15:23:04]POST find Content-Length [15:23:04]Host: 172.17.50.3:8080 [15:23:04]Content-Length: 765 [15:23:04]Content-Type: application/json [15:23:04] [15:23:04]POST finish read [15:23:04]Found Content-Length = 765 [15:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.670, "sum" : 965.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 965.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:04]execute_script... [15:23: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)2885623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.670, "sum" : 965.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 965.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:04]POST & json_proto [15:23:04]process_json_proto [15:23:04]json parsed OK: [15:23:04]protocol is kg_v1.0 [15:23:04]action value=close_receipt [15:23:04]process_action close_receipt [15:23:04]cmd_close_receipt [15:23:04]MH_GetDate [15:23:04]Write to MH i2c: F0 00 00 76 4E B3 [15:23:04]Write i2c OK [15:23:04]MH_I2C_Read... [15:23:04]Read from MH i2c: F0 [15:23:04]MH_I2C_Read... [15:23:04]Read from MH i2c: F0 09 00 [15:23:04]MH_I2C_Read... [15:23:04]Read from MH i2c: F0 09 00 76 4E 00 DC 71 16 67 6B 98 1E 66 0D [15:23:04]GetLastDocTimeStamp 1729524127 [15:23:04]current date 1729524188 [15:23:04]FM_GetShiftState [15:23:04]SAM_PROTO_GetShiftState [15:23:04]wFMCommunicate request_size=4 [15:23:04]MH_SAM_APDU [15:23:04]CAPDU: 80 13 01 00 [15:23:04]Write to MH i2c: E2 08 00 77 4E 80 13 01 00 00 00 00 00 42 [15:23:04]Write i2c OK [15:23:04]MH_I2C_Read... [15:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:04]Read from MH i2c: E2 [15:23:04]MH_I2C_Read... [15:23:04]Read from MH i2c: E2 0E 00 [15:23:04]MH_I2C_Read... [15:23:04]Read from MH i2c: E2 0E 00 77 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6E [15:23:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:04]wFMCommunicate OK [15:23:04]SAM_PROTO_GetShiftState done [15:23:04]FM_GetShiftState done [15:23:04]opened in 1729469703 [15:23:04]opened+sec_in_day 1729556103 [15:23:04]quantity*price = 96545 [15:23:04]sum+1 = 96546 [15:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 965.45 НСП 1% : 8.54 НДС 12% : 102.53 Наличными: 0.00 Безнал.: 965.45 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 261 21.10.2024 15:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69871 ФПД: 260684731345287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152308&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69871&fm=260684731345287&tin=02508201610067®Number=0000000000156251&sum=96545 [15:23:05]StoreToDocumentArchive [15:23:05]shift 194 fd 69871 [15:23:05]save to /storage/0194/doc_00069871 [15:23:05]save last doc name /storage/0194/doc_00069871 to /storage/kkm_last_doc_name [15:23:05]save OK [15:23:05]Clear old archive folders... [15:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:05]tlvbuf is 00C8AD50 [15:23:05]SAM_PROTO_ClearQueue [15:23:05]wFMCommunicate request_size=4 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 09 00 00 [15:23:05]Write to MH i2c: E2 08 00 84 4E 80 09 00 00 00 00 00 00 44 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 84 4E 00 90 00 46 [15:23:05]RAPDU: 90 00 [15:23:05]wFMCommunicate OK [15:23:05]SAM_PROTO_ClearQueue done [15:23:05]KKMCreateOFDPacket [15:23:05]OFDProtocolAddRootSTLVToBuf [15:23:05]FM_MakeSignedData [15:23:05]FM_MakeSignedData [15:23:05]SAM_PROTO_SignData [15:23:05]wFMCommunicate request_size=4 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 0D 01 02 [15:23:05]Write to MH i2c: E2 08 00 85 4E 80 0D 01 02 00 00 00 00 4C [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 85 4E 00 90 00 47 [15:23:05]RAPDU: 90 00 [15:23:05]wFMCommunicate OK [15:23:05]wFMCommunicate request_size=255 [15:23:05]MH_SAM_APDU [15:23: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 21 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 DC 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 10 01 00 35 04 06 00 ED 17 64 CF [15:23:05]Write to MH i2c: E2 02 01 86 4E 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 21 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 DC 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 10 01 00 35 04 06 00 ED 17 64 CF 00 00 5B [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 86 4E 00 90 00 48 [15:23:05]RAPDU: 90 00 [15:23:05]wFMCommunicate OK [15:23:05]wFMCommunicate request_size=7 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 0D 02 02 02 69 87 [15:23:05]Write to MH i2c: E2 0A 00 87 4E 80 0D 02 02 02 00 69 87 00 00 43 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 03 00 87 4E 00 90 00 49 [15:23:05]RAPDU: 90 00 [15:23:05]wFMCommunicate OK [15:23:05]wFMCommunicate request_size=4 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 0D 03 02 [15:23:05]Write to MH i2c: E2 08 00 88 4E 80 0D 03 02 00 00 00 00 51 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:05]OFD Sender: No OFD packet to send [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 0B 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 0B 00 88 4E 00 5A 1F 56 EA A5 CC DF 8A 90 00 E5 [15:23:05]RAPDU: 5A 1F 56 EA A5 CC DF 8A 90 00 [15:23:05]wFMCommunicate OK [15:23:05]SAM_PROTO_SignData done [15:23:05]FM_MakeSignedData done [15:23:05]CreateOFDProtocolMessage [15:23:05]wFMCommunicate request_size=4 [15:23:05]MH_SAM_APDU [15:23:05]CAPDU: 80 11 00 00 [15:23:05]Write to MH i2c: E2 08 00 89 4E 80 11 00 00 00 00 00 00 51 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:05]Read from MH i2c: E2 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 17 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: E2 17 00 89 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [15:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:05]wFMCommunicate OK [15:23:05]CreateOFDProtocolMessage done [15:23:05]OFDSenderStorePacket 69871 [15:23:05]StoreOFDPacket docnum=69871 [15:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 20 7D 04 01 6D E3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 21 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 DC 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 10 01 00 35 04 06 00 ED 17 64 CF 69 87 5A 1F 56 EA A5 CC DF 8A [15:23:05]CheckFolder [15:23:05]dirname=/storage/ofd_packets [15:23:05]CheckFolder done [15:23:05]ProducePacketName [15:23:05]name=ofd_packets/00069871 [15:23:05]NVStorageSaveData ofd_packets/00069871 [15:23:05]File name is /storage/ofd_packets/00069871 [15:23:05]Write 298 bytes [15:23:05]NVStorageSaveData done [15:23:05]OFDSenderStorePacket done [15:23:05]KKMCreateOFDPacket done [15:23:05]NVStorageSaveData kkm_last_timestamp [15:23:05]File name is /storage/kkm_last_timestamp [15:23:05]Write 4 bytes [15:23:05]NVStorageSaveData done [15:23:05]ExternCall_PrintAddStr [15:23:05]wPrintStart [15:23:05]Write to MH i2c: 01 00 00 8A 4E D8 [15:23:05]Write i2c OK [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: 01 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: 01 07 00 [15:23:05]MH_I2C_Read... [15:23:05]Read from MH i2c: 01 07 00 8A 4E 00 00 00 00 00 FF 0F ED [15:23:05]RasterBufferAndPrint [15:23:05]line Счет N : (1)2885623 [15:23:05]line ИНН: 02508201610067 [15:23:05]line Контрольно-Кассовый Чек [15:23:05]line ПРОДАЖА [15:23:05]line ТРК (МРК, ГНК) : 51 [15:23:05]line Товар: 2710194210 [15:23:05]line ДТ-К-5 [15:23:05]line 12.670 * 76.20 [15:23:05]line = 965.45 [15:23:05]line НДС 12% НСП 1% [15:23:05]line > о реализуемом товаре [15:23:05]line ИТОГО: 965.45 [15:23:05]line НСП 1% : 8.54 [15:23:05]line НДС 12% : 102.53 [15:23:05]line Наличными: 0.00 [15:23:05]line Безнал.: 965.45 [15:23:05]line Место: АЗС № 85 "Партнер Нефть" [15:23:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:05]line СНО: Общий режим [15:23:05]line Чек 261 21.10.2024 15:23 [15:23:05]line Смена: 194 ФФД: 1.0 [15:23:05]line ЗНМ: 0300000167 [15:23:05]line РНМ: 0000000000156251 [15:23:05]line Версия ККМ: v1.0 [15:23:05]line Платежная система: Mbank [15:23:05]line ФМ: 0000000000963346 [15:23:05]line ФД: 69871 [15:23:05]line ФПД: 260684731345287 [15:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152308&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69871&fm=260684731345287&tin=02508201610067®Number=0000000000156251&sum=96545 [15:23:06]OFD Sender: Processing packet 69871 [packets to send 18, broken 17] [15:23:06]ProducePacketName [15:23:06]name=ofd_packets/00069871 [15:23:06]OFD Sender: To server: pG, [15:23:06]CommunicateWithHost lk.salyk.kg:30040 [15:23:06]ConnectInit lk.salyk.kg [15:23:06]written 0, free lines is 4095 [15:23:06]Connected sock=10 [15:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 20 7D 04 01 6D E3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 21 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 DC 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 10 01 00 35 04 06 00 ED 17 64 CF 69 87 5A 1F 56 EA A5 CC DF 8A [15:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 23 7D 47 00 BC 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 10 01 00 F4 03 04 00 7F 1B 16 67 B6 04 01 00 00 FC 06 BC 2D 7A 92 DE BF [15:23:06]CommunicateWithHost err = 0 [15:23:06]CheckOFDResponse [15:23:06]1017 (14) - 77093643461234 [15:23:06]1041 (16) - 0000000000963346 [15:23:06]1040 (4) - 69871 [15:23:06]1012 (4) - 21.10.2024 09:14 [15:23:06]1206 (1) - 0 [15:23:06]OFD Sender: Remove packet 69871 [15:23:06]ProducePacketName [15:23:06]name=ofd_packets/00069871 [15:23:06]NVStorageDeleteData [15:23:06]Write to MH i2c: 01 00 00 B3 4E 01 [15:23:06]Write i2c OK [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: 01 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: 01 07 00 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: 01 07 00 B3 4E 00 00 00 00 00 1D 0D 32 [15:23:06]RasterBufferAndPrint [15:23:06]line [15:23:06]line [15:23:06]line [15:23:06]line [15:23:06]line [15:23:06]written 0, free lines is 3366 [15:23:06]MH_Cut [15:23:06]Write to MH i2c: D1 01 00 BA 4E 01 DA [15:23:06]Write i2c OK [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: D1 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: D1 01 00 [15:23:06]MH_I2C_Read... [15:23:06]Read from MH i2c: D1 01 00 BA 4E 00 D9 [15:23:06]Write to MH i2c: 01 00 00 BB 4E 09 [15:23:06]Write i2c OK [15:23:06]MH_I2C_Read... [15:23:06]OFD Sender: No OFD packet to send [15:23:07]*** Cut start [15:23:07]*** Partial cut [15:23:07]*** CUTSNS_PIN = 1 [15:23:07]*** CUTSNS_PIN = 0 [15:23:07]*** Brake cut motor [15:23:07]Read from MH i2c: 01 [15:23:07]MH_I2C_Read... [15:23:07]*** Stop cut motor [15:23:07]*** Cut end [15:23:07]Read from MH i2c: 01 07 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: 01 07 00 BB 4E 00 00 00 00 00 FF 0F 1E [15:23:07]process_action close_receipt done [15:23:07]requested_data is exist [15:23:07]produce_requested_data [15:23:07]requested_item fm.sn is exist - process it [15:23:07]wFMCommunicate request_size=4 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 11 00 00 [15:23:07]Write to MH i2c: E2 08 00 BC 4E 80 11 00 00 00 00 00 00 84 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:07]Read from MH i2c: E2 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 17 00 [15:23:07]MH_I2C_Read... [15:23:07]Read from MH i2c: E2 17 00 BC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [15:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:07]wFMCommunicate OK [15:23:07]requested_item fd.num is exist - process it [15:23:07]SAM_PROTO_GetFieldsCounters [15:23:07]wFMCommunicate request_size=4 [15:23:07]MH_SAM_APDU [15:23:07]CAPDU: 80 13 00 00 [15:23:07]Write to MH i2c: E2 08 00 BD 4E 80 13 00 00 00 00 00 00 87 [15:23:07]Write i2c OK [15:23:07]MH_I2C_Read... [15:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:08]Read from MH i2c: E2 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 62 00 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 62 00 BD 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:08]wFMCommunicate OK [15:23:08]SAM_PROTO_GetFieldsCounters done [15:23:08]requested_item shift.num is exist - process it [15:23:08]requested_item shift.opened is exist - process it [15:23:08]req_shift_opened [15:23:08]FM_GetShiftState [15:23:08]SAM_PROTO_GetShiftState [15:23:08]wFMCommunicate request_size=4 [15:23:08]MH_SAM_APDU [15:23:08]CAPDU: 80 13 01 00 [15:23:08]Write to MH i2c: E2 08 00 BE 4E 80 13 01 00 00 00 00 00 89 [15:23:08]Write i2c OK [15:23:08]MH_I2C_Read... [15:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:08]Read from MH i2c: E2 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 0E 00 [15:23:08]MH_I2C_Read... [15:23:08]Read from MH i2c: E2 0E 00 BE 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B5 [15:23:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:08]wFMCommunicate OK [15:23:08]SAM_PROTO_GetShiftState done [15:23:08]FM_GetShiftState done [15:23:08]req_shift_opened done [15:23:08]requested_item shift.open_date is exist - process it [15:23:08]req_shift_open_date [15:23:08]req_shift_open_date done [15:23:08]produce_requested_data done [15:23:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69871,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:23:08]process_action_free close_receipt [15:23:08]json_value_free [15:23:08]json_value_free done [15:23:08]process_json_proto returns [15:23:08]Send response to host [15:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69871,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:23:08]free response buf [15:23:08]execute_script done [15:23:08]execute_script returns [15:23:08]free content buf [15:23:08]Sock 8.Close socket [15:23:08]Sock 8.Thread stoped [15:23:11]OFD Sender: No OFD packet to send [15:23:15]accept exits with 9 [15:23:15]New connection [15:23:15]New thread 3067456868 created [15:23:15]Thread 3067313508 joined [15:23:15]Waiting for new connection... [15:23:15] Sock 9.Parse request [15:23:15]Sock 9.Check first char [15:23:15]Sock 9.First char is OK [15:23:15]request: POST /json_proto HTTP/1.0 [15:23:15]Method: POST [15:23:15]URL: /json_proto [15:23:15]Method is POST - this is cgi request [15:23:15]url: /json_proto [15:23:15]query_string will be loaded in cgi processing [15:23:15]execute_cgi json_proto POST (null) [15:23:15]execute_cgi path=json_proto method=POST [15:23:15]POST find Content-Length [15:23:15]Host: 172.17.50.3:8080 [15:23:15]Content-Length: 680 [15:23:15]Content-Type: application/json [15:23:15] [15:23:15]POST finish read [15:23:15]Found Content-Length = 680 [15:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [15:23:15]execute_script... [15:23: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)2885625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [15:23:15]POST & json_proto [15:23:15]process_json_proto [15:23:15]json parsed OK: [15:23:15]protocol is kg_v1.0 [15:23:15]action value=close_receipt [15:23:15]process_action close_receipt [15:23:15]cmd_close_receipt [15:23:15]MH_GetDate [15:23:15]Write to MH i2c: F0 00 00 BF 4E FC [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: F0 09 00 BF 4E 00 E7 71 16 67 6B 98 1E 66 61 [15:23:15]GetLastDocTimeStamp 1729524188 [15:23:15]current date 1729524199 [15:23:15]FM_GetShiftState [15:23:15]SAM_PROTO_GetShiftState [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 01 00 [15:23:15]Write to MH i2c: E2 08 00 C0 4E 80 13 01 00 00 00 00 00 8B [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 C0 4E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B7 [15:23:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetShiftState done [15:23:15]FM_GetShiftState done [15:23:15]opened in 1729469703 [15:23:15]opened+sec_in_day 1729556103 [15:23:15]quantity*price = 100050 [15:23:15]sum+1 = 100052 [15:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 262 21.10.2024 15:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69872 ФПД: 248447473229230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69872&fm=248447473229230&tin=02508201610067®Number=0000000000156251&sum=100000 [15:23:16]StoreToDocumentArchive [15:23:16]shift 194 fd 69872 [15:23:16]save to /storage/0194/doc_00069872 [15:23:16]save last doc name /storage/0194/doc_00069872 to /storage/kkm_last_doc_name [15:23:16]save OK [15:23:16]Clear old archive folders... [15:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:16]tlvbuf is 00CAF740 [15:23:16]SAM_PROTO_ClearQueue [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 09 00 00 [15:23:16]Write to MH i2c: E2 08 00 CD 4E 80 09 00 00 00 00 00 00 8D [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 CD 4E 00 90 00 8F [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_ClearQueue done [15:23:16]KKMCreateOFDPacket [15:23:16]OFDProtocolAddRootSTLVToBuf [15:23:16]FM_MakeSignedData [15:23:16]FM_MakeSignedData [15:23:16]SAM_PROTO_SignData [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 01 02 [15:23:16]Write to MH i2c: E2 08 00 CE 4E 80 0D 01 02 00 00 00 00 95 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 CE 4E 00 90 00 90 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=255 [15:23:16]MH_SAM_APDU [15:23: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 32 31 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 06 01 00 00 F4 03 04 00 E7 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 10 01 00 35 04 06 00 E1 F6 2F 63 [15:23:16]Write to MH i2c: E2 02 01 CF 4E 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 32 31 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 06 01 00 00 F4 03 04 00 E7 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 10 01 00 35 04 06 00 E1 F6 2F 63 00 00 1C [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 CF 4E 00 90 00 91 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=7 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 02 02 02 1D AE [15:23:16]Write to MH i2c: E2 0A 00 D0 4E 80 0D 02 02 02 00 1D AE 00 00 67 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 03 00 D0 4E 00 90 00 92 [15:23:16]RAPDU: 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 0D 03 02 [15:23:16]Write to MH i2c: E2 08 00 D1 4E 80 0D 03 02 00 00 00 00 9A [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 0B 00 D1 4E 00 3F E9 83 5D 14 66 8A BC 90 00 63 [15:23:16]RAPDU: 3F E9 83 5D 14 66 8A BC 90 00 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_SignData done [15:23:16]FM_MakeSignedData done [15:23:16]CreateOFDProtocolMessage [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 11 00 00 [15:23:16]Write to MH i2c: E2 08 00 D2 4E 80 11 00 00 00 00 00 00 9A [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 17 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 17 00 D2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [15:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:16]wFMCommunicate OK [15:23:16]CreateOFDProtocolMessage done [15:23:16]OFDSenderStorePacket 69872 [15:23:16]StoreOFDPacket docnum=69872 [15:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 02 11 04 01 B2 41 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 32 31 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 06 01 00 00 F4 03 04 00 E7 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 10 01 00 35 04 06 00 E1 F6 2F 63 1D AE 3F E9 83 5D 14 66 8A BC [15:23:16]CheckFolder [15:23:16]dirname=/storage/ofd_packets [15:23:16]CheckFolder done [15:23:16]ProducePacketName [15:23:16]name=ofd_packets/00069872 [15:23:16]NVStorageSaveData ofd_packets/00069872 [15:23:16]File name is /storage/ofd_packets/00069872 [15:23:16]Write 298 bytes [15:23:16]NVStorageSaveData done [15:23:16]OFDSenderStorePacket done [15:23:16]KKMCreateOFDPacket done [15:23:16]NVStorageSaveData kkm_last_timestamp [15:23:16]File name is /storage/kkm_last_timestamp [15:23:16]Write 4 bytes [15:23:16]NVStorageSaveData done [15:23:16]ExternCall_PrintAddStr [15:23:16]wPrintStart [15:23:16]Write to MH i2c: 01 00 00 D3 4E 21 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: 01 07 00 D3 4E 00 00 00 00 00 FF 0F 36 [15:23:16]RasterBufferAndPrint [15:23:16]line Счет N : (1)2885625 [15:23:16]line ИНН: 02508201610067 [15:23:16]line Контрольно-Кассовый Чек [15:23:16]line ПРОДАЖА [15:23:16]line ТРК (МРК, ГНК) : 61 [15:23:16]line Товар: 2710194210 [15:23:16]line ДТ-К-5 [15:23:16]line 13.130 * 76.20 [15:23:16]line = 1000.51 [15:23:16]line НДС 12% НСП 1% [15:23:16]line > о реализуемом товаре [15:23:16]line ОКРУГЛЕНИЕ: -0.51 [15:23:16]line ИТОГО: 1000.00 [15:23:16]line Внесено: 1000.00 [15:23:16]line СДАЧА: 0.00 [15:23:16]line НСП 1% : 8.85 [15:23:16]line НДС 12% : 106.25 [15:23:16]line Наличными: 1000.00 [15:23:16]line Безнал.: 0.00 [15:23:16]line Место: АЗС № 85 "Партнер Нефть" [15:23:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:16]line СНО: Общий режим [15:23:16]line Чек 262 21.10.2024 15:23 [15:23:16]line Смена: 194 ФФД: 1.0 [15:23:16]line ЗНМ: 0300000167 [15:23:16]line РНМ: 0000000000156251 [15:23:16]line Версия ККМ: v1.0 [15:23:16]line ФМ: 0000000000963346 [15:23:16]line ФД: 69872 [15:23:16]line ФПД: 248447473229230 [15:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152319&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69872&fm=248447473229230&tin=02508201610067®Number=0000000000156251&sum=100000 [15:23:16]written 0, free lines is 4095 [15:23:16]OFD Sender: Processing packet 69872 [packets to send 18, broken 17] [15:23:16]ProducePacketName [15:23:16]name=ofd_packets/00069872 [15:23:16]OFD Sender: To server: pG, [15:23:16]CommunicateWithHost lk.salyk.kg:30040 [15:23:16]ConnectInit lk.salyk.kg [15:23:16]Connected sock=10 [15:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 02 11 04 01 B2 41 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 32 31 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 06 01 00 00 F4 03 04 00 E7 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 10 01 00 35 04 06 00 E1 F6 2F 63 1D AE 3F E9 83 5D 14 66 8A BC [15:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0F 73 47 00 7E E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 10 01 00 F4 03 04 00 8A 1B 16 67 B6 04 01 00 00 95 F7 EE 91 4E 6D 14 50 [15:23:17]CommunicateWithHost err = 0 [15:23:17]CheckOFDResponse [15:23:17]1017 (14) - 77093643461234 [15:23:17]1041 (16) - 0000000000963346 [15:23:17]1040 (4) - 69872 [15:23:17]1012 (4) - 21.10.2024 09:14 [15:23:17]1206 (1) - 0 [15:23:17]OFD Sender: Remove packet 69872 [15:23:17]ProducePacketName [15:23:17]name=ofd_packets/00069872 [15:23:17]NVStorageDeleteData [15:23:17]Write to MH i2c: 01 00 00 FE 4E 4C [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: 01 07 00 FE 4E 00 00 00 00 00 02 0D 62 [15:23:17]RasterBufferAndPrint [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]line [15:23:17]written 0, free lines is 3342 [15:23:17]MH_Cut [15:23:17]Write to MH i2c: D1 01 00 05 4F 01 26 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: D1 01 00 05 4F 00 25 [15:23:17]Write to MH i2c: 01 00 00 06 4F 55 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]OFD Sender: No OFD packet to send [15:23:17]*** Cut start [15:23:17]*** Partial cut [15:23:17]*** CUTSNS_PIN = 1 [15:23:17]*** CUTSNS_PIN = 0 [15:23:18]*** Brake cut motor [15:23:18]Read from MH i2c: 01 [15:23:18]MH_I2C_Read... [15:23:18]*** Stop cut motor [15:23:18]*** Cut end [15:23:18]Read from MH i2c: 01 07 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 07 00 06 4F 00 00 00 00 00 FF 0F 6A [15:23:18]process_action close_receipt done [15:23:18]requested_data is exist [15:23:18]produce_requested_data [15:23:18]requested_item fm.sn is exist - process it [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 11 00 00 [15:23:18]Write to MH i2c: E2 08 00 07 4F 80 11 00 00 00 00 00 00 D0 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 07 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [15:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:18]wFMCommunicate OK [15:23:18]requested_item fd.num is exist - process it [15:23:18]SAM_PROTO_GetFieldsCounters [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 00 00 [15:23:18]Write to MH i2c: E2 08 00 08 4F 80 13 00 00 00 00 00 00 D3 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 62 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 62 00 08 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [15:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_GetFieldsCounters done [15:23:18]requested_item shift.num is exist - process it [15:23:18]requested_item shift.opened is exist - process it [15:23:18]req_shift_opened [15:23:18]FM_GetShiftState [15:23:18]SAM_PROTO_GetShiftState [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 01 00 [15:23:18]Write to MH i2c: E2 08 00 09 4F 80 13 01 00 00 00 00 00 D5 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0E 00 09 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 01 [15:23:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_GetShiftState done [15:23:18]FM_GetShiftState done [15:23:18]req_shift_opened done [15:23:18]requested_item shift.open_date is exist - process it [15:23:18]req_shift_open_date [15:23:18]req_shift_open_date done [15:23:18]produce_requested_data done [15:23:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69872,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:23:18]process_action_free close_receipt [15:23:18]json_value_free [15:23:18]json_value_free done [15:23:18]process_json_proto returns [15:23:18]Send response to host [15:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69872,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:23:18]free response buf [15:23:18]execute_script done [15:23:18]execute_script returns [15:23:18]free content buf [15:23:18]Sock 9.Close socket [15:23:18]Sock 9.Thread stoped [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:29]accept exits with 8 [15:23:29]New connection [15:23:29]New thread 3067313508 created [15:23:29]Thread 3067456868 joined [15:23:29]Waiting for new connection... [15:23:29] Sock 8.Parse request [15:23:29]Sock 8.Check first char [15:23:29]Sock 8.First char is OK [15:23:29]request: POST /json_proto HTTP/1.0 [15:23:29]Method: POST [15:23:29]URL: /json_proto [15:23:29]Method is POST - this is cgi request [15:23:29]url: /json_proto [15:23:29]query_string will be loaded in cgi processing [15:23:29]execute_cgi json_proto POST (null) [15:23:29]execute_cgi path=json_proto method=POST [15:23:29]POST find Content-Length [15:23:29]Host: 172.17.50.3:8080 [15:23:29]Content-Length: 675 [15:23:29]Content-Type: application/json [15:23:29] [15:23:29]POST finish read [15:23:29]Found Content-Length = 675 [15:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:29]execute_script... [15:23: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)2885627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:29]POST & json_proto [15:23:29]process_json_proto [15:23:29]json parsed OK: [15:23:29]protocol is kg_v1.0 [15:23:29]action value=close_receipt [15:23:29]process_action close_receipt [15:23:29]cmd_close_receipt [15:23:29]MH_GetDate [15:23:29]Write to MH i2c: F0 00 00 0A 4F 48 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 0A 4F 00 F6 71 16 67 6B 98 1E 66 BC [15:23:29]GetLastDocTimeStamp 1729524199 [15:23:29]current date 1729524214 [15:23:29]FM_GetShiftState [15:23:29]SAM_PROTO_GetShiftState [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 01 00 [15:23:29]Write to MH i2c: E2 08 00 0B 4F 80 13 01 00 00 00 00 00 D7 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 0B 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 03 [15:23:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetShiftState done [15:23:29]FM_GetShiftState done [15:23:29]opened in 1729469703 [15:23:29]opened+sec_in_day 1729556103 [15:23:29]quantity*price = 10058 [15:23:29]sum+1 = 10059 [15:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 263 21.10.2024 15:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69873 ФПД: 73134805344486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152334&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69873&fm=73134805344486&tin=02508201610067®Number=0000000000156251&sum=10000 [15:23:30]StoreToDocumentArchive [15:23:30]shift 194 fd 69873 [15:23:30]save to /storage/0194/doc_00069873 [15:23:30]save last doc name /storage/0194/doc_00069873 to /storage/kkm_last_doc_name [15:23:30]save OK [15:23:30]Clear old archive folders... [15:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:30]tlvbuf is 00D6FEA0 [15:23:30]SAM_PROTO_ClearQueue [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 09 00 00 [15:23:30]Write to MH i2c: E2 08 00 18 4F 80 09 00 00 00 00 00 00 D9 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 18 4F 00 90 00 DB [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_ClearQueue done [15:23:30]KKMCreateOFDPacket [15:23:30]OFDProtocolAddRootSTLVToBuf [15:23:30]FM_MakeSignedData [15:23:30]FM_MakeSignedData [15:23:30]SAM_PROTO_SignData [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 01 02 [15:23:30]Write to MH i2c: E2 08 00 19 4F 80 0D 01 02 00 00 00 00 E1 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 19 4F 00 90 00 DC [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=255 [15:23:30]MH_SAM_APDU [15:23:30]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F6 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 10 01 00 35 04 06 00 42 84 06 17 [15:23:31]Write to MH i2c: E2 02 01 1A 4F 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F6 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 10 01 00 35 04 06 00 42 84 06 17 00 00 41 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 1A 4F 00 90 00 DD [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=7 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 02 02 02 E0 E6 [15:23:31]Write to MH i2c: E2 0A 00 1B 4F 80 0D 02 02 02 00 E0 E6 00 00 AE [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 1B 4F 00 90 00 DE [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 03 02 [15:23:31]Write to MH i2c: E2 08 00 1C 4F 80 0D 03 02 00 00 00 00 E6 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 0B 00 1C 4F 00 32 A1 C0 3E 6A C0 08 2E 90 00 18 [15:23:31]RAPDU: 32 A1 C0 3E 6A C0 08 2E 90 00 [15:23:31]wFMCommunicate OK [15:23:31]SAM_PROTO_SignData done [15:23:31]FM_MakeSignedData done [15:23:31]CreateOFDProtocolMessage [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 11 00 00 [15:23:31]Write to MH i2c: E2 08 00 1D 4F 80 11 00 00 00 00 00 00 E6 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 1D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [15:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:31]wFMCommunicate OK [15:23:31]CreateOFDProtocolMessage done [15:23:31]OFDSenderStorePacket 69873 [15:23:31]StoreOFDPacket docnum=69873 [15:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5B 88 04 01 09 BD 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F6 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 10 01 00 35 04 06 00 42 84 06 17 E0 E6 32 A1 C0 3E 6A C0 08 2E [15:23:31]CheckFolder [15:23:31]dirname=/storage/ofd_packets [15:23:31]CheckFolder done [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00069873 [15:23:31]NVStorageSaveData ofd_packets/00069873 [15:23:31]File name is /storage/ofd_packets/00069873 [15:23:31]Write 298 bytes [15:23:31]NVStorageSaveData done [15:23:31]OFDSenderStorePacket done [15:23:31]KKMCreateOFDPacket done [15:23:31]NVStorageSaveData kkm_last_timestamp [15:23:31]File name is /storage/kkm_last_timestamp [15:23:31]Write 4 bytes [15:23:31]NVStorageSaveData done [15:23:31]ExternCall_PrintAddStr [15:23:31]wPrintStart [15:23:31]Write to MH i2c: 01 00 00 1E 4F 6D [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 1E 4F 00 00 00 00 00 FF 0F 82 [15:23:31]RasterBufferAndPrint [15:23:31]line Счет N : (1)2885627 [15:23:31]line ИНН: 02508201610067 [15:23:31]line Контрольно-Кассовый Чек [15:23:31]line ПРОДАЖА [15:23:31]line ТРК (МРК, ГНК) : 51 [15:23:31]line Товар: 2710194210 [15:23:31]line ДТ-К-5 [15:23:31]line 1.320 * 76.20 [15:23:31]line = 100.58 [15:23:31]line НДС 12% НСП 1% [15:23:31]line > о реализуемом товаре [15:23:31]line ОКРУГЛЕНИЕ: -0.58 [15:23:31]line ИТОГО: 100.00 [15:23:31]line Внесено: 100.00 [15:23:31]line СДАЧА: 0.00 [15:23:31]line НСП 1% : 0.89 [15:23:31]line НДС 12% : 10.68 [15:23:31]line Наличными: 100.00 [15:23:31]line Безнал.: 0.00 [15:23:31]line Место: АЗС № 85 "Партнер Нефть" [15:23:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:31]line СНО: Общий режим [15:23:31]line Чек 263 21.10.2024 15:23 [15:23:31]line Смена: 194 ФФД: 1.0 [15:23:31]line ЗНМ: 0300000167 [15:23:31]line РНМ: 0000000000156251 [15:23:31]line Версия ККМ: v1.0 [15:23:31]line ФМ: 0000000000963346 [15:23:31]line ФД: 69873 [15:23:31]line ФПД: 73134805344486 [15:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152334&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69873&fm=73134805344486&tin=02508201610067®Number=0000000000156251&sum=10000 [15:23:31]written 0, free lines is 4095 [15:23:31]OFD Sender: Processing packet 69873 [packets to send 18, broken 17] [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00069873 [15:23:31]OFD Sender: To server: pG, [15:23:31]CommunicateWithHost lk.salyk.kg:30040 [15:23:31]ConnectInit lk.salyk.kg [15:23:31]Connected sock=10 [15:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5B 88 04 01 09 BD 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 F6 71 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 10 01 00 35 04 06 00 42 84 06 17 E0 E6 32 A1 C0 3E 6A C0 08 2E [15:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E2 10 47 00 34 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 10 01 00 F4 03 04 00 99 1B 16 67 B6 04 01 00 00 94 7C BB 00 29 28 DF 0B [15:23:31]CommunicateWithHost err = 0 [15:23:31]CheckOFDResponse [15:23:31]1017 (14) - 77093643461234 [15:23:31]1041 (16) - 0000000000963346 [15:23:31]1040 (4) - 69873 [15:23:31]1012 (4) - 21.10.2024 09:15 [15:23:31]1206 (1) - 0 [15:23:31]OFD Sender: Remove packet 69873 [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00069873 [15:23:31]NVStorageDeleteData [15:23:31]Write to MH i2c: 01 00 00 49 4F 98 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 49 4F 00 00 00 00 00 EF 0C 9A [15:23:31]RasterBufferAndPrint [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]written 0, free lines is 3323 [15:23:31]MH_Cut [15:23:31]Write to MH i2c: D1 01 00 50 4F 01 71 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 50 4F 00 70 [15:23:31]Write to MH i2c: 01 00 00 51 4F A0 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:32]OFD Sender: No OFD packet to send [15:23:32]*** Cut start [15:23:32]*** Partial cut [15:23:32]*** CUTSNS_PIN = 1 [15:23:32]*** CUTSNS_PIN = 0 [15:23:32]*** Brake cut motor [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]*** Stop cut motor [15:23:33]*** Cut end [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 51 4F 00 00 00 00 00 FF 0F B5 [15:23:33]process_action close_receipt done [15:23:33]requested_data is exist [15:23:33]produce_requested_data [15:23:33]requested_item fm.sn is exist - process it [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 52 4F 80 11 00 00 00 00 00 00 1B [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 52 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [15:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:33]wFMCommunicate OK [15:23:33]requested_item fd.num is exist - process it [15:23:33]SAM_PROTO_GetFieldsCounters [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 00 00 [15:23:33]Write to MH i2c: E2 08 00 53 4F 80 13 00 00 00 00 00 00 1E [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 53 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetFieldsCounters done [15:23:33]requested_item shift.num is exist - process it [15:23:33]requested_item shift.opened is exist - process it [15:23:33]req_shift_opened [15:23:33]FM_GetShiftState [15:23:33]SAM_PROTO_GetShiftState [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 01 00 [15:23:33]Write to MH i2c: E2 08 00 54 4F 80 13 01 00 00 00 00 00 20 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 54 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4C [15:23:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetShiftState done [15:23:33]FM_GetShiftState done [15:23:33]req_shift_opened done [15:23:33]requested_item shift.open_date is exist - process it [15:23:33]req_shift_open_date [15:23:33]req_shift_open_date done [15:23:33]produce_requested_data done [15:23:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69873,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:23:33]process_action_free close_receipt [15:23:33]json_value_free [15:23:33]json_value_free done [15:23:33]process_json_proto returns [15:23:33]Send response to host [15:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69873,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:23:33]free response buf [15:23:33]execute_script done [15:23:33]execute_script returns [15:23:33]free content buf [15:23:33]Sock 8.Close socket [15:23:33]Sock 8.Thread stoped [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:46]accept exits with 9 [15:23:46]New connection [15:23:46]New thread 3067456868 created [15:23:46]Thread 3067313508 joined [15:23:46]Waiting for new connection... [15:23:46] Sock 9.Parse request [15:23:46]Sock 9.Check first char [15:23:46]Sock 9.First char is OK [15:23:46]request: POST /json_proto HTTP/1.0 [15:23:46]Method: POST [15:23:46]URL: /json_proto [15:23:46]Method is POST - this is cgi request [15:23:46]url: /json_proto [15:23:46]query_string will be loaded in cgi processing [15:23:46]execute_cgi json_proto POST (null) [15:23:46]execute_cgi path=json_proto method=POST [15:23:46]POST find Content-Length [15:23:46]Host: 172.17.50.3:8080 [15:23:46]Content-Length: 683 [15:23:46]Content-Type: application/json [15:23:46] [15:23:46]POST finish read [15:23:46]Found Content-Length = 683 [15:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885626", "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" : 18.060, "sum" : 1340.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:46]execute_script... [15:23: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)2885626", "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" : 18.060, "sum" : 1340.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:46]POST & json_proto [15:23:46]process_json_proto [15:23:46]json parsed OK: [15:23:46]protocol is kg_v1.0 [15:23:46]action value=close_receipt [15:23:46]process_action close_receipt [15:23:46]cmd_close_receipt [15:23:46]MH_GetDate [15:23:46]Write to MH i2c: F0 00 00 55 4F 93 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: F0 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: F0 09 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: F0 09 00 55 4F 00 07 72 16 67 6B 98 1E 66 19 [15:23:46]GetLastDocTimeStamp 1729524214 [15:23:46]current date 1729524231 [15:23:46]FM_GetShiftState [15:23:46]SAM_PROTO_GetShiftState [15:23:46]wFMCommunicate request_size=4 [15:23:46]MH_SAM_APDU [15:23:46]CAPDU: 80 13 01 00 [15:23:46]Write to MH i2c: E2 08 00 56 4F 80 13 01 00 00 00 00 00 22 [15:23:46]Write i2c OK [15:23:46]MH_I2C_Read... [15:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:46]Read from MH i2c: E2 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 0E 00 [15:23:46]MH_I2C_Read... [15:23:46]Read from MH i2c: E2 0E 00 56 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4E [15:23:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:46]wFMCommunicate OK [15:23:46]SAM_PROTO_GetShiftState done [15:23:46]FM_GetShiftState done [15:23:46]opened in 1729469703 [15:23:46]opened+sec_in_day 1729556103 [15:23:46]quantity*price = 134005 [15:23:46]sum+1 = 134006 [15:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.31 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 264 21.10.2024 15:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69874 ФПД: 215576278523016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152351&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69874&fm=215576278523016&tin=02508201610067®Number=0000000000156251&sum=134000 [15:23:48]StoreToDocumentArchive [15:23:48]shift 194 fd 69874 [15:23:48]save to /storage/0194/doc_00069874 [15:23:48]save last doc name /storage/0194/doc_00069874 to /storage/kkm_last_doc_name [15:23:48]save OK [15:23:48]Clear old archive folders... [15:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:48]tlvbuf is 00DCFBC0 [15:23:48]SAM_PROTO_ClearQueue [15:23:48]wFMCommunicate request_size=4 [15:23:48]MH_SAM_APDU [15:23:48]CAPDU: 80 09 00 00 [15:23:48]Write to MH i2c: E2 08 00 63 4F 80 09 00 00 00 00 00 00 24 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 63 4F 00 90 00 26 [15:23:48]RAPDU: 90 00 [15:23:48]wFMCommunicate OK [15:23:48]SAM_PROTO_ClearQueue done [15:23:48]KKMCreateOFDPacket [15:23:48]OFDProtocolAddRootSTLVToBuf [15:23:48]FM_MakeSignedData [15:23:48]FM_MakeSignedData [15:23:48]SAM_PROTO_SignData [15:23:48]wFMCommunicate request_size=4 [15:23:48]MH_SAM_APDU [15:23:48]CAPDU: 80 0D 01 02 [15:23:48]Write to MH i2c: E2 08 00 64 4F 80 0D 01 02 00 00 00 00 2C [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 64 4F 00 90 00 27 [15:23:48]RAPDU: 90 00 [15:23:48]wFMCommunicate OK [15:23:48]wFMCommunicate request_size=255 [15:23:48]MH_SAM_APDU [15:23: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 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 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 07 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 10 01 00 35 04 06 00 C4 [15:23:48]Write to MH i2c: E2 02 01 65 4F 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 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 07 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 10 01 00 35 04 06 00 C4 00 00 96 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 65 4F 00 90 00 28 [15:23:48]RAPDU: 90 00 [15:23:48]wFMCommunicate OK [15:23:48]wFMCommunicate request_size=10 [15:23:48]MH_SAM_APDU [15:23:48]CAPDU: 80 0D 02 02 05 10 C3 80 DC 88 [15:23:48]Write to MH i2c: E2 0D 00 66 4F 80 0D 02 02 05 00 10 C3 80 DC 88 00 00 F0 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 03 00 66 4F 00 90 00 29 [15:23:48]RAPDU: 90 00 [15:23:48]wFMCommunicate OK [15:23:48]wFMCommunicate request_size=4 [15:23:48]MH_SAM_APDU [15:23:48]CAPDU: 80 0D 03 02 [15:23:48]Write to MH i2c: E2 08 00 67 4F 80 0D 03 02 00 00 00 00 31 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 0B 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 0B 00 67 4F 00 55 35 ED FF 25 55 68 F3 90 00 7D [15:23:48]RAPDU: 55 35 ED FF 25 55 68 F3 90 00 [15:23:48]wFMCommunicate OK [15:23:48]SAM_PROTO_SignData done [15:23:48]FM_MakeSignedData done [15:23:48]CreateOFDProtocolMessage [15:23:48]wFMCommunicate request_size=4 [15:23:48]MH_SAM_APDU [15:23:48]CAPDU: 80 11 00 00 [15:23:48]Write to MH i2c: E2 08 00 68 4F 80 11 00 00 00 00 00 00 31 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 [15:23:48]MH_I2C_Read... [15:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:48]Read from MH i2c: E2 17 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: E2 17 00 68 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [15:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:48]wFMCommunicate OK [15:23:48]CreateOFDProtocolMessage done [15:23:48]OFDSenderStorePacket 69874 [15:23:48]StoreOFDPacket docnum=69874 [15:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D D8 07 01 3B 50 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 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 07 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 10 01 00 35 04 06 00 C4 10 C3 80 DC 88 55 35 ED FF 25 55 68 F3 [15:23:48]CheckFolder [15:23:48]dirname=/storage/ofd_packets [15:23:48]CheckFolder done [15:23:48]ProducePacketName [15:23:48]name=ofd_packets/00069874 [15:23:48]NVStorageSaveData ofd_packets/00069874 [15:23:48]File name is /storage/ofd_packets/00069874 [15:23:48]Write 301 bytes [15:23:48]NVStorageSaveData done [15:23:48]OFDSenderStorePacket done [15:23:48]KKMCreateOFDPacket done [15:23:48]NVStorageSaveData kkm_last_timestamp [15:23:48]File name is /storage/kkm_last_timestamp [15:23:48]Write 4 bytes [15:23:48]NVStorageSaveData done [15:23:48]ExternCall_PrintAddStr [15:23:48]wPrintStart [15:23:48]Write to MH i2c: 01 00 00 69 4F B8 [15:23:48]Write i2c OK [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: 01 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: 01 07 00 [15:23:48]MH_I2C_Read... [15:23:48]Read from MH i2c: 01 07 00 69 4F 00 00 00 00 00 FF 0F CD [15:23:48]RasterBufferAndPrint [15:23:48]line Счет N : (1)2885626 [15:23:48]line ИНН: 02508201610067 [15:23:48]line Контрольно-Кассовый Чек [15:23:48]line ПРОДАЖА [15:23:48]line ТРК (МРК, ГНК) : 43 [15:23:48]line Товар: 2710124500 [15:23:48]line Аи-95-К-5 [15:23:48]line 18.060 * 74.20 [15:23:48]line = 1340.05 [15:23:48]line НДС 12% НСП 1% [15:23:48]line > о реализуемом товаре [15:23:48]line ОКРУГЛЕНИЕ: -0.05 [15:23:48]line ИТОГО: 1340.00 [15:23:48]line Внесено: 1340.00 [15:23:48]line СДАЧА: 0.00 [15:23:48]line НСП 1% : 11.86 [15:23:48]line НДС 12% : 142.31 [15:23:48]line Наличными: 1340.00 [15:23:48]line Безнал.: 0.00 [15:23:48]line Место: АЗС № 85 "Партнер Нефть" [15:23:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:23:48]line СНО: Общий режим [15:23:48]line Чек 264 21.10.2024 15:23 [15:23:48]line Смена: 194 ФФД: 1.0 [15:23:48]line ЗНМ: 0300000167 [15:23:48]line РНМ: 0000000000156251 [15:23:48]line Версия ККМ: v1.0 [15:23:48]line ФМ: 0000000000963346 [15:23:48]line ФД: 69874 [15:23:48]line ФПД: 215576278523016 [15:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152351&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69874&fm=215576278523016&tin=02508201610067®Number=0000000000156251&sum=134000 [15:23:48]written 0, free lines is 4095 [15:23:48]OFD Sender: Processing packet 69874 [packets to send 18, broken 17] [15:23:48]ProducePacketName [15:23:48]name=ofd_packets/00069874 [15:23:48]OFD Sender: To server: pG, [15:23:48]CommunicateWithHost lk.salyk.kg:30040 [15:23:48]ConnectInit lk.salyk.kg [15:23:48]Connected sock=10 [15:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D D8 07 01 3B 50 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 46 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 75 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 07 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 10 01 00 35 04 06 00 C4 10 C3 80 DC 88 55 35 ED FF 25 55 68 F3 [15:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 01 ED 47 00 D6 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 39 36 33 33 34 36 10 04 04 00 F2 10 01 00 F4 03 04 00 AA 1B 16 67 B6 04 01 00 00 37 66 D4 8E D7 76 B3 8D [15:23:49]CommunicateWithHost err = 0 [15:23:49]CheckOFDResponse [15:23:49]1017 (14) - 77093643461234 [15:23:49]1041 (16) - 0000000000963346 [15:23:49]1040 (4) - 69874 [15:23:49]1012 (4) - 21.10.2024 09:15 [15:23:49]1206 (1) - 0 [15:23:49]OFD Sender: Remove packet 69874 [15:23:49]ProducePacketName [15:23:49]name=ofd_packets/00069874 [15:23:49]NVStorageDeleteData [15:23:49]Write to MH i2c: 01 00 00 94 4F E3 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 07 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 07 00 94 4F 00 00 00 00 00 FD 0C F3 [15:23:49]RasterBufferAndPrint [15:23:49]line [15:23:49]line [15:23:49]line [15:23:49]line [15:23:49]line [15:23:49]written 0, free lines is 3337 [15:23:49]MH_Cut [15:23:49]Write to MH i2c: D1 01 00 9B 4F 01 BC [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: D1 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: D1 01 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: D1 01 00 9B 4F 00 BB [15:23:49]Write to MH i2c: 01 00 00 9C 4F EB [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]OFD Sender: No OFD packet to send [15:23:49]*** Cut start [15:23:49]*** Partial cut [15:23:49]*** CUTSNS_PIN = 1 [15:23:49]*** CUTSNS_PIN = 0 [15:23:50]*** Brake cut motor [15:23:50]Read from MH i2c: 01 [15:23:50]MH_I2C_Read... [15:23:50]*** Stop cut motor [15:23:50]*** Cut end [15:23:50]Read from MH i2c: 01 07 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: 01 07 00 9C 4F 00 00 00 00 00 FF 0F 00 [15:23:50]process_action close_receipt done [15:23:50]requested_data is exist [15:23:50]produce_requested_data [15:23:50]requested_item fm.sn is exist - process it [15:23:50]wFMCommunicate request_size=4 [15:23:50]MH_SAM_APDU [15:23:50]CAPDU: 80 11 00 00 [15:23:50]Write to MH i2c: E2 08 00 9D 4F 80 11 00 00 00 00 00 00 66 [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:50]Read from MH i2c: E2 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 17 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 17 00 9D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [15:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:23:50]wFMCommunicate OK [15:23:50]requested_item fd.num is exist - process it [15:23:50]SAM_PROTO_GetFieldsCounters [15:23:50]wFMCommunicate request_size=4 [15:23:50]MH_SAM_APDU [15:23:50]CAPDU: 80 13 00 00 [15:23:50]Write to MH i2c: E2 08 00 9E 4F 80 13 00 00 00 00 00 00 69 [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:50]Read from MH i2c: E2 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 62 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 62 00 9E 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:50]wFMCommunicate OK [15:23:50]SAM_PROTO_GetFieldsCounters done [15:23:50]requested_item shift.num is exist - process it [15:23:50]requested_item shift.opened is exist - process it [15:23:50]req_shift_opened [15:23:50]FM_GetShiftState [15:23:50]SAM_PROTO_GetShiftState [15:23:50]wFMCommunicate request_size=4 [15:23:50]MH_SAM_APDU [15:23:50]CAPDU: 80 13 01 00 [15:23:50]Write to MH i2c: E2 08 00 9F 4F 80 13 01 00 00 00 00 00 6B [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:50]Read from MH i2c: E2 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 0E 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 0E 00 9F 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 97 [15:23:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:23:50]wFMCommunicate OK [15:23:50]SAM_PROTO_GetShiftState done [15:23:50]FM_GetShiftState done [15:23:50]req_shift_opened done [15:23:50]requested_item shift.open_date is exist - process it [15:23:50]req_shift_open_date [15:23:50]req_shift_open_date done [15:23:50]produce_requested_data done [15:23:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69874,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:23:50]process_action_free close_receipt [15:23:50]json_value_free [15:23:50]json_value_free done [15:23:50]process_json_proto returns [15:23:50]Send response to host [15:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69874,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:23:50]free response buf [15:23:50]execute_script done [15:23:50]execute_script returns [15:23:50]free content buf [15:23:50]Sock 9.Close socket [15:23:50]Sock 9.Thread stoped [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:23]accept exits with 8 [15:25:23]New connection [15:25:23]New thread 3067313508 created [15:25:23]Thread 3067456868 joined [15:25:23]Waiting for new connection... [15:25:23] Sock 8.Parse request [15:25:23]Sock 8.Check first char [15:25:23]Sock 8.First char is OK [15:25:23]request: POST /json_proto HTTP/1.0 [15:25:23]Method: POST [15:25:23]URL: /json_proto [15:25:23]Method is POST - this is cgi request [15:25:23]url: /json_proto [15:25:23]query_string will be loaded in cgi processing [15:25:23]execute_cgi json_proto POST (null) [15:25:23]execute_cgi path=json_proto method=POST [15:25:23]POST find Content-Length [15:25:23]Host: 172.17.50.3:8080 [15:25:23]Content-Length: 755 [15:25:23]Content-Type: application/json [15:25:23] [15:25:23]POST finish read [15:25:23]Found Content-Length = 755 [15:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136188", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:23]execute_script... [15:25:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136188", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:23]POST & json_proto [15:25:23]process_json_proto [15:25:23]json parsed OK: [15:25:23]protocol is kg_v1.0 [15:25:23]action value=close_receipt [15:25:23]process_action close_receipt [15:25:23]cmd_close_receipt [15:25:23]MH_GetDate [15:25:23]Write to MH i2c: F0 00 00 A0 4F DE [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: F0 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: F0 09 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: F0 09 00 A0 4F 00 67 72 16 67 6B 98 1E 66 C4 [15:25:23]GetLastDocTimeStamp 1729524231 [15:25:23]current date 1729524327 [15:25:23]FM_GetShiftState [15:25:23]SAM_PROTO_GetShiftState [15:25:23]wFMCommunicate request_size=4 [15:25:23]MH_SAM_APDU [15:25:23]CAPDU: 80 13 01 00 [15:25:23]Write to MH i2c: E2 08 00 A1 4F 80 13 01 00 00 00 00 00 6D [15:25:23]Write i2c OK [15:25:23]MH_I2C_Read... [15:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:23]Read from MH i2c: E2 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 0E 00 [15:25:23]MH_I2C_Read... [15:25:23]Read from MH i2c: E2 0E 00 A1 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 99 [15:25:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:25:23]wFMCommunicate OK [15:25:23]SAM_PROTO_GetShiftState done [15:25:23]FM_GetShiftState done [15:25:23]opened in 1729469703 [15:25:23]opened+sec_in_day 1729556103 [15:25:23]quantity*price = 0 [15:25:23]sum+1 = 1 [15:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 265 21.10.2024 15:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30136188 ФМ: 0000000000963346 ФД: 69875 ФПД: 117881809307149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69875&fm=117881809307149&tin=02508201610067®Number=0000000000156251&sum=0 [15:25:24]StoreToDocumentArchive [15:25:24]shift 194 fd 69875 [15:25:24]save to /storage/0194/doc_00069875 [15:25:24]save last doc name /storage/0194/doc_00069875 to /storage/kkm_last_doc_name [15:25:24]save OK [15:25:24]Clear old archive folders... [15:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:24]tlvbuf is 00D26E00 [15:25:24]SAM_PROTO_ClearQueue [15:25:24]wFMCommunicate request_size=4 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 09 00 00 [15:25:24]Write to MH i2c: E2 08 00 AE 4F 80 09 00 00 00 00 00 00 6F [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 AE 4F 00 90 00 71 [15:25:24]RAPDU: 90 00 [15:25:24]wFMCommunicate OK [15:25:24]SAM_PROTO_ClearQueue done [15:25:24]KKMCreateOFDPacket [15:25:24]OFDProtocolAddRootSTLVToBuf [15:25:24]FM_MakeSignedData [15:25:24]FM_MakeSignedData [15:25:24]SAM_PROTO_SignData [15:25:24]wFMCommunicate request_size=4 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 0D 01 02 [15:25:24]Write to MH i2c: E2 08 00 AF 4F 80 0D 01 02 00 00 00 00 77 [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 AF 4F 00 90 00 72 [15:25:24]RAPDU: 90 00 [15:25:24]wFMCommunicate OK [15:25:24]wFMCommunicate request_size=255 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 67 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 10 01 00 35 04 06 00 6B [15:25:24]Write to MH i2c: E2 02 01 B0 4F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 67 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 10 01 00 35 04 06 00 6B 00 00 E8 [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]OFD Sender: No OFD packet to send [15:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 B0 4F 00 90 00 73 [15:25:24]RAPDU: 90 00 [15:25:24]wFMCommunicate OK [15:25:24]wFMCommunicate request_size=10 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 0D 02 02 05 36 7F 5E 86 0D [15:25:24]Write to MH i2c: E2 0D 00 B1 4F 80 0D 02 02 05 00 36 7F 5E 86 0D 00 00 2A [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 03 00 B1 4F 00 90 00 74 [15:25:24]RAPDU: 90 00 [15:25:24]wFMCommunicate OK [15:25:24]wFMCommunicate request_size=4 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 0D 03 02 [15:25:24]Write to MH i2c: E2 08 00 B2 4F 80 0D 03 02 00 00 00 00 7C [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 0B 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 0B 00 B2 4F 00 67 43 14 CD 19 8B DF 54 90 00 DF [15:25:24]RAPDU: 67 43 14 CD 19 8B DF 54 90 00 [15:25:24]wFMCommunicate OK [15:25:24]SAM_PROTO_SignData done [15:25:24]FM_MakeSignedData done [15:25:24]CreateOFDProtocolMessage [15:25:24]wFMCommunicate request_size=4 [15:25:24]MH_SAM_APDU [15:25:24]CAPDU: 80 11 00 00 [15:25:24]Write to MH i2c: E2 08 00 B3 4F 80 11 00 00 00 00 00 00 7C [15:25:24]Write i2c OK [15:25:24]MH_I2C_Read... [15:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:24]Read from MH i2c: E2 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 17 00 [15:25:24]MH_I2C_Read... [15:25:24]Read from MH i2c: E2 17 00 B3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [15:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:25:24]wFMCommunicate OK [15:25:24]CreateOFDProtocolMessage done [15:25:24]OFDSenderStorePacket 69875 [15:25:24]StoreOFDPacket docnum=69875 [15:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 75 07 01 FD 81 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 67 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 10 01 00 35 04 06 00 6B 36 7F 5E 86 0D 67 43 14 CD 19 8B DF 54 [15:25:24]CheckFolder [15:25:24]dirname=/storage/ofd_packets [15:25:24]CheckFolder done [15:25:24]ProducePacketName [15:25:24]name=ofd_packets/00069875 [15:25:24]NVStorageSaveData ofd_packets/00069875 [15:25:24]File name is /storage/ofd_packets/00069875 [15:25:24]Write 301 bytes [15:25:24]NVStorageSaveData done [15:25:24]OFDSenderStorePacket done [15:25:25]KKMCreateOFDPacket done [15:25:25]NVStorageSaveData kkm_last_timestamp [15:25:25]File name is /storage/kkm_last_timestamp [15:25:25]Write 4 bytes [15:25:25]NVStorageSaveData done [15:25:25]ExternCall_PrintAddStr [15:25:25]wPrintStart [15:25:25]Write to MH i2c: 01 00 00 B4 4F 03 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 07 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 07 00 B4 4F 00 00 00 00 00 FF 0F 18 [15:25:25]RasterBufferAndPrint [15:25:25]line Счет N : (1)2885628 [15:25:25]line ИНН: 02508201610067 [15:25:25]line Контрольно-Кассовый Чек [15:25:25]line ПРОДАЖА [15:25:25]line ТРК (МРК, ГНК) : 22 [15:25:25]line Товар: 2710124130 [15:25:25]line Аи-92-К-5 [15:25:25]line 40.000 * 0.00 [15:25:25]line = 0.00 [15:25:25]line НДС 12% НСП 1% [15:25:25]line > о реализуемом товаре [15:25:25]line ИТОГО: 0.00 [15:25:25]line НСП 1% : 0.00 [15:25:25]line НДС 12% : 0.00 [15:25:25]line Наличными: 0.00 [15:25:25]line Безнал.: 0.00 [15:25:25]line Место: АЗС № 85 "Партнер Нефть" [15:25:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:25:25]line СНО: Общий режим [15:25:25]line Чек 265 21.10.2024 15:25 [15:25:25]line Смена: 194 ФФД: 1.0 [15:25:25]line ЗНМ: 0300000167 [15:25:25]line РНМ: 0000000000156251 [15:25:25]line Версия ККМ: v1.0 [15:25:25]line Талоны: ТК ГПНА Online [15:25:25]line 30136188 [15:25:25]line ФМ: 0000000000963346 [15:25:25]line ФД: 69875 [15:25:25]line ФПД: 117881809307149 [15:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69875&fm=117881809307149&tin=02508201610067®Number=0000000000156251&sum=0 [15:25:25]OFD Sender: Processing packet 69875 [packets to send 18, broken 17] [15:25:25]ProducePacketName [15:25:25]name=ofd_packets/00069875 [15:25:25]OFD Sender: To server: pG, [15:25:25]CommunicateWithHost lk.salyk.kg:30040 [15:25:25]ConnectInit lk.salyk.kg [15:25:25]written 0, free lines is 4095 [15:25:25]Connected sock=11 [15:25:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 75 07 01 FD 81 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 67 72 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 10 01 00 35 04 06 00 6B 36 7F 5E 86 0D 67 43 14 CD 19 8B DF 54 [15:25:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 93 47 00 46 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 10 01 00 F4 03 04 00 0B 1C 16 67 B6 04 01 00 00 FC E4 5D E7 C2 04 88 BE [15:25:25]CommunicateWithHost err = 0 [15:25:25]CheckOFDResponse [15:25:25]1017 (14) - 77093643461234 [15:25:25]1041 (16) - 0000000000963346 [15:25:25]1040 (4) - 69875 [15:25:25]1012 (4) - 21.10.2024 09:16 [15:25:25]1206 (1) - 0 [15:25:25]OFD Sender: Remove packet 69875 [15:25:25]ProducePacketName [15:25:25]name=ofd_packets/00069875 [15:25:25]NVStorageDeleteData [15:25:25]Write to MH i2c: 01 00 00 DE 4F 2D [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 07 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: 01 07 00 DE 4F 00 00 00 00 00 02 0D 43 [15:25:25]RasterBufferAndPrint [15:25:25]line [15:25:25]line [15:25:25]line [15:25:25]line [15:25:25]line [15:25:25]written 0, free lines is 3336 [15:25:25]MH_Cut [15:25:25]Write to MH i2c: D1 01 00 E5 4F 01 06 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: D1 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: D1 01 00 [15:25:25]MH_I2C_Read... [15:25:25]Read from MH i2c: D1 01 00 E5 4F 00 05 [15:25:25]Write to MH i2c: 01 00 00 E6 4F 35 [15:25:25]Write i2c OK [15:25:25]MH_I2C_Read... [15:25:26]OFD Sender: No OFD packet to send [15:25:26]*** Cut start [15:25:26]*** Partial cut [15:25:26]*** CUTSNS_PIN = 1 [15:25:26]*** CUTSNS_PIN = 0 [15:25:26]*** Brake cut motor [15:25:27]Read from MH i2c: 01 [15:25:27]MH_I2C_Read... [15:25:27]*** Stop cut motor [15:25:27]*** Cut end [15:25:27]Read from MH i2c: 01 07 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: 01 07 00 E6 4F 00 00 00 00 00 FF 0F 4A [15:25:27]process_action close_receipt done [15:25:27]requested_data is exist [15:25:27]produce_requested_data [15:25:27]requested_item fm.sn is exist - process it [15:25:27]wFMCommunicate request_size=4 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 11 00 00 [15:25:27]Write to MH i2c: E2 08 00 E7 4F 80 11 00 00 00 00 00 00 B0 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 17 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 17 00 E7 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [15:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:25:27]wFMCommunicate OK [15:25:27]requested_item fd.num is exist - process it [15:25:27]SAM_PROTO_GetFieldsCounters [15:25:27]wFMCommunicate request_size=4 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 13 00 00 [15:25:27]Write to MH i2c: E2 08 00 E8 4F 80 13 00 00 00 00 00 00 B3 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 62 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 62 00 E8 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:25:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:27]wFMCommunicate OK [15:25:27]SAM_PROTO_GetFieldsCounters done [15:25:27]requested_item shift.num is exist - process it [15:25:27]requested_item shift.opened is exist - process it [15:25:27]req_shift_opened [15:25:27]FM_GetShiftState [15:25:27]SAM_PROTO_GetShiftState [15:25:27]wFMCommunicate request_size=4 [15:25:27]MH_SAM_APDU [15:25:27]CAPDU: 80 13 01 00 [15:25:27]Write to MH i2c: E2 08 00 E9 4F 80 13 01 00 00 00 00 00 B5 [15:25:27]Write i2c OK [15:25:27]MH_I2C_Read... [15:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:27]Read from MH i2c: E2 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 0E 00 [15:25:27]MH_I2C_Read... [15:25:27]Read from MH i2c: E2 0E 00 E9 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E1 [15:25:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:25:27]wFMCommunicate OK [15:25:27]SAM_PROTO_GetShiftState done [15:25:27]FM_GetShiftState done [15:25:27]req_shift_opened done [15:25:27]requested_item shift.open_date is exist - process it [15:25:27]req_shift_open_date [15:25:27]req_shift_open_date done [15:25:27]produce_requested_data done [15:25:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69875,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:25:27]process_action_free close_receipt [15:25:27]json_value_free [15:25:27]json_value_free done [15:25:27]process_json_proto returns [15:25:27]Send response to host [15:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69875,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:25:27]free response buf [15:25:27]execute_script done [15:25:27]execute_script returns [15:25:27]free content buf [15:25:27]Sock 8.Close socket [15:25:27]Sock 8.Thread stoped [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:22]accept exits with 9 [15:28:22]New connection [15:28:22]New thread 3067456868 created [15:28:22]Thread 3067313508 joined [15:28:22]Waiting for new connection... [15:28:22] Sock 9.Parse request [15:28:22]Sock 9.Check first char [15:28:22]Sock 9.First char is OK [15:28:22]request: POST /json_proto HTTP/1.0 [15:28:22]Method: POST [15:28:22]URL: /json_proto [15:28:22]Method is POST - this is cgi request [15:28:22]url: /json_proto [15:28:22]query_string will be loaded in cgi processing [15:28:22]execute_cgi json_proto POST (null) [15:28:22]execute_cgi path=json_proto method=POST [15:28:22]POST find Content-Length [15:28:22]Host: 172.17.50.3:8080 [15:28:22]Content-Length: 767 [15:28:22]Content-Type: application/json [15:28:22] [15:28:22]POST finish read [15:28:22]Found Content-Length = 767 [15:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:22]execute_script... [15:28:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:22]POST & json_proto [15:28:22]process_json_proto [15:28:22]json parsed OK: [15:28:22]protocol is kg_v1.0 [15:28:22]action value=close_receipt [15:28:22]process_action close_receipt [15:28:22]cmd_close_receipt [15:28:22]MH_GetDate [15:28:22]Write to MH i2c: F0 00 00 EA 4F 28 [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 09 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 09 00 EA 4F 00 1A 73 16 67 6B 98 1E 66 C2 [15:28:22]GetLastDocTimeStamp 1729524327 [15:28:22]current date 1729524506 [15:28:22]FM_GetShiftState [15:28:22]SAM_PROTO_GetShiftState [15:28:22]wFMCommunicate request_size=4 [15:28:22]MH_SAM_APDU [15:28:22]CAPDU: 80 13 01 00 [15:28:22]Write to MH i2c: E2 08 00 EB 4F 80 13 01 00 00 00 00 00 B7 [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0E 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0E 00 EB 4F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E3 [15:28:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:28:22]wFMCommunicate OK [15:28:22]SAM_PROTO_GetShiftState done [15:28:22]FM_GetShiftState done [15:28:22]opened in 1729469703 [15:28:22]opened+sec_in_day 1729556103 [15:28:22]quantity*price = 100050 [15:28:22]sum+1 = 100052 [15:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 266 21.10.2024 15:28 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69876 ФПД: 156090541769153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152826&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69876&fm=156090541769153&tin=02508201610067®Number=0000000000156251&sum=100051 [15:28:23]StoreToDocumentArchive [15:28:23]shift 194 fd 69876 [15:28:23]save to /storage/0194/doc_00069876 [15:28:23]save last doc name /storage/0194/doc_00069876 to /storage/kkm_last_doc_name [15:28:23]save OK [15:28:23]Clear old archive folders... [15:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:28:23]tlvbuf is 00C4C280 [15:28:23]SAM_PROTO_ClearQueue [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 09 00 00 [15:28:23]Write to MH i2c: E2 08 00 F8 4F 80 09 00 00 00 00 00 00 B9 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 F8 4F 00 90 00 BB [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_ClearQueue done [15:28:23]KKMCreateOFDPacket [15:28:23]OFDProtocolAddRootSTLVToBuf [15:28:23]FM_MakeSignedData [15:28:23]FM_MakeSignedData [15:28:23]SAM_PROTO_SignData [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 01 02 [15:28:23]Write to MH i2c: E2 08 00 F9 4F 80 0D 01 02 00 00 00 00 C1 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 F9 4F 00 90 00 BC [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=255 [15:28:23]MH_SAM_APDU [15:28:23]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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 1A 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 10 01 00 35 04 06 00 8D F6 A9 4B [15:28:23]Write to MH i2c: E2 02 01 FA 4F 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 1A 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 10 01 00 35 04 06 00 8D F6 A9 4B 00 00 F9 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 FA 4F 00 90 00 BD [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=7 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 02 02 02 81 C1 [15:28:23]Write to MH i2c: E2 0A 00 FB 4F 80 0D 02 02 02 00 81 C1 00 00 0A [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 FB 4F 00 90 00 BE [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 03 02 [15:28:23]Write to MH i2c: E2 08 00 FC 4F 80 0D 03 02 00 00 00 00 C6 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 FC 4F 00 DE 0A DE FF EC 21 F7 13 90 00 A3 [15:28:23]RAPDU: DE 0A DE FF EC 21 F7 13 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_SignData done [15:28:23]FM_MakeSignedData done [15:28:23]CreateOFDProtocolMessage [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 11 00 00 [15:28:23]Write to MH i2c: E2 08 00 FD 4F 80 11 00 00 00 00 00 00 C6 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 FD 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [15:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:28:23]wFMCommunicate OK [15:28:23]CreateOFDProtocolMessage done [15:28:23]OFDSenderStorePacket 69876 [15:28:23]StoreOFDPacket docnum=69876 [15:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2F E4 04 01 43 25 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 1A 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 10 01 00 35 04 06 00 8D F6 A9 4B 81 C1 DE 0A DE FF EC 21 F7 13 [15:28:23]CheckFolder [15:28:23]dirname=/storage/ofd_packets [15:28:23]CheckFolder done [15:28:23]ProducePacketName [15:28:23]name=ofd_packets/00069876 [15:28:23]NVStorageSaveData ofd_packets/00069876 [15:28:23]File name is /storage/ofd_packets/00069876 [15:28:23]Write 298 bytes [15:28:23]NVStorageSaveData done [15:28:23]OFDSenderStorePacket done [15:28:23]KKMCreateOFDPacket done [15:28:23]NVStorageSaveData kkm_last_timestamp [15:28:23]File name is /storage/kkm_last_timestamp [15:28:23]Write 4 bytes [15:28:23]NVStorageSaveData done [15:28:23]ExternCall_PrintAddStr [15:28:23]wPrintStart [15:28:23]Write to MH i2c: 01 00 00 FE 4F 4D [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 FE 4F 00 00 00 00 00 FF 0F 62 [15:28:23]RasterBufferAndPrint [15:28:23]line Счет N : (1)2885629 [15:28:23]line ИНН: 02508201610067 [15:28:23]line Контрольно-Кассовый Чек [15:28:23]line ПРОДАЖА [15:28:23]line ТРК (МРК, ГНК) : 51 [15:28:23]line Товар: 2710194210 [15:28:23]line ДТ-К-5 [15:28:23]line 13.130 * 76.20 [15:28:23]line = 1000.51 [15:28:23]line НДС 12% НСП 1% [15:28:23]line > о реализуемом товаре [15:28:23]line ИТОГО: 1000.51 [15:28:23]line НСП 1% : 8.85 [15:28:23]line НДС 12% : 106.25 [15:28:23]line Наличными: 0.00 [15:28:23]line Безнал.: 1000.51 [15:28:23]line Место: АЗС № 85 "Партнер Нефть" [15:28:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:28:23]line СНО: Общий режим [15:28:23]line Чек 266 21.10.2024 15:28 [15:28:23]line Смена: 194 ФФД: 1.0 [15:28:23]line ЗНМ: 0300000167 [15:28:23]line РНМ: 0000000000156251 [15:28:23]line Версия ККМ: v1.0 [15:28:23]line Платежная система: Mbank [15:28:23]line ФМ: 0000000000963346 [15:28:23]line ФД: 69876 [15:28:23]line ФПД: 156090541769153 [15:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152826&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69876&fm=156090541769153&tin=02508201610067®Number=0000000000156251&sum=100051 [15:28:24]OFD Sender: Processing packet 69876 [packets to send 18, broken 17] [15:28:24]ProducePacketName [15:28:24]name=ofd_packets/00069876 [15:28:24]OFD Sender: To server: pG, [15:28:24]CommunicateWithHost lk.salyk.kg:30040 [15:28:24]ConnectInit lk.salyk.kg [15:28:24]written 0, free lines is 4095 [15:28:24]Connected sock=10 [15:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2F E4 04 01 43 25 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 1A 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 10 01 00 35 04 06 00 8D F6 A9 4B 81 C1 DE 0A DE FF EC 21 F7 13 [15:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 21 47 00 4C E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 10 01 00 F4 03 04 00 BE 1C 16 67 B6 04 01 00 00 45 8D 17 75 DE B7 34 99 [15:28:24]CommunicateWithHost err = 0 [15:28:24]CheckOFDResponse [15:28:24]1017 (14) - 77093643461234 [15:28:24]1041 (16) - 0000000000963346 [15:28:24]1040 (4) - 69876 [15:28:24]1012 (4) - 21.10.2024 09:19 [15:28:24]1206 (1) - 0 [15:28:24]OFD Sender: Remove packet 69876 [15:28:24]ProducePacketName [15:28:24]name=ofd_packets/00069876 [15:28:24]NVStorageDeleteData [15:28:24]Write to MH i2c: 01 00 00 27 50 77 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 27 50 00 00 00 00 00 18 0D A3 [15:28:24]RasterBufferAndPrint [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]written 0, free lines is 3361 [15:28:24]MH_Cut [15:28:24]Write to MH i2c: D1 01 00 2E 50 01 50 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 2E 50 00 4F [15:28:24]Write to MH i2c: 01 00 00 2F 50 7F [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:25]OFD Sender: No OFD packet to send [15:28:25]*** Cut start [15:28:25]*** Partial cut [15:28:25]*** CUTSNS_PIN = 1 [15:28:25]*** CUTSNS_PIN = 0 [15:28:25]*** Brake cut motor [15:28:25]Read from MH i2c: 01 [15:28:25]MH_I2C_Read... [15:28:25]*** Stop cut motor [15:28:25]*** Cut end [15:28:25]Read from MH i2c: 01 07 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 2F 50 00 00 00 00 00 FF 0F 94 [15:28:26]process_action close_receipt done [15:28:26]requested_data is exist [15:28:26]produce_requested_data [15:28:26]requested_item fm.sn is exist - process it [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 11 00 00 [15:28:26]Write to MH i2c: E2 08 00 30 50 80 11 00 00 00 00 00 00 FA [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 30 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [15:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:28:26]wFMCommunicate OK [15:28:26]requested_item fd.num is exist - process it [15:28:26]SAM_PROTO_GetFieldsCounters [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 13 00 00 [15:28:26]Write to MH i2c: E2 08 00 31 50 80 13 00 00 00 00 00 00 FD [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 62 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 62 00 31 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [15:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_GetFieldsCounters done [15:28:26]requested_item shift.num is exist - process it [15:28:26]requested_item shift.opened is exist - process it [15:28:26]req_shift_opened [15:28:26]FM_GetShiftState [15:28:26]SAM_PROTO_GetShiftState [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 13 01 00 [15:28:26]Write to MH i2c: E2 08 00 32 50 80 13 01 00 00 00 00 00 FF [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0E 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0E 00 32 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2B [15:28:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_GetShiftState done [15:28:26]FM_GetShiftState done [15:28:26]req_shift_opened done [15:28:26]requested_item shift.open_date is exist - process it [15:28:26]req_shift_open_date [15:28:26]req_shift_open_date done [15:28:26]produce_requested_data done [15:28:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69876,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:28:26]process_action_free close_receipt [15:28:26]json_value_free [15:28:26]json_value_free done [15:28:26]process_json_proto returns [15:28:26]Send response to host [15:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69876,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:28:26]free response buf [15:28:26]execute_script done [15:28:26]execute_script returns [15:28:26]free content buf [15:28:26]Sock 9.Close socket [15:28:26]Sock 9.Thread stoped [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:08]accept exits with 8 [15:30:08]New connection [15:30:08]New thread 3067313508 created [15:30:08]Thread 3067456868 joined [15:30:08]Waiting for new connection... [15:30:08] Sock 8.Parse request [15:30:08]Sock 8.Check first char [15:30:08]Sock 8.First char is OK [15:30:08]request: POST /json_proto HTTP/1.0 [15:30:08]Method: POST [15:30:08]URL: /json_proto [15:30:08]Method is POST - this is cgi request [15:30:08]url: /json_proto [15:30:08]query_string will be loaded in cgi processing [15:30:08]execute_cgi json_proto POST (null) [15:30:08]execute_cgi path=json_proto method=POST [15:30:08]POST find Content-Length [15:30:08]Host: 172.17.50.3:8080 [15:30:08]Content-Length: 683 [15:30:08]Content-Type: application/json [15:30:08] [15:30:08]POST finish read [15:30:08]Found Content-Length = 683 [15:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885630", "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" ] } } [15:30:08]execute_script... [15:30: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)2885630", "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" ] } } [15:30:08]POST & json_proto [15:30:08]process_json_proto [15:30:08]json parsed OK: [15:30:08]protocol is kg_v1.0 [15:30:08]action value=close_receipt [15:30:08]process_action close_receipt [15:30:08]cmd_close_receipt [15:30:08]MH_GetDate [15:30:08]Write to MH i2c: F0 00 00 33 50 72 [15:30:08]Write i2c OK [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: F0 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: F0 09 00 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: F0 09 00 33 50 00 84 73 16 67 6B 98 1E 66 76 [15:30:08]GetLastDocTimeStamp 1729524506 [15:30:08]current date 1729524612 [15:30:08]FM_GetShiftState [15:30:08]SAM_PROTO_GetShiftState [15:30:08]wFMCommunicate request_size=4 [15:30:08]MH_SAM_APDU [15:30:08]CAPDU: 80 13 01 00 [15:30:08]Write to MH i2c: E2 08 00 34 50 80 13 01 00 00 00 00 00 01 [15:30:08]Write i2c OK [15:30:08]MH_I2C_Read... [15:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:08]Read from MH i2c: E2 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 0E 00 [15:30:08]MH_I2C_Read... [15:30:08]Read from MH i2c: E2 0E 00 34 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2D [15:30:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:30:08]wFMCommunicate OK [15:30:08]SAM_PROTO_GetShiftState done [15:30:08]FM_GetShiftState done [15:30:08]opened in 1729469703 [15:30:08]opened+sec_in_day 1729556103 [15:30:08]quantity*price = 150032 [15:30:08]sum+1 = 150033 [15:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 267 21.10.2024 15:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69877 ФПД: 118342630338194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69877&fm=118342630338194&tin=02508201610067®Number=0000000000156251&sum=150000 [15:30:09]StoreToDocumentArchive [15:30:09]shift 194 fd 69877 [15:30:09]save to /storage/0194/doc_00069877 [15:30:09]save last doc name /storage/0194/doc_00069877 to /storage/kkm_last_doc_name [15:30:09]save OK [15:30:09]Clear old archive folders... [15:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:09]tlvbuf is 00D19BB0 [15:30:09]SAM_PROTO_ClearQueue [15:30:09]wFMCommunicate request_size=4 [15:30:09]MH_SAM_APDU [15:30:09]CAPDU: 80 09 00 00 [15:30:09]Write to MH i2c: E2 08 00 41 50 80 09 00 00 00 00 00 00 03 [15:30:09]Write i2c OK [15:30:09]MH_I2C_Read... [15:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:09]Read from MH i2c: E2 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 03 00 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [15:30:09]RAPDU: 90 00 [15:30:09]wFMCommunicate OK [15:30:09]SAM_PROTO_ClearQueue done [15:30:09]KKMCreateOFDPacket [15:30:09]OFDProtocolAddRootSTLVToBuf [15:30:09]FM_MakeSignedData [15:30:09]FM_MakeSignedData [15:30:09]SAM_PROTO_SignData [15:30:09]wFMCommunicate request_size=4 [15:30:09]MH_SAM_APDU [15:30:09]CAPDU: 80 0D 01 02 [15:30:09]Write to MH i2c: E2 08 00 42 50 80 0D 01 02 00 00 00 00 0B [15:30:09]Write i2c OK [15:30:09]MH_I2C_Read... [15:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:09]Read from MH i2c: E2 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 03 00 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 03 00 42 50 00 90 00 06 [15:30:09]RAPDU: 90 00 [15:30:09]wFMCommunicate OK [15:30:09]wFMCommunicate request_size=255 [15:30:09]MH_SAM_APDU [15:30:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 01 00 00 F4 03 04 00 84 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 10 01 00 35 04 06 00 6B [15:30:09]Write to MH i2c: E2 02 01 43 50 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 0B 01 00 00 F4 03 04 00 84 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 10 01 00 35 04 06 00 6B 00 00 AA [15:30:09]Write i2c OK [15:30:09]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 43 50 00 90 00 07 [15:30:10]RAPDU: 90 00 [15:30:10]wFMCommunicate OK [15:30:10]wFMCommunicate request_size=10 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 0D 02 02 05 A1 CA 71 6E 92 [15:30:10]Write to MH i2c: E2 0D 00 44 50 80 0D 02 02 05 00 A1 CA 71 6E 92 00 00 F4 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 44 50 00 90 00 08 [15:30:10]RAPDU: 90 00 [15:30:10]wFMCommunicate OK [15:30:10]wFMCommunicate request_size=4 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 0D 03 02 [15:30:10]Write to MH i2c: E2 08 00 45 50 80 0D 03 02 00 00 00 00 10 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 0B 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 0B 00 45 50 00 50 C6 DD E6 AE C0 6B A4 90 00 67 [15:30:10]RAPDU: 50 C6 DD E6 AE C0 6B A4 90 00 [15:30:10]wFMCommunicate OK [15:30:10]SAM_PROTO_SignData done [15:30:10]FM_MakeSignedData done [15:30:10]CreateOFDProtocolMessage [15:30:10]wFMCommunicate request_size=4 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 11 00 00 [15:30:10]Write to MH i2c: E2 08 00 46 50 80 11 00 00 00 00 00 00 10 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 17 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 17 00 46 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [15:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:30:10]wFMCommunicate OK [15:30:10]CreateOFDProtocolMessage done [15:30:10]OFDSenderStorePacket 69877 [15:30:10]StoreOFDPacket docnum=69877 [15:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 66 07 01 D5 52 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 0B 01 00 00 F4 03 04 00 84 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 10 01 00 35 04 06 00 6B A1 CA 71 6E 92 50 C6 DD E6 AE C0 6B A4 [15:30:10]CheckFolder [15:30:10]dirname=/storage/ofd_packets [15:30:10]CheckFolder done [15:30:10]ProducePacketName [15:30:10]name=ofd_packets/00069877 [15:30:10]NVStorageSaveData ofd_packets/00069877 [15:30:10]File name is /storage/ofd_packets/00069877 [15:30:10]Write 301 bytes [15:30:10]NVStorageSaveData done [15:30:10]OFDSenderStorePacket done [15:30:10]KKMCreateOFDPacket done [15:30:10]NVStorageSaveData kkm_last_timestamp [15:30:10]File name is /storage/kkm_last_timestamp [15:30:10]Write 4 bytes [15:30:10]NVStorageSaveData done [15:30:10]ExternCall_PrintAddStr [15:30:10]wPrintStart [15:30:10]Write to MH i2c: 01 00 00 47 50 97 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: 01 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: 01 07 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: 01 07 00 47 50 00 00 00 00 00 FF 0F AC [15:30:10]RasterBufferAndPrint [15:30:10]line Счет N : (1)2885630 [15:30:10]line ИНН: 02508201610067 [15:30:10]line Контрольно-Кассовый Чек [15:30:10]line ПРОДАЖА [15:30:10]line ТРК (МРК, ГНК) : 33 [15:30:10]line Товар: 2710124500 [15:30:10]line Аи-95-К-5 [15:30:10]line 20.220 * 74.20 [15:30:10]line = 1500.32 [15:30:10]line НДС 12% НСП 1% [15:30:10]line > о реализуемом товаре [15:30:10]line ОКРУГЛЕНИЕ: -0.32 [15:30:10]line ИТОГО: 1500.00 [15:30:10]line Внесено: 1500.00 [15:30:10]line СДАЧА: 0.00 [15:30:10]line НСП 1% : 13.28 [15:30:10]line НДС 12% : 159.33 [15:30:10]line Наличными: 1500.00 [15:30:10]line Безнал.: 0.00 [15:30:10]line Место: АЗС № 85 "Партнер Нефть" [15:30:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:30:10]line СНО: Общий режим [15:30:10]line Чек 267 21.10.2024 15:30 [15:30:10]line Смена: 194 ФФД: 1.0 [15:30:10]line ЗНМ: 0300000167 [15:30:10]line РНМ: 0000000000156251 [15:30:10]line Версия ККМ: v1.0 [15:30:10]line ФМ: 0000000000963346 [15:30:10]line ФД: 69877 [15:30:10]line ФПД: 118342630338194 [15:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69877&fm=118342630338194&tin=02508201610067®Number=0000000000156251&sum=150000 [15:30:10]OFD Sender: Processing packet 69877 [packets to send 18, broken 17] [15:30:10]ProducePacketName [15:30:10]name=ofd_packets/00069877 [15:30:10]OFD Sender: To server: pG, [15:30:10]CommunicateWithHost lk.salyk.kg:30040 [15:30:10]ConnectInit lk.salyk.kg [15:30:10]written 0, free lines is 4095 [15:30:10]Connected sock=10 [15:30:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 66 07 01 D5 52 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 0B 01 00 00 F4 03 04 00 84 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 10 01 00 35 04 06 00 6B A1 CA 71 6E 92 50 C6 DD E6 AE C0 6B A4 [15:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 EB 47 00 0F 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 39 36 33 33 34 36 10 04 04 00 F5 10 01 00 F4 03 04 00 28 1D 16 67 B6 04 01 00 00 64 A8 97 AB B5 DB 8E 61 [15:30:10]CommunicateWithHost err = 0 [15:30:10]CheckOFDResponse [15:30:10]1017 (14) - 77093643461234 [15:30:10]1041 (16) - 0000000000963346 [15:30:10]1040 (4) - 69877 [15:30:10]1012 (4) - 21.10.2024 09:21 [15:30:10]1206 (1) - 0 [15:30:10]OFD Sender: Remove packet 69877 [15:30:10]ProducePacketName [15:30:10]name=ofd_packets/00069877 [15:30:10]NVStorageDeleteData [15:30:11]Write to MH i2c: 01 00 00 72 50 C2 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 72 50 00 00 00 00 00 06 0D DC [15:30:11]RasterBufferAndPrint [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]written 0, free lines is 3340 [15:30:11]MH_Cut [15:30:11]Write to MH i2c: D1 01 00 79 50 01 9B [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 01 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 01 00 79 50 00 9A [15:30:11]Write to MH i2c: 01 00 00 7A 50 CA [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]OFD Sender: No OFD packet to send [15:30:11]*** Cut start [15:30:11]*** Partial cut [15:30:11]*** CUTSNS_PIN = 1 [15:30:11]*** CUTSNS_PIN = 0 [15:30:11]*** Brake cut motor [15:30:12]Read from MH i2c: 01 [15:30:12]MH_I2C_Read... [15:30:12]*** Stop cut motor [15:30:12]*** Cut end [15:30:12]Read from MH i2c: 01 07 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: 01 07 00 7A 50 00 00 00 00 00 FF 0F DF [15:30:12]process_action close_receipt done [15:30:12]requested_data is exist [15:30:12]produce_requested_data [15:30:12]requested_item fm.sn is exist - process it [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 11 00 00 [15:30:12]Write to MH i2c: E2 08 00 7B 50 80 11 00 00 00 00 00 00 45 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 7B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [15:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:30:12]wFMCommunicate OK [15:30:12]requested_item fd.num is exist - process it [15:30:12]SAM_PROTO_GetFieldsCounters [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 13 00 00 [15:30:12]Write to MH i2c: E2 08 00 7C 50 80 13 00 00 00 00 00 00 48 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 62 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 62 00 7C 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:12]wFMCommunicate OK [15:30:12]SAM_PROTO_GetFieldsCounters done [15:30:12]requested_item shift.num is exist - process it [15:30:12]requested_item shift.opened is exist - process it [15:30:12]req_shift_opened [15:30:12]FM_GetShiftState [15:30:12]SAM_PROTO_GetShiftState [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 13 01 00 [15:30:12]Write to MH i2c: E2 08 00 7D 50 80 13 01 00 00 00 00 00 4A [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 0E 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 0E 00 7D 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 76 [15:30:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:30:12]wFMCommunicate OK [15:30:12]SAM_PROTO_GetShiftState done [15:30:12]FM_GetShiftState done [15:30:12]req_shift_opened done [15:30:12]requested_item shift.open_date is exist - process it [15:30:12]req_shift_open_date [15:30:12]req_shift_open_date done [15:30:12]produce_requested_data done [15:30:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69877,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:30:12]process_action_free close_receipt [15:30:12]json_value_free [15:30:12]json_value_free done [15:30:12]process_json_proto returns [15:30:12]Send response to host [15:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69877,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:30:12]free response buf [15:30:12]execute_script done [15:30:12]execute_script returns [15:30:12]free content buf [15:30:12]Sock 8.Close socket [15:30:12]Sock 8.Thread stoped [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:00]accept exits with 9 [15:31:00]New connection [15:31:00]New thread 3067456868 created [15:31:00]Thread 3067313508 joined [15:31:00]Waiting for new connection... [15:31:00] Sock 9.Parse request [15:31:00]Sock 9.Check first char [15:31:00]Sock 9.First char is OK [15:31:00]request: POST /json_proto HTTP/1.0 [15:31:00]Method: POST [15:31:00]URL: /json_proto [15:31:00]Method is POST - this is cgi request [15:31:00]url: /json_proto [15:31:00]query_string will be loaded in cgi processing [15:31:00]execute_cgi json_proto POST (null) [15:31:00]execute_cgi path=json_proto method=POST [15:31:00]POST find Content-Length [15:31:00]Host: 172.17.50.3:8080 [15:31:00]Content-Length: 678 [15:31:00]Content-Type: application/json [15:31:00] [15:31:00]POST finish read [15:31:00]Found Content-Length = 678 [15:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:00]execute_script... [15:31: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)2885631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:00]POST & json_proto [15:31:00]process_json_proto [15:31:00]json parsed OK: [15:31:00]protocol is kg_v1.0 [15:31:00]action value=close_receipt [15:31:00]process_action close_receipt [15:31:00]cmd_close_receipt [15:31:00]MH_GetDate [15:31:00]Write to MH i2c: F0 00 00 7E 50 BD [15:31:00]Write i2c OK [15:31:00]MH_I2C_Read... [15:31:00]Read from MH i2c: F0 [15:31:00]MH_I2C_Read... [15:31:00]Read from MH i2c: F0 09 00 [15:31:00]MH_I2C_Read... [15:31:00]Read from MH i2c: F0 09 00 7E 50 00 B8 73 16 67 6B 98 1E 66 F5 [15:31:00]GetLastDocTimeStamp 1729524612 [15:31:00]current date 1729524664 [15:31:00]FM_GetShiftState [15:31:00]SAM_PROTO_GetShiftState [15:31:00]wFMCommunicate request_size=4 [15:31:00]MH_SAM_APDU [15:31:00]CAPDU: 80 13 01 00 [15:31:00]Write to MH i2c: E2 08 00 7F 50 80 13 01 00 00 00 00 00 4C [15:31:00]Write i2c OK [15:31:00]MH_I2C_Read... [15:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:00]Read from MH i2c: E2 [15:31:00]MH_I2C_Read... [15:31:00]Read from MH i2c: E2 0E 00 [15:31:00]MH_I2C_Read... [15:31:00]Read from MH i2c: E2 0E 00 7F 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 78 [15:31:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:31:00]wFMCommunicate OK [15:31:00]SAM_PROTO_GetShiftState done [15:31:00]FM_GetShiftState done [15:31:00]opened in 1729469703 [15:31:00]opened+sec_in_day 1729556103 [15:31:00]quantity*price = 50041 [15:31:00]sum+1 = 50042 [15:31:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 268 21.10.2024 15:31 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69878 ФПД: 246261279649196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153104&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69878&fm=246261279649196&tin=02508201610067®Number=0000000000156251&sum=50000 [15:31:01]StoreToDocumentArchive [15:31:01]shift 194 fd 69878 [15:31:01]save to /storage/0194/doc_00069878 [15:31:01]save last doc name /storage/0194/doc_00069878 to /storage/kkm_last_doc_name [15:31:01]save OK [15:31:01]Clear old archive folders... [15:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:01]tlvbuf is 00C41780 [15:31:01]SAM_PROTO_ClearQueue [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 09 00 00 [15:31:01]Write to MH i2c: E2 08 00 8C 50 80 09 00 00 00 00 00 00 4E [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [15:31:01]RAPDU: 90 00 [15:31:01]wFMCommunicate OK [15:31:01]SAM_PROTO_ClearQueue done [15:31:01]KKMCreateOFDPacket [15:31:01]OFDProtocolAddRootSTLVToBuf [15:31:01]FM_MakeSignedData [15:31:01]FM_MakeSignedData [15:31:01]SAM_PROTO_SignData [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 0D 01 02 [15:31:01]Write to MH i2c: E2 08 00 8D 50 80 0D 01 02 00 00 00 00 56 [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 8D 50 00 90 00 51 [15:31:01]RAPDU: 90 00 [15:31:01]wFMCommunicate OK [15:31:01]wFMCommunicate request_size=255 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B8 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 10 01 00 35 04 06 00 DF [15:31:01]Write to MH i2c: E2 02 01 8E 50 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B8 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 10 01 00 35 04 06 00 DF 00 00 3C [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 8E 50 00 90 00 52 [15:31:01]RAPDU: 90 00 [15:31:01]wFMCommunicate OK [15:31:01]wFMCommunicate request_size=10 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 0D 02 02 05 F9 2C 18 6D AC [15:31:01]Write to MH i2c: E2 0D 00 8F 50 80 0D 02 02 05 00 F9 2C 18 6D AC 00 00 B9 [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 03 00 8F 50 00 90 00 53 [15:31:01]RAPDU: 90 00 [15:31:01]wFMCommunicate OK [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 0D 03 02 [15:31:01]Write to MH i2c: E2 08 00 90 50 80 0D 03 02 00 00 00 00 5B [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:01]Read from MH i2c: E2 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0B 00 [15:31:01]MH_I2C_Read... [15:31:01]Read from MH i2c: E2 0B 00 90 50 00 B6 A2 D1 F2 21 10 0B 53 90 00 06 [15:31:01]RAPDU: B6 A2 D1 F2 21 10 0B 53 90 00 [15:31:01]wFMCommunicate OK [15:31:01]SAM_PROTO_SignData done [15:31:01]FM_MakeSignedData done [15:31:01]CreateOFDProtocolMessage [15:31:01]wFMCommunicate request_size=4 [15:31:01]MH_SAM_APDU [15:31:01]CAPDU: 80 11 00 00 [15:31:01]Write to MH i2c: E2 08 00 91 50 80 11 00 00 00 00 00 00 5B [15:31:01]Write i2c OK [15:31:01]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 17 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 17 00 91 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AD [15:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:31:02]wFMCommunicate OK [15:31:02]CreateOFDProtocolMessage done [15:31:02]OFDSenderStorePacket 69878 [15:31:02]StoreOFDPacket docnum=69878 [15:31:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4D B6 07 01 CD 08 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B8 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 10 01 00 35 04 06 00 DF F9 2C 18 6D AC B6 A2 D1 F2 21 10 0B 53 [15:31:02]CheckFolder [15:31:02]dirname=/storage/ofd_packets [15:31:02]CheckFolder done [15:31:02]ProducePacketName [15:31:02]name=ofd_packets/00069878 [15:31:02]NVStorageSaveData ofd_packets/00069878 [15:31:02]File name is /storage/ofd_packets/00069878 [15:31:02]Write 301 bytes [15:31:02]NVStorageSaveData done [15:31:02]OFDSenderStorePacket done [15:31:02]KKMCreateOFDPacket done [15:31:02]NVStorageSaveData kkm_last_timestamp [15:31:02]File name is /storage/kkm_last_timestamp [15:31:02]Write 4 bytes [15:31:02]NVStorageSaveData done [15:31:02]ExternCall_PrintAddStr [15:31:02]wPrintStart [15:31:02]Write to MH i2c: 01 00 00 92 50 E2 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 07 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 07 00 92 50 00 00 00 00 00 FF 0F F7 [15:31:02]RasterBufferAndPrint [15:31:02]line Счет N : (1)2885631 [15:31:02]line ИНН: 02508201610067 [15:31:02]line Контрольно-Кассовый Чек [15:31:02]line ПРОДАЖА [15:31:02]line ТРК (МРК, ГНК) : 12 [15:31:02]line Товар: 2710124130 [15:31:02]line Аи-92-К-5 [15:31:02]line 7.480 * 66.90 [15:31:02]line = 500.41 [15:31:02]line НДС 12% НСП 1% [15:31:02]line > о реализуемом товаре [15:31:02]line ОКРУГЛЕНИЕ: -0.41 [15:31:02]line ИТОГО: 500.00 [15:31:02]line Внесено: 500.00 [15:31:02]line СДАЧА: 0.00 [15:31:02]line НСП 1% : 4.43 [15:31:02]line НДС 12% : 53.14 [15:31:02]line Наличными: 500.00 [15:31:02]line Безнал.: 0.00 [15:31:02]line Место: АЗС № 85 "Партнер Нефть" [15:31:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:31:02]line СНО: Общий режим [15:31:02]line Чек 268 21.10.2024 15:31 [15:31:02]line Смена: 194 ФФД: 1.0 [15:31:02]line ЗНМ: 0300000167 [15:31:02]line РНМ: 0000000000156251 [15:31:02]line Версия ККМ: v1.0 [15:31:02]line ФМ: 0000000000963346 [15:31:02]line ФД: 69878 [15:31:02]line ФПД: 246261279649196 [15:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153104&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69878&fm=246261279649196&tin=02508201610067®Number=0000000000156251&sum=50000 [15:31:02]written 0, free lines is 4095 [15:31:02]OFD Sender: Processing packet 69878 [packets to send 18, broken 17] [15:31:02]ProducePacketName [15:31:02]name=ofd_packets/00069878 [15:31:02]OFD Sender: To server: pG, [15:31:02]CommunicateWithHost lk.salyk.kg:30040 [15:31:02]ConnectInit lk.salyk.kg [15:31:02]Connected sock=10 [15:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4D B6 07 01 CD 08 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 B8 73 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 10 01 00 35 04 06 00 DF F9 2C 18 6D AC B6 A2 D1 F2 21 10 0B 53 [15:31:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C3 97 47 00 23 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 39 36 33 33 34 36 10 04 04 00 F6 10 01 00 F4 03 04 00 5B 1D 16 67 B6 04 01 00 00 D6 B4 45 03 27 9E 59 5F [15:31:02]CommunicateWithHost err = 0 [15:31:02]CheckOFDResponse [15:31:02]1017 (14) - 77093643461234 [15:31:02]1041 (16) - 0000000000963346 [15:31:02]1040 (4) - 69878 [15:31:02]1012 (4) - 21.10.2024 09:22 [15:31:02]1206 (1) - 0 [15:31:02]OFD Sender: Remove packet 69878 [15:31:02]ProducePacketName [15:31:02]name=ofd_packets/00069878 [15:31:02]NVStorageDeleteData [15:31:02]Write to MH i2c: 01 00 00 BD 50 0D [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 07 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: 01 07 00 BD 50 00 00 00 00 00 03 0D 24 [15:31:02]RasterBufferAndPrint [15:31:02]line [15:31:02]line [15:31:02]line [15:31:02]line [15:31:02]line [15:31:02]written 0, free lines is 3340 [15:31:02]MH_Cut [15:31:02]Write to MH i2c: D1 01 00 C4 50 01 E6 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: D1 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: D1 01 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: D1 01 00 C4 50 00 E5 [15:31:02]Write to MH i2c: 01 00 00 C5 50 15 [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]OFD Sender: No OFD packet to send [15:31:03]*** Cut start [15:31:03]*** Partial cut [15:31:03]*** CUTSNS_PIN = 1 [15:31:03]*** CUTSNS_PIN = 0 [15:31:03]*** Brake cut motor [15:31:03]Read from MH i2c: 01 [15:31:03]MH_I2C_Read... [15:31:03]*** Stop cut motor [15:31:03]*** Cut end [15:31:03]Read from MH i2c: 01 07 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: 01 07 00 C5 50 00 00 00 00 00 FF 0F 2A [15:31:03]process_action close_receipt done [15:31:03]requested_data is exist [15:31:03]produce_requested_data [15:31:03]requested_item fm.sn is exist - process it [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 11 00 00 [15:31:03]Write to MH i2c: E2 08 00 C6 50 80 11 00 00 00 00 00 00 90 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 17 00 C6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [15:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:31:03]wFMCommunicate OK [15:31:03]requested_item fd.num is exist - process it [15:31:03]SAM_PROTO_GetFieldsCounters [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 13 00 00 [15:31:03]Write to MH i2c: E2 08 00 C7 50 80 13 00 00 00 00 00 00 93 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 62 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 62 00 C7 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_GetFieldsCounters done [15:31:04]requested_item shift.num is exist - process it [15:31:04]requested_item shift.opened is exist - process it [15:31:04]req_shift_opened [15:31:04]FM_GetShiftState [15:31:04]SAM_PROTO_GetShiftState [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 13 01 00 [15:31:04]Write to MH i2c: E2 08 00 C8 50 80 13 01 00 00 00 00 00 95 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0E 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0E 00 C8 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [15:31:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_GetShiftState done [15:31:04]FM_GetShiftState done [15:31:04]req_shift_opened done [15:31:04]requested_item shift.open_date is exist - process it [15:31:04]req_shift_open_date [15:31:04]req_shift_open_date done [15:31:04]produce_requested_data done [15:31:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69878,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:31:04]process_action_free close_receipt [15:31:04]json_value_free [15:31:04]json_value_free done [15:31:04]process_json_proto returns [15:31:04]Send response to host [15:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69878,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:31:04]free response buf [15:31:04]execute_script done [15:31:04]execute_script returns [15:31:04]free content buf [15:31:04]Sock 9.Close socket [15:31:04]Sock 9.Thread stoped [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:27]accept exits with 8 [15:37:27]New connection [15:37:27]New thread 3067313508 created [15:37:27]Thread 3067456868 joined [15:37:27]Waiting for new connection... [15:37:27] Sock 8.Parse request [15:37:27]Sock 8.Check first char [15:37:27]Sock 8.First char is OK [15:37:27]request: POST /json_proto HTTP/1.0 [15:37:27]Method: POST [15:37:27]URL: /json_proto [15:37:27]Method is POST - this is cgi request [15:37:27]url: /json_proto [15:37:27]query_string will be loaded in cgi processing [15:37:27]execute_cgi json_proto POST (null) [15:37:27]execute_cgi path=json_proto method=POST [15:37:27]POST find Content-Length [15:37:27]Host: 172.17.50.3:8080 [15:37:27]Content-Length: 776 [15:37:27]Content-Type: application/json [15:37:27] [15:37:27]POST finish read [15:37:27]Found Content-Length = 776 [15:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:27]execute_script... [15:37:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:27]POST & json_proto [15:37:27]process_json_proto [15:37:27]json parsed OK: [15:37:27]protocol is kg_v1.0 [15:37:27]action value=close_receipt [15:37:27]process_action close_receipt [15:37:27]cmd_close_receipt [15:37:27]MH_GetDate [15:37:27]Write to MH i2c: F0 00 00 C9 50 08 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 09 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 09 00 C9 50 00 3B 75 16 67 6B 98 1E 66 C5 [15:37:27]GetLastDocTimeStamp 1729524664 [15:37:27]current date 1729525051 [15:37:27]FM_GetShiftState [15:37:27]SAM_PROTO_GetShiftState [15:37:27]wFMCommunicate request_size=4 [15:37:27]MH_SAM_APDU [15:37:27]CAPDU: 80 13 01 00 [15:37:27]Write to MH i2c: E2 08 00 CA 50 80 13 01 00 00 00 00 00 97 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:27]Read from MH i2c: E2 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 0E 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 0E 00 CA 50 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C3 [15:37:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:37:27]wFMCommunicate OK [15:37:27]SAM_PROTO_GetShiftState done [15:37:27]FM_GetShiftState done [15:37:27]opened in 1729469703 [15:37:27]opened+sec_in_day 1729556103 [15:37:27]quantity*price = 200025 [15:37:27]sum+1 = 200026 [15:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 269 21.10.2024 15:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69879 ФПД: 111471152152856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153731&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69879&fm=111471152152856&tin=02508201610067®Number=0000000000156251&sum=200025 [15:37:28]StoreToDocumentArchive [15:37:28]shift 194 fd 69879 [15:37:28]save to /storage/0194/doc_00069879 [15:37:28]save last doc name /storage/0194/doc_00069879 to /storage/kkm_last_doc_name [15:37:28]save OK [15:37:28]Clear old archive folders... [15:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:37:28]tlvbuf is 00D14A40 [15:37:28]SAM_PROTO_ClearQueue [15:37:28]wFMCommunicate request_size=4 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 09 00 00 [15:37:28]Write to MH i2c: E2 08 00 D7 50 80 09 00 00 00 00 00 00 99 [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [15:37:28]RAPDU: 90 00 [15:37:28]wFMCommunicate OK [15:37:28]SAM_PROTO_ClearQueue done [15:37:28]KKMCreateOFDPacket [15:37:28]OFDProtocolAddRootSTLVToBuf [15:37:28]FM_MakeSignedData [15:37:28]FM_MakeSignedData [15:37:28]SAM_PROTO_SignData [15:37:28]wFMCommunicate request_size=4 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 0D 01 02 [15:37:28]Write to MH i2c: E2 08 00 D8 50 80 0D 01 02 00 00 00 00 A1 [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 D8 50 00 90 00 9C [15:37:28]RAPDU: 90 00 [15:37:28]wFMCommunicate OK [15:37:28]wFMCommunicate request_size=255 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3B 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 10 01 [15:37:28]Write to MH i2c: E2 02 01 D9 50 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3B 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 10 01 00 00 6E [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 D9 50 00 90 00 9D [15:37:28]RAPDU: 90 00 [15:37:28]wFMCommunicate OK [15:37:28]wFMCommunicate request_size=16 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 61 E6 6D 41 18 [15:37:28]Write to MH i2c: E2 13 00 DA 50 80 0D 02 02 0B 00 00 35 04 06 00 65 61 E6 6D 41 18 00 00 6B [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 03 00 DA 50 00 90 00 9E [15:37:28]RAPDU: 90 00 [15:37:28]wFMCommunicate OK [15:37:28]wFMCommunicate request_size=4 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 0D 03 02 [15:37:28]Write to MH i2c: E2 08 00 DB 50 80 0D 03 02 00 00 00 00 A6 [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0B 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0B 00 DB 50 00 D2 AF 79 92 76 E6 65 A5 90 00 99 [15:37:28]RAPDU: D2 AF 79 92 76 E6 65 A5 90 00 [15:37:28]wFMCommunicate OK [15:37:28]SAM_PROTO_SignData done [15:37:28]FM_MakeSignedData done [15:37:28]CreateOFDProtocolMessage [15:37:28]wFMCommunicate request_size=4 [15:37:28]MH_SAM_APDU [15:37:28]CAPDU: 80 11 00 00 [15:37:28]Write to MH i2c: E2 08 00 DC 50 80 11 00 00 00 00 00 00 A6 [15:37:28]Write i2c OK [15:37:28]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 DC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [15:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:37:29]wFMCommunicate OK [15:37:29]CreateOFDProtocolMessage done [15:37:29]OFDSenderStorePacket 69879 [15:37:29]StoreOFDPacket docnum=69879 [15:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 71 E7 0D 01 DE AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3B 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 10 01 00 35 04 06 00 65 61 E6 6D 41 18 D2 AF 79 92 76 E6 65 A5 [15:37:29]CheckFolder [15:37:29]dirname=/storage/ofd_packets [15:37:29]CheckFolder done [15:37:29]ProducePacketName [15:37:29]name=ofd_packets/00069879 [15:37:29]NVStorageSaveData ofd_packets/00069879 [15:37:29]File name is /storage/ofd_packets/00069879 [15:37:29]Write 307 bytes [15:37:29]NVStorageSaveData done [15:37:29]OFDSenderStorePacket done [15:37:29]KKMCreateOFDPacket done [15:37:29]NVStorageSaveData kkm_last_timestamp [15:37:29]File name is /storage/kkm_last_timestamp [15:37:29]Write 4 bytes [15:37:29]NVStorageSaveData done [15:37:29]ExternCall_PrintAddStr [15:37:29]wPrintStart [15:37:29]Write to MH i2c: 01 00 00 DD 50 2D [15:37:29]OFD Sender: Processing packet 69879 [packets to send 18, broken 17] [15:37:29]ProducePacketName [15:37:29]name=ofd_packets/00069879 [15:37:29]OFD Sender: To server: pG, [15:37:29]CommunicateWithHost lk.salyk.kg:30040 [15:37:29]ConnectInit lk.salyk.kg [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 DD 50 00 00 00 00 00 FF 0F 42 [15:37:29]RasterBufferAndPrint [15:37:29]line Счет N : (1)2885632 [15:37:29]line ИНН: 02508201610067 [15:37:29]line Контрольно-Кассовый Чек [15:37:29]line ПРОДАЖА [15:37:29]line ТРК (МРК, ГНК) : 31 [15:37:29]line Товар: 2710194240 [15:37:29]line D-ENERGY Дт-К-2 [15:37:29]line 25.910 * 77.20 [15:37:29]line = 2000.25 [15:37:29]line НДС 12% НСП 1% [15:37:29]line > о реализуемом товаре [15:37:29]line ИТОГО: 2000.25 [15:37:29]line НСП 1% : 17.70 [15:37:29]line НДС 12% : 212.42 [15:37:29]line Наличными: 0.00 [15:37:29]line Безнал.: 2000.25 [15:37:29]line Место: АЗС № 85 "Партнер Нефть" [15:37:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:37:29]line СНО: Общий режим [15:37:29]line Чек 269 21.10.2024 15:37 [15:37:29]line Смена: 194 ФФД: 1.0 [15:37:29]line ЗНМ: 0300000167 [15:37:29]line РНМ: 0000000000156251 [15:37:29]line Версия ККМ: v1.0 [15:37:29]line Платежная система: Mbank [15:37:29]line ФМ: 0000000000963346 [15:37:29]line ФД: 69879 [15:37:29]line ФПД: 111471152152856 [15:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153731&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69879&fm=111471152152856&tin=02508201610067®Number=0000000000156251&sum=200025 [15:37:29]Connected sock=10 [15:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 71 E7 0D 01 DE AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3B 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 10 01 00 35 04 06 00 65 61 E6 6D 41 18 D2 AF 79 92 76 E6 65 A5 [15:37:29]written 0, free lines is 4095 [15:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 78 B5 47 00 22 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 10 01 00 F4 03 04 00 DF 1E 16 67 B6 04 01 00 00 2D 37 22 7C 4C 81 80 94 [15:37:29]CommunicateWithHost err = 0 [15:37:29]CheckOFDResponse [15:37:29]1017 (14) - 77093643461234 [15:37:29]1041 (16) - 0000000000963346 [15:37:29]1040 (4) - 69879 [15:37:29]1012 (4) - 21.10.2024 09:29 [15:37:29]1206 (1) - 0 [15:37:29]OFD Sender: Remove packet 69879 [15:37:29]ProducePacketName [15:37:29]name=ofd_packets/00069879 [15:37:29]NVStorageDeleteData [15:37:29]Write to MH i2c: 01 00 00 06 51 57 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 06 51 00 00 00 00 00 26 0D 91 [15:37:29]RasterBufferAndPrint [15:37:29]line [15:37:29]line [15:37:29]line [15:37:29]line [15:37:29]line [15:37:29]written 0, free lines is 3372 [15:37:29]MH_Cut [15:37:29]Write to MH i2c: D1 01 00 0D 51 01 30 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: D1 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: D1 01 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: D1 01 00 0D 51 00 2F [15:37:29]Write to MH i2c: 01 00 00 0E 51 5F [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:30]OFD Sender: No OFD packet to send [15:37:30]*** Cut start [15:37:30]*** Partial cut [15:37:30]*** CUTSNS_PIN = 1 [15:37:30]*** CUTSNS_PIN = 0 [15:37:30]*** Brake cut motor [15:37:31]Read from MH i2c: 01 [15:37:31]MH_I2C_Read... [15:37:31]*** Stop cut motor [15:37:31]*** Cut end [15:37:31]Read from MH i2c: 01 07 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: 01 07 00 0E 51 00 00 00 00 00 FF 0F 74 [15:37:31]process_action close_receipt done [15:37:31]requested_data is exist [15:37:31]produce_requested_data [15:37:31]requested_item fm.sn is exist - process it [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 11 00 00 [15:37:31]Write to MH i2c: E2 08 00 0F 51 80 11 00 00 00 00 00 00 DA [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 0F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [15:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:37:31]wFMCommunicate OK [15:37:31]requested_item fd.num is exist - process it [15:37:31]SAM_PROTO_GetFieldsCounters [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 13 00 00 [15:37:31]Write to MH i2c: E2 08 00 10 51 80 13 00 00 00 00 00 00 DD [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 62 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 62 00 10 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:31]wFMCommunicate OK [15:37:31]SAM_PROTO_GetFieldsCounters done [15:37:31]requested_item shift.num is exist - process it [15:37:31]requested_item shift.opened is exist - process it [15:37:31]req_shift_opened [15:37:31]FM_GetShiftState [15:37:31]SAM_PROTO_GetShiftState [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 13 01 00 [15:37:31]Write to MH i2c: E2 08 00 11 51 80 13 01 00 00 00 00 00 DF [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 0E 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 0E 00 11 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0B [15:37:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:37:31]wFMCommunicate OK [15:37:31]SAM_PROTO_GetShiftState done [15:37:31]FM_GetShiftState done [15:37:31]req_shift_opened done [15:37:31]requested_item shift.open_date is exist - process it [15:37:31]req_shift_open_date [15:37:31]req_shift_open_date done [15:37:31]produce_requested_data done [15:37:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69879,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:37:31]process_action_free close_receipt [15:37:31]json_value_free [15:37:31]json_value_free done [15:37:31]process_json_proto returns [15:37:31]Send response to host [15:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69879,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:37:31]free response buf [15:37:31]execute_script done [15:37:31]execute_script returns [15:37:31]free content buf [15:37:31]Sock 8.Close socket [15:37:31]Sock 8.Thread stoped [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:22]accept exits with 9 [15:39:22]New connection [15:39:22]New thread 3067456868 created [15:39:22]Thread 3067313508 joined [15:39:22]Waiting for new connection... [15:39:22] Sock 9.Parse request [15:39:22]Sock 9.Check first char [15:39:22]Sock 9.First char is OK [15:39:22]request: POST /json_proto HTTP/1.0 [15:39:22]Method: POST [15:39:22]URL: /json_proto [15:39:22]Method is POST - this is cgi request [15:39:22]url: /json_proto [15:39:22]query_string will be loaded in cgi processing [15:39:22]execute_cgi json_proto POST (null) [15:39:22]execute_cgi path=json_proto method=POST [15:39:22]POST find Content-Length [15:39:22]Host: 172.17.50.3:8080 [15:39:22]Content-Length: 683 [15:39:22]Content-Type: application/json [15:39:22] [15:39:22]POST finish read [15:39:22]Found Content-Length = 683 [15:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885634", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:22]execute_script... [15:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885634", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:22]POST & json_proto [15:39:22]process_json_proto [15:39:22]json parsed OK: [15:39:22]protocol is kg_v1.0 [15:39:22]action value=close_receipt [15:39:22]process_action close_receipt [15:39:22]cmd_close_receipt [15:39:22]MH_GetDate [15:39:22]Write to MH i2c: F0 00 00 12 51 52 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: F0 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: F0 09 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: F0 09 00 12 51 00 AE 75 16 67 6B 98 1E 66 82 [15:39:22]GetLastDocTimeStamp 1729525051 [15:39:22]current date 1729525166 [15:39:22]FM_GetShiftState [15:39:22]SAM_PROTO_GetShiftState [15:39:22]wFMCommunicate request_size=4 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 13 01 00 [15:39:22]Write to MH i2c: E2 08 00 13 51 80 13 01 00 00 00 00 00 E1 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 0E 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 0E 00 13 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0D [15:39:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:39:22]wFMCommunicate OK [15:39:22]SAM_PROTO_GetShiftState done [15:39:22]FM_GetShiftState done [15:39:22]opened in 1729469703 [15:39:22]opened+sec_in_day 1729556103 [15:39:22]quantity*price = 160024 [15:39:22]sum+1 = 160026 [15:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 270 21.10.2024 15:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69880 ФПД: 86333539861980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153926&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69880&fm=86333539861980&tin=02508201610067®Number=0000000000156251&sum=160000 [15:39:23]StoreToDocumentArchive [15:39:23]shift 194 fd 69880 [15:39:23]save to /storage/0194/doc_00069880 [15:39:23]save last doc name /storage/0194/doc_00069880 to /storage/kkm_last_doc_name [15:39:23]save OK [15:39:23]Clear old archive folders... [15:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:23]tlvbuf is 00CA2E90 [15:39:23]SAM_PROTO_ClearQueue [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 09 00 00 [15:39:23]Write to MH i2c: E2 08 00 20 51 80 09 00 00 00 00 00 00 E3 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]SAM_PROTO_ClearQueue done [15:39:23]KKMCreateOFDPacket [15:39:23]OFDProtocolAddRootSTLVToBuf [15:39:23]FM_MakeSignedData [15:39:23]FM_MakeSignedData [15:39:23]SAM_PROTO_SignData [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 0D 01 02 [15:39:23]Write to MH i2c: E2 08 00 21 51 80 0D 01 02 00 00 00 00 EB [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]wFMCommunicate request_size=255 [15:39:23]MH_SAM_APDU [15:39:23]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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AE 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 10 01 00 35 04 06 00 4E [15:39:23]Write to MH i2c: E2 02 01 22 51 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AE 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 10 01 00 35 04 06 00 4E 00 00 63 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 22 51 00 90 00 E7 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]wFMCommunicate request_size=10 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 0D 02 02 05 85 17 F9 C5 DC [15:39:23]Write to MH i2c: E2 0D 00 23 51 80 0D 02 02 05 00 85 17 F9 C5 DC 00 00 2E [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 23 51 00 90 00 E8 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 0D 03 02 [15:39:23]Write to MH i2c: E2 08 00 24 51 80 0D 03 02 00 00 00 00 F0 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0B 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0B 00 24 51 00 0D 6B C1 F5 EB DD 20 50 90 00 57 [15:39:24]RAPDU: 0D 6B C1 F5 EB DD 20 50 90 00 [15:39:24]wFMCommunicate OK [15:39:24]SAM_PROTO_SignData done [15:39:24]FM_MakeSignedData done [15:39:24]CreateOFDProtocolMessage [15:39:24]wFMCommunicate request_size=4 [15:39:24]MH_SAM_APDU [15:39:24]CAPDU: 80 11 00 00 [15:39:24]Write to MH i2c: E2 08 00 25 51 80 11 00 00 00 00 00 00 F0 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 17 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 17 00 25 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [15:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:24]wFMCommunicate OK [15:39:24]CreateOFDProtocolMessage done [15:39:24]OFDSenderStorePacket 69880 [15:39:24]StoreOFDPacket docnum=69880 [15:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F5 D3 07 01 29 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AE 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 10 01 00 35 04 06 00 4E 85 17 F9 C5 DC 0D 6B C1 F5 EB DD 20 50 [15:39:24]CheckFolder [15:39:24]dirname=/storage/ofd_packets [15:39:24]CheckFolder done [15:39:24]ProducePacketName [15:39:24]name=ofd_packets/00069880 [15:39:24]NVStorageSaveData ofd_packets/00069880 [15:39:24]File name is /storage/ofd_packets/00069880 [15:39:24]Write 301 bytes [15:39:24]NVStorageSaveData done [15:39:24]OFDSenderStorePacket done [15:39:24]KKMCreateOFDPacket done [15:39:24]NVStorageSaveData kkm_last_timestamp [15:39:24]File name is /storage/kkm_last_timestamp [15:39:24]Write 4 bytes [15:39:24]NVStorageSaveData done [15:39:24]ExternCall_PrintAddStr [15:39:24]wPrintStart [15:39:24]Write to MH i2c: 01 00 00 26 51 77 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 07 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 07 00 26 51 00 00 00 00 00 FF 0F 8C [15:39:24]RasterBufferAndPrint [15:39:24]line Счет N : (1)2885634 [15:39:24]line ИНН: 02508201610067 [15:39:24]line Контрольно-Кассовый Чек [15:39:24]line ПРОДАЖА [15:39:24]line ТРК (МРК, ГНК) : 42 [15:39:24]line Товар: 2710124130 [15:39:24]line Аи-92-К-5 [15:39:24]line 23.920 * 66.90 [15:39:24]line = 1600.25 [15:39:24]line НДС 12% НСП 1% [15:39:24]line > о реализуемом товаре [15:39:24]line ОКРУГЛЕНИЕ: -0.25 [15:39:24]line ИТОГО: 1600.00 [15:39:24]line Внесено: 1600.00 [15:39:24]line СДАЧА: 0.00 [15:39:24]line НСП 1% : 14.16 [15:39:24]line НДС 12% : 169.94 [15:39:24]line Наличными: 1600.00 [15:39:24]line Безнал.: 0.00 [15:39:24]line Место: АЗС № 85 "Партнер Нефть" [15:39:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:39:24]line СНО: Общий режим [15:39:24]line Чек 270 21.10.2024 15:39 [15:39:24]line Смена: 194 ФФД: 1.0 [15:39:24]line ЗНМ: 0300000167 [15:39:24]line РНМ: 0000000000156251 [15:39:24]line Версия ККМ: v1.0 [15:39:24]line ФМ: 0000000000963346 [15:39:24]line ФД: 69880 [15:39:24]line ФПД: 86333539861980 [15:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153926&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69880&fm=86333539861980&tin=02508201610067®Number=0000000000156251&sum=160000 [15:39:24]OFD Sender: Processing packet 69880 [packets to send 18, broken 17] [15:39:24]ProducePacketName [15:39:24]name=ofd_packets/00069880 [15:39:24]OFD Sender: To server: pG, [15:39:24]CommunicateWithHost lk.salyk.kg:30040 [15:39:24]ConnectInit lk.salyk.kg [15:39:24]written 0, free lines is 4095 [15:39:24]Connected sock=10 [15:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F5 D3 07 01 29 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AE 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 10 01 00 35 04 06 00 4E 85 17 F9 C5 DC 0D 6B C1 F5 EB DD 20 50 [15:39:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD EE 47 00 96 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 10 01 00 F4 03 04 00 52 1F 16 67 B6 04 01 00 00 2A FE 83 5D 3B 57 82 FD [15:39:24]CommunicateWithHost err = 0 [15:39:24]CheckOFDResponse [15:39:24]1017 (14) - 77093643461234 [15:39:24]1041 (16) - 0000000000963346 [15:39:24]1040 (4) - 69880 [15:39:24]1012 (4) - 21.10.2024 09:30 [15:39:24]1206 (1) - 0 [15:39:24]OFD Sender: Remove packet 69880 [15:39:24]ProducePacketName [15:39:24]name=ofd_packets/00069880 [15:39:24]NVStorageDeleteData [15:39:24]Write to MH i2c: 01 00 00 51 51 A2 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 07 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: 01 07 00 51 51 00 00 00 00 00 08 0D BE [15:39:24]RasterBufferAndPrint [15:39:24]line [15:39:24]line [15:39:24]line [15:39:24]line [15:39:24]line [15:39:24]written 0, free lines is 3342 [15:39:24]MH_Cut [15:39:24]Write to MH i2c: D1 01 00 58 51 01 7B [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: D1 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: D1 01 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: D1 01 00 58 51 00 7A [15:39:24]Write to MH i2c: 01 00 00 59 51 AA [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:25]OFD Sender: No OFD packet to send [15:39:25]*** Cut start [15:39:25]*** Partial cut [15:39:25]*** CUTSNS_PIN = 1 [15:39:25]*** CUTSNS_PIN = 0 [15:39:25]*** Brake cut motor [15:39:26]Read from MH i2c: 01 [15:39:26]MH_I2C_Read... [15:39:26]*** Stop cut motor [15:39:26]*** Cut end [15:39:26]Read from MH i2c: 01 07 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 07 00 59 51 00 00 00 00 00 FF 0F BF [15:39:26]process_action close_receipt done [15:39:26]requested_data is exist [15:39:26]produce_requested_data [15:39:26]requested_item fm.sn is exist - process it [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 11 00 00 [15:39:26]Write to MH i2c: E2 08 00 5A 51 80 11 00 00 00 00 00 00 25 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 17 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 17 00 5A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [15:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:26]wFMCommunicate OK [15:39:26]requested_item fd.num is exist - process it [15:39:26]SAM_PROTO_GetFieldsCounters [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 13 00 00 [15:39:26]Write to MH i2c: E2 08 00 5B 51 80 13 00 00 00 00 00 00 28 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 62 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 62 00 5B 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [15:39:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:26]wFMCommunicate OK [15:39:26]SAM_PROTO_GetFieldsCounters done [15:39:26]requested_item shift.num is exist - process it [15:39:26]requested_item shift.opened is exist - process it [15:39:26]req_shift_opened [15:39:26]FM_GetShiftState [15:39:26]SAM_PROTO_GetShiftState [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 13 01 00 [15:39:26]Write to MH i2c: E2 08 00 5C 51 80 13 01 00 00 00 00 00 2A [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 0E 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 0E 00 5C 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 56 [15:39:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:39:26]wFMCommunicate OK [15:39:26]SAM_PROTO_GetShiftState done [15:39:26]FM_GetShiftState done [15:39:26]req_shift_opened done [15:39:26]requested_item shift.open_date is exist - process it [15:39:26]req_shift_open_date [15:39:26]req_shift_open_date done [15:39:26]produce_requested_data done [15:39:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69880,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:39:26]process_action_free close_receipt [15:39:26]json_value_free [15:39:26]json_value_free done [15:39:26]process_json_proto returns [15:39:26]Send response to host [15:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69880,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:39:26]free response buf [15:39:26]execute_script done [15:39:26]execute_script returns [15:39:26]free content buf [15:39:26]Sock 9.Close socket [15:39:26]Sock 9.Thread stoped [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:32]accept exits with 8 [15:40:32]New connection [15:40:32]New thread 3067313508 created [15:40:32]Thread 3067456868 joined [15:40:32]Waiting for new connection... [15:40:32] Sock 8.Parse request [15:40:32]Sock 8.Check first char [15:40:32]Sock 8.First char is OK [15:40:32]request: POST /json_proto HTTP/1.0 [15:40:32]Method: POST [15:40:32]URL: /json_proto [15:40:32]Method is POST - this is cgi request [15:40:32]url: /json_proto [15:40:32]query_string will be loaded in cgi processing [15:40:32]execute_cgi json_proto POST (null) [15:40:32]execute_cgi path=json_proto method=POST [15:40:32]POST find Content-Length [15:40:32]Host: 172.17.50.3:8080 [15:40:32]Content-Length: 683 [15:40:32]Content-Type: application/json [15:40:32] [15:40:32]POST finish read [15:40:32]Found Content-Length = 683 [15:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885636", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:32]execute_script... [15:40: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)2885636", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:32]POST & json_proto [15:40:32]process_json_proto [15:40:32]json parsed OK: [15:40:32]protocol is kg_v1.0 [15:40:32]action value=close_receipt [15:40:32]process_action close_receipt [15:40:32]cmd_close_receipt [15:40:32]MH_GetDate [15:40:32]Write to MH i2c: F0 00 00 5D 51 9D [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 5D 51 00 F5 75 16 67 6B 98 1E 66 14 [15:40:32]GetLastDocTimeStamp 1729525166 [15:40:32]current date 1729525237 [15:40:32]FM_GetShiftState [15:40:32]SAM_PROTO_GetShiftState [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 13 01 00 [15:40:32]Write to MH i2c: E2 08 00 5E 51 80 13 01 00 00 00 00 00 2C [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 5E 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 58 [15:40:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_GetShiftState done [15:40:32]FM_GetShiftState done [15:40:32]opened in 1729469703 [15:40:32]opened+sec_in_day 1729556103 [15:40:32]quantity*price = 160024 [15:40:32]sum+1 = 160026 [15:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 271 21.10.2024 15:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69881 ФПД: 9002663405768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69881&fm=9002663405768&tin=02508201610067®Number=0000000000156251&sum=160000 [15:40:33]StoreToDocumentArchive [15:40:33]shift 194 fd 69881 [15:40:33]save to /storage/0194/doc_00069881 [15:40:33]save last doc name /storage/0194/doc_00069881 to /storage/kkm_last_doc_name [15:40:33]save OK [15:40:33]Clear old archive folders... [15:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:33]tlvbuf is 00CA2E90 [15:40:33]SAM_PROTO_ClearQueue [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 09 00 00 [15:40:33]Write to MH i2c: E2 08 00 6B 51 80 09 00 00 00 00 00 00 2E [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 6B 51 00 90 00 30 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_ClearQueue done [15:40:33]KKMCreateOFDPacket [15:40:33]OFDProtocolAddRootSTLVToBuf [15:40:33]FM_MakeSignedData [15:40:33]FM_MakeSignedData [15:40:33]SAM_PROTO_SignData [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 01 02 [15:40:33]Write to MH i2c: E2 08 00 6C 51 80 0D 01 02 00 00 00 00 36 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 6C 51 00 90 00 31 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=255 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 10 01 00 35 04 06 00 08 [15:40:34]Write to MH i2c: E2 02 01 6D 51 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 10 01 00 35 04 06 00 08 00 00 B1 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 6D 51 00 90 00 32 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=10 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 02 02 05 30 18 8D E8 C8 [15:40:34]Write to MH i2c: E2 0D 00 6E 51 80 0D 02 02 05 00 30 18 8D E8 C8 00 00 C8 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 6E 51 00 90 00 33 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 03 02 [15:40:34]Write to MH i2c: E2 08 00 6F 51 80 0D 03 02 00 00 00 00 3B [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 6F 51 00 95 88 05 F3 53 A3 D7 ED 90 00 0B [15:40:34]RAPDU: 95 88 05 F3 53 A3 D7 ED 90 00 [15:40:34]wFMCommunicate OK [15:40:34]SAM_PROTO_SignData done [15:40:34]FM_MakeSignedData done [15:40:34]CreateOFDProtocolMessage [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 11 00 00 [15:40:34]Write to MH i2c: E2 08 00 70 51 80 11 00 00 00 00 00 00 3B [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 70 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [15:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:40:34]wFMCommunicate OK [15:40:34]CreateOFDProtocolMessage done [15:40:34]OFDSenderStorePacket 69881 [15:40:34]StoreOFDPacket docnum=69881 [15:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 C6 07 01 DE 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 10 01 00 35 04 06 00 08 30 18 8D E8 C8 95 88 05 F3 53 A3 D7 ED [15:40:34]CheckFolder [15:40:34]dirname=/storage/ofd_packets [15:40:34]CheckFolder done [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00069881 [15:40:34]NVStorageSaveData ofd_packets/00069881 [15:40:34]File name is /storage/ofd_packets/00069881 [15:40:34]Write 301 bytes [15:40:34]NVStorageSaveData done [15:40:34]OFDSenderStorePacket done [15:40:34]KKMCreateOFDPacket done [15:40:34]NVStorageSaveData kkm_last_timestamp [15:40:34]File name is /storage/kkm_last_timestamp [15:40:34]Write 4 bytes [15:40:34]NVStorageSaveData done [15:40:34]ExternCall_PrintAddStr [15:40:34]wPrintStart [15:40:34]Write to MH i2c: 01 00 00 71 51 C2 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 71 51 00 00 00 00 00 FF 0F D7 [15:40:34]RasterBufferAndPrint [15:40:34]line Счет N : (1)2885636 [15:40:34]line ИНН: 02508201610067 [15:40:34]line Контрольно-Кассовый Чек [15:40:34]line ПРОДАЖА [15:40:34]line ТРК (МРК, ГНК) : 42 [15:40:34]line Товар: 2710124130 [15:40:34]line Аи-92-К-5 [15:40:34]line 23.920 * 66.90 [15:40:34]line = 1600.25 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line ОКРУГЛЕНИЕ: -0.25 [15:40:34]line ИТОГО: 1600.00 [15:40:34]line Внесено: 1600.00 [15:40:34]line СДАЧА: 0.00 [15:40:34]line НСП 1% : 14.16 [15:40:34]line НДС 12% : 169.94 [15:40:34]line Наличными: 1600.00 [15:40:34]line Безнал.: 0.00 [15:40:34]line Место: АЗС № 85 "Партнер Нефть" [15:40:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:40:34]line СНО: Общий режим [15:40:34]line Чек 271 21.10.2024 15:40 [15:40:34]line Смена: 194 ФФД: 1.0 [15:40:34]line ЗНМ: 0300000167 [15:40:34]line РНМ: 0000000000156251 [15:40:34]line Версия ККМ: v1.0 [15:40:34]line ФМ: 0000000000963346 [15:40:34]line ФД: 69881 [15:40:34]line ФПД: 9002663405768 [15:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69881&fm=9002663405768&tin=02508201610067®Number=0000000000156251&sum=160000 [15:40:34]OFD Sender: Processing packet 69881 [packets to send 18, broken 17] [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00069881 [15:40:34]OFD Sender: To server: pG, [15:40:34]CommunicateWithHost lk.salyk.kg:30040 [15:40:34]ConnectInit lk.salyk.kg [15:40:34]written 0, free lines is 4095 [15:40:34]Connected sock=10 [15:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 C6 07 01 DE 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 10 01 00 35 04 06 00 08 30 18 8D E8 C8 95 88 05 F3 53 A3 D7 ED [15:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 38 47 00 36 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 39 36 33 33 34 36 10 04 04 00 F9 10 01 00 F4 03 04 00 98 1F 16 67 B6 04 01 00 00 C9 A9 96 A5 A2 18 10 A8 [15:40:35]CommunicateWithHost err = 0 [15:40:35]CheckOFDResponse [15:40:35]1017 (14) - 77093643461234 [15:40:35]1041 (16) - 0000000000963346 [15:40:35]1040 (4) - 69881 [15:40:35]1012 (4) - 21.10.2024 09:32 [15:40:35]1206 (1) - 0 [15:40:35]OFD Sender: Remove packet 69881 [15:40:35]ProducePacketName [15:40:35]name=ofd_packets/00069881 [15:40:35]NVStorageDeleteData [15:40:35]Write to MH i2c: 01 00 00 9C 51 ED [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 9C 51 00 00 00 00 00 01 0D 02 [15:40:35]RasterBufferAndPrint [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]written 0, free lines is 3338 [15:40:35]MH_Cut [15:40:35]Write to MH i2c: D1 01 00 A3 51 01 C6 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 A3 51 00 C5 [15:40:35]Write to MH i2c: 01 00 00 A4 51 F5 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]OFD Sender: No OFD packet to send [15:40:35]*** Cut start [15:40:35]*** Partial cut [15:40:35]*** CUTSNS_PIN = 1 [15:40:35]*** CUTSNS_PIN = 0 [15:40:36]*** Brake cut motor [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 A4 51 00 00 00 00 00 FF 0F 0A [15:40:36]process_action close_receipt done [15:40:36]requested_data is exist [15:40:36]produce_requested_data [15:40:36]requested_item fm.sn is exist - process it [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 11 00 00 [15:40:36]Write to MH i2c: E2 08 00 A5 51 80 11 00 00 00 00 00 00 70 [15:40:36]*** Stop cut motor [15:40:36]*** Cut end [15:40:36]*** FLAG_PRN_PAP1 set [15:40:36]int [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 A5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [15:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:40:36]wFMCommunicate OK [15:40:36]requested_item fd.num is exist - process it [15:40:36]SAM_PROTO_GetFieldsCounters [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 00 00 [15:40:36]Write to MH i2c: E2 08 00 A6 51 80 13 00 00 00 00 00 00 73 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:36]*** FLAG_PRN_PAP2 set [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 A6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [15:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetFieldsCounters done [15:40:36]requested_item shift.num is exist - process it [15:40:36]requested_item shift.opened is exist - process it [15:40:36]req_shift_opened [15:40:36]FM_GetShiftState [15:40:36]SAM_PROTO_GetShiftState [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 01 00 [15:40:36]Write to MH i2c: 01 00 00 A7 51 F8 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 A7 51 00 03 00 00 00 FF 0F 10 [15:40:36]state=0 [15:40:36]No paper [15:40:36]Cover opened [15:40:36]Write to MH i2c: E2 08 00 A8 51 80 13 01 00 00 00 00 00 76 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 A8 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A2 [15:40:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetShiftState done [15:40:36]FM_GetShiftState done [15:40:36]req_shift_opened done [15:40:36]requested_item shift.open_date is exist - process it [15:40:36]req_shift_open_date [15:40:36]req_shift_open_date done [15:40:36]produce_requested_data done [15:40:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69881,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:40:36]process_action_free close_receipt [15:40:36]json_value_free [15:40:36]json_value_free done [15:40:36]process_json_proto returns [15:40:36]Send response to host [15:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69881,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:40:36]free response buf [15:40:36]execute_script done [15:40:36]execute_script returns [15:40:36]free content buf [15:40:36]Sock 8.Close socket [15:40:36]Sock 8.Thread stoped [15:40:38]int [15:40:38]Write to MH i2c: 01 00 00 A9 51 FA [15:40:38]*** FLAG_PRN_PAP2 reset [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 A9 51 00 01 00 00 00 FF 0F 10 [15:40:38]state=3 [15:40:38]No paper [15:40:38]Cover closed [15:40:38]int [15:40:38]Write to MH i2c: 01 00 00 AA 51 FB [15:40:38]*** FLAG_PRN_PAP2 set [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 AA 51 00 03 00 00 00 FF 0F 13 [15:40:38]state=0 [15:40:38]No paper [15:40:38]Cover opened [15:40:40]OFD Sender: No OFD packet to send [15:40:41]int [15:40:41]Write to MH i2c: 01 00 00 AB 51 FC [15:40:41]*** FLAG_PRN_PAP2 reset [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 AB 51 00 01 00 00 00 FF 0F 12 [15:40:41]state=3 [15:40:41]No paper [15:40:41]Cover closed [15:40:41]int [15:40:41]Write to MH i2c: 01 00 00 AC 51 FD [15:40:41]*** FLAG_PRN_PAP1 reset [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 AC 51 00 00 00 00 00 FF 0F 12 [15:40:41]state=0 [15:40:43]accept exits with 9 [15:40:43]New connection [15:40:43]New thread 3067456868 created [15:40:43]Thread 3067313508 joined [15:40:43]Waiting for new connection... [15:40:43] Sock 9.Parse request [15:40:43]Sock 9.Check first char [15:40:43]Sock 9.First char is OK [15:40:43]request: POST /json_proto HTTP/1.0 [15:40:43]Method: POST [15:40:43]URL: /json_proto [15:40:43]Method is POST - this is cgi request [15:40:43]url: /json_proto [15:40:43]query_string will be loaded in cgi processing [15:40:43]execute_cgi json_proto POST (null) [15:40:43]execute_cgi path=json_proto method=POST [15:40:43]POST find Content-Length [15:40:43]Host: 172.17.50.3:8080 [15:40:43]Content-Length: 739 [15:40:43]Content-Type: application/json [15:40:43] [15:40:43]POST finish read [15:40:43]Found Content-Length = 739 [15:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69881, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885636", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:43]execute_script... [15:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69881, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885636", "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" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:43]POST & json_proto [15:40:43]process_json_proto [15:40:43]json parsed OK: [15:40:43]protocol is kg_v1.0 [15:40:43]action value=close_receipt [15:40:43]process_action close_receipt [15:40:43]cmd_close_receipt [15:40:43]MH_GetDate [15:40:43]Write to MH i2c: F0 00 00 AD 51 ED [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 09 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 09 00 AD 51 00 FF 75 16 67 6B 98 1E 66 6E [15:40:43]GetLastDocTimeStamp 1729525237 [15:40:43]current date 1729525247 [15:40:43]FM_GetShiftState [15:40:43]SAM_PROTO_GetShiftState [15:40:43]wFMCommunicate request_size=4 [15:40:43]MH_SAM_APDU [15:40:43]CAPDU: 80 13 01 00 [15:40:43]Write to MH i2c: E2 08 00 AE 51 80 13 01 00 00 00 00 00 7C [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:43]Read from MH i2c: E2 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 AE 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A8 [15:40:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:40:43]wFMCommunicate OK [15:40:43]SAM_PROTO_GetShiftState done [15:40:43]FM_GetShiftState done [15:40:43]opened in 1729469703 [15:40:43]opened+sec_in_day 1729556103 [15:40:43]quantity*price = 160024 [15:40:43]sum+1 = 160026 [15:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 272 21.10.2024 15:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69881 ФМ осн.: 0000000000963346 ФМ: 0000000000963346 ФД: 69882 ФПД: 278745408312914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154047&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69882&fm=278745408312914&tin=02508201610067®Number=0000000000156251&sum=160000 [15:40:44]StoreToDocumentArchive [15:40:44]shift 194 fd 69882 [15:40:44]save to /storage/0194/doc_00069882 [15:40:44]save last doc name /storage/0194/doc_00069882 to /storage/kkm_last_doc_name [15:40:44]save OK [15:40:44]Clear old archive folders... [15:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:40:44]tlvbuf is B6FD3230 [15:40:44]SAM_PROTO_ClearQueue [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 09 00 00 [15:40:44]Write to MH i2c: E2 08 00 BD 51 80 09 00 00 00 00 00 00 80 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 BD 51 00 90 00 82 [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_ClearQueue done [15:40:44]KKMCreateOFDPacket [15:40:44]OFDProtocolAddRootSTLVToBuf [15:40:44]FM_MakeSignedData [15:40:44]FM_MakeSignedData [15:40:44]SAM_PROTO_SignData [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 01 02 [15:40:44]Write to MH i2c: E2 08 00 BE 51 80 0D 01 02 00 00 00 00 88 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 BE 51 00 90 00 83 [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=255 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 FF 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F9 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 [15:40:44]Write to MH i2c: E2 02 01 BF 51 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 FF 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F9 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 00 00 68 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 BF 51 00 90 00 84 [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=38 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 10 01 00 35 04 06 00 FD 84 79 0B 96 52 [15:40:44]Write to MH i2c: E2 29 00 C0 51 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 10 01 00 35 04 06 00 FD 84 79 0B 96 52 00 00 0B [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 C0 51 00 90 00 85 [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 03 02 [15:40:44]Write to MH i2c: E2 08 00 C1 51 80 0D 03 02 00 00 00 00 8D [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0B 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0B 00 C1 51 00 38 78 6D C2 B1 2F CA FC 90 00 13 [15:40:45]RAPDU: 38 78 6D C2 B1 2F CA FC 90 00 [15:40:45]wFMCommunicate OK [15:40:45]SAM_PROTO_SignData done [15:40:45]FM_MakeSignedData done [15:40:45]CreateOFDProtocolMessage [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 11 00 00 [15:40:45]Write to MH i2c: E2 08 00 C2 51 80 11 00 00 00 00 00 00 8D [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 17 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 17 00 C2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [15:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:40:45]wFMCommunicate OK [15:40:45]CreateOFDProtocolMessage done [15:40:45]OFDSenderStorePacket 69882 [15:40:45]StoreOFDPacket docnum=69882 [15:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 A7 53 23 01 A2 D2 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 FF 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F9 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 10 01 00 35 04 06 00 FD 84 79 0B 96 52 38 78 6D C2 B1 2F CA FC [15:40:45]CheckFolder [15:40:45]dirname=/storage/ofd_packets [15:40:45]CheckFolder done [15:40:45]ProducePacketName [15:40:45]name=ofd_packets/00069882 [15:40:45]NVStorageSaveData ofd_packets/00069882 [15:40:45]File name is /storage/ofd_packets/00069882 [15:40:45]Write 329 bytes [15:40:45]NVStorageSaveData done [15:40:45]OFDSenderStorePacket done [15:40:45]KKMCreateOFDPacket done [15:40:45]NVStorageSaveData kkm_last_timestamp [15:40:45]File name is /storage/kkm_last_timestamp [15:40:45]Write 4 bytes [15:40:45]NVStorageSaveData done [15:40:45]ExternCall_PrintAddStr [15:40:45]wPrintStart [15:40:45]Write to MH i2c: 01 00 00 C3 51 14 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 C3 51 00 00 00 00 00 FF 0F 29 [15:40:45]RasterBufferAndPrint [15:40:45]line Счет N : (1)2885636 [15:40:45]line ИНН: 02508201610067 [15:40:45]line Контрольно-Кассовый Чек [15:40:45]line ВОЗВРАТ ПРОДАЖИ [15:40:45]line ТРК (МРК, ГНК) : 42 [15:40:45]line Товар: 2710124130 [15:40:45]line Аи-92-К-5 [15:40:45]line 23.920 * 66.90 [15:40:45]line = 1600.25 [15:40:45]line НДС 12% НСП 1% [15:40:45]line > о реализуемом товаре [15:40:45]line ОКРУГЛЕНИЕ: -0.25 [15:40:45]line ИТОГО: 1600.00 [15:40:45]line НСП 1% : 14.16 [15:40:45]line НДС 12% : 169.94 [15:40:45]line Наличными: 1600.00 [15:40:45]line Безнал.: 0.00 [15:40:45]line Место: АЗС № 85 "Партнер Нефть" [15:40:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:40:45]line СНО: Общий режим [15:40:45]line Чек 272 21.10.2024 15:40 [15:40:45]line Смена: 194 ФФД: 1.0 [15:40:45]line ЗНМ: 0300000167 [15:40:45]line РНМ: 0000000000156251 [15:40:45]line Версия ККМ: v1.0 [15:40:45]line ФД осн.: 69881 [15:40:45]line ФМ осн.: 0000000000963346 [15:40:45]line ФМ: 0000000000963346 [15:40:45]line ФД: 69882 [15:40:45]line ФПД: 278745408312914 [15:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154047&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69882&fm=278745408312914&tin=02508201610067®Number=0000000000156251&sum=160000 [15:40:45]written 0, free lines is 4095 [15:40:45]OFD Sender: Processing packet 69882 [packets to send 18, broken 17] [15:40:45]ProducePacketName [15:40:45]name=ofd_packets/00069882 [15:40:45]OFD Sender: To server: pG, [15:40:45]CommunicateWithHost lk.salyk.kg:30040 [15:40:45]ConnectInit lk.salyk.kg [15:40:45]Connected sock=10 [15:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 A7 53 23 01 A2 D2 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 FF 75 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 F9 10 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 10 01 00 35 04 06 00 FD 84 79 0B 96 52 38 78 6D C2 B1 2F CA FC [15:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 EA 47 00 50 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 10 01 00 F4 03 04 00 A3 1F 16 67 B6 04 01 00 00 7F 54 23 CD 2F B7 BD 8C [15:40:45]CommunicateWithHost err = 0 [15:40:45]CheckOFDResponse [15:40:45]1017 (14) - 77093643461234 [15:40:45]1041 (16) - 0000000000963346 [15:40:45]1040 (4) - 69882 [15:40:45]1012 (4) - 21.10.2024 09:32 [15:40:45]1206 (1) - 0 [15:40:45]OFD Sender: Remove packet 69882 [15:40:45]ProducePacketName [15:40:45]name=ofd_packets/00069882 [15:40:45]NVStorageDeleteData [15:40:45]Write to MH i2c: 01 00 00 EE 51 3F [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 EE 51 00 00 00 00 00 19 0D 6C [15:40:45]RasterBufferAndPrint [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]written 0, free lines is 3368 [15:40:45]MH_Cut [15:40:45]Write to MH i2c: D1 01 00 F5 51 01 18 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 01 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 01 00 F5 51 00 17 [15:40:45]Write to MH i2c: 01 00 00 F6 51 47 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:46]OFD Sender: No OFD packet to send [15:40:46]*** Cut start [15:40:46]*** Partial cut [15:40:46]*** CUTSNS_PIN = 1 [15:40:46]*** CUTSNS_PIN = 0 [15:40:46]*** Brake cut motor [15:40:46]Read from MH i2c: 01 [15:40:46]MH_I2C_Read... [15:40:46]*** Stop cut motor [15:40:46]*** Cut end [15:40:46]Read from MH i2c: 01 07 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 F6 51 00 00 00 00 00 FF 0F 5C [15:40:46]process_action close_receipt done [15:40:46]requested_data is exist [15:40:46]produce_requested_data [15:40:46]requested_item fm.sn is exist - process it [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 11 00 00 [15:40:46]Write to MH i2c: E2 08 00 F7 51 80 11 00 00 00 00 00 00 C2 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 F7 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [15:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:40:46]wFMCommunicate OK [15:40:46]requested_item fd.num is exist - process it [15:40:46]SAM_PROTO_GetFieldsCounters [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 13 00 00 [15:40:46]Write to MH i2c: E2 08 00 F8 51 80 13 00 00 00 00 00 00 C5 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 F8 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [15:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetFieldsCounters done [15:40:47]requested_item shift.num is exist - process it [15:40:47]requested_item shift.opened is exist - process it [15:40:47]req_shift_opened [15:40:47]FM_GetShiftState [15:40:47]SAM_PROTO_GetShiftState [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 13 01 00 [15:40:47]Write to MH i2c: E2 08 00 F9 51 80 13 01 00 00 00 00 00 C7 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 F9 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F3 [15:40:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetShiftState done [15:40:47]FM_GetShiftState done [15:40:47]req_shift_opened done [15:40:47]requested_item shift.open_date is exist - process it [15:40:47]req_shift_open_date [15:40:47]req_shift_open_date done [15:40:47]produce_requested_data done [15:40:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69882,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:40:47]process_action_free close_receipt [15:40:47]json_value_free [15:40:47]json_value_free done [15:40:47]process_json_proto returns [15:40:47]Send response to host [15:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69882,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:40:47]free response buf [15:40:47]execute_script done [15:40:47]execute_script returns [15:40:47]free content buf [15:40:47]Sock 9.Close socket [15:40:47]Sock 9.Thread stoped [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:06]accept exits with 8 [15:41:06]New connection [15:41:06]New thread 3067313508 created [15:41:06]Thread 3067456868 joined [15:41:06]Waiting for new connection... [15:41:06] Sock 8.Parse request [15:41:06]Sock 8.Check first char [15:41:06]Sock 8.First char is OK [15:41:06]request: POST /json_proto HTTP/1.0 [15:41:06]Method: POST [15:41:06]URL: /json_proto [15:41:06]Method is POST - this is cgi request [15:41:06]url: /json_proto [15:41:06]query_string will be loaded in cgi processing [15:41:06]execute_cgi json_proto POST (null) [15:41:06]execute_cgi path=json_proto method=POST [15:41:06]POST find Content-Length [15:41:06]Host: 172.17.50.3:8080 [15:41:06]Content-Length: 689 [15:41:06]Content-Type: application/json [15:41:06] [15:41:06]POST finish read [15:41:06]Found Content-Length = 689 [15:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.970, "sum" : 1001.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1001.00, "total" : 1001.00, "payments": [ { "type": 0, "sum" : 1001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:06]execute_script... [15:41: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)2885635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.970, "sum" : 1001.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1001.00, "total" : 1001.00, "payments": [ { "type": 0, "sum" : 1001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:06]POST & json_proto [15:41:06]process_json_proto [15:41:06]json parsed OK: [15:41:06]protocol is kg_v1.0 [15:41:06]action value=close_receipt [15:41:06]process_action close_receipt [15:41:06]cmd_close_receipt [15:41:06]MH_GetDate [15:41:06]Write to MH i2c: F0 00 00 FA 51 3A [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 09 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 09 00 FA 51 00 17 76 16 67 6B 98 1E 66 D4 [15:41:06]GetLastDocTimeStamp 1729525247 [15:41:06]current date 1729525271 [15:41:06]FM_GetShiftState [15:41:06]SAM_PROTO_GetShiftState [15:41:06]wFMCommunicate request_size=4 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 13 01 00 [15:41:06]Write to MH i2c: E2 08 00 FB 51 80 13 01 00 00 00 00 00 C9 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 FB 51 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [15:41:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:41:06]wFMCommunicate OK [15:41:06]SAM_PROTO_GetShiftState done [15:41:06]FM_GetShiftState done [15:41:06]opened in 1729469703 [15:41:06]opened+sec_in_day 1729556103 [15:41:06]quantity*price = 100128 [15:41:06]sum+1 = 100129 [15:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1001.00 Внесено: 1001.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.33 Наличными: 1001.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 273 21.10.2024 15:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69883 ФПД: 117997513710592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154111&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69883&fm=117997513710592&tin=02508201610067®Number=0000000000156251&sum=100100 [15:41:07]StoreToDocumentArchive [15:41:07]shift 194 fd 69883 [15:41:07]save to /storage/0194/doc_00069883 [15:41:07]save last doc name /storage/0194/doc_00069883 to /storage/kkm_last_doc_name [15:41:07]save OK [15:41:07]Clear old archive folders... [15:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:41:07]tlvbuf is 00D17960 [15:41:07]SAM_PROTO_ClearQueue [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 09 00 00 [15:41:07]Write to MH i2c: E2 08 00 08 52 80 09 00 00 00 00 00 00 CC [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 08 52 00 90 00 CE [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_ClearQueue done [15:41:07]KKMCreateOFDPacket [15:41:07]OFDProtocolAddRootSTLVToBuf [15:41:07]FM_MakeSignedData [15:41:07]FM_MakeSignedData [15:41:07]SAM_PROTO_SignData [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 0D 01 02 [15:41:07]Write to MH i2c: E2 08 00 09 52 80 0D 01 02 00 00 00 00 D4 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 09 52 00 90 00 CF [15:41:08]RAPDU: 90 00 [15:41:08]wFMCommunicate OK [15:41:08]wFMCommunicate request_size=255 [15:41:08]MH_SAM_APDU [15:41:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 17 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 10 01 [15:41:08]Write to MH i2c: E2 02 01 0A 52 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 17 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 10 01 00 00 3B [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 0A 52 00 90 00 D0 [15:41:08]RAPDU: 90 00 [15:41:08]wFMCommunicate OK [15:41:08]wFMCommunicate request_size=16 [15:41:08]MH_SAM_APDU [15:41:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6B 51 6F E3 9C 00 [15:41:08]Write to MH i2c: E2 13 00 0B 52 80 0D 02 02 0B 00 00 35 04 06 00 6B 51 6F E3 9C 00 00 00 D6 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 03 00 0B 52 00 90 00 D1 [15:41:08]RAPDU: 90 00 [15:41:08]wFMCommunicate OK [15:41:08]wFMCommunicate request_size=4 [15:41:08]MH_SAM_APDU [15:41:08]CAPDU: 80 0D 03 02 [15:41:08]Write to MH i2c: E2 08 00 0C 52 80 0D 03 02 00 00 00 00 D9 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 0B 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 0B 00 0C 52 00 50 D7 54 7A A9 9C 9B F7 90 00 A6 [15:41:08]RAPDU: 50 D7 54 7A A9 9C 9B F7 90 00 [15:41:08]wFMCommunicate OK [15:41:08]SAM_PROTO_SignData done [15:41:08]FM_MakeSignedData done [15:41:08]CreateOFDProtocolMessage [15:41:08]wFMCommunicate request_size=4 [15:41:08]MH_SAM_APDU [15:41:08]CAPDU: 80 11 00 00 [15:41:08]Write to MH i2c: E2 08 00 0D 52 80 11 00 00 00 00 00 00 D9 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:08]Read from MH i2c: E2 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 17 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: E2 17 00 0D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [15:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:41:08]wFMCommunicate OK [15:41:08]CreateOFDProtocolMessage done [15:41:08]OFDSenderStorePacket 69883 [15:41:08]StoreOFDPacket docnum=69883 [15:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 9D 2A 0D 01 8E DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 17 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 10 01 00 35 04 06 00 6B 51 6F E3 9C 00 50 D7 54 7A A9 9C 9B F7 [15:41:08]CheckFolder [15:41:08]dirname=/storage/ofd_packets [15:41:08]CheckFolder done [15:41:08]ProducePacketName [15:41:08]name=ofd_packets/00069883 [15:41:08]NVStorageSaveData ofd_packets/00069883 [15:41:08]File name is /storage/ofd_packets/00069883 [15:41:08]Write 307 bytes [15:41:08]NVStorageSaveData done [15:41:08]OFDSenderStorePacket done [15:41:08]KKMCreateOFDPacket done [15:41:08]NVStorageSaveData kkm_last_timestamp [15:41:08]File name is /storage/kkm_last_timestamp [15:41:08]Write 4 bytes [15:41:08]NVStorageSaveData done [15:41:08]ExternCall_PrintAddStr [15:41:08]wPrintStart [15:41:08]Write to MH i2c: 01 00 00 0E 52 60 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 07 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 07 00 0E 52 00 00 00 00 00 FF 0F 75 [15:41:08]RasterBufferAndPrint [15:41:08]line Счет N : (1)2885635 [15:41:08]line ИНН: 02508201610067 [15:41:08]line Контрольно-Кассовый Чек [15:41:08]line ПРОДАЖА [15:41:08]line ТРК (МРК, ГНК) : 31 [15:41:08]line Товар: 2710194240 [15:41:08]line D-ENERGY Дт-К-2 [15:41:08]line 12.970 * 77.20 [15:41:08]line = 1001.28 [15:41:08]line НДС 12% НСП 1% [15:41:08]line > о реализуемом товаре [15:41:08]line ОКРУГЛЕНИЕ: -0.28 [15:41:08]line ИТОГО: 1001.00 [15:41:08]line Внесено: 1001.00 [15:41:08]line СДАЧА: 0.00 [15:41:08]line НСП 1% : 8.86 [15:41:08]line НДС 12% : 106.33 [15:41:08]line Наличными: 1001.00 [15:41:08]line Безнал.: 0.00 [15:41:08]line Место: АЗС № 85 "Партнер Нефть" [15:41:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:41:08]line СНО: Общий режим [15:41:08]line Чек 273 21.10.2024 15:41 [15:41:08]line Смена: 194 ФФД: 1.0 [15:41:08]line ЗНМ: 0300000167 [15:41:08]line РНМ: 0000000000156251 [15:41:08]line Версия ККМ: v1.0 [15:41:08]line ФМ: 0000000000963346 [15:41:08]line ФД: 69883 [15:41:08]line ФПД: 117997513710592 [15:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154111&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69883&fm=117997513710592&tin=02508201610067®Number=0000000000156251&sum=100100 [15:41:08]OFD Sender: Processing packet 69883 [packets to send 18, broken 17] [15:41:08]ProducePacketName [15:41:08]name=ofd_packets/00069883 [15:41:08]OFD Sender: To server: pG, [15:41:08]CommunicateWithHost lk.salyk.kg:30040 [15:41:08]ConnectInit lk.salyk.kg [15:41:08]written 0, free lines is 4095 [15:41:08]Connected sock=10 [15:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 9D 2A 0D 01 8E DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 17 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 10 01 00 35 04 06 00 6B 51 6F E3 9C 00 50 D7 54 7A A9 9C 9B F7 [15:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 24 47 00 6B 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 39 36 33 33 34 36 10 04 04 00 FB 10 01 00 F4 03 04 00 BA 1F 16 67 B6 04 01 00 00 4B 9F 01 DD 52 BB 12 56 [15:41:09]CommunicateWithHost err = 0 [15:41:09]CheckOFDResponse [15:41:09]1017 (14) - 77093643461234 [15:41:09]1041 (16) - 0000000000963346 [15:41:09]1040 (4) - 69883 [15:41:09]1012 (4) - 21.10.2024 09:32 [15:41:09]1206 (1) - 0 [15:41:09]OFD Sender: Remove packet 69883 [15:41:09]ProducePacketName [15:41:09]name=ofd_packets/00069883 [15:41:09]NVStorageDeleteData [15:41:09]Write to MH i2c: 01 00 00 39 52 8B [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: 01 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: 01 07 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: 01 07 00 39 52 00 00 00 00 00 00 0D 9F [15:41:09]RasterBufferAndPrint [15:41:09]line [15:41:09]line [15:41:09]line [15:41:09]line [15:41:09]line [15:41:09]written 0, free lines is 3337 [15:41:09]MH_Cut [15:41:09]Write to MH i2c: D1 01 00 40 52 01 64 [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: D1 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: D1 01 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: D1 01 00 40 52 00 63 [15:41:09]Write to MH i2c: 01 00 00 41 52 93 [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]OFD Sender: No OFD packet to send [15:41:09]*** Cut start [15:41:09]*** Partial cut [15:41:09]*** CUTSNS_PIN = 1 [15:41:09]*** CUTSNS_PIN = 0 [15:41:10]*** Brake cut motor [15:41:10]Read from MH i2c: 01 [15:41:10]MH_I2C_Read... [15:41:10]*** Stop cut motor [15:41:10]*** Cut end [15:41:10]Read from MH i2c: 01 07 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: 01 07 00 41 52 00 00 00 00 00 FF 0F A8 [15:41:10]process_action close_receipt done [15:41:10]requested_data is exist [15:41:10]produce_requested_data [15:41:10]requested_item fm.sn is exist - process it [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 11 00 00 [15:41:10]Write to MH i2c: E2 08 00 42 52 80 11 00 00 00 00 00 00 0E [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 17 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 17 00 42 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [15:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:41:10]wFMCommunicate OK [15:41:10]requested_item fd.num is exist - process it [15:41:10]SAM_PROTO_GetFieldsCounters [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 13 00 00 [15:41:10]Write to MH i2c: E2 08 00 43 52 80 13 00 00 00 00 00 00 11 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 62 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 62 00 43 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_GetFieldsCounters done [15:41:10]requested_item shift.num is exist - process it [15:41:10]requested_item shift.opened is exist - process it [15:41:10]req_shift_opened [15:41:10]FM_GetShiftState [15:41:10]SAM_PROTO_GetShiftState [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 13 01 00 [15:41:10]Write to MH i2c: E2 08 00 44 52 80 13 01 00 00 00 00 00 13 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 0E 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 0E 00 44 52 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3F [15:41:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_GetShiftState done [15:41:10]FM_GetShiftState done [15:41:10]req_shift_opened done [15:41:10]requested_item shift.open_date is exist - process it [15:41:10]req_shift_open_date [15:41:10]req_shift_open_date done [15:41:10]produce_requested_data done [15:41:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69883,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:41:10]process_action_free close_receipt [15:41:10]json_value_free [15:41:10]json_value_free done [15:41:10]process_json_proto returns [15:41:10]Send response to host [15:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69883,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:41:10]free response buf [15:41:10]execute_script done [15:41:10]execute_script returns [15:41:10]free content buf [15:41:10]Sock 8.Close socket [15:41:10]Sock 8.Thread stoped [15:41:13]accept exits with 9 [15:41:13]New connection [15:41:13]New thread 3067456868 created [15:41:13]Thread 3067313508 joined [15:41:13]Waiting for new connection... [15:41:13] Sock 9.Parse request [15:41:13]Sock 9.Check first char [15:41:13]Sock 9.First char is OK [15:41:13]request: POST /json_proto HTTP/1.0 [15:41:13]Method: POST [15:41:13]URL: /json_proto [15:41:13]Method is POST - this is cgi request [15:41:13]url: /json_proto [15:41:13]query_string will be loaded in cgi processing [15:41:13]execute_cgi json_proto POST (null) [15:41:13]execute_cgi path=json_proto method=POST [15:41:13]POST find Content-Length [15:41:13]Host: 172.17.50.3:8080 [15:41:13]Content-Length: 791 [15:41:13]Content-Type: application/json [15:41:13] [15:41:13]POST finish read [15:41:13]Found Content-Length = 791 [15:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:13]execute_script... [15:41: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)2885633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:13]POST & json_proto [15:41:13]process_json_proto [15:41:13]json parsed OK: [15:41:13]protocol is kg_v1.0 [15:41:13]action value=close_receipt [15:41:13]process_action close_receipt [15:41:13]cmd_close_receipt [15:41:13]MH_GetDate [15:41:13]Write to MH i2c: F0 00 00 45 52 86 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 09 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: F0 09 00 45 52 00 1D 76 16 67 6B 98 1E 66 26 [15:41:13]GetLastDocTimeStamp 1729525271 [15:41:13]current date 1729525277 [15:41:13]FM_GetShiftState [15:41:13]SAM_PROTO_GetShiftState [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 01 00 [15:41:13]Write to MH i2c: E2 08 00 46 52 80 13 01 00 00 00 00 00 15 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 46 52 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 41 [15:41:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetShiftState done [15:41:13]FM_GetShiftState done [15:41:13]opened in 1729469703 [15:41:13]opened+sec_in_day 1729556103 [15:41:13]quantity*price = 0 [15:41:13]sum+1 = 1 [15:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 274 21.10.2024 15:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69884 ФПД: 179477264896630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69884&fm=179477264896630&tin=02508201610067®Number=0000000000156251&sum=0 [15:41:14]StoreToDocumentArchive [15:41:14]shift 194 fd 69884 [15:41:14]save to /storage/0194/doc_00069884 [15:41:14]save last doc name /storage/0194/doc_00069884 to /storage/kkm_last_doc_name [15:41:14]save OK [15:41:14]Clear old archive folders... [15:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:14]tlvbuf is 00D3C710 [15:41:14]SAM_PROTO_ClearQueue [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 09 00 00 [15:41:14]Write to MH i2c: E2 08 00 53 52 80 09 00 00 00 00 00 00 17 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 53 52 00 90 00 19 [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]SAM_PROTO_ClearQueue done [15:41:14]KKMCreateOFDPacket [15:41:14]OFDProtocolAddRootSTLVToBuf [15:41:14]FM_MakeSignedData [15:41:14]FM_MakeSignedData [15:41:14]SAM_PROTO_SignData [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 01 02 [15:41:14]Write to MH i2c: E2 08 00 54 52 80 0D 01 02 00 00 00 00 1F [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 54 52 00 90 00 1A [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=255 [15:41:14]MH_SAM_APDU [15:41: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 32 31 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 12 01 00 00 F4 03 04 00 1D 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 10 01 00 35 04 06 00 A3 3B CE 9E [15:41:14]Write to MH i2c: E2 02 01 55 52 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 32 31 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 12 01 00 00 F4 03 04 00 1D 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 10 01 00 35 04 06 00 A3 3B CE 9E 00 00 D9 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]OFD Sender: No OFD packet to send [15:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 55 52 00 90 00 1B [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=7 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 02 02 02 92 76 [15:41:14]Write to MH i2c: E2 0A 00 56 52 80 0D 02 02 02 00 92 76 00 00 2E [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 03 00 56 52 00 90 00 1C [15:41:14]RAPDU: 90 00 [15:41:14]wFMCommunicate OK [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 0D 03 02 [15:41:14]Write to MH i2c: E2 08 00 57 52 80 0D 03 02 00 00 00 00 24 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0B 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 0B 00 57 52 00 8F D5 9D 19 05 B2 1E 60 90 00 74 [15:41:14]RAPDU: 8F D5 9D 19 05 B2 1E 60 90 00 [15:41:14]wFMCommunicate OK [15:41:14]SAM_PROTO_SignData done [15:41:14]FM_MakeSignedData done [15:41:14]CreateOFDProtocolMessage [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 11 00 00 [15:41:14]Write to MH i2c: E2 08 00 58 52 80 11 00 00 00 00 00 00 24 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 17 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 17 00 58 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [15:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:41:15]wFMCommunicate OK [15:41:15]CreateOFDProtocolMessage done [15:41:15]OFDSenderStorePacket 69884 [15:41:15]StoreOFDPacket docnum=69884 [15:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2A 41 04 01 8F 83 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 32 31 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 12 01 00 00 F4 03 04 00 1D 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 10 01 00 35 04 06 00 A3 3B CE 9E 92 76 8F D5 9D 19 05 B2 1E 60 [15:41:15]CheckFolder [15:41:15]dirname=/storage/ofd_packets [15:41:15]CheckFolder done [15:41:15]ProducePacketName [15:41:15]name=ofd_packets/00069884 [15:41:15]NVStorageSaveData ofd_packets/00069884 [15:41:15]File name is /storage/ofd_packets/00069884 [15:41:15]Write 298 bytes [15:41:15]NVStorageSaveData done [15:41:15]OFDSenderStorePacket done [15:41:15]KKMCreateOFDPacket done [15:41:15]NVStorageSaveData kkm_last_timestamp [15:41:15]File name is /storage/kkm_last_timestamp [15:41:15]Write 4 bytes [15:41:15]NVStorageSaveData done [15:41:15]ExternCall_PrintAddStr [15:41:15]wPrintStart [15:41:15]Write to MH i2c: 01 00 00 59 52 AB [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 59 52 00 00 00 00 00 FF 0F C0 [15:41:15]RasterBufferAndPrint [15:41:15]line Счет N : (1)2885633 [15:41:15]line ИНН: 02508201610067 [15:41:15]line Контрольно-Кассовый Чек [15:41:15]line ПРОДАЖА [15:41:15]line ТРК (МРК, ГНК) : 61 [15:41:15]line Товар: 2710194210 [15:41:15]line ДТ-К-5 [15:41:15]line 100.000 * 0.00 [15:41:15]line = 0.00 [15:41:15]line НДС 12% НСП 1% [15:41:15]line > о реализуемом товаре [15:41:15]line ИТОГО: 0.00 [15:41:15]line НСП 1% : 0.00 [15:41:15]line НДС 12% : 0.00 [15:41:15]line Наличными: 0.00 [15:41:15]line Безнал.: 0.00 [15:41:15]line Место: АЗС № 85 "Партнер Нефть" [15:41:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:41:15]line СНО: Общий режим [15:41:15]line Чек 274 21.10.2024 15:41 [15:41:15]line Смена: 194 ФФД: 1.0 [15:41:15]line ЗНМ: 0300000167 [15:41:15]line РНМ: 0000000000156251 [15:41:15]line Версия ККМ: v1.0 [15:41:15]line Талоны: Топливная Карта [15:41:15]line 31095 [15:41:15]line ФМ: 0000000000963346 [15:41:15]line ФД: 69884 [15:41:15]line ФПД: 179477264896630 [15:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69884&fm=179477264896630&tin=02508201610067®Number=0000000000156251&sum=0 [15:41:15]written 0, free lines is 4095 [15:41:15]OFD Sender: Processing packet 69884 [packets to send 18, broken 17] [15:41:15]ProducePacketName [15:41:15]name=ofd_packets/00069884 [15:41:15]OFD Sender: To server: pG, [15:41:15]CommunicateWithHost lk.salyk.kg:30040 [15:41:15]ConnectInit lk.salyk.kg [15:41:15]Connected sock=8 [15:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 2A 41 04 01 8F 83 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 32 31 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 12 01 00 00 F4 03 04 00 1D 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 10 01 00 35 04 06 00 A3 3B CE 9E 92 76 8F D5 9D 19 05 B2 1E 60 [15:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 5A 47 00 67 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 10 01 00 F4 03 04 00 C0 1F 16 67 B6 04 01 00 00 11 0D 0C 7E 12 D6 52 CB [15:41:15]CommunicateWithHost err = 0 [15:41:15]CheckOFDResponse [15:41:15]1017 (14) - 77093643461234 [15:41:15]1041 (16) - 0000000000963346 [15:41:15]1040 (4) - 69884 [15:41:15]1012 (4) - 21.10.2024 09:32 [15:41:15]1206 (1) - 0 [15:41:15]OFD Sender: Remove packet 69884 [15:41:15]ProducePacketName [15:41:15]name=ofd_packets/00069884 [15:41:15]NVStorageDeleteData [15:41:15]Write to MH i2c: 01 00 00 83 52 D5 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 83 52 00 00 00 00 00 21 0D 0A [15:41:15]RasterBufferAndPrint [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]line [15:41:15]written 0, free lines is 3378 [15:41:15]MH_Cut [15:41:15]Write to MH i2c: D1 01 00 8A 52 01 AE [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 01 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: D1 01 00 8A 52 00 AD [15:41:15]Write to MH i2c: 01 00 00 8B 52 DD [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]OFD Sender: No OFD packet to send [15:41:16]*** Cut start [15:41:16]*** Partial cut [15:41:16]*** CUTSNS_PIN = 1 [15:41:16]*** CUTSNS_PIN = 0 [15:41:16]*** Brake cut motor [15:41:16]Read from MH i2c: 01 [15:41:16]MH_I2C_Read... [15:41:16]*** Stop cut motor [15:41:16]*** Cut end [15:41:16]Read from MH i2c: 01 07 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: 01 07 00 8B 52 00 00 00 00 00 FF 0F F2 [15:41:16]process_action close_receipt done [15:41:16]requested_data is exist [15:41:16]produce_requested_data [15:41:16]requested_item fm.sn is exist - process it [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 11 00 00 [15:41:16]Write to MH i2c: E2 08 00 8C 52 80 11 00 00 00 00 00 00 58 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 17 00 8C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [15:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:41:16]wFMCommunicate OK [15:41:16]requested_item fd.num is exist - process it [15:41:16]SAM_PROTO_GetFieldsCounters [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 13 00 00 [15:41:16]Write to MH i2c: E2 08 00 8D 52 80 13 00 00 00 00 00 00 5B [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 62 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 62 00 8D 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [15:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_GetFieldsCounters done [15:41:17]requested_item shift.num is exist - process it [15:41:17]requested_item shift.opened is exist - process it [15:41:17]req_shift_opened [15:41:17]FM_GetShiftState [15:41:17]SAM_PROTO_GetShiftState [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 13 01 00 [15:41:17]Write to MH i2c: E2 08 00 8E 52 80 13 01 00 00 00 00 00 5D [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 8E 52 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 89 [15:41:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_GetShiftState done [15:41:17]FM_GetShiftState done [15:41:17]req_shift_opened done [15:41:17]requested_item shift.open_date is exist - process it [15:41:17]req_shift_open_date [15:41:17]req_shift_open_date done [15:41:17]produce_requested_data done [15:41:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69884,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:41:17]process_action_free close_receipt [15:41:17]json_value_free [15:41:17]json_value_free done [15:41:17]process_json_proto returns [15:41:17]Send response to host [15:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69884,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:41:17]free response buf [15:41:17]execute_script done [15:41:17]execute_script returns [15:41:17]free content buf [15:41:17]Sock 9.Close socket [15:41:17]Sock 9.Thread stoped [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 8F 52 E1 [15:42:42]*** FLAG_PRN_PAP1 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 8F 52 00 01 00 00 00 FF 0F F7 [15:42:42]state=0 [15:42:42]No paper [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 90 52 E2 [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 90 52 00 03 00 00 00 FF 0F FA [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 91 52 E3 [15:42:42]*** FLAG_PRN_PAP2 reset [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 91 52 00 01 00 00 00 FF 0F F9 [15:42:42]state=3 [15:42:42]No paper [15:42:42]Cover closed [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 92 52 E4 [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 92 52 00 03 00 00 00 FF 0F FC [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 93 52 E5 [15:42:42]*** FLAG_PRN_PAP2 reset [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 93 52 00 01 00 00 00 FF 0F FB [15:42:42]state=3 [15:42:42]No paper [15:42:42]Cover closed [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 94 52 E6 [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 94 52 00 03 00 00 00 FF 0F FE [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 95 52 E7 [15:42:42]*** FLAG_PRN_PAP2 reset [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 95 52 00 01 00 00 00 FF 0F FD [15:42:42]state=3 [15:42:42]No paper [15:42:42]Cover closed [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 96 52 E8 [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 96 52 00 03 00 00 00 FF 0F 00 [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 97 52 E9 [15:42:42]*** FLAG_PRN_PAP2 reset [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 97 52 00 01 00 00 00 FF 0F FF [15:42:42]state=3 [15:42:42]No paper [15:42:42]Cover closed [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 98 52 EA [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 98 52 00 03 00 00 00 FF 0F 02 [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 99 52 EB [15:42:42]*** FLAG_PRN_PAP2 reset [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 99 52 00 01 00 00 00 FF 0F 01 [15:42:42]state=3 [15:42:42]No paper [15:42:42]Cover closed [15:42:42]int [15:42:42]Write to MH i2c: 01 00 00 9A 52 EC [15:42:42]*** FLAG_PRN_PAP2 set [15:42:42]Write i2c OK [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 [15:42:42]MH_I2C_Read... [15:42:42]Read from MH i2c: 01 07 00 9A 52 00 03 00 00 00 FF 0F 04 [15:42:42]state=0 [15:42:42]No paper [15:42:42]Cover opened [15:42:45]int [15:42:45]Write to MH i2c: 01 00 00 9B 52 ED [15:42:45]*** FLAG_PRN_PAP2 reset [15:42:45]Write i2c OK [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 07 00 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 07 00 9B 52 00 01 00 00 00 FF 0F 03 [15:42:45]state=3 [15:42:45]No paper [15:42:45]Cover closed [15:42:45]int [15:42:45]Write to MH i2c: 01 00 00 9C 52 EE [15:42:45]*** FLAG_PRN_PAP2 set [15:42:45]Write i2c OK [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 07 00 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 07 00 9C 52 00 03 00 00 00 FF 0F 06 [15:42:45]state=0 [15:42:45]No paper [15:42:45]Cover opened [15:42:45]OFD Sender: No OFD packet to send [15:42:50]Write to MH i2c: 01 00 00 9D 52 EF [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 9D 52 00 03 00 00 00 FF 0F 07 [15:42:50]state=3 [15:42:50]No paper [15:42:50]Cover opened [15:42:50]OFD Sender: No OFD packet to send [15:42:55]Write to MH i2c: 01 00 00 9E 52 F0 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 9E 52 00 03 00 00 00 FF 0F 08 [15:42:55]state=3 [15:42:55]No paper [15:42:55]Cover opened [15:42:55]OFD Sender: No OFD packet to send [15:43:00]Write to MH i2c: 01 00 00 9F 52 F1 [15:43:00]Write i2c OK [15:43:00]MH_I2C_Read... [15:43:00]Read from MH i2c: 01 [15:43:00]MH_I2C_Read... [15:43:00]Read from MH i2c: 01 07 00 [15:43:00]MH_I2C_Read... [15:43:00]Read from MH i2c: 01 07 00 9F 52 00 03 00 00 00 FF 0F 09 [15:43:00]state=3 [15:43:00]No paper [15:43:00]Cover opened [15:43:01]OFD Sender: No OFD packet to send [15:43:05]Write to MH i2c: 01 00 00 A0 52 F2 [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 07 00 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 07 00 A0 52 00 03 00 00 00 FF 0F 0A [15:43:05]state=3 [15:43:05]No paper [15:43:05]Cover opened [15:43:06]OFD Sender: No OFD packet to send [15:43:10]Write to MH i2c: 01 00 00 A1 52 F3 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 07 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 07 00 A1 52 00 03 00 00 00 FF 0F 0B [15:43:10]state=3 [15:43:10]No paper [15:43:10]Cover opened [15:43:11]OFD Sender: No OFD packet to send [15:43:15]Write to MH i2c: 01 00 00 A2 52 F4 [15:43:15]Write i2c OK [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: 01 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: 01 07 00 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: 01 07 00 A2 52 00 03 00 00 00 FF 0F 0C [15:43:15]state=3 [15:43:15]No paper [15:43:15]Cover opened [15:43:16]OFD Sender: No OFD packet to send [15:43:20]int [15:43:20]Write to MH i2c: 01 00 00 A3 52 F5 [15:43:20]*** FLAG_PRN_PAP2 reset [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 A3 52 00 01 00 00 00 FF 0F 0B [15:43:20]state=3 [15:43:20]No paper [15:43:20]Cover closed [15:43:20]int [15:43:20]Write to MH i2c: 01 00 00 A4 52 F6 [15:43:20]*** FLAG_PRN_PAP2 set [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 A4 52 00 03 00 00 00 FF 0F 0E [15:43:20]state=0 [15:43:20]No paper [15:43:20]Cover opened [15:43:21]OFD Sender: No OFD packet to send [15:43:21]int [15:43:21]Write to MH i2c: 01 00 00 A5 52 F7 [15:43:21]*** FLAG_PRN_PAP2 reset [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 A5 52 00 01 00 00 00 FF 0F 0D [15:43:21]state=3 [15:43:21]No paper [15:43:21]Cover closed [15:43:21]int [15:43:21]Write to MH i2c: 01 00 00 A6 52 F8 [15:43:21]*** FLAG_PRN_PAP2 set [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 A6 52 00 03 00 00 00 FF 0F 10 [15:43:21]state=0 [15:43:21]No paper [15:43:21]Cover opened [15:43:22]int [15:43:22]Write to MH i2c: 01 00 00 A7 52 F9 [15:43:22]*** FLAG_PRN_PAP2 reset [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 07 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 07 00 A7 52 00 01 00 00 00 FF 0F 0F [15:43:22]state=3 [15:43:22]No paper [15:43:22]Cover closed [15:43:22]int [15:43:22]Write to MH i2c: 01 00 00 A8 52 FA [15:43:22]*** FLAG_PRN_PAP1 reset [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 07 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 07 00 A8 52 00 00 00 00 00 FF 0F 0F [15:43:22]state=0 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572508 (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: 16244293+1713281131=1729525424 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 50 00 FF FF 6F [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: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 B1 76 16 67 6B 98 1E 66 2A [15:43:45]Current date/time: 21.10.2024 15:43 [15:43:45]FM_Init [15:43:45]wFMConnect [15:43:45]MH_SAM_On [15:43:45]Write to MH i2c: E0 00 00 08 00 E7 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_init finished! [15:43:45]*** atr: [15:43:45]*** 0F 3B D5 18 FF 81 91 FE [15:43:45]*** 1F C3 80 73 C8 21 10 0A [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]*** 00 00 00 00 00 00 00 00 [15:43:45]Read from MH i2c: E0 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E0 10 00 [15:43:45]MH_I2C_Read... [15:43:45]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 [15:43:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:43:45]wFMCommunicate request_size=10 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:43:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 11 00 00 [15:43:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [15:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:43:45]wFMCommunicate OK [15:43:45]Detected FM SN is 0000000000963346 [15:43:45]Stored FM SN is 0000000000963346 [15:43:45]wFMCommunicate request_size=9 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 16 00 00 04 0B 88 00 00 [15:43:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]FM PIN OK [15:43:45]wFMCommunicate request_size=8 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 14 04 00 03 02 00 01 [15:43:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=13 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:43:45]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 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 11 00 00 [15:43:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [15:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:43:45]wFMCommunicate OK [15:43:45]DocumentArchiveInit [15:43:45]Start Httpd... [15:43:45]Httpd thread 3067456868 created [15:43:45]Write to MH i2c: 01 00 00 0F 00 0F [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:43:45]Allocated Socket 5 [15:43:45]Bind OK [15:43:45]Listen OK [15:43:45]httpd running on port 8080 [15:43:45]Waiting for new connection... [15:43:45]MH Int Process started [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:53]accept exits with 6 [15:43:53]New connection [15:43:53]New thread 3067170148 created [15:43:53]Waiting for new connection... [15:43:53] Sock 6.Parse request [15:43:53]Sock 6.Check first char [15:43:53]Sock 6.First char is OK [15:43:53]request: POST /json_proto HTTP/1.0 [15:43:53]Method: POST [15:43:53]URL: /json_proto [15:43:53]Method is POST - this is cgi request [15:43:53]url: /json_proto [15:43:53]query_string will be loaded in cgi processing [15:43:53]execute_cgi json_proto POST (null) [15:43:53]execute_cgi path=json_proto method=POST [15:43:53]POST find Content-Length [15:43:53]Host: 172.17.50.3:8080 [15:43:53]Content-Length: 215 [15:43:53]Content-Type: application/json [15:43:53] [15:43:53]POST finish read [15:43:53]Found Content-Length = 215 [15:43:53]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" ] } } [15:43:53]execute_script... [15:43:53]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" ] } } [15:43:53]POST & json_proto [15:43:53]process_json_proto [15:43:53]json parsed OK: [15:43:53]protocol is kg_v1.0 [15:43:53]action value=get_value [15:43:53]process_action get_value [15:43:53]cmd_get_value [15:43:53]process_action get_value done [15:43:53]requested_data is exist [15:43:53]produce_requested_data [15:43:53]requested_item kkm.sn is exist - process it [15:43:53]requested_item kkm.ver is exist - process it [15:43:53]requested_item fm.sn is exist - process it [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 11 00 00 [15:43:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:53]Read from MH i2c: E2 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 17 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [15:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:43:53]wFMCommunicate OK [15:43:53]requested_item fd.num is exist - process it [15:43:53]SAM_PROTO_GetFieldsCounters [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 13 00 00 [15:43:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:53]Read from MH i2c: E2 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 62 00 [15:43:53]MH_I2C_Read... [15:43:53]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [15:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:53]wFMCommunicate OK [15:43:53]SAM_PROTO_GetFieldsCounters done [15:43:53]requested_item shift.num is exist - process it [15:43:53]requested_item shift.opened is exist - process it [15:43:53]req_shift_opened [15:43:53]FM_GetShiftState [15:43:53]SAM_PROTO_GetShiftState [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 13 01 00 [15:43:53]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:53]Read from MH i2c: E2 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 0E 00 [15:43:53]MH_I2C_Read... [15:43:53]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BB [15:43:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:43:53]wFMCommunicate OK [15:43:53]SAM_PROTO_GetShiftState done [15:43:53]FM_GetShiftState done [15:43:53]req_shift_opened done [15:43:53]requested_item shift.open_date is exist - process it [15:43:53]req_shift_open_date [15:43:53]req_shift_open_date done [15:43:53]produce_requested_data done [15:43:53]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69884,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:43:53]process_action_free get_value [15:43:53]json_value_free [15:43:53]json_value_free done [15:43:53]process_json_proto returns [15:43:53]Send response to host [15:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69884,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:43:53]free response buf [15:43:53]execute_script done [15:43:53]execute_script returns [15:43:53]free content buf [15:43:53]Sock 6.Close socket [15:43:53]Sock 6.Thread stoped [15:43:53]accept exits with 9 [15:43:53]New connection [15:43:53]New thread 3067026788 created [15:43:53]Thread 3067170148 joined [15:43:53]Waiting for new connection... [15:43:53] Sock 9.Parse request [15:43:53]Sock 9.Check first char [15:43:53]Sock 9.First char is OK [15:43:53]request: POST /json_proto HTTP/1.0 [15:43:53]Method: POST [15:43:53]URL: /json_proto [15:43:53]Method is POST - this is cgi request [15:43:53]url: /json_proto [15:43:53]query_string will be loaded in cgi processing [15:43:53]execute_cgi json_proto POST (null) [15:43:53]execute_cgi path=json_proto method=POST [15:43:53]POST find Content-Length [15:43:53]Host: 172.17.50.3:8080 [15:43:53]Content-Length: 331 [15:43:53]Content-Type: application/json [15:43:53] [15:43:53]POST finish read [15:43:53]Found Content-Length = 331 [15:43:53]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" ] } } [15:43:53]execute_script... [15:43:53]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" ] } } [15:43:53]POST & json_proto [15:43:53]process_json_proto [15:43:53]json parsed OK: [15:43:53]protocol is kg_v1.0 [15:43:53]action value=get_value [15:43:53]process_action get_value [15:43:53]cmd_get_value [15:43:53]process_action get_value done [15:43:53]requested_data is exist [15:43:53]produce_requested_data [15:43:53]requested_item fm.sale.total is exist - process it [15:43:53]SAM_PROTO_GetFMData [15:43:53]wFMCommunicate request_size=4 [15:43:53]MH_SAM_APDU [15:43:53]CAPDU: 80 13 03 00 [15:43:53]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:43:53]Write i2c OK [15:43:53]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 78 0F 01 00 69 04 A3 00 6F 04 04 00 39 0C 01 00 B1 04 05 00 BC B0 11 E4 01 70 04 05 00 58 EC 8D 59 01 72 04 04 00 64 C4 83 8A 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 DE 89 6A 33 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 6A D1 48 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 2F [15:43:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 78 0F 01 00 69 04 A3 00 6F 04 04 00 39 0C 01 00 B1 04 05 00 BC B0 11 E4 01 70 04 05 00 58 EC 8D 59 01 72 04 04 00 64 C4 83 8A 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 DE 89 6A 33 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 6A D1 48 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [15:43:54]wFMCommunicate OK [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 17 00 00 [15:43:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [15:43:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:43:54]wFMCommunicate OK [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 17 00 00 [15:43:54]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [15:43:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:43:54]wFMCommunicate OK [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 17 00 00 [15:43:54]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [15:43:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:43:54]wFMCommunicate OK [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 17 00 00 [15:43:54]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 E2 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [15:43:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_GetFMData done [15:43:55]requested_item fm.sale_refund.total is exist - process it [15:43:55]requested_item fm.buy.total is exist - process it [15:43:55]requested_item shift.sale.total is exist - process it [15:43:55]SAM_PROTO_GetShiftData [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 13 02 00 [15:43:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]OFD Sender: No OFD packet to send [15:43:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 FD 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 FD 00 18 00 00 BC 04 AA 04 B8 04 6E 04 04 00 12 01 00 00 69 04 9E 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 0C 06 E1 01 70 04 04 00 44 5F A1 01 72 04 03 00 C8 A6 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 C8 17 33 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 ED 41 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 6A [15:43:55]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 12 01 00 00 69 04 9E 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 0C 06 E1 01 70 04 04 00 44 5F A1 01 72 04 03 00 C8 A6 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 C8 17 33 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 ED 41 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 17 00 00 [15:43:55]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 FD 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [15:43:55]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 17 00 00 [15:43:55]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 FD 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 FD 00 1A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [15:43:56]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:43:56]wFMCommunicate OK [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 17 00 00 [15:43:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 FD 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 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 90 00 1C [15:43:56]RAPDU: 03 00 00 EF 03 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 90 00 [15:43:56]wFMCommunicate OK [15:43:56]wFMCommunicate request_size=4 [15:43:56]MH_SAM_APDU [15:43:56]CAPDU: 80 17 00 00 [15:43:56]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [15:43:56]Read from MH i2c: E2 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 D9 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: E2 D9 00 1C 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 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 7B [15:43:56]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:43:56]wFMCommunicate OK [15:43:56]SAM_PROTO_GetShiftData done [15:43:56]requested_item shift.sale.total_cash is exist - process it [15:43:56]requested_item shift.sale_refund.total is exist - process it [15:43:56]requested_item shift.sale_refund.total_cash is exist - process it [15:43:56]requested_item shift.buy.total is exist - process it [15:43:56]requested_item shift.buy.total_cash is exist - process it [15:43:56]produce_requested_data done [15:43:56]produce_requested_data return {"fm.sale.total":81213319.00,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":315243.64,"shift.sale.total_cash":273529.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:43:56]process_action_free get_value [15:43:56]json_value_free [15:43:56]json_value_free done [15:43:56]process_json_proto returns [15:43:56]Send response to host [15:43:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81213319.00,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":315243.64,"shift.sale.total_cash":273529.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:43:56]free response buf [15:43:56]execute_script done [15:43:56]execute_script returns [15:43:56]free content buf [15:43:56]Sock 9.Close socket [15:43:56]Sock 9.Thread stoped [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:37]accept exits with 6 [15:44:37]New connection [15:44:37]New thread 3067170148 created [15:44:37]Thread 3067026788 joined [15:44:37]Waiting for new connection... [15:44:37] Sock 6.Parse request [15:44:37]Sock 6.Check first char [15:44:37]Sock 6.First char is OK [15:44:37]request: POST /json_proto HTTP/1.0 [15:44:37]Method: POST [15:44:37]URL: /json_proto [15:44:37]Method is POST - this is cgi request [15:44:37]url: /json_proto [15:44:37]query_string will be loaded in cgi processing [15:44:37]execute_cgi json_proto POST (null) [15:44:37]execute_cgi path=json_proto method=POST [15:44:37]POST find Content-Length [15:44:37]Host: 172.17.50.3:8080 [15:44:37]Content-Length: 678 [15:44:37]Content-Type: application/json [15:44:37] [15:44:37]POST finish read [15:44:37]Found Content-Length = 678 [15:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885638", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]execute_script... [15:44: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)2885638", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]POST & json_proto [15:44:37]process_json_proto [15:44:37]json parsed OK: [15:44:37]protocol is kg_v1.0 [15:44:37]action value=close_receipt [15:44:37]process_action close_receipt [15:44:37]cmd_close_receipt [15:44:37]MH_GetDate [15:44:37]Write to MH i2c: F0 00 00 1D 00 0C [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 1D 00 00 E6 76 16 67 6B 98 1E 66 75 [15:44:37]GetLastDocTimeStamp 1729525277 [15:44:37]current date 1729525478 [15:44:37]FM_GetShiftState [15:44:37]SAM_PROTO_GetShiftState [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 13 01 00 [15:44:37]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C7 [15:44:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetShiftState done [15:44:37]FM_GetShiftState done [15:44:37]opened in 1729469703 [15:44:37]opened+sec_in_day 1729556103 [15:44:37]quantity*price = 50041 [15:44:37]sum+1 = 50042 [15:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 275 21.10.2024 15:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69885 ФПД: 140209335349837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154438&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69885&fm=140209335349837&tin=02508201610067®Number=0000000000156251&sum=50000 [15:44:38]StoreToDocumentArchive [15:44:38]shift 194 fd 69885 [15:44:38]save to /storage/0194/doc_00069885 [15:44:38]save last doc name /storage/0194/doc_00069885 to /storage/kkm_last_doc_name [15:44:38]save OK [15:44:38]Clear old archive folders... [15:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:38]tlvbuf is 01112A50 [15:44:38]SAM_PROTO_ClearQueue [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 09 00 00 [15:44:38]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_ClearQueue done [15:44:38]KKMCreateOFDPacket [15:44:38]OFDProtocolAddRootSTLVToBuf [15:44:38]FM_MakeSignedData [15:44:38]FM_MakeSignedData [15:44:38]SAM_PROTO_SignData [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 01 02 [15:44:38]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=255 [15:44:38]MH_SAM_APDU [15:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 E6 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 10 01 00 35 04 06 00 7F [15:44: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 E6 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 10 01 00 35 04 06 00 7F 00 00 6A [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:44:39]RAPDU: 90 00 [15:44:39]wFMCommunicate OK [15:44:39]wFMCommunicate request_size=10 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 0D 02 02 05 85 07 A0 B2 4D [15:44:39]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 85 07 A0 B2 4D 00 00 DD [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:44:39]RAPDU: 90 00 [15:44:39]wFMCommunicate OK [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 0D 03 02 [15:44:39]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0B 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 0B 00 2F 00 00 70 32 6D E6 C9 D9 B9 9A 90 00 95 [15:44:39]RAPDU: 70 32 6D E6 C9 D9 B9 9A 90 00 [15:44:39]wFMCommunicate OK [15:44:39]SAM_PROTO_SignData done [15:44:39]FM_MakeSignedData done [15:44:39]CreateOFDProtocolMessage [15:44:39]wFMCommunicate request_size=4 [15:44:39]MH_SAM_APDU [15:44:39]CAPDU: 80 11 00 00 [15:44:39]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:39]Read from MH i2c: E2 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [15:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:39]wFMCommunicate OK [15:44:39]CreateOFDProtocolMessage done [15:44:39]OFDSenderStorePacket 69885 [15:44:39]StoreOFDPacket docnum=69885 [15:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA 5F 07 01 9B A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 E6 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 10 01 00 35 04 06 00 7F 85 07 A0 B2 4D 70 32 6D E6 C9 D9 B9 9A [15:44:39]CheckFolder [15:44:39]dirname=/storage/ofd_packets [15:44:39]CheckFolder done [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00069885 [15:44:39]NVStorageSaveData ofd_packets/00069885 [15:44:39]File name is /storage/ofd_packets/00069885 [15:44:39]Write 301 bytes [15:44:39]NVStorageSaveData done [15:44:39]OFDSenderStorePacket done [15:44:39]KKMCreateOFDPacket done [15:44:39]NVStorageSaveData kkm_last_timestamp [15:44:39]File name is /storage/kkm_last_timestamp [15:44:39]Write 4 bytes [15:44:39]NVStorageSaveData done [15:44:39]ExternCall_PrintAddStr [15:44:39]wPrintStart [15:44:39]Write to MH i2c: 01 00 00 31 00 31 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:44:39]RasterBufferAndPrint [15:44:39]line Счет N : (1)2885638 [15:44:39]line ИНН: 02508201610067 [15:44:39]line Контрольно-Кассовый Чек [15:44:39]line ПРОДАЖА [15:44:39]line ТРК (МРК, ГНК) : 42 [15:44:39]line Товар: 2710124130 [15:44:39]line Аи-92-К-5 [15:44:39]line 7.480 * 66.90 [15:44:39]line = 500.41 [15:44:39]line НДС 12% НСП 1% [15:44:39]line > о реализуемом товаре [15:44:39]line ОКРУГЛЕНИЕ: -0.41 [15:44:39]line ИТОГО: 500.00 [15:44:39]line Внесено: 500.00 [15:44:39]line СДАЧА: 0.00 [15:44:39]line НСП 1% : 4.43 [15:44:39]line НДС 12% : 53.14 [15:44:39]line Наличными: 500.00 [15:44:39]line Безнал.: 0.00 [15:44:39]line Место: АЗС № 85 "Партнер Нефть" [15:44:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:44:39]line СНО: Общий режим [15:44:39]line Чек 275 21.10.2024 15:44 [15:44:39]line Смена: 194 ФФД: 1.0 [15:44:39]line ЗНМ: 0300000167 [15:44:39]line РНМ: 0000000000156251 [15:44:39]line Версия ККМ: v1.0 [15:44:39]line ФМ: 0000000000963346 [15:44:39]line ФД: 69885 [15:44:39]line ФПД: 140209335349837 [15:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154438&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69885&fm=140209335349837&tin=02508201610067®Number=0000000000156251&sum=50000 [15:44:39]OFD Sender: Processing packet 69885 [packets to send 18, broken 17] [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00069885 [15:44:39]OFD Sender: To server: pG, [15:44:39]CommunicateWithHost lk.salyk.kg:30040 [15:44:39]ConnectInit lk.salyk.kg [15:44:39]written 0, free lines is 4095 [15:44:39]Connected sock=10 [15:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA 5F 07 01 9B A1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 E6 76 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 10 01 00 35 04 06 00 7F 85 07 A0 B2 4D 70 32 6D E6 C9 D9 B9 9A [15:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 35 2A 47 00 0C 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 10 01 00 F4 03 04 00 89 20 16 67 B6 04 01 00 00 43 49 4E 98 13 36 6F 9E [15:44:40]CommunicateWithHost err = 0 [15:44:40]CheckOFDResponse [15:44:40]1017 (14) - 77093643461234 [15:44:40]1041 (16) - 0000000000963346 [15:44:40]1040 (4) - 69885 [15:44:40]1012 (4) - 21.10.2024 09:36 [15:44:40]1206 (1) - 0 [15:44:40]OFD Sender: Remove packet 69885 [15:44:40]ProducePacketName [15:44:40]name=ofd_packets/00069885 [15:44:40]NVStorageDeleteData [15:44:40]Write to MH i2c: 01 00 00 5C 00 5C [15:44:40]Write i2c OK [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: 01 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: 01 07 00 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E6 0C 55 [15:44:40]RasterBufferAndPrint [15:44:40]line [15:44:40]line [15:44:40]line [15:44:40]line [15:44:40]line [15:44:40]written 0, free lines is 3308 [15:44:40]MH_Cut [15:44:40]Write to MH i2c: D1 01 00 63 00 01 35 [15:44:40]Write i2c OK [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: D1 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: D1 01 00 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: D1 01 00 63 00 00 34 [15:44:40]Write to MH i2c: 01 00 00 64 00 64 [15:44:40]Write i2c OK [15:44:40]MH_I2C_Read... [15:44:40]OFD Sender: No OFD packet to send [15:44:40]*** Cut start [15:44:40]*** Partial cut [15:44:40]*** CUTSNS_PIN = 1 [15:44:40]*** CUTSNS_PIN = 0 [15:44:41]*** Brake cut motor [15:44:41]Read from MH i2c: 01 [15:44:41]MH_I2C_Read... [15:44:41]*** Stop cut motor [15:44:41]*** Cut end [15:44:41]Read from MH i2c: 01 07 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:44:41]process_action close_receipt done [15:44:41]requested_data is exist [15:44:41]produce_requested_data [15:44:41]requested_item fm.sn is exist - process it [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 11 00 00 [15:44:41]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 17 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [15:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:41]wFMCommunicate OK [15:44:41]requested_item fd.num is exist - process it [15:44:41]SAM_PROTO_GetFieldsCounters [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 00 00 [15:44:41]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 62 00 [15:44:41]MH_I2C_Read... [15:44: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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [15:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetFieldsCounters done [15:44:41]requested_item shift.num is exist - process it [15:44:41]requested_item shift.opened is exist - process it [15:44:41]req_shift_opened [15:44:41]FM_GetShiftState [15:44:41]SAM_PROTO_GetShiftState [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 01 00 [15:44:41]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:41]Read from MH i2c: E2 0E 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 10 [15:44:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetShiftState done [15:44:41]FM_GetShiftState done [15:44:41]req_shift_opened done [15:44:41]requested_item shift.open_date is exist - process it [15:44:41]req_shift_open_date [15:44:41]req_shift_open_date done [15:44:41]produce_requested_data done [15:44:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69885,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:44:41]process_action_free close_receipt [15:44:41]json_value_free [15:44:41]json_value_free done [15:44:41]process_json_proto returns [15:44:41]Send response to host [15:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69885,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:44:41]free response buf [15:44:41]execute_script done [15:44:41]execute_script returns [15:44:41]free content buf [15:44:41]Sock 6.Close socket [15:44:41]Sock 6.Thread stoped [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:16]accept exits with 9 [15:47:16]New connection [15:47:16]New thread 3067026788 created [15:47:16]Thread 3067170148 joined [15:47:16]Waiting for new connection... [15:47:16] Sock 9.Parse request [15:47:16]Sock 9.Check first char [15:47:16]Sock 9.First char is OK [15:47:16]request: POST /json_proto HTTP/1.0 [15:47:16]Method: POST [15:47:16]URL: /json_proto [15:47:16]Method is POST - this is cgi request [15:47:16]url: /json_proto [15:47:16]query_string will be loaded in cgi processing [15:47:16]execute_cgi json_proto POST (null) [15:47:16]execute_cgi path=json_proto method=POST [15:47:16]POST find Content-Length [15:47:16]Host: 172.17.50.3:8080 [15:47:16]Content-Length: 683 [15:47:16]Content-Type: application/json [15:47:16] [15:47:16]POST finish read [15:47:16]Found Content-Length = 683 [15:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885640", "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" ] } } [15:47:16]execute_script... [15:47: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)2885640", "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" ] } } [15:47:16]POST & json_proto [15:47:16]process_json_proto [15:47:16]json parsed OK: [15:47:16]protocol is kg_v1.0 [15:47:16]action value=close_receipt [15:47:16]process_action close_receipt [15:47:16]cmd_close_receipt [15:47:16]MH_GetDate [15:47:16]Write to MH i2c: F0 00 00 68 00 57 [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: F0 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: F0 09 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: F0 09 00 68 00 00 84 77 16 67 6B 98 1E 66 5F [15:47:16]GetLastDocTimeStamp 1729525478 [15:47:16]current date 1729525636 [15:47:16]FM_GetShiftState [15:47:16]SAM_PROTO_GetShiftState [15:47:16]wFMCommunicate request_size=4 [15:47:16]MH_SAM_APDU [15:47:16]CAPDU: 80 13 01 00 [15:47:16]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:16]Read from MH i2c: E2 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 0E 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 12 [15:47:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:47:16]wFMCommunicate OK [15:47:16]SAM_PROTO_GetShiftState done [15:47:16]FM_GetShiftState done [15:47:16]opened in 1729469703 [15:47:16]opened+sec_in_day 1729556103 [15:47:16]quantity*price = 100021 [15:47:16]sum+1 = 100023 [15:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 276 21.10.2024 15:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69886 ФПД: 214502169423654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154716&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69886&fm=214502169423654&tin=02508201610067®Number=0000000000156251&sum=100000 [15:47:17]StoreToDocumentArchive [15:47:17]shift 194 fd 69886 [15:47:17]save to /storage/0194/doc_00069886 [15:47:17]save last doc name /storage/0194/doc_00069886 to /storage/kkm_last_doc_name [15:47:17]save OK [15:47:17]Clear old archive folders... [15:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:17]tlvbuf is 01109660 [15:47:17]SAM_PROTO_ClearQueue [15:47:17]wFMCommunicate request_size=4 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 09 00 00 [15:47:17]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:47:17]RAPDU: 90 00 [15:47:17]wFMCommunicate OK [15:47:17]SAM_PROTO_ClearQueue done [15:47:17]KKMCreateOFDPacket [15:47:17]OFDProtocolAddRootSTLVToBuf [15:47:17]FM_MakeSignedData [15:47:17]FM_MakeSignedData [15:47:17]SAM_PROTO_SignData [15:47:17]wFMCommunicate request_size=4 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 0D 01 02 [15:47:17]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:47:17]RAPDU: 90 00 [15:47:17]wFMCommunicate OK [15:47:17]wFMCommunicate request_size=255 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 14 01 00 00 F4 03 04 00 84 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 10 01 00 35 04 06 00 C3 [15:47:17]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 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 14 01 00 00 F4 03 04 00 84 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 10 01 00 35 04 06 00 C3 00 00 B7 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:47:17]RAPDU: 90 00 [15:47:17]wFMCommunicate OK [15:47:17]wFMCommunicate request_size=10 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 0D 02 02 05 16 AD 9C AF 26 [15:47:17]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 16 AD 9C AF 26 00 00 31 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [15:47:17]RAPDU: 90 00 [15:47:17]wFMCommunicate OK [15:47:17]wFMCommunicate request_size=4 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 0D 03 02 [15:47:17]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 0B 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 0B 00 7A 00 00 22 9C 43 FF B2 07 B1 93 90 00 F3 [15:47:17]RAPDU: 22 9C 43 FF B2 07 B1 93 90 00 [15:47:17]wFMCommunicate OK [15:47:17]SAM_PROTO_SignData done [15:47:17]FM_MakeSignedData done [15:47:17]CreateOFDProtocolMessage [15:47:17]wFMCommunicate request_size=4 [15:47:17]MH_SAM_APDU [15:47:17]CAPDU: 80 11 00 00 [15:47:17]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:17]Read from MH i2c: E2 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 17 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [15:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:47:17]wFMCommunicate OK [15:47:17]CreateOFDProtocolMessage done [15:47:17]OFDSenderStorePacket 69886 [15:47:17]StoreOFDPacket docnum=69886 [15:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D FF 07 01 3F 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 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 14 01 00 00 F4 03 04 00 84 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 10 01 00 35 04 06 00 C3 16 AD 9C AF 26 22 9C 43 FF B2 07 B1 93 [15:47:17]CheckFolder [15:47:17]dirname=/storage/ofd_packets [15:47:17]CheckFolder done [15:47:17]ProducePacketName [15:47:17]name=ofd_packets/00069886 [15:47:17]NVStorageSaveData ofd_packets/00069886 [15:47:17]File name is /storage/ofd_packets/00069886 [15:47:17]Write 301 bytes [15:47:17]NVStorageSaveData done [15:47:17]OFDSenderStorePacket done [15:47:17]KKMCreateOFDPacket done [15:47:17]NVStorageSaveData kkm_last_timestamp [15:47:17]File name is /storage/kkm_last_timestamp [15:47:17]Write 4 bytes [15:47:17]NVStorageSaveData done [15:47:17]ExternCall_PrintAddStr [15:47:17]wPrintStart [15:47:17]Write to MH i2c: 01 00 00 7C 00 7C [15:47:17]OFD Sender: Processing packet 69886 [packets to send 18, broken 17] [15:47:17]ProducePacketName [15:47:17]name=ofd_packets/00069886 [15:47:17]OFD Sender: To server: pG, [15:47:17]CommunicateWithHost lk.salyk.kg:30040 [15:47:17]ConnectInit lk.salyk.kg [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [15:47:17]RasterBufferAndPrint [15:47:17]line Счет N : (1)2885640 [15:47:17]line ИНН: 02508201610067 [15:47:17]line Контрольно-Кассовый Чек [15:47:17]line ПРОДАЖА [15:47:17]line ТРК (МРК, ГНК) : 33 [15:47:17]line Товар: 2710124500 [15:47:17]line Аи-95-К-5 [15:47:17]line 13.480 * 74.20 [15:47:17]line = 1000.22 [15:47:17]line НДС 12% НСП 1% [15:47:17]line > о реализуемом товаре [15:47:17]line ОКРУГЛЕНИЕ: -0.22 [15:47:17]line ИТОГО: 1000.00 [15:47:17]line Внесено: 1000.00 [15:47:17]line СДАЧА: 0.00 [15:47:17]line НСП 1% : 8.85 [15:47:17]line НДС 12% : 106.22 [15:47:17]line Наличными: 1000.00 [15:47:17]line Безнал.: 0.00 [15:47:17]line Место: АЗС № 85 "Партнер Нефть" [15:47:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:47:17]line СНО: Общий режим [15:47:17]line Чек 276 21.10.2024 15:47 [15:47:17]line Смена: 194 ФФД: 1.0 [15:47:17]line ЗНМ: 0300000167 [15:47:18]line РНМ: 0000000000156251 [15:47:18]line Версия ККМ: v1.0 [15:47:18]line ФМ: 0000000000963346 [15:47:18]line ФД: 69886 [15:47:18]line ФПД: 214502169423654 [15:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154716&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69886&fm=214502169423654&tin=02508201610067®Number=0000000000156251&sum=100000 [15:47:18]Connected sock=10 [15:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D FF 07 01 3F 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 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 14 01 00 00 F4 03 04 00 84 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 10 01 00 35 04 06 00 C3 16 AD 9C AF 26 22 9C 43 FF B2 07 B1 93 [15:47:18]written 0, free lines is 4095 [15:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3F F8 47 00 A0 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 39 36 33 33 34 36 10 04 04 00 FE 10 01 00 F4 03 04 00 28 21 16 67 B6 04 01 00 00 45 94 5E 93 C3 5E CC 92 [15:47:18]CommunicateWithHost err = 0 [15:47:18]CheckOFDResponse [15:47:18]1017 (14) - 77093643461234 [15:47:18]1041 (16) - 0000000000963346 [15:47:18]1040 (4) - 69886 [15:47:18]1012 (4) - 21.10.2024 09:38 [15:47:18]1206 (1) - 0 [15:47:18]OFD Sender: Remove packet 69886 [15:47:18]ProducePacketName [15:47:18]name=ofd_packets/00069886 [15:47:18]NVStorageDeleteData [15:47:18]Write to MH i2c: 01 00 00 A7 00 A7 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: 01 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: 01 07 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 EF 0C A9 [15:47:18]RasterBufferAndPrint [15:47:18]line [15:47:18]line [15:47:18]line [15:47:18]line [15:47:18]line [15:47:18]written 0, free lines is 3317 [15:47:18]MH_Cut [15:47:18]Write to MH i2c: D1 01 00 AE 00 01 80 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: D1 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: D1 01 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: D1 01 00 AE 00 00 7F [15:47:18]Write to MH i2c: 01 00 00 AF 00 AF [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]OFD Sender: No OFD packet to send [15:47:19]*** Cut start [15:47:19]*** Partial cut [15:47:19]*** CUTSNS_PIN = 1 [15:47:19]*** CUTSNS_PIN = 0 [15:47:19]*** Brake cut motor [15:47:19]Read from MH i2c: 01 [15:47:19]MH_I2C_Read... [15:47:19]*** Stop cut motor [15:47:19]*** Cut end [15:47:19]Read from MH i2c: 01 07 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [15:47:19]process_action close_receipt done [15:47:19]requested_data is exist [15:47:19]produce_requested_data [15:47:19]requested_item fm.sn is exist - process it [15:47:19]wFMCommunicate request_size=4 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 11 00 00 [15:47:19]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:19]Read from MH i2c: E2 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 17 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [15:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:47:20]wFMCommunicate OK [15:47:20]requested_item fd.num is exist - process it [15:47:20]SAM_PROTO_GetFieldsCounters [15:47:20]wFMCommunicate request_size=4 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 13 00 00 [15:47:20]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 62 00 [15:47:20]MH_I2C_Read... [15:47:20]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [15:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:20]wFMCommunicate OK [15:47:20]SAM_PROTO_GetFieldsCounters done [15:47:20]requested_item shift.num is exist - process it [15:47:20]requested_item shift.opened is exist - process it [15:47:20]req_shift_opened [15:47:20]FM_GetShiftState [15:47:20]SAM_PROTO_GetShiftState [15:47:20]wFMCommunicate request_size=4 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 13 01 00 [15:47:20]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0E 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5B [15:47:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:47:20]wFMCommunicate OK [15:47:20]SAM_PROTO_GetShiftState done [15:47:20]FM_GetShiftState done [15:47:20]req_shift_opened done [15:47:20]requested_item shift.open_date is exist - process it [15:47:20]req_shift_open_date [15:47:20]req_shift_open_date done [15:47:20]produce_requested_data done [15:47:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69886,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:47:20]process_action_free close_receipt [15:47:20]json_value_free [15:47:20]json_value_free done [15:47:20]process_json_proto returns [15:47:20]Send response to host [15:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69886,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:47:20]free response buf [15:47:20]execute_script done [15:47:20]execute_script returns [15:47:20]free content buf [15:47:20]Sock 9.Close socket [15:47:20]Sock 9.Thread stoped [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:56]accept exits with 7 [15:48:56]New connection [15:48:56]New thread 3067170148 created [15:48:56]Thread 3067026788 joined [15:48:56]Waiting for new connection... [15:48:56] Sock 7.Parse request [15:48:56]Sock 7.Check first char [15:48:56]Sock 7.First char is OK [15:48:56]request: POST /json_proto HTTP/1.0 [15:48:56]Method: POST [15:48:56]URL: /json_proto [15:48:56]Method is POST - this is cgi request [15:48:56]url: /json_proto [15:48:56]query_string will be loaded in cgi processing [15:48:56]execute_cgi json_proto POST (null) [15:48:56]execute_cgi path=json_proto method=POST [15:48:56]POST find Content-Length [15:48:56]Host: 172.17.50.3:8080 [15:48:56]Content-Length: 791 [15:48:56]Content-Type: application/json [15:48:56] [15:48:56]POST finish read [15:48:56]Found Content-Length = 791 [15:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:56]execute_script... [15:48: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)2885639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:56]POST & json_proto [15:48:56]process_json_proto [15:48:56]json parsed OK: [15:48:56]protocol is kg_v1.0 [15:48:56]action value=close_receipt [15:48:56]process_action close_receipt [15:48:56]cmd_close_receipt [15:48:56]MH_GetDate [15:48:56]Write to MH i2c: F0 00 00 B3 00 A2 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: F0 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: F0 09 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: F0 09 00 B3 00 00 E9 77 16 67 6B 98 1E 66 0F [15:48:56]GetLastDocTimeStamp 1729525636 [15:48:56]current date 1729525737 [15:48:56]FM_GetShiftState [15:48:56]SAM_PROTO_GetShiftState [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 13 01 00 [15:48:56]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5D [15:48:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:48:56]wFMCommunicate OK [15:48:56]SAM_PROTO_GetShiftState done [15:48:56]FM_GetShiftState done [15:48:56]opened in 1729469703 [15:48:56]opened+sec_in_day 1729556103 [15:48:56]quantity*price = 0 [15:48:56]sum+1 = 1 [15:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 277 21.10.2024 15:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69887 ФПД: 198091869018488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69887&fm=198091869018488&tin=02508201610067®Number=0000000000156251&sum=0 [15:48:57]StoreToDocumentArchive [15:48:57]shift 194 fd 69887 [15:48:57]save to /storage/0194/doc_00069887 [15:48:57]save last doc name /storage/0194/doc_00069887 to /storage/kkm_last_doc_name [15:48:57]save OK [15:48:57]Clear old archive folders... [15:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:57]tlvbuf is 0113C760 [15:48:57]SAM_PROTO_ClearQueue [15:48:57]wFMCommunicate request_size=4 [15:48:57]MH_SAM_APDU [15:48:57]CAPDU: 80 09 00 00 [15:48:57]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [15:48:57]Write i2c OK [15:48:57]MH_I2C_Read... [15:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:57]Read from MH i2c: E2 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 03 00 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:48:57]RAPDU: 90 00 [15:48:57]wFMCommunicate OK [15:48:57]SAM_PROTO_ClearQueue done [15:48:57]KKMCreateOFDPacket [15:48:57]OFDProtocolAddRootSTLVToBuf [15:48:57]FM_MakeSignedData [15:48:57]FM_MakeSignedData [15:48:57]SAM_PROTO_SignData [15:48:57]wFMCommunicate request_size=4 [15:48:57]MH_SAM_APDU [15:48:57]CAPDU: 80 0D 01 02 [15:48:57]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [15:48:57]Write i2c OK [15:48:57]MH_I2C_Read... [15:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:57]Read from MH i2c: E2 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 03 00 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [15:48:57]RAPDU: 90 00 [15:48:57]wFMCommunicate OK [15:48:57]wFMCommunicate request_size=255 [15:48:57]MH_SAM_APDU [15:48: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 32 31 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 15 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 10 01 00 35 04 06 00 B4 29 DB 7C [15:48:58]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 32 31 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 15 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 10 01 00 35 04 06 00 B4 29 DB 7C 00 00 B2 [15:48:58]Write i2c OK [15:48:58]MH_I2C_Read... [15:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:58]Read from MH i2c: E2 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 03 00 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [15:48:58]RAPDU: 90 00 [15:48:58]wFMCommunicate OK [15:48:58]wFMCommunicate request_size=7 [15:48:58]MH_SAM_APDU [15:48:58]CAPDU: 80 0D 02 02 02 59 78 [15:48:58]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 59 78 00 00 13 [15:48:58]Write i2c OK [15:48:58]MH_I2C_Read... [15:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:58]Read from MH i2c: E2 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 03 00 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [15:48:58]RAPDU: 90 00 [15:48:58]wFMCommunicate OK [15:48:58]wFMCommunicate request_size=4 [15:48:58]MH_SAM_APDU [15:48:58]CAPDU: 80 0D 03 02 [15:48:58]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [15:48:58]Write i2c OK [15:48:58]MH_I2C_Read... [15:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:58]Read from MH i2c: E2 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 0B 00 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 0B 00 C5 00 00 EE 35 0B CD 37 8A 0C 84 90 00 8D [15:48:58]RAPDU: EE 35 0B CD 37 8A 0C 84 90 00 [15:48:58]wFMCommunicate OK [15:48:58]SAM_PROTO_SignData done [15:48:58]FM_MakeSignedData done [15:48:58]CreateOFDProtocolMessage [15:48:58]wFMCommunicate request_size=4 [15:48:58]MH_SAM_APDU [15:48:58]CAPDU: 80 11 00 00 [15:48:58]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [15:48:58]Write i2c OK [15:48:58]MH_I2C_Read... [15:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:58]Read from MH i2c: E2 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 17 00 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [15:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:48:58]wFMCommunicate OK [15:48:58]CreateOFDProtocolMessage done [15:48:58]OFDSenderStorePacket 69887 [15:48:58]StoreOFDPacket docnum=69887 [15:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 90 04 01 C7 FE 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 32 31 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 15 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 10 01 00 35 04 06 00 B4 29 DB 7C 59 78 EE 35 0B CD 37 8A 0C 84 [15:48:58]CheckFolder [15:48:58]dirname=/storage/ofd_packets [15:48:58]CheckFolder done [15:48:58]ProducePacketName [15:48:58]name=ofd_packets/00069887 [15:48:58]NVStorageSaveData ofd_packets/00069887 [15:48:58]File name is /storage/ofd_packets/00069887 [15:48:58]Write 298 bytes [15:48:58]NVStorageSaveData done [15:48:58]OFDSenderStorePacket done [15:48:58]KKMCreateOFDPacket done [15:48:58]NVStorageSaveData kkm_last_timestamp [15:48:58]File name is /storage/kkm_last_timestamp [15:48:58]Write 4 bytes [15:48:58]NVStorageSaveData done [15:48:58]ExternCall_PrintAddStr [15:48:58]wPrintStart [15:48:58]Write to MH i2c: 01 00 00 C7 00 C7 [15:48:58]Write i2c OK [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: 01 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: 01 07 00 [15:48:58]MH_I2C_Read... [15:48:58]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [15:48:58]RasterBufferAndPrint [15:48:58]line Счет N : (1)2885639 [15:48:58]line ИНН: 02508201610067 [15:48:58]line Контрольно-Кассовый Чек [15:48:58]line ПРОДАЖА [15:48:58]line ТРК (МРК, ГНК) : 61 [15:48:58]line Товар: 2710194210 [15:48:58]line ДТ-К-5 [15:48:58]line 100.000 * 0.00 [15:48:58]line = 0.00 [15:48:58]line НДС 12% НСП 1% [15:48:58]line > о реализуемом товаре [15:48:58]line ИТОГО: 0.00 [15:48:58]line НСП 1% : 0.00 [15:48:58]line НДС 12% : 0.00 [15:48:58]line Наличными: 0.00 [15:48:58]line Безнал.: 0.00 [15:48:58]line Место: АЗС № 85 "Партнер Нефть" [15:48:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:48:58]line СНО: Общий режим [15:48:58]line Чек 277 21.10.2024 15:48 [15:48:58]line Смена: 194 ФФД: 1.0 [15:48:58]line ЗНМ: 0300000167 [15:48:58]line РНМ: 0000000000156251 [15:48:58]line Версия ККМ: v1.0 [15:48:58]line Талоны: Топливная Карта [15:48:58]line 31095 [15:48:58]line ФМ: 0000000000963346 [15:48:58]line ФД: 69887 [15:48:58]line ФПД: 198091869018488 [15:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69887&fm=198091869018488&tin=02508201610067®Number=0000000000156251&sum=0 [15:48:58]OFD Sender: Processing packet 69887 [packets to send 18, broken 17] [15:48:58]ProducePacketName [15:48:58]name=ofd_packets/00069887 [15:48:58]OFD Sender: To server: pG, [15:48:58]CommunicateWithHost lk.salyk.kg:30040 [15:48:58]ConnectInit lk.salyk.kg [15:48:58]written 0, free lines is 4095 [15:48:58]Connected sock=10 [15:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FB 90 04 01 C7 FE 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 32 31 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 15 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 10 01 00 35 04 06 00 B4 29 DB 7C 59 78 EE 35 0B CD 37 8A 0C 84 [15:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 65 47 00 2B F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 10 01 00 F4 03 04 00 8C 21 16 67 B6 04 01 00 00 F5 14 1C 62 85 14 09 D0 [15:48:59]CommunicateWithHost err = 0 [15:48:59]CheckOFDResponse [15:48:59]1017 (14) - 77093643461234 [15:48:59]1041 (16) - 0000000000963346 [15:48:59]1040 (4) - 69887 [15:48:59]1012 (4) - 21.10.2024 09:40 [15:48:59]1206 (1) - 0 [15:48:59]OFD Sender: Remove packet 69887 [15:48:59]ProducePacketName [15:48:59]name=ofd_packets/00069887 [15:48:59]NVStorageDeleteData [15:48:59]Write to MH i2c: 01 00 00 F1 00 F1 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: 01 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: 01 07 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 EF 0C F3 [15:48:59]RasterBufferAndPrint [15:48:59]line [15:48:59]line [15:48:59]line [15:48:59]line [15:48:59]line [15:48:59]written 0, free lines is 3317 [15:48:59]MH_Cut [15:48:59]Write to MH i2c: D1 01 00 F8 00 01 CA [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: D1 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: D1 01 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: D1 01 00 F8 00 00 C9 [15:48:59]Write to MH i2c: 01 00 00 F9 00 F9 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]OFD Sender: No OFD packet to send [15:48:59]*** Cut start [15:48:59]*** Partial cut [15:48:59]*** CUTSNS_PIN = 1 [15:48:59]*** CUTSNS_PIN = 0 [15:49:00]*** Brake cut motor [15:49:00]Read from MH i2c: 01 [15:49:00]MH_I2C_Read... [15:49:00]*** Stop cut motor [15:49:00]*** Cut end [15:49:00]Read from MH i2c: 01 07 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [15:49:00]process_action close_receipt done [15:49:00]requested_data is exist [15:49:00]produce_requested_data [15:49:00]requested_item fm.sn is exist - process it [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 11 00 00 [15:49:00]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [15:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:49:00]wFMCommunicate OK [15:49:00]requested_item fd.num is exist - process it [15:49:00]SAM_PROTO_GetFieldsCounters [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 13 00 00 [15:49:00]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 62 00 [15:49:00]MH_I2C_Read... [15:49:00]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 10 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_GetFieldsCounters done [15:49:00]requested_item shift.num is exist - process it [15:49:00]requested_item shift.opened is exist - process it [15:49:00]req_shift_opened [15:49:00]FM_GetShiftState [15:49:00]SAM_PROTO_GetShiftState [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 13 01 00 [15:49:00]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0E 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [15:49:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_GetShiftState done [15:49:00]FM_GetShiftState done [15:49:00]req_shift_opened done [15:49:00]requested_item shift.open_date is exist - process it [15:49:00]req_shift_open_date [15:49:00]req_shift_open_date done [15:49:00]produce_requested_data done [15:49:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69887,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:49:00]process_action_free close_receipt [15:49:00]json_value_free [15:49:00]json_value_free done [15:49:00]process_json_proto returns [15:49:00]Send response to host [15:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69887,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:49:00]free response buf [15:49:00]execute_script done [15:49:00]execute_script returns [15:49:00]free content buf [15:49:00]Sock 7.Close socket [15:49:00]Sock 7.Thread stoped [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:07]accept exits with 9 [15:51:07]New connection [15:51:07]New thread 3067026788 created [15:51:07]Thread 3067170148 joined [15:51:07]Waiting for new connection... [15:51:07] Sock 9.Parse request [15:51:07]Sock 9.Check first char [15:51:07]Sock 9.First char is OK [15:51:07]request: POST /json_proto HTTP/1.0 [15:51:07]Method: POST [15:51:07]URL: /json_proto [15:51:07]Method is POST - this is cgi request [15:51:07]url: /json_proto [15:51:07]query_string will be loaded in cgi processing [15:51:07]execute_cgi json_proto POST (null) [15:51:07]execute_cgi path=json_proto method=POST [15:51:07]POST find Content-Length [15:51:07]Host: 172.17.50.3:8080 [15:51:07]Content-Length: 755 [15:51:07]Content-Type: application/json [15:51:07] [15:51:07]POST finish read [15:51:07]Found Content-Length = 755 [15:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885641", "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" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100670", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]execute_script... [15:51: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)2885641", "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" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100670", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]POST & json_proto [15:51:07]process_json_proto [15:51:07]json parsed OK: [15:51:07]protocol is kg_v1.0 [15:51:07]action value=close_receipt [15:51:07]process_action close_receipt [15:51:07]cmd_close_receipt [15:51:07]MH_GetDate [15:51:07]Write to MH i2c: F0 00 00 FD 00 EC [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 09 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 09 00 FD 00 00 6B 78 16 67 6B 98 1E 66 DC [15:51:07]GetLastDocTimeStamp 1729525737 [15:51:07]current date 1729525867 [15:51:07]FM_GetShiftState [15:51:07]SAM_PROTO_GetShiftState [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 01 00 [15:51:07]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A7 [15:51:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetShiftState done [15:51:07]FM_GetShiftState done [15:51:07]opened in 1729469703 [15:51:07]opened+sec_in_day 1729556103 [15:51:07]quantity*price = 0 [15:51:07]sum+1 = 1 [15:51:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 278 21.10.2024 15:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100670 ФМ: 0000000000963346 ФД: 69888 ФПД: 275344886870040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155107&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69888&fm=275344886870040&tin=02508201610067®Number=0000000000156251&sum=0 [15:51:08]StoreToDocumentArchive [15:51:08]shift 194 fd 69888 [15:51:08]save to /storage/0194/doc_00069888 [15:51:08]save last doc name /storage/0194/doc_00069888 to /storage/kkm_last_doc_name [15:51:08]save OK [15:51:08]Clear old archive folders... [15:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:08]tlvbuf is B6F8A310 [15:51:08]SAM_PROTO_ClearQueue [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 09 00 00 [15:51:08]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_ClearQueue done [15:51:08]KKMCreateOFDPacket [15:51:08]OFDProtocolAddRootSTLVToBuf [15:51:08]FM_MakeSignedData [15:51:08]FM_MakeSignedData [15:51:08]SAM_PROTO_SignData [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 01 02 [15:51:08]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=255 [15:51:08]MH_SAM_APDU [15:51: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6B 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 11 01 00 35 04 06 00 FA [15:51:08]Write to MH i2c: E2 02 01 0D 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6B 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 11 01 00 35 04 06 00 FA 00 00 6F [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=10 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 02 02 05 6C BA 2C 30 18 [15:51:08]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 6C BA 2C 30 18 00 00 2D [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 03 02 [15:51:08]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 0F 01 00 E9 98 24 C7 FE 93 F1 DC 90 00 56 [15:51:08]RAPDU: E9 98 24 C7 FE 93 F1 DC 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_SignData done [15:51:08]FM_MakeSignedData done [15:51:08]CreateOFDProtocolMessage [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 11 00 00 [15:51:08]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [15:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:51:08]wFMCommunicate OK [15:51:08]CreateOFDProtocolMessage done [15:51:08]OFDSenderStorePacket 69888 [15:51:08]StoreOFDPacket docnum=69888 [15:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 46 B1 07 01 4A 60 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6B 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 11 01 00 35 04 06 00 FA 6C BA 2C 30 18 E9 98 24 C7 FE 93 F1 DC [15:51:08]CheckFolder [15:51:08]dirname=/storage/ofd_packets [15:51:08]CheckFolder done [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00069888 [15:51:08]NVStorageSaveData ofd_packets/00069888 [15:51:08]File name is /storage/ofd_packets/00069888 [15:51:08]Write 301 bytes [15:51:08]NVStorageSaveData done [15:51:08]OFDSenderStorePacket done [15:51:08]KKMCreateOFDPacket done [15:51:08]NVStorageSaveData kkm_last_timestamp [15:51:08]File name is /storage/kkm_last_timestamp [15:51:08]Write 4 bytes [15:51:08]NVStorageSaveData done [15:51:08]ExternCall_PrintAddStr [15:51:08]wPrintStart [15:51:08]Write to MH i2c: 01 00 00 11 01 12 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [15:51:08]RasterBufferAndPrint [15:51:08]line Счет N : (1)2885641 [15:51:08]line ИНН: 02508201610067 [15:51:08]line Контрольно-Кассовый Чек [15:51:08]line ПРОДАЖА [15:51:08]line ТРК (МРК, ГНК) : 32 [15:51:08]line Товар: 2710124130 [15:51:08]line Аи-92-К-5 [15:51:08]line 14.950 * 0.00 [15:51:08]line = 0.00 [15:51:08]line НДС 12% НСП 1% [15:51:08]line > о реализуемом товаре [15:51:08]line ИТОГО: 0.00 [15:51:08]line НСП 1% : 0.00 [15:51:08]line НДС 12% : 0.00 [15:51:08]line Наличными: 0.00 [15:51:08]line Безнал.: 0.00 [15:51:08]line Место: АЗС № 85 "Партнер Нефть" [15:51:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:51:08]line СНО: Общий режим [15:51:08]line Чек 278 21.10.2024 15:51 [15:51:08]line Смена: 194 ФФД: 1.0 [15:51:08]line ЗНМ: 0300000167 [15:51:08]line РНМ: 0000000000156251 [15:51:08]line Версия ККМ: v1.0 [15:51:08]line Талоны: ТК ГПНА Online [15:51:08]line 30100670 [15:51:08]line ФМ: 0000000000963346 [15:51:09]line ФД: 69888 [15:51:09]line ФПД: 275344886870040 [15:51:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155107&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69888&fm=275344886870040&tin=02508201610067®Number=0000000000156251&sum=0 [15:51:09]OFD Sender: Processing packet 69888 [packets to send 18, broken 17] [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00069888 [15:51:09]OFD Sender: To server: pG, [15:51:09]CommunicateWithHost lk.salyk.kg:30040 [15:51:09]ConnectInit lk.salyk.kg [15:51:09]written 0, free lines is 4095 [15:51:09]Connected sock=10 [15:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 46 B1 07 01 4A 60 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 6B 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 11 01 00 35 04 06 00 FA 6C BA 2C 30 18 E9 98 24 C7 FE 93 F1 DC [15:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 F4 47 00 32 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 11 01 00 F4 03 04 00 0F 22 16 67 B6 04 01 00 00 CA 88 A6 43 1E 13 FF F3 [15:51:09]CommunicateWithHost err = 0 [15:51:09]CheckOFDResponse [15:51:09]1017 (14) - 77093643461234 [15:51:09]1041 (16) - 0000000000963346 [15:51:09]1040 (4) - 69888 [15:51:09]1012 (4) - 21.10.2024 09:42 [15:51:09]1206 (1) - 0 [15:51:09]OFD Sender: Remove packet 69888 [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00069888 [15:51:09]NVStorageDeleteData [15:51:09]Write to MH i2c: 01 00 00 3B 01 3C [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FA 0C 49 [15:51:09]RasterBufferAndPrint [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]written 0, free lines is 3328 [15:51:09]MH_Cut [15:51:09]Write to MH i2c: D1 01 00 42 01 01 15 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 42 01 00 14 [15:51:09]Write to MH i2c: 01 00 00 43 01 44 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]OFD Sender: No OFD packet to send [15:51:10]*** Cut start [15:51:10]*** Partial cut [15:51:10]*** CUTSNS_PIN = 1 [15:51:10]*** CUTSNS_PIN = 0 [15:51:10]*** Brake cut motor [15:51:10]Read from MH i2c: 01 [15:51:10]MH_I2C_Read... [15:51:10]*** Stop cut motor [15:51:10]*** Cut end [15:51:10]Read from MH i2c: 01 07 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [15:51:10]process_action close_receipt done [15:51:10]requested_data is exist [15:51:10]produce_requested_data [15:51:10]requested_item fm.sn is exist - process it [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 11 00 00 [15:51:10]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 17 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [15:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:51:10]wFMCommunicate OK [15:51:10]requested_item fd.num is exist - process it [15:51:10]SAM_PROTO_GetFieldsCounters [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 13 00 00 [15:51:10]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetFieldsCounters done [15:51:11]requested_item shift.num is exist - process it [15:51:11]requested_item shift.opened is exist - process it [15:51:11]req_shift_opened [15:51:11]FM_GetShiftState [15:51:11]SAM_PROTO_GetShiftState [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 01 00 [15:51:11]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F0 [15:51:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetShiftState done [15:51:11]FM_GetShiftState done [15:51:11]req_shift_opened done [15:51:11]requested_item shift.open_date is exist - process it [15:51:11]req_shift_open_date [15:51:11]req_shift_open_date done [15:51:11]produce_requested_data done [15:51:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69888,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:51:11]process_action_free close_receipt [15:51:11]json_value_free [15:51:11]json_value_free done [15:51:11]process_json_proto returns [15:51:11]Send response to host [15:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69888,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:51:11]free response buf [15:51:11]execute_script done [15:51:11]execute_script returns [15:51:11]free content buf [15:51:11]Sock 9.Close socket [15:51:11]Sock 9.Thread stoped [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:13]accept exits with 7 [15:52:13]New connection [15:52:13]New thread 3067170148 created [15:52:13]Thread 3067026788 joined [15:52:13]Waiting for new connection... [15:52:13] Sock 7.Parse request [15:52:13]Sock 7.Check first char [15:52:13]Sock 7.First char is OK [15:52:13]request: POST /json_proto HTTP/1.0 [15:52:13]Method: POST [15:52:13]URL: /json_proto [15:52:13]Method is POST - this is cgi request [15:52:13]url: /json_proto [15:52:13]query_string will be loaded in cgi processing [15:52:13]execute_cgi json_proto POST (null) [15:52:13]execute_cgi path=json_proto method=POST [15:52:13]POST find Content-Length [15:52:13]Host: 172.17.50.3:8080 [15:52:13]Content-Length: 678 [15:52:13]Content-Type: application/json [15:52:13] [15:52:13]POST finish read [15:52:13]Found Content-Length = 678 [15:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885642", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:13]execute_script... [15:52: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)2885642", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:13]POST & json_proto [15:52:13]process_json_proto [15:52:13]json parsed OK: [15:52:13]protocol is kg_v1.0 [15:52:13]action value=close_receipt [15:52:13]process_action close_receipt [15:52:13]cmd_close_receipt [15:52:13]MH_GetDate [15:52:13]Write to MH i2c: F0 00 00 47 01 37 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: F0 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: F0 09 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: F0 09 00 47 01 00 AD 78 16 67 6B 98 1E 66 69 [15:52:13]GetLastDocTimeStamp 1729525867 [15:52:13]current date 1729525933 [15:52:13]FM_GetShiftState [15:52:13]SAM_PROTO_GetShiftState [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 13 01 00 [15:52:13]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0E 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F2 [15:52:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:52:13]wFMCommunicate OK [15:52:13]SAM_PROTO_GetShiftState done [15:52:13]FM_GetShiftState done [15:52:13]opened in 1729469703 [15:52:13]opened+sec_in_day 1729556103 [15:52:13]quantity*price = 20003 [15:52:13]sum+1 = 20004 [15:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 279 21.10.2024 15:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69889 ФПД: 205625147159486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69889&fm=205625147159486&tin=02508201610067®Number=0000000000156251&sum=20000 [15:52:14]StoreToDocumentArchive [15:52:14]shift 194 fd 69889 [15:52:14]save to /storage/0194/doc_00069889 [15:52:14]save last doc name /storage/0194/doc_00069889 to /storage/kkm_last_doc_name [15:52:14]save OK [15:52:14]Clear old archive folders... [15:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:14]tlvbuf is 01138630 [15:52:14]SAM_PROTO_ClearQueue [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 09 00 00 [15:52:14]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]SAM_PROTO_ClearQueue done [15:52:14]KKMCreateOFDPacket [15:52:14]OFDProtocolAddRootSTLVToBuf [15:52:14]FM_MakeSignedData [15:52:14]FM_MakeSignedData [15:52:14]SAM_PROTO_SignData [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 01 02 [15:52:14]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=255 [15:52:14]MH_SAM_APDU [15:52: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 AD 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 11 01 00 35 04 06 00 BB [15:52:14]Write to MH i2c: E2 02 01 57 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 AD 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 11 01 00 35 04 06 00 BB 00 00 65 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=10 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 02 02 05 03 D5 DA 73 BE [15:52:14]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 03 D5 DA 73 BE 00 00 C0 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 03 02 [15:52:14]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 0B 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 0B 00 59 01 00 53 10 60 5C 0A CD E5 AE 90 00 5F [15:52:14]RAPDU: 53 10 60 5C 0A CD E5 AE 90 00 [15:52:14]wFMCommunicate OK [15:52:14]SAM_PROTO_SignData done [15:52:14]FM_MakeSignedData done [15:52:14]CreateOFDProtocolMessage [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 11 00 00 [15:52:14]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 17 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [15:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:52:14]wFMCommunicate OK [15:52:14]CreateOFDProtocolMessage done [15:52:14]OFDSenderStorePacket 69889 [15:52:14]StoreOFDPacket docnum=69889 [15:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 FC 07 01 71 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 AD 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 11 01 00 35 04 06 00 BB 03 D5 DA 73 BE 53 10 60 5C 0A CD E5 AE [15:52:14]CheckFolder [15:52:14]dirname=/storage/ofd_packets [15:52:14]CheckFolder done [15:52:14]ProducePacketName [15:52:14]name=ofd_packets/00069889 [15:52:14]NVStorageSaveData ofd_packets/00069889 [15:52:14]File name is /storage/ofd_packets/00069889 [15:52:14]Write 301 bytes [15:52:14]NVStorageSaveData done [15:52:14]OFDSenderStorePacket done [15:52:14]KKMCreateOFDPacket done [15:52:14]NVStorageSaveData kkm_last_timestamp [15:52:14]File name is /storage/kkm_last_timestamp [15:52:14]Write 4 bytes [15:52:14]NVStorageSaveData done [15:52:14]ExternCall_PrintAddStr [15:52:14]wPrintStart [15:52:14]Write to MH i2c: 01 00 00 5B 01 5C [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [15:52:14]RasterBufferAndPrint [15:52:14]line Счет N : (1)2885642 [15:52:14]line ИНН: 02508201610067 [15:52:14]line Контрольно-Кассовый Чек [15:52:14]line ПРОДАЖА [15:52:14]line ТРК (МРК, ГНК) : 32 [15:52:14]line Товар: 2710124130 [15:52:14]line Аи-92-К-5 [15:52:14]line 2.990 * 66.90 [15:52:14]line = 200.03 [15:52:14]line НДС 12% НСП 1% [15:52:14]line > о реализуемом товаре [15:52:14]line ОКРУГЛЕНИЕ: -0.03 [15:52:14]line ИТОГО: 200.00 [15:52:14]line Внесено: 200.00 [15:52:14]line СДАЧА: 0.00 [15:52:14]line НСП 1% : 1.77 [15:52:14]line НДС 12% : 21.24 [15:52:14]line Наличными: 200.00 [15:52:14]line Безнал.: 0.00 [15:52:14]line Место: АЗС № 85 "Партнер Нефть" [15:52:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:52:14]line СНО: Общий режим [15:52:14]line Чек 279 21.10.2024 15:52 [15:52:14]line Смена: 194 ФФД: 1.0 [15:52:14]line ЗНМ: 0300000167 [15:52:14]line РНМ: 0000000000156251 [15:52:14]line Версия ККМ: v1.0 [15:52:14]line ФМ: 0000000000963346 [15:52:14]line ФД: 69889 [15:52:14]line ФПД: 205625147159486 [15:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69889&fm=205625147159486&tin=02508201610067®Number=0000000000156251&sum=20000 [15:52:15]OFD Sender: Processing packet 69889 [packets to send 18, broken 17] [15:52:15]ProducePacketName [15:52:15]name=ofd_packets/00069889 [15:52:15]OFD Sender: To server: pG, [15:52:15]CommunicateWithHost lk.salyk.kg:30040 [15:52:15]ConnectInit lk.salyk.kg [15:52:15]written 0, free lines is 4095 [15:52:15]Connected sock=10 [15:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 FC 07 01 71 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 AD 78 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 11 01 00 35 04 06 00 BB 03 D5 DA 73 BE 53 10 60 5C 0A CD E5 AE [15:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 A5 47 00 3B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 11 01 00 F4 03 04 00 51 22 16 67 B6 04 01 00 00 D8 94 4C 2D BC CF D5 57 [15:52:15]CommunicateWithHost err = 0 [15:52:15]CheckOFDResponse [15:52:15]1017 (14) - 77093643461234 [15:52:15]1041 (16) - 0000000000963346 [15:52:15]1040 (4) - 69889 [15:52:15]1012 (4) - 21.10.2024 09:43 [15:52:15]1206 (1) - 0 [15:52:15]OFD Sender: Remove packet 69889 [15:52:15]ProducePacketName [15:52:15]name=ofd_packets/00069889 [15:52:15]NVStorageDeleteData [15:52:15]Write to MH i2c: 01 00 00 86 01 87 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 E4 0C 7E [15:52:15]RasterBufferAndPrint [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]written 0, free lines is 3306 [15:52:15]MH_Cut [15:52:15]Write to MH i2c: D1 01 00 8D 01 01 60 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 01 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 01 00 8D 01 00 5F [15:52:15]Write to MH i2c: 01 00 00 8E 01 8F [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:16]OFD Sender: No OFD packet to send [15:52:16]*** Cut start [15:52:16]*** Partial cut [15:52:16]*** CUTSNS_PIN = 1 [15:52:16]*** CUTSNS_PIN = 0 [15:52:16]*** Brake cut motor [15:52:17]Read from MH i2c: 01 [15:52:17]MH_I2C_Read... [15:52:17]*** Stop cut motor [15:52:17]*** Cut end [15:52:17]Read from MH i2c: 01 07 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [15:52:17]process_action close_receipt done [15:52:17]requested_data is exist [15:52:17]produce_requested_data [15:52:17]requested_item fm.sn is exist - process it [15:52:17]wFMCommunicate request_size=4 [15:52:17]MH_SAM_APDU [15:52:17]CAPDU: 80 11 00 00 [15:52:17]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:17]Read from MH i2c: E2 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 17 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [15:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:52:17]wFMCommunicate OK [15:52:17]requested_item fd.num is exist - process it [15:52:17]SAM_PROTO_GetFieldsCounters [15:52:17]wFMCommunicate request_size=4 [15:52:17]MH_SAM_APDU [15:52:17]CAPDU: 80 13 00 00 [15:52:17]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:17]Read from MH i2c: E2 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 62 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [15:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:17]wFMCommunicate OK [15:52:17]SAM_PROTO_GetFieldsCounters done [15:52:17]requested_item shift.num is exist - process it [15:52:17]requested_item shift.opened is exist - process it [15:52:17]req_shift_opened [15:52:17]FM_GetShiftState [15:52:17]SAM_PROTO_GetShiftState [15:52:17]wFMCommunicate request_size=4 [15:52:17]MH_SAM_APDU [15:52:17]CAPDU: 80 13 01 00 [15:52:17]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [15:52:17]Write i2c OK [15:52:17]MH_I2C_Read... [15:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:17]Read from MH i2c: E2 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 0E 00 [15:52:17]MH_I2C_Read... [15:52:17]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3B [15:52:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:52:17]wFMCommunicate OK [15:52:17]SAM_PROTO_GetShiftState done [15:52:17]FM_GetShiftState done [15:52:17]req_shift_opened done [15:52:17]requested_item shift.open_date is exist - process it [15:52:17]req_shift_open_date [15:52:17]req_shift_open_date done [15:52:17]produce_requested_data done [15:52:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69889,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:52:17]process_action_free close_receipt [15:52:17]json_value_free [15:52:17]json_value_free done [15:52:17]process_json_proto returns [15:52:17]Send response to host [15:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69889,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:52:17]free response buf [15:52:17]execute_script done [15:52:17]execute_script returns [15:52:17]free content buf [15:52:17]Sock 7.Close socket [15:52:17]Sock 7.Thread stoped [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:24]accept exits with 9 [15:55:24]New connection [15:55:24]New thread 3067026788 created [15:55:24]Thread 3067170148 joined [15:55:24]Waiting for new connection... [15:55:24] Sock 9.Parse request [15:55:24]Sock 9.Check first char [15:55:24]Sock 9.First char is OK [15:55:24]request: POST /json_proto HTTP/1.0 [15:55:24]Method: POST [15:55:24]URL: /json_proto [15:55:24]Method is POST - this is cgi request [15:55:24]url: /json_proto [15:55:24]query_string will be loaded in cgi processing [15:55:24]execute_cgi json_proto POST (null) [15:55:24]execute_cgi path=json_proto method=POST [15:55:24]POST find Content-Length [15:55:24]Host: 172.17.50.3:8080 [15:55:24]Content-Length: 678 [15:55:24]Content-Type: application/json [15:55:24] [15:55:24]POST finish read [15:55:24]Found Content-Length = 678 [15:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:24]execute_script... [15:55: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)2885643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:24]POST & json_proto [15:55:24]process_json_proto [15:55:24]json parsed OK: [15:55:24]protocol is kg_v1.0 [15:55:24]action value=close_receipt [15:55:24]process_action close_receipt [15:55:24]cmd_close_receipt [15:55:24]MH_GetDate [15:55:24]Write to MH i2c: F0 00 00 92 01 82 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: F0 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: F0 09 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: F0 09 00 92 01 00 6D 79 16 67 6B 98 1E 66 75 [15:55:24]GetLastDocTimeStamp 1729525933 [15:55:24]current date 1729526125 [15:55:24]FM_GetShiftState [15:55:24]SAM_PROTO_GetShiftState [15:55:24]wFMCommunicate request_size=4 [15:55:24]MH_SAM_APDU [15:55:24]CAPDU: 80 13 01 00 [15:55:24]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 0E 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3D [15:55:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:55:24]wFMCommunicate OK [15:55:24]SAM_PROTO_GetShiftState done [15:55:24]FM_GetShiftState done [15:55:24]opened in 1729469703 [15:55:24]opened+sec_in_day 1729556103 [15:55:24]quantity*price = 28031 [15:55:24]sum+1 = 28032 [15:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 280 21.10.2024 15:55 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69890 ФПД: 11256972886945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69890&fm=11256972886945&tin=02508201610067®Number=0000000000156251&sum=28000 [15:55:25]StoreToDocumentArchive [15:55:25]shift 194 fd 69890 [15:55:25]save to /storage/0194/doc_00069890 [15:55:25]save last doc name /storage/0194/doc_00069890 to /storage/kkm_last_doc_name [15:55:25]save OK [15:55:25]Clear old archive folders... [15:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:25]tlvbuf is 01140440 [15:55:25]SAM_PROTO_ClearQueue [15:55:25]wFMCommunicate request_size=4 [15:55:25]MH_SAM_APDU [15:55:25]CAPDU: 80 09 00 00 [15:55:25]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:25]Read from MH i2c: E2 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 03 00 [15:55:25]MH_I2C_Read... [15:55:25]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [15:55:25]RAPDU: 90 00 [15:55:25]wFMCommunicate OK [15:55:25]SAM_PROTO_ClearQueue done [15:55:25]KKMCreateOFDPacket [15:55:25]OFDProtocolAddRootSTLVToBuf [15:55:25]FM_MakeSignedData [15:55:25]FM_MakeSignedData [15:55:25]SAM_PROTO_SignData [15:55:25]wFMCommunicate request_size=4 [15:55:25]MH_SAM_APDU [15:55:25]CAPDU: 80 0D 01 02 [15:55:25]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [15:55:25]Write i2c OK [15:55:25]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [15:55:26]RAPDU: 90 00 [15:55:26]wFMCommunicate OK [15:55:26]wFMCommunicate request_size=255 [15:55:26]MH_SAM_APDU [15:55:26]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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6D 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 11 01 00 35 04 06 00 0A [15:55:26]Write to MH i2c: E2 02 01 A2 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6D 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 11 01 00 35 04 06 00 0A 00 00 4F [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [15:55:26]RAPDU: 90 00 [15:55:26]wFMCommunicate OK [15:55:26]wFMCommunicate request_size=10 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 0D 02 02 05 3C F7 DE C3 A1 [15:55:26]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 3C F7 DE C3 A1 00 00 9D [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [15:55:26]RAPDU: 90 00 [15:55:26]wFMCommunicate OK [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 0D 03 02 [15:55:26]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:26]OFD Sender: No OFD packet to send [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 0B 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 0B 00 A4 01 00 BF 7F A0 9E 8C 79 45 6F 90 00 56 [15:55:26]RAPDU: BF 7F A0 9E 8C 79 45 6F 90 00 [15:55:26]wFMCommunicate OK [15:55:26]SAM_PROTO_SignData done [15:55:26]FM_MakeSignedData done [15:55:26]CreateOFDProtocolMessage [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 11 00 00 [15:55:26]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [15:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:26]wFMCommunicate OK [15:55:26]CreateOFDProtocolMessage done [15:55:26]OFDSenderStorePacket 69890 [15:55:26]StoreOFDPacket docnum=69890 [15:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A B4 07 01 11 BE 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6D 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 11 01 00 35 04 06 00 0A 3C F7 DE C3 A1 BF 7F A0 9E 8C 79 45 6F [15:55:26]CheckFolder [15:55:26]dirname=/storage/ofd_packets [15:55:26]CheckFolder done [15:55:26]ProducePacketName [15:55:26]name=ofd_packets/00069890 [15:55:26]NVStorageSaveData ofd_packets/00069890 [15:55:26]File name is /storage/ofd_packets/00069890 [15:55:26]Write 301 bytes [15:55:26]NVStorageSaveData done [15:55:26]OFDSenderStorePacket done [15:55:26]KKMCreateOFDPacket done [15:55:26]NVStorageSaveData kkm_last_timestamp [15:55:26]File name is /storage/kkm_last_timestamp [15:55:26]Write 4 bytes [15:55:26]NVStorageSaveData done [15:55:26]ExternCall_PrintAddStr [15:55:26]wPrintStart [15:55:26]Write to MH i2c: 01 00 00 A6 01 A7 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: 01 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: 01 07 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [15:55:26]RasterBufferAndPrint [15:55:26]line Счет N : (1)2885643 [15:55:26]line ИНН: 02508201610067 [15:55:26]line Контрольно-Кассовый Чек [15:55:26]line ПРОДАЖА [15:55:26]line ТРК (МРК, ГНК) : 12 [15:55:26]line Товар: 2710124130 [15:55:26]line Аи-92-К-5 [15:55:26]line 4.190 * 66.90 [15:55:26]line = 280.31 [15:55:26]line НДС 12% НСП 1% [15:55:26]line > о реализуемом товаре [15:55:26]line ОКРУГЛЕНИЕ: -0.31 [15:55:26]line ИТОГО: 280.00 [15:55:26]line Внесено: 280.00 [15:55:26]line СДАЧА: 0.00 [15:55:26]line НСП 1% : 2.48 [15:55:26]line НДС 12% : 29.77 [15:55:26]line Наличными: 280.00 [15:55:26]line Безнал.: 0.00 [15:55:26]line Место: АЗС № 85 "Партнер Нефть" [15:55:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:55:26]line СНО: Общий режим [15:55:26]line Чек 280 21.10.2024 15:55 [15:55:26]line Смена: 194 ФФД: 1.0 [15:55:26]line ЗНМ: 0300000167 [15:55:26]line РНМ: 0000000000156251 [15:55:26]line Версия ККМ: v1.0 [15:55:26]line ФМ: 0000000000963346 [15:55:26]line ФД: 69890 [15:55:26]line ФПД: 11256972886945 [15:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69890&fm=11256972886945&tin=02508201610067®Number=0000000000156251&sum=28000 [15:55:26]OFD Sender: Processing packet 69890 [packets to send 18, broken 17] [15:55:26]ProducePacketName [15:55:26]name=ofd_packets/00069890 [15:55:26]OFD Sender: To server: pG, [15:55:26]CommunicateWithHost lk.salyk.kg:30040 [15:55:26]ConnectInit lk.salyk.kg [15:55:26]written 0, free lines is 4095 [15:55:26]Connected sock=10 [15:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4A B4 07 01 11 BE 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6D 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 11 01 00 35 04 06 00 0A 3C F7 DE C3 A1 BF 7F A0 9E 8C 79 45 6F [15:55:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A8 A3 47 00 24 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 39 36 33 33 34 36 10 04 04 00 02 11 01 00 F4 03 04 00 10 23 16 67 B6 04 01 00 00 1B C5 34 EE C1 C5 78 C9 [15:55:27]CommunicateWithHost err = 0 [15:55:27]CheckOFDResponse [15:55:27]1017 (14) - 77093643461234 [15:55:27]1041 (16) - 0000000000963346 [15:55:27]1040 (4) - 69890 [15:55:27]1012 (4) - 21.10.2024 09:46 [15:55:27]1206 (1) - 0 [15:55:27]OFD Sender: Remove packet 69890 [15:55:27]ProducePacketName [15:55:27]name=ofd_packets/00069890 [15:55:27]NVStorageDeleteData [15:55:27]Write to MH i2c: 01 00 00 D1 01 D2 [15:55:27]Write i2c OK [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: 01 [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: 01 07 00 [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 03 0D E9 [15:55:27]RasterBufferAndPrint [15:55:27]line [15:55:27]line [15:55:27]line [15:55:27]line [15:55:27]line [15:55:27]written 0, free lines is 3337 [15:55:27]MH_Cut [15:55:27]Write to MH i2c: D1 01 00 D8 01 01 AB [15:55:27]Write i2c OK [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: D1 [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: D1 01 00 [15:55:27]MH_I2C_Read... [15:55:27]Read from MH i2c: D1 01 00 D8 01 00 AA [15:55:27]Write to MH i2c: 01 00 00 D9 01 DA [15:55:27]Write i2c OK [15:55:27]MH_I2C_Read... [15:55:27]OFD Sender: No OFD packet to send [15:55:27]*** Cut start [15:55:27]*** Partial cut [15:55:27]*** CUTSNS_PIN = 1 [15:55:28]*** CUTSNS_PIN = 0 [15:55:28]*** Brake cut motor [15:55:28]Read from MH i2c: 01 [15:55:28]MH_I2C_Read... [15:55:28]*** Stop cut motor [15:55:28]*** Cut end [15:55:28]Read from MH i2c: 01 07 00 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [15:55:28]process_action close_receipt done [15:55:28]requested_data is exist [15:55:28]produce_requested_data [15:55:28]requested_item fm.sn is exist - process it [15:55:28]wFMCommunicate request_size=4 [15:55:28]MH_SAM_APDU [15:55:28]CAPDU: 80 11 00 00 [15:55:28]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [15:55:28]Write i2c OK [15:55:28]MH_I2C_Read... [15:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:28]Read from MH i2c: E2 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 17 00 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [15:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:28]wFMCommunicate OK [15:55:28]requested_item fd.num is exist - process it [15:55:28]SAM_PROTO_GetFieldsCounters [15:55:28]wFMCommunicate request_size=4 [15:55:28]MH_SAM_APDU [15:55:28]CAPDU: 80 13 00 00 [15:55:28]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [15:55:28]Write i2c OK [15:55:28]MH_I2C_Read... [15:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:28]Read from MH i2c: E2 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 62 00 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [15:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:28]wFMCommunicate OK [15:55:28]SAM_PROTO_GetFieldsCounters done [15:55:28]requested_item shift.num is exist - process it [15:55:28]requested_item shift.opened is exist - process it [15:55:28]req_shift_opened [15:55:28]FM_GetShiftState [15:55:28]SAM_PROTO_GetShiftState [15:55:28]wFMCommunicate request_size=4 [15:55:28]MH_SAM_APDU [15:55:28]CAPDU: 80 13 01 00 [15:55:28]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [15:55:28]Write i2c OK [15:55:28]MH_I2C_Read... [15:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:28]Read from MH i2c: E2 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 0E 00 [15:55:28]MH_I2C_Read... [15:55:28]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 86 [15:55:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:55:28]wFMCommunicate OK [15:55:28]SAM_PROTO_GetShiftState done [15:55:28]FM_GetShiftState done [15:55:28]req_shift_opened done [15:55:28]requested_item shift.open_date is exist - process it [15:55:28]req_shift_open_date [15:55:28]req_shift_open_date done [15:55:28]produce_requested_data done [15:55:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69890,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:55:28]process_action_free close_receipt [15:55:28]json_value_free [15:55:28]json_value_free done [15:55:28]process_json_proto returns [15:55:28]Send response to host [15:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69890,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:55:28]free response buf [15:55:28]execute_script done [15:55:28]execute_script returns [15:55:28]free content buf [15:55:28]Sock 9.Close socket [15:55:28]Sock 9.Thread stoped [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:55]accept exits with 7 [15:56:55]New connection [15:56:55]New thread 3067170148 created [15:56:55]Thread 3067026788 joined [15:56:55]Waiting for new connection... [15:56:55] Sock 7.Parse request [15:56:55]Sock 7.Check first char [15:56:55]Sock 7.First char is OK [15:56:55]request: POST /json_proto HTTP/1.0 [15:56:55]Method: POST [15:56:55]URL: /json_proto [15:56:55]Method is POST - this is cgi request [15:56:55]url: /json_proto [15:56:55]query_string will be loaded in cgi processing [15:56:55]execute_cgi json_proto POST (null) [15:56:55]execute_cgi path=json_proto method=POST [15:56:55]POST find Content-Length [15:56:55]Host: 172.17.50.3:8080 [15:56:55]Content-Length: 689 [15:56:55]Content-Type: application/json [15:56:55] [15:56:55]POST finish read [15:56:55]Found Content-Length = 689 [15:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:55]execute_script... [15:56:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:55]POST & json_proto [15:56:55]process_json_proto [15:56:55]json parsed OK: [15:56:55]protocol is kg_v1.0 [15:56:55]action value=close_receipt [15:56:55]process_action close_receipt [15:56:55]cmd_close_receipt [15:56:55]MH_GetDate [15:56:55]Write to MH i2c: F0 00 00 DD 01 CD [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: F0 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: F0 09 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: F0 09 00 DD 01 00 C8 79 16 67 6B 98 1E 66 1B [15:56:55]GetLastDocTimeStamp 1729526125 [15:56:55]current date 1729526216 [15:56:55]FM_GetShiftState [15:56:55]SAM_PROTO_GetShiftState [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 13 01 00 [15:56:55]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 0E 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [15:56:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:56:55]wFMCommunicate OK [15:56:55]SAM_PROTO_GetShiftState done [15:56:55]FM_GetShiftState done [15:56:55]opened in 1729469703 [15:56:55]opened+sec_in_day 1729556103 [15:56:55]quantity*price = 110010 [15:56:55]sum+1 = 110011 [15:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1100.00 Внесено: 5000.00 СДАЧА: 3900.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 281 21.10.2024 15:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69891 ФПД: 239895270728130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69891&fm=239895270728130&tin=02508201610067®Number=0000000000156251&sum=110000 [15:56:57]StoreToDocumentArchive [15:56:57]shift 194 fd 69891 [15:56:57]save to /storage/0194/doc_00069891 [15:56:57]save last doc name /storage/0194/doc_00069891 to /storage/kkm_last_doc_name [15:56:57]save OK [15:56:57]Clear old archive folders... [15:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:56:57]tlvbuf is 010FED90 [15:56:57]SAM_PROTO_ClearQueue [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 09 00 00 [15:56:57]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [15:56:57]RAPDU: 90 00 [15:56:57]wFMCommunicate OK [15:56:57]SAM_PROTO_ClearQueue done [15:56:57]KKMCreateOFDPacket [15:56:57]OFDProtocolAddRootSTLVToBuf [15:56:57]FM_MakeSignedData [15:56:57]FM_MakeSignedData [15:56:57]SAM_PROTO_SignData [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 0D 01 02 [15:56:57]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [15:56:57]RAPDU: 90 00 [15:56:57]wFMCommunicate OK [15:56:57]wFMCommunicate request_size=255 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 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 01 00 00 F4 03 04 00 C8 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 11 01 [15:56:57]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 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 01 00 00 F4 03 04 00 C8 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 11 01 00 00 6F [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [15:56:57]RAPDU: 90 00 [15:56:57]wFMCommunicate OK [15:56:57]wFMCommunicate request_size=16 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DA 2E F8 65 21 C2 [15:56:57]Write to MH i2c: E2 13 00 EE 01 80 0D 02 02 0B 00 00 35 04 06 00 DA 2E F8 65 21 C2 00 00 06 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [15:56:57]RAPDU: 90 00 [15:56:57]wFMCommunicate OK [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 0D 03 02 [15:56:57]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 0B 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 0B 00 EF 01 00 32 76 CA C8 0D 3F 7C 2D 90 00 9B [15:56:57]RAPDU: 32 76 CA C8 0D 3F 7C 2D 90 00 [15:56:57]wFMCommunicate OK [15:56:57]SAM_PROTO_SignData done [15:56:57]FM_MakeSignedData done [15:56:57]CreateOFDProtocolMessage [15:56:57]wFMCommunicate request_size=4 [15:56:57]MH_SAM_APDU [15:56:57]CAPDU: 80 11 00 00 [15:56:57]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:57]Read from MH i2c: E2 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [15:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:57]wFMCommunicate OK [15:56:57]CreateOFDProtocolMessage done [15:56:57]OFDSenderStorePacket 69891 [15:56:57]StoreOFDPacket docnum=69891 [15:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EC 38 0D 01 DF 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 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 01 00 00 F4 03 04 00 C8 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 11 01 00 35 04 06 00 DA 2E F8 65 21 C2 32 76 CA C8 0D 3F 7C 2D [15:56:57]CheckFolder [15:56:57]dirname=/storage/ofd_packets [15:56:57]CheckFolder done [15:56:57]ProducePacketName [15:56:57]name=ofd_packets/00069891 [15:56:57]NVStorageSaveData ofd_packets/00069891 [15:56:57]File name is /storage/ofd_packets/00069891 [15:56:57]Write 307 bytes [15:56:57]NVStorageSaveData done [15:56:57]OFDSenderStorePacket done [15:56:57]KKMCreateOFDPacket done [15:56:57]NVStorageSaveData kkm_last_timestamp [15:56:57]File name is /storage/kkm_last_timestamp [15:56:57]Write 4 bytes [15:56:57]NVStorageSaveData done [15:56:57]ExternCall_PrintAddStr [15:56:57]wPrintStart [15:56:57]Write to MH i2c: 01 00 00 F1 01 F2 [15:56:57]Write i2c OK [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: 01 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: 01 07 00 [15:56:57]MH_I2C_Read... [15:56:57]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [15:56:57]RasterBufferAndPrint [15:56:57]line Счет N : (1)2885644 [15:56:57]line ИНН: 02508201610067 [15:56:57]line Контрольно-Кассовый Чек [15:56:57]line ПРОДАЖА [15:56:57]line ТРК (МРК, ГНК) : 31 [15:56:57]line Товар: 2710194240 [15:56:57]line D-ENERGY Дт-К-2 [15:56:57]line 14.250 * 77.20 [15:56:57]line = 1100.10 [15:56:57]line НДС 12% НСП 1% [15:56:57]line > о реализуемом товаре [15:56:57]line ОКРУГЛЕНИЕ: -0.10 [15:56:57]line ИТОГО: 1100.00 [15:56:57]line Внесено: 5000.00 [15:56:57]line СДАЧА: 3900.00 [15:56:57]line НСП 1% : 9.73 [15:56:57]line НДС 12% : 116.82 [15:56:57]line Наличными: 1100.00 [15:56:57]line Безнал.: 0.00 [15:56:57]line Место: АЗС № 85 "Партнер Нефть" [15:56:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:57]line СНО: Общий режим [15:56:57]line Чек 281 21.10.2024 15:56 [15:56:57]line Смена: 194 ФФД: 1.0 [15:56:57]line ЗНМ: 0300000167 [15:56:57]line РНМ: 0000000000156251 [15:56:57]line Версия ККМ: v1.0 [15:56:57]line ФМ: 0000000000963346 [15:56:57]line ФД: 69891 [15:56:57]line ФПД: 239895270728130 [15:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69891&fm=239895270728130&tin=02508201610067®Number=0000000000156251&sum=110000 [15:56:57]OFD Sender: Processing packet 69891 [packets to send 18, broken 17] [15:56:57]ProducePacketName [15:56:57]name=ofd_packets/00069891 [15:56:57]OFD Sender: To server: pG, [15:56:57]CommunicateWithHost lk.salyk.kg:30040 [15:56:57]ConnectInit lk.salyk.kg [15:56:57]written 0, free lines is 4095 [15:56:58]Connected sock=10 [15:56:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EC 38 0D 01 DF 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 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 01 00 00 F4 03 04 00 C8 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 11 01 00 35 04 06 00 DA 2E F8 65 21 C2 32 76 CA C8 0D 3F 7C 2D [15:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E1 85 47 00 ED 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 11 01 00 F4 03 04 00 6B 23 16 67 B6 04 01 00 00 90 1E C3 65 7E A3 8D D9 [15:56:58]CommunicateWithHost err = 0 [15:56:58]CheckOFDResponse [15:56:58]1017 (14) - 77093643461234 [15:56:58]1041 (16) - 0000000000963346 [15:56:58]1040 (4) - 69891 [15:56:58]1012 (4) - 21.10.2024 09:48 [15:56:58]1206 (1) - 0 [15:56:58]OFD Sender: Remove packet 69891 [15:56:58]ProducePacketName [15:56:58]name=ofd_packets/00069891 [15:56:58]NVStorageDeleteData [15:56:58]Write to MH i2c: 01 00 00 1C 02 1E [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: 01 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: 01 07 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 02 0D 34 [15:56:58]RasterBufferAndPrint [15:56:58]line [15:56:58]line [15:56:58]line [15:56:58]line [15:56:58]line [15:56:58]written 0, free lines is 3336 [15:56:58]MH_Cut [15:56:58]Write to MH i2c: D1 01 00 23 02 01 F7 [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: D1 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: D1 01 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: D1 01 00 23 02 00 F6 [15:56:58]Write to MH i2c: 01 00 00 24 02 26 [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]OFD Sender: No OFD packet to send [15:56:59]*** Cut start [15:56:59]*** Partial cut [15:56:59]*** CUTSNS_PIN = 1 [15:56:59]*** CUTSNS_PIN = 0 [15:56:59]*** Brake cut motor [15:56:59]Read from MH i2c: 01 [15:56:59]MH_I2C_Read... [15:56:59]*** Stop cut motor [15:56:59]*** Cut end [15:56:59]Read from MH i2c: 01 07 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [15:56:59]process_action close_receipt done [15:56:59]requested_data is exist [15:56:59]produce_requested_data [15:56:59]requested_item fm.sn is exist - process it [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 11 00 00 [15:56:59]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 17 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [15:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:59]wFMCommunicate OK [15:56:59]requested_item fd.num is exist - process it [15:56:59]SAM_PROTO_GetFieldsCounters [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 13 00 00 [15:56:59]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 62 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:59]wFMCommunicate OK [15:56:59]SAM_PROTO_GetFieldsCounters done [15:56:59]requested_item shift.num is exist - process it [15:56:59]requested_item shift.opened is exist - process it [15:56:59]req_shift_opened [15:56:59]FM_GetShiftState [15:56:59]SAM_PROTO_GetShiftState [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 13 01 00 [15:56:59]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 0E 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D2 [15:56:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:56:59]wFMCommunicate OK [15:56:59]SAM_PROTO_GetShiftState done [15:56:59]FM_GetShiftState done [15:56:59]req_shift_opened done [15:56:59]requested_item shift.open_date is exist - process it [15:56:59]req_shift_open_date [15:56:59]req_shift_open_date done [15:56:59]produce_requested_data done [15:56:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69891,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:56:59]process_action_free close_receipt [15:56:59]json_value_free [15:56:59]json_value_free done [15:56:59]process_json_proto returns [15:56:59]Send response to host [15:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69891,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:56:59]free response buf [15:56:59]execute_script done [15:56:59]execute_script returns [15:56:59]free content buf [15:56:59]Sock 7.Close socket [15:56:59]Sock 7.Thread stoped [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:25]accept exits with 9 [15:57:25]New connection [15:57:25]New thread 3067026788 created [15:57:25]Thread 3067170148 joined [15:57:25]Waiting for new connection... [15:57:25] Sock 9.Parse request [15:57:25]Sock 9.Check first char [15:57:25]Sock 9.First char is OK [15:57:25]request: POST /json_proto HTTP/1.0 [15:57:25]Method: POST [15:57:25]URL: /json_proto [15:57:25]Method is POST - this is cgi request [15:57:25]url: /json_proto [15:57:25]query_string will be loaded in cgi processing [15:57:25]execute_cgi json_proto POST (null) [15:57:25]execute_cgi path=json_proto method=POST [15:57:25]POST find Content-Length [15:57:25]Host: 172.17.50.3:8080 [15:57:25]Content-Length: 678 [15:57:25]Content-Type: application/json [15:57:25] [15:57:25]POST finish read [15:57:25]Found Content-Length = 678 [15:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885645", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]execute_script... [15:57: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)2885645", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]POST & json_proto [15:57:25]process_json_proto [15:57:25]json parsed OK: [15:57:25]protocol is kg_v1.0 [15:57:25]action value=close_receipt [15:57:25]process_action close_receipt [15:57:25]cmd_close_receipt [15:57:25]MH_GetDate [15:57:25]Write to MH i2c: F0 00 00 28 02 19 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 28 02 00 E6 79 16 67 6B 98 1E 66 85 [15:57:25]GetLastDocTimeStamp 1729526216 [15:57:25]current date 1729526246 [15:57:25]FM_GetShiftState [15:57:25]SAM_PROTO_GetShiftState [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 01 00 [15:57:25]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D4 [15:57:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetShiftState done [15:57:25]FM_GetShiftState done [15:57:25]opened in 1729469703 [15:57:25]opened+sec_in_day 1729556103 [15:57:25]quantity*price = 20003 [15:57:25]sum+1 = 20004 [15:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 282 21.10.2024 15:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69892 ФПД: 274451146086951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69892&fm=274451146086951&tin=02508201610067®Number=0000000000156251&sum=20000 [15:57:26]StoreToDocumentArchive [15:57:26]shift 194 fd 69892 [15:57:26]save to /storage/0194/doc_00069892 [15:57:26]save last doc name /storage/0194/doc_00069892 to /storage/kkm_last_doc_name [15:57:26]save OK [15:57:26]Clear old archive folders... [15:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:26]tlvbuf is 01142250 [15:57:26]SAM_PROTO_ClearQueue [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 09 00 00 [15:57:26]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_ClearQueue done [15:57:26]KKMCreateOFDPacket [15:57:26]OFDProtocolAddRootSTLVToBuf [15:57:26]FM_MakeSignedData [15:57:26]FM_MakeSignedData [15:57:26]SAM_PROTO_SignData [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 0D 01 02 [15:57:26]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]wFMCommunicate request_size=255 [15:57:26]MH_SAM_APDU [15:57:26]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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 11 01 00 35 04 06 00 F9 [15:57:26]Write to MH i2c: E2 02 01 38 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 11 01 00 35 04 06 00 F9 00 00 C5 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=10 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 02 02 05 9C A3 12 1A 27 [15:57:27]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 9C A3 12 1A 27 00 00 51 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 03 02 [15:57:27]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 3A 02 00 5E E4 CE 42 A7 27 65 B7 90 00 F4 [15:57:27]RAPDU: 5E E4 CE 42 A7 27 65 B7 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_SignData done [15:57:27]FM_MakeSignedData done [15:57:27]CreateOFDProtocolMessage [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 11 00 00 [15:57:27]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [15:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:57:27]wFMCommunicate OK [15:57:27]CreateOFDProtocolMessage done [15:57:27]OFDSenderStorePacket 69892 [15:57:27]StoreOFDPacket docnum=69892 [15:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8B F2 07 01 21 51 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 11 01 00 35 04 06 00 F9 9C A3 12 1A 27 5E E4 CE 42 A7 27 65 B7 [15:57:27]CheckFolder [15:57:27]dirname=/storage/ofd_packets [15:57:27]CheckFolder done [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00069892 [15:57:27]NVStorageSaveData ofd_packets/00069892 [15:57:27]File name is /storage/ofd_packets/00069892 [15:57:27]Write 301 bytes [15:57:27]NVStorageSaveData done [15:57:27]OFDSenderStorePacket done [15:57:27]KKMCreateOFDPacket done [15:57:27]NVStorageSaveData kkm_last_timestamp [15:57:27]File name is /storage/kkm_last_timestamp [15:57:27]Write 4 bytes [15:57:27]NVStorageSaveData done [15:57:27]ExternCall_PrintAddStr [15:57:27]wPrintStart [15:57:27]Write to MH i2c: 01 00 00 3C 02 3E [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [15:57:27]RasterBufferAndPrint [15:57:27]line Счет N : (1)2885645 [15:57:27]line ИНН: 02508201610067 [15:57:27]line Контрольно-Кассовый Чек [15:57:27]line ПРОДАЖА [15:57:27]line ТРК (МРК, ГНК) : 42 [15:57:27]line Товар: 2710124130 [15:57:27]line Аи-92-К-5 [15:57:27]line 2.990 * 66.90 [15:57:27]line = 200.03 [15:57:27]line НДС 12% НСП 1% [15:57:27]line > о реализуемом товаре [15:57:27]line ОКРУГЛЕНИЕ: -0.03 [15:57:27]line ИТОГО: 200.00 [15:57:27]line Внесено: 200.00 [15:57:27]line СДАЧА: 0.00 [15:57:27]line НСП 1% : 1.77 [15:57:27]line НДС 12% : 21.24 [15:57:27]line Наличными: 200.00 [15:57:27]line Безнал.: 0.00 [15:57:27]line Место: АЗС № 85 "Партнер Нефть" [15:57:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:57:27]line СНО: Общий режим [15:57:27]line Чек 282 21.10.2024 15:57 [15:57:27]line Смена: 194 ФФД: 1.0 [15:57:27]line ЗНМ: 0300000167 [15:57:27]line РНМ: 0000000000156251 [15:57:27]line Версия ККМ: v1.0 [15:57:27]line ФМ: 0000000000963346 [15:57:27]line ФД: 69892 [15:57:27]line ФПД: 274451146086951 [15:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69892&fm=274451146086951&tin=02508201610067®Number=0000000000156251&sum=20000 [15:57:27]OFD Sender: Processing packet 69892 [packets to send 18, broken 17] [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00069892 [15:57:27]OFD Sender: To server: pG, [15:57:27]CommunicateWithHost lk.salyk.kg:30040 [15:57:27]ConnectInit lk.salyk.kg [15:57:27]written 0, free lines is 4095 [15:57:27]Connected sock=10 [15:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8B F2 07 01 21 51 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 E6 79 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 11 01 00 35 04 06 00 F9 9C A3 12 1A 27 5E E4 CE 42 A7 27 65 B7 [15:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C1 A5 47 00 2F 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 11 01 00 F4 03 04 00 89 23 16 67 B6 04 01 00 00 02 2A CA 29 74 2E 28 47 [15:57:27]CommunicateWithHost err = 0 [15:57:27]CheckOFDResponse [15:57:27]1017 (14) - 77093643461234 [15:57:27]1041 (16) - 0000000000963346 [15:57:27]1040 (4) - 69892 [15:57:27]1012 (4) - 21.10.2024 09:48 [15:57:27]1206 (1) - 0 [15:57:27]OFD Sender: Remove packet 69892 [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00069892 [15:57:27]NVStorageDeleteData [15:57:28]Write to MH i2c: 01 00 00 67 02 69 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FE 0C 7A [15:57:28]RasterBufferAndPrint [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]written 0, free lines is 3332 [15:57:28]MH_Cut [15:57:28]Write to MH i2c: D1 01 00 6E 02 01 42 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 6E 02 00 41 [15:57:28]Write to MH i2c: 01 00 00 6F 02 71 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]OFD Sender: No OFD packet to send [15:57:28]*** Cut start [15:57:28]*** Partial cut [15:57:28]*** CUTSNS_PIN = 1 [15:57:28]*** CUTSNS_PIN = 0 [15:57:28]*** Brake cut motor [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]*** Stop cut motor [15:57:29]*** Cut end [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [15:57:29]process_action close_receipt done [15:57:29]requested_data is exist [15:57:29]produce_requested_data [15:57:29]requested_item fm.sn is exist - process it [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 11 00 00 [15:57:29]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [15:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:57:29]wFMCommunicate OK [15:57:29]requested_item fd.num is exist - process it [15:57:29]SAM_PROTO_GetFieldsCounters [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 00 00 [15:57:29]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetFieldsCounters done [15:57:29]requested_item shift.num is exist - process it [15:57:29]requested_item shift.opened is exist - process it [15:57:29]req_shift_opened [15:57:29]FM_GetShiftState [15:57:29]SAM_PROTO_GetShiftState [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 01 00 [15:57:29]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1D [15:57:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetShiftState done [15:57:29]FM_GetShiftState done [15:57:29]req_shift_opened done [15:57:29]requested_item shift.open_date is exist - process it [15:57:29]req_shift_open_date [15:57:29]req_shift_open_date done [15:57:29]produce_requested_data done [15:57:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69892,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:57:29]process_action_free close_receipt [15:57:29]json_value_free [15:57:29]json_value_free done [15:57:29]process_json_proto returns [15:57:29]Send response to host [15:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69892,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:57:29]free response buf [15:57:29]execute_script done [15:57:29]execute_script returns [15:57:29]free content buf [15:57:29]Sock 9.Close socket [15:57:29]Sock 9.Thread stoped [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:00]accept exits with 7 [15:59:00]New connection [15:59:00]New thread 3067170148 created [15:59:00]Thread 3067026788 joined [15:59:00]Waiting for new connection... [15:59:00] Sock 7.Parse request [15:59:00]Sock 7.Check first char [15:59:00]Sock 7.First char is OK [15:59:00]request: POST /json_proto HTTP/1.0 [15:59:00]Method: POST [15:59:00]URL: /json_proto [15:59:00]Method is POST - this is cgi request [15:59:00]url: /json_proto [15:59:00]query_string will be loaded in cgi processing [15:59:00]execute_cgi json_proto POST (null) [15:59:00]execute_cgi path=json_proto method=POST [15:59:00]POST find Content-Length [15:59:00]Host: 172.17.50.3:8080 [15:59:00]Content-Length: 678 [15:59:00]Content-Type: application/json [15:59:00] [15:59:00]POST finish read [15:59:00]Found Content-Length = 678 [15:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:00]execute_script... [15:59: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)2885646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:00]POST & json_proto [15:59:00]process_json_proto [15:59:00]json parsed OK: [15:59:00]protocol is kg_v1.0 [15:59:00]action value=close_receipt [15:59:00]process_action close_receipt [15:59:00]cmd_close_receipt [15:59:00]MH_GetDate [15:59:00]Write to MH i2c: F0 00 00 73 02 64 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 73 02 00 45 7A 16 67 6B 98 1E 66 30 [15:59:00]GetLastDocTimeStamp 1729526246 [15:59:00]current date 1729526341 [15:59:00]FM_GetShiftState [15:59:00]SAM_PROTO_GetShiftState [15:59:00]wFMCommunicate request_size=4 [15:59:00]MH_SAM_APDU [15:59:00]CAPDU: 80 13 01 00 [15:59:00]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:00]Read from MH i2c: E2 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 0E 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1F [15:59:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:59:00]wFMCommunicate OK [15:59:00]SAM_PROTO_GetShiftState done [15:59:00]FM_GetShiftState done [15:59:00]opened in 1729469703 [15:59:00]opened+sec_in_day 1729556103 [15:59:00]quantity*price = 40006 [15:59:00]sum+1 = 40007 [15:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 283 21.10.2024 15:59 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69893 ФПД: 149531109728702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69893&fm=149531109728702&tin=02508201610067®Number=0000000000156251&sum=40000 [15:59:01]StoreToDocumentArchive [15:59:01]shift 194 fd 69893 [15:59:01]save to /storage/0194/doc_00069893 [15:59:01]save last doc name /storage/0194/doc_00069893 to /storage/kkm_last_doc_name [15:59:01]save OK [15:59:01]Clear old archive folders... [15:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:01]tlvbuf is 010FD890 [15:59:01]SAM_PROTO_ClearQueue [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 09 00 00 [15:59:01]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]SAM_PROTO_ClearQueue done [15:59:01]KKMCreateOFDPacket [15:59:01]OFDProtocolAddRootSTLVToBuf [15:59:01]FM_MakeSignedData [15:59:01]FM_MakeSignedData [15:59:01]SAM_PROTO_SignData [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 01 02 [15:59:01]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=255 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 45 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 11 01 00 35 04 06 00 87 [15:59:01]Write to MH i2c: E2 02 01 83 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 45 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 11 01 00 35 04 06 00 87 00 00 0D [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=10 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 02 02 05 FF 6C AD A1 BE [15:59:01]Write to MH i2c: E2 0D 00 84 02 80 0D 02 02 05 00 FF 6C AD A1 BE 00 00 81 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 03 02 [15:59:02]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 85 02 00 11 57 AE 5A 75 00 3C 0A 90 00 2E [15:59:02]RAPDU: 11 57 AE 5A 75 00 3C 0A 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_SignData done [15:59:02]FM_MakeSignedData done [15:59:02]CreateOFDProtocolMessage [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 11 00 00 [15:59:02]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [15:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:02]wFMCommunicate OK [15:59:02]CreateOFDProtocolMessage done [15:59:02]OFDSenderStorePacket 69893 [15:59:02]StoreOFDPacket docnum=69893 [15:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 F7 07 01 11 3A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 45 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 11 01 00 35 04 06 00 87 FF 6C AD A1 BE 11 57 AE 5A 75 00 3C 0A [15:59:02]CheckFolder [15:59:02]dirname=/storage/ofd_packets [15:59:02]CheckFolder done [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00069893 [15:59:02]NVStorageSaveData ofd_packets/00069893 [15:59:02]File name is /storage/ofd_packets/00069893 [15:59:02]Write 301 bytes [15:59:02]NVStorageSaveData done [15:59:02]OFDSenderStorePacket done [15:59:02]KKMCreateOFDPacket done [15:59:02]NVStorageSaveData kkm_last_timestamp [15:59:02]File name is /storage/kkm_last_timestamp [15:59:02]Write 4 bytes [15:59:02]NVStorageSaveData done [15:59:02]ExternCall_PrintAddStr [15:59:02]wPrintStart [15:59:02]Write to MH i2c: 01 00 00 87 02 89 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [15:59:02]RasterBufferAndPrint [15:59:02]line Счет N : (1)2885646 [15:59:02]line ИНН: 02508201610067 [15:59:02]line Контрольно-Кассовый Чек [15:59:02]line ПРОДАЖА [15:59:02]line ТРК (МРК, ГНК) : 12 [15:59:02]line Товар: 2710124130 [15:59:02]line Аи-92-К-5 [15:59:02]line 5.980 * 66.90 [15:59:02]line = 400.06 [15:59:02]line НДС 12% НСП 1% [15:59:02]line > о реализуемом товаре [15:59:02]line ОКРУГЛЕНИЕ: -0.06 [15:59:02]line ИТОГО: 400.00 [15:59:02]line Внесено: 400.00 [15:59:02]line СДАЧА: 0.00 [15:59:02]line НСП 1% : 3.54 [15:59:02]line НДС 12% : 42.48 [15:59:02]line Наличными: 400.00 [15:59:02]line Безнал.: 0.00 [15:59:02]line Место: АЗС № 85 "Партнер Нефть" [15:59:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:59:02]line СНО: Общий режим [15:59:02]line Чек 283 21.10.2024 15:59 [15:59:02]line Смена: 194 ФФД: 1.0 [15:59:02]line ЗНМ: 0300000167 [15:59:02]line РНМ: 0000000000156251 [15:59:02]line Версия ККМ: v1.0 [15:59:02]line ФМ: 0000000000963346 [15:59:02]line ФД: 69893 [15:59:02]line ФПД: 149531109728702 [15:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155901&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69893&fm=149531109728702&tin=02508201610067®Number=0000000000156251&sum=40000 [15:59:02]OFD Sender: Processing packet 69893 [packets to send 18, broken 17] [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00069893 [15:59:02]OFD Sender: To server: pG, [15:59:02]CommunicateWithHost lk.salyk.kg:30040 [15:59:02]ConnectInit lk.salyk.kg [15:59:02]written 0, free lines is 4095 [15:59:02]Connected sock=10 [15:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 F7 07 01 11 3A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 45 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 11 01 00 35 04 06 00 87 FF 6C AD A1 BE 11 57 AE 5A 75 00 3C 0A [15:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E2 FE 47 00 15 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 11 01 00 F4 03 04 00 E8 23 16 67 B6 04 01 00 00 3E 1E 82 5F C6 81 83 A2 [15:59:02]CommunicateWithHost err = 0 [15:59:02]CheckOFDResponse [15:59:02]1017 (14) - 77093643461234 [15:59:02]1041 (16) - 0000000000963346 [15:59:02]1040 (4) - 69893 [15:59:02]1012 (4) - 21.10.2024 09:50 [15:59:02]1206 (1) - 0 [15:59:02]OFD Sender: Remove packet 69893 [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00069893 [15:59:02]NVStorageDeleteData [15:59:02]Write to MH i2c: 01 00 00 B2 02 B4 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 F3 0C BA [15:59:02]RasterBufferAndPrint [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]written 0, free lines is 3321 [15:59:02]MH_Cut [15:59:02]Write to MH i2c: D1 01 00 B9 02 01 8D [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 01 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 01 00 B9 02 00 8C [15:59:02]Write to MH i2c: 01 00 00 BA 02 BC [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:03]OFD Sender: No OFD packet to send [15:59:03]*** Cut start [15:59:03]*** Partial cut [15:59:03]*** CUTSNS_PIN = 1 [15:59:03]*** CUTSNS_PIN = 0 [15:59:03]*** Brake cut motor [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]*** Stop cut motor [15:59:04]*** Cut end [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [15:59:04]process_action close_receipt done [15:59:04]requested_data is exist [15:59:04]produce_requested_data [15:59:04]requested_item fm.sn is exist - process it [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:04]wFMCommunicate OK [15:59:04]requested_item fd.num is exist - process it [15:59:04]SAM_PROTO_GetFieldsCounters [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 00 00 [15:59:04]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 62 00 [15:59:04]MH_I2C_Read... [15:59:04]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetFieldsCounters done [15:59:04]requested_item shift.num is exist - process it [15:59:04]requested_item shift.opened is exist - process it [15:59:04]req_shift_opened [15:59:04]FM_GetShiftState [15:59:04]SAM_PROTO_GetShiftState [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 01 00 [15:59:04]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:04]Read from MH i2c: E2 0E 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 68 [15:59:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetShiftState done [15:59:04]FM_GetShiftState done [15:59:04]req_shift_opened done [15:59:04]requested_item shift.open_date is exist - process it [15:59:04]req_shift_open_date [15:59:04]req_shift_open_date done [15:59:04]produce_requested_data done [15:59:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69893,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:59:04]process_action_free close_receipt [15:59:04]json_value_free [15:59:04]json_value_free done [15:59:04]process_json_proto returns [15:59:04]Send response to host [15:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69893,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:59:04]free response buf [15:59:04]execute_script done [15:59:04]execute_script returns [15:59:04]free content buf [15:59:04]Sock 7.Close socket [15:59:04]Sock 7.Thread stoped [15:59:08]OFD Sender: No OFD packet to send [15:59:09]accept exits with 9 [15:59:09]New connection [15:59:09]New thread 3067026788 created [15:59:09]Thread 3067170148 joined [15:59:09]Waiting for new connection... [15:59:09] Sock 9.Parse request [15:59:09]Sock 9.Check first char [15:59:09]Sock 9.First char is OK [15:59:09]request: POST /json_proto HTTP/1.0 [15:59:09]Method: POST [15:59:09]URL: /json_proto [15:59:09]Method is POST - this is cgi request [15:59:09]url: /json_proto [15:59:09]query_string will be loaded in cgi processing [15:59:09]execute_cgi json_proto POST (null) [15:59:09]execute_cgi path=json_proto method=POST [15:59:09]POST find Content-Length [15:59:09]Host: 172.17.50.3:8080 [15:59:09]Content-Length: 675 [15:59:09]Content-Type: application/json [15:59:09] [15:59:09]POST finish read [15:59:09]Found Content-Length = 675 [15:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [15:59:09]execute_script... [15:59: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)2885647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [15:59:09]POST & json_proto [15:59:09]process_json_proto [15:59:09]json parsed OK: [15:59:09]protocol is kg_v1.0 [15:59:09]action value=close_receipt [15:59:09]process_action close_receipt [15:59:09]cmd_close_receipt [15:59:09]MH_GetDate [15:59:09]Write to MH i2c: F0 00 00 BE 02 AF [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: F0 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: F0 09 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: F0 09 00 BE 02 00 4E 7A 16 67 6B 98 1E 66 84 [15:59:09]GetLastDocTimeStamp 1729526341 [15:59:09]current date 1729526350 [15:59:09]FM_GetShiftState [15:59:09]SAM_PROTO_GetShiftState [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 01 00 [15:59:09]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6A [15:59:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetShiftState done [15:59:09]FM_GetShiftState done [15:59:09]opened in 1729469703 [15:59:09]opened+sec_in_day 1729556103 [15:59:09]quantity*price = 50063 [15:59:09]sum+1 = 50064 [15:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 284 21.10.2024 15:59 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69894 ФПД: 144122983642725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69894&fm=144122983642725&tin=02508201610067®Number=0000000000156251&sum=50000 [15:59:10]StoreToDocumentArchive [15:59:10]shift 194 fd 69894 [15:59:10]save to /storage/0194/doc_00069894 [15:59:10]save last doc name /storage/0194/doc_00069894 to /storage/kkm_last_doc_name [15:59:10]save OK [15:59:10]Clear old archive folders... [15:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:10]tlvbuf is 01104060 [15:59:10]SAM_PROTO_ClearQueue [15:59:10]wFMCommunicate request_size=4 [15:59:10]MH_SAM_APDU [15:59:10]CAPDU: 80 09 00 00 [15:59:10]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 03 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [15:59:10]RAPDU: 90 00 [15:59:10]wFMCommunicate OK [15:59:10]SAM_PROTO_ClearQueue done [15:59:10]KKMCreateOFDPacket [15:59:10]OFDProtocolAddRootSTLVToBuf [15:59:10]FM_MakeSignedData [15:59:10]FM_MakeSignedData [15:59:10]SAM_PROTO_SignData [15:59:10]wFMCommunicate request_size=4 [15:59:10]MH_SAM_APDU [15:59:10]CAPDU: 80 0D 01 02 [15:59:10]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 03 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [15:59:10]RAPDU: 90 00 [15:59:10]wFMCommunicate OK [15:59:10]wFMCommunicate request_size=255 [15:59:10]MH_SAM_APDU [15:59:10]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 4E 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 11 01 00 35 04 06 00 83 14 3F 3E [15:59:10]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 4E 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 11 01 00 35 04 06 00 83 14 3F 3E 00 00 9F [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 03 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [15:59:11]RAPDU: 90 00 [15:59:11]wFMCommunicate OK [15:59:11]wFMCommunicate request_size=7 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 0D 02 02 02 76 65 [15:59:11]Write to MH i2c: E2 0A 00 CF 02 80 0D 02 02 02 00 76 65 00 00 2A [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:11]Read from MH i2c: E2 03 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [15:59:11]RAPDU: 90 00 [15:59:11]wFMCommunicate OK [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 0D 03 02 [15:59:11]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 0B 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 0B 00 D0 02 00 E4 18 DB C8 9A 3A B9 F0 90 00 6A [15:59:11]RAPDU: E4 18 DB C8 9A 3A B9 F0 90 00 [15:59:11]wFMCommunicate OK [15:59:11]SAM_PROTO_SignData done [15:59:11]FM_MakeSignedData done [15:59:11]CreateOFDProtocolMessage [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 11 00 00 [15:59:11]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 17 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [15:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:11]wFMCommunicate OK [15:59:11]CreateOFDProtocolMessage done [15:59:11]OFDSenderStorePacket 69894 [15:59:11]StoreOFDPacket docnum=69894 [15:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F6 E9 04 01 05 CB 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 4E 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 11 01 00 35 04 06 00 83 14 3F 3E 76 65 E4 18 DB C8 9A 3A B9 F0 [15:59:11]CheckFolder [15:59:11]dirname=/storage/ofd_packets [15:59:11]CheckFolder done [15:59:11]ProducePacketName [15:59:11]name=ofd_packets/00069894 [15:59:11]NVStorageSaveData ofd_packets/00069894 [15:59:11]File name is /storage/ofd_packets/00069894 [15:59:11]Write 298 bytes [15:59:11]NVStorageSaveData done [15:59:11]OFDSenderStorePacket done [15:59:11]KKMCreateOFDPacket done [15:59:11]NVStorageSaveData kkm_last_timestamp [15:59:11]File name is /storage/kkm_last_timestamp [15:59:11]Write 4 bytes [15:59:11]NVStorageSaveData done [15:59:11]ExternCall_PrintAddStr [15:59:11]wPrintStart [15:59:11]Write to MH i2c: 01 00 00 D2 02 D4 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [15:59:11]RasterBufferAndPrint [15:59:11]line Счет N : (1)2885647 [15:59:11]line ИНН: 02508201610067 [15:59:11]line Контрольно-Кассовый Чек [15:59:11]line ПРОДАЖА [15:59:11]line ТРК (МРК, ГНК) : 51 [15:59:11]line Товар: 2710194210 [15:59:11]line ДТ-К-5 [15:59:11]line 6.570 * 76.20 [15:59:11]line = 500.63 [15:59:11]line НДС 12% НСП 1% [15:59:11]line > о реализуемом товаре [15:59:11]line ОКРУГЛЕНИЕ: -0.63 [15:59:11]line ИТОГО: 500.00 [15:59:11]line Внесено: 500.00 [15:59:11]line СДАЧА: 0.00 [15:59:11]line НСП 1% : 4.43 [15:59:11]line НДС 12% : 53.16 [15:59:11]line Наличными: 500.00 [15:59:11]line Безнал.: 0.00 [15:59:11]line Место: АЗС № 85 "Партнер Нефть" [15:59:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:59:11]line СНО: Общий режим [15:59:11]line Чек 284 21.10.2024 15:59 [15:59:11]line Смена: 194 ФФД: 1.0 [15:59:11]line ЗНМ: 0300000167 [15:59:11]line РНМ: 0000000000156251 [15:59:11]line Версия ККМ: v1.0 [15:59:11]line ФМ: 0000000000963346 [15:59:11]line ФД: 69894 [15:59:11]line ФПД: 144122983642725 [15:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69894&fm=144122983642725&tin=02508201610067®Number=0000000000156251&sum=50000 [15:59:11]OFD Sender: Processing packet 69894 [packets to send 18, broken 17] [15:59:11]ProducePacketName [15:59:11]name=ofd_packets/00069894 [15:59:11]OFD Sender: To server: pG, [15:59:11]CommunicateWithHost lk.salyk.kg:30040 [15:59:11]ConnectInit lk.salyk.kg [15:59:11]written 0, free lines is 4095 [15:59:11]Connected sock=10 [15:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F6 E9 04 01 05 CB 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 4E 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 11 01 00 35 04 06 00 83 14 3F 3E 76 65 E4 18 DB C8 9A 3A B9 F0 [15:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 33 BA 47 00 06 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 11 01 00 F4 03 04 00 F1 23 16 67 B6 04 01 00 00 98 13 71 50 35 FF 02 2A [15:59:12]CommunicateWithHost err = 0 [15:59:12]CheckOFDResponse [15:59:12]1017 (14) - 77093643461234 [15:59:12]1041 (16) - 0000000000963346 [15:59:12]1040 (4) - 69894 [15:59:12]1012 (4) - 21.10.2024 09:50 [15:59:12]1206 (1) - 0 [15:59:12]OFD Sender: Remove packet 69894 [15:59:12]ProducePacketName [15:59:12]name=ofd_packets/00069894 [15:59:12]NVStorageDeleteData [15:59:12]Write to MH i2c: 01 00 00 FD 02 FF [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 07 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 F4 0C 06 [15:59:12]RasterBufferAndPrint [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]written 0, free lines is 3325 [15:59:12]MH_Cut [15:59:12]Write to MH i2c: D1 01 00 04 03 01 D9 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 01 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 01 00 04 03 00 D8 [15:59:12]Write to MH i2c: 01 00 00 05 03 08 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]OFD Sender: No OFD packet to send [15:59:12]*** Cut start [15:59:12]*** Partial cut [15:59:12]*** CUTSNS_PIN = 1 [15:59:12]*** CUTSNS_PIN = 0 [15:59:13]*** Brake cut motor [15:59:13]Read from MH i2c: 01 [15:59:13]MH_I2C_Read... [15:59:13]*** Stop cut motor [15:59:13]*** Cut end [15:59:13]Read from MH i2c: 01 07 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [15:59:13]process_action close_receipt done [15:59:13]requested_data is exist [15:59:13]produce_requested_data [15:59:13]requested_item fm.sn is exist - process it [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 11 00 00 [15:59:13]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [15:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:13]wFMCommunicate OK [15:59:13]requested_item fd.num is exist - process it [15:59:13]SAM_PROTO_GetFieldsCounters [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 00 00 [15:59:13]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 62 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [15:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetFieldsCounters done [15:59:13]requested_item shift.num is exist - process it [15:59:13]requested_item shift.opened is exist - process it [15:59:13]req_shift_opened [15:59:13]FM_GetShiftState [15:59:13]SAM_PROTO_GetShiftState [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 01 00 [15:59:13]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B4 [15:59:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetShiftState done [15:59:13]FM_GetShiftState done [15:59:13]req_shift_opened done [15:59:13]requested_item shift.open_date is exist - process it [15:59:13]req_shift_open_date [15:59:13]req_shift_open_date done [15:59:13]produce_requested_data done [15:59:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69894,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [15:59:13]process_action_free close_receipt [15:59:13]json_value_free [15:59:13]json_value_free done [15:59:13]process_json_proto returns [15:59:13]Send response to host [15:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69894,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [15:59:13]free response buf [15:59:13]execute_script done [15:59:13]execute_script returns [15:59:13]free content buf [15:59:13]Sock 9.Close socket [15:59:13]Sock 9.Thread stoped [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:03]accept exits with 7 [16:01:03]New connection [16:01:03]New thread 3067170148 created [16:01:03]Thread 3067026788 joined [16:01:03]Waiting for new connection... [16:01:03] Sock 7.Parse request [16:01:03]Sock 7.Check first char [16:01:03]Sock 7.First char is OK [16:01:03]request: POST /json_proto HTTP/1.0 [16:01:03]Method: POST [16:01:03]URL: /json_proto [16:01:03]Method is POST - this is cgi request [16:01:03]url: /json_proto [16:01:03]query_string will be loaded in cgi processing [16:01:03]execute_cgi json_proto POST (null) [16:01:03]execute_cgi path=json_proto method=POST [16:01:03]POST find Content-Length [16:01:03]Host: 172.17.50.3:8080 [16:01:03]Content-Length: 675 [16:01:03]Content-Type: application/json [16:01:03] [16:01:03]POST finish read [16:01:03]Found Content-Length = 675 [16:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:01:03]execute_script... [16:01: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)2885648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [16:01:03]POST & json_proto [16:01:03]process_json_proto [16:01:03]json parsed OK: [16:01:03]protocol is kg_v1.0 [16:01:03]action value=close_receipt [16:01:03]process_action close_receipt [16:01:03]cmd_close_receipt [16:01:03]MH_GetDate [16:01:03]Write to MH i2c: F0 00 00 09 03 FB [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: F0 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: F0 09 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: F0 09 00 09 03 00 C0 7A 16 67 6B 98 1E 66 42 [16:01:03]GetLastDocTimeStamp 1729526350 [16:01:03]current date 1729526464 [16:01:03]FM_GetShiftState [16:01:03]SAM_PROTO_GetShiftState [16:01:03]wFMCommunicate request_size=4 [16:01:03]MH_SAM_APDU [16:01:03]CAPDU: 80 13 01 00 [16:01:03]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:03]Read from MH i2c: E2 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: E2 0E 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B6 [16:01:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:01:03]wFMCommunicate OK [16:01:03]SAM_PROTO_GetShiftState done [16:01:03]FM_GetShiftState done [16:01:03]opened in 1729469703 [16:01:03]opened+sec_in_day 1729556103 [16:01:03]quantity*price = 50063 [16:01:03]sum+1 = 50064 [16:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 285 21.10.2024 16:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69895 ФПД: 242930819856443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160104&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69895&fm=242930819856443&tin=02508201610067®Number=0000000000156251&sum=50000 [16:01:04]StoreToDocumentArchive [16:01:04]shift 194 fd 69895 [16:01:04]save to /storage/0194/doc_00069895 [16:01:04]save last doc name /storage/0194/doc_00069895 to /storage/kkm_last_doc_name [16:01:04]save OK [16:01:04]Clear old archive folders... [16:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:04]tlvbuf is 01105B60 [16:01:04]SAM_PROTO_ClearQueue [16:01:04]wFMCommunicate request_size=4 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 09 00 00 [16:01:04]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:04]Read from MH i2c: E2 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [16:01:04]RAPDU: 90 00 [16:01:04]wFMCommunicate OK [16:01:04]SAM_PROTO_ClearQueue done [16:01:04]KKMCreateOFDPacket [16:01:04]OFDProtocolAddRootSTLVToBuf [16:01:04]FM_MakeSignedData [16:01:04]FM_MakeSignedData [16:01:04]SAM_PROTO_SignData [16:01:04]wFMCommunicate request_size=4 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 0D 01 02 [16:01:04]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:04]Read from MH i2c: E2 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [16:01:04]RAPDU: 90 00 [16:01:04]wFMCommunicate OK [16:01:04]wFMCommunicate request_size=255 [16:01:04]MH_SAM_APDU [16:01: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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 1D 01 00 00 F4 03 04 00 C0 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 11 01 00 35 04 06 00 DC F1 BD 38 [16:01:04]Write to MH i2c: E2 02 01 19 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 1D 01 00 00 F4 03 04 00 C0 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 11 01 00 35 04 06 00 DC F1 BD 38 00 00 0D [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [16:01:05]RAPDU: 90 00 [16:01:05]wFMCommunicate OK [16:01:05]wFMCommunicate request_size=7 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 0D 02 02 02 F8 3B [16:01:05]Write to MH i2c: E2 0A 00 1A 03 80 0D 02 02 02 00 F8 3B 00 00 CE [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [16:01:05]RAPDU: 90 00 [16:01:05]wFMCommunicate OK [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 0D 03 02 [16:01:05]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0B 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0B 00 1B 03 00 70 88 F7 B2 89 09 69 D9 90 00 0F [16:01:05]RAPDU: 70 88 F7 B2 89 09 69 D9 90 00 [16:01:05]wFMCommunicate OK [16:01:05]SAM_PROTO_SignData done [16:01:05]FM_MakeSignedData done [16:01:05]CreateOFDProtocolMessage [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 11 00 00 [16:01:05]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [16:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:01:05]wFMCommunicate OK [16:01:05]CreateOFDProtocolMessage done [16:01:05]OFDSenderStorePacket 69895 [16:01:05]StoreOFDPacket docnum=69895 [16:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 00 08 04 01 F3 3D 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 1D 01 00 00 F4 03 04 00 C0 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 11 01 00 35 04 06 00 DC F1 BD 38 F8 3B 70 88 F7 B2 89 09 69 D9 [16:01:05]CheckFolder [16:01:05]dirname=/storage/ofd_packets [16:01:05]CheckFolder done [16:01:05]ProducePacketName [16:01:05]name=ofd_packets/00069895 [16:01:05]NVStorageSaveData ofd_packets/00069895 [16:01:05]File name is /storage/ofd_packets/00069895 [16:01:05]Write 298 bytes [16:01:05]NVStorageSaveData done [16:01:05]OFDSenderStorePacket done [16:01:05]KKMCreateOFDPacket done [16:01:05]NVStorageSaveData kkm_last_timestamp [16:01:05]File name is /storage/kkm_last_timestamp [16:01:05]Write 4 bytes [16:01:05]NVStorageSaveData done [16:01:05]ExternCall_PrintAddStr [16:01:05]wPrintStart [16:01:05]Write to MH i2c: 01 00 00 1D 03 20 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 07 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [16:01:05]RasterBufferAndPrint [16:01:05]line Счет N : (1)2885648 [16:01:05]line ИНН: 02508201610067 [16:01:05]line Контрольно-Кассовый Чек [16:01:05]line ПРОДАЖА [16:01:05]line ТРК (МРК, ГНК) : 61 [16:01:05]line Товар: 2710194210 [16:01:05]line ДТ-К-5 [16:01:05]line 6.570 * 76.20 [16:01:05]line = 500.63 [16:01:05]line НДС 12% НСП 1% [16:01:05]line > о реализуемом товаре [16:01:05]line ОКРУГЛЕНИЕ: -0.63 [16:01:05]line ИТОГО: 500.00 [16:01:05]line Внесено: 500.00 [16:01:05]line СДАЧА: 0.00 [16:01:05]line НСП 1% : 4.43 [16:01:05]line НДС 12% : 53.16 [16:01:05]line Наличными: 500.00 [16:01:05]line Безнал.: 0.00 [16:01:05]line Место: АЗС № 85 "Партнер Нефть" [16:01:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:01:05]line СНО: Общий режим [16:01:05]line Чек 285 21.10.2024 16:01 [16:01:05]line Смена: 194 ФФД: 1.0 [16:01:05]line ЗНМ: 0300000167 [16:01:05]line РНМ: 0000000000156251 [16:01:05]line Версия ККМ: v1.0 [16:01:05]line ФМ: 0000000000963346 [16:01:05]line ФД: 69895 [16:01:05]line ФПД: 242930819856443 [16:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160104&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69895&fm=242930819856443&tin=02508201610067®Number=0000000000156251&sum=50000 [16:01:05]OFD Sender: Processing packet 69895 [packets to send 18, broken 17] [16:01:05]ProducePacketName [16:01:05]name=ofd_packets/00069895 [16:01:05]OFD Sender: To server: pG, [16:01:05]CommunicateWithHost lk.salyk.kg:30040 [16:01:05]ConnectInit lk.salyk.kg [16:01:05]written 0, free lines is 4095 [16:01:05]Connected sock=10 [16:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 00 08 04 01 F3 3D 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 1D 01 00 00 F4 03 04 00 C0 7A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 11 01 00 35 04 06 00 DC F1 BD 38 F8 3B 70 88 F7 B2 89 09 69 D9 [16:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5D AF 47 00 D5 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 11 01 00 F4 03 04 00 63 24 16 67 B6 04 01 00 00 4D 1B 7B DA 79 E3 6C D3 [16:01:05]CommunicateWithHost err = 0 [16:01:05]CheckOFDResponse [16:01:05]1017 (14) - 77093643461234 [16:01:05]1041 (16) - 0000000000963346 [16:01:05]1040 (4) - 69895 [16:01:05]1012 (4) - 21.10.2024 09:52 [16:01:05]1206 (1) - 0 [16:01:05]OFD Sender: Remove packet 69895 [16:01:05]ProducePacketName [16:01:05]name=ofd_packets/00069895 [16:01:05]NVStorageDeleteData [16:01:05]Write to MH i2c: 01 00 00 48 03 4B [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 07 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 00 0D 5F [16:01:05]RasterBufferAndPrint [16:01:05]line [16:01:05]line [16:01:05]line [16:01:05]line [16:01:05]line [16:01:05]written 0, free lines is 3334 [16:01:05]MH_Cut [16:01:05]Write to MH i2c: D1 01 00 4F 03 01 24 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: D1 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: D1 01 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: D1 01 00 4F 03 00 23 [16:01:05]Write to MH i2c: 01 00 00 50 03 53 [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:06]OFD Sender: No OFD packet to send [16:01:06]*** Cut start [16:01:06]*** Partial cut [16:01:06]*** CUTSNS_PIN = 1 [16:01:06]*** CUTSNS_PIN = 0 [16:01:06]*** Brake cut motor [16:01:07]Read from MH i2c: 01 [16:01:07]MH_I2C_Read... [16:01:07]*** Stop cut motor [16:01:07]*** Cut end [16:01:07]Read from MH i2c: 01 07 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [16:01:07]process_action close_receipt done [16:01:07]requested_data is exist [16:01:07]produce_requested_data [16:01:07]requested_item fm.sn is exist - process it [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 11 00 00 [16:01:07]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 17 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [16:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:01:07]wFMCommunicate OK [16:01:07]requested_item fd.num is exist - process it [16:01:07]SAM_PROTO_GetFieldsCounters [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 13 00 00 [16:01:07]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 62 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:01:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:07]wFMCommunicate OK [16:01:07]SAM_PROTO_GetFieldsCounters done [16:01:07]requested_item shift.num is exist - process it [16:01:07]requested_item shift.opened is exist - process it [16:01:07]req_shift_opened [16:01:07]FM_GetShiftState [16:01:07]SAM_PROTO_GetShiftState [16:01:07]wFMCommunicate request_size=4 [16:01:07]MH_SAM_APDU [16:01:07]CAPDU: 80 13 01 00 [16:01:07]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [16:01:07]Write i2c OK [16:01:07]MH_I2C_Read... [16:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:07]Read from MH i2c: E2 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 0E 00 [16:01:07]MH_I2C_Read... [16:01:07]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FF [16:01:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:01:07]wFMCommunicate OK [16:01:07]SAM_PROTO_GetShiftState done [16:01:07]FM_GetShiftState done [16:01:07]req_shift_opened done [16:01:07]requested_item shift.open_date is exist - process it [16:01:07]req_shift_open_date [16:01:07]req_shift_open_date done [16:01:07]produce_requested_data done [16:01:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69895,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:01:07]process_action_free close_receipt [16:01:07]json_value_free [16:01:07]json_value_free done [16:01:07]process_json_proto returns [16:01:07]Send response to host [16:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69895,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:01:07]free response buf [16:01:07]execute_script done [16:01:07]execute_script returns [16:01:07]free content buf [16:01:07]Sock 7.Close socket [16:01:07]Sock 7.Thread stoped [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:25]accept exits with 9 [16:05:25]New connection [16:05:25]New thread 3067026788 created [16:05:25]Thread 3067170148 joined [16:05:25]Waiting for new connection... [16:05:25] Sock 9.Parse request [16:05:25]Sock 9.Check first char [16:05:25]Sock 9.First char is OK [16:05:25]request: POST /json_proto HTTP/1.0 [16:05:25]Method: POST [16:05:25]URL: /json_proto [16:05:25]Method is POST - this is cgi request [16:05:25]url: /json_proto [16:05:25]query_string will be loaded in cgi processing [16:05:25]execute_cgi json_proto POST (null) [16:05:25]execute_cgi path=json_proto method=POST [16:05:25]POST find Content-Length [16:05:25]Host: 172.17.50.3:8080 [16:05:25]Content-Length: 793 [16:05:25]Content-Type: application/json [16:05:25] [16:05:25]POST finish read [16:05:25]Found Content-Length = 793 [16:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 26.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:25]execute_script... [16:05: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)2885649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 26.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:25]POST & json_proto [16:05:25]process_json_proto [16:05:25]json parsed OK: [16:05:25]protocol is kg_v1.0 [16:05:25]action value=close_receipt [16:05:25]process_action close_receipt [16:05:25]cmd_close_receipt [16:05:25]MH_GetDate [16:05:25]Write to MH i2c: F0 00 00 54 03 46 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 09 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 09 00 54 03 00 C6 7B 16 67 6B 98 1E 66 94 [16:05:25]GetLastDocTimeStamp 1729526464 [16:05:25]current date 1729526726 [16:05:25]FM_GetShiftState [16:05:25]SAM_PROTO_GetShiftState [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 13 01 00 [16:05:25]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 01 [16:05:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:05:25]wFMCommunicate OK [16:05:25]SAM_PROTO_GetShiftState done [16:05:25]FM_GetShiftState done [16:05:25]opened in 1729469703 [16:05:25]opened+sec_in_day 1729556103 [16:05:25]quantity*price = 0 [16:05:25]sum+1 = 1 [16:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 286 21.10.2024 16:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 00809 ФМ: 0000000000963346 ФД: 69896 ФПД: 21298735123931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69896&fm=21298735123931&tin=02508201610067®Number=0000000000156251&sum=0 [16:05:26]StoreToDocumentArchive [16:05:26]shift 194 fd 69896 [16:05:26]save to /storage/0194/doc_00069896 [16:05:26]save last doc name /storage/0194/doc_00069896 to /storage/kkm_last_doc_name [16:05:26]save OK [16:05:26]Clear old archive folders... [16:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:26]tlvbuf is 01141B80 [16:05:26]SAM_PROTO_ClearQueue [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 09 00 00 [16:05:26]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_ClearQueue done [16:05:26]KKMCreateOFDPacket [16:05:26]OFDProtocolAddRootSTLVToBuf [16:05:26]FM_MakeSignedData [16:05:26]FM_MakeSignedData [16:05:26]SAM_PROTO_SignData [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 01 02 [16:05:26]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]OFD Sender: No OFD packet to send [16:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=255 [16:05:26]MH_SAM_APDU [16:05:26]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 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C6 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 11 01 00 35 04 06 00 13 [16:05:26]Write to MH i2c: E2 02 01 64 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 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C6 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 11 01 00 35 04 06 00 13 00 00 A4 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=10 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 02 02 05 5E FF 8A 8D DB [16:05:26]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 5E FF 8A 8D DB 00 00 3B [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 03 02 [16:05:26]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0B 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0B 00 66 03 00 1D BE 31 98 B7 4C 31 EC 90 00 A9 [16:05:26]RAPDU: 1D BE 31 98 B7 4C 31 EC 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_SignData done [16:05:26]FM_MakeSignedData done [16:05:26]CreateOFDProtocolMessage [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 11 00 00 [16:05:26]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [16:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:05:27]wFMCommunicate OK [16:05:27]CreateOFDProtocolMessage done [16:05:27]OFDSenderStorePacket 69896 [16:05:27]StoreOFDPacket docnum=69896 [16:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E 0E 07 01 E4 BB 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 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C6 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 11 01 00 35 04 06 00 13 5E FF 8A 8D DB 1D BE 31 98 B7 4C 31 EC [16:05:27]CheckFolder [16:05:27]dirname=/storage/ofd_packets [16:05:27]CheckFolder done [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00069896 [16:05:27]NVStorageSaveData ofd_packets/00069896 [16:05:27]File name is /storage/ofd_packets/00069896 [16:05:27]Write 301 bytes [16:05:27]NVStorageSaveData done [16:05:27]OFDSenderStorePacket done [16:05:27]KKMCreateOFDPacket done [16:05:27]NVStorageSaveData kkm_last_timestamp [16:05:27]File name is /storage/kkm_last_timestamp [16:05:27]Write 4 bytes [16:05:27]NVStorageSaveData done [16:05:27]ExternCall_PrintAddStr [16:05:27]wPrintStart [16:05:27]Write to MH i2c: 01 00 00 68 03 6B [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [16:05:27]RasterBufferAndPrint [16:05:27]line Счет N : (1)2885649 [16:05:27]line ИНН: 02508201610067 [16:05:27]line Контрольно-Кассовый Чек [16:05:27]line ПРОДАЖА [16:05:27]line ТРК (МРК, ГНК) : 12 [16:05:27]line Товар: 2710124130 [16:05:27]line Аи-92-К-5 [16:05:27]line 26.000 * 0.00 [16:05:27]line = 0.00 [16:05:27]line НДС 12% НСП 1% [16:05:27]line > о реализуемом товаре [16:05:27]line ИТОГО: 0.00 [16:05:27]line НСП 1% : 0.00 [16:05:27]line НДС 12% : 0.00 [16:05:27]line Наличными: 0.00 [16:05:27]line Безнал.: 0.00 [16:05:27]line Место: АЗС № 85 "Партнер Нефть" [16:05:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:05:27]line СНО: Общий режим [16:05:27]line Чек 286 21.10.2024 16:05 [16:05:27]line Смена: 194 ФФД: 1.0 [16:05:27]line ЗНМ: 0300000167 [16:05:27]line РНМ: 0000000000156251 [16:05:27]line Версия ККМ: v1.0 [16:05:27]line Талоны: Топливная Карта [16:05:27]line 00809 [16:05:27]line ФМ: 0000000000963346 [16:05:27]line ФД: 69896 [16:05:27]line ФПД: 21298735123931 [16:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69896&fm=21298735123931&tin=02508201610067®Number=0000000000156251&sum=0 [16:05:27]OFD Sender: Processing packet 69896 [packets to send 18, broken 17] [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00069896 [16:05:27]OFD Sender: To server: pG, [16:05:27]CommunicateWithHost lk.salyk.kg:30040 [16:05:27]ConnectInit lk.salyk.kg [16:05:27]written 0, free lines is 4095 [16:05:27]Connected sock=10 [16:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E 0E 07 01 E4 BB 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 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C6 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 11 01 00 35 04 06 00 13 5E FF 8A 8D DB 1D BE 31 98 B7 4C 31 EC [16:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F6 DF 47 00 30 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 39 36 33 33 34 36 10 04 04 00 08 11 01 00 F4 03 04 00 69 25 16 67 B6 04 01 00 00 1D C6 D3 F0 B8 D7 D1 99 [16:05:27]CommunicateWithHost err = 0 [16:05:27]CheckOFDResponse [16:05:27]1017 (14) - 77093643461234 [16:05:27]1041 (16) - 0000000000963346 [16:05:27]1040 (4) - 69896 [16:05:27]1012 (4) - 21.10.2024 09:56 [16:05:27]1206 (1) - 0 [16:05:27]OFD Sender: Remove packet 69896 [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00069896 [16:05:27]NVStorageDeleteData [16:05:27]Write to MH i2c: 01 00 00 92 03 95 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 0C 0D B5 [16:05:27]RasterBufferAndPrint [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]written 0, free lines is 3346 [16:05:27]MH_Cut [16:05:27]Write to MH i2c: D1 01 00 99 03 01 6E [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 01 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 01 00 99 03 00 6D [16:05:27]Write to MH i2c: 01 00 00 9A 03 9D [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:28]OFD Sender: No OFD packet to send [16:05:28]*** Cut start [16:05:28]*** Partial cut [16:05:28]*** CUTSNS_PIN = 1 [16:05:28]*** CUTSNS_PIN = 0 [16:05:28]*** Brake cut motor [16:05:29]Read from MH i2c: 01 [16:05:29]MH_I2C_Read... [16:05:29]*** Stop cut motor [16:05:29]*** Cut end [16:05:29]Read from MH i2c: 01 07 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [16:05:29]process_action close_receipt done [16:05:29]requested_data is exist [16:05:29]produce_requested_data [16:05:29]requested_item fm.sn is exist - process it [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 11 00 00 [16:05:29]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [16:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:05:29]wFMCommunicate OK [16:05:29]requested_item fd.num is exist - process it [16:05:29]SAM_PROTO_GetFieldsCounters [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 00 00 [16:05:29]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 62 00 [16:05:29]MH_I2C_Read... [16:05:29]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetFieldsCounters done [16:05:29]requested_item shift.num is exist - process it [16:05:29]requested_item shift.opened is exist - process it [16:05:29]req_shift_opened [16:05:29]FM_GetShiftState [16:05:29]SAM_PROTO_GetShiftState [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 01 00 [16:05:29]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 49 [16:05:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetShiftState done [16:05:29]FM_GetShiftState done [16:05:29]req_shift_opened done [16:05:29]requested_item shift.open_date is exist - process it [16:05:29]req_shift_open_date [16:05:29]req_shift_open_date done [16:05:29]produce_requested_data done [16:05:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69896,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:05:29]process_action_free close_receipt [16:05:29]json_value_free [16:05:29]json_value_free done [16:05:29]process_json_proto returns [16:05:29]Send response to host [16:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69896,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:05:29]free response buf [16:05:29]execute_script done [16:05:29]execute_script returns [16:05:29]free content buf [16:05:29]Sock 9.Close socket [16:05:29]Sock 9.Thread stoped [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:10]accept exits with 7 [16:06:10]New connection [16:06:10]New thread 3067170148 created [16:06:10]Thread 3067026788 joined [16:06:10]Waiting for new connection... [16:06:10] Sock 7.Parse request [16:06:10]Sock 7.Check first char [16:06:10]Sock 7.First char is OK [16:06:10]request: POST /json_proto HTTP/1.0 [16:06:10]Method: POST [16:06:10]URL: /json_proto [16:06:10]Method is POST - this is cgi request [16:06:10]url: /json_proto [16:06:10]query_string will be loaded in cgi processing [16:06:10]execute_cgi json_proto POST (null) [16:06:10]execute_cgi path=json_proto method=POST [16:06:10]POST find Content-Length [16:06:10]Host: 172.17.50.3:8080 [16:06:10]Content-Length: 678 [16:06:10]Content-Type: application/json [16:06:10] [16:06:10]POST finish read [16:06:10]Found Content-Length = 678 [16:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885650", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]execute_script... [16:06: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)2885650", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]POST & json_proto [16:06:10]process_json_proto [16:06:10]json parsed OK: [16:06:10]protocol is kg_v1.0 [16:06:10]action value=close_receipt [16:06:10]process_action close_receipt [16:06:10]cmd_close_receipt [16:06:10]MH_GetDate [16:06:10]Write to MH i2c: F0 00 00 9E 03 90 [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 9E 03 00 F2 7B 16 67 6B 98 1E 66 0A [16:06:10]GetLastDocTimeStamp 1729526726 [16:06:10]current date 1729526770 [16:06:10]FM_GetShiftState [16:06:10]SAM_PROTO_GetShiftState [16:06:10]wFMCommunicate request_size=4 [16:06:10]MH_SAM_APDU [16:06:10]CAPDU: 80 13 01 00 [16:06:10]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:10]Read from MH i2c: E2 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4B [16:06:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:06:10]wFMCommunicate OK [16:06:10]SAM_PROTO_GetShiftState done [16:06:10]FM_GetShiftState done [16:06:10]opened in 1729469703 [16:06:10]opened+sec_in_day 1729556103 [16:06:10]quantity*price = 50041 [16:06:10]sum+1 = 50042 [16:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 287 21.10.2024 16:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69897 ФПД: 188009857551041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160610&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69897&fm=188009857551041&tin=02508201610067®Number=0000000000156251&sum=50000 [16:06:11]StoreToDocumentArchive [16:06:11]shift 194 fd 69897 [16:06:11]save to /storage/0194/doc_00069897 [16:06:11]save last doc name /storage/0194/doc_00069897 to /storage/kkm_last_doc_name [16:06:11]save OK [16:06:11]Clear old archive folders... [16:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:11]tlvbuf is 0112F870 [16:06:11]SAM_PROTO_ClearQueue [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 09 00 00 [16:06:11]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_ClearQueue done [16:06:11]KKMCreateOFDPacket [16:06:11]OFDProtocolAddRootSTLVToBuf [16:06:11]FM_MakeSignedData [16:06:11]FM_MakeSignedData [16:06:11]SAM_PROTO_SignData [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 01 02 [16:06:11]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=255 [16:06:11]MH_SAM_APDU [16:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F2 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 11 01 00 35 04 06 00 AA [16:06:11]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F2 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 11 01 00 35 04 06 00 AA 00 00 43 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=10 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 05 FE 74 C6 0A C1 [16:06:11]Write to MH i2c: E2 0D 00 AF 03 80 0D 02 02 05 00 FE 74 C6 0A C1 00 00 39 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 03 02 [16:06:11]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 B0 03 00 2A 23 E8 8A 19 76 8F 8E 90 00 9A [16:06:11]RAPDU: 2A 23 E8 8A 19 76 8F 8E 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_SignData done [16:06:11]FM_MakeSignedData done [16:06:11]CreateOFDProtocolMessage [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 11 00 00 [16:06:11]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [16:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:06:11]wFMCommunicate OK [16:06:11]CreateOFDProtocolMessage done [16:06:11]OFDSenderStorePacket 69897 [16:06:11]StoreOFDPacket docnum=69897 [16:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CD 6A 07 01 7D DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F2 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 11 01 00 35 04 06 00 AA FE 74 C6 0A C1 2A 23 E8 8A 19 76 8F 8E [16:06:11]CheckFolder [16:06:11]dirname=/storage/ofd_packets [16:06:11]CheckFolder done [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00069897 [16:06:11]NVStorageSaveData ofd_packets/00069897 [16:06:11]File name is /storage/ofd_packets/00069897 [16:06:11]Write 301 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFDSenderStorePacket done [16:06:11]KKMCreateOFDPacket done [16:06:11]NVStorageSaveData kkm_last_timestamp [16:06:11]File name is /storage/kkm_last_timestamp [16:06:11]Write 4 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFD Sender: Processing packet 69897 [packets to send 18, broken 17] [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00069897 [16:06:11]OFD Sender: To server: pG, [16:06:11]CommunicateWithHost lk.salyk.kg:30040 [16:06:11]ConnectInit lk.salyk.kg [16:06:11]ExternCall_PrintAddStr [16:06:11]wPrintStart [16:06:11]Write to MH i2c: 01 00 00 B2 03 B5 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [16:06:11]RasterBufferAndPrint [16:06:11]line Счет N : (1)2885650 [16:06:11]line ИНН: 02508201610067 [16:06:11]line Контрольно-Кассовый Чек [16:06:11]line ПРОДАЖА [16:06:11]line ТРК (МРК, ГНК) : 32 [16:06:11]line Товар: 2710124130 [16:06:11]line Аи-92-К-5 [16:06:11]line 7.480 * 66.90 [16:06:11]line = 500.41 [16:06:11]line НДС 12% НСП 1% [16:06:11]line > о реализуемом товаре [16:06:11]line ОКРУГЛЕНИЕ: -0.41 [16:06:11]line ИТОГО: 500.00 [16:06:11]line Внесено: 500.00 [16:06:11]line СДАЧА: 0.00 [16:06:11]line НСП 1% : 4.43 [16:06:11]line НДС 12% : 53.14 [16:06:11]line Наличными: 500.00 [16:06:11]line Безнал.: 0.00 [16:06:11]line Место: АЗС № 85 "Партнер Нефть" [16:06:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:06:11]line СНО: Общий режим [16:06:11]line Чек 287 21.10.2024 16:06 [16:06:11]line Смена: 194 ФФД: 1.0 [16:06:11]line ЗНМ: 0300000167 [16:06:11]line РНМ: 0000000000156251 [16:06:11]line Версия ККМ: v1.0 [16:06:11]line ФМ: 0000000000963346 [16:06:11]line ФД: 69897 [16:06:11]line ФПД: 188009857551041 [16:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160610&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69897&fm=188009857551041&tin=02508201610067®Number=0000000000156251&sum=50000 [16:06:12]Connected sock=11 [16:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CD 6A 07 01 7D DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 F2 7B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 11 01 00 35 04 06 00 AA FE 74 C6 0A C1 2A 23 E8 8A 19 76 8F 8E [16:06:12]written 0, free lines is 4095 [16:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 53 76 47 00 56 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 11 01 00 F4 03 04 00 96 25 16 67 B6 04 01 00 00 2D 00 76 80 64 5B D5 B5 [16:06:12]CommunicateWithHost err = 0 [16:06:12]CheckOFDResponse [16:06:12]1017 (14) - 77093643461234 [16:06:12]1041 (16) - 0000000000963346 [16:06:12]1040 (4) - 69897 [16:06:12]1012 (4) - 21.10.2024 09:57 [16:06:12]1206 (1) - 0 [16:06:12]OFD Sender: Remove packet 69897 [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00069897 [16:06:12]NVStorageDeleteData [16:06:12]Write to MH i2c: 01 00 00 DD 03 E0 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 F5 0C E8 [16:06:12]RasterBufferAndPrint [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]written 0, free lines is 3327 [16:06:12]MH_Cut [16:06:12]Write to MH i2c: D1 01 00 E4 03 01 B9 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 E4 03 00 B8 [16:06:12]Write to MH i2c: 01 00 00 E5 03 E8 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]OFD Sender: No OFD packet to send [16:06:13]*** Cut start [16:06:13]*** Partial cut [16:06:13]*** CUTSNS_PIN = 1 [16:06:13]*** CUTSNS_PIN = 0 [16:06:13]*** Brake cut motor [16:06:14]Read from MH i2c: 01 [16:06:14]MH_I2C_Read... [16:06:14]*** Stop cut motor [16:06:14]*** Cut end [16:06:14]Read from MH i2c: 01 07 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [16:06:14]process_action close_receipt done [16:06:14]requested_data is exist [16:06:14]produce_requested_data [16:06:14]requested_item fm.sn is exist - process it [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 11 00 00 [16:06:14]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [16:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:06:14]wFMCommunicate OK [16:06:14]requested_item fd.num is exist - process it [16:06:14]SAM_PROTO_GetFieldsCounters [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 00 00 [16:06:14]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 [16:06:14]MH_I2C_Read... [16:06:14]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [16:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetFieldsCounters done [16:06:14]requested_item shift.num is exist - process it [16:06:14]requested_item shift.opened is exist - process it [16:06:14]req_shift_opened [16:06:14]FM_GetShiftState [16:06:14]SAM_PROTO_GetShiftState [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 01 00 [16:06:14]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 94 [16:06:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetShiftState done [16:06:14]FM_GetShiftState done [16:06:14]req_shift_opened done [16:06:14]requested_item shift.open_date is exist - process it [16:06:14]req_shift_open_date [16:06:14]req_shift_open_date done [16:06:14]produce_requested_data done [16:06:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69897,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:06:14]process_action_free close_receipt [16:06:14]json_value_free [16:06:14]json_value_free done [16:06:14]process_json_proto returns [16:06:14]Send response to host [16:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69897,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:06:14]free response buf [16:06:14]execute_script done [16:06:14]execute_script returns [16:06:14]free content buf [16:06:14]Sock 7.Close socket [16:06:14]Sock 7.Thread stoped [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:54]accept exits with 9 [16:08:54]New connection [16:08:54]New thread 3067026788 created [16:08:54]Thread 3067170148 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 9.Parse request [16:08:54]Sock 9.Check first char [16:08:54]Sock 9.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.50.3:8080 [16:08:54]Content-Length: 755 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 755 [16:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885652", "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" : 0.00, "quantity" : 14.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08: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)2885652", "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" : 0.00, "quantity" : 14.450, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=close_receipt [16:08:54]process_action close_receipt [16:08:54]cmd_close_receipt [16:08:54]MH_GetDate [16:08:54]Write to MH i2c: F0 00 00 E9 03 DB [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 E9 03 00 96 7C 16 67 6B 98 1E 66 FA [16:08:54]GetLastDocTimeStamp 1729526770 [16:08:54]current date 1729526934 [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 96 [16:08:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]opened in 1729469703 [16:08:54]opened+sec_in_day 1729556103 [16:08:54]quantity*price = 0 [16:08:54]sum+1 = 1 [16:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 288 21.10.2024 16:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69898 ФПД: 234149071439248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69898&fm=234149071439248&tin=02508201610067®Number=0000000000156251&sum=0 [16:08:55]StoreToDocumentArchive [16:08:55]shift 194 fd 69898 [16:08:55]save to /storage/0194/doc_00069898 [16:08:55]save last doc name /storage/0194/doc_00069898 to /storage/kkm_last_doc_name [16:08:55]save OK [16:08:55]Clear old archive folders... [16:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:55]tlvbuf is 01138570 [16:08:55]SAM_PROTO_ClearQueue [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 09 00 00 [16:08:55]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_ClearQueue done [16:08:55]KKMCreateOFDPacket [16:08:55]OFDProtocolAddRootSTLVToBuf [16:08:55]FM_MakeSignedData [16:08:55]FM_MakeSignedData [16:08:55]SAM_PROTO_SignData [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 01 02 [16:08:55]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=255 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 96 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 11 01 00 35 04 06 00 D4 [16:08:55]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 72 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 96 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 11 01 00 35 04 06 00 D4 00 00 84 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=10 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 05 F5 14 3A 45 90 [16:08:55]Write to MH i2c: E2 0D 00 FA 03 80 0D 02 02 05 00 F5 14 3A 45 90 00 00 99 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 03 02 [16:08:55]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 FB 03 00 28 AD AF CC 3B BF 91 DF 90 00 34 [16:08:55]RAPDU: 28 AD AF CC 3B BF 91 DF 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_SignData done [16:08:55]FM_MakeSignedData done [16:08:55]CreateOFDProtocolMessage [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 11 00 00 [16:08:55]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [16:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:55]wFMCommunicate OK [16:08:55]CreateOFDProtocolMessage done [16:08:55]OFDSenderStorePacket 69898 [16:08:55]StoreOFDPacket docnum=69898 [16:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 C9 07 01 C0 DE 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 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 96 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 11 01 00 35 04 06 00 D4 F5 14 3A 45 90 28 AD AF CC 3B BF 91 DF [16:08:55]CheckFolder [16:08:55]dirname=/storage/ofd_packets [16:08:55]CheckFolder done [16:08:55]ProducePacketName [16:08:55]name=ofd_packets/00069898 [16:08:55]NVStorageSaveData ofd_packets/00069898 [16:08:55]File name is /storage/ofd_packets/00069898 [16:08:55]Write 301 bytes [16:08:55]NVStorageSaveData done [16:08:55]OFDSenderStorePacket done [16:08:55]KKMCreateOFDPacket done [16:08:55]NVStorageSaveData kkm_last_timestamp [16:08:55]File name is /storage/kkm_last_timestamp [16:08:55]Write 4 bytes [16:08:55]NVStorageSaveData done [16:08:55]ExternCall_PrintAddStr [16:08:55]wPrintStart [16:08:55]Write to MH i2c: 01 00 00 FD 03 00 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: 01 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: 01 07 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [16:08:55]RasterBufferAndPrint [16:08:55]line Счет N : (1)2885652 [16:08:55]line ИНН: 02508201610067 [16:08:55]line Контрольно-Кассовый Чек [16:08:55]line ПРОДАЖА [16:08:55]line ТРК (МРК, ГНК) : 42 [16:08:55]line Товар: 2710124130 [16:08:55]line Аи-92-К-5 [16:08:55]line 14.450 * 0.00 [16:08:55]line = 0.00 [16:08:55]line НДС 12% НСП 1% [16:08:55]line > о реализуемом товаре [16:08:55]line ИТОГО: 0.00 [16:08:55]line НСП 1% : 0.00 [16:08:55]line НДС 12% : 0.00 [16:08:55]line Наличными: 0.00 [16:08:55]line Безнал.: 0.00 [16:08:55]line Место: АЗС № 85 "Партнер Нефть" [16:08:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:08:55]line СНО: Общий режим [16:08:55]line Чек 288 21.10.2024 16:08 [16:08:55]line Смена: 194 ФФД: 1.0 [16:08:55]line ЗНМ: 0300000167 [16:08:55]line РНМ: 0000000000156251 [16:08:55]line Версия ККМ: v1.0 [16:08:55]line Талоны: ТК ГПНА Online [16:08:55]line 30100970 [16:08:55]line ФМ: 0000000000963346 [16:08:55]line ФД: 69898 [16:08:55]line ФПД: 234149071439248 [16:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160854&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69898&fm=234149071439248&tin=02508201610067®Number=0000000000156251&sum=0 [16:08:56]OFD Sender: Processing packet 69898 [packets to send 18, broken 17] [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00069898 [16:08:56]OFD Sender: To server: pG, [16:08:56]CommunicateWithHost lk.salyk.kg:30040 [16:08:56]ConnectInit lk.salyk.kg [16:08:56]written 0, free lines is 4095 [16:08:56]Connected sock=10 [16:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 C9 07 01 C0 DE 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 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 96 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 11 01 00 35 04 06 00 D4 F5 14 3A 45 90 28 AD AF CC 3B BF 91 DF [16:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 EF 47 00 5D 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 11 01 00 F4 03 04 00 3A 26 16 67 B6 04 01 00 00 FB 8A 75 96 67 67 FA 11 [16:08:56]CommunicateWithHost err = 0 [16:08:56]CheckOFDResponse [16:08:56]1017 (14) - 77093643461234 [16:08:56]1041 (16) - 0000000000963346 [16:08:56]1040 (4) - 69898 [16:08:56]1012 (4) - 21.10.2024 10:00 [16:08:56]1206 (1) - 0 [16:08:56]OFD Sender: Remove packet 69898 [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00069898 [16:08:56]NVStorageDeleteData [16:08:56]Write to MH i2c: 01 00 00 27 04 2B [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 0B 0D 4A [16:08:56]RasterBufferAndPrint [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]written 0, free lines is 3345 [16:08:56]MH_Cut [16:08:56]Write to MH i2c: D1 01 00 2E 04 01 04 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 2E 04 00 03 [16:08:56]Write to MH i2c: 01 00 00 2F 04 33 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]OFD Sender: No OFD packet to send [16:08:57]*** Cut start [16:08:57]*** Partial cut [16:08:57]*** CUTSNS_PIN = 1 [16:08:57]*** CUTSNS_PIN = 0 [16:08:57]*** Brake cut motor [16:08:57]Read from MH i2c: 01 [16:08:57]MH_I2C_Read... [16:08:57]*** Stop cut motor [16:08:57]*** Cut end [16:08:57]Read from MH i2c: 01 07 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 FF 0F 48 [16:08:57]process_action close_receipt done [16:08:57]requested_data is exist [16:08:57]produce_requested_data [16:08:57]requested_item fm.sn is exist - process it [16:08:57]wFMCommunicate request_size=4 [16:08:57]MH_SAM_APDU [16:08:57]CAPDU: 80 11 00 00 [16:08:57]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:57]Read from MH i2c: E2 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 17 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 17 00 30 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [16:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:57]wFMCommunicate OK [16:08:57]requested_item fd.num is exist - process it [16:08:57]SAM_PROTO_GetFieldsCounters [16:08:57]wFMCommunicate request_size=4 [16:08:57]MH_SAM_APDU [16:08:57]CAPDU: 80 13 00 00 [16:08:57]Write to MH i2c: E2 08 00 31 04 80 13 00 00 00 00 00 00 B1 [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:57]Read from MH i2c: E2 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 62 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 62 00 31 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [16:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:57]wFMCommunicate OK [16:08:57]SAM_PROTO_GetFieldsCounters done [16:08:57]requested_item shift.num is exist - process it [16:08:57]requested_item shift.opened is exist - process it [16:08:57]req_shift_opened [16:08:57]FM_GetShiftState [16:08:57]SAM_PROTO_GetShiftState [16:08:57]wFMCommunicate request_size=4 [16:08:57]MH_SAM_APDU [16:08:57]CAPDU: 80 13 01 00 [16:08:57]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DF [16:08:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]req_shift_opened done [16:08:58]requested_item shift.open_date is exist - process it [16:08:58]req_shift_open_date [16:08:58]req_shift_open_date done [16:08:58]produce_requested_data done [16:08:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69898,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:08:58]process_action_free close_receipt [16:08:58]json_value_free [16:08:58]json_value_free done [16:08:58]process_json_proto returns [16:08:58]Send response to host [16:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69898,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:08:58]free response buf [16:08:58]execute_script done [16:08:58]execute_script returns [16:08:58]free content buf [16:08:58]Sock 9.Close socket [16:08:58]Sock 9.Thread stoped [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]accept exits with 7 [16:09:36]New connection [16:09:36]New thread 3067170148 created [16:09:36]Thread 3067026788 joined [16:09:36]Waiting for new connection... [16:09:36] Sock 7.Parse request [16:09:36]Sock 7.Check first char [16:09:36]Sock 7.First char is OK [16:09:36]request: POST /json_proto HTTP/1.0 [16:09:36]Method: POST [16:09:36]URL: /json_proto [16:09:36]Method is POST - this is cgi request [16:09:36]url: /json_proto [16:09:36]query_string will be loaded in cgi processing [16:09:36]execute_cgi json_proto POST (null) [16:09:36]execute_cgi path=json_proto method=POST [16:09:36]POST find Content-Length [16:09:36]Host: 172.17.50.3:8080 [16:09:36]Content-Length: 683 [16:09:36]Content-Type: application/json [16:09:36] [16:09:36]POST finish read [16:09:36]Found Content-Length = 683 [16:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 61.290, "sum" : 4100.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4100.00, "payments": [ { "type": 0, "sum" : 4100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:36]execute_script... [16:09: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)2885651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 61.290, "sum" : 4100.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4100.00, "payments": [ { "type": 0, "sum" : 4100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:36]POST & json_proto [16:09:36]process_json_proto [16:09:36]json parsed OK: [16:09:36]protocol is kg_v1.0 [16:09:36]action value=close_receipt [16:09:36]process_action close_receipt [16:09:36]cmd_close_receipt [16:09:36]MH_GetDate [16:09:36]Write to MH i2c: F0 00 00 33 04 26 [16:09:36]Write i2c OK [16:09:36]MH_I2C_Read... [16:09:36]Read from MH i2c: F0 [16:09:36]MH_I2C_Read... [16:09:36]Read from MH i2c: F0 09 00 [16:09:36]MH_I2C_Read... [16:09:36]Read from MH i2c: F0 09 00 33 04 00 C0 7C 16 67 6B 98 1E 66 6F [16:09:36]GetLastDocTimeStamp 1729526934 [16:09:36]current date 1729526976 [16:09:36]FM_GetShiftState [16:09:36]SAM_PROTO_GetShiftState [16:09:36]wFMCommunicate request_size=4 [16:09:36]MH_SAM_APDU [16:09:36]CAPDU: 80 13 01 00 [16:09:36]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [16:09:36]Write i2c OK [16:09:36]MH_I2C_Read... [16:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:36]Read from MH i2c: E2 [16:09:36]MH_I2C_Read... [16:09:36]Read from MH i2c: E2 0E 00 [16:09:36]MH_I2C_Read... [16:09:36]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E1 [16:09:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:09:36]wFMCommunicate OK [16:09:36]SAM_PROTO_GetShiftState done [16:09:36]FM_GetShiftState done [16:09:36]opened in 1729469703 [16:09:36]opened+sec_in_day 1729556103 [16:09:36]quantity*price = 410030 [16:09:36]sum+1 = 410031 [16:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 4100.00 Внесено: 6000.00 СДАЧА: 1900.00 НСП 1% : 36.29 НДС 12% : 435.43 Наличными: 4100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 289 21.10.2024 16:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69899 ФПД: 145492220157326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69899&fm=145492220157326&tin=02508201610067®Number=0000000000156251&sum=410000 [16:09:37]StoreToDocumentArchive [16:09:37]shift 194 fd 69899 [16:09:37]save to /storage/0194/doc_00069899 [16:09:37]save last doc name /storage/0194/doc_00069899 to /storage/kkm_last_doc_name [16:09:37]save OK [16:09:37]Clear old archive folders... [16:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:37]tlvbuf is 011383C0 [16:09:37]SAM_PROTO_ClearQueue [16:09:37]wFMCommunicate request_size=4 [16:09:37]MH_SAM_APDU [16:09:37]CAPDU: 80 09 00 00 [16:09:37]Write to MH i2c: E2 08 00 41 04 80 09 00 00 00 00 00 00 B7 [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [16:09:37]RAPDU: 90 00 [16:09:37]wFMCommunicate OK [16:09:37]SAM_PROTO_ClearQueue done [16:09:37]KKMCreateOFDPacket [16:09:37]OFDProtocolAddRootSTLVToBuf [16:09:37]FM_MakeSignedData [16:09:37]FM_MakeSignedData [16:09:37]SAM_PROTO_SignData [16:09:37]wFMCommunicate request_size=4 [16:09:37]MH_SAM_APDU [16:09:37]CAPDU: 80 0D 01 02 [16:09:37]Write to MH i2c: E2 08 00 42 04 80 0D 01 02 00 00 00 00 BF [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [16:09:37]RAPDU: 90 00 [16:09:37]wFMCommunicate OK [16:09:37]wFMCommunicate request_size=255 [16:09:37]MH_SAM_APDU [16:09:37]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 6A EF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AE 41 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 41 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 AA 00 00 00 00 07 04 06 00 90 41 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 11 01 00 35 04 06 00 84 [16:09:37]Write to MH i2c: E2 02 01 43 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 6A EF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AE 41 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 41 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 AA 00 00 00 00 07 04 06 00 90 41 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 11 01 00 35 04 06 00 84 00 00 35 [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [16:09:37]RAPDU: 90 00 [16:09:37]wFMCommunicate OK [16:09:37]wFMCommunicate request_size=10 [16:09:37]MH_SAM_APDU [16:09:37]CAPDU: 80 0D 02 02 05 53 0C 19 9D 8E [16:09:37]Write to MH i2c: E2 0D 00 44 04 80 0D 02 02 05 00 53 0C 19 9D 8E 00 00 6F [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [16:09:37]RAPDU: 90 00 [16:09:37]wFMCommunicate OK [16:09:37]wFMCommunicate request_size=4 [16:09:37]MH_SAM_APDU [16:09:37]CAPDU: 80 0D 03 02 [16:09:37]Write to MH i2c: E2 08 00 45 04 80 0D 03 02 00 00 00 00 C4 [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 0B 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 0B 00 45 04 00 8C 23 DE 58 C8 05 70 E6 90 00 CD [16:09:37]RAPDU: 8C 23 DE 58 C8 05 70 E6 90 00 [16:09:37]wFMCommunicate OK [16:09:37]SAM_PROTO_SignData done [16:09:37]FM_MakeSignedData done [16:09:37]CreateOFDProtocolMessage [16:09:37]wFMCommunicate request_size=4 [16:09:37]MH_SAM_APDU [16:09:37]CAPDU: 80 11 00 00 [16:09:37]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:37]Read from MH i2c: E2 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 17 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [16:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:09:37]wFMCommunicate OK [16:09:37]CreateOFDProtocolMessage done [16:09:37]OFDSenderStorePacket 69899 [16:09:37]StoreOFDPacket docnum=69899 [16:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 57 07 01 39 D0 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 6A EF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AE 41 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 41 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 AA 00 00 00 00 07 04 06 00 90 41 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 11 01 00 35 04 06 00 84 53 0C 19 9D 8E 8C 23 DE 58 C8 05 70 E6 [16:09:37]CheckFolder [16:09:37]dirname=/storage/ofd_packets [16:09:37]CheckFolder done [16:09:37]ProducePacketName [16:09:37]name=ofd_packets/00069899 [16:09:37]NVStorageSaveData ofd_packets/00069899 [16:09:37]File name is /storage/ofd_packets/00069899 [16:09:37]Write 301 bytes [16:09:37]NVStorageSaveData done [16:09:37]OFDSenderStorePacket done [16:09:37]KKMCreateOFDPacket done [16:09:37]NVStorageSaveData kkm_last_timestamp [16:09:37]File name is /storage/kkm_last_timestamp [16:09:37]Write 4 bytes [16:09:37]OFD Sender: Processing packet 69899 [packets to send 18, broken 17] [16:09:37]ProducePacketName [16:09:37]name=ofd_packets/00069899 [16:09:37]OFD Sender: To server: pG, [16:09:37]CommunicateWithHost lk.salyk.kg:30040 [16:09:37]ConnectInit lk.salyk.kg [16:09:37]NVStorageSaveData done [16:09:37]ExternCall_PrintAddStr [16:09:37]wPrintStart [16:09:37]Write to MH i2c: 01 00 00 47 04 4B [16:09:37]Write i2c OK [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: 01 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: 01 07 00 [16:09:37]MH_I2C_Read... [16:09:37]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [16:09:37]RasterBufferAndPrint [16:09:37]line Счет N : (1)2885651 [16:09:37]line ИНН: 02508201610067 [16:09:37]line Контрольно-Кассовый Чек [16:09:37]line ПРОДАЖА [16:09:37]line ТРК (МРК, ГНК) : 12 [16:09:37]line Товар: 2710124130 [16:09:37]line Аи-92-К-5 [16:09:37]line 61.290 * 66.90 [16:09:37]line = 4100.30 [16:09:37]line НДС 12% НСП 1% [16:09:37]line > о реализуемом товаре [16:09:37]line ОКРУГЛЕНИЕ: -0.30 [16:09:37]line ИТОГО: 4100.00 [16:09:37]line Внесено: 6000.00 [16:09:37]line СДАЧА: 1900.00 [16:09:37]line НСП 1% : 36.29 [16:09:37]line НДС 12% : 435.43 [16:09:37]line Наличными: 4100.00 [16:09:37]line Безнал.: 0.00 [16:09:37]line Место: АЗС № 85 "Партнер Нефть" [16:09:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:09:37]line СНО: Общий режим [16:09:37]line Чек 289 21.10.2024 16:09 [16:09:37]line Смена: 194 ФФД: 1.0 [16:09:37]line ЗНМ: 0300000167 [16:09:38]line РНМ: 0000000000156251 [16:09:38]line Версия ККМ: v1.0 [16:09:38]line ФМ: 0000000000963346 [16:09:38]line ФД: 69899 [16:09:38]line ФПД: 145492220157326 [16:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69899&fm=145492220157326&tin=02508201610067®Number=0000000000156251&sum=410000 [16:09:38]Connected sock=11 [16:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 57 07 01 39 D0 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 6A EF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AE 41 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 41 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 AA 00 00 00 00 07 04 06 00 90 41 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 C0 7C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 11 01 00 35 04 06 00 84 53 0C 19 9D 8E 8C 23 DE 58 C8 05 70 E6 [16:09:38]written 0, free lines is 4095 [16:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 76 96 47 00 EB 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 39 36 33 33 34 36 10 04 04 00 0B 11 01 00 F4 03 04 00 63 26 16 67 B6 04 01 00 00 37 0B AA BA 94 17 E1 CF [16:09:38]CommunicateWithHost err = 0 [16:09:38]CheckOFDResponse [16:09:38]1017 (14) - 77093643461234 [16:09:38]1041 (16) - 0000000000963346 [16:09:38]1040 (4) - 69899 [16:09:38]1012 (4) - 21.10.2024 10:01 [16:09:38]1206 (1) - 0 [16:09:38]OFD Sender: Remove packet 69899 [16:09:38]ProducePacketName [16:09:38]name=ofd_packets/00069899 [16:09:38]NVStorageDeleteData [16:09:38]Write to MH i2c: 01 00 00 72 04 76 [16:09:38]Write i2c OK [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: 01 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: 01 07 00 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 F3 0C 7C [16:09:38]RasterBufferAndPrint [16:09:38]line [16:09:38]line [16:09:38]line [16:09:38]line [16:09:38]line [16:09:38]written 0, free lines is 3321 [16:09:38]MH_Cut [16:09:38]Write to MH i2c: D1 01 00 79 04 01 4F [16:09:38]Write i2c OK [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: D1 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: D1 01 00 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: D1 01 00 79 04 00 4E [16:09:38]Write to MH i2c: 01 00 00 7A 04 7E [16:09:38]Write i2c OK [16:09:38]MH_I2C_Read... [16:09:38]OFD Sender: No OFD packet to send [16:09:39]*** Cut start [16:09:39]*** Partial cut [16:09:39]*** CUTSNS_PIN = 1 [16:09:39]*** CUTSNS_PIN = 0 [16:09:39]*** Brake cut motor [16:09:39]Read from MH i2c: 01 [16:09:39]MH_I2C_Read... [16:09:39]*** Stop cut motor [16:09:39]*** Cut end [16:09:39]Read from MH i2c: 01 07 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [16:09:39]process_action close_receipt done [16:09:39]requested_data is exist [16:09:39]produce_requested_data [16:09:39]requested_item fm.sn is exist - process it [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 11 00 00 [16:09:39]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 17 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [16:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:09:39]wFMCommunicate OK [16:09:39]requested_item fd.num is exist - process it [16:09:39]SAM_PROTO_GetFieldsCounters [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 13 00 00 [16:09:39]Write to MH i2c: E2 08 00 7C 04 80 13 00 00 00 00 00 00 FC [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:40]Read from MH i2c: E2 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: E2 62 00 [16:09:40]MH_I2C_Read... [16:09:40]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [16:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:40]wFMCommunicate OK [16:09:40]SAM_PROTO_GetFieldsCounters done [16:09:40]requested_item shift.num is exist - process it [16:09:40]requested_item shift.opened is exist - process it [16:09:40]req_shift_opened [16:09:40]FM_GetShiftState [16:09:40]SAM_PROTO_GetShiftState [16:09:40]wFMCommunicate request_size=4 [16:09:40]MH_SAM_APDU [16:09:40]CAPDU: 80 13 01 00 [16:09:40]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [16:09:40]Write i2c OK [16:09:40]MH_I2C_Read... [16:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:40]Read from MH i2c: E2 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: E2 0E 00 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2A [16:09:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:09:40]wFMCommunicate OK [16:09:40]SAM_PROTO_GetShiftState done [16:09:40]FM_GetShiftState done [16:09:40]req_shift_opened done [16:09:40]requested_item shift.open_date is exist - process it [16:09:40]req_shift_open_date [16:09:40]req_shift_open_date done [16:09:40]produce_requested_data done [16:09:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69899,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:09:40]process_action_free close_receipt [16:09:40]json_value_free [16:09:40]json_value_free done [16:09:40]process_json_proto returns [16:09:40]Send response to host [16:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69899,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:09:40]free response buf [16:09:40]execute_script done [16:09:40]execute_script returns [16:09:40]free content buf [16:09:40]Sock 7.Close socket [16:09:40]Sock 7.Thread stoped [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:54]accept exits with 9 [16:17:54]New connection [16:17:54]New thread 3067026788 created [16:17:54]Thread 3067170148 joined [16:17:54]Waiting for new connection... [16:17:54] Sock 9.Parse request [16:17:54]Sock 9.Check first char [16:17:54]Sock 9.First char is OK [16:17:54]request: POST /json_proto HTTP/1.0 [16:17:54]Method: POST [16:17:54]URL: /json_proto [16:17:54]Method is POST - this is cgi request [16:17:54]url: /json_proto [16:17:54]query_string will be loaded in cgi processing [16:17:54]execute_cgi json_proto POST (null) [16:17:54]execute_cgi path=json_proto method=POST [16:17:54]POST find Content-Length [16:17:54]Host: 172.17.50.3:8080 [16:17:54]Content-Length: 689 [16:17:54]Content-Type: application/json [16:17:54] [16:17:54]POST finish read [16:17:54]Found Content-Length = 689 [16:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [16:17:54]execute_script... [16:17: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)2885653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [16:17:54]POST & json_proto [16:17:54]process_json_proto [16:17:54]json parsed OK: [16:17:54]protocol is kg_v1.0 [16:17:54]action value=close_receipt [16:17:54]process_action close_receipt [16:17:54]cmd_close_receipt [16:17:54]MH_GetDate [16:17:54]Write to MH i2c: F0 00 00 7E 04 71 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: F0 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: F0 09 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: F0 09 00 7E 04 00 B3 7E 16 67 6B 98 1E 66 AF [16:17:54]GetLastDocTimeStamp 1729526976 [16:17:54]current date 1729527475 [16:17:54]FM_GetShiftState [16:17:54]SAM_PROTO_GetShiftState [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 13 01 00 [16:17:54]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 0E 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2C [16:17:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:17:54]wFMCommunicate OK [16:17:54]SAM_PROTO_GetShiftState done [16:17:54]FM_GetShiftState done [16:17:54]opened in 1729469703 [16:17:54]opened+sec_in_day 1729556103 [16:17:54]quantity*price = 120046 [16:17:54]sum+1 = 120047 [16:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 290 21.10.2024 16:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69900 ФПД: 29968125523433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69900&fm=29968125523433&tin=02508201610067®Number=0000000000156251&sum=120000 [16:17:55]StoreToDocumentArchive [16:17:55]shift 194 fd 69900 [16:17:55]save to /storage/0194/doc_00069900 [16:17:55]save last doc name /storage/0194/doc_00069900 to /storage/kkm_last_doc_name [16:17:55]save OK [16:17:55]Clear old archive folders... [16:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:17:55]tlvbuf is 011042D0 [16:17:55]SAM_PROTO_ClearQueue [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 09 00 00 [16:17:55]Write to MH i2c: E2 08 00 8C 04 80 09 00 00 00 00 00 00 02 [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [16:17:55]RAPDU: 90 00 [16:17:55]wFMCommunicate OK [16:17:55]SAM_PROTO_ClearQueue done [16:17:55]KKMCreateOFDPacket [16:17:55]OFDProtocolAddRootSTLVToBuf [16:17:55]FM_MakeSignedData [16:17:55]FM_MakeSignedData [16:17:55]SAM_PROTO_SignData [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 0D 01 02 [16:17:55]Write to MH i2c: E2 08 00 8D 04 80 0D 01 02 00 00 00 00 0A [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [16:17:55]RAPDU: 90 00 [16:17:55]wFMCommunicate OK [16:17:55]wFMCommunicate request_size=255 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 22 01 00 00 F4 03 04 00 B3 7E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 11 01 [16:17:55]Write to MH i2c: E2 02 01 8E 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 22 01 00 00 F4 03 04 00 B3 7E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 11 01 00 00 7F [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [16:17:55]RAPDU: 90 00 [16:17:55]wFMCommunicate OK [16:17:55]wFMCommunicate request_size=16 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1B 41 7F 79 F5 E9 [16:17:55]Write to MH i2c: E2 13 00 8F 04 80 0D 02 02 0B 00 00 35 04 06 00 1B 41 7F 79 F5 E9 00 00 94 [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [16:17:55]RAPDU: 90 00 [16:17:55]wFMCommunicate OK [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 0D 03 02 [16:17:55]Write to MH i2c: E2 08 00 90 04 80 0D 03 02 00 00 00 00 0F [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 0B 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 0B 00 90 04 00 81 7B E1 F7 67 CB 1A FB 90 00 2B [16:17:55]RAPDU: 81 7B E1 F7 67 CB 1A FB 90 00 [16:17:55]wFMCommunicate OK [16:17:55]SAM_PROTO_SignData done [16:17:55]FM_MakeSignedData done [16:17:55]CreateOFDProtocolMessage [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 11 00 00 [16:17:55]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 17 00 [16:17:55]MH_I2C_Read... [16:17:56]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [16:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:17:56]wFMCommunicate OK [16:17:56]CreateOFDProtocolMessage done [16:17:56]OFDSenderStorePacket 69900 [16:17:56]StoreOFDPacket docnum=69900 [16:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 DC 8F 0D 01 72 8F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 22 01 00 00 F4 03 04 00 B3 7E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 11 01 00 35 04 06 00 1B 41 7F 79 F5 E9 81 7B E1 F7 67 CB 1A FB [16:17:56]CheckFolder [16:17:56]dirname=/storage/ofd_packets [16:17:56]CheckFolder done [16:17:56]ProducePacketName [16:17:56]name=ofd_packets/00069900 [16:17:56]NVStorageSaveData ofd_packets/00069900 [16:17:56]File name is /storage/ofd_packets/00069900 [16:17:56]Write 307 bytes [16:17:56]NVStorageSaveData done [16:17:56]OFDSenderStorePacket done [16:17:56]KKMCreateOFDPacket done [16:17:56]NVStorageSaveData kkm_last_timestamp [16:17:56]File name is /storage/kkm_last_timestamp [16:17:56]Write 4 bytes [16:17:56]NVStorageSaveData done [16:17:56]ExternCall_PrintAddStr [16:17:56]wPrintStart [16:17:56]Write to MH i2c: 01 00 00 92 04 96 [16:17:56]Write i2c OK [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 07 00 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 FF 0F AB [16:17:56]RasterBufferAndPrint [16:17:56]line Счет N : (1)2885653 [16:17:56]line ИНН: 02508201610067 [16:17:56]line Контрольно-Кассовый Чек [16:17:56]line ПРОДАЖА [16:17:56]line ТРК (МРК, ГНК) : 31 [16:17:56]line Товар: 2710194240 [16:17:56]line D-ENERGY Дт-К-2 [16:17:56]line 15.550 * 77.20 [16:17:56]line = 1200.46 [16:17:56]line НДС 12% НСП 1% [16:17:56]line > о реализуемом товаре [16:17:56]line ОКРУГЛЕНИЕ: -0.46 [16:17:56]line ИТОГО: 1200.00 [16:17:56]line Внесено: 1200.00 [16:17:56]line СДАЧА: 0.00 [16:17:56]line НСП 1% : 10.62 [16:17:56]line НДС 12% : 127.48 [16:17:56]line Наличными: 1200.00 [16:17:56]line Безнал.: 0.00 [16:17:56]line Место: АЗС № 85 "Партнер Нефть" [16:17:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:17:56]line СНО: Общий режим [16:17:56]line Чек 290 21.10.2024 16:17 [16:17:56]line Смена: 194 ФФД: 1.0 [16:17:56]line ЗНМ: 0300000167 [16:17:56]line РНМ: 0000000000156251 [16:17:56]line Версия ККМ: v1.0 [16:17:56]line ФМ: 0000000000963346 [16:17:56]line ФД: 69900 [16:17:56]line ФПД: 29968125523433 [16:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69900&fm=29968125523433&tin=02508201610067®Number=0000000000156251&sum=120000 [16:17:56]OFD Sender: Processing packet 69900 [packets to send 18, broken 17] [16:17:56]ProducePacketName [16:17:56]name=ofd_packets/00069900 [16:17:56]OFD Sender: To server: pG, [16:17:56]CommunicateWithHost lk.salyk.kg:30040 [16:17:56]ConnectInit lk.salyk.kg [16:17:56]written 0, free lines is 4095 [16:17:56]Connected sock=10 [16:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 DC 8F 0D 01 72 8F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 22 01 00 00 F4 03 04 00 B3 7E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 11 01 00 35 04 06 00 1B 41 7F 79 F5 E9 81 7B E1 F7 67 CB 1A FB [16:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A B5 47 00 F1 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 11 01 00 F4 03 04 00 56 28 16 67 B6 04 01 00 00 8C 81 73 F3 B5 73 8A EB [16:17:56]CommunicateWithHost err = 0 [16:17:56]CheckOFDResponse [16:17:56]1017 (14) - 77093643461234 [16:17:56]1041 (16) - 0000000000963346 [16:17:56]1040 (4) - 69900 [16:17:56]1012 (4) - 21.10.2024 10:09 [16:17:56]1206 (1) - 0 [16:17:56]OFD Sender: Remove packet 69900 [16:17:56]ProducePacketName [16:17:56]name=ofd_packets/00069900 [16:17:56]NVStorageDeleteData [16:17:56]Write to MH i2c: 01 00 00 BD 04 C1 [16:17:56]Write i2c OK [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 07 00 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 0A 0D DF [16:17:56]RasterBufferAndPrint [16:17:56]line [16:17:56]line [16:17:56]line [16:17:56]line [16:17:56]line [16:17:56]written 0, free lines is 3347 [16:17:56]MH_Cut [16:17:56]Write to MH i2c: D1 01 00 C4 04 01 9A [16:17:56]Write i2c OK [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: D1 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: D1 01 00 [16:17:56]MH_I2C_Read... [16:17:56]Read from MH i2c: D1 01 00 C4 04 00 99 [16:17:56]Write to MH i2c: 01 00 00 C5 04 C9 [16:17:56]Write i2c OK [16:17:56]MH_I2C_Read... [16:17:57]OFD Sender: No OFD packet to send [16:17:57]*** Cut start [16:17:57]*** Partial cut [16:17:57]*** CUTSNS_PIN = 1 [16:17:57]*** CUTSNS_PIN = 0 [16:17:57]*** Brake cut motor [16:17:58]Read from MH i2c: 01 [16:17:58]MH_I2C_Read... [16:17:58]*** Stop cut motor [16:17:58]*** Cut end [16:17:58]Read from MH i2c: 01 07 00 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [16:17:58]process_action close_receipt done [16:17:58]requested_data is exist [16:17:58]produce_requested_data [16:17:58]requested_item fm.sn is exist - process it [16:17:58]wFMCommunicate request_size=4 [16:17:58]MH_SAM_APDU [16:17:58]CAPDU: 80 11 00 00 [16:17:58]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [16:17:58]Write i2c OK [16:17:58]MH_I2C_Read... [16:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:58]Read from MH i2c: E2 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 17 00 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [16:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:17:58]wFMCommunicate OK [16:17:58]requested_item fd.num is exist - process it [16:17:58]SAM_PROTO_GetFieldsCounters [16:17:58]wFMCommunicate request_size=4 [16:17:58]MH_SAM_APDU [16:17:58]CAPDU: 80 13 00 00 [16:17:58]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [16:17:58]Write i2c OK [16:17:58]MH_I2C_Read... [16:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:58]Read from MH i2c: E2 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 62 00 [16:17:58]MH_I2C_Read... [16:17:58]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:58]wFMCommunicate OK [16:17:58]SAM_PROTO_GetFieldsCounters done [16:17:58]requested_item shift.num is exist - process it [16:17:58]requested_item shift.opened is exist - process it [16:17:58]req_shift_opened [16:17:58]FM_GetShiftState [16:17:58]SAM_PROTO_GetShiftState [16:17:58]wFMCommunicate request_size=4 [16:17:58]MH_SAM_APDU [16:17:58]CAPDU: 80 13 01 00 [16:17:58]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [16:17:58]Write i2c OK [16:17:58]MH_I2C_Read... [16:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:58]Read from MH i2c: E2 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 0E 00 [16:17:58]MH_I2C_Read... [16:17:58]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 75 [16:17:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:17:58]wFMCommunicate OK [16:17:58]SAM_PROTO_GetShiftState done [16:17:58]FM_GetShiftState done [16:17:58]req_shift_opened done [16:17:58]requested_item shift.open_date is exist - process it [16:17:58]req_shift_open_date [16:17:58]req_shift_open_date done [16:17:58]produce_requested_data done [16:17:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69900,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:17:58]process_action_free close_receipt [16:17:58]json_value_free [16:17:58]json_value_free done [16:17:58]process_json_proto returns [16:17:58]Send response to host [16:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69900,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:17:58]free response buf [16:17:58]execute_script done [16:17:58]execute_script returns [16:17:58]free content buf [16:17:58]Sock 9.Close socket [16:17:58]Sock 9.Thread stoped [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:33]accept exits with 7 [16:19:33]New connection [16:19:33]New thread 3067170148 created [16:19:33]Thread 3067026788 joined [16:19:33]Waiting for new connection... [16:19:33] Sock 7.Parse request [16:19:33]Sock 7.Check first char [16:19:33]Sock 7.First char is OK [16:19:33]request: POST /json_proto HTTP/1.0 [16:19:33]Method: POST [16:19:33]URL: /json_proto [16:19:33]Method is POST - this is cgi request [16:19:33]url: /json_proto [16:19:33]query_string will be loaded in cgi processing [16:19:33]execute_cgi json_proto POST (null) [16:19:33]execute_cgi path=json_proto method=POST [16:19:33]POST find Content-Length [16:19:33]Host: 172.17.50.3:8080 [16:19:33]Content-Length: 678 [16:19:33]Content-Type: application/json [16:19:33] [16:19:33]POST finish read [16:19:33]Found Content-Length = 678 [16:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [16:19:33]execute_script... [16:19:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [16:19:33]POST & json_proto [16:19:33]process_json_proto [16:19:33]json parsed OK: [16:19:33]protocol is kg_v1.0 [16:19:33]action value=close_receipt [16:19:33]process_action close_receipt [16:19:33]cmd_close_receipt [16:19:33]MH_GetDate [16:19:33]Write to MH i2c: F0 00 00 C9 04 BC [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: F0 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: F0 09 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: F0 09 00 C9 04 00 15 7F 16 67 6B 98 1E 66 5D [16:19:33]GetLastDocTimeStamp 1729527475 [16:19:33]current date 1729527573 [16:19:33]FM_GetShiftState [16:19:33]SAM_PROTO_GetShiftState [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 13 01 00 [16:19:33]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 77 [16:19:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_GetShiftState done [16:19:33]FM_GetShiftState done [16:19:33]opened in 1729469703 [16:19:33]opened+sec_in_day 1729556103 [16:19:33]quantity*price = 30051 [16:19:33]sum+1 = 30052 [16:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 291 21.10.2024 16:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69901 ФПД: 68744877293488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69901&fm=68744877293488&tin=02508201610067®Number=0000000000156251&sum=30000 [16:19:34]StoreToDocumentArchive [16:19:34]shift 194 fd 69901 [16:19:34]save to /storage/0194/doc_00069901 [16:19:34]save last doc name /storage/0194/doc_00069901 to /storage/kkm_last_doc_name [16:19:34]save OK [16:19:34]Clear old archive folders... [16:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:34]tlvbuf is 0110E450 [16:19:34]SAM_PROTO_ClearQueue [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 09 00 00 [16:19:34]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_ClearQueue done [16:19:34]KKMCreateOFDPacket [16:19:34]OFDProtocolAddRootSTLVToBuf [16:19:34]FM_MakeSignedData [16:19:34]FM_MakeSignedData [16:19:34]SAM_PROTO_SignData [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 01 02 [16:19:34]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=255 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 23 01 00 00 F4 03 04 00 15 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 11 01 00 35 04 06 00 3E [16:19:34]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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 23 01 00 00 F4 03 04 00 15 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 11 01 00 35 04 06 00 3E 00 00 5A [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=10 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 02 02 05 85 E9 FD BF B0 [16:19:34]Write to MH i2c: E2 0D 00 DA 04 80 0D 02 02 05 00 85 E9 FD BF B0 00 00 3C [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 03 02 [16:19:34]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0B 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0B 00 DB 04 00 FB 59 E9 69 27 D3 E8 33 90 00 16 [16:19:34]RAPDU: FB 59 E9 69 27 D3 E8 33 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_SignData done [16:19:34]FM_MakeSignedData done [16:19:34]CreateOFDProtocolMessage [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 11 00 00 [16:19:34]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [16:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:19:34]wFMCommunicate OK [16:19:34]CreateOFDProtocolMessage done [16:19:34]OFDSenderStorePacket 69901 [16:19:34]StoreOFDPacket docnum=69901 [16:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B 65 07 01 B4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 23 01 00 00 F4 03 04 00 15 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 11 01 00 35 04 06 00 3E 85 E9 FD BF B0 FB 59 E9 69 27 D3 E8 33 [16:19:34]CheckFolder [16:19:34]dirname=/storage/ofd_packets [16:19:34]CheckFolder done [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00069901 [16:19:34]NVStorageSaveData ofd_packets/00069901 [16:19:34]File name is /storage/ofd_packets/00069901 [16:19:34]Write 301 bytes [16:19:34]NVStorageSaveData done [16:19:34]OFDSenderStorePacket done [16:19:34]KKMCreateOFDPacket done [16:19:34]NVStorageSaveData kkm_last_timestamp [16:19:34]File name is /storage/kkm_last_timestamp [16:19:34]Write 4 bytes [16:19:34]NVStorageSaveData done [16:19:34]OFD Sender: Processing packet 69901 [packets to send 18, broken 17] [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00069901 [16:19:34]OFD Sender: To server: pG, [16:19:34]CommunicateWithHost lk.salyk.kg:30040 [16:19:34]ConnectInit lk.salyk.kg [16:19:34]ExternCall_PrintAddStr [16:19:34]wPrintStart [16:19:34]Write to MH i2c: 01 00 00 DD 04 E1 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [16:19:34]RasterBufferAndPrint [16:19:34]line Счет N : (1)2885654 [16:19:34]line ИНН: 02508201610067 [16:19:34]line Контрольно-Кассовый Чек [16:19:34]line ПРОДАЖА [16:19:34]line ТРК (МРК, ГНК) : 13 [16:19:34]line Товар: 2710124500 [16:19:34]line Аи-95-К-5 [16:19:34]line 4.050 * 74.20 [16:19:34]line = 300.51 [16:19:34]line НДС 12% НСП 1% [16:19:34]line > о реализуемом товаре [16:19:34]line ОКРУГЛЕНИЕ: -0.51 [16:19:34]line ИТОГО: 300.00 [16:19:34]line Внесено: 300.00 [16:19:34]line СДАЧА: 0.00 [16:19:34]line НСП 1% : 2.66 [16:19:34]line НДС 12% : 31.91 [16:19:34]line Наличными: 300.00 [16:19:34]line Безнал.: 0.00 [16:19:34]line Место: АЗС № 85 "Партнер Нефть" [16:19:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:19:34]line СНО: Общий режим [16:19:34]line Чек 291 21.10.2024 16:19 [16:19:34]line Смена: 194 ФФД: 1.0 [16:19:34]line ЗНМ: 0300000167 [16:19:34]line РНМ: 0000000000156251 [16:19:34]line Версия ККМ: v1.0 [16:19:34]line ФМ: 0000000000963346 [16:19:34]line ФД: 69901 [16:19:34]line ФПД: 68744877293488 [16:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69901&fm=68744877293488&tin=02508201610067®Number=0000000000156251&sum=30000 [16:19:35]Connected sock=11 [16:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B 65 07 01 B4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 23 01 00 00 F4 03 04 00 15 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 11 01 00 35 04 06 00 3E 85 E9 FD BF B0 FB 59 E9 69 27 D3 E8 33 [16:19:35]written 0, free lines is 4095 [16:19:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BD 51 47 00 67 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 11 01 00 F4 03 04 00 B8 28 16 67 B6 04 01 00 00 D8 CF F4 C5 E7 00 75 60 [16:19:35]CommunicateWithHost err = 0 [16:19:35]CheckOFDResponse [16:19:35]1017 (14) - 77093643461234 [16:19:35]1041 (16) - 0000000000963346 [16:19:35]1040 (4) - 69901 [16:19:35]1012 (4) - 21.10.2024 10:11 [16:19:35]1206 (1) - 0 [16:19:35]OFD Sender: Remove packet 69901 [16:19:35]ProducePacketName [16:19:35]name=ofd_packets/00069901 [16:19:35]NVStorageDeleteData [16:19:35]Write to MH i2c: 01 00 00 08 05 0D [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 F0 0C 10 [16:19:35]RasterBufferAndPrint [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]written 0, free lines is 3321 [16:19:35]MH_Cut [16:19:35]Write to MH i2c: D1 01 00 0F 05 01 E6 [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 01 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 01 00 0F 05 00 E5 [16:19:35]Write to MH i2c: 01 00 00 10 05 15 [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]OFD Sender: No OFD packet to send [16:19:36]*** Cut start [16:19:36]*** Partial cut [16:19:36]*** CUTSNS_PIN = 1 [16:19:36]*** CUTSNS_PIN = 0 [16:19:36]*** Brake cut motor [16:19:36]Read from MH i2c: 01 [16:19:36]MH_I2C_Read... [16:19:36]*** Stop cut motor [16:19:36]*** Cut end [16:19:36]Read from MH i2c: 01 07 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [16:19:36]process_action close_receipt done [16:19:36]requested_data is exist [16:19:36]produce_requested_data [16:19:36]requested_item fm.sn is exist - process it [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 11 00 00 [16:19:36]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [16:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:19:36]wFMCommunicate OK [16:19:36]requested_item fd.num is exist - process it [16:19:36]SAM_PROTO_GetFieldsCounters [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 13 00 00 [16:19:36]Write to MH i2c: E2 08 00 12 05 80 13 00 00 00 00 00 00 93 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 62 00 [16:19:37]MH_I2C_Read... [16:19:37]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:37]wFMCommunicate OK [16:19:37]SAM_PROTO_GetFieldsCounters done [16:19:37]requested_item shift.num is exist - process it [16:19:37]requested_item shift.opened is exist - process it [16:19:37]req_shift_opened [16:19:37]FM_GetShiftState [16:19:37]SAM_PROTO_GetShiftState [16:19:37]wFMCommunicate request_size=4 [16:19:37]MH_SAM_APDU [16:19:37]CAPDU: 80 13 01 00 [16:19:37]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0E 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [16:19:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:19:37]wFMCommunicate OK [16:19:37]SAM_PROTO_GetShiftState done [16:19:37]FM_GetShiftState done [16:19:37]req_shift_opened done [16:19:37]requested_item shift.open_date is exist - process it [16:19:37]req_shift_open_date [16:19:37]req_shift_open_date done [16:19:37]produce_requested_data done [16:19:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69901,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:19:37]process_action_free close_receipt [16:19:37]json_value_free [16:19:37]json_value_free done [16:19:37]process_json_proto returns [16:19:37]Send response to host [16:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69901,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:19:37]free response buf [16:19:37]execute_script done [16:19:37]execute_script returns [16:19:37]free content buf [16:19:37]Sock 7.Close socket [16:19:37]Sock 7.Thread stoped [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:27]accept exits with 10 [16:20:27]New connection [16:20:27]New thread 3067026788 created [16:20:27]Thread 3067170148 joined [16:20:27]Waiting for new connection... [16:20:27] Sock 10.Parse request [16:20:27]Sock 10.Check first char [16:20:27]Sock 10.First char is OK [16:20:27]request: POST /json_proto HTTP/1.0 [16:20:27]Method: POST [16:20:27]URL: /json_proto [16:20:27]Method is POST - this is cgi request [16:20:27]url: /json_proto [16:20:27]query_string will be loaded in cgi processing [16:20:27]execute_cgi json_proto POST (null) [16:20:27]execute_cgi path=json_proto method=POST [16:20:27]POST find Content-Length [16:20:27]Host: 172.17.50.3:8080 [16:20:27]Content-Length: 752 [16:20:27]Content-Type: application/json [16:20:27] [16:20:27]POST finish read [16:20:27]Found Content-Length = 752 [16:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:27]execute_script... [16:20:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:27]POST & json_proto [16:20:27]process_json_proto [16:20:27]json parsed OK: [16:20:27]protocol is kg_v1.0 [16:20:27]action value=close_receipt [16:20:27]process_action close_receipt [16:20:27]cmd_close_receipt [16:20:27]MH_GetDate [16:20:27]Write to MH i2c: F0 00 00 14 05 08 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: F0 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: F0 09 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: F0 09 00 14 05 00 4B 7F 16 67 6B 98 1E 66 DF [16:20:27]GetLastDocTimeStamp 1729527573 [16:20:27]current date 1729527627 [16:20:27]FM_GetShiftState [16:20:27]SAM_PROTO_GetShiftState [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 01 00 [16:20:27]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C3 [16:20:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_GetShiftState done [16:20:27]FM_GetShiftState done [16:20:27]opened in 1729469703 [16:20:27]opened+sec_in_day 1729556103 [16:20:27]quantity*price = 0 [16:20:27]sum+1 = 1 [16:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 292 21.10.2024 16:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30077137 ФМ: 0000000000963346 ФД: 69902 ФПД: 29339371203845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162028&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69902&fm=29339371203845&tin=02508201610067®Number=0000000000156251&sum=0 [16:20:28]StoreToDocumentArchive [16:20:28]shift 194 fd 69902 [16:20:28]save to /storage/0194/doc_00069902 [16:20:28]save last doc name /storage/0194/doc_00069902 to /storage/kkm_last_doc_name [16:20:28]save OK [16:20:28]Clear old archive folders... [16:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:20:28]tlvbuf is 011048A0 [16:20:28]SAM_PROTO_ClearQueue [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 09 00 00 [16:20:28]Write to MH i2c: E2 08 00 22 05 80 09 00 00 00 00 00 00 99 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_ClearQueue done [16:20:28]KKMCreateOFDPacket [16:20:28]OFDProtocolAddRootSTLVToBuf [16:20:28]FM_MakeSignedData [16:20:28]FM_MakeSignedData [16:20:28]SAM_PROTO_SignData [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 0D 01 02 [16:20:28]Write to MH i2c: E2 08 00 23 05 80 0D 01 02 00 00 00 00 A1 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]wFMCommunicate request_size=255 [16:20:28]MH_SAM_APDU [16:20:28]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 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4C 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 11 01 00 35 04 06 00 1A AF 1A CC [16:20:28]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 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4C 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 11 01 00 35 04 06 00 1A AF 1A CC 00 00 2C [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]wFMCommunicate request_size=7 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 0D 02 02 02 6D 05 [16:20:28]Write to MH i2c: E2 0A 00 25 05 80 0D 02 02 02 00 6D 05 00 00 1A [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [16:20:28]RAPDU: 90 00 [16:20:28]wFMCommunicate OK [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 0D 03 02 [16:20:28]Write to MH i2c: E2 08 00 26 05 80 0D 03 02 00 00 00 00 A6 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0B 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0B 00 26 05 00 25 B4 48 D5 3B 21 C2 5B 90 00 16 [16:20:28]RAPDU: 25 B4 48 D5 3B 21 C2 5B 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_SignData done [16:20:28]FM_MakeSignedData done [16:20:28]CreateOFDProtocolMessage [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 11 00 00 [16:20:28]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 17 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [16:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:20:28]wFMCommunicate OK [16:20:28]CreateOFDProtocolMessage done [16:20:28]OFDSenderStorePacket 69902 [16:20:28]StoreOFDPacket docnum=69902 [16:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D8 02 04 01 3D 70 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 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4C 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 11 01 00 35 04 06 00 1A AF 1A CC 6D 05 25 B4 48 D5 3B 21 C2 5B [16:20:28]CheckFolder [16:20:28]dirname=/storage/ofd_packets [16:20:28]CheckFolder done [16:20:28]ProducePacketName [16:20:28]name=ofd_packets/00069902 [16:20:28]NVStorageSaveData ofd_packets/00069902 [16:20:28]File name is /storage/ofd_packets/00069902 [16:20:28]Write 298 bytes [16:20:28]NVStorageSaveData done [16:20:28]OFDSenderStorePacket done [16:20:28]KKMCreateOFDPacket done [16:20:28]NVStorageSaveData kkm_last_timestamp [16:20:28]File name is /storage/kkm_last_timestamp [16:20:28]Write 4 bytes [16:20:28]NVStorageSaveData done [16:20:28]ExternCall_PrintAddStr [16:20:28]wPrintStart [16:20:28]Write to MH i2c: 01 00 00 28 05 2D [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 07 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 FF 0F 42 [16:20:28]RasterBufferAndPrint [16:20:28]line Счет N : (1)2885655 [16:20:28]line ИНН: 02508201610067 [16:20:28]line Контрольно-Кассовый Чек [16:20:28]line ПРОДАЖА [16:20:28]line ТРК (МРК, ГНК) : 51 [16:20:28]line Товар: 2710194210 [16:20:28]line ДТ-К-5 [16:20:28]line 19.690 * 0.00 [16:20:28]line = 0.00 [16:20:28]line НДС 12% НСП 1% [16:20:28]line > о реализуемом товаре [16:20:28]line ИТОГО: 0.00 [16:20:28]line НСП 1% : 0.00 [16:20:28]line НДС 12% : 0.00 [16:20:28]line Наличными: 0.00 [16:20:28]line Безнал.: 0.00 [16:20:28]line Место: АЗС № 85 "Партнер Нефть" [16:20:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:20:28]line СНО: Общий режим [16:20:28]line Чек 292 21.10.2024 16:20 [16:20:28]line Смена: 194 ФФД: 1.0 [16:20:28]line ЗНМ: 0300000167 [16:20:28]line РНМ: 0000000000156251 [16:20:28]line Версия ККМ: v1.0 [16:20:28]line Талоны: ТК ГПНА Online [16:20:28]line 30077137 [16:20:28]line ФМ: 0000000000963346 [16:20:28]line ФД: 69902 [16:20:28]line ФПД: 29339371203845 [16:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162028&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69902&fm=29339371203845&tin=02508201610067®Number=0000000000156251&sum=0 [16:20:29]OFD Sender: Processing packet 69902 [packets to send 18, broken 17] [16:20:29]ProducePacketName [16:20:29]name=ofd_packets/00069902 [16:20:29]OFD Sender: To server: pG, [16:20:29]CommunicateWithHost lk.salyk.kg:30040 [16:20:29]ConnectInit lk.salyk.kg [16:20:29]written 0, free lines is 4095 [16:20:29]Connected sock=9 [16:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D8 02 04 01 3D 70 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 32 31 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4C 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 11 01 00 35 04 06 00 1A AF 1A CC 6D 05 25 B4 48 D5 3B 21 C2 5B [16:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9C 6B 47 00 11 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 39 36 33 33 34 36 10 04 04 00 0E 11 01 00 F4 03 04 00 EF 28 16 67 B6 04 01 00 00 26 16 CE FE 21 18 5E 41 [16:20:29]CommunicateWithHost err = 0 [16:20:29]CheckOFDResponse [16:20:29]1017 (14) - 77093643461234 [16:20:29]1041 (16) - 0000000000963346 [16:20:29]1040 (4) - 69902 [16:20:29]1012 (4) - 21.10.2024 10:11 [16:20:29]1206 (1) - 0 [16:20:29]OFD Sender: Remove packet 69902 [16:20:29]ProducePacketName [16:20:29]name=ofd_packets/00069902 [16:20:29]NVStorageDeleteData [16:20:29]Write to MH i2c: 01 00 00 52 05 57 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 F0 0C 5A [16:20:29]RasterBufferAndPrint [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]line [16:20:29]written 0, free lines is 3318 [16:20:29]MH_Cut [16:20:29]Write to MH i2c: D1 01 00 59 05 01 30 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 01 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: D1 01 00 59 05 00 2F [16:20:29]Write to MH i2c: 01 00 00 5A 05 5F [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:30]OFD Sender: No OFD packet to send [16:20:30]*** Cut start [16:20:30]*** Partial cut [16:20:30]*** CUTSNS_PIN = 1 [16:20:30]*** CUTSNS_PIN = 0 [16:20:30]*** Brake cut motor [16:20:30]Read from MH i2c: 01 [16:20:30]MH_I2C_Read... [16:20:30]*** Stop cut motor [16:20:30]*** Cut end [16:20:30]Read from MH i2c: 01 07 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [16:20:30]process_action close_receipt done [16:20:30]requested_data is exist [16:20:30]produce_requested_data [16:20:30]requested_item fm.sn is exist - process it [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 11 00 00 [16:20:30]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 17 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [16:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:20:31]wFMCommunicate OK [16:20:31]requested_item fd.num is exist - process it [16:20:31]SAM_PROTO_GetFieldsCounters [16:20:31]wFMCommunicate request_size=4 [16:20:31]MH_SAM_APDU [16:20:31]CAPDU: 80 13 00 00 [16:20:31]Write to MH i2c: E2 08 00 5C 05 80 13 00 00 00 00 00 00 DD [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 62 00 [16:20:31]MH_I2C_Read... [16:20:31]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 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:31]wFMCommunicate OK [16:20:31]SAM_PROTO_GetFieldsCounters done [16:20:31]requested_item shift.num is exist - process it [16:20:31]requested_item shift.opened is exist - process it [16:20:31]req_shift_opened [16:20:31]FM_GetShiftState [16:20:31]SAM_PROTO_GetShiftState [16:20:31]wFMCommunicate request_size=4 [16:20:31]MH_SAM_APDU [16:20:31]CAPDU: 80 13 01 00 [16:20:31]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 0E 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0B [16:20:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:20:31]wFMCommunicate OK [16:20:31]SAM_PROTO_GetShiftState done [16:20:31]FM_GetShiftState done [16:20:31]req_shift_opened done [16:20:31]requested_item shift.open_date is exist - process it [16:20:31]req_shift_open_date [16:20:31]req_shift_open_date done [16:20:31]produce_requested_data done [16:20:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69902,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:20:31]process_action_free close_receipt [16:20:31]json_value_free [16:20:31]json_value_free done [16:20:31]process_json_proto returns [16:20:31]Send response to host [16:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69902,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:20:31]free response buf [16:20:31]execute_script done [16:20:31]execute_script returns [16:20:31]free content buf [16:20:31]Sock 10.Close socket [16:20:31]Sock 10.Thread stoped [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:44]accept exits with 7 [16:21:44]New connection [16:21:44]New thread 3067170148 created [16:21:44]Thread 3067026788 joined [16:21:44]Waiting for new connection... [16:21:44] Sock 7.Parse request [16:21:44]Sock 7.Check first char [16:21:44]Sock 7.First char is OK [16:21:44]request: POST /json_proto HTTP/1.0 [16:21:44]Method: POST [16:21:44]URL: /json_proto [16:21:44]Method is POST - this is cgi request [16:21:44]url: /json_proto [16:21:44]query_string will be loaded in cgi processing [16:21:44]execute_cgi json_proto POST (null) [16:21:44]execute_cgi path=json_proto method=POST [16:21:44]POST find Content-Length [16:21:44]Host: 172.17.50.3:8080 [16:21:44]Content-Length: 753 [16:21:44]Content-Type: application/json [16:21:44] [16:21:44]POST finish read [16:21:44]Found Content-Length = 753 [16:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A300970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:44]execute_script... [16:21:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A300970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:44]POST & json_proto [16:21:44]process_json_proto [16:21:44]json parsed OK: [16:21:44]protocol is kg_v1.0 [16:21:44]action value=close_receipt [16:21:44]process_action close_receipt [16:21:44]cmd_close_receipt [16:21:44]MH_GetDate [16:21:44]Write to MH i2c: F0 00 00 5E 05 52 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: F0 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: F0 09 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: F0 09 00 5E 05 00 99 7F 16 67 6B 98 1E 66 77 [16:21:44]GetLastDocTimeStamp 1729527628 [16:21:44]current date 1729527705 [16:21:44]FM_GetShiftState [16:21:44]SAM_PROTO_GetShiftState [16:21:44]wFMCommunicate request_size=4 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 13 01 00 [16:21:44]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 0E 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0D [16:21:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:21:44]wFMCommunicate OK [16:21:44]SAM_PROTO_GetShiftState done [16:21:44]FM_GetShiftState done [16:21:44]opened in 1729469703 [16:21:44]opened+sec_in_day 1729556103 [16:21:44]quantity*price = 0 [16:21:44]sum+1 = 1 [16:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 293 21.10.2024 16:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 300970 ФМ: 0000000000963346 ФД: 69903 ФПД: 263614713247654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162145&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69903&fm=263614713247654&tin=02508201610067®Number=0000000000156251&sum=0 [16:21:45]StoreToDocumentArchive [16:21:45]shift 194 fd 69903 [16:21:45]save to /storage/0194/doc_00069903 [16:21:45]save last doc name /storage/0194/doc_00069903 to /storage/kkm_last_doc_name [16:21:45]save OK [16:21:45]Clear old archive folders... [16:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:45]tlvbuf is B6F0F480 [16:21:45]SAM_PROTO_ClearQueue [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 09 00 00 [16:21:45]Write to MH i2c: E2 08 00 6C 05 80 09 00 00 00 00 00 00 E3 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]SAM_PROTO_ClearQueue done [16:21:45]KKMCreateOFDPacket [16:21:45]OFDProtocolAddRootSTLVToBuf [16:21:45]FM_MakeSignedData [16:21:45]FM_MakeSignedData [16:21:45]SAM_PROTO_SignData [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 01 02 [16:21:45]Write to MH i2c: E2 08 00 6D 05 80 0D 01 02 00 00 00 00 EB [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=255 [16:21:45]MH_SAM_APDU [16:21:45]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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 99 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 11 01 00 35 04 06 00 EF [16:21:45]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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 99 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 11 01 00 35 04 06 00 EF 00 00 1C [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=10 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 02 02 05 C1 95 57 37 A6 [16:21:45]Write to MH i2c: E2 0D 00 6F 05 80 0D 02 02 05 00 C1 95 57 37 A6 00 00 82 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [16:21:45]RAPDU: 90 00 [16:21:45]wFMCommunicate OK [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 0D 03 02 [16:21:45]Write to MH i2c: E2 08 00 70 05 80 0D 03 02 00 00 00 00 F0 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0B 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 0B 00 70 05 00 DE E8 25 6C 8F 94 49 AD 90 00 61 [16:21:45]RAPDU: DE E8 25 6C 8F 94 49 AD 90 00 [16:21:45]wFMCommunicate OK [16:21:45]SAM_PROTO_SignData done [16:21:45]FM_MakeSignedData done [16:21:45]CreateOFDProtocolMessage [16:21:45]wFMCommunicate request_size=4 [16:21:45]MH_SAM_APDU [16:21:45]CAPDU: 80 11 00 00 [16:21:45]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:45]Read from MH i2c: E2 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 17 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [16:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:21:45]wFMCommunicate OK [16:21:45]CreateOFDProtocolMessage done [16:21:45]OFDSenderStorePacket 69903 [16:21:45]StoreOFDPacket docnum=69903 [16:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 AB 07 01 F8 85 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 99 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 11 01 00 35 04 06 00 EF C1 95 57 37 A6 DE E8 25 6C 8F 94 49 AD [16:21:45]CheckFolder [16:21:45]dirname=/storage/ofd_packets [16:21:45]CheckFolder done [16:21:45]ProducePacketName [16:21:45]name=ofd_packets/00069903 [16:21:45]NVStorageSaveData ofd_packets/00069903 [16:21:45]File name is /storage/ofd_packets/00069903 [16:21:45]Write 301 bytes [16:21:45]NVStorageSaveData done [16:21:45]OFDSenderStorePacket done [16:21:45]KKMCreateOFDPacket done [16:21:45]NVStorageSaveData kkm_last_timestamp [16:21:45]File name is /storage/kkm_last_timestamp [16:21:45]Write 4 bytes [16:21:45]NVStorageSaveData done [16:21:45]ExternCall_PrintAddStr [16:21:45]wPrintStart [16:21:45]Write to MH i2c: 01 00 00 72 05 77 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 FF 0F 8C [16:21:45]RasterBufferAndPrint [16:21:45]line Счет N : (1)2885656 [16:21:45]line ИНН: 02508201610067 [16:21:45]line Контрольно-Кассовый Чек [16:21:45]line ПРОДАЖА [16:21:45]line ТРК (МРК, ГНК) : 12 [16:21:45]line Товар: 2710124130 [16:21:45]line Аи-92-К-5 [16:21:45]line 14.950 * 0.00 [16:21:45]line = 0.00 [16:21:45]line НДС 12% НСП 1% [16:21:45]line > о реализуемом товаре [16:21:45]line ИТОГО: 0.00 [16:21:45]line НСП 1% : 0.00 [16:21:45]line НДС 12% : 0.00 [16:21:45]line Наличными: 0.00 [16:21:45]line Безнал.: 0.00 [16:21:45]line Место: АЗС № 85 "Партнер Нефть" [16:21:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:21:45]line СНО: Общий режим [16:21:45]line Чек 293 21.10.2024 16:21 [16:21:45]line Смена: 194 ФФД: 1.0 [16:21:45]line ЗНМ: 0300000167 [16:21:45]line РНМ: 0000000000156251 [16:21:45]line Версия ККМ: v1.0 [16:21:45]line Талоны: ТК ГПНА Online [16:21:45]line 300970 [16:21:45]line ФМ: 0000000000963346 [16:21:45]line ФД: 69903 [16:21:45]line ФПД: 263614713247654 [16:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162145&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69903&fm=263614713247654&tin=02508201610067®Number=0000000000156251&sum=0 [16:21:46]OFD Sender: Processing packet 69903 [packets to send 18, broken 17] [16:21:46]ProducePacketName [16:21:46]name=ofd_packets/00069903 [16:21:46]OFD Sender: To server: pG, [16:21:46]CommunicateWithHost lk.salyk.kg:30040 [16:21:46]ConnectInit lk.salyk.kg [16:21:46]written 0, free lines is 4095 [16:21:46]Connected sock=10 [16:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 AB 07 01 F8 85 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 99 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 11 01 00 35 04 06 00 EF C1 95 57 37 A6 DE E8 25 6C 8F 94 49 AD [16:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3C 31 47 00 B3 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 11 01 00 F4 03 04 00 3C 29 16 67 B6 04 01 00 00 EE D0 E2 9B BC 31 08 77 [16:21:46]CommunicateWithHost err = 0 [16:21:46]CheckOFDResponse [16:21:46]1017 (14) - 77093643461234 [16:21:46]1041 (16) - 0000000000963346 [16:21:46]1040 (4) - 69903 [16:21:46]1012 (4) - 21.10.2024 10:13 [16:21:46]1206 (1) - 0 [16:21:46]OFD Sender: Remove packet 69903 [16:21:46]ProducePacketName [16:21:46]name=ofd_packets/00069903 [16:21:46]NVStorageDeleteData [16:21:46]Write to MH i2c: 01 00 00 9C 05 A1 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 07 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 F4 0C A8 [16:21:46]RasterBufferAndPrint [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]line [16:21:46]written 0, free lines is 3322 [16:21:46]MH_Cut [16:21:46]Write to MH i2c: D1 01 00 A3 05 01 7A [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 01 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: D1 01 00 A3 05 00 79 [16:21:46]Write to MH i2c: 01 00 00 A4 05 A9 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:47]OFD Sender: No OFD packet to send [16:21:47]*** Cut start [16:21:47]*** Partial cut [16:21:47]*** CUTSNS_PIN = 1 [16:21:47]*** CUTSNS_PIN = 0 [16:21:47]*** Brake cut motor [16:21:48]Read from MH i2c: 01 [16:21:48]MH_I2C_Read... [16:21:48]*** Stop cut motor [16:21:48]*** Cut end [16:21:48]Read from MH i2c: 01 07 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [16:21:48]process_action close_receipt done [16:21:48]requested_data is exist [16:21:48]produce_requested_data [16:21:48]requested_item fm.sn is exist - process it [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 11 00 00 [16:21:48]Write to MH i2c: E2 08 00 A5 05 80 11 00 00 00 00 00 00 24 [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:48]Read from MH i2c: E2 17 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 17 00 A5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [16:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:21:48]wFMCommunicate OK [16:21:48]requested_item fd.num is exist - process it [16:21:48]SAM_PROTO_GetFieldsCounters [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 13 00 00 [16:21:48]Write to MH i2c: E2 08 00 A6 05 80 13 00 00 00 00 00 00 27 [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 62 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 62 00 A6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:48]wFMCommunicate OK [16:21:48]SAM_PROTO_GetFieldsCounters done [16:21:48]requested_item shift.num is exist - process it [16:21:48]requested_item shift.opened is exist - process it [16:21:48]req_shift_opened [16:21:48]FM_GetShiftState [16:21:48]SAM_PROTO_GetShiftState [16:21:48]wFMCommunicate request_size=4 [16:21:48]MH_SAM_APDU [16:21:48]CAPDU: 80 13 01 00 [16:21:48]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [16:21:48]Write i2c OK [16:21:48]MH_I2C_Read... [16:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:48]Read from MH i2c: E2 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 0E 00 [16:21:48]MH_I2C_Read... [16:21:48]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 55 [16:21:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:21:48]wFMCommunicate OK [16:21:48]SAM_PROTO_GetShiftState done [16:21:48]FM_GetShiftState done [16:21:48]req_shift_opened done [16:21:48]requested_item shift.open_date is exist - process it [16:21:48]req_shift_open_date [16:21:48]req_shift_open_date done [16:21:48]produce_requested_data done [16:21:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69903,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:21:48]process_action_free close_receipt [16:21:48]json_value_free [16:21:48]json_value_free done [16:21:48]process_json_proto returns [16:21:48]Send response to host [16:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69903,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:21:48]free response buf [16:21:48]execute_script done [16:21:48]execute_script returns [16:21:48]free content buf [16:21:48]Sock 7.Close socket [16:21:48]Sock 7.Thread stoped [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:51]accept exits with 9 [16:22:51]New connection [16:22:51]New thread 3067026788 created [16:22:51]Thread 3067170148 joined [16:22:51]Waiting for new connection... [16:22:51] Sock 9.Parse request [16:22:51]Sock 9.Check first char [16:22:51]Sock 9.First char is OK [16:22:51]request: POST /json_proto HTTP/1.0 [16:22:51]Method: POST [16:22:51]URL: /json_proto [16:22:51]Method is POST - this is cgi request [16:22:51]url: /json_proto [16:22:51]query_string will be loaded in cgi processing [16:22:51]execute_cgi json_proto POST (null) [16:22:51]execute_cgi path=json_proto method=POST [16:22:51]POST find Content-Length [16:22:51]Host: 172.17.50.3:8080 [16:22:51]Content-Length: 770 [16:22:51]Content-Type: application/json [16:22:51] [16:22:51]POST finish read [16:22:51]Found Content-Length = 770 [16:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885658", "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" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:51]execute_script... [16:22: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)2885658", "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" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:51]POST & json_proto [16:22:51]process_json_proto [16:22:51]json parsed OK: [16:22:51]protocol is kg_v1.0 [16:22:51]action value=close_receipt [16:22:51]process_action close_receipt [16:22:51]cmd_close_receipt [16:22:51]MH_GetDate [16:22:51]Write to MH i2c: F0 00 00 A8 05 9C [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 09 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: F0 09 00 A8 05 00 DC 7F 16 67 6B 98 1E 66 04 [16:22:51]GetLastDocTimeStamp 1729527705 [16:22:51]current date 1729527772 [16:22:51]FM_GetShiftState [16:22:51]SAM_PROTO_GetShiftState [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 13 01 00 [16:22:51]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:51]Read from MH i2c: E2 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 57 [16:22:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:22:51]wFMCommunicate OK [16:22:51]SAM_PROTO_GetShiftState done [16:22:51]FM_GetShiftState done [16:22:51]opened in 1729469703 [16:22:51]opened+sec_in_day 1729556103 [16:22:51]quantity*price = 110038 [16:22:51]sum+1 = 110040 [16:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.39 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 0.00 Безнал.: 1100.39 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 294 21.10.2024 16:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69904 ФПД: 102434737165305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69904&fm=102434737165305&tin=02508201610067®Number=0000000000156251&sum=110039 [16:22:52]StoreToDocumentArchive [16:22:52]shift 194 fd 69904 [16:22:52]save to /storage/0194/doc_00069904 [16:22:52]save last doc name /storage/0194/doc_00069904 to /storage/kkm_last_doc_name [16:22:52]save OK [16:22:52]Clear old archive folders... [16:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:52]tlvbuf is 0113CC00 [16:22:52]SAM_PROTO_ClearQueue [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 09 00 00 [16:22:52]Write to MH i2c: E2 08 00 B6 05 80 09 00 00 00 00 00 00 2D [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_ClearQueue done [16:22:52]KKMCreateOFDPacket [16:22:52]OFDProtocolAddRootSTLVToBuf [16:22:52]FM_MakeSignedData [16:22:52]FM_MakeSignedData [16:22:52]SAM_PROTO_SignData [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 01 02 [16:22:52]Write to MH i2c: E2 08 00 B7 05 80 0D 01 02 00 00 00 00 35 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=255 [16:22:52]MH_SAM_APDU [16:22:52]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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 DC 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 11 01 00 35 04 06 00 5D [16:22:52]Write to MH i2c: E2 02 01 B8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 DC 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 11 01 00 35 04 06 00 5D 00 00 EF [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=10 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 02 02 05 29 F2 1F 13 F9 [16:22:52]Write to MH i2c: E2 0D 00 B9 05 80 0D 02 02 05 00 29 F2 1F 13 F9 00 00 88 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [16:22:52]RAPDU: 90 00 [16:22:52]wFMCommunicate OK [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 0D 03 02 [16:22:52]Write to MH i2c: E2 08 00 BA 05 80 0D 03 02 00 00 00 00 3A [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0B 00 BA 05 00 CA 05 79 49 AF 44 D2 AC 90 00 3D [16:22:52]RAPDU: CA 05 79 49 AF 44 D2 AC 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_SignData done [16:22:52]FM_MakeSignedData done [16:22:52]CreateOFDProtocolMessage [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 11 00 00 [16:22:52]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [16:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:22:52]wFMCommunicate OK [16:22:52]CreateOFDProtocolMessage done [16:22:52]OFDSenderStorePacket 69904 [16:22:52]StoreOFDPacket docnum=69904 [16:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5F 04 07 01 83 E5 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 DC 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 11 01 00 35 04 06 00 5D 29 F2 1F 13 F9 CA 05 79 49 AF 44 D2 AC [16:22:52]CheckFolder [16:22:52]dirname=/storage/ofd_packets [16:22:52]CheckFolder done [16:22:52]ProducePacketName [16:22:52]name=ofd_packets/00069904 [16:22:52]NVStorageSaveData ofd_packets/00069904 [16:22:52]File name is /storage/ofd_packets/00069904 [16:22:52]Write 301 bytes [16:22:52]NVStorageSaveData done [16:22:52]OFDSenderStorePacket done [16:22:52]KKMCreateOFDPacket done [16:22:52]NVStorageSaveData kkm_last_timestamp [16:22:52]File name is /storage/kkm_last_timestamp [16:22:52]Write 4 bytes [16:22:52]NVStorageSaveData done [16:22:52]ExternCall_PrintAddStr [16:22:52]wPrintStart [16:22:52]Write to MH i2c: 01 00 00 BC 05 C1 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [16:22:52]RasterBufferAndPrint [16:22:52]line Счет N : (1)2885658 [16:22:52]line ИНН: 02508201610067 [16:22:52]line Контрольно-Кассовый Чек [16:22:52]line ПРОДАЖА [16:22:52]line ТРК (МРК, ГНК) : 33 [16:22:52]line Товар: 2710124500 [16:22:52]line Аи-95-К-5 [16:22:52]line 14.830 * 74.20 [16:22:52]line = 1100.39 [16:22:52]line НДС 12% НСП 1% [16:22:52]line > о реализуемом товаре [16:22:52]line ИТОГО: 1100.39 [16:22:52]line НСП 1% : 9.74 [16:22:52]line НДС 12% : 116.86 [16:22:52]line Наличными: 0.00 [16:22:52]line Безнал.: 1100.39 [16:22:52]line Место: АЗС № 85 "Партнер Нефть" [16:22:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:22:52]line СНО: Общий режим [16:22:52]line Чек 294 21.10.2024 16:22 [16:22:52]line Смена: 194 ФФД: 1.0 [16:22:52]line ЗНМ: 0300000167 [16:22:52]line РНМ: 0000000000156251 [16:22:52]line Версия ККМ: v1.0 [16:22:52]line Платежная система: Mbank [16:22:52]line ФМ: 0000000000963346 [16:22:52]line ФД: 69904 [16:22:52]line ФПД: 102434737165305 [16:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69904&fm=102434737165305&tin=02508201610067®Number=0000000000156251&sum=110039 [16:22:53]OFD Sender: Processing packet 69904 [packets to send 18, broken 17] [16:22:53]ProducePacketName [16:22:53]name=ofd_packets/00069904 [16:22:53]OFD Sender: To server: pG, [16:22:53]CommunicateWithHost lk.salyk.kg:30040 [16:22:53]ConnectInit lk.salyk.kg [16:22:53]written 0, free lines is 4095 [16:22:53]Connected sock=10 [16:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5F 04 07 01 83 E5 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 DC 7F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 11 01 00 35 04 06 00 5D 29 F2 1F 13 F9 CA 05 79 49 AF 44 D2 AC [16:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FF 8C 47 00 0D 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 11 01 00 F4 03 04 00 7F 29 16 67 B6 04 01 00 00 AF 67 81 4C 34 3E 33 5A [16:22:53]CommunicateWithHost err = 0 [16:22:53]CheckOFDResponse [16:22:53]1017 (14) - 77093643461234 [16:22:53]1041 (16) - 0000000000963346 [16:22:53]1040 (4) - 69904 [16:22:53]1012 (4) - 21.10.2024 10:14 [16:22:53]1206 (1) - 0 [16:22:53]OFD Sender: Remove packet 69904 [16:22:53]ProducePacketName [16:22:53]name=ofd_packets/00069904 [16:22:53]NVStorageDeleteData [16:22:53]Write to MH i2c: 01 00 00 E5 05 EA [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 13 0D 11 [16:22:53]RasterBufferAndPrint [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]line [16:22:53]written 0, free lines is 3353 [16:22:53]MH_Cut [16:22:53]Write to MH i2c: D1 01 00 EC 05 01 C3 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: D1 01 00 EC 05 00 C2 [16:22:53]Write to MH i2c: 01 00 00 ED 05 F2 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:54]OFD Sender: No OFD packet to send [16:22:54]*** Cut start [16:22:54]*** Partial cut [16:22:54]*** CUTSNS_PIN = 1 [16:22:54]*** CUTSNS_PIN = 0 [16:22:54]*** Brake cut motor [16:22:55]Read from MH i2c: 01 [16:22:55]*** Stop cut motor [16:22:55]*** Cut end [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 07 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [16:22:55]process_action close_receipt done [16:22:55]requested_data is exist [16:22:55]produce_requested_data [16:22:55]requested_item fm.sn is exist - process it [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 11 00 00 [16:22:55]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [16:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:22:55]wFMCommunicate OK [16:22:55]requested_item fd.num is exist - process it [16:22:55]SAM_PROTO_GetFieldsCounters [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 13 00 00 [16:22:55]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 62 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 62 00 EF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [16:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:55]wFMCommunicate OK [16:22:55]SAM_PROTO_GetFieldsCounters done [16:22:55]requested_item shift.num is exist - process it [16:22:55]requested_item shift.opened is exist - process it [16:22:55]req_shift_opened [16:22:55]FM_GetShiftState [16:22:55]SAM_PROTO_GetShiftState [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 13 01 00 [16:22:55]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0E 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9E [16:22:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:22:55]wFMCommunicate OK [16:22:55]SAM_PROTO_GetShiftState done [16:22:55]FM_GetShiftState done [16:22:55]req_shift_opened done [16:22:55]requested_item shift.open_date is exist - process it [16:22:55]req_shift_open_date [16:22:55]req_shift_open_date done [16:22:55]produce_requested_data done [16:22:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69904,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:22:55]process_action_free close_receipt [16:22:55]json_value_free [16:22:55]json_value_free done [16:22:55]process_json_proto returns [16:22:55]Send response to host [16:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69904,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:22:55]free response buf [16:22:55]execute_script done [16:22:55]execute_script returns [16:22:55]free content buf [16:22:55]Sock 9.Close socket [16:22:55]Sock 9.Thread stoped [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:05]accept exits with 7 [16:26:05]New connection [16:26:05]New thread 3067170148 created [16:26:05]Thread 3067026788 joined [16:26:05]Waiting for new connection... [16:26:05] Sock 7.Parse request [16:26:05]Sock 7.Check first char [16:26:05]Sock 7.First char is OK [16:26:05]request: POST /json_proto HTTP/1.0 [16:26:05]Method: POST [16:26:05]URL: /json_proto [16:26:05]Method is POST - this is cgi request [16:26:05]url: /json_proto [16:26:05]query_string will be loaded in cgi processing [16:26:05]execute_cgi json_proto POST (null) [16:26:05]execute_cgi path=json_proto method=POST [16:26:05]POST find Content-Length [16:26:05]Host: 172.17.50.3:8080 [16:26:05]Content-Length: 793 [16:26:05]Content-Type: application/json [16:26:05] [16:26:05]POST finish read [16:26:05]Found Content-Length = 793 [16:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885660", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:05]execute_script... [16:26: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)2885660", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:05]POST & json_proto [16:26:05]process_json_proto [16:26:05]json parsed OK: [16:26:05]protocol is kg_v1.0 [16:26:05]action value=close_receipt [16:26:05]process_action close_receipt [16:26:05]cmd_close_receipt [16:26:05]MH_GetDate [16:26:05]Write to MH i2c: F0 00 00 F1 05 E5 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: F0 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: F0 09 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: F0 09 00 F1 05 00 9E 80 16 67 6B 98 1E 66 10 [16:26:05]GetLastDocTimeStamp 1729527772 [16:26:05]current date 1729527966 [16:26:05]FM_GetShiftState [16:26:05]SAM_PROTO_GetShiftState [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 13 01 00 [16:26:05]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0E 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A0 [16:26:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:26:05]wFMCommunicate OK [16:26:05]SAM_PROTO_GetShiftState done [16:26:05]FM_GetShiftState done [16:26:05]opened in 1729469703 [16:26:05]opened+sec_in_day 1729556103 [16:26:05]quantity*price = 0 [16:26:05]sum+1 = 1 [16:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 295 21.10.2024 16:26 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 53014 ФМ: 0000000000963346 ФД: 69905 ФПД: 174562135186905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69905&fm=174562135186905&tin=02508201610067®Number=0000000000156251&sum=0 [16:26:06]StoreToDocumentArchive [16:26:06]shift 194 fd 69905 [16:26:06]save to /storage/0194/doc_00069905 [16:26:06]save last doc name /storage/0194/doc_00069905 to /storage/kkm_last_doc_name [16:26:06]save OK [16:26:06]Clear old archive folders... [16:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:06]tlvbuf is 01129DA0 [16:26:06]SAM_PROTO_ClearQueue [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 09 00 00 [16:26:06]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [16:26:06]RAPDU: 90 00 [16:26:06]wFMCommunicate OK [16:26:06]SAM_PROTO_ClearQueue done [16:26:06]KKMCreateOFDPacket [16:26:06]OFDProtocolAddRootSTLVToBuf [16:26:06]FM_MakeSignedData [16:26:06]FM_MakeSignedData [16:26:06]SAM_PROTO_SignData [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 0D 01 02 [16:26:06]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [16:26:06]RAPDU: 90 00 [16:26:06]wFMCommunicate OK [16:26:06]wFMCommunicate request_size=255 [16:26:06]MH_SAM_APDU [16:26:06]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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9E 80 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 11 01 00 35 04 06 00 9E [16:26:06]Write to MH i2c: E2 02 01 01 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9E 80 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 11 01 00 35 04 06 00 9E 00 00 37 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 03 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [16:26:07]RAPDU: 90 00 [16:26:07]wFMCommunicate OK [16:26:07]wFMCommunicate request_size=10 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 0D 02 02 05 C3 6A 0F 1D D9 [16:26:07]Write to MH i2c: E2 0D 00 02 06 80 0D 02 02 05 00 C3 6A 0F 1D D9 00 00 BE [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 03 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [16:26:07]RAPDU: 90 00 [16:26:07]wFMCommunicate OK [16:26:07]wFMCommunicate request_size=4 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 0D 03 02 [16:26:07]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 0B 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 0B 00 03 06 00 38 52 C8 68 82 06 3A 93 90 00 94 [16:26:07]RAPDU: 38 52 C8 68 82 06 3A 93 90 00 [16:26:07]wFMCommunicate OK [16:26:07]SAM_PROTO_SignData done [16:26:07]FM_MakeSignedData done [16:26:07]CreateOFDProtocolMessage [16:26:07]wFMCommunicate request_size=4 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 11 00 00 [16:26:07]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 17 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [16:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:07]wFMCommunicate OK [16:26:07]CreateOFDProtocolMessage done [16:26:07]OFDSenderStorePacket 69905 [16:26:07]StoreOFDPacket docnum=69905 [16:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 68 07 01 4B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9E 80 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 11 01 00 35 04 06 00 9E C3 6A 0F 1D D9 38 52 C8 68 82 06 3A 93 [16:26:07]CheckFolder [16:26:07]dirname=/storage/ofd_packets [16:26:07]CheckFolder done [16:26:07]ProducePacketName [16:26:07]name=ofd_packets/00069905 [16:26:07]NVStorageSaveData ofd_packets/00069905 [16:26:07]File name is /storage/ofd_packets/00069905 [16:26:07]Write 301 bytes [16:26:07]NVStorageSaveData done [16:26:07]OFDSenderStorePacket done [16:26:07]KKMCreateOFDPacket done [16:26:07]NVStorageSaveData kkm_last_timestamp [16:26:07]File name is /storage/kkm_last_timestamp [16:26:07]Write 4 bytes [16:26:07]NVStorageSaveData done [16:26:07]ExternCall_PrintAddStr [16:26:07]wPrintStart [16:26:07]Write to MH i2c: 01 00 00 05 06 0B [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 07 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [16:26:07]RasterBufferAndPrint [16:26:07]line Счет N : (1)2885660 [16:26:07]line ИНН: 02508201610067 [16:26:07]line Контрольно-Кассовый Чек [16:26:07]line ПРОДАЖА [16:26:07]line ТРК (МРК, ГНК) : 32 [16:26:07]line Товар: 2710124130 [16:26:07]line Аи-92-К-5 [16:26:07]line 20.000 * 0.00 [16:26:07]line = 0.00 [16:26:07]line НДС 12% НСП 1% [16:26:07]line > о реализуемом товаре [16:26:07]line ИТОГО: 0.00 [16:26:07]line НСП 1% : 0.00 [16:26:07]line НДС 12% : 0.00 [16:26:07]line Наличными: 0.00 [16:26:07]line Безнал.: 0.00 [16:26:07]line Место: АЗС № 85 "Партнер Нефть" [16:26:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:07]line СНО: Общий режим [16:26:07]line Чек 295 21.10.2024 16:26 [16:26:07]line Смена: 194 ФФД: 1.0 [16:26:07]line ЗНМ: 0300000167 [16:26:07]line РНМ: 0000000000156251 [16:26:07]line Версия ККМ: v1.0 [16:26:07]line Талоны: Топливная Карта [16:26:07]line 53014 [16:26:07]line ФМ: 0000000000963346 [16:26:07]line ФД: 69905 [16:26:07]line ФПД: 174562135186905 [16:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69905&fm=174562135186905&tin=02508201610067®Number=0000000000156251&sum=0 [16:26:07]OFD Sender: Processing packet 69905 [packets to send 18, broken 17] [16:26:07]ProducePacketName [16:26:07]name=ofd_packets/00069905 [16:26:07]OFD Sender: To server: pG, [16:26:07]CommunicateWithHost lk.salyk.kg:30040 [16:26:07]ConnectInit lk.salyk.kg [16:26:07]written 0, free lines is 4095 [16:26:07]Connected sock=10 [16:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 68 07 01 4B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9E 80 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 11 01 00 35 04 06 00 9E C3 6A 0F 1D D9 38 52 C8 68 82 06 3A 93 [16:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E0 66 47 00 82 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 39 36 33 33 34 36 10 04 04 00 11 11 01 00 F4 03 04 00 41 2A 16 67 B6 04 01 00 00 28 69 83 1B 26 07 27 C1 [16:26:08]CommunicateWithHost err = 0 [16:26:08]CheckOFDResponse [16:26:08]1017 (14) - 77093643461234 [16:26:08]1041 (16) - 0000000000963346 [16:26:08]1040 (4) - 69905 [16:26:08]1012 (4) - 21.10.2024 10:17 [16:26:08]1206 (1) - 0 [16:26:08]OFD Sender: Remove packet 69905 [16:26:08]ProducePacketName [16:26:08]name=ofd_packets/00069905 [16:26:08]NVStorageDeleteData [16:26:08]Write to MH i2c: 01 00 00 2F 06 35 [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: 01 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: 01 07 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 F4 0C 3C [16:26:08]RasterBufferAndPrint [16:26:08]line [16:26:08]line [16:26:08]line [16:26:08]line [16:26:08]line [16:26:08]written 0, free lines is 3325 [16:26:08]MH_Cut [16:26:08]Write to MH i2c: D1 01 00 36 06 01 0E [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: D1 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: D1 01 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: D1 01 00 36 06 00 0D [16:26:08]Write to MH i2c: 01 00 00 37 06 3D [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]OFD Sender: No OFD packet to send [16:26:08]*** Cut start [16:26:08]*** Partial cut [16:26:08]*** CUTSNS_PIN = 1 [16:26:08]*** CUTSNS_PIN = 0 [16:26:09]*** Brake cut motor [16:26:09]Read from MH i2c: 01 [16:26:09]MH_I2C_Read... [16:26:09]*** Stop cut motor [16:26:09]*** Cut end [16:26:09]Read from MH i2c: 01 07 00 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [16:26:09]process_action close_receipt done [16:26:09]requested_data is exist [16:26:09]produce_requested_data [16:26:09]requested_item fm.sn is exist - process it [16:26:09]wFMCommunicate request_size=4 [16:26:09]MH_SAM_APDU [16:26:09]CAPDU: 80 11 00 00 [16:26:09]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [16:26:09]Write i2c OK [16:26:09]MH_I2C_Read... [16:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:09]Read from MH i2c: E2 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 17 00 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [16:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:09]wFMCommunicate OK [16:26:09]requested_item fd.num is exist - process it [16:26:09]SAM_PROTO_GetFieldsCounters [16:26:09]wFMCommunicate request_size=4 [16:26:09]MH_SAM_APDU [16:26:09]CAPDU: 80 13 00 00 [16:26:09]Write to MH i2c: E2 08 00 39 06 80 13 00 00 00 00 00 00 BB [16:26:09]Write i2c OK [16:26:09]MH_I2C_Read... [16:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:09]Read from MH i2c: E2 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 62 00 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 62 00 39 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:09]wFMCommunicate OK [16:26:09]SAM_PROTO_GetFieldsCounters done [16:26:09]requested_item shift.num is exist - process it [16:26:09]requested_item shift.opened is exist - process it [16:26:09]req_shift_opened [16:26:09]FM_GetShiftState [16:26:09]SAM_PROTO_GetShiftState [16:26:09]wFMCommunicate request_size=4 [16:26:09]MH_SAM_APDU [16:26:09]CAPDU: 80 13 01 00 [16:26:09]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [16:26:09]Write i2c OK [16:26:09]MH_I2C_Read... [16:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:09]Read from MH i2c: E2 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 0E 00 [16:26:09]MH_I2C_Read... [16:26:09]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [16:26:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:26:09]wFMCommunicate OK [16:26:09]SAM_PROTO_GetShiftState done [16:26:09]FM_GetShiftState done [16:26:09]req_shift_opened done [16:26:09]requested_item shift.open_date is exist - process it [16:26:09]req_shift_open_date [16:26:09]req_shift_open_date done [16:26:09]produce_requested_data done [16:26:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69905,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:26:09]process_action_free close_receipt [16:26:09]json_value_free [16:26:09]json_value_free done [16:26:09]process_json_proto returns [16:26:09]Send response to host [16:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69905,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:26:09]free response buf [16:26:09]execute_script done [16:26:09]execute_script returns [16:26:09]free content buf [16:26:09]Sock 7.Close socket [16:26:09]Sock 7.Thread stoped [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:55]accept exits with 9 [16:27:55]New connection [16:27:55]New thread 3067026788 created [16:27:55]Thread 3067170148 joined [16:27:55]Waiting for new connection... [16:27:55] Sock 9.Parse request [16:27:55]Sock 9.Check first char [16:27:55]Sock 9.First char is OK [16:27:55]request: POST /json_proto HTTP/1.0 [16:27:55]Method: POST [16:27:55]URL: /json_proto [16:27:55]Method is POST - this is cgi request [16:27:55]url: /json_proto [16:27:55]query_string will be loaded in cgi processing [16:27:55]execute_cgi json_proto POST (null) [16:27:55]execute_cgi path=json_proto method=POST [16:27:55]POST find Content-Length [16:27:55]Host: 172.17.50.3:8080 [16:27:55]Content-Length: 776 [16:27:55]Content-Type: application/json [16:27:55] [16:27:55]POST finish read [16:27:55]Found Content-Length = 776 [16:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 71.250, "sum" : 5500.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5500.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:55]execute_script... [16:27:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 71.250, "sum" : 5500.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5500.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:55]POST & json_proto [16:27:55]process_json_proto [16:27:55]json parsed OK: [16:27:55]protocol is kg_v1.0 [16:27:55]action value=close_receipt [16:27:55]process_action close_receipt [16:27:55]cmd_close_receipt [16:27:55]MH_GetDate [16:27:55]Write to MH i2c: F0 00 00 3B 06 30 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: F0 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: F0 09 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: F0 09 00 3B 06 00 0C 81 16 67 6B 98 1E 66 CA [16:27:55]GetLastDocTimeStamp 1729527966 [16:27:55]current date 1729528076 [16:27:55]FM_GetShiftState [16:27:55]SAM_PROTO_GetShiftState [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 13 01 00 [16:27:55]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0E 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EB [16:27:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_GetShiftState done [16:27:55]FM_GetShiftState done [16:27:55]opened in 1729469703 [16:27:55]opened+sec_in_day 1729556103 [16:27:55]quantity*price = 550050 [16:27:55]sum+1 = 550051 [16:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5500.50 НСП 1% : 48.68 НДС 12% : 584.12 Наличными: 0.00 Безнал.: 5500.50 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 296 21.10.2024 16:27 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69906 ФПД: 5646071027796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69906&fm=5646071027796&tin=02508201610067®Number=0000000000156251&sum=550050 [16:27:56]StoreToDocumentArchive [16:27:56]shift 194 fd 69906 [16:27:56]save to /storage/0194/doc_00069906 [16:27:56]save last doc name /storage/0194/doc_00069906 to /storage/kkm_last_doc_name [16:27:56]save OK [16:27:56]Clear old archive folders... [16:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:27:56]tlvbuf is 01125EC0 [16:27:56]SAM_PROTO_ClearQueue [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 09 00 00 [16:27:56]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [16:27:56]RAPDU: 90 00 [16:27:56]wFMCommunicate OK [16:27:56]SAM_PROTO_ClearQueue done [16:27:56]KKMCreateOFDPacket [16:27:56]OFDProtocolAddRootSTLVToBuf [16:27:56]FM_MakeSignedData [16:27:56]FM_MakeSignedData [16:27:56]SAM_PROTO_SignData [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 0D 01 02 [16:27:56]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [16:27:56]RAPDU: 90 00 [16:27:56]wFMCommunicate OK [16:27:56]wFMCommunicate request_size=255 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0C 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 11 01 [16:27:56]Write to MH i2c: E2 02 01 4B 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0C 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 11 01 00 00 52 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 03 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [16:27:57]RAPDU: 90 00 [16:27:57]wFMCommunicate OK [16:27:57]wFMCommunicate request_size=16 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 05 22 94 0E D8 54 [16:27:57]Write to MH i2c: E2 13 00 4C 06 80 0D 02 02 0B 00 00 35 04 06 00 05 22 94 0E D8 54 00 00 16 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 03 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [16:27:57]RAPDU: 90 00 [16:27:57]wFMCommunicate OK [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 0D 03 02 [16:27:57]Write to MH i2c: E2 08 00 4D 06 80 0D 03 02 00 00 00 00 CE [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0B 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0B 00 4D 06 00 8E 31 FE CF 67 69 E7 99 90 00 AB [16:27:57]RAPDU: 8E 31 FE CF 67 69 E7 99 90 00 [16:27:57]wFMCommunicate OK [16:27:57]SAM_PROTO_SignData done [16:27:57]FM_MakeSignedData done [16:27:57]CreateOFDProtocolMessage [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 11 00 00 [16:27:57]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [16:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:27:57]wFMCommunicate OK [16:27:57]CreateOFDProtocolMessage done [16:27:57]OFDSenderStorePacket 69906 [16:27:57]StoreOFDPacket docnum=69906 [16:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8F 75 0D 01 D4 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0C 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 11 01 00 35 04 06 00 05 22 94 0E D8 54 8E 31 FE CF 67 69 E7 99 [16:27:57]CheckFolder [16:27:57]dirname=/storage/ofd_packets [16:27:57]CheckFolder done [16:27:57]ProducePacketName [16:27:57]name=ofd_packets/00069906 [16:27:57]NVStorageSaveData ofd_packets/00069906 [16:27:57]File name is /storage/ofd_packets/00069906 [16:27:57]Write 307 bytes [16:27:57]NVStorageSaveData done [16:27:57]OFDSenderStorePacket done [16:27:57]KKMCreateOFDPacket done [16:27:57]NVStorageSaveData kkm_last_timestamp [16:27:57]File name is /storage/kkm_last_timestamp [16:27:57]Write 4 bytes [16:27:57]NVStorageSaveData done [16:27:57]ExternCall_PrintAddStr [16:27:57]wPrintStart [16:27:57]Write to MH i2c: 01 00 00 4F 06 55 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 FF 0F 6A [16:27:57]RasterBufferAndPrint [16:27:57]line Счет N : (1)2885659 [16:27:57]line ИНН: 02508201610067 [16:27:57]line Контрольно-Кассовый Чек [16:27:57]line ПРОДАЖА [16:27:57]line ТРК (МРК, ГНК) : 21 [16:27:57]line Товар: 2710194240 [16:27:57]line D-ENERGY Дт-К-2 [16:27:57]line 71.250 * 77.20 [16:27:57]line = 5500.50 [16:27:57]line НДС 12% НСП 1% [16:27:57]line > о реализуемом товаре [16:27:57]line ИТОГО: 5500.50 [16:27:57]line НСП 1% : 48.68 [16:27:57]line НДС 12% : 584.12 [16:27:57]line Наличными: 0.00 [16:27:57]line Безнал.: 5500.50 [16:27:57]line Место: АЗС № 85 "Партнер Нефть" [16:27:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:27:57]line СНО: Общий режим [16:27:57]line Чек 296 21.10.2024 16:27 [16:27:57]line Смена: 194 ФФД: 1.0 [16:27:57]line ЗНМ: 0300000167 [16:27:57]line РНМ: 0000000000156251 [16:27:57]line Версия ККМ: v1.0 [16:27:57]line Платежная система: Mbank [16:27:57]line ФМ: 0000000000963346 [16:27:57]line ФД: 69906 [16:27:57]line ФПД: 5646071027796 [16:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162756&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69906&fm=5646071027796&tin=02508201610067®Number=0000000000156251&sum=550050 [16:27:57]OFD Sender: Processing packet 69906 [packets to send 18, broken 17] [16:27:57]ProducePacketName [16:27:57]name=ofd_packets/00069906 [16:27:57]OFD Sender: To server: pG, [16:27:57]CommunicateWithHost lk.salyk.kg:30040 [16:27:57]ConnectInit lk.salyk.kg [16:27:57]written 0, free lines is 4095 [16:27:57]Connected sock=10 [16:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8F 75 0D 01 D4 0E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0C 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 11 01 00 35 04 06 00 05 22 94 0E D8 54 8E 31 FE CF 67 69 E7 99 [16:27:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE E7 47 00 6B E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 11 01 00 F4 03 04 00 AF 2A 16 67 B6 04 01 00 00 DB B8 21 5D 5A CF 54 03 [16:27:57]CommunicateWithHost err = 0 [16:27:57]CheckOFDResponse [16:27:57]1017 (14) - 77093643461234 [16:27:57]1041 (16) - 0000000000963346 [16:27:57]1040 (4) - 69906 [16:27:57]1012 (4) - 21.10.2024 10:19 [16:27:57]1206 (1) - 0 [16:27:57]OFD Sender: Remove packet 69906 [16:27:57]ProducePacketName [16:27:57]name=ofd_packets/00069906 [16:27:57]NVStorageDeleteData [16:27:57]Write to MH i2c: 01 00 00 78 06 7E [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 1E 0D B0 [16:27:57]RasterBufferAndPrint [16:27:57]line [16:27:57]line [16:27:57]line [16:27:57]line [16:27:57]line [16:27:57]written 0, free lines is 3363 [16:27:57]MH_Cut [16:27:57]Write to MH i2c: D1 01 00 7F 06 01 57 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: D1 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: D1 01 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: D1 01 00 7F 06 00 56 [16:27:57]Write to MH i2c: 01 00 00 80 06 86 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:58]OFD Sender: No OFD packet to send [16:27:58]*** Cut start [16:27:58]*** Partial cut [16:27:58]*** CUTSNS_PIN = 1 [16:27:58]*** CUTSNS_PIN = 0 [16:27:58]*** Brake cut motor [16:27:59]Read from MH i2c: 01 [16:27:59]MH_I2C_Read... [16:27:59]*** Stop cut motor [16:27:59]*** Cut end [16:27:59]Read from MH i2c: 01 07 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [16:27:59]process_action close_receipt done [16:27:59]requested_data is exist [16:27:59]produce_requested_data [16:27:59]requested_item fm.sn is exist - process it [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 11 00 00 [16:27:59]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 17 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [16:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:27:59]wFMCommunicate OK [16:27:59]requested_item fd.num is exist - process it [16:27:59]SAM_PROTO_GetFieldsCounters [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 13 00 00 [16:27:59]Write to MH i2c: E2 08 00 82 06 80 13 00 00 00 00 00 00 04 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 62 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 62 00 82 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:59]wFMCommunicate OK [16:27:59]SAM_PROTO_GetFieldsCounters done [16:27:59]requested_item shift.num is exist - process it [16:27:59]requested_item shift.opened is exist - process it [16:27:59]req_shift_opened [16:27:59]FM_GetShiftState [16:27:59]SAM_PROTO_GetShiftState [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 13 01 00 [16:27:59]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0E 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [16:27:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:27:59]wFMCommunicate OK [16:27:59]SAM_PROTO_GetShiftState done [16:27:59]FM_GetShiftState done [16:27:59]req_shift_opened done [16:27:59]requested_item shift.open_date is exist - process it [16:27:59]req_shift_open_date [16:27:59]req_shift_open_date done [16:27:59]produce_requested_data done [16:27:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69906,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:27:59]process_action_free close_receipt [16:27:59]json_value_free [16:27:59]json_value_free done [16:27:59]process_json_proto returns [16:27:59]Send response to host [16:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69906,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:27:59]free response buf [16:27:59]execute_script done [16:27:59]execute_script returns [16:27:59]free content buf [16:27:59]Sock 9.Close socket [16:27:59]Sock 9.Thread stoped [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:04]accept exits with 7 [16:30:04]New connection [16:30:04]New thread 3067170148 created [16:30:04]Thread 3067026788 joined [16:30:04]Waiting for new connection... [16:30:04] Sock 7.Parse request [16:30:04]Sock 7.Check first char [16:30:04]Sock 7.First char is OK [16:30:04]request: POST /json_proto HTTP/1.0 [16:30:04]Method: POST [16:30:04]URL: /json_proto [16:30:04]Method is POST - this is cgi request [16:30:04]url: /json_proto [16:30:04]query_string will be loaded in cgi processing [16:30:04]execute_cgi json_proto POST (null) [16:30:04]execute_cgi path=json_proto method=POST [16:30:04]POST find Content-Length [16:30:04]Host: 172.17.50.3:8080 [16:30:04]Content-Length: 678 [16:30:04]Content-Type: application/json [16:30:04] [16:30:04]POST finish read [16:30:04]Found Content-Length = 678 [16:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [16:30:04]execute_script... [16:30: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)2885663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [16:30:04]POST & json_proto [16:30:04]process_json_proto [16:30:04]json parsed OK: [16:30:04]protocol is kg_v1.0 [16:30:04]action value=close_receipt [16:30:04]process_action close_receipt [16:30:04]cmd_close_receipt [16:30:04]MH_GetDate [16:30:04]Write to MH i2c: F0 00 00 84 06 79 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: F0 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: F0 09 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: F0 09 00 84 06 00 8D 81 16 67 6B 98 1E 66 94 [16:30:04]GetLastDocTimeStamp 1729528076 [16:30:04]current date 1729528205 [16:30:04]FM_GetShiftState [16:30:04]SAM_PROTO_GetShiftState [16:30:04]wFMCommunicate request_size=4 [16:30:04]MH_SAM_APDU [16:30:04]CAPDU: 80 13 01 00 [16:30:04]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:04]Read from MH i2c: E2 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: E2 0E 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 34 [16:30:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:30:04]wFMCommunicate OK [16:30:04]SAM_PROTO_GetShiftState done [16:30:04]FM_GetShiftState done [16:30:04]opened in 1729469703 [16:30:04]opened+sec_in_day 1729556103 [16:30:04]quantity*price = 60027 [16:30:04]sum+1 = 60029 [16:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 297 21.10.2024 16:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69907 ФПД: 218545320260129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69907&fm=218545320260129&tin=02508201610067®Number=0000000000156251&sum=60000 [16:30:05]StoreToDocumentArchive [16:30:05]shift 194 fd 69907 [16:30:05]save to /storage/0194/doc_00069907 [16:30:05]save last doc name /storage/0194/doc_00069907 to /storage/kkm_last_doc_name [16:30:05]save OK [16:30:05]Clear old archive folders... [16:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:05]tlvbuf is 01125C70 [16:30:05]SAM_PROTO_ClearQueue [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 09 00 00 [16:30:05]Write to MH i2c: E2 08 00 92 06 80 09 00 00 00 00 00 00 0A [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 03 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [16:30:05]RAPDU: 90 00 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_ClearQueue done [16:30:05]KKMCreateOFDPacket [16:30:05]OFDProtocolAddRootSTLVToBuf [16:30:05]FM_MakeSignedData [16:30:05]FM_MakeSignedData [16:30:05]SAM_PROTO_SignData [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 0D 01 02 [16:30:05]Write to MH i2c: E2 08 00 93 06 80 0D 01 02 00 00 00 00 12 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 03 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [16:30:05]RAPDU: 90 00 [16:30:05]wFMCommunicate OK [16:30:05]wFMCommunicate request_size=255 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 29 01 00 00 F4 03 04 00 8D 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 11 01 00 35 04 06 00 C6 [16:30:05]Write to MH i2c: E2 02 01 94 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 29 01 00 00 F4 03 04 00 8D 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 11 01 00 35 04 06 00 C6 00 00 5B [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]wFMCommunicate request_size=10 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 02 02 05 C4 0C 2E 72 21 [16:30:06]Write to MH i2c: E2 0D 00 95 06 80 0D 02 02 05 00 C4 0C 2E 72 21 00 00 B0 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 03 02 [16:30:06]Write to MH i2c: E2 08 00 96 06 80 0D 03 02 00 00 00 00 17 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 0B 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 0B 00 96 06 00 20 B0 60 03 1C 5E C6 EB 90 00 76 [16:30:06]RAPDU: 20 B0 60 03 1C 5E C6 EB 90 00 [16:30:06]wFMCommunicate OK [16:30:06]SAM_PROTO_SignData done [16:30:06]FM_MakeSignedData done [16:30:06]CreateOFDProtocolMessage [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 11 00 00 [16:30:06]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 17 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 17 00 97 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [16:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:30:06]wFMCommunicate OK [16:30:06]CreateOFDProtocolMessage done [16:30:06]OFDSenderStorePacket 69907 [16:30:06]StoreOFDPacket docnum=69907 [16:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA DA 07 01 32 7C 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 29 01 00 00 F4 03 04 00 8D 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 11 01 00 35 04 06 00 C6 C4 0C 2E 72 21 20 B0 60 03 1C 5E C6 EB [16:30:06]CheckFolder [16:30:06]dirname=/storage/ofd_packets [16:30:06]CheckFolder done [16:30:06]ProducePacketName [16:30:06]name=ofd_packets/00069907 [16:30:06]NVStorageSaveData ofd_packets/00069907 [16:30:06]File name is /storage/ofd_packets/00069907 [16:30:06]Write 301 bytes [16:30:06]NVStorageSaveData done [16:30:06]OFDSenderStorePacket done [16:30:06]KKMCreateOFDPacket done [16:30:06]NVStorageSaveData kkm_last_timestamp [16:30:06]File name is /storage/kkm_last_timestamp [16:30:06]Write 4 bytes [16:30:06]NVStorageSaveData done [16:30:06]ExternCall_PrintAddStr [16:30:06]OFD Sender: Processing packet 69907 [packets to send 18, broken 17] [16:30:06]ProducePacketName [16:30:06]name=ofd_packets/00069907 [16:30:06]OFD Sender: To server: pG, [16:30:06]CommunicateWithHost lk.salyk.kg:30040 [16:30:06]ConnectInit lk.salyk.kg [16:30:06]wPrintStart [16:30:06]Write to MH i2c: 01 00 00 98 06 9E [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: 01 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: 01 07 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [16:30:06]RasterBufferAndPrint [16:30:06]line Счет N : (1)2885663 [16:30:06]line ИНН: 02508201610067 [16:30:06]line Контрольно-Кассовый Чек [16:30:06]line ПРОДАЖА [16:30:06]line ТРК (МРК, ГНК) : 13 [16:30:06]line Товар: 2710124500 [16:30:06]line Аи-95-К-5 [16:30:06]line 8.090 * 74.20 [16:30:06]line = 600.28 [16:30:06]line НДС 12% НСП 1% [16:30:06]line > о реализуемом товаре [16:30:06]line ОКРУГЛЕНИЕ: -0.28 [16:30:06]line ИТОГО: 600.00 [16:30:06]line Внесено: 600.00 [16:30:06]line СДАЧА: 0.00 [16:30:06]line НСП 1% : 5.31 [16:30:06]line НДС 12% : 63.75 [16:30:06]line Наличными: 600.00 [16:30:06]line Безнал.: 0.00 [16:30:06]line Место: АЗС № 85 "Партнер Нефть" [16:30:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:30:06]line СНО: Общий режим [16:30:06]line Чек 297 21.10.2024 16:30 [16:30:06]line Смена: 194 ФФД: 1.0 [16:30:06]line ЗНМ: 0300000167 [16:30:06]line РНМ: 0000000000156251 [16:30:06]line Версия ККМ: v1.0 [16:30:06]line ФМ: 0000000000963346 [16:30:06]line ФД: 69907 [16:30:06]line ФПД: 218545320260129 [16:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163005&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69907&fm=218545320260129&tin=02508201610067®Number=0000000000156251&sum=60000 [16:30:06]Connected sock=10 [16:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA DA 07 01 32 7C 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 29 01 00 00 F4 03 04 00 8D 81 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 11 01 00 35 04 06 00 C6 C4 0C 2E 72 21 20 B0 60 03 1C 5E C6 EB [16:30:06]written 0, free lines is 4095 [16:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F2 06 47 00 49 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 11 01 00 F4 03 04 00 30 2B 16 67 B6 04 01 00 00 2B E1 F0 E1 8A ED FC A9 [16:30:06]CommunicateWithHost err = 0 [16:30:06]CheckOFDResponse [16:30:06]1017 (14) - 77093643461234 [16:30:06]1041 (16) - 0000000000963346 [16:30:06]1040 (4) - 69907 [16:30:06]1012 (4) - 21.10.2024 10:21 [16:30:06]1206 (1) - 0 [16:30:06]OFD Sender: Remove packet 69907 [16:30:06]ProducePacketName [16:30:06]name=ofd_packets/00069907 [16:30:06]NVStorageDeleteData [16:30:07]Write to MH i2c: 01 00 00 C3 06 C9 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 EB 0C C7 [16:30:07]RasterBufferAndPrint [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]written 0, free lines is 3313 [16:30:07]MH_Cut [16:30:07]Write to MH i2c: D1 01 00 CA 06 01 A2 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: D1 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: D1 01 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: D1 01 00 CA 06 00 A1 [16:30:07]Write to MH i2c: 01 00 00 CB 06 D1 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]OFD Sender: No OFD packet to send [16:30:07]*** Cut start [16:30:07]*** Partial cut [16:30:07]*** CUTSNS_PIN = 1 [16:30:07]*** CUTSNS_PIN = 0 [16:30:08]*** Brake cut motor [16:30:08]Read from MH i2c: 01 [16:30:08]MH_I2C_Read... [16:30:08]*** Stop cut motor [16:30:08]*** Cut end [16:30:08]Read from MH i2c: 01 07 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [16:30:08]process_action close_receipt done [16:30:08]requested_data is exist [16:30:08]produce_requested_data [16:30:08]requested_item fm.sn is exist - process it [16:30:08]wFMCommunicate request_size=4 [16:30:08]MH_SAM_APDU [16:30:08]CAPDU: 80 11 00 00 [16:30:08]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:08]Read from MH i2c: E2 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 17 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [16:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:30:08]wFMCommunicate OK [16:30:08]requested_item fd.num is exist - process it [16:30:08]SAM_PROTO_GetFieldsCounters [16:30:08]wFMCommunicate request_size=4 [16:30:08]MH_SAM_APDU [16:30:08]CAPDU: 80 13 00 00 [16:30:08]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:08]Read from MH i2c: E2 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 62 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 62 00 CD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:08]wFMCommunicate OK [16:30:08]SAM_PROTO_GetFieldsCounters done [16:30:08]requested_item shift.num is exist - process it [16:30:08]requested_item shift.opened is exist - process it [16:30:08]req_shift_opened [16:30:08]FM_GetShiftState [16:30:08]SAM_PROTO_GetShiftState [16:30:08]wFMCommunicate request_size=4 [16:30:08]MH_SAM_APDU [16:30:08]CAPDU: 80 13 01 00 [16:30:08]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:08]Read from MH i2c: E2 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 0E 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7D [16:30:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:30:08]wFMCommunicate OK [16:30:08]SAM_PROTO_GetShiftState done [16:30:08]FM_GetShiftState done [16:30:08]req_shift_opened done [16:30:08]requested_item shift.open_date is exist - process it [16:30:08]req_shift_open_date [16:30:08]req_shift_open_date done [16:30:08]produce_requested_data done [16:30:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69907,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:30:08]process_action_free close_receipt [16:30:08]json_value_free [16:30:08]json_value_free done [16:30:08]process_json_proto returns [16:30:08]Send response to host [16:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69907,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:30:08]free response buf [16:30:08]execute_script done [16:30:08]execute_script returns [16:30:08]free content buf [16:30:08]Sock 7.Close socket [16:30:08]Sock 7.Thread stoped [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:20]accept exits with 9 [16:32:20]New connection [16:32:20]New thread 3067026788 created [16:32:20]Thread 3067170148 joined [16:32:20]Waiting for new connection... [16:32:20] Sock 9.Parse request [16:32:20]Sock 9.Check first char [16:32:20]Sock 9.First char is OK [16:32:20]request: POST /json_proto HTTP/1.0 [16:32:20]Method: POST [16:32:20]URL: /json_proto [16:32:20]Method is POST - this is cgi request [16:32:20]url: /json_proto [16:32:20]query_string will be loaded in cgi processing [16:32:20]execute_cgi json_proto POST (null) [16:32:20]execute_cgi path=json_proto method=POST [16:32:20]POST find Content-Length [16:32:20]Host: 172.17.50.3:8080 [16:32:20]Content-Length: 689 [16:32:20]Content-Type: application/json [16:32:20] [16:32:20]POST finish read [16:32:20]Found Content-Length = 689 [16:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 71.250, "sum" : 5500.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5500.00, "total" : 5500.00, "payments": [ { "type": 0, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:20]execute_script... [16:32: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)2885661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 71.250, "sum" : 5500.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5500.00, "total" : 5500.00, "payments": [ { "type": 0, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:20]POST & json_proto [16:32:20]process_json_proto [16:32:20]json parsed OK: [16:32:20]protocol is kg_v1.0 [16:32:20]action value=close_receipt [16:32:20]process_action close_receipt [16:32:20]cmd_close_receipt [16:32:20]MH_GetDate [16:32:20]Write to MH i2c: F0 00 00 CF 06 C4 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 09 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 09 00 CF 06 00 14 82 16 67 6B 98 1E 66 67 [16:32:20]GetLastDocTimeStamp 1729528205 [16:32:20]current date 1729528340 [16:32:20]FM_GetShiftState [16:32:20]SAM_PROTO_GetShiftState [16:32:20]wFMCommunicate request_size=4 [16:32:20]MH_SAM_APDU [16:32:20]CAPDU: 80 13 01 00 [16:32:20]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:20]Read from MH i2c: E2 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 0E 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7F [16:32:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:32:20]wFMCommunicate OK [16:32:20]SAM_PROTO_GetShiftState done [16:32:20]FM_GetShiftState done [16:32:20]opened in 1729469703 [16:32:20]opened+sec_in_day 1729556103 [16:32:20]quantity*price = 550050 [16:32:20]sum+1 = 550051 [16:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 5500.00 Внесено: 5500.00 СДАЧА: 0.00 НСП 1% : 48.68 НДС 12% : 584.12 Наличными: 5500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 298 21.10.2024 16:32 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69908 ФПД: 198884006032561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69908&fm=198884006032561&tin=02508201610067®Number=0000000000156251&sum=550000 [16:32:21]StoreToDocumentArchive [16:32:21]shift 194 fd 69908 [16:32:21]save to /storage/0194/doc_00069908 [16:32:21]save last doc name /storage/0194/doc_00069908 to /storage/kkm_last_doc_name [16:32:21]save OK [16:32:21]Clear old archive folders... [16:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:32:21]tlvbuf is B6EF6910 [16:32:21]SAM_PROTO_ClearQueue [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 09 00 00 [16:32:21]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]SAM_PROTO_ClearQueue done [16:32:21]KKMCreateOFDPacket [16:32:21]OFDProtocolAddRootSTLVToBuf [16:32:21]FM_MakeSignedData [16:32:21]FM_MakeSignedData [16:32:21]SAM_PROTO_SignData [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 0D 01 02 [16:32:21]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]wFMCommunicate request_size=255 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 14 82 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 11 01 [16:32:21]Write to MH i2c: E2 02 01 DF 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 14 82 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 11 01 00 00 8F [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]wFMCommunicate request_size=16 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B4 E2 4A 87 F4 B1 [16:32:21]Write to MH i2c: E2 13 00 E0 06 80 0D 02 02 0B 00 00 35 04 06 00 B4 E2 4A 87 F4 B1 00 00 C1 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 0D 03 02 [16:32:21]Write to MH i2c: E2 08 00 E1 06 80 0D 03 02 00 00 00 00 62 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 0B 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 0B 00 E1 06 00 0B 77 91 55 1F 03 7E 81 90 00 EC [16:32:21]RAPDU: 0B 77 91 55 1F 03 7E 81 90 00 [16:32:21]wFMCommunicate OK [16:32:21]SAM_PROTO_SignData done [16:32:21]FM_MakeSignedData done [16:32:21]CreateOFDProtocolMessage [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 11 00 00 [16:32:21]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 17 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [16:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:32:21]wFMCommunicate OK [16:32:21]CreateOFDProtocolMessage done [16:32:21]OFDSenderStorePacket 69908 [16:32:21]StoreOFDPacket docnum=69908 [16:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 00 FC 0D 01 08 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 14 82 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 11 01 00 35 04 06 00 B4 E2 4A 87 F4 B1 0B 77 91 55 1F 03 7E 81 [16:32:21]CheckFolder [16:32:21]dirname=/storage/ofd_packets [16:32:21]CheckFolder done [16:32:21]ProducePacketName [16:32:21]name=ofd_packets/00069908 [16:32:21]NVStorageSaveData ofd_packets/00069908 [16:32:21]File name is /storage/ofd_packets/00069908 [16:32:21]Write 307 bytes [16:32:21]NVStorageSaveData done [16:32:21]OFDSenderStorePacket done [16:32:21]KKMCreateOFDPacket done [16:32:21]NVStorageSaveData kkm_last_timestamp [16:32:21]File name is /storage/kkm_last_timestamp [16:32:21]Write 4 bytes [16:32:21]NVStorageSaveData done [16:32:21]ExternCall_PrintAddStr [16:32:21]wPrintStart [16:32:21]Write to MH i2c: 01 00 00 E3 06 E9 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: 01 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: 01 07 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: 01 07 00 E3 06 00 00 00 00 00 FF 0F FE [16:32:21]RasterBufferAndPrint [16:32:21]line Счет N : (1)2885661 [16:32:21]line ИНН: 02508201610067 [16:32:21]line Контрольно-Кассовый Чек [16:32:21]line ПРОДАЖА [16:32:21]line ТРК (МРК, ГНК) : 21 [16:32:21]line Товар: 2710194240 [16:32:21]line D-ENERGY Дт-К-2 [16:32:21]line 71.250 * 77.20 [16:32:21]line = 5500.50 [16:32:21]line НДС 12% НСП 1% [16:32:21]line > о реализуемом товаре [16:32:21]line ОКРУГЛЕНИЕ: -0.50 [16:32:21]line ИТОГО: 5500.00 [16:32:21]line Внесено: 5500.00 [16:32:21]line СДАЧА: 0.00 [16:32:21]line НСП 1% : 48.68 [16:32:21]line НДС 12% : 584.12 [16:32:21]line Наличными: 5500.00 [16:32:21]line Безнал.: 0.00 [16:32:21]line Место: АЗС № 85 "Партнер Нефть" [16:32:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:32:21]line СНО: Общий режим [16:32:21]line Чек 298 21.10.2024 16:32 [16:32:22]line Смена: 194 ФФД: 1.0 [16:32:22]line ЗНМ: 0300000167 [16:32:22]line РНМ: 0000000000156251 [16:32:22]line Версия ККМ: v1.0 [16:32:22]line ФМ: 0000000000963346 [16:32:22]line ФД: 69908 [16:32:22]line ФПД: 198884006032561 [16:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69908&fm=198884006032561&tin=02508201610067®Number=0000000000156251&sum=550000 [16:32:22]OFD Sender: Processing packet 69908 [packets to send 18, broken 17] [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00069908 [16:32:22]OFD Sender: To server: pG, [16:32:22]CommunicateWithHost lk.salyk.kg:30040 [16:32:22]ConnectInit lk.salyk.kg [16:32:22]written 0, free lines is 4095 [16:32:22]Connected sock=10 [16:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 00 FC 0D 01 08 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 52 16 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 14 82 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 11 01 00 35 04 06 00 B4 E2 4A 87 F4 B1 0B 77 91 55 1F 03 7E 81 [16:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 61 FF 47 00 8D 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 39 36 33 33 34 36 10 04 04 00 14 11 01 00 F4 03 04 00 B8 2B 16 67 B6 04 01 00 00 85 D8 31 81 69 71 A7 6A [16:32:22]CommunicateWithHost err = 0 [16:32:22]CheckOFDResponse [16:32:22]1017 (14) - 77093643461234 [16:32:22]1041 (16) - 0000000000963346 [16:32:22]1040 (4) - 69908 [16:32:22]1012 (4) - 21.10.2024 10:23 [16:32:22]1206 (1) - 0 [16:32:22]OFD Sender: Remove packet 69908 [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00069908 [16:32:22]NVStorageDeleteData [16:32:22]Write to MH i2c: 01 00 00 0E 07 15 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 F0 0C 18 [16:32:22]RasterBufferAndPrint [16:32:22]line [16:32:22]line [16:32:22]line [16:32:22]line [16:32:22]line [16:32:22]written 0, free lines is 3318 [16:32:22]MH_Cut [16:32:22]Write to MH i2c: D1 01 00 15 07 01 EE [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: D1 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: D1 01 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: D1 01 00 15 07 00 ED [16:32:22]Write to MH i2c: 01 00 00 16 07 1D [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]OFD Sender: No OFD packet to send [16:32:23]*** Cut start [16:32:23]*** Partial cut [16:32:23]*** CUTSNS_PIN = 1 [16:32:23]*** CUTSNS_PIN = 0 [16:32:23]*** Brake cut motor [16:32:23]Read from MH i2c: 01 [16:32:23]MH_I2C_Read... [16:32:23]*** Stop cut motor [16:32:23]*** Cut end [16:32:23]Read from MH i2c: 01 07 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [16:32:23]process_action close_receipt done [16:32:23]requested_data is exist [16:32:23]produce_requested_data [16:32:23]requested_item fm.sn is exist - process it [16:32:23]wFMCommunicate request_size=4 [16:32:23]MH_SAM_APDU [16:32:23]CAPDU: 80 11 00 00 [16:32:23]Write to MH i2c: E2 08 00 17 07 80 11 00 00 00 00 00 00 98 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:23]Read from MH i2c: E2 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: E2 17 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: E2 17 00 17 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [16:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:32:23]wFMCommunicate OK [16:32:23]requested_item fd.num is exist - process it [16:32:23]SAM_PROTO_GetFieldsCounters [16:32:23]wFMCommunicate request_size=4 [16:32:23]MH_SAM_APDU [16:32:23]CAPDU: 80 13 00 00 [16:32:23]Write to MH i2c: E2 08 00 18 07 80 13 00 00 00 00 00 00 9B [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 62 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 62 00 18 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_GetFieldsCounters done [16:32:24]requested_item shift.num is exist - process it [16:32:24]requested_item shift.opened is exist - process it [16:32:24]req_shift_opened [16:32:24]FM_GetShiftState [16:32:24]SAM_PROTO_GetShiftState [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 13 01 00 [16:32:24]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C9 [16:32:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_GetShiftState done [16:32:24]FM_GetShiftState done [16:32:24]req_shift_opened done [16:32:24]requested_item shift.open_date is exist - process it [16:32:24]req_shift_open_date [16:32:24]req_shift_open_date done [16:32:24]produce_requested_data done [16:32:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69908,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:32:24]process_action_free close_receipt [16:32:24]json_value_free [16:32:24]json_value_free done [16:32:24]process_json_proto returns [16:32:24]Send response to host [16:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69908,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:32:24]free response buf [16:32:24]execute_script done [16:32:24]execute_script returns [16:32:24]free content buf [16:32:24]Sock 9.Close socket [16:32:24]Sock 9.Thread stoped [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:29]accept exits with 7 [16:36:29]New connection [16:36:29]New thread 3067170148 created [16:36:29]Thread 3067026788 joined [16:36:29]Waiting for new connection... [16:36:29] Sock 7.Parse request [16:36:29]Sock 7.Check first char [16:36:29]Sock 7.First char is OK [16:36:29]request: POST /json_proto HTTP/1.0 [16:36:29]Method: POST [16:36:29]URL: /json_proto [16:36:29]Method is POST - this is cgi request [16:36:29]url: /json_proto [16:36:29]query_string will be loaded in cgi processing [16:36:29]execute_cgi json_proto POST (null) [16:36:29]execute_cgi path=json_proto method=POST [16:36:29]POST find Content-Length [16:36:29]Host: 172.17.50.3:8080 [16:36:29]Content-Length: 678 [16:36:29]Content-Type: application/json [16:36:29] [16:36:29]POST finish read [16:36:29]Found Content-Length = 678 [16:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885665", "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" : 9.440, "sum" : 700.45, "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" ] } } [16:36:29]execute_script... [16:36: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)2885665", "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" : 9.440, "sum" : 700.45, "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" ] } } [16:36:29]POST & json_proto [16:36:29]process_json_proto [16:36:29]json parsed OK: [16:36:29]protocol is kg_v1.0 [16:36:29]action value=close_receipt [16:36:29]process_action close_receipt [16:36:29]cmd_close_receipt [16:36:29]MH_GetDate [16:36:29]Write to MH i2c: F0 00 00 1A 07 10 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 1A 07 00 0E 83 16 67 6B 98 1E 66 AE [16:36:29]GetLastDocTimeStamp 1729528340 [16:36:29]current date 1729528590 [16:36:29]FM_GetShiftState [16:36:29]SAM_PROTO_GetShiftState [16:36:29]wFMCommunicate request_size=4 [16:36:29]MH_SAM_APDU [16:36:29]CAPDU: 80 13 01 00 [16:36:29]Write to MH i2c: E2 08 00 1B 07 80 13 01 00 00 00 00 00 9F [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:29]Read from MH i2c: E2 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 1B 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CB [16:36:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:36:29]wFMCommunicate OK [16:36:29]SAM_PROTO_GetShiftState done [16:36:29]FM_GetShiftState done [16:36:29]opened in 1729469703 [16:36:29]opened+sec_in_day 1729556103 [16:36:29]quantity*price = 70044 [16:36:29]sum+1 = 70046 [16:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 299 21.10.2024 16:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69909 ФПД: 59988973505806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69909&fm=59988973505806&tin=02508201610067®Number=0000000000156251&sum=70000 [16:36:30]StoreToDocumentArchive [16:36:30]shift 194 fd 69909 [16:36:30]save to /storage/0194/doc_00069909 [16:36:30]save last doc name /storage/0194/doc_00069909 to /storage/kkm_last_doc_name [16:36:30]save OK [16:36:30]Clear old archive folders... [16:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:30]tlvbuf is 0113C110 [16:36:30]SAM_PROTO_ClearQueue [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 09 00 00 [16:36:30]Write to MH i2c: E2 08 00 28 07 80 09 00 00 00 00 00 00 A1 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]SAM_PROTO_ClearQueue done [16:36:30]KKMCreateOFDPacket [16:36:30]OFDProtocolAddRootSTLVToBuf [16:36:30]FM_MakeSignedData [16:36:30]FM_MakeSignedData [16:36:30]SAM_PROTO_SignData [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 0D 01 02 [16:36:30]Write to MH i2c: E2 08 00 29 07 80 0D 01 02 00 00 00 00 A9 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]wFMCommunicate request_size=255 [16:36:30]MH_SAM_APDU [16:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 2B 01 00 00 F4 03 04 00 0E 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 11 01 00 35 04 06 00 36 [16:36:30]Write to MH i2c: E2 02 01 2A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 2B 01 00 00 F4 03 04 00 0E 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 11 01 00 35 04 06 00 36 00 00 72 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=10 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 02 02 05 8F 45 74 CD 0E [16:36:31]Write to MH i2c: E2 0D 00 2B 07 80 0D 02 02 05 00 8F 45 74 CD 0E 00 00 D9 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 03 02 [16:36:31]Write to MH i2c: E2 08 00 2C 07 80 0D 03 02 00 00 00 00 AE [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 2C 07 00 F6 19 80 72 36 8C 47 27 90 00 E0 [16:36:31]RAPDU: F6 19 80 72 36 8C 47 27 90 00 [16:36:31]wFMCommunicate OK [16:36:31]SAM_PROTO_SignData done [16:36:31]FM_MakeSignedData done [16:36:31]CreateOFDProtocolMessage [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 11 00 00 [16:36:31]Write to MH i2c: E2 08 00 2D 07 80 11 00 00 00 00 00 00 AE [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 2D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [16:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:36:31]wFMCommunicate OK [16:36:31]CreateOFDProtocolMessage done [16:36:31]OFDSenderStorePacket 69909 [16:36:31]StoreOFDPacket docnum=69909 [16:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 01 07 01 70 66 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 2B 01 00 00 F4 03 04 00 0E 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 11 01 00 35 04 06 00 36 8F 45 74 CD 0E F6 19 80 72 36 8C 47 27 [16:36:31]CheckFolder [16:36:31]dirname=/storage/ofd_packets [16:36:31]CheckFolder done [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00069909 [16:36:31]NVStorageSaveData ofd_packets/00069909 [16:36:31]File name is /storage/ofd_packets/00069909 [16:36:31]Write 301 bytes [16:36:31]NVStorageSaveData done [16:36:31]OFDSenderStorePacket done [16:36:31]KKMCreateOFDPacket done [16:36:31]NVStorageSaveData kkm_last_timestamp [16:36:31]File name is /storage/kkm_last_timestamp [16:36:31]Write 4 bytes [16:36:31]NVStorageSaveData done [16:36:31]ExternCall_PrintAddStr [16:36:31]wPrintStart [16:36:31]Write to MH i2c: 01 00 00 2E 07 35 [16:36:31]OFD Sender: Processing packet 69909 [packets to send 18, broken 17] [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00069909 [16:36:31]OFD Sender: To server: pG, [16:36:31]CommunicateWithHost lk.salyk.kg:30040 [16:36:31]ConnectInit lk.salyk.kg [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 2E 07 00 00 00 00 00 FF 0F 4A [16:36:31]RasterBufferAndPrint [16:36:31]line Счет N : (1)2885665 [16:36:31]line ИНН: 02508201610067 [16:36:31]line Контрольно-Кассовый Чек [16:36:31]line ПРОДАЖА [16:36:31]line ТРК (МРК, ГНК) : 33 [16:36:31]line Товар: 2710124500 [16:36:31]line Аи-95-К-5 [16:36:31]line 9.440 * 74.20 [16:36:31]line = 700.45 [16:36:31]line НДС 12% НСП 1% [16:36:31]line > о реализуемом товаре [16:36:31]line ОКРУГЛЕНИЕ: -0.45 [16:36:31]line ИТОГО: 700.00 [16:36:31]line Внесено: 700.00 [16:36:31]line СДАЧА: 0.00 [16:36:31]line НСП 1% : 6.20 [16:36:31]line НДС 12% : 74.38 [16:36:31]line Наличными: 700.00 [16:36:31]line Безнал.: 0.00 [16:36:31]line Место: АЗС № 85 "Партнер Нефть" [16:36:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:36:31]line СНО: Общий режим [16:36:31]line Чек 299 21.10.2024 16:36 [16:36:31]line Смена: 194 ФФД: 1.0 [16:36:31]line ЗНМ: 0300000167 [16:36:31]line РНМ: 0000000000156251 [16:36:31]line Версия ККМ: v1.0 [16:36:31]line ФМ: 0000000000963346 [16:36:31]line ФД: 69909 [16:36:31]line ФПД: 59988973505806 [16:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69909&fm=59988973505806&tin=02508201610067®Number=0000000000156251&sum=70000 [16:36:31]Connected sock=10 [16:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 01 07 01 70 66 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 2B 01 00 00 F4 03 04 00 0E 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 11 01 00 35 04 06 00 36 8F 45 74 CD 0E F6 19 80 72 36 8C 47 27 [16:36:31]written 0, free lines is 4095 [16:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 6D 47 00 60 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 11 01 00 F4 03 04 00 B1 2C 16 67 B6 04 01 00 00 C1 08 7F A5 AB 5A 74 27 [16:36:31]CommunicateWithHost err = 0 [16:36:31]CheckOFDResponse [16:36:31]1017 (14) - 77093643461234 [16:36:31]1041 (16) - 0000000000963346 [16:36:31]1040 (4) - 69909 [16:36:31]1012 (4) - 21.10.2024 10:28 [16:36:31]1206 (1) - 0 [16:36:31]OFD Sender: Remove packet 69909 [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00069909 [16:36:31]NVStorageDeleteData [16:36:32]Write to MH i2c: 01 00 00 59 07 60 [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 07 00 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 07 00 59 07 00 00 00 00 00 E8 0C 5B [16:36:32]RasterBufferAndPrint [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]written 0, free lines is 3310 [16:36:32]MH_Cut [16:36:32]Write to MH i2c: D1 01 00 60 07 01 39 [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 01 00 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 01 00 60 07 00 38 [16:36:32]Write to MH i2c: 01 00 00 61 07 68 [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]OFD Sender: No OFD packet to send [16:36:32]*** Cut start [16:36:32]*** Partial cut [16:36:32]*** CUTSNS_PIN = 1 [16:36:32]*** CUTSNS_PIN = 0 [16:36:33]*** Brake cut motor [16:36:33]Read from MH i2c: 01 [16:36:33]MH_I2C_Read... [16:36:33]*** Stop cut motor [16:36:33]*** Cut end [16:36:33]Read from MH i2c: 01 07 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: 01 07 00 61 07 00 00 00 00 00 FF 0F 7D [16:36:33]process_action close_receipt done [16:36:33]requested_data is exist [16:36:33]produce_requested_data [16:36:33]requested_item fm.sn is exist - process it [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 11 00 00 [16:36:33]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 62 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [16:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:36:33]wFMCommunicate OK [16:36:33]requested_item fd.num is exist - process it [16:36:33]SAM_PROTO_GetFieldsCounters [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 00 00 [16:36:33]Write to MH i2c: E2 08 00 63 07 80 13 00 00 00 00 00 00 E6 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 63 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [16:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetFieldsCounters done [16:36:33]requested_item shift.num is exist - process it [16:36:33]requested_item shift.opened is exist - process it [16:36:33]req_shift_opened [16:36:33]FM_GetShiftState [16:36:33]SAM_PROTO_GetShiftState [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 01 00 [16:36:33]Write to MH i2c: E2 08 00 64 07 80 13 01 00 00 00 00 00 E8 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:33]Read from MH i2c: E2 0E 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 64 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 14 [16:36:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetShiftState done [16:36:33]FM_GetShiftState done [16:36:33]req_shift_opened done [16:36:33]requested_item shift.open_date is exist - process it [16:36:33]req_shift_open_date [16:36:33]req_shift_open_date done [16:36:33]produce_requested_data done [16:36:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69909,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:36:33]process_action_free close_receipt [16:36:33]json_value_free [16:36:33]json_value_free done [16:36:33]process_json_proto returns [16:36:33]Send response to host [16:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69909,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:36:33]free response buf [16:36:33]execute_script done [16:36:33]execute_script returns [16:36:33]free content buf [16:36:33]Sock 7.Close socket [16:36:33]Sock 7.Thread stoped [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:45]accept exits with 9 [16:37:45]New connection [16:37:45]New thread 3067026788 created [16:37:45]Thread 3067170148 joined [16:37:45]Waiting for new connection... [16:37:45] Sock 9.Parse request [16:37:45]Sock 9.Check first char [16:37:45]Sock 9.First char is OK [16:37:45]request: POST /json_proto HTTP/1.0 [16:37:45]Method: POST [16:37:45]URL: /json_proto [16:37:45]Method is POST - this is cgi request [16:37:45]url: /json_proto [16:37:45]query_string will be loaded in cgi processing [16:37:45]execute_cgi json_proto POST (null) [16:37:45]execute_cgi path=json_proto method=POST [16:37:45]POST find Content-Length [16:37:45]Host: 172.17.50.3:8080 [16:37:45]Content-Length: 770 [16:37:45]Content-Type: application/json [16:37:45] [16:37:45]POST finish read [16:37:45]Found Content-Length = 770 [16:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885666", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:45]execute_script... [16:37: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)2885666", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:45]POST & json_proto [16:37:45]process_json_proto [16:37:45]json parsed OK: [16:37:45]protocol is kg_v1.0 [16:37:45]action value=close_receipt [16:37:45]process_action close_receipt [16:37:45]cmd_close_receipt [16:37:45]MH_GetDate [16:37:45]Write to MH i2c: F0 00 00 65 07 5B [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: F0 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: F0 09 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: F0 09 00 65 07 00 59 83 16 67 6B 98 1E 66 44 [16:37:45]GetLastDocTimeStamp 1729528590 [16:37:45]current date 1729528665 [16:37:45]FM_GetShiftState [16:37:45]SAM_PROTO_GetShiftState [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 13 01 00 [16:37:45]Write to MH i2c: E2 08 00 66 07 80 13 01 00 00 00 00 00 EA [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 66 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 16 [16:37:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_GetShiftState done [16:37:45]FM_GetShiftState done [16:37:45]opened in 1729469703 [16:37:45]opened+sec_in_day 1729556103 [16:37:45]quantity*price = 100015 [16:37:45]sum+1 = 100017 [16:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 300 21.10.2024 16:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69910 ФПД: 114593330826668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69910&fm=114593330826668&tin=02508201610067®Number=0000000000156251&sum=100016 [16:37:46]StoreToDocumentArchive [16:37:46]shift 194 fd 69910 [16:37:46]save to /storage/0194/doc_00069910 [16:37:46]save last doc name /storage/0194/doc_00069910 to /storage/kkm_last_doc_name [16:37:46]save OK [16:37:46]Clear old archive folders... [16:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:46]tlvbuf is 0110ADA0 [16:37:46]SAM_PROTO_ClearQueue [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 09 00 00 [16:37:46]Write to MH i2c: E2 08 00 73 07 80 09 00 00 00 00 00 00 EC [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_ClearQueue done [16:37:46]KKMCreateOFDPacket [16:37:46]OFDProtocolAddRootSTLVToBuf [16:37:46]FM_MakeSignedData [16:37:46]FM_MakeSignedData [16:37:46]SAM_PROTO_SignData [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 01 02 [16:37:46]Write to MH i2c: E2 08 00 74 07 80 0D 01 02 00 00 00 00 F4 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=255 [16:37:46]MH_SAM_APDU [16:37: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 59 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 11 01 00 35 04 06 00 68 [16:37:46]Write to MH i2c: E2 02 01 75 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 59 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 11 01 00 35 04 06 00 68 00 00 6F [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=10 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 02 02 05 38 D6 C7 0D AC [16:37:46]Write to MH i2c: E2 0D 00 76 07 80 0D 02 02 05 00 38 D6 C7 0D AC 00 00 8F [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 03 02 [16:37:46]Write to MH i2c: E2 08 00 77 07 80 0D 03 02 00 00 00 00 F9 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0B 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0B 00 77 07 00 83 02 CB 1D 24 F6 95 75 90 00 8B [16:37:46]RAPDU: 83 02 CB 1D 24 F6 95 75 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_SignData done [16:37:46]FM_MakeSignedData done [16:37:46]CreateOFDProtocolMessage [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 11 00 00 [16:37:46]Write to MH i2c: E2 08 00 78 07 80 11 00 00 00 00 00 00 F9 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 78 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [16:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:37:46]wFMCommunicate OK [16:37:46]CreateOFDProtocolMessage done [16:37:46]OFDSenderStorePacket 69910 [16:37:46]StoreOFDPacket docnum=69910 [16:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F3 83 07 01 6B 74 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 59 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 11 01 00 35 04 06 00 68 38 D6 C7 0D AC 83 02 CB 1D 24 F6 95 75 [16:37:46]CheckFolder [16:37:46]dirname=/storage/ofd_packets [16:37:46]CheckFolder done [16:37:46]ProducePacketName [16:37:46]name=ofd_packets/00069910 [16:37:46]NVStorageSaveData ofd_packets/00069910 [16:37:46]File name is /storage/ofd_packets/00069910 [16:37:46]Write 301 bytes [16:37:46]NVStorageSaveData done [16:37:46]OFDSenderStorePacket done [16:37:46]KKMCreateOFDPacket done [16:37:46]NVStorageSaveData kkm_last_timestamp [16:37:46]File name is /storage/kkm_last_timestamp [16:37:46]Write 4 bytes [16:37:46]NVStorageSaveData done [16:37:46]ExternCall_PrintAddStr [16:37:46]wPrintStart [16:37:46]Write to MH i2c: 01 00 00 79 07 80 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [16:37:46]RasterBufferAndPrint [16:37:46]line Счет N : (1)2885666 [16:37:46]line ИНН: 02508201610067 [16:37:46]line Контрольно-Кассовый Чек [16:37:46]line ПРОДАЖА [16:37:46]line ТРК (МРК, ГНК) : 42 [16:37:46]line Товар: 2710124130 [16:37:46]line Аи-92-К-5 [16:37:46]line 14.950 * 66.90 [16:37:46]line = 1000.16 [16:37:46]line НДС 12% НСП 1% [16:37:46]line > о реализуемом товаре [16:37:46]line ИТОГО: 1000.16 [16:37:46]line НСП 1% : 8.85 [16:37:46]line НДС 12% : 106.21 [16:37:46]line Наличными: 0.00 [16:37:46]line Безнал.: 1000.16 [16:37:46]line Место: АЗС № 85 "Партнер Нефть" [16:37:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:37:46]line СНО: Общий режим [16:37:46]line Чек 300 21.10.2024 16:37 [16:37:46]line Смена: 194 ФФД: 1.0 [16:37:46]line ЗНМ: 0300000167 [16:37:46]line РНМ: 0000000000156251 [16:37:46]line Версия ККМ: v1.0 [16:37:46]line Платежная система: Mbank [16:37:46]line ФМ: 0000000000963346 [16:37:46]line ФД: 69910 [16:37:46]line ФПД: 114593330826668 [16:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163745&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69910&fm=114593330826668&tin=02508201610067®Number=0000000000156251&sum=100016 [16:37:47]OFD Sender: Processing packet 69910 [packets to send 18, broken 17] [16:37:47]ProducePacketName [16:37:47]name=ofd_packets/00069910 [16:37:47]OFD Sender: To server: pG, [16:37:47]CommunicateWithHost lk.salyk.kg:30040 [16:37:47]ConnectInit lk.salyk.kg [16:37:47]written 0, free lines is 4095 [16:37:47]Connected sock=10 [16:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F3 83 07 01 6B 74 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 59 83 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 11 01 00 35 04 06 00 68 38 D6 C7 0D AC 83 02 CB 1D 24 F6 95 75 [16:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 87 08 47 00 36 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 11 01 00 F4 03 04 00 FD 2C 16 67 B6 04 01 00 00 BC 0E 49 A1 9D 72 7E 4D [16:37:47]CommunicateWithHost err = 0 [16:37:47]CheckOFDResponse [16:37:47]1017 (14) - 77093643461234 [16:37:47]1041 (16) - 0000000000963346 [16:37:47]1040 (4) - 69910 [16:37:47]1012 (4) - 21.10.2024 10:29 [16:37:47]1206 (1) - 0 [16:37:47]OFD Sender: Remove packet 69910 [16:37:47]ProducePacketName [16:37:47]name=ofd_packets/00069910 [16:37:47]NVStorageDeleteData [16:37:47]Write to MH i2c: 01 00 00 A2 07 A9 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 07 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 07 00 A2 07 00 00 00 00 00 1D 0D DA [16:37:47]RasterBufferAndPrint [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]written 0, free lines is 3363 [16:37:47]MH_Cut [16:37:47]Write to MH i2c: D1 01 00 A9 07 01 82 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 01 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 01 00 A9 07 00 81 [16:37:47]Write to MH i2c: 01 00 00 AA 07 B1 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]OFD Sender: No OFD packet to send [16:37:48]*** Cut start [16:37:48]*** Partial cut [16:37:48]*** CUTSNS_PIN = 1 [16:37:48]*** CUTSNS_PIN = 0 [16:37:48]*** Brake cut motor [16:37:48]Read from MH i2c: 01 [16:37:48]MH_I2C_Read... [16:37:48]*** Stop cut motor [16:37:48]*** Cut end [16:37:48]Read from MH i2c: 01 07 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 FF 0F C6 [16:37:48]process_action close_receipt done [16:37:48]requested_data is exist [16:37:48]produce_requested_data [16:37:48]requested_item fm.sn is exist - process it [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 11 00 00 [16:37:48]Write to MH i2c: E2 08 00 AB 07 80 11 00 00 00 00 00 00 2C [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 AB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [16:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:37:48]wFMCommunicate OK [16:37:48]requested_item fd.num is exist - process it [16:37:48]SAM_PROTO_GetFieldsCounters [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 13 00 00 [16:37:48]Write to MH i2c: E2 08 00 AC 07 80 13 00 00 00 00 00 00 2F [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 62 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 62 00 AC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:49]wFMCommunicate OK [16:37:49]SAM_PROTO_GetFieldsCounters done [16:37:49]requested_item shift.num is exist - process it [16:37:49]requested_item shift.opened is exist - process it [16:37:49]req_shift_opened [16:37:49]FM_GetShiftState [16:37:49]SAM_PROTO_GetShiftState [16:37:49]wFMCommunicate request_size=4 [16:37:49]MH_SAM_APDU [16:37:49]CAPDU: 80 13 01 00 [16:37:49]Write to MH i2c: E2 08 00 AD 07 80 13 01 00 00 00 00 00 31 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:49]Read from MH i2c: E2 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 0E 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: E2 0E 00 AD 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5D [16:37:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:37:49]wFMCommunicate OK [16:37:49]SAM_PROTO_GetShiftState done [16:37:49]FM_GetShiftState done [16:37:49]req_shift_opened done [16:37:49]requested_item shift.open_date is exist - process it [16:37:49]req_shift_open_date [16:37:49]req_shift_open_date done [16:37:49]produce_requested_data done [16:37:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69910,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:37:49]process_action_free close_receipt [16:37:49]json_value_free [16:37:49]json_value_free done [16:37:49]process_json_proto returns [16:37:49]Send response to host [16:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69910,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:37:49]free response buf [16:37:49]execute_script done [16:37:49]execute_script returns [16:37:49]free content buf [16:37:49]Sock 9.Close socket [16:37:49]Sock 9.Thread stoped [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:36]accept exits with 7 [16:41:36]New connection [16:41:36]New thread 3067170148 created [16:41:36]Thread 3067026788 joined [16:41:36]Waiting for new connection... [16:41:36] Sock 7.Parse request [16:41:36]Sock 7.Check first char [16:41:36]Sock 7.First char is OK [16:41:36]request: POST /json_proto HTTP/1.0 [16:41:36]Method: POST [16:41:36]URL: /json_proto [16:41:36]Method is POST - this is cgi request [16:41:36]url: /json_proto [16:41:36]query_string will be loaded in cgi processing [16:41:36]execute_cgi json_proto POST (null) [16:41:36]execute_cgi path=json_proto method=POST [16:41:36]POST find Content-Length [16:41:36]Host: 172.17.50.3:8080 [16:41:36]Content-Length: 684 [16:41:36]Content-Type: application/json [16:41:36] [16:41:36]POST finish read [16:41:36]Found Content-Length = 684 [16:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:36]execute_script... [16:41: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)2885667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:36]POST & json_proto [16:41:36]process_json_proto [16:41:36]json parsed OK: [16:41:36]protocol is kg_v1.0 [16:41:36]action value=close_receipt [16:41:36]process_action close_receipt [16:41:36]cmd_close_receipt [16:41:36]MH_GetDate [16:41:36]Write to MH i2c: F0 00 00 AE 07 A4 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: F0 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: F0 09 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: F0 09 00 AE 07 00 41 84 16 67 6B 98 1E 66 76 [16:41:36]GetLastDocTimeStamp 1729528665 [16:41:36]current date 1729528897 [16:41:36]FM_GetShiftState [16:41:36]SAM_PROTO_GetShiftState [16:41:36]wFMCommunicate request_size=4 [16:41:36]MH_SAM_APDU [16:41:36]CAPDU: 80 13 01 00 [16:41:36]Write to MH i2c: E2 08 00 AF 07 80 13 01 00 00 00 00 00 33 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:36]Read from MH i2c: E2 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 0E 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 0E 00 AF 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5F [16:41:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:41:36]wFMCommunicate OK [16:41:36]SAM_PROTO_GetShiftState done [16:41:36]FM_GetShiftState done [16:41:36]opened in 1729469703 [16:41:36]opened+sec_in_day 1729556103 [16:41:36]quantity*price = 50025 [16:41:36]sum+1 = 50027 [16:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 301 21.10.2024 16:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69911 ФПД: 4032944569890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69911&fm=4032944569890&tin=02508201610067®Number=0000000000156251&sum=50000 [16:41:37]StoreToDocumentArchive [16:41:37]shift 194 fd 69911 [16:41:37]save to /storage/0194/doc_00069911 [16:41:37]save last doc name /storage/0194/doc_00069911 to /storage/kkm_last_doc_name [16:41:37]save OK [16:41:37]Clear old archive folders... [16:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:41:37]tlvbuf is 01127210 [16:41:37]SAM_PROTO_ClearQueue [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 09 00 00 [16:41:37]Write to MH i2c: E2 08 00 BC 07 80 09 00 00 00 00 00 00 35 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 03 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [16:41:37]RAPDU: 90 00 [16:41:37]wFMCommunicate OK [16:41:37]SAM_PROTO_ClearQueue done [16:41:37]KKMCreateOFDPacket [16:41:37]OFDProtocolAddRootSTLVToBuf [16:41:37]FM_MakeSignedData [16:41:37]FM_MakeSignedData [16:41:37]SAM_PROTO_SignData [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 0D 01 02 [16:41:37]Write to MH i2c: E2 08 00 BD 07 80 0D 01 02 00 00 00 00 3D [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [16:41:38]RAPDU: 90 00 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=255 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 41 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 11 01 [16:41:38]Write to MH i2c: E2 02 01 BE 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 41 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 11 01 00 00 9A [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]OFD Sender: No OFD packet to send [16:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [16:41:38]RAPDU: 90 00 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=16 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 03 AA FE 3A 7E 22 [16:41:38]Write to MH i2c: E2 13 00 BF 07 80 0D 02 02 0B 00 00 35 04 06 00 03 AA FE 3A 7E 22 00 00 1A [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [16:41:38]RAPDU: 90 00 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 0D 03 02 [16:41:38]Write to MH i2c: E2 08 00 C0 07 80 0D 03 02 00 00 00 00 42 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 0B 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 0B 00 C0 07 00 39 E2 7A 31 8D EC 18 63 90 00 FD [16:41:38]RAPDU: 39 E2 7A 31 8D EC 18 63 90 00 [16:41:38]wFMCommunicate OK [16:41:38]SAM_PROTO_SignData done [16:41:38]FM_MakeSignedData done [16:41:38]CreateOFDProtocolMessage [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 11 00 00 [16:41:38]Write to MH i2c: E2 08 00 C1 07 80 11 00 00 00 00 00 00 42 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 17 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 17 00 C1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [16:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:41:38]wFMCommunicate OK [16:41:38]CreateOFDProtocolMessage done [16:41:38]OFDSenderStorePacket 69911 [16:41:38]StoreOFDPacket docnum=69911 [16:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 25 F4 0D 01 F3 8B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 41 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 11 01 00 35 04 06 00 03 AA FE 3A 7E 22 39 E2 7A 31 8D EC 18 63 [16:41:38]CheckFolder [16:41:38]dirname=/storage/ofd_packets [16:41:38]CheckFolder done [16:41:38]ProducePacketName [16:41:38]name=ofd_packets/00069911 [16:41:38]NVStorageSaveData ofd_packets/00069911 [16:41:38]File name is /storage/ofd_packets/00069911 [16:41:38]Write 307 bytes [16:41:38]NVStorageSaveData done [16:41:38]OFDSenderStorePacket done [16:41:38]KKMCreateOFDPacket done [16:41:38]NVStorageSaveData kkm_last_timestamp [16:41:38]File name is /storage/kkm_last_timestamp [16:41:38]Write 4 bytes [16:41:38]NVStorageSaveData done [16:41:38]ExternCall_PrintAddStr [16:41:38]wPrintStart [16:41:38]Write to MH i2c: 01 00 00 C2 07 C9 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: 01 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: 01 07 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: 01 07 00 C2 07 00 00 00 00 00 FF 0F DE [16:41:38]RasterBufferAndPrint [16:41:38]line Счет N : (1)2885667 [16:41:38]line ИНН: 02508201610067 [16:41:38]line Контрольно-Кассовый Чек [16:41:38]line ПРОДАЖА [16:41:38]line ТРК (МРК, ГНК) : 21 [16:41:38]line Товар: 2710194240 [16:41:38]line D-ENERGY Дт-К-2 [16:41:38]line 6.480 * 77.20 [16:41:38]line = 500.26 [16:41:38]line НДС 12% НСП 1% [16:41:38]line > о реализуемом товаре [16:41:38]line ОКРУГЛЕНИЕ: -0.26 [16:41:38]line ИТОГО: 500.00 [16:41:38]line Внесено: 500.00 [16:41:38]line СДАЧА: 0.00 [16:41:38]line НСП 1% : 4.43 [16:41:38]line НДС 12% : 53.12 [16:41:38]line Наличными: 500.00 [16:41:38]line Безнал.: 0.00 [16:41:38]line Место: АЗС № 85 "Партнер Нефть" [16:41:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:41:38]line СНО: Общий режим [16:41:38]line Чек 301 21.10.2024 16:41 [16:41:38]line Смена: 194 ФФД: 1.0 [16:41:38]line ЗНМ: 0300000167 [16:41:38]line РНМ: 0000000000156251 [16:41:38]line Версия ККМ: v1.0 [16:41:38]line ФМ: 0000000000963346 [16:41:38]line ФД: 69911 [16:41:38]line ФПД: 4032944569890 [16:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69911&fm=4032944569890&tin=02508201610067®Number=0000000000156251&sum=50000 [16:41:38]OFD Sender: Processing packet 69911 [packets to send 18, broken 17] [16:41:38]ProducePacketName [16:41:38]name=ofd_packets/00069911 [16:41:38]OFD Sender: To server: pG, [16:41:38]CommunicateWithHost lk.salyk.kg:30040 [16:41:38]ConnectInit lk.salyk.kg [16:41:38]written 0, free lines is 4095 [16:41:38]Connected sock=10 [16:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 25 F4 0D 01 F3 8B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 41 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 11 01 00 35 04 06 00 03 AA FE 3A 7E 22 39 E2 7A 31 8D EC 18 63 [16:41:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 6F 47 00 92 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 11 01 00 F4 03 04 00 E4 2D 16 67 B6 04 01 00 00 C4 74 35 53 B5 C0 DA FA [16:41:39]CommunicateWithHost err = 0 [16:41:39]CheckOFDResponse [16:41:39]1017 (14) - 77093643461234 [16:41:39]1041 (16) - 0000000000963346 [16:41:39]1040 (4) - 69911 [16:41:39]1012 (4) - 21.10.2024 10:33 [16:41:39]1206 (1) - 0 [16:41:39]OFD Sender: Remove packet 69911 [16:41:39]ProducePacketName [16:41:39]name=ofd_packets/00069911 [16:41:39]NVStorageDeleteData [16:41:39]Write to MH i2c: 01 00 00 ED 07 F4 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 E9 0C F0 [16:41:39]RasterBufferAndPrint [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]written 0, free lines is 3311 [16:41:39]MH_Cut [16:41:39]Write to MH i2c: D1 01 00 F4 07 01 CD [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 01 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 01 00 F4 07 00 CC [16:41:39]Write to MH i2c: 01 00 00 F5 07 FC [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]OFD Sender: No OFD packet to send [16:41:39]*** Cut start [16:41:39]*** Partial cut [16:41:39]*** CUTSNS_PIN = 1 [16:41:39]*** CUTSNS_PIN = 0 [16:41:40]*** Brake cut motor [16:41:40]Read from MH i2c: 01 [16:41:40]MH_I2C_Read... [16:41:40]*** Stop cut motor [16:41:40]*** Cut end [16:41:40]Read from MH i2c: 01 07 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 FF 0F 11 [16:41:40]process_action close_receipt done [16:41:40]requested_data is exist [16:41:40]produce_requested_data [16:41:40]requested_item fm.sn is exist - process it [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 11 00 00 [16:41:40]Write to MH i2c: E2 08 00 F6 07 80 11 00 00 00 00 00 00 77 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 17 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 17 00 F6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [16:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:41:40]wFMCommunicate OK [16:41:40]requested_item fd.num is exist - process it [16:41:40]SAM_PROTO_GetFieldsCounters [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 13 00 00 [16:41:40]Write to MH i2c: E2 08 00 F7 07 80 13 00 00 00 00 00 00 7A [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 62 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 62 00 F7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [16:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_GetFieldsCounters done [16:41:40]requested_item shift.num is exist - process it [16:41:40]requested_item shift.opened is exist - process it [16:41:40]req_shift_opened [16:41:40]FM_GetShiftState [16:41:40]SAM_PROTO_GetShiftState [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 13 01 00 [16:41:40]Write to MH i2c: E2 08 00 F8 07 80 13 01 00 00 00 00 00 7C [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:40]Read from MH i2c: E2 0E 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 0E 00 F8 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A8 [16:41:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_GetShiftState done [16:41:40]FM_GetShiftState done [16:41:40]req_shift_opened done [16:41:40]requested_item shift.open_date is exist - process it [16:41:40]req_shift_open_date [16:41:40]req_shift_open_date done [16:41:40]produce_requested_data done [16:41:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69911,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:41:40]process_action_free close_receipt [16:41:40]json_value_free [16:41:40]json_value_free done [16:41:40]process_json_proto returns [16:41:40]Send response to host [16:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69911,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:41:40]free response buf [16:41:40]execute_script done [16:41:40]execute_script returns [16:41:40]free content buf [16:41:40]Sock 7.Close socket [16:41:40]Sock 7.Thread stoped [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:08]accept exits with 9 [16:42:08]New connection [16:42:08]New thread 3067026788 created [16:42:08]Thread 3067170148 joined [16:42:08]Waiting for new connection... [16:42:08] Sock 9.Parse request [16:42:08]Sock 9.Check first char [16:42:08]Sock 9.First char is OK [16:42:08]request: POST /json_proto HTTP/1.0 [16:42:08]Method: POST [16:42:08]URL: /json_proto [16:42:08]Method is POST - this is cgi request [16:42:08]url: /json_proto [16:42:08]query_string will be loaded in cgi processing [16:42:08]execute_cgi json_proto POST (null) [16:42:08]execute_cgi path=json_proto method=POST [16:42:08]POST find Content-Length [16:42:08]Host: 172.17.50.3:8080 [16:42:08]Content-Length: 767 [16:42:08]Content-Type: application/json [16:42:08] [16:42:08]POST finish read [16:42:08]Found Content-Length = 767 [16:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885668", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:08]execute_script... [16: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)2885668", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:08]POST & json_proto [16:42:08]process_json_proto [16:42:08]json parsed OK: [16:42:08]protocol is kg_v1.0 [16:42:08]action value=close_receipt [16:42:08]process_action close_receipt [16:42:08]cmd_close_receipt [16:42:08]MH_GetDate [16:42:08]Write to MH i2c: F0 00 00 F9 07 EF [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 09 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 09 00 F9 07 00 61 84 16 67 6B 98 1E 66 E1 [16:42:08]GetLastDocTimeStamp 1729528897 [16:42:08]current date 1729528929 [16:42:08]FM_GetShiftState [16:42:08]SAM_PROTO_GetShiftState [16:42:08]wFMCommunicate request_size=4 [16:42:08]MH_SAM_APDU [16:42:08]CAPDU: 80 13 01 00 [16:42:08]Write to MH i2c: E2 08 00 FA 07 80 13 01 00 00 00 00 00 7E [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:08]Read from MH i2c: E2 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: E2 0E 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: E2 0E 00 FA 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AA [16:42:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:42:08]wFMCommunicate OK [16:42:08]SAM_PROTO_GetShiftState done [16:42:08]FM_GetShiftState done [16:42:08]opened in 1729469703 [16:42:08]opened+sec_in_day 1729556103 [16:42:08]quantity*price = 60027 [16:42:08]sum+1 = 60029 [16:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 302 21.10.2024 16:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69912 ФПД: 211293062985083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69912&fm=211293062985083&tin=02508201610067®Number=0000000000156251&sum=60028 [16:42:09]StoreToDocumentArchive [16:42:09]shift 194 fd 69912 [16:42:09]save to /storage/0194/doc_00069912 [16:42:09]save last doc name /storage/0194/doc_00069912 to /storage/kkm_last_doc_name [16:42:09]save OK [16:42:09]Clear old archive folders... [16:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:09]tlvbuf is 01112250 [16:42:09]SAM_PROTO_ClearQueue [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 09 00 00 [16:42:09]Write to MH i2c: E2 08 00 07 08 80 09 00 00 00 00 00 00 81 [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [16:42:09]RAPDU: 90 00 [16:42:09]wFMCommunicate OK [16:42:09]SAM_PROTO_ClearQueue done [16:42:09]KKMCreateOFDPacket [16:42:09]OFDProtocolAddRootSTLVToBuf [16:42:09]FM_MakeSignedData [16:42:09]FM_MakeSignedData [16:42:09]SAM_PROTO_SignData [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 0D 01 02 [16:42:09]Write to MH i2c: E2 08 00 08 08 80 0D 01 02 00 00 00 00 89 [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [16:42:09]RAPDU: 90 00 [16:42:09]wFMCommunicate OK [16:42:09]wFMCommunicate request_size=255 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 61 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 11 01 00 35 04 06 00 C0 [16:42:09]Write to MH i2c: E2 02 01 09 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 61 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 11 01 00 35 04 06 00 C0 00 00 E5 [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]OFD Sender: No OFD packet to send [16:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [16:42:09]RAPDU: 90 00 [16:42:09]wFMCommunicate OK [16:42:09]wFMCommunicate request_size=10 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 0D 02 02 05 2B 7F F6 75 7B [16:42:09]Write to MH i2c: E2 0D 00 0A 08 80 0D 02 02 05 00 2B 7F F6 75 7B 00 00 26 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 03 02 [16:42:10]Write to MH i2c: E2 08 00 0B 08 80 0D 03 02 00 00 00 00 8E [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 0B 08 00 84 2C 16 0B D5 6E 21 64 90 00 28 [16:42:10]RAPDU: 84 2C 16 0B D5 6E 21 64 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_SignData done [16:42:10]FM_MakeSignedData done [16:42:10]CreateOFDProtocolMessage [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 11 00 00 [16:42:10]Write to MH i2c: E2 08 00 0C 08 80 11 00 00 00 00 00 00 8E [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 0C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [16:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:10]wFMCommunicate OK [16:42:10]CreateOFDProtocolMessage done [16:42:10]OFDSenderStorePacket 69912 [16:42:10]StoreOFDPacket docnum=69912 [16:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 22 37 07 01 B0 E6 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 61 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 11 01 00 35 04 06 00 C0 2B 7F F6 75 7B 84 2C 16 0B D5 6E 21 64 [16:42:10]CheckFolder [16:42:10]dirname=/storage/ofd_packets [16:42:10]CheckFolder done [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00069912 [16:42:10]NVStorageSaveData ofd_packets/00069912 [16:42:10]File name is /storage/ofd_packets/00069912 [16:42:10]Write 301 bytes [16:42:10]NVStorageSaveData done [16:42:10]OFDSenderStorePacket done [16:42:10]KKMCreateOFDPacket done [16:42:10]NVStorageSaveData kkm_last_timestamp [16:42:10]File name is /storage/kkm_last_timestamp [16:42:10]Write 4 bytes [16:42:10]NVStorageSaveData done [16:42:10]ExternCall_PrintAddStr [16:42:10]wPrintStart [16:42:10]Write to MH i2c: 01 00 00 0D 08 15 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 FF 0F 2A [16:42:10]RasterBufferAndPrint [16:42:10]line Счет N : (1)2885668 [16:42:10]line ИНН: 02508201610067 [16:42:10]line Контрольно-Кассовый Чек [16:42:10]line ПРОДАЖА [16:42:10]line ТРК (МРК, ГНК) : 33 [16:42:10]line Товар: 2710124500 [16:42:10]line Аи-95-К-5 [16:42:10]line 8.090 * 74.20 [16:42:10]line = 600.28 [16:42:10]line НДС 12% НСП 1% [16:42:10]line > о реализуемом товаре [16:42:10]line ИТОГО: 600.28 [16:42:10]line НСП 1% : 5.31 [16:42:10]line НДС 12% : 63.75 [16:42:10]line Наличными: 0.00 [16:42:10]line Безнал.: 600.28 [16:42:10]line Место: АЗС № 85 "Партнер Нефть" [16:42:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:42:10]line СНО: Общий режим [16:42:10]line Чек 302 21.10.2024 16:42 [16:42:10]line Смена: 194 ФФД: 1.0 [16:42:10]line ЗНМ: 0300000167 [16:42:10]line РНМ: 0000000000156251 [16:42:10]line Версия ККМ: v1.0 [16:42:10]line Платежная система: Mbank [16:42:10]line ФМ: 0000000000963346 [16:42:10]line ФД: 69912 [16:42:10]line ФПД: 211293062985083 [16:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69912&fm=211293062985083&tin=02508201610067®Number=0000000000156251&sum=60028 [16:42:10]OFD Sender: Processing packet 69912 [packets to send 18, broken 17] [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00069912 [16:42:10]OFD Sender: To server: pG, [16:42:10]CommunicateWithHost lk.salyk.kg:30040 [16:42:10]ConnectInit lk.salyk.kg [16:42:10]written 0, free lines is 4095 [16:42:10]Connected sock=10 [16:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 22 37 07 01 B0 E6 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 61 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 11 01 00 35 04 06 00 C0 2B 7F F6 75 7B 84 2C 16 0B D5 6E 21 64 [16:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D1 01 47 00 B9 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 11 01 00 F4 03 04 00 04 2E 16 67 B6 04 01 00 00 53 37 2A 1D 8E 2C 8B 1F [16:42:10]CommunicateWithHost err = 0 [16:42:10]CheckOFDResponse [16:42:10]1017 (14) - 77093643461234 [16:42:10]1041 (16) - 0000000000963346 [16:42:10]1040 (4) - 69912 [16:42:10]1012 (4) - 21.10.2024 10:33 [16:42:10]1206 (1) - 0 [16:42:10]OFD Sender: Remove packet 69912 [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00069912 [16:42:10]NVStorageDeleteData [16:42:10]Write to MH i2c: 01 00 00 36 08 3E [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 1E 0D 70 [16:42:10]RasterBufferAndPrint [16:42:10]line [16:42:10]line [16:42:10]line [16:42:10]line [16:42:10]line [16:42:10]written 0, free lines is 3363 [16:42:10]MH_Cut [16:42:10]Write to MH i2c: D1 01 00 3D 08 01 17 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: D1 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: D1 01 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: D1 01 00 3D 08 00 16 [16:42:10]Write to MH i2c: 01 00 00 3E 08 46 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:11]OFD Sender: No OFD packet to send [16:42:11]*** Cut start [16:42:11]*** Partial cut [16:42:11]*** CUTSNS_PIN = 1 [16:42:11]*** CUTSNS_PIN = 0 [16:42:11]*** Brake cut motor [16:42:12]Read from MH i2c: 01 [16:42:12]MH_I2C_Read... [16:42:12]*** Stop cut motor [16:42:12]*** Cut end [16:42:12]Read from MH i2c: 01 07 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 FF 0F 5B [16:42:12]process_action close_receipt done [16:42:12]requested_data is exist [16:42:12]produce_requested_data [16:42:12]requested_item fm.sn is exist - process it [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 11 00 00 [16:42:12]Write to MH i2c: E2 08 00 3F 08 80 11 00 00 00 00 00 00 C1 [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 17 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 17 00 3F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [16:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:12]wFMCommunicate OK [16:42:12]requested_item fd.num is exist - process it [16:42:12]SAM_PROTO_GetFieldsCounters [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 13 00 00 [16:42:12]Write to MH i2c: E2 08 00 40 08 80 13 00 00 00 00 00 00 C4 [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 62 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 62 00 40 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:12]wFMCommunicate OK [16:42:12]SAM_PROTO_GetFieldsCounters done [16:42:12]requested_item shift.num is exist - process it [16:42:12]requested_item shift.opened is exist - process it [16:42:12]req_shift_opened [16:42:12]FM_GetShiftState [16:42:12]SAM_PROTO_GetShiftState [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 13 01 00 [16:42:12]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 0E 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F2 [16:42:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:42:12]wFMCommunicate OK [16:42:12]SAM_PROTO_GetShiftState done [16:42:12]FM_GetShiftState done [16:42:12]req_shift_opened done [16:42:12]requested_item shift.open_date is exist - process it [16:42:12]req_shift_open_date [16:42:12]req_shift_open_date done [16:42:12]produce_requested_data done [16:42:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69912,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:42:12]process_action_free close_receipt [16:42:12]json_value_free [16:42:12]json_value_free done [16:42:12]process_json_proto returns [16:42:12]Send response to host [16:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69912,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:42:12]free response buf [16:42:12]execute_script done [16:42:12]execute_script returns [16:42:12]free content buf [16:42:12]Sock 9.Close socket [16:42:12]Sock 9.Thread stoped [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:36]accept exits with 7 [16:42:36]New connection [16:42:36]New thread 3067170148 created [16:42:36]Thread 3067026788 joined [16:42:36]Waiting for new connection... [16:42:36] Sock 7.Parse request [16:42:36]Sock 7.Check first char [16:42:36]Sock 7.First char is OK [16:42:36]request: POST /json_proto HTTP/1.0 [16:42:36]Method: POST [16:42:36]URL: /json_proto [16:42:36]Method is POST - this is cgi request [16:42:36]url: /json_proto [16:42:36]query_string will be loaded in cgi processing [16:42:36]execute_cgi json_proto POST (null) [16:42:36]execute_cgi path=json_proto method=POST [16:42:36]POST find Content-Length [16:42:36]Host: 172.17.50.3:8080 [16:42:36]Content-Length: 678 [16:42:36]Content-Type: application/json [16:42:36] [16:42:36]POST finish read [16:42:36]Found Content-Length = 678 [16:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885669", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:36]execute_script... [16:42: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)2885669", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:36]POST & json_proto [16:42:36]process_json_proto [16:42:36]json parsed OK: [16:42:36]protocol is kg_v1.0 [16:42:36]action value=close_receipt [16:42:36]process_action close_receipt [16:42:36]cmd_close_receipt [16:42:36]MH_GetDate [16:42:36]Write to MH i2c: F0 00 00 42 08 39 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: F0 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: F0 09 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: F0 09 00 42 08 00 7D 84 16 67 6B 98 1E 66 47 [16:42:36]GetLastDocTimeStamp 1729528929 [16:42:36]current date 1729528957 [16:42:36]FM_GetShiftState [16:42:36]SAM_PROTO_GetShiftState [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 13 01 00 [16:42:36]Write to MH i2c: E2 08 00 43 08 80 13 01 00 00 00 00 00 C8 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 43 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F4 [16:42:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_GetShiftState done [16:42:36]FM_GetShiftState done [16:42:36]opened in 1729469703 [16:42:36]opened+sec_in_day 1729556103 [16:42:36]quantity*price = 50010 [16:42:36]sum+1 = 50012 [16:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 303 21.10.2024 16:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69913 ФПД: 75460390112866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164237&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69913&fm=75460390112866&tin=02508201610067®Number=0000000000156251&sum=50000 [16:42:37]StoreToDocumentArchive [16:42:37]shift 194 fd 69913 [16:42:37]save to /storage/0194/doc_00069913 [16:42:37]save last doc name /storage/0194/doc_00069913 to /storage/kkm_last_doc_name [16:42:37]save OK [16:42:37]Clear old archive folders... [16:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:37]tlvbuf is 010FF340 [16:42:37]SAM_PROTO_ClearQueue [16:42:37]wFMCommunicate request_size=4 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 09 00 00 [16:42:37]Write to MH i2c: E2 08 00 50 08 80 09 00 00 00 00 00 00 CA [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [16:42:37]RAPDU: 90 00 [16:42:37]wFMCommunicate OK [16:42:37]SAM_PROTO_ClearQueue done [16:42:37]KKMCreateOFDPacket [16:42:37]OFDProtocolAddRootSTLVToBuf [16:42:37]FM_MakeSignedData [16:42:37]FM_MakeSignedData [16:42:37]SAM_PROTO_SignData [16:42:37]wFMCommunicate request_size=4 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 0D 01 02 [16:42:37]Write to MH i2c: E2 08 00 51 08 80 0D 01 02 00 00 00 00 D2 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [16:42:37]RAPDU: 90 00 [16:42:37]wFMCommunicate OK [16:42:37]wFMCommunicate request_size=255 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7D 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 11 01 00 35 04 06 00 44 [16:42:37]Write to MH i2c: E2 02 01 52 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7D 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 11 01 00 35 04 06 00 44 00 00 12 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 03 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [16:42:38]RAPDU: 90 00 [16:42:38]wFMCommunicate OK [16:42:38]wFMCommunicate request_size=10 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 0D 02 02 05 A1 7D BF 4E 62 [16:42:38]Write to MH i2c: E2 0D 00 53 08 80 0D 02 02 05 00 A1 7D BF 4E 62 00 00 6C [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 03 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [16:42:38]RAPDU: 90 00 [16:42:38]wFMCommunicate OK [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 0D 03 02 [16:42:38]Write to MH i2c: E2 08 00 54 08 80 0D 03 02 00 00 00 00 D7 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0B 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0B 00 54 08 00 4A 57 85 85 FD 8D D4 69 90 00 4A [16:42:38]RAPDU: 4A 57 85 85 FD 8D D4 69 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_SignData done [16:42:38]FM_MakeSignedData done [16:42:38]CreateOFDProtocolMessage [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 11 00 00 [16:42:38]Write to MH i2c: E2 08 00 55 08 80 11 00 00 00 00 00 00 D7 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 55 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [16:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:38]wFMCommunicate OK [16:42:38]CreateOFDProtocolMessage done [16:42:38]OFDSenderStorePacket 69913 [16:42:38]StoreOFDPacket docnum=69913 [16:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F BF 07 01 A0 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7D 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 11 01 00 35 04 06 00 44 A1 7D BF 4E 62 4A 57 85 85 FD 8D D4 69 [16:42:38]CheckFolder [16:42:38]dirname=/storage/ofd_packets [16:42:38]CheckFolder done [16:42:38]ProducePacketName [16:42:38]name=ofd_packets/00069913 [16:42:38]NVStorageSaveData ofd_packets/00069913 [16:42:38]File name is /storage/ofd_packets/00069913 [16:42:38]Write 301 bytes [16:42:38]NVStorageSaveData done [16:42:38]OFDSenderStorePacket done [16:42:38]KKMCreateOFDPacket done [16:42:38]NVStorageSaveData kkm_last_timestamp [16:42:38]File name is /storage/kkm_last_timestamp [16:42:38]Write 4 bytes [16:42:38]NVStorageSaveData done [16:42:38]OFD Sender: Processing packet 69913 [packets to send 18, broken 17] [16:42:38]ProducePacketName [16:42:38]name=ofd_packets/00069913 [16:42:38]OFD Sender: To server: pG, [16:42:38]CommunicateWithHost lk.salyk.kg:30040 [16:42:38]ConnectInit lk.salyk.kg [16:42:38]ExternCall_PrintAddStr [16:42:38]wPrintStart [16:42:38]Write to MH i2c: 01 00 00 56 08 5E [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 56 08 00 00 00 00 00 FF 0F 73 [16:42:38]RasterBufferAndPrint [16:42:38]line Счет N : (1)2885669 [16:42:38]line ИНН: 02508201610067 [16:42:38]line Контрольно-Кассовый Чек [16:42:38]line ПРОДАЖА [16:42:38]line ТРК (МРК, ГНК) : 33 [16:42:38]line Товар: 2710124500 [16:42:38]line Аи-95-К-5 [16:42:38]line 6.740 * 74.20 [16:42:38]line = 500.11 [16:42:38]line НДС 12% НСП 1% [16:42:38]line > о реализуемом товаре [16:42:38]line ОКРУГЛЕНИЕ: -0.11 [16:42:38]line ИТОГО: 500.00 [16:42:38]line Внесено: 500.00 [16:42:38]line СДАЧА: 0.00 [16:42:38]line НСП 1% : 4.43 [16:42:38]line НДС 12% : 53.11 [16:42:38]line Наличными: 500.00 [16:42:38]line Безнал.: 0.00 [16:42:38]line Место: АЗС № 85 "Партнер Нефть" [16:42:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:42:38]line СНО: Общий режим [16:42:38]line Чек 303 21.10.2024 16:42 [16:42:38]line Смена: 194 ФФД: 1.0 [16:42:38]line ЗНМ: 0300000167 [16:42:38]line РНМ: 0000000000156251 [16:42:38]line Версия ККМ: v1.0 [16:42:38]line ФМ: 0000000000963346 [16:42:38]line ФД: 69913 [16:42:38]line ФПД: 75460390112866 [16:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164237&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69913&fm=75460390112866&tin=02508201610067®Number=0000000000156251&sum=50000 [16:42:38]Connected sock=11 [16:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F BF 07 01 A0 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7D 84 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 11 01 00 35 04 06 00 44 A1 7D BF 4E 62 4A 57 85 85 FD 8D D4 69 [16:42:38]written 0, free lines is 4095 [16:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 87 73 47 00 2C 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 11 01 00 F4 03 04 00 20 2E 16 67 B6 04 01 00 00 93 28 6C F2 F0 E7 49 0D [16:42:38]CommunicateWithHost err = 0 [16:42:38]CheckOFDResponse [16:42:38]1017 (14) - 77093643461234 [16:42:38]1041 (16) - 0000000000963346 [16:42:38]1040 (4) - 69913 [16:42:38]1012 (4) - 21.10.2024 10:34 [16:42:38]1206 (1) - 0 [16:42:38]OFD Sender: Remove packet 69913 [16:42:38]ProducePacketName [16:42:38]name=ofd_packets/00069913 [16:42:38]NVStorageDeleteData [16:42:39]Write to MH i2c: 01 00 00 81 08 89 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 07 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 DF 0C 7B [16:42:39]RasterBufferAndPrint [16:42:39]line [16:42:39]line [16:42:39]line [16:42:39]line [16:42:39]line [16:42:39]written 0, free lines is 3301 [16:42:39]MH_Cut [16:42:39]Write to MH i2c: D1 01 00 88 08 01 62 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: D1 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: D1 01 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: D1 01 00 88 08 00 61 [16:42:39]Write to MH i2c: 01 00 00 89 08 91 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]OFD Sender: No OFD packet to send [16:42:39]*** Cut start [16:42:39]*** Partial cut [16:42:39]*** CUTSNS_PIN = 1 [16:42:39]*** CUTSNS_PIN = 0 [16:42:40]*** Brake cut motor [16:42:40]Read from MH i2c: 01 [16:42:40]MH_I2C_Read... [16:42:40]*** Stop cut motor [16:42:40]*** Cut end [16:42:40]Read from MH i2c: 01 07 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [16:42:40]process_action close_receipt done [16:42:40]requested_data is exist [16:42:40]produce_requested_data [16:42:40]requested_item fm.sn is exist - process it [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 11 00 00 [16:42:40]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 17 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [16:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:40]wFMCommunicate OK [16:42:40]requested_item fd.num is exist - process it [16:42:40]SAM_PROTO_GetFieldsCounters [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 13 00 00 [16:42:40]Write to MH i2c: E2 08 00 8B 08 80 13 00 00 00 00 00 00 0F [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 62 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 62 00 8B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:40]wFMCommunicate OK [16:42:40]SAM_PROTO_GetFieldsCounters done [16:42:40]requested_item shift.num is exist - process it [16:42:40]requested_item shift.opened is exist - process it [16:42:40]req_shift_opened [16:42:40]FM_GetShiftState [16:42:40]SAM_PROTO_GetShiftState [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 13 01 00 [16:42:40]Write to MH i2c: E2 08 00 8C 08 80 13 01 00 00 00 00 00 11 [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 0E 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 0E 00 8C 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3D [16:42:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:42:40]wFMCommunicate OK [16:42:40]SAM_PROTO_GetShiftState done [16:42:40]FM_GetShiftState done [16:42:40]req_shift_opened done [16:42:40]requested_item shift.open_date is exist - process it [16:42:40]req_shift_open_date [16:42:40]req_shift_open_date done [16:42:40]produce_requested_data done [16:42:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69913,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:42:40]process_action_free close_receipt [16:42:40]json_value_free [16:42:40]json_value_free done [16:42:40]process_json_proto returns [16:42:40]Send response to host [16:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69913,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:42:40]free response buf [16:42:40]execute_script done [16:42:40]execute_script returns [16:42:40]free content buf [16:42:40]Sock 7.Close socket [16:42:40]Sock 7.Thread stoped [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:49]accept exits with 9 [16:44:49]New connection [16:44:49]New thread 3067026788 created [16:44:49]Thread 3067170148 joined [16:44:49]Waiting for new connection... [16:44:49] Sock 9.Parse request [16:44:49]Sock 9.Check first char [16:44:49]Sock 9.First char is OK [16:44:49]request: POST /json_proto HTTP/1.0 [16:44:49]Method: POST [16:44:49]URL: /json_proto [16:44:49]Method is POST - this is cgi request [16:44:49]url: /json_proto [16:44:49]query_string will be loaded in cgi processing [16:44:49]execute_cgi json_proto POST (null) [16:44:49]execute_cgi path=json_proto method=POST [16:44:49]POST find Content-Length [16:44:49]Host: 172.17.50.3:8080 [16:44:49]Content-Length: 678 [16:44:49]Content-Type: application/json [16:44:49] [16:44:49]POST finish read [16:44:49]Found Content-Length = 678 [16:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885671", "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" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:49]execute_script... [16:44: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)2885671", "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" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:49]POST & json_proto [16:44:49]process_json_proto [16:44:49]json parsed OK: [16:44:49]protocol is kg_v1.0 [16:44:49]action value=close_receipt [16:44:49]process_action close_receipt [16:44:49]cmd_close_receipt [16:44:49]MH_GetDate [16:44:49]Write to MH i2c: F0 00 00 8D 08 84 [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: F0 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: F0 09 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: F0 09 00 8D 08 00 02 85 16 67 6B 98 1E 66 18 [16:44:49]GetLastDocTimeStamp 1729528957 [16:44:49]current date 1729529090 [16:44:49]FM_GetShiftState [16:44:49]SAM_PROTO_GetShiftState [16:44:49]wFMCommunicate request_size=4 [16:44:49]MH_SAM_APDU [16:44:49]CAPDU: 80 13 01 00 [16:44:49]Write to MH i2c: E2 08 00 8E 08 80 13 01 00 00 00 00 00 13 [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 0E 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 0E 00 8E 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3F [16:44:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:44:49]wFMCommunicate OK [16:44:49]SAM_PROTO_GetShiftState done [16:44:49]FM_GetShiftState done [16:44:49]opened in 1729469703 [16:44:49]opened+sec_in_day 1729556103 [16:44:49]quantity*price = 29034 [16:44:49]sum+1 = 29036 [16:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 304 21.10.2024 16:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69914 ФПД: 86948192052937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69914&fm=86948192052937&tin=02508201610067®Number=0000000000156251&sum=29000 [16:44:50]StoreToDocumentArchive [16:44:50]shift 194 fd 69914 [16:44:50]save to /storage/0194/doc_00069914 [16:44:50]save last doc name /storage/0194/doc_00069914 to /storage/kkm_last_doc_name [16:44:50]save OK [16:44:50]Clear old archive folders... [16:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:50]tlvbuf is 011178B0 [16:44:50]SAM_PROTO_ClearQueue [16:44:50]wFMCommunicate request_size=4 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 09 00 00 [16:44:50]Write to MH i2c: E2 08 00 9B 08 80 09 00 00 00 00 00 00 15 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]SAM_PROTO_ClearQueue done [16:44:50]KKMCreateOFDPacket [16:44:50]OFDProtocolAddRootSTLVToBuf [16:44:50]FM_MakeSignedData [16:44:50]FM_MakeSignedData [16:44:50]SAM_PROTO_SignData [16:44:50]wFMCommunicate request_size=4 [16:44:50]MH_SAM_APDU [16:44:50]CAPDU: 80 0D 01 02 [16:44:50]Write to MH i2c: E2 08 00 9C 08 80 0D 01 02 00 00 00 00 1D [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:50]Read from MH i2c: E2 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [16:44:50]RAPDU: 90 00 [16:44:50]wFMCommunicate OK [16:44:50]wFMCommunicate request_size=255 [16:44:50]MH_SAM_APDU [16:44: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 02 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 11 01 00 35 04 06 00 4F [16:44:50]Write to MH i2c: E2 02 01 9D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 02 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 11 01 00 35 04 06 00 4F 00 00 3A [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 03 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [16:44:51]RAPDU: 90 00 [16:44:51]wFMCommunicate OK [16:44:51]wFMCommunicate request_size=10 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 0D 02 02 05 14 34 19 E6 C9 [16:44:51]Write to MH i2c: E2 0D 00 9E 08 80 0D 02 02 05 00 14 34 19 E6 C9 00 00 3A [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 03 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [16:44:51]RAPDU: 90 00 [16:44:51]wFMCommunicate OK [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 0D 03 02 [16:44:51]Write to MH i2c: E2 08 00 9F 08 80 0D 03 02 00 00 00 00 22 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0B 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0B 00 9F 08 00 89 56 88 A5 91 9A 4E E8 90 00 90 [16:44:51]RAPDU: 89 56 88 A5 91 9A 4E E8 90 00 [16:44:51]wFMCommunicate OK [16:44:51]SAM_PROTO_SignData done [16:44:51]FM_MakeSignedData done [16:44:51]CreateOFDProtocolMessage [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 11 00 00 [16:44:51]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 17 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [16:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:44:51]wFMCommunicate OK [16:44:51]CreateOFDProtocolMessage done [16:44:51]OFDSenderStorePacket 69914 [16:44:51]StoreOFDPacket docnum=69914 [16:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 BB 07 01 49 60 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 02 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 11 01 00 35 04 06 00 4F 14 34 19 E6 C9 89 56 88 A5 91 9A 4E E8 [16:44:51]CheckFolder [16:44:51]dirname=/storage/ofd_packets [16:44:51]CheckFolder done [16:44:51]ProducePacketName [16:44:51]name=ofd_packets/00069914 [16:44:51]NVStorageSaveData ofd_packets/00069914 [16:44:51]File name is /storage/ofd_packets/00069914 [16:44:51]Write 301 bytes [16:44:51]NVStorageSaveData done [16:44:51]OFDSenderStorePacket done [16:44:51]KKMCreateOFDPacket done [16:44:51]NVStorageSaveData kkm_last_timestamp [16:44:51]File name is /storage/kkm_last_timestamp [16:44:51]Write 4 bytes [16:44:51]NVStorageSaveData done [16:44:51]ExternCall_PrintAddStr [16:44:51]wPrintStart [16:44:51]Write to MH i2c: 01 00 00 A1 08 A9 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 07 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 07 00 A1 08 00 00 00 00 00 FF 0F BE [16:44:51]RasterBufferAndPrint [16:44:51]line Счет N : (1)2885671 [16:44:51]line ИНН: 02508201610067 [16:44:51]line Контрольно-Кассовый Чек [16:44:51]line ПРОДАЖА [16:44:51]line ТРК (МРК, ГНК) : 42 [16:44:51]line Товар: 2710124130 [16:44:51]line Аи-92-К-5 [16:44:51]line 4.340 * 66.90 [16:44:51]line = 290.35 [16:44:51]line НДС 12% НСП 1% [16:44:51]line > о реализуемом товаре [16:44:51]line ОКРУГЛЕНИЕ: -0.35 [16:44:51]line ИТОГО: 290.00 [16:44:51]line Внесено: 290.00 [16:44:51]line СДАЧА: 0.00 [16:44:51]line НСП 1% : 2.57 [16:44:51]line НДС 12% : 30.83 [16:44:51]line Наличными: 290.00 [16:44:51]line Безнал.: 0.00 [16:44:51]line Место: АЗС № 85 "Партнер Нефть" [16:44:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:44:51]line СНО: Общий режим [16:44:51]line Чек 304 21.10.2024 16:44 [16:44:51]line Смена: 194 ФФД: 1.0 [16:44:51]line ЗНМ: 0300000167 [16:44:51]line РНМ: 0000000000156251 [16:44:51]line Версия ККМ: v1.0 [16:44:51]line ФМ: 0000000000963346 [16:44:51]line ФД: 69914 [16:44:51]line ФПД: 86948192052937 [16:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69914&fm=86948192052937&tin=02508201610067®Number=0000000000156251&sum=29000 [16:44:51]OFD Sender: Processing packet 69914 [packets to send 18, broken 17] [16:44:51]ProducePacketName [16:44:51]name=ofd_packets/00069914 [16:44:51]OFD Sender: To server: pG, [16:44:51]CommunicateWithHost lk.salyk.kg:30040 [16:44:51]ConnectInit lk.salyk.kg [16:44:51]written 0, free lines is 4095 [16:44:51]Connected sock=10 [16:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 BB 07 01 49 60 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 02 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 11 01 00 35 04 06 00 4F 14 34 19 E6 C9 89 56 88 A5 91 9A 4E E8 [16:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F8 93 47 00 CE C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 11 01 00 F4 03 04 00 A5 2E 16 67 B6 04 01 00 00 99 82 78 33 21 16 8F CB [16:44:51]CommunicateWithHost err = 0 [16:44:51]CheckOFDResponse [16:44:51]1017 (14) - 77093643461234 [16:44:51]1041 (16) - 0000000000963346 [16:44:51]1040 (4) - 69914 [16:44:51]1012 (4) - 21.10.2024 10:36 [16:44:51]1206 (1) - 0 [16:44:51]OFD Sender: Remove packet 69914 [16:44:51]ProducePacketName [16:44:51]name=ofd_packets/00069914 [16:44:51]NVStorageDeleteData [16:44:52]Write to MH i2c: 01 00 00 CC 08 D4 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: 01 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: 01 07 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 E8 0C CF [16:44:52]RasterBufferAndPrint [16:44:52]line [16:44:52]line [16:44:52]line [16:44:52]line [16:44:52]line [16:44:52]written 0, free lines is 3311 [16:44:52]MH_Cut [16:44:52]Write to MH i2c: D1 01 00 D3 08 01 AD [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: D1 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: D1 01 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: D1 01 00 D3 08 00 AC [16:44:52]Write to MH i2c: 01 00 00 D4 08 DC [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]OFD Sender: No OFD packet to send [16:44:52]*** Cut start [16:44:52]*** Partial cut [16:44:52]*** CUTSNS_PIN = 1 [16:44:52]*** CUTSNS_PIN = 0 [16:44:52]*** Brake cut motor [16:44:53]Read from MH i2c: 01 [16:44:53]MH_I2C_Read... [16:44:53]*** Stop cut motor [16:44:53]*** Cut end [16:44:53]Read from MH i2c: 01 07 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 FF 0F F1 [16:44:53]process_action close_receipt done [16:44:53]requested_data is exist [16:44:53]produce_requested_data [16:44:53]requested_item fm.sn is exist - process it [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 11 00 00 [16:44:53]Write to MH i2c: E2 08 00 D5 08 80 11 00 00 00 00 00 00 57 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 D5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [16:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:44:53]wFMCommunicate OK [16:44:53]requested_item fd.num is exist - process it [16:44:53]SAM_PROTO_GetFieldsCounters [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 13 00 00 [16:44:53]Write to MH i2c: E2 08 00 D6 08 80 13 00 00 00 00 00 00 5A [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 62 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 62 00 D6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_GetFieldsCounters done [16:44:53]requested_item shift.num is exist - process it [16:44:53]requested_item shift.opened is exist - process it [16:44:53]req_shift_opened [16:44:53]FM_GetShiftState [16:44:53]SAM_PROTO_GetShiftState [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 13 01 00 [16:44:53]Write to MH i2c: E2 08 00 D7 08 80 13 01 00 00 00 00 00 5C [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0E 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0E 00 D7 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [16:44:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_GetShiftState done [16:44:53]FM_GetShiftState done [16:44:53]req_shift_opened done [16:44:53]requested_item shift.open_date is exist - process it [16:44:53]req_shift_open_date [16:44:53]req_shift_open_date done [16:44:53]produce_requested_data done [16:44:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69914,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:44:53]process_action_free close_receipt [16:44:53]json_value_free [16:44:53]json_value_free done [16:44:53]process_json_proto returns [16:44:53]Send response to host [16:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69914,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:44:53]free response buf [16:44:53]execute_script done [16:44:53]execute_script returns [16:44:53]free content buf [16:44:53]Sock 9.Close socket [16:44:53]Sock 9.Thread stoped [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:39]accept exits with 7 [16:46:39]New connection [16:46:39]New thread 3067170148 created [16:46:39]Thread 3067026788 joined [16:46:39]Waiting for new connection... [16:46:39] Sock 7.Parse request [16:46:39]Sock 7.Check first char [16:46:39]Sock 7.First char is OK [16:46:39]request: POST /json_proto HTTP/1.0 [16:46:39]Method: POST [16:46:39]URL: /json_proto [16:46:39]Method is POST - this is cgi request [16:46:39]url: /json_proto [16:46:39]query_string will be loaded in cgi processing [16:46:39]execute_cgi json_proto POST (null) [16:46:39]execute_cgi path=json_proto method=POST [16:46:39]POST find Content-Length [16:46:39]Host: 172.17.50.3:8080 [16:46:39]Content-Length: 776 [16:46:39]Content-Type: application/json [16:46:39] [16:46:39]POST finish read [16:46:39]Found Content-Length = 776 [16:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:39]execute_script... [16: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)2885670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:39]POST & json_proto [16:46:39]process_json_proto [16:46:39]json parsed OK: [16:46:39]protocol is kg_v1.0 [16:46:39]action value=close_receipt [16:46:39]process_action close_receipt [16:46:39]cmd_close_receipt [16:46:39]MH_GetDate [16:46:39]Write to MH i2c: F0 00 00 D8 08 CF [16:46:39]Write i2c OK [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: F0 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: F0 09 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: F0 09 00 D8 08 00 70 85 16 67 6B 98 1E 66 D1 [16:46:39]GetLastDocTimeStamp 1729529090 [16:46:39]current date 1729529200 [16:46:39]FM_GetShiftState [16:46:39]SAM_PROTO_GetShiftState [16:46:39]wFMCommunicate request_size=4 [16:46:39]MH_SAM_APDU [16:46:39]CAPDU: 80 13 01 00 [16:46:39]Write to MH i2c: E2 08 00 D9 08 80 13 01 00 00 00 00 00 5E [16:46:39]Write i2c OK [16:46:39]MH_I2C_Read... [16:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:39]Read from MH i2c: E2 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 0E 00 [16:46:39]MH_I2C_Read... [16:46:39]Read from MH i2c: E2 0E 00 D9 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8A [16:46:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:46:39]wFMCommunicate OK [16:46:39]SAM_PROTO_GetShiftState done [16:46:39]FM_GetShiftState done [16:46:39]opened in 1729469703 [16:46:39]opened+sec_in_day 1729556103 [16:46:39]quantity*price = 250050 [16:46:39]sum+1 = 250052 [16:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 305 21.10.2024 16:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69915 ФПД: 65691311390346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69915&fm=65691311390346&tin=02508201610067®Number=0000000000156251&sum=250051 [16:46:40]StoreToDocumentArchive [16:46:40]shift 194 fd 69915 [16:46:40]save to /storage/0194/doc_00069915 [16:46:40]save last doc name /storage/0194/doc_00069915 to /storage/kkm_last_doc_name [16:46:40]save OK [16:46:40]Clear old archive folders... [16:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:46:40]tlvbuf is 0112AE00 [16:46:40]SAM_PROTO_ClearQueue [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 09 00 00 [16:46:40]Write to MH i2c: E2 08 00 E6 08 80 09 00 00 00 00 00 00 60 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_ClearQueue done [16:46:40]KKMCreateOFDPacket [16:46:40]OFDProtocolAddRootSTLVToBuf [16:46:40]FM_MakeSignedData [16:46:40]FM_MakeSignedData [16:46:40]SAM_PROTO_SignData [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 01 02 [16:46:40]Write to MH i2c: E2 08 00 E7 08 80 0D 01 02 00 00 00 00 68 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]wFMCommunicate request_size=255 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 70 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 11 01 [16:46:40]Write to MH i2c: E2 02 01 E8 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 70 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 11 01 00 00 45 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=16 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3B BE F3 47 BE 8A [16:46:41]Write to MH i2c: E2 13 00 E9 08 80 0D 02 02 0B 00 00 35 04 06 00 3B BE F3 47 BE 8A 00 00 3B [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 03 02 [16:46:41]Write to MH i2c: E2 08 00 EA 08 80 0D 03 02 00 00 00 00 6D [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 0B 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 0B 00 EA 08 00 90 76 99 CC 20 B7 E1 FC 90 00 8D [16:46:41]RAPDU: 90 76 99 CC 20 B7 E1 FC 90 00 [16:46:41]wFMCommunicate OK [16:46:41]SAM_PROTO_SignData done [16:46:41]FM_MakeSignedData done [16:46:41]CreateOFDProtocolMessage [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 11 00 00 [16:46:41]Write to MH i2c: E2 08 00 EB 08 80 11 00 00 00 00 00 00 6D [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 17 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 17 00 EB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [16:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:46:41]wFMCommunicate OK [16:46:41]CreateOFDProtocolMessage done [16:46:41]OFDSenderStorePacket 69915 [16:46:41]StoreOFDPacket docnum=69915 [16:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2A 89 0D 01 4B 8B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 70 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 11 01 00 35 04 06 00 3B BE F3 47 BE 8A 90 76 99 CC 20 B7 E1 FC [16:46:41]CheckFolder [16:46:41]dirname=/storage/ofd_packets [16:46:41]CheckFolder done [16:46:41]ProducePacketName [16:46:41]name=ofd_packets/00069915 [16:46:41]NVStorageSaveData ofd_packets/00069915 [16:46:41]File name is /storage/ofd_packets/00069915 [16:46:41]Write 307 bytes [16:46:41]NVStorageSaveData done [16:46:41]OFDSenderStorePacket done [16:46:41]KKMCreateOFDPacket done [16:46:41]NVStorageSaveData kkm_last_timestamp [16:46:41]File name is /storage/kkm_last_timestamp [16:46:41]Write 4 bytes [16:46:41]NVStorageSaveData done [16:46:41]ExternCall_PrintAddStr [16:46:41]wPrintStart [16:46:41]Write to MH i2c: 01 00 00 EC 08 F4 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 07 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 FF 0F 09 [16:46:41]RasterBufferAndPrint [16:46:41]line Счет N : (1)2885670 [16:46:41]line ИНН: 02508201610067 [16:46:41]line Контрольно-Кассовый Чек [16:46:41]line ПРОДАЖА [16:46:41]line ТРК (МРК, ГНК) : 31 [16:46:41]line Товар: 2710194240 [16:46:41]line D-ENERGY Дт-К-2 [16:46:41]line 32.390 * 77.20 [16:46:41]line = 2500.51 [16:46:41]line НДС 12% НСП 1% [16:46:41]line > о реализуемом товаре [16:46:41]line ИТОГО: 2500.51 [16:46:41]line НСП 1% : 22.13 [16:46:41]line НДС 12% : 265.54 [16:46:41]line Наличными: 0.00 [16:46:41]line Безнал.: 2500.51 [16:46:41]line Место: АЗС № 85 "Партнер Нефть" [16:46:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:46:41]line СНО: Общий режим [16:46:41]line Чек 305 21.10.2024 16:46 [16:46:41]line Смена: 194 ФФД: 1.0 [16:46:41]line ЗНМ: 0300000167 [16:46:41]line РНМ: 0000000000156251 [16:46:41]line Версия ККМ: v1.0 [16:46:41]line Платежная система: Mbank [16:46:41]line ФМ: 0000000000963346 [16:46:41]line ФД: 69915 [16:46:41]line ФПД: 65691311390346 [16:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164640&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69915&fm=65691311390346&tin=02508201610067®Number=0000000000156251&sum=250051 [16:46:41]OFD Sender: Processing packet 69915 [packets to send 18, broken 17] [16:46:41]ProducePacketName [16:46:41]name=ofd_packets/00069915 [16:46:41]OFD Sender: To server: pG, [16:46:41]CommunicateWithHost lk.salyk.kg:30040 [16:46:41]ConnectInit lk.salyk.kg [16:46:41]written 0, free lines is 4095 [16:46:41]Connected sock=10 [16:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2A 89 0D 01 4B 8B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 70 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 11 01 00 35 04 06 00 3B BE F3 47 BE 8A 90 76 99 CC 20 B7 E1 FC [16:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E4 B3 47 00 A6 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 11 01 00 F4 03 04 00 13 2F 16 67 B6 04 01 00 00 0A 3C 82 6F 3C 07 87 5D [16:46:41]CommunicateWithHost err = 0 [16:46:41]CheckOFDResponse [16:46:41]1017 (14) - 77093643461234 [16:46:41]1041 (16) - 0000000000963346 [16:46:41]1040 (4) - 69915 [16:46:41]1012 (4) - 21.10.2024 10:38 [16:46:41]1206 (1) - 0 [16:46:41]OFD Sender: Remove packet 69915 [16:46:41]ProducePacketName [16:46:41]name=ofd_packets/00069915 [16:46:41]NVStorageDeleteData [16:46:42]Write to MH i2c: 01 00 00 15 09 1E [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 10 0D 42 [16:46:42]RasterBufferAndPrint [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]written 0, free lines is 3350 [16:46:42]MH_Cut [16:46:42]Write to MH i2c: D1 01 00 1C 09 01 F7 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 01 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 01 00 1C 09 00 F6 [16:46:42]Write to MH i2c: 01 00 00 1D 09 26 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]OFD Sender: No OFD packet to send [16:46:42]*** Cut start [16:46:42]*** Partial cut [16:46:42]*** CUTSNS_PIN = 1 [16:46:42]*** CUTSNS_PIN = 0 [16:46:42]*** Brake cut motor [16:46:43]Read from MH i2c: 01 [16:46:43]MH_I2C_Read... [16:46:43]*** Stop cut motor [16:46:43]*** Cut end [16:46:43]Read from MH i2c: 01 07 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [16:46:43]process_action close_receipt done [16:46:43]requested_data is exist [16:46:43]produce_requested_data [16:46:43]requested_item fm.sn is exist - process it [16:46:43]wFMCommunicate request_size=4 [16:46:43]MH_SAM_APDU [16:46:43]CAPDU: 80 11 00 00 [16:46:43]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:43]Read from MH i2c: E2 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 17 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [16:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:46:43]wFMCommunicate OK [16:46:43]requested_item fd.num is exist - process it [16:46:43]SAM_PROTO_GetFieldsCounters [16:46:43]wFMCommunicate request_size=4 [16:46:43]MH_SAM_APDU [16:46:43]CAPDU: 80 13 00 00 [16:46:43]Write to MH i2c: E2 08 00 1F 09 80 13 00 00 00 00 00 00 A4 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:43]Read from MH i2c: E2 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 62 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 62 00 1F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:43]wFMCommunicate OK [16:46:43]SAM_PROTO_GetFieldsCounters done [16:46:43]requested_item shift.num is exist - process it [16:46:43]requested_item shift.opened is exist - process it [16:46:43]req_shift_opened [16:46:43]FM_GetShiftState [16:46:43]SAM_PROTO_GetShiftState [16:46:43]wFMCommunicate request_size=4 [16:46:43]MH_SAM_APDU [16:46:43]CAPDU: 80 13 01 00 [16:46:43]Write to MH i2c: E2 08 00 20 09 80 13 01 00 00 00 00 00 A6 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:43]Read from MH i2c: E2 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 0E 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: E2 0E 00 20 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D2 [16:46:43]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:46:43]wFMCommunicate OK [16:46:43]SAM_PROTO_GetShiftState done [16:46:43]FM_GetShiftState done [16:46:43]req_shift_opened done [16:46:43]requested_item shift.open_date is exist - process it [16:46:43]req_shift_open_date [16:46:43]req_shift_open_date done [16:46:43]produce_requested_data done [16:46:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69915,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:46:43]process_action_free close_receipt [16:46:43]json_value_free [16:46:43]json_value_free done [16:46:43]process_json_proto returns [16:46:43]Send response to host [16:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69915,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:46:43]free response buf [16:46:43]execute_script done [16:46:43]execute_script returns [16:46:43]free content buf [16:46:43]Sock 7.Close socket [16:46:43]Sock 7.Thread stoped [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:08]accept exits with 9 [16:47:08]New connection [16:47:08]New thread 3067026788 created [16:47:08]Thread 3067170148 joined [16:47:08]Waiting for new connection... [16:47:08] Sock 9.Parse request [16:47:08]Sock 9.Check first char [16:47:08]Sock 9.First char is OK [16:47:08]request: POST /json_proto HTTP/1.0 [16:47:08]Method: POST [16:47:08]URL: /json_proto [16:47:08]Method is POST - this is cgi request [16:47:08]url: /json_proto [16:47:08]query_string will be loaded in cgi processing [16:47:08]execute_cgi json_proto POST (null) [16:47:08]execute_cgi path=json_proto method=POST [16:47:08]POST find Content-Length [16:47:08]Host: 172.17.50.3:8080 [16:47:08]Content-Length: 683 [16:47:08]Content-Type: application/json [16:47:08] [16:47:08]POST finish read [16:47:08]Found Content-Length = 683 [16:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:08]execute_script... [16:47: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)2885672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:08]POST & json_proto [16:47:08]process_json_proto [16:47:08]json parsed OK: [16:47:08]protocol is kg_v1.0 [16:47:08]action value=close_receipt [16:47:08]process_action close_receipt [16:47:08]cmd_close_receipt [16:47:08]MH_GetDate [16:47:08]Write to MH i2c: F0 00 00 21 09 19 [16:47:08]Write i2c OK [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: F0 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: F0 09 00 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: F0 09 00 21 09 00 8D 85 16 67 6B 98 1E 66 38 [16:47:08]GetLastDocTimeStamp 1729529200 [16:47:08]current date 1729529229 [16:47:08]FM_GetShiftState [16:47:08]SAM_PROTO_GetShiftState [16:47:08]wFMCommunicate request_size=4 [16:47:08]MH_SAM_APDU [16:47:08]CAPDU: 80 13 01 00 [16:47:08]Write to MH i2c: E2 08 00 22 09 80 13 01 00 00 00 00 00 A8 [16:47:08]Write i2c OK [16:47:08]MH_I2C_Read... [16:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 22 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D4 [16:47:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetShiftState done [16:47:09]FM_GetShiftState done [16:47:09]opened in 1729469703 [16:47:09]opened+sec_in_day 1729556103 [16:47:09]quantity*price = 100015 [16:47:09]sum+1 = 100017 [16:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 306 21.10.2024 16:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69916 ФПД: 191149049552346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69916&fm=191149049552346&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:10]StoreToDocumentArchive [16:47:10]shift 194 fd 69916 [16:47:10]save to /storage/0194/doc_00069916 [16:47:10]save last doc name /storage/0194/doc_00069916 to /storage/kkm_last_doc_name [16:47:10]save OK [16:47:10]Clear old archive folders... [16:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:10]tlvbuf is 010FE9F0 [16:47:10]SAM_PROTO_ClearQueue [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 09 00 00 [16:47:10]Write to MH i2c: E2 08 00 2F 09 80 09 00 00 00 00 00 00 AA [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]SAM_PROTO_ClearQueue done [16:47:10]KKMCreateOFDPacket [16:47:10]OFDProtocolAddRootSTLVToBuf [16:47:10]FM_MakeSignedData [16:47:10]FM_MakeSignedData [16:47:10]SAM_PROTO_SignData [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 01 02 [16:47:10]Write to MH i2c: E2 08 00 30 09 80 0D 01 02 00 00 00 00 B2 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=255 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8D 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 11 01 00 35 04 06 00 AD [16:47:10]Write to MH i2c: E2 02 01 31 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8D 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 11 01 00 35 04 06 00 AD 00 00 94 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=10 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 02 02 05 D9 5B 32 9D DA [16:47:10]Write to MH i2c: E2 0D 00 32 09 80 0D 02 02 05 00 D9 5B 32 9D DA 00 00 9C [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 03 02 [16:47:10]Write to MH i2c: E2 08 00 33 09 80 0D 03 02 00 00 00 00 B7 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 0B 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 0B 00 33 09 00 41 B2 0C 7C 40 56 B1 E6 90 00 60 [16:47:10]RAPDU: 41 B2 0C 7C 40 56 B1 E6 90 00 [16:47:10]wFMCommunicate OK [16:47:10]SAM_PROTO_SignData done [16:47:10]FM_MakeSignedData done [16:47:10]CreateOFDProtocolMessage [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 11 00 00 [16:47:10]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 17 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [16:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:10]wFMCommunicate OK [16:47:10]CreateOFDProtocolMessage done [16:47:10]OFDSenderStorePacket 69916 [16:47:10]StoreOFDPacket docnum=69916 [16:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 BC 07 01 6A 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8D 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 11 01 00 35 04 06 00 AD D9 5B 32 9D DA 41 B2 0C 7C 40 56 B1 E6 [16:47:10]CheckFolder [16:47:10]dirname=/storage/ofd_packets [16:47:10]CheckFolder done [16:47:10]ProducePacketName [16:47:10]name=ofd_packets/00069916 [16:47:10]NVStorageSaveData ofd_packets/00069916 [16:47:10]File name is /storage/ofd_packets/00069916 [16:47:10]Write 301 bytes [16:47:10]NVStorageSaveData done [16:47:10]OFDSenderStorePacket done [16:47:10]KKMCreateOFDPacket done [16:47:10]NVStorageSaveData kkm_last_timestamp [16:47:10]File name is /storage/kkm_last_timestamp [16:47:10]Write 4 bytes [16:47:10]NVStorageSaveData done [16:47:10]ExternCall_PrintAddStr [16:47:10]wPrintStart [16:47:10]Write to MH i2c: 01 00 00 35 09 3E [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: 01 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: 01 07 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: 01 07 00 35 09 00 00 00 00 00 FF 0F 53 [16:47:10]RasterBufferAndPrint [16:47:10]line Счет N : (1)2885672 [16:47:10]line ИНН: 02508201610067 [16:47:10]line Контрольно-Кассовый Чек [16:47:10]line ПРОДАЖА [16:47:10]line ТРК (МРК, ГНК) : 12 [16:47:10]line Товар: 2710124130 [16:47:10]line Аи-92-К-5 [16:47:10]line 14.950 * 66.90 [16:47:10]line = 1000.16 [16:47:10]line НДС 12% НСП 1% [16:47:10]line > о реализуемом товаре [16:47:10]line ОКРУГЛЕНИЕ: -0.16 [16:47:10]line ИТОГО: 1000.00 [16:47:10]line Внесено: 1000.00 [16:47:10]line СДАЧА: 0.00 [16:47:10]line НСП 1% : 8.85 [16:47:10]line НДС 12% : 106.21 [16:47:10]line Наличными: 1000.00 [16:47:10]line Безнал.: 0.00 [16:47:10]line Место: АЗС № 85 "Партнер Нефть" [16:47:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:47:10]line СНО: Общий режим [16:47:10]line Чек 306 21.10.2024 16:47 [16:47:10]line Смена: 194 ФФД: 1.0 [16:47:10]line ЗНМ: 0300000167 [16:47:10]line РНМ: 0000000000156251 [16:47:10]line Версия ККМ: v1.0 [16:47:10]line ФМ: 0000000000963346 [16:47:10]line ФД: 69916 [16:47:10]line ФПД: 191149049552346 [16:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164709&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69916&fm=191149049552346&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:10]OFD Sender: Processing packet 69916 [packets to send 18, broken 17] [16:47:10]ProducePacketName [16:47:10]name=ofd_packets/00069916 [16:47:10]OFD Sender: To server: pG, [16:47:10]CommunicateWithHost lk.salyk.kg:30040 [16:47:10]ConnectInit lk.salyk.kg [16:47:10]written 0, free lines is 4095 [16:47:11]Connected sock=10 [16:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 BC 07 01 6A 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8D 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 11 01 00 35 04 06 00 AD D9 5B 32 9D DA 41 B2 0C 7C 40 56 B1 E6 [16:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF D7 47 00 F6 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 11 01 00 F4 03 04 00 31 2F 16 67 B6 04 01 00 00 8F 20 68 02 10 63 F4 2F [16:47:11]CommunicateWithHost err = 0 [16:47:11]CheckOFDResponse [16:47:11]1017 (14) - 77093643461234 [16:47:11]1041 (16) - 0000000000963346 [16:47:11]1040 (4) - 69916 [16:47:11]1012 (4) - 21.10.2024 10:38 [16:47:11]1206 (1) - 0 [16:47:11]OFD Sender: Remove packet 69916 [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00069916 [16:47:11]NVStorageDeleteData [16:47:11]Write to MH i2c: 01 00 00 60 09 69 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 EA 0C 66 [16:47:11]RasterBufferAndPrint [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]written 0, free lines is 3312 [16:47:11]MH_Cut [16:47:11]Write to MH i2c: D1 01 00 67 09 01 42 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 01 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 01 00 67 09 00 41 [16:47:11]Write to MH i2c: 01 00 00 68 09 71 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]OFD Sender: No OFD packet to send [16:47:12]*** Cut start [16:47:12]*** Partial cut [16:47:12]*** CUTSNS_PIN = 1 [16:47:12]*** CUTSNS_PIN = 0 [16:47:12]*** Brake cut motor [16:47:12]Read from MH i2c: 01 [16:47:12]MH_I2C_Read... [16:47:12]*** Stop cut motor [16:47:12]*** Cut end [16:47:12]Read from MH i2c: 01 07 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FF 0F 86 [16:47:12]process_action close_receipt done [16:47:12]requested_data is exist [16:47:12]produce_requested_data [16:47:12]requested_item fm.sn is exist - process it [16:47:12]wFMCommunicate request_size=4 [16:47:12]MH_SAM_APDU [16:47:12]CAPDU: 80 11 00 00 [16:47:12]Write to MH i2c: E2 08 00 69 09 80 11 00 00 00 00 00 00 EC [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:12]Read from MH i2c: E2 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 17 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 17 00 69 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [16:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:12]wFMCommunicate OK [16:47:12]requested_item fd.num is exist - process it [16:47:12]SAM_PROTO_GetFieldsCounters [16:47:12]wFMCommunicate request_size=4 [16:47:12]MH_SAM_APDU [16:47:12]CAPDU: 80 13 00 00 [16:47:12]Write to MH i2c: E2 08 00 6A 09 80 13 00 00 00 00 00 00 EF [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:12]Read from MH i2c: E2 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 62 00 [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 62 00 6A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:12]wFMCommunicate OK [16:47:12]SAM_PROTO_GetFieldsCounters done [16:47:12]requested_item shift.num is exist - process it [16:47:12]requested_item shift.opened is exist - process it [16:47:12]req_shift_opened [16:47:12]FM_GetShiftState [16:47:12]SAM_PROTO_GetShiftState [16:47:12]wFMCommunicate request_size=4 [16:47:12]MH_SAM_APDU [16:47:12]CAPDU: 80 13 01 00 [16:47:12]Write to MH i2c: E2 08 00 6B 09 80 13 01 00 00 00 00 00 F1 [16:47:12]Write i2c OK [16:47:12]MH_I2C_Read... [16:47:12]Read from MH i2c: E2 [16:47:12]MH_I2C_Read... [16:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:13]Read from MH i2c: E2 0E 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 6B 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1D [16:47:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetShiftState done [16:47:13]FM_GetShiftState done [16:47:13]req_shift_opened done [16:47:13]requested_item shift.open_date is exist - process it [16:47:13]req_shift_open_date [16:47:13]req_shift_open_date done [16:47:13]produce_requested_data done [16:47:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69916,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:47:13]process_action_free close_receipt [16:47:13]json_value_free [16:47:13]json_value_free done [16:47:13]process_json_proto returns [16:47:13]Send response to host [16:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69916,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:47:13]free response buf [16:47:13]execute_script done [16:47:13]execute_script returns [16:47:13]free content buf [16:47:13]Sock 9.Close socket [16:47:13]Sock 9.Thread stoped [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:52]accept exits with 7 [16:47:52]New connection [16:47:52]New thread 3067170148 created [16:47:52]Thread 3067026788 joined [16:47:52]Waiting for new connection... [16:47:52] Sock 7.Parse request [16:47:52]Sock 7.Check first char [16:47:52]Sock 7.First char is OK [16:47:52]request: POST /json_proto HTTP/1.0 [16:47:52]Method: POST [16:47:52]URL: /json_proto [16:47:52]Method is POST - this is cgi request [16:47:52]url: /json_proto [16:47:52]query_string will be loaded in cgi processing [16:47:52]execute_cgi json_proto POST (null) [16:47:52]execute_cgi path=json_proto method=POST [16:47:52]POST find Content-Length [16:47:52]Host: 172.17.50.3:8080 [16:47:52]Content-Length: 686 [16:47:52]Content-Type: application/json [16:47:52] [16:47:52]POST finish read [16:47:52]Found Content-Length = 686 [16:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [16:47:52]execute_script... [16:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [16:47:52]POST & json_proto [16:47:52]process_json_proto [16:47:52]json parsed OK: [16:47:52]protocol is kg_v1.0 [16:47:52]action value=close_receipt [16:47:52]process_action close_receipt [16:47:52]cmd_close_receipt [16:47:52]MH_GetDate [16:47:52]Write to MH i2c: F0 00 00 6C 09 64 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: F0 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: F0 09 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: F0 09 00 6C 09 00 B9 85 16 67 6B 98 1E 66 AF [16:47:52]GetLastDocTimeStamp 1729529229 [16:47:52]current date 1729529273 [16:47:52]FM_GetShiftState [16:47:52]SAM_PROTO_GetShiftState [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 13 01 00 [16:47:52]Write to MH i2c: E2 08 00 6D 09 80 13 01 00 00 00 00 00 F3 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0E 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0E 00 6D 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1F [16:47:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:47:52]wFMCommunicate OK [16:47:52]SAM_PROTO_GetShiftState done [16:47:52]FM_GetShiftState done [16:47:52]opened in 1729469703 [16:47:52]opened+sec_in_day 1729556103 [16:47:52]quantity*price = 100011 [16:47:52]sum+1 = 100013 [16:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 307 21.10.2024 16:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69917 ФПД: 244628285648621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164753&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69917&fm=244628285648621&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:53]StoreToDocumentArchive [16:47:53]shift 194 fd 69917 [16:47:53]save to /storage/0194/doc_00069917 [16:47:53]save last doc name /storage/0194/doc_00069917 to /storage/kkm_last_doc_name [16:47:53]save OK [16:47:53]Clear old archive folders... [16:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:47:53]tlvbuf is B6F8DAB0 [16:47:53]SAM_PROTO_ClearQueue [16:47:53]wFMCommunicate request_size=4 [16:47:53]MH_SAM_APDU [16:47:53]CAPDU: 80 09 00 00 [16:47:53]Write to MH i2c: E2 08 00 7A 09 80 09 00 00 00 00 00 00 F5 [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [16:47:53]RAPDU: 90 00 [16:47:53]wFMCommunicate OK [16:47:53]SAM_PROTO_ClearQueue done [16:47:53]KKMCreateOFDPacket [16:47:53]OFDProtocolAddRootSTLVToBuf [16:47:53]FM_MakeSignedData [16:47:53]FM_MakeSignedData [16:47:53]SAM_PROTO_SignData [16:47:53]wFMCommunicate request_size=4 [16:47:53]MH_SAM_APDU [16:47:53]CAPDU: 80 0D 01 02 [16:47:53]Write to MH i2c: E2 08 00 7B 09 80 0D 01 02 00 00 00 00 FD [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [16:47:53]RAPDU: 90 00 [16:47:53]wFMCommunicate OK [16:47:53]wFMCommunicate request_size=255 [16:47:53]MH_SAM_APDU [16:47:53]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B9 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 11 01 00 35 04 06 00 DE 7C [16:47:53]Write to MH i2c: E2 02 01 7C 09 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B9 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 11 01 00 35 04 06 00 DE 7C 00 00 9B [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 03 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [16:47:54]RAPDU: 90 00 [16:47:54]wFMCommunicate OK [16:47:54]wFMCommunicate request_size=9 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 0D 02 02 04 F6 11 6E ED [16:47:54]Write to MH i2c: E2 0C 00 7D 09 80 0D 02 02 04 00 F6 11 6E ED 00 00 6A [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 03 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [16:47:54]RAPDU: 90 00 [16:47:54]wFMCommunicate OK [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 0D 03 02 [16:47:54]Write to MH i2c: E2 08 00 7E 09 80 0D 03 02 00 00 00 00 02 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0B 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0B 00 7E 09 00 41 8F 64 3B AF 64 1A EA 90 00 89 [16:47:54]RAPDU: 41 8F 64 3B AF 64 1A EA 90 00 [16:47:54]wFMCommunicate OK [16:47:54]SAM_PROTO_SignData done [16:47:54]FM_MakeSignedData done [16:47:54]CreateOFDProtocolMessage [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 11 00 00 [16:47:54]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 17 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [16:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:54]wFMCommunicate OK [16:47:54]CreateOFDProtocolMessage done [16:47:54]OFDSenderStorePacket 69917 [16:47:54]StoreOFDPacket docnum=69917 [16:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B4 3C 06 01 B1 98 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B9 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 11 01 00 35 04 06 00 DE 7C F6 11 6E ED 41 8F 64 3B AF 64 1A EA [16:47:54]CheckFolder [16:47:54]dirname=/storage/ofd_packets [16:47:54]CheckFolder done [16:47:54]ProducePacketName [16:47:54]name=ofd_packets/00069917 [16:47:54]NVStorageSaveData ofd_packets/00069917 [16:47:54]File name is /storage/ofd_packets/00069917 [16:47:54]Write 300 bytes [16:47:54]NVStorageSaveData done [16:47:54]OFDSenderStorePacket done [16:47:54]KKMCreateOFDPacket done [16:47:54]NVStorageSaveData kkm_last_timestamp [16:47:54]File name is /storage/kkm_last_timestamp [16:47:54]Write 4 bytes [16:47:54]NVStorageSaveData done [16:47:54]ExternCall_PrintAddStr [16:47:54]wPrintStart [16:47:54]Write to MH i2c: 01 00 00 80 09 89 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 07 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 07 00 80 09 00 00 00 00 00 FF 0F 9E [16:47:54]RasterBufferAndPrint [16:47:54]line Счет N : (1)2885674 [16:47:54]line ИНН: 02508201610067 [16:47:54]line Контрольно-Кассовый Чек [16:47:54]line ПРОДАЖА [16:47:54]line ТРК (МРК, ГНК) : 71 [16:47:54]line Товар: 2711129700 [16:47:54]line ГАЗ-К-3 [16:47:54]line 25.710 * 38.90 [16:47:54]line = 1000.12 [16:47:54]line НДС 12% НСП 1% [16:47:54]line > о реализуемом товаре [16:47:54]line ОКРУГЛЕНИЕ: -0.12 [16:47:54]line ИТОГО: 1000.00 [16:47:54]line Внесено: 1000.00 [16:47:54]line СДАЧА: 0.00 [16:47:54]line НСП 1% : 8.85 [16:47:54]line НДС 12% : 106.21 [16:47:54]line Наличными: 1000.00 [16:47:54]line Безнал.: 0.00 [16:47:54]line Место: АЗС № 85 "Партнер Нефть" [16:47:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:47:54]line СНО: Общий режим [16:47:54]line Чек 307 21.10.2024 16:47 [16:47:54]line Смена: 194 ФФД: 1.0 [16:47:54]line ЗНМ: 0300000167 [16:47:54]line РНМ: 0000000000156251 [16:47:54]line Версия ККМ: v1.0 [16:47:54]line ФМ: 0000000000963346 [16:47:54]line ФД: 69917 [16:47:54]line ФПД: 244628285648621 [16:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164753&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69917&fm=244628285648621&tin=02508201610067®Number=0000000000156251&sum=100000 [16:47:54]OFD Sender: Processing packet 69917 [packets to send 18, broken 17] [16:47:54]ProducePacketName [16:47:54]name=ofd_packets/00069917 [16:47:54]OFD Sender: To server: pG, [16:47:54]CommunicateWithHost lk.salyk.kg:30040 [16:47:54]ConnectInit lk.salyk.kg [16:47:54]written 0, free lines is 4095 [16:47:54]Connected sock=10 [16:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B4 3C 06 01 B1 98 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 B9 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 11 01 00 35 04 06 00 DE 7C F6 11 6E ED 41 8F 64 3B AF 64 1A EA [16:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 74 32 47 00 28 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 11 01 00 F4 03 04 00 5C 2F 16 67 B6 04 01 00 00 2D A8 21 B6 CD 18 CD 5E [16:47:54]CommunicateWithHost err = 0 [16:47:54]CheckOFDResponse [16:47:54]1017 (14) - 77093643461234 [16:47:54]1041 (16) - 0000000000963346 [16:47:54]1040 (4) - 69917 [16:47:54]1012 (4) - 21.10.2024 10:39 [16:47:54]1206 (1) - 0 [16:47:54]OFD Sender: Remove packet 69917 [16:47:54]ProducePacketName [16:47:54]name=ofd_packets/00069917 [16:47:54]NVStorageDeleteData [16:47:55]Write to MH i2c: 01 00 00 AB 09 B4 [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: 01 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: 01 07 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: 01 07 00 AB 09 00 00 00 00 00 EC 0C B3 [16:47:55]RasterBufferAndPrint [16:47:55]line [16:47:55]line [16:47:55]line [16:47:55]line [16:47:55]line [16:47:55]written 0, free lines is 3314 [16:47:55]MH_Cut [16:47:55]Write to MH i2c: D1 01 00 B2 09 01 8D [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: D1 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: D1 01 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: D1 01 00 B2 09 00 8C [16:47:55]Write to MH i2c: 01 00 00 B3 09 BC [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]OFD Sender: No OFD packet to send [16:47:55]*** Cut start [16:47:55]*** Partial cut [16:47:55]*** CUTSNS_PIN = 1 [16:47:55]*** CUTSNS_PIN = 0 [16:47:56]*** Brake cut motor [16:47:56]Read from MH i2c: 01 [16:47:56]MH_I2C_Read... [16:47:56]*** Stop cut motor [16:47:56]*** Cut end [16:47:56]Read from MH i2c: 01 07 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [16:47:56]process_action close_receipt done [16:47:56]requested_data is exist [16:47:56]produce_requested_data [16:47:56]requested_item fm.sn is exist - process it [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 11 00 00 [16:47:56]Write to MH i2c: E2 08 00 B4 09 80 11 00 00 00 00 00 00 37 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 B4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [16:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:56]wFMCommunicate OK [16:47:56]requested_item fd.num is exist - process it [16:47:56]SAM_PROTO_GetFieldsCounters [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 13 00 00 [16:47:56]Write to MH i2c: E2 08 00 B5 09 80 13 00 00 00 00 00 00 3A [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 62 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 62 00 B5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_GetFieldsCounters done [16:47:56]requested_item shift.num is exist - process it [16:47:56]requested_item shift.opened is exist - process it [16:47:56]req_shift_opened [16:47:56]FM_GetShiftState [16:47:56]SAM_PROTO_GetShiftState [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 13 01 00 [16:47:56]Write to MH i2c: E2 08 00 B6 09 80 13 01 00 00 00 00 00 3C [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0E 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0E 00 B6 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 68 [16:47:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_GetShiftState done [16:47:56]FM_GetShiftState done [16:47:56]req_shift_opened done [16:47:56]requested_item shift.open_date is exist - process it [16:47:56]req_shift_open_date [16:47:56]req_shift_open_date done [16:47:56]produce_requested_data done [16:47:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69917,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:47:56]process_action_free close_receipt [16:47:56]json_value_free [16:47:56]json_value_free done [16:47:56]process_json_proto returns [16:47:56]Send response to host [16:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69917,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:47:56]free response buf [16:47:56]execute_script done [16:47:56]execute_script returns [16:47:56]free content buf [16:47:56]Sock 7.Close socket [16:47:56]Sock 7.Thread stoped [16:48:00]OFD Sender: No OFD packet to send [16:48:01]accept exits with 9 [16:48:01]New connection [16:48:01]New thread 3067026788 created [16:48:01]Thread 3067170148 joined [16:48:01]Waiting for new connection... [16:48:01] Sock 9.Parse request [16:48:01]Sock 9.Check first char [16:48:01]Sock 9.First char is OK [16:48:01]request: POST /json_proto HTTP/1.0 [16:48:01]Method: POST [16:48:01]URL: /json_proto [16:48:01]Method is POST - this is cgi request [16:48:01]url: /json_proto [16:48:01]query_string will be loaded in cgi processing [16:48:01]execute_cgi json_proto POST (null) [16:48:01]execute_cgi path=json_proto method=POST [16:48:01]POST find Content-Length [16:48:01]Host: 172.17.50.3:8080 [16:48:01]Content-Length: 680 [16:48:01]Content-Type: application/json [16:48:01] [16:48:01]POST finish read [16:48:01]Found Content-Length = 680 [16:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [16:48:01]execute_script... [16:48: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)2885673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [16:48:01]POST & json_proto [16:48:01]process_json_proto [16:48:01]json parsed OK: [16:48:01]protocol is kg_v1.0 [16:48:01]action value=close_receipt [16:48:01]process_action close_receipt [16:48:01]cmd_close_receipt [16:48:01]MH_GetDate [16:48:01]Write to MH i2c: F0 00 00 B7 09 AF [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: F0 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: F0 09 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: F0 09 00 B7 09 00 C2 85 16 67 6B 98 1E 66 03 [16:48:01]GetLastDocTimeStamp 1729529273 [16:48:01]current date 1729529282 [16:48:01]FM_GetShiftState [16:48:01]SAM_PROTO_GetShiftState [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 13 01 00 [16:48:01]Write to MH i2c: E2 08 00 B8 09 80 13 01 00 00 00 00 00 3E [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 0E 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 0E 00 B8 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6A [16:48:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:48:01]wFMCommunicate OK [16:48:01]SAM_PROTO_GetShiftState done [16:48:01]FM_GetShiftState done [16:48:01]opened in 1729469703 [16:48:01]opened+sec_in_day 1729556103 [16:48:01]quantity*price = 100050 [16:48:01]sum+1 = 100052 [16:48:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 308 21.10.2024 16:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69918 ФПД: 193455010125950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164802&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69918&fm=193455010125950&tin=02508201610067®Number=0000000000156251&sum=100000 [16:48:02]StoreToDocumentArchive [16:48:02]shift 194 fd 69918 [16:48:02]save to /storage/0194/doc_00069918 [16:48:02]save last doc name /storage/0194/doc_00069918 to /storage/kkm_last_doc_name [16:48:02]save OK [16:48:02]Clear old archive folders... [16:48:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:48:02]tlvbuf is B6EDD810 [16:48:02]SAM_PROTO_ClearQueue [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 09 00 00 [16:48:02]Write to MH i2c: E2 08 00 C5 09 80 09 00 00 00 00 00 00 40 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]SAM_PROTO_ClearQueue done [16:48:02]KKMCreateOFDPacket [16:48:02]OFDProtocolAddRootSTLVToBuf [16:48:02]FM_MakeSignedData [16:48:02]FM_MakeSignedData [16:48:02]SAM_PROTO_SignData [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 0D 01 02 [16:48:02]Write to MH i2c: E2 08 00 C6 09 80 0D 01 02 00 00 00 00 48 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]wFMCommunicate request_size=255 [16:48:02]MH_SAM_APDU [16:48:02]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 32 31 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 34 01 00 00 F4 03 04 00 C2 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 11 01 00 35 04 06 00 AF F2 41 28 [16:48:02]Write to MH i2c: E2 02 01 C7 09 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 32 31 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 34 01 00 00 F4 03 04 00 C2 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 11 01 00 35 04 06 00 AF F2 41 28 00 00 BC [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]wFMCommunicate request_size=7 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 0D 02 02 02 98 7E [16:48:02]Write to MH i2c: E2 0A 00 C8 09 80 0D 02 02 02 00 98 7E 00 00 65 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 0D 03 02 [16:48:02]Write to MH i2c: E2 08 00 C9 09 80 0D 03 02 00 00 00 00 4D [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0B 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0B 00 C9 09 00 EB 6C B2 08 04 0C 40 C3 90 00 72 [16:48:02]RAPDU: EB 6C B2 08 04 0C 40 C3 90 00 [16:48:02]wFMCommunicate OK [16:48:02]SAM_PROTO_SignData done [16:48:02]FM_MakeSignedData done [16:48:02]CreateOFDProtocolMessage [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 11 00 00 [16:48:02]Write to MH i2c: E2 08 00 CA 09 80 11 00 00 00 00 00 00 4D [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 17 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 17 00 CA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [16:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:48:02]wFMCommunicate OK [16:48:02]CreateOFDProtocolMessage done [16:48:02]OFDSenderStorePacket 69918 [16:48:02]StoreOFDPacket docnum=69918 [16:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A0 C2 04 01 2E 55 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 32 31 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 34 01 00 00 F4 03 04 00 C2 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 11 01 00 35 04 06 00 AF F2 41 28 98 7E EB 6C B2 08 04 0C 40 C3 [16:48:02]CheckFolder [16:48:02]dirname=/storage/ofd_packets [16:48:02]CheckFolder done [16:48:02]ProducePacketName [16:48:02]name=ofd_packets/00069918 [16:48:02]NVStorageSaveData ofd_packets/00069918 [16:48:02]File name is /storage/ofd_packets/00069918 [16:48:02]Write 298 bytes [16:48:02]NVStorageSaveData done [16:48:02]OFDSenderStorePacket done [16:48:02]KKMCreateOFDPacket done [16:48:02]NVStorageSaveData kkm_last_timestamp [16:48:02]File name is /storage/kkm_last_timestamp [16:48:02]Write 4 bytes [16:48:02]NVStorageSaveData done [16:48:02]ExternCall_PrintAddStr [16:48:02]wPrintStart [16:48:02]Write to MH i2c: 01 00 00 CB 09 D4 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 CB 09 00 00 00 00 00 FF 0F E9 [16:48:02]RasterBufferAndPrint [16:48:02]line Счет N : (1)2885673 [16:48:02]line ИНН: 02508201610067 [16:48:02]line Контрольно-Кассовый Чек [16:48:02]line ПРОДАЖА [16:48:02]line ТРК (МРК, ГНК) : 51 [16:48:02]line Товар: 2710194210 [16:48:02]line ДТ-К-5 [16:48:02]line 13.130 * 76.20 [16:48:02]line = 1000.51 [16:48:02]line НДС 12% НСП 1% [16:48:02]line > о реализуемом товаре [16:48:02]line ОКРУГЛЕНИЕ: -0.51 [16:48:02]line ИТОГО: 1000.00 [16:48:02]line Внесено: 1000.00 [16:48:02]line СДАЧА: 0.00 [16:48:02]line НСП 1% : 8.85 [16:48:02]line НДС 12% : 106.25 [16:48:02]line Наличными: 1000.00 [16:48:02]line Безнал.: 0.00 [16:48:02]line Место: АЗС № 85 "Партнер Нефть" [16:48:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:48:02]line СНО: Общий режим [16:48:02]line Чек 308 21.10.2024 16:48 [16:48:02]line Смена: 194 ФФД: 1.0 [16:48:02]line ЗНМ: 0300000167 [16:48:02]line РНМ: 0000000000156251 [16:48:02]line Версия ККМ: v1.0 [16:48:02]line ФМ: 0000000000963346 [16:48:02]line ФД: 69918 [16:48:02]line ФПД: 193455010125950 [16:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164802&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69918&fm=193455010125950&tin=02508201610067®Number=0000000000156251&sum=100000 [16:48:02]written 0, free lines is 4095 [16:48:03]OFD Sender: Processing packet 69918 [packets to send 18, broken 17] [16:48:03]ProducePacketName [16:48:03]name=ofd_packets/00069918 [16:48:03]OFD Sender: To server: pG, [16:48:03]CommunicateWithHost lk.salyk.kg:30040 [16:48:03]ConnectInit lk.salyk.kg [16:48:03]Connected sock=10 [16:48:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A0 C2 04 01 2E 55 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 32 31 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 34 01 00 00 F4 03 04 00 C2 85 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 11 01 00 35 04 06 00 AF F2 41 28 98 7E EB 6C B2 08 04 0C 40 C3 [16:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C5 EA 47 00 BA 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 11 01 00 F4 03 04 00 65 2F 16 67 B6 04 01 00 00 8D CF 6D 73 2D D9 26 0A [16:48:03]CommunicateWithHost err = 0 [16:48:03]CheckOFDResponse [16:48:03]1017 (14) - 77093643461234 [16:48:03]1041 (16) - 0000000000963346 [16:48:03]1040 (4) - 69918 [16:48:03]1012 (4) - 21.10.2024 10:39 [16:48:03]1206 (1) - 0 [16:48:03]OFD Sender: Remove packet 69918 [16:48:03]ProducePacketName [16:48:03]name=ofd_packets/00069918 [16:48:03]NVStorageDeleteData [16:48:03]Write to MH i2c: 01 00 00 F6 09 FF [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 07 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 07 00 F6 09 00 00 00 00 00 E9 0C FB [16:48:03]RasterBufferAndPrint [16:48:03]line [16:48:03]line [16:48:03]line [16:48:03]line [16:48:03]line [16:48:03]written 0, free lines is 3314 [16:48:03]MH_Cut [16:48:03]Write to MH i2c: D1 01 00 FD 09 01 D8 [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: D1 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: D1 01 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: D1 01 00 FD 09 00 D7 [16:48:03]Write to MH i2c: 01 00 00 FE 09 07 [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]OFD Sender: No OFD packet to send [16:48:04]*** Cut start [16:48:04]*** Partial cut [16:48:04]*** CUTSNS_PIN = 1 [16:48:04]*** CUTSNS_PIN = 0 [16:48:04]*** Brake cut motor [16:48:04]Read from MH i2c: 01 [16:48:04]MH_I2C_Read... [16:48:04]*** Stop cut motor [16:48:04]*** Cut end [16:48:04]Read from MH i2c: 01 07 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 07 00 FE 09 00 00 00 00 00 FF 0F 1C [16:48:04]process_action close_receipt done [16:48:04]requested_data is exist [16:48:04]produce_requested_data [16:48:04]requested_item fm.sn is exist - process it [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 11 00 00 [16:48:04]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 17 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [16:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:48:04]wFMCommunicate OK [16:48:04]requested_item fd.num is exist - process it [16:48:04]SAM_PROTO_GetFieldsCounters [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 13 00 00 [16:48:04]Write to MH i2c: E2 08 00 00 0A 80 13 00 00 00 00 00 00 86 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 62 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 62 00 00 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [16:48:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:04]wFMCommunicate OK [16:48:04]SAM_PROTO_GetFieldsCounters done [16:48:04]requested_item shift.num is exist - process it [16:48:04]requested_item shift.opened is exist - process it [16:48:04]req_shift_opened [16:48:04]FM_GetShiftState [16:48:04]SAM_PROTO_GetShiftState [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 13 01 00 [16:48:04]Write to MH i2c: E2 08 00 01 0A 80 13 01 00 00 00 00 00 88 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:05]Read from MH i2c: E2 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0E 00 [16:48:05]MH_I2C_Read... [16:48:05]Read from MH i2c: E2 0E 00 01 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B4 [16:48:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:48:05]wFMCommunicate OK [16:48:05]SAM_PROTO_GetShiftState done [16:48:05]FM_GetShiftState done [16:48:05]req_shift_opened done [16:48:05]requested_item shift.open_date is exist - process it [16:48:05]req_shift_open_date [16:48:05]req_shift_open_date done [16:48:05]produce_requested_data done [16:48:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69918,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:48:05]process_action_free close_receipt [16:48:05]json_value_free [16:48:05]json_value_free done [16:48:05]process_json_proto returns [16:48:05]Send response to host [16:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69918,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:48:05]free response buf [16:48:05]execute_script done [16:48:05]execute_script returns [16:48:05]free content buf [16:48:05]Sock 9.Close socket [16:48:05]Sock 9.Thread stoped [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:56]accept exits with 7 [16:51:56]New connection [16:51:56]New thread 3067170148 created [16:51:56]Thread 3067026788 joined [16:51:56]Waiting for new connection... [16:51:56] Sock 7.Parse request [16:51:56]Sock 7.Check first char [16:51:56]Sock 7.First char is OK [16:51:56]request: POST /json_proto HTTP/1.0 [16:51:56]Method: POST [16:51:56]URL: /json_proto [16:51:56]Method is POST - this is cgi request [16:51:56]url: /json_proto [16:51:56]query_string will be loaded in cgi processing [16:51:56]execute_cgi json_proto POST (null) [16:51:56]execute_cgi path=json_proto method=POST [16:51:56]POST find Content-Length [16:51:56]Host: 172.17.50.3:8080 [16:51:56]Content-Length: 770 [16:51:56]Content-Type: application/json [16:51:56] [16:51:56]POST finish read [16:51:56]Found Content-Length = 770 [16:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:56]execute_script... [16:51: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)2885675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:56]POST & json_proto [16:51:56]process_json_proto [16:51:56]json parsed OK: [16:51:56]protocol is kg_v1.0 [16:51:56]action value=close_receipt [16:51:56]process_action close_receipt [16:51:56]cmd_close_receipt [16:51:56]MH_GetDate [16:51:56]Write to MH i2c: F0 00 00 02 0A FB [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: F0 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: F0 09 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: F0 09 00 02 0A 00 AC 86 16 67 6B 98 1E 66 3A [16:51:56]GetLastDocTimeStamp 1729529282 [16:51:56]current date 1729529516 [16:51:56]FM_GetShiftState [16:51:56]SAM_PROTO_GetShiftState [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 13 01 00 [16:51:56]Write to MH i2c: E2 08 00 03 0A 80 13 01 00 00 00 00 00 8A [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0E 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 0E 00 03 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B6 [16:51:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:51:56]wFMCommunicate OK [16:51:56]SAM_PROTO_GetShiftState done [16:51:56]FM_GetShiftState done [16:51:56]opened in 1729469703 [16:51:56]opened+sec_in_day 1729556103 [16:51:56]quantity*price = 200043 [16:51:56]sum+1 = 200044 [16:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 309 21.10.2024 16:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69919 ФПД: 187143296483955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165156&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69919&fm=187143296483955&tin=02508201610067®Number=0000000000156251&sum=200043 [16:51:57]StoreToDocumentArchive [16:51:57]shift 194 fd 69919 [16:51:57]save to /storage/0194/doc_00069919 [16:51:57]save last doc name /storage/0194/doc_00069919 to /storage/kkm_last_doc_name [16:51:57]save OK [16:51:57]Clear old archive folders... [16:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:57]tlvbuf is 010E4A10 [16:51:57]SAM_PROTO_ClearQueue [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 09 00 00 [16:51:57]Write to MH i2c: E2 08 00 10 0A 80 09 00 00 00 00 00 00 8C [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]SAM_PROTO_ClearQueue done [16:51:57]KKMCreateOFDPacket [16:51:57]OFDProtocolAddRootSTLVToBuf [16:51:57]FM_MakeSignedData [16:51:57]FM_MakeSignedData [16:51:57]SAM_PROTO_SignData [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 01 02 [16:51:57]Write to MH i2c: E2 08 00 11 0A 80 0D 01 02 00 00 00 00 94 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=255 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 AC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 11 01 00 35 04 06 00 AA [16:51:57]Write to MH i2c: E2 02 01 12 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 AC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 11 01 00 35 04 06 00 AA 00 00 9D [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=10 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 02 02 05 34 B1 B5 82 73 [16:51:57]Write to MH i2c: E2 0D 00 13 0A 80 0D 02 02 05 00 34 B1 B5 82 73 00 00 30 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 03 02 [16:51:57]Write to MH i2c: E2 08 00 14 0A 80 0D 03 02 00 00 00 00 99 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0B 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0B 00 14 0A 00 05 63 BE A7 FD E7 7D 0D 90 00 D5 [16:51:57]RAPDU: 05 63 BE A7 FD E7 7D 0D 90 00 [16:51:57]wFMCommunicate OK [16:51:57]SAM_PROTO_SignData done [16:51:57]FM_MakeSignedData done [16:51:57]CreateOFDProtocolMessage [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 11 00 00 [16:51:57]Write to MH i2c: E2 08 00 15 0A 80 11 00 00 00 00 00 00 99 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 17 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 17 00 15 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [16:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:51:57]wFMCommunicate OK [16:51:57]CreateOFDProtocolMessage done [16:51:57]OFDSenderStorePacket 69919 [16:51:57]StoreOFDPacket docnum=69919 [16:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 1E 07 01 B5 63 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 AC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 11 01 00 35 04 06 00 AA 34 B1 B5 82 73 05 63 BE A7 FD E7 7D 0D [16:51:57]CheckFolder [16:51:57]dirname=/storage/ofd_packets [16:51:57]CheckFolder done [16:51:57]ProducePacketName [16:51:57]name=ofd_packets/00069919 [16:51:57]NVStorageSaveData ofd_packets/00069919 [16:51:57]File name is /storage/ofd_packets/00069919 [16:51:57]Write 301 bytes [16:51:57]NVStorageSaveData done [16:51:57]OFDSenderStorePacket done [16:51:57]KKMCreateOFDPacket done [16:51:57]NVStorageSaveData kkm_last_timestamp [16:51:57]File name is /storage/kkm_last_timestamp [16:51:57]Write 4 bytes [16:51:57]NVStorageSaveData done [16:51:57]ExternCall_PrintAddStr [16:51:57]wPrintStart [16:51:57]Write to MH i2c: 01 00 00 16 0A 20 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 07 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 FF 0F 35 [16:51:57]RasterBufferAndPrint [16:51:57]line Счет N : (1)2885675 [16:51:57]line ИНН: 02508201610067 [16:51:57]line Контрольно-Кассовый Чек [16:51:57]line ПРОДАЖА [16:51:57]line ТРК (МРК, ГНК) : 13 [16:51:57]line Товар: 2710124500 [16:51:57]line Аи-95-К-5 [16:51:57]line 26.960 * 74.20 [16:51:57]line = 2000.43 [16:51:57]line НДС 12% НСП 1% [16:51:57]line > о реализуемом товаре [16:51:57]line ИТОГО: 2000.43 [16:51:57]line НСП 1% : 17.70 [16:51:57]line НДС 12% : 212.43 [16:51:57]line Наличными: 0.00 [16:51:57]line Безнал.: 2000.43 [16:51:57]line Место: АЗС № 85 "Партнер Нефть" [16:51:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:51:57]line СНО: Общий режим [16:51:57]line Чек 309 21.10.2024 16:51 [16:51:57]line Смена: 194 ФФД: 1.0 [16:51:57]line ЗНМ: 0300000167 [16:51:57]line РНМ: 0000000000156251 [16:51:57]line Версия ККМ: v1.0 [16:51:57]line Платежная система: Mbank [16:51:57]line ФМ: 0000000000963346 [16:51:57]line ФД: 69919 [16:51:57]line ФПД: 187143296483955 [16:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165156&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69919&fm=187143296483955&tin=02508201610067®Number=0000000000156251&sum=200043 [16:51:57]OFD Sender: Processing packet 69919 [packets to send 18, broken 17] [16:51:57]ProducePacketName [16:51:57]name=ofd_packets/00069919 [16:51:57]OFD Sender: To server: pG, [16:51:57]CommunicateWithHost lk.salyk.kg:30040 [16:51:57]ConnectInit lk.salyk.kg [16:51:58]written 0, free lines is 4095 [16:51:58]Connected sock=10 [16:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 1E 07 01 B5 63 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 AC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 11 01 00 35 04 06 00 AA 34 B1 B5 82 73 05 63 BE A7 FD E7 7D 0D [16:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F8 72 47 00 23 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 11 01 00 F4 03 04 00 50 30 16 67 B6 04 01 00 00 98 28 34 35 25 93 08 A4 [16:51:58]CommunicateWithHost err = 0 [16:51:58]CheckOFDResponse [16:51:58]1017 (14) - 77093643461234 [16:51:58]1041 (16) - 0000000000963346 [16:51:58]1040 (4) - 69919 [16:51:58]1012 (4) - 21.10.2024 10:43 [16:51:58]1206 (1) - 0 [16:51:58]OFD Sender: Remove packet 69919 [16:51:58]ProducePacketName [16:51:58]name=ofd_packets/00069919 [16:51:58]NVStorageDeleteData [16:51:58]Write to MH i2c: 01 00 00 3F 0A 49 [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 07 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 1D 0D 7A [16:51:58]RasterBufferAndPrint [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]written 0, free lines is 3363 [16:51:58]MH_Cut [16:51:58]Write to MH i2c: D1 01 00 46 0A 01 22 [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: D1 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: D1 01 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: D1 01 00 46 0A 00 21 [16:51:58]Write to MH i2c: 01 00 00 47 0A 51 [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]OFD Sender: No OFD packet to send [16:51:59]*** Cut start [16:51:59]*** Partial cut [16:51:59]*** CUTSNS_PIN = 1 [16:51:59]*** CUTSNS_PIN = 0 [16:51:59]*** Brake cut motor [16:51:59]Read from MH i2c: 01 [16:51:59]MH_I2C_Read... [16:51:59]*** Stop cut motor [16:51:59]*** Cut end [16:51:59]Read from MH i2c: 01 07 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [16:51:59]process_action close_receipt done [16:51:59]requested_data is exist [16:51:59]produce_requested_data [16:51:59]requested_item fm.sn is exist - process it [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 11 00 00 [16:51:59]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 17 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [16:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:51:59]wFMCommunicate OK [16:51:59]requested_item fd.num is exist - process it [16:51:59]SAM_PROTO_GetFieldsCounters [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 13 00 00 [16:51:59]Write to MH i2c: E2 08 00 49 0A 80 13 00 00 00 00 00 00 CF [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 62 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 62 00 49 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_GetFieldsCounters done [16:51:59]requested_item shift.num is exist - process it [16:51:59]requested_item shift.opened is exist - process it [16:51:59]req_shift_opened [16:51:59]FM_GetShiftState [16:51:59]SAM_PROTO_GetShiftState [16:51:59]wFMCommunicate request_size=4 [16:51:59]MH_SAM_APDU [16:51:59]CAPDU: 80 13 01 00 [16:51:59]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [16:51:59]Write i2c OK [16:51:59]MH_I2C_Read... [16:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:59]Read from MH i2c: E2 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0E 00 [16:51:59]MH_I2C_Read... [16:51:59]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FD [16:51:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:51:59]wFMCommunicate OK [16:51:59]SAM_PROTO_GetShiftState done [16:51:59]FM_GetShiftState done [16:51:59]req_shift_opened done [16:51:59]requested_item shift.open_date is exist - process it [16:51:59]req_shift_open_date [16:51:59]req_shift_open_date done [16:51:59]produce_requested_data done [16:51:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69919,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:51:59]process_action_free close_receipt [16:51:59]json_value_free [16:51:59]json_value_free done [16:51:59]process_json_proto returns [16:51:59]Send response to host [16:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69919,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:51:59]free response buf [16:51:59]execute_script done [16:51:59]execute_script returns [16:51:59]free content buf [16:51:59]Sock 7.Close socket [16:51:59]Sock 7.Thread stoped [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:11]accept exits with 9 [16:52:11]New connection [16:52:11]New thread 3067026788 created [16:52:11]Thread 3067170148 joined [16:52:11]Waiting for new connection... [16:52:11] Sock 9.Parse request [16:52:11]Sock 9.Check first char [16:52:11]Sock 9.First char is OK [16:52:11]request: POST /json_proto HTTP/1.0 [16:52:11]Method: POST [16:52:11]URL: /json_proto [16:52:11]Method is POST - this is cgi request [16:52:11]url: /json_proto [16:52:11]query_string will be loaded in cgi processing [16:52:11]execute_cgi json_proto POST (null) [16:52:11]execute_cgi path=json_proto method=POST [16:52:11]POST find Content-Length [16:52:11]Host: 172.17.50.3:8080 [16:52:11]Content-Length: 680 [16:52:11]Content-Type: application/json [16:52:11] [16:52:11]POST finish read [16:52:11]Found Content-Length = 680 [16:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [16:52:11]execute_script... [16:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [16:52:11]POST & json_proto [16:52:11]process_json_proto [16:52:11]json parsed OK: [16:52:11]protocol is kg_v1.0 [16:52:11]action value=close_receipt [16:52:11]process_action close_receipt [16:52:11]cmd_close_receipt [16:52:11]MH_GetDate [16:52:11]Write to MH i2c: F0 00 00 4B 0A 44 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 4B 0A 00 BC 86 16 67 6B 98 1E 66 93 [16:52:11]GetLastDocTimeStamp 1729529516 [16:52:11]current date 1729529532 [16:52:11]FM_GetShiftState [16:52:11]SAM_PROTO_GetShiftState [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 01 00 [16:52:11]Write to MH i2c: E2 08 00 4C 0A 80 13 01 00 00 00 00 00 D3 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 4C 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FF [16:52:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftState done [16:52:11]FM_GetShiftState done [16:52:11]opened in 1729469703 [16:52:11]opened+sec_in_day 1729556103 [16:52:11]quantity*price = 150037 [16:52:11]sum+1 = 150039 [16:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 310 21.10.2024 16:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69920 ФПД: 90837395850311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69920&fm=90837395850311&tin=02508201610067®Number=0000000000156251&sum=150000 [16:52:12]StoreToDocumentArchive [16:52:12]shift 194 fd 69920 [16:52:12]save to /storage/0194/doc_00069920 [16:52:12]save last doc name /storage/0194/doc_00069920 to /storage/kkm_last_doc_name [16:52:12]save OK [16:52:12]Clear old archive folders... [16:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:12]tlvbuf is 011018C0 [16:52:12]SAM_PROTO_ClearQueue [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 09 00 00 [16:52:12]Write to MH i2c: E2 08 00 59 0A 80 09 00 00 00 00 00 00 D5 [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [16:52:12]RAPDU: 90 00 [16:52:12]wFMCommunicate OK [16:52:12]SAM_PROTO_ClearQueue done [16:52:12]KKMCreateOFDPacket [16:52:12]OFDProtocolAddRootSTLVToBuf [16:52:12]FM_MakeSignedData [16:52:12]FM_MakeSignedData [16:52:12]SAM_PROTO_SignData [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 0D 01 02 [16:52:12]Write to MH i2c: E2 08 00 5A 0A 80 0D 01 02 00 00 00 00 DD [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=255 [16:52:13]MH_SAM_APDU [16:52:13]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 32 31 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 36 01 00 00 F4 03 04 00 BC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 11 01 00 35 04 06 00 52 9D BA B6 [16:52:13]Write to MH i2c: E2 02 01 5B 0A 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 32 31 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 36 01 00 00 F4 03 04 00 BC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 11 01 00 35 04 06 00 52 9D BA B6 00 00 1C [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=7 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 02 44 47 [16:52:13]Write to MH i2c: E2 0A 00 5C 0A 80 0D 02 02 02 00 44 47 00 00 6F [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 03 02 [16:52:13]Write to MH i2c: E2 08 00 5D 0A 80 0D 03 02 00 00 00 00 E2 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 5D 0A 00 CD 73 5C 7A 85 51 AC 58 90 00 D3 [16:52:13]RAPDU: CD 73 5C 7A 85 51 AC 58 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_SignData done [16:52:13]FM_MakeSignedData done [16:52:13]CreateOFDProtocolMessage [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 11 00 00 [16:52:13]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [16:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:13]wFMCommunicate OK [16:52:13]CreateOFDProtocolMessage done [16:52:13]OFDSenderStorePacket 69920 [16:52:13]StoreOFDPacket docnum=69920 [16:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 2F 04 01 7F AE 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 32 31 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 36 01 00 00 F4 03 04 00 BC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 11 01 00 35 04 06 00 52 9D BA B6 44 47 CD 73 5C 7A 85 51 AC 58 [16:52:13]CheckFolder [16:52:13]dirname=/storage/ofd_packets [16:52:13]CheckFolder done [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00069920 [16:52:13]NVStorageSaveData ofd_packets/00069920 [16:52:13]File name is /storage/ofd_packets/00069920 [16:52:13]Write 298 bytes [16:52:13]NVStorageSaveData done [16:52:13]OFDSenderStorePacket done [16:52:13]KKMCreateOFDPacket done [16:52:13]NVStorageSaveData kkm_last_timestamp [16:52:13]File name is /storage/kkm_last_timestamp [16:52:13]Write 4 bytes [16:52:13]NVStorageSaveData done [16:52:13]ExternCall_PrintAddStr [16:52:13]wPrintStart [16:52:13]Write to MH i2c: 01 00 00 5F 0A 69 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 FF 0F 7E [16:52:13]RasterBufferAndPrint [16:52:13]line Счет N : (1)2885677 [16:52:13]line ИНН: 02508201610067 [16:52:13]line Контрольно-Кассовый Чек [16:52:13]line ПРОДАЖА [16:52:13]line ТРК (МРК, ГНК) : 61 [16:52:13]line Товар: 2710194210 [16:52:13]line ДТ-К-5 [16:52:13]line 19.690 * 76.20 [16:52:13]line = 1500.38 [16:52:13]line НДС 12% НСП 1% [16:52:13]line > о реализуемом товаре [16:52:13]line ОКРУГЛЕНИЕ: -0.38 [16:52:13]line ИТОГО: 1500.00 [16:52:13]line Внесено: 1500.00 [16:52:13]line СДАЧА: 0.00 [16:52:13]line НСП 1% : 13.28 [16:52:13]line НДС 12% : 159.33 [16:52:13]line Наличными: 1500.00 [16:52:13]line Безнал.: 0.00 [16:52:13]line Место: АЗС № 85 "Партнер Нефть" [16:52:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:52:13]line СНО: Общий режим [16:52:13]line Чек 310 21.10.2024 16:52 [16:52:13]line Смена: 194 ФФД: 1.0 [16:52:13]line ЗНМ: 0300000167 [16:52:13]line РНМ: 0000000000156251 [16:52:13]line Версия ККМ: v1.0 [16:52:13]line ФМ: 0000000000963346 [16:52:13]line ФД: 69920 [16:52:13]line ФПД: 90837395850311 [16:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69920&fm=90837395850311&tin=02508201610067®Number=0000000000156251&sum=150000 [16:52:13]OFD Sender: Processing packet 69920 [packets to send 18, broken 17] [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00069920 [16:52:13]OFD Sender: To server: pG, [16:52:13]CommunicateWithHost lk.salyk.kg:30040 [16:52:13]ConnectInit lk.salyk.kg [16:52:13]written 0, free lines is 4095 [16:52:13]Connected sock=10 [16:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 2F 04 01 7F AE 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 32 31 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 36 01 00 00 F4 03 04 00 BC 86 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 11 01 00 35 04 06 00 52 9D BA B6 44 47 CD 73 5C 7A 85 51 AC 58 [16:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F6 29 47 00 61 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 39 36 33 33 34 36 10 04 04 00 20 11 01 00 F4 03 04 00 5F 30 16 67 B6 04 01 00 00 1E CD 22 71 B3 1D 3D 09 [16:52:14]CommunicateWithHost err = 0 [16:52:14]CheckOFDResponse [16:52:14]1017 (14) - 77093643461234 [16:52:14]1041 (16) - 0000000000963346 [16:52:14]1040 (4) - 69920 [16:52:14]1012 (4) - 21.10.2024 10:43 [16:52:14]1206 (1) - 0 [16:52:14]OFD Sender: Remove packet 69920 [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00069920 [16:52:14]NVStorageDeleteData [16:52:14]Write to MH i2c: 01 00 00 8A 0A 94 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 F5 0C 9C [16:52:14]RasterBufferAndPrint [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]written 0, free lines is 3323 [16:52:14]MH_Cut [16:52:14]Write to MH i2c: D1 01 00 91 0A 01 6D [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 91 0A 00 6C [16:52:14]Write to MH i2c: 01 00 00 92 0A 9C [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]OFD Sender: No OFD packet to send [16:52:14]*** Cut start [16:52:14]*** Partial cut [16:52:14]*** CUTSNS_PIN = 1 [16:52:14]*** CUTSNS_PIN = 0 [16:52:15]*** Brake cut motor [16:52:15]Read from MH i2c: 01 [16:52:15]MH_I2C_Read... [16:52:15]*** Stop cut motor [16:52:15]*** Cut end [16:52:15]Read from MH i2c: 01 07 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [16:52:15]process_action close_receipt done [16:52:15]requested_data is exist [16:52:15]produce_requested_data [16:52:15]requested_item fm.sn is exist - process it [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 11 00 00 [16:52:15]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [16:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:15]wFMCommunicate OK [16:52:15]requested_item fd.num is exist - process it [16:52:15]SAM_PROTO_GetFieldsCounters [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 00 00 [16:52:15]Write to MH i2c: E2 08 00 94 0A 80 13 00 00 00 00 00 00 1A [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 94 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetFieldsCounters done [16:52:15]requested_item shift.num is exist - process it [16:52:15]requested_item shift.opened is exist - process it [16:52:15]req_shift_opened [16:52:15]FM_GetShiftState [16:52:15]SAM_PROTO_GetShiftState [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 01 00 [16:52:15]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 48 [16:52:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetShiftState done [16:52:15]FM_GetShiftState done [16:52:15]req_shift_opened done [16:52:15]requested_item shift.open_date is exist - process it [16:52:15]req_shift_open_date [16:52:15]req_shift_open_date done [16:52:15]produce_requested_data done [16:52:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69920,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:52:15]process_action_free close_receipt [16:52:15]json_value_free [16:52:15]json_value_free done [16:52:15]process_json_proto returns [16:52:15]Send response to host [16:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69920,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:52:15]free response buf [16:52:15]execute_script done [16:52:15]execute_script returns [16:52:15]free content buf [16:52:15]Sock 9.Close socket [16:52:15]Sock 9.Thread stoped [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:14]accept exits with 7 [16:54:14]New connection [16:54:14]New thread 3067170148 created [16:54:14]Thread 3067026788 joined [16:54:14]Waiting for new connection... [16:54:14] Sock 7.Parse request [16:54:14]Sock 7.Check first char [16:54:14]Sock 7.First char is OK [16:54:14]request: POST /json_proto HTTP/1.0 [16:54:14]Method: POST [16:54:14]URL: /json_proto [16:54:14]Method is POST - this is cgi request [16:54:14]url: /json_proto [16:54:14]query_string will be loaded in cgi processing [16:54:14]execute_cgi json_proto POST (null) [16:54:14]execute_cgi path=json_proto method=POST [16:54:14]POST find Content-Length [16:54:14]Host: 172.17.50.3:8080 [16:54:14]Content-Length: 770 [16:54:14]Content-Type: application/json [16:54:14] [16:54:14]POST finish read [16:54:14]Found Content-Length = 770 [16:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885678", "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" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:14]execute_script... [16:54: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)2885678", "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" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:14]POST & json_proto [16:54:14]process_json_proto [16:54:14]json parsed OK: [16:54:14]protocol is kg_v1.0 [16:54:14]action value=close_receipt [16:54:14]process_action close_receipt [16:54:14]cmd_close_receipt [16:54:14]MH_GetDate [16:54:14]Write to MH i2c: F0 00 00 96 0A 8F [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 96 0A 00 37 87 16 67 6B 98 1E 66 5A [16:54:14]GetLastDocTimeStamp 1729529532 [16:54:14]current date 1729529655 [16:54:14]FM_GetShiftState [16:54:14]SAM_PROTO_GetShiftState [16:54:14]wFMCommunicate request_size=4 [16:54:14]MH_SAM_APDU [16:54:14]CAPDU: 80 13 01 00 [16:54:14]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:14]Read from MH i2c: E2 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4A [16:54:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:54:14]wFMCommunicate OK [16:54:14]SAM_PROTO_GetShiftState done [16:54:14]FM_GetShiftState done [16:54:14]opened in 1729469703 [16:54:14]opened+sec_in_day 1729556103 [16:54:14]quantity*price = 200043 [16:54:14]sum+1 = 200044 [16:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 311 21.10.2024 16:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69921 ФПД: 37945945275938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69921&fm=37945945275938&tin=02508201610067®Number=0000000000156251&sum=200043 [16:54:15]StoreToDocumentArchive [16:54:15]shift 194 fd 69921 [16:54:15]save to /storage/0194/doc_00069921 [16:54:15]save last doc name /storage/0194/doc_00069921 to /storage/kkm_last_doc_name [16:54:15]save OK [16:54:15]Clear old archive folders... [16:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:15]tlvbuf is 011168E0 [16:54:15]SAM_PROTO_ClearQueue [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 09 00 00 [16:54:15]Write to MH i2c: E2 08 00 A4 0A 80 09 00 00 00 00 00 00 20 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [16:54:16]RAPDU: 90 00 [16:54:16]wFMCommunicate OK [16:54:16]SAM_PROTO_ClearQueue done [16:54:16]KKMCreateOFDPacket [16:54:16]OFDProtocolAddRootSTLVToBuf [16:54:16]FM_MakeSignedData [16:54:16]FM_MakeSignedData [16:54:16]SAM_PROTO_SignData [16:54:16]wFMCommunicate request_size=4 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 0D 01 02 [16:54:16]Write to MH i2c: E2 08 00 A5 0A 80 0D 01 02 00 00 00 00 28 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [16:54:16]RAPDU: 90 00 [16:54:16]wFMCommunicate OK [16:54:16]wFMCommunicate request_size=255 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 37 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 11 01 00 35 04 06 00 22 [16:54:16]Write to MH i2c: E2 02 01 A6 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 37 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 11 01 00 35 04 06 00 22 00 00 39 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [16:54:16]RAPDU: 90 00 [16:54:16]wFMCommunicate OK [16:54:16]wFMCommunicate request_size=10 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 0D 02 02 05 82 FA 96 BE 22 [16:54:16]Write to MH i2c: E2 0D 00 A7 0A 80 0D 02 02 05 00 82 FA 96 BE 22 00 00 27 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [16:54:16]RAPDU: 90 00 [16:54:16]wFMCommunicate OK [16:54:16]wFMCommunicate request_size=4 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 0D 03 02 [16:54:16]Write to MH i2c: E2 08 00 A8 0A 80 0D 03 02 00 00 00 00 2D [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 0B 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 0B 00 A8 0A 00 AA C1 C1 E1 D2 19 53 E9 90 00 62 [16:54:16]RAPDU: AA C1 C1 E1 D2 19 53 E9 90 00 [16:54:16]wFMCommunicate OK [16:54:16]SAM_PROTO_SignData done [16:54:16]FM_MakeSignedData done [16:54:16]CreateOFDProtocolMessage [16:54:16]wFMCommunicate request_size=4 [16:54:16]MH_SAM_APDU [16:54:16]CAPDU: 80 11 00 00 [16:54:16]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:16]Read from MH i2c: E2 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 17 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [16:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:54:16]wFMCommunicate OK [16:54:16]CreateOFDProtocolMessage done [16:54:16]OFDSenderStorePacket 69921 [16:54:16]StoreOFDPacket docnum=69921 [16:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 BE 07 01 9B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 37 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 11 01 00 35 04 06 00 22 82 FA 96 BE 22 AA C1 C1 E1 D2 19 53 E9 [16:54:16]CheckFolder [16:54:16]dirname=/storage/ofd_packets [16:54:16]CheckFolder done [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00069921 [16:54:16]NVStorageSaveData ofd_packets/00069921 [16:54:16]File name is /storage/ofd_packets/00069921 [16:54:16]Write 301 bytes [16:54:16]NVStorageSaveData done [16:54:16]OFDSenderStorePacket done [16:54:16]KKMCreateOFDPacket done [16:54:16]NVStorageSaveData kkm_last_timestamp [16:54:16]File name is /storage/kkm_last_timestamp [16:54:16]Write 4 bytes [16:54:16]NVStorageSaveData done [16:54:16]ExternCall_PrintAddStr [16:54:16]wPrintStart [16:54:16]Write to MH i2c: 01 00 00 AA 0A B4 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [16:54:16]RasterBufferAndPrint [16:54:16]line Счет N : (1)2885678 [16:54:16]line ИНН: 02508201610067 [16:54:16]line Контрольно-Кассовый Чек [16:54:16]line ПРОДАЖА [16:54:16]line ТРК (МРК, ГНК) : 33 [16:54:16]line Товар: 2710124500 [16:54:16]line Аи-95-К-5 [16:54:16]line 26.960 * 74.20 [16:54:16]line = 2000.43 [16:54:16]line НДС 12% НСП 1% [16:54:16]line > о реализуемом товаре [16:54:16]line ИТОГО: 2000.43 [16:54:16]line НСП 1% : 17.70 [16:54:16]line НДС 12% : 212.43 [16:54:16]line Наличными: 0.00 [16:54:16]line Безнал.: 2000.43 [16:54:16]line Место: АЗС № 85 "Партнер Нефть" [16:54:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:54:16]line СНО: Общий режим [16:54:16]line Чек 311 21.10.2024 16:54 [16:54:16]line Смена: 194 ФФД: 1.0 [16:54:16]line ЗНМ: 0300000167 [16:54:16]line РНМ: 0000000000156251 [16:54:16]line Версия ККМ: v1.0 [16:54:16]line Платежная система: Mbank [16:54:16]line ФМ: 0000000000963346 [16:54:16]line ФД: 69921 [16:54:16]line ФПД: 37945945275938 [16:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69921&fm=37945945275938&tin=02508201610067®Number=0000000000156251&sum=200043 [16:54:16]OFD Sender: Processing packet 69921 [packets to send 18, broken 17] [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00069921 [16:54:16]OFD Sender: To server: pG, [16:54:16]CommunicateWithHost lk.salyk.kg:30040 [16:54:16]ConnectInit lk.salyk.kg [16:54:16]written 0, free lines is 4095 [16:54:16]Connected sock=10 [16:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 BE 07 01 9B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 37 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 11 01 00 35 04 06 00 22 82 FA 96 BE 22 AA C1 C1 E1 D2 19 53 E9 [16:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 07 39 47 00 03 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 11 01 00 F4 03 04 00 DA 30 16 67 B6 04 01 00 00 67 7E 0F 29 DB DC A1 28 [16:54:17]CommunicateWithHost err = 0 [16:54:17]CheckOFDResponse [16:54:17]1017 (14) - 77093643461234 [16:54:17]1041 (16) - 0000000000963346 [16:54:17]1040 (4) - 69921 [16:54:17]1012 (4) - 21.10.2024 10:45 [16:54:17]1206 (1) - 0 [16:54:17]OFD Sender: Remove packet 69921 [16:54:17]ProducePacketName [16:54:17]name=ofd_packets/00069921 [16:54:17]NVStorageDeleteData [16:54:17]Write to MH i2c: 01 00 00 D3 0A DD [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 15 0D 06 [16:54:17]RasterBufferAndPrint [16:54:17]line [16:54:17]line [16:54:17]line [16:54:17]line [16:54:17]line [16:54:17]written 0, free lines is 3356 [16:54:17]MH_Cut [16:54:17]Write to MH i2c: D1 01 00 DA 0A 01 B6 [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D1 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D1 01 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: D1 01 00 DA 0A 00 B5 [16:54:17]Write to MH i2c: 01 00 00 DB 0A E5 [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]OFD Sender: No OFD packet to send [16:54:17]*** Cut start [16:54:17]*** Partial cut [16:54:17]*** CUTSNS_PIN = 1 [16:54:17]*** CUTSNS_PIN = 0 [16:54:18]*** Brake cut motor [16:54:18]Read from MH i2c: 01 [16:54:18]MH_I2C_Read... [16:54:18]*** Stop cut motor [16:54:18]*** Cut end [16:54:18]Read from MH i2c: 01 07 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: 01 07 00 DB 0A 00 00 00 00 00 FF 0F FA [16:54:18]process_action close_receipt done [16:54:18]requested_data is exist [16:54:18]produce_requested_data [16:54:18]requested_item fm.sn is exist - process it [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 11 00 00 [16:54:18]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [16:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:54:18]wFMCommunicate OK [16:54:18]requested_item fd.num is exist - process it [16:54:18]SAM_PROTO_GetFieldsCounters [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 00 00 [16:54:18]Write to MH i2c: E2 08 00 DD 0A 80 13 00 00 00 00 00 00 63 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 DD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetFieldsCounters done [16:54:18]requested_item shift.num is exist - process it [16:54:18]requested_item shift.opened is exist - process it [16:54:18]req_shift_opened [16:54:18]FM_GetShiftState [16:54:18]SAM_PROTO_GetShiftState [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 01 00 [16:54:18]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 91 [16:54:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetShiftState done [16:54:18]FM_GetShiftState done [16:54:18]req_shift_opened done [16:54:18]requested_item shift.open_date is exist - process it [16:54:18]req_shift_open_date [16:54:18]req_shift_open_date done [16:54:18]produce_requested_data done [16:54:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69921,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:54:18]process_action_free close_receipt [16:54:18]json_value_free [16:54:18]json_value_free done [16:54:18]process_json_proto returns [16:54:18]Send response to host [16:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69921,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:54:18]free response buf [16:54:18]execute_script done [16:54:18]execute_script returns [16:54:18]free content buf [16:54:18]Sock 7.Close socket [16:54:18]Sock 7.Thread stoped [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:44]accept exits with 9 [16:54:44]New connection [16:54:44]New thread 3067026788 created [16:54:44]Thread 3067170148 joined [16:54:44]Waiting for new connection... [16:54:44] Sock 9.Parse request [16:54:44]Sock 9.Check first char [16:54:44]Sock 9.First char is OK [16:54:44]request: POST /json_proto HTTP/1.0 [16:54:44]Method: POST [16:54:44]URL: /json_proto [16:54:44]Method is POST - this is cgi request [16:54:44]url: /json_proto [16:54:44]query_string will be loaded in cgi processing [16:54:44]execute_cgi json_proto POST (null) [16:54:44]execute_cgi path=json_proto method=POST [16:54:44]POST find Content-Length [16:54:44]Host: 172.17.50.3:8080 [16:54:44]Content-Length: 798 [16:54:44]Content-Type: application/json [16:54:44] [16:54:44]POST finish read [16:54:44]Found Content-Length = 798 [16:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2155164", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:44]execute_script... [16:54:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2155164", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:44]POST & json_proto [16:54:44]process_json_proto [16:54:44]json parsed OK: [16:54:44]protocol is kg_v1.0 [16:54:44]action value=close_receipt [16:54:44]process_action close_receipt [16:54:44]cmd_close_receipt [16:54:44]MH_GetDate [16:54:44]Write to MH i2c: F0 00 00 DF 0A D8 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: F0 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: F0 09 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: F0 09 00 DF 0A 00 55 87 16 67 6B 98 1E 66 C1 [16:54:44]GetLastDocTimeStamp 1729529655 [16:54:44]current date 1729529685 [16:54:44]FM_GetShiftState [16:54:44]SAM_PROTO_GetShiftState [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 13 01 00 [16:54:44]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 0E 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 93 [16:54:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:54:44]wFMCommunicate OK [16:54:44]SAM_PROTO_GetShiftState done [16:54:44]FM_GetShiftState done [16:54:44]opened in 1729469703 [16:54:44]opened+sec_in_day 1729556103 [16:54:44]quantity*price = 0 [16:54:44]sum+1 = 1 [16:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 312 21.10.2024 16:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 2155164 ФМ: 0000000000963346 ФД: 69922 ФПД: 240941927808092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165445&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69922&fm=240941927808092&tin=02508201610067®Number=0000000000156251&sum=0 [16:54:45]StoreToDocumentArchive [16:54:45]shift 194 fd 69922 [16:54:45]save to /storage/0194/doc_00069922 [16:54:45]save last doc name /storage/0194/doc_00069922 to /storage/kkm_last_doc_name [16:54:45]save OK [16:54:45]Clear old archive folders... [16:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:45]tlvbuf is 0112A0F0 [16:54:45]SAM_PROTO_ClearQueue [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 09 00 00 [16:54:45]Write to MH i2c: E2 08 00 ED 0A 80 09 00 00 00 00 00 00 69 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [16:54:45]RAPDU: 90 00 [16:54:45]wFMCommunicate OK [16:54:45]SAM_PROTO_ClearQueue done [16:54:45]KKMCreateOFDPacket [16:54:45]OFDProtocolAddRootSTLVToBuf [16:54:45]FM_MakeSignedData [16:54:45]FM_MakeSignedData [16:54:45]SAM_PROTO_SignData [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 0D 01 02 [16:54:45]Write to MH i2c: E2 08 00 EE 0A 80 0D 01 02 00 00 00 00 71 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [16:54:45]RAPDU: 90 00 [16:54:45]wFMCommunicate OK [16:54:45]wFMCommunicate request_size=255 [16:54:45]MH_SAM_APDU [16:54:45]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 55 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 11 01 00 35 04 06 00 DB 22 AA 04 [16:54:45]Write to MH i2c: E2 02 01 EF 0A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 55 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 11 01 00 35 04 06 00 DB 22 AA 04 00 00 32 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=7 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 02 02 02 BC 5C [16:54:46]Write to MH i2c: E2 0A 00 F0 0A 80 0D 02 02 02 00 BC 5C 00 00 90 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 03 02 [16:54:46]Write to MH i2c: E2 08 00 F1 0A 80 0D 03 02 00 00 00 00 76 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 0B 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 0B 00 F1 0A 00 7F ED 67 BC BA D3 6F 41 90 00 43 [16:54:46]RAPDU: 7F ED 67 BC BA D3 6F 41 90 00 [16:54:46]wFMCommunicate OK [16:54:46]SAM_PROTO_SignData done [16:54:46]FM_MakeSignedData done [16:54:46]CreateOFDProtocolMessage [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 11 00 00 [16:54:46]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [16:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:54:46]wFMCommunicate OK [16:54:46]CreateOFDProtocolMessage done [16:54:46]OFDSenderStorePacket 69922 [16:54:46]StoreOFDPacket docnum=69922 [16:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 2C 04 01 C4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 55 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 11 01 00 35 04 06 00 DB 22 AA 04 BC 5C 7F ED 67 BC BA D3 6F 41 [16:54:46]CheckFolder [16:54:46]dirname=/storage/ofd_packets [16:54:46]CheckFolder done [16:54:46]ProducePacketName [16:54:46]name=ofd_packets/00069922 [16:54:46]NVStorageSaveData ofd_packets/00069922 [16:54:46]File name is /storage/ofd_packets/00069922 [16:54:46]Write 298 bytes [16:54:46]NVStorageSaveData done [16:54:46]OFDSenderStorePacket done [16:54:46]KKMCreateOFDPacket done [16:54:46]NVStorageSaveData kkm_last_timestamp [16:54:46]File name is /storage/kkm_last_timestamp [16:54:46]Write 4 bytes [16:54:46]NVStorageSaveData done [16:54:46]ExternCall_PrintAddStr [16:54:46]wPrintStart [16:54:46]Write to MH i2c: 01 00 00 F3 0A FD [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 FF 0F 12 [16:54:46]RasterBufferAndPrint [16:54:46]line Счет N : (1)2885680 [16:54:46]line ИНН: 02508201610067 [16:54:46]line Контрольно-Кассовый Чек [16:54:46]line ПРОДАЖА [16:54:46]line ТРК (МРК, ГНК) : 61 [16:54:46]line Товар: 2710194210 [16:54:46]line ДТ-К-5 [16:54:46]line 10.000 * 0.00 [16:54:46]line = 0.00 [16:54:46]line НДС 12% НСП 1% [16:54:46]line > о реализуемом товаре [16:54:46]line ИТОГО: 0.00 [16:54:46]line НСП 1% : 0.00 [16:54:46]line НДС 12% : 0.00 [16:54:46]line Наличными: 0.00 [16:54:46]line Безнал.: 0.00 [16:54:46]line Место: АЗС № 85 "Партнер Нефть" [16:54:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:54:46]line СНО: Общий режим [16:54:46]line Чек 312 21.10.2024 16:54 [16:54:46]line Смена: 194 ФФД: 1.0 [16:54:46]line ЗНМ: 0300000167 [16:54:46]line РНМ: 0000000000156251 [16:54:46]line Версия ККМ: v1.0 [16:54:46]line Талоны: Топливные Талоны [16:54:46]line 2155164 [16:54:46]line ФМ: 0000000000963346 [16:54:46]line ФД: 69922 [16:54:46]line ФПД: 240941927808092 [16:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165445&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69922&fm=240941927808092&tin=02508201610067®Number=0000000000156251&sum=0 [16:54:46]OFD Sender: Processing packet 69922 [packets to send 18, broken 17] [16:54:46]ProducePacketName [16:54:46]name=ofd_packets/00069922 [16:54:46]OFD Sender: To server: pG, [16:54:46]CommunicateWithHost lk.salyk.kg:30040 [16:54:46]ConnectInit lk.salyk.kg [16:54:46]written 0, free lines is 4095 [16:54:46]Connected sock=10 [16:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 2C 04 01 C4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 55 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 11 01 00 35 04 06 00 DB 22 AA 04 BC 5C 7F ED 67 BC BA D3 6F 41 [16:54:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1C 35 47 00 13 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 11 01 00 F4 03 04 00 F8 30 16 67 B6 04 01 00 00 A8 5F 08 46 F7 AE 37 7E [16:54:47]CommunicateWithHost err = 0 [16:54:47]CheckOFDResponse [16:54:47]1017 (14) - 77093643461234 [16:54:47]1041 (16) - 0000000000963346 [16:54:47]1040 (4) - 69922 [16:54:47]1012 (4) - 21.10.2024 10:46 [16:54:47]1206 (1) - 0 [16:54:47]OFD Sender: Remove packet 69922 [16:54:47]ProducePacketName [16:54:47]name=ofd_packets/00069922 [16:54:47]NVStorageDeleteData [16:54:47]Write to MH i2c: 01 00 00 1D 0B 28 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 07 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 EE 0C 29 [16:54:47]RasterBufferAndPrint [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]written 0, free lines is 3316 [16:54:47]MH_Cut [16:54:47]Write to MH i2c: D1 01 00 24 0B 01 01 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: D1 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: D1 01 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: D1 01 00 24 0B 00 00 [16:54:47]Write to MH i2c: 01 00 00 25 0B 30 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]OFD Sender: No OFD packet to send [16:54:47]*** Cut start [16:54:47]*** Partial cut [16:54:47]*** CUTSNS_PIN = 1 [16:54:47]*** CUTSNS_PIN = 0 [16:54:47]*** Brake cut motor [16:54:48]Read from MH i2c: 01 [16:54:48]*** Stop cut motor [16:54:48]*** Cut end [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: 01 07 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: 01 07 00 25 0B 00 00 00 00 00 FF 0F 45 [16:54:48]process_action close_receipt done [16:54:48]requested_data is exist [16:54:48]produce_requested_data [16:54:48]requested_item fm.sn is exist - process it [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 11 00 00 [16:54:48]Write to MH i2c: E2 08 00 26 0B 80 11 00 00 00 00 00 00 AB [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 17 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 17 00 26 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [16:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:54:48]wFMCommunicate OK [16:54:48]requested_item fd.num is exist - process it [16:54:48]SAM_PROTO_GetFieldsCounters [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 13 00 00 [16:54:48]Write to MH i2c: E2 08 00 27 0B 80 13 00 00 00 00 00 00 AE [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 62 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 62 00 27 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [16:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:48]wFMCommunicate OK [16:54:48]SAM_PROTO_GetFieldsCounters done [16:54:48]requested_item shift.num is exist - process it [16:54:48]requested_item shift.opened is exist - process it [16:54:48]req_shift_opened [16:54:48]FM_GetShiftState [16:54:48]SAM_PROTO_GetShiftState [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 13 01 00 [16:54:48]Write to MH i2c: E2 08 00 28 0B 80 13 01 00 00 00 00 00 B0 [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 0E 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 0E 00 28 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DC [16:54:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:54:48]wFMCommunicate OK [16:54:48]SAM_PROTO_GetShiftState done [16:54:48]FM_GetShiftState done [16:54:48]req_shift_opened done [16:54:48]requested_item shift.open_date is exist - process it [16:54:48]req_shift_open_date [16:54:48]req_shift_open_date done [16:54:48]produce_requested_data done [16:54:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69922,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:54:48]process_action_free close_receipt [16:54:48]json_value_free [16:54:48]json_value_free done [16:54:48]process_json_proto returns [16:54:48]Send response to host [16:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69922,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:54:48]free response buf [16:54:48]execute_script done [16:54:48]execute_script returns [16:54:48]free content buf [16:54:48]Sock 9.Close socket [16:54:48]Sock 9.Thread stoped [16:54:52]OFD Sender: No OFD packet to send [16:54:56]accept exits with 7 [16:54:56]New connection [16:54:56]New thread 3067170148 created [16:54:56]Thread 3067026788 joined [16:54:56]Waiting for new connection... [16:54:56] Sock 7.Parse request [16:54:56]Sock 7.Check first char [16:54:56]Sock 7.First char is OK [16:54:56]request: POST /json_proto HTTP/1.0 [16:54:56]Method: POST [16:54:56]URL: /json_proto [16:54:56]Method is POST - this is cgi request [16:54:56]url: /json_proto [16:54:56]query_string will be loaded in cgi processing [16:54:56]execute_cgi json_proto POST (null) [16:54:56]execute_cgi path=json_proto method=POST [16:54:56]POST find Content-Length [16:54:56]Host: 172.17.50.3:8080 [16:54:56]Content-Length: 798 [16:54:56]Content-Type: application/json [16:54:56] [16:54:56]POST finish read [16:54:56]Found Content-Length = 798 [16:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467795", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:56]execute_script... [16:54:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467795", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:56]POST & json_proto [16:54:56]process_json_proto [16:54:56]json parsed OK: [16:54:56]protocol is kg_v1.0 [16:54:56]action value=close_receipt [16:54:56]process_action close_receipt [16:54:56]cmd_close_receipt [16:54:56]MH_GetDate [16:54:56]Write to MH i2c: F0 00 00 29 0B 23 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: F0 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: F0 09 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: F0 09 00 29 0B 00 61 87 16 67 6B 98 1E 66 18 [16:54:56]GetLastDocTimeStamp 1729529685 [16:54:56]current date 1729529697 [16:54:56]FM_GetShiftState [16:54:56]SAM_PROTO_GetShiftState [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 13 01 00 [16:54:56]Write to MH i2c: E2 08 00 2A 0B 80 13 01 00 00 00 00 00 B2 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0E 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0E 00 2A 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DE [16:54:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:54:56]wFMCommunicate OK [16:54:56]SAM_PROTO_GetShiftState done [16:54:56]FM_GetShiftState done [16:54:56]opened in 1729469703 [16:54:56]opened+sec_in_day 1729556103 [16:54:56]quantity*price = 0 [16:54:56]sum+1 = 1 [16:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 313 21.10.2024 16:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4467795 ФМ: 0000000000963346 ФД: 69923 ФПД: 207993677919894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69923&fm=207993677919894&tin=02508201610067®Number=0000000000156251&sum=0 [16:54:57]StoreToDocumentArchive [16:54:57]shift 194 fd 69923 [16:54:57]save to /storage/0194/doc_00069923 [16:54:57]save last doc name /storage/0194/doc_00069923 to /storage/kkm_last_doc_name [16:54:57]save OK [16:54:57]Clear old archive folders... [16:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:57]tlvbuf is 01116C80 [16:54:57]SAM_PROTO_ClearQueue [16:54:57]wFMCommunicate request_size=4 [16:54:57]MH_SAM_APDU [16:54:57]CAPDU: 80 09 00 00 [16:54:57]Write to MH i2c: E2 08 00 37 0B 80 09 00 00 00 00 00 00 B4 [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:57]Read from MH i2c: E2 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: E2 03 00 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [16:54:57]RAPDU: 90 00 [16:54:57]wFMCommunicate OK [16:54:57]SAM_PROTO_ClearQueue done [16:54:57]KKMCreateOFDPacket [16:54:57]OFDProtocolAddRootSTLVToBuf [16:54:57]FM_MakeSignedData [16:54:57]FM_MakeSignedData [16:54:57]SAM_PROTO_SignData [16:54:57]wFMCommunicate request_size=4 [16:54:57]MH_SAM_APDU [16:54:57]CAPDU: 80 0D 01 02 [16:54:57]Write to MH i2c: E2 08 00 38 0B 80 0D 01 02 00 00 00 00 BC [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:57]Read from MH i2c: E2 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: E2 03 00 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [16:54:57]RAPDU: 90 00 [16:54:57]wFMCommunicate OK [16:54:57]wFMCommunicate request_size=255 [16:54:57]MH_SAM_APDU [16:54: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 61 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 11 01 00 35 04 06 00 BD 2B 4D 49 [16:54:57]Write to MH i2c: E2 02 01 39 0B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 61 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 11 01 00 35 04 06 00 BD 2B 4D 49 00 00 95 [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 03 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [16:54:58]RAPDU: 90 00 [16:54:58]wFMCommunicate OK [16:54:58]wFMCommunicate request_size=7 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 0D 02 02 02 B6 96 [16:54:58]Write to MH i2c: E2 0A 00 3A 0B 80 0D 02 02 02 00 B6 96 00 00 0F [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 03 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [16:54:58]RAPDU: 90 00 [16:54:58]wFMCommunicate OK [16:54:58]wFMCommunicate request_size=4 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 0D 03 02 [16:54:58]Write to MH i2c: E2 08 00 3B 0B 80 0D 03 02 00 00 00 00 C1 [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 0B 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 0B 00 3B 0B 00 AF 59 F4 4C 0E 1D 3A BA 90 00 29 [16:54:58]RAPDU: AF 59 F4 4C 0E 1D 3A BA 90 00 [16:54:58]wFMCommunicate OK [16:54:58]SAM_PROTO_SignData done [16:54:58]FM_MakeSignedData done [16:54:58]CreateOFDProtocolMessage [16:54:58]wFMCommunicate request_size=4 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 11 00 00 [16:54:58]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 17 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [16:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:54:58]wFMCommunicate OK [16:54:58]CreateOFDProtocolMessage done [16:54:58]OFDSenderStorePacket 69923 [16:54:58]StoreOFDPacket docnum=69923 [16:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 5D 04 01 FC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 61 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 11 01 00 35 04 06 00 BD 2B 4D 49 B6 96 AF 59 F4 4C 0E 1D 3A BA [16:54:58]CheckFolder [16:54:58]dirname=/storage/ofd_packets [16:54:58]CheckFolder done [16:54:58]ProducePacketName [16:54:58]name=ofd_packets/00069923 [16:54:58]NVStorageSaveData ofd_packets/00069923 [16:54:58]File name is /storage/ofd_packets/00069923 [16:54:58]Write 298 bytes [16:54:58]NVStorageSaveData done [16:54:58]OFDSenderStorePacket done [16:54:58]KKMCreateOFDPacket done [16:54:58]NVStorageSaveData kkm_last_timestamp [16:54:58]File name is /storage/kkm_last_timestamp [16:54:58]Write 4 bytes [16:54:58]NVStorageSaveData done [16:54:58]ExternCall_PrintAddStr [16:54:58]wPrintStart [16:54:58]Write to MH i2c: 01 00 00 3D 0B 48 [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: 01 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: 01 07 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: 01 07 00 3D 0B 00 00 00 00 00 FF 0F 5D [16:54:58]RasterBufferAndPrint [16:54:58]line Счет N : (1)2885679 [16:54:58]line ИНН: 02508201610067 [16:54:58]line Контрольно-Кассовый Чек [16:54:58]line ПРОДАЖА [16:54:58]line ТРК (МРК, ГНК) : 51 [16:54:58]line Товар: 2710194210 [16:54:58]line ДТ-К-5 [16:54:58]line 20.000 * 0.00 [16:54:58]line = 0.00 [16:54:58]line НДС 12% НСП 1% [16:54:58]line > о реализуемом товаре [16:54:58]line ИТОГО: 0.00 [16:54:58]line НСП 1% : 0.00 [16:54:58]line НДС 12% : 0.00 [16:54:58]line Наличными: 0.00 [16:54:58]line Безнал.: 0.00 [16:54:58]line Место: АЗС № 85 "Партнер Нефть" [16:54:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:54:58]line СНО: Общий режим [16:54:58]line Чек 313 21.10.2024 16:54 [16:54:58]line Смена: 194 ФФД: 1.0 [16:54:58]line ЗНМ: 0300000167 [16:54:58]line РНМ: 0000000000156251 [16:54:58]line Версия ККМ: v1.0 [16:54:58]line Талоны: Топливные Талоны [16:54:58]line 4467795 [16:54:58]line ФМ: 0000000000963346 [16:54:58]line ФД: 69923 [16:54:58]line ФПД: 207993677919894 [16:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165457&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69923&fm=207993677919894&tin=02508201610067®Number=0000000000156251&sum=0 [16:54:58]OFD Sender: Processing packet 69923 [packets to send 18, broken 17] [16:54:58]ProducePacketName [16:54:58]name=ofd_packets/00069923 [16:54:58]OFD Sender: To server: pG, [16:54:58]CommunicateWithHost lk.salyk.kg:30040 [16:54:58]ConnectInit lk.salyk.kg [16:54:58]written 0, free lines is 4095 [16:54:58]Connected sock=10 [16:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 5D 04 01 FC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 61 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 11 01 00 35 04 06 00 BD 2B 4D 49 B6 96 AF 59 F4 4C 0E 1D 3A BA [16:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 23 90 47 00 69 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 39 36 33 33 34 36 10 04 04 00 23 11 01 00 F4 03 04 00 04 31 16 67 B6 04 01 00 00 1D A1 78 16 CB 6F D3 74 [16:54:58]CommunicateWithHost err = 0 [16:54:58]CheckOFDResponse [16:54:58]1017 (14) - 77093643461234 [16:54:58]1041 (16) - 0000000000963346 [16:54:58]1040 (4) - 69923 [16:54:58]1012 (4) - 21.10.2024 10:46 [16:54:58]1206 (1) - 0 [16:54:58]OFD Sender: Remove packet 69923 [16:54:58]ProducePacketName [16:54:58]name=ofd_packets/00069923 [16:54:58]NVStorageDeleteData [16:54:59]Write to MH i2c: 01 00 00 67 0B 72 [16:54:59]Write i2c OK [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: 01 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: 01 07 00 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 F3 0C 78 [16:54:59]RasterBufferAndPrint [16:54:59]line [16:54:59]line [16:54:59]line [16:54:59]line [16:54:59]line [16:54:59]written 0, free lines is 3324 [16:54:59]MH_Cut [16:54:59]Write to MH i2c: D1 01 00 6E 0B 01 4B [16:54:59]Write i2c OK [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: D1 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: D1 01 00 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: D1 01 00 6E 0B 00 4A [16:54:59]Write to MH i2c: 01 00 00 6F 0B 7A [16:54:59]Write i2c OK [16:54:59]MH_I2C_Read... [16:54:59]OFD Sender: No OFD packet to send [16:54:59]*** Cut start [16:54:59]*** Partial cut [16:54:59]*** CUTSNS_PIN = 1 [16:54:59]*** CUTSNS_PIN = 0 [16:54:59]*** Brake cut motor [16:55:00]Read from MH i2c: 01 [16:55:00]MH_I2C_Read... [16:55:00]*** Stop cut motor [16:55:00]*** Cut end [16:55:00]Read from MH i2c: 01 07 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [16:55:00]process_action close_receipt done [16:55:00]requested_data is exist [16:55:00]produce_requested_data [16:55:00]requested_item fm.sn is exist - process it [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 11 00 00 [16:55:00]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 17 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [16:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:55:00]wFMCommunicate OK [16:55:00]requested_item fd.num is exist - process it [16:55:00]SAM_PROTO_GetFieldsCounters [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 13 00 00 [16:55:00]Write to MH i2c: E2 08 00 71 0B 80 13 00 00 00 00 00 00 F8 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 62 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 62 00 71 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [16:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:00]wFMCommunicate OK [16:55:00]SAM_PROTO_GetFieldsCounters done [16:55:00]requested_item shift.num is exist - process it [16:55:00]requested_item shift.opened is exist - process it [16:55:00]req_shift_opened [16:55:00]FM_GetShiftState [16:55:00]SAM_PROTO_GetShiftState [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 13 01 00 [16:55:00]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0E 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 26 [16:55:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:55:00]wFMCommunicate OK [16:55:00]SAM_PROTO_GetShiftState done [16:55:00]FM_GetShiftState done [16:55:00]req_shift_opened done [16:55:00]requested_item shift.open_date is exist - process it [16:55:00]req_shift_open_date [16:55:00]req_shift_open_date done [16:55:00]produce_requested_data done [16:55:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69923,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:55:00]process_action_free close_receipt [16:55:00]json_value_free [16:55:00]json_value_free done [16:55:00]process_json_proto returns [16:55:00]Send response to host [16:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69923,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:55:00]free response buf [16:55:00]execute_script done [16:55:00]execute_script returns [16:55:00]free content buf [16:55:00]Sock 7.Close socket [16:55:00]Sock 7.Thread stoped [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:45]accept exits with 9 [16:56:45]New connection [16:56:45]New thread 3067026788 created [16:56:45]Thread 3067170148 joined [16:56:45]Waiting for new connection... [16:56:45] Sock 9.Parse request [16:56:45]Sock 9.Check first char [16:56:45]Sock 9.First char is OK [16:56:45]request: POST /json_proto HTTP/1.0 [16:56:45]Method: POST [16:56:45]URL: /json_proto [16:56:45]Method is POST - this is cgi request [16:56:45]url: /json_proto [16:56:45]query_string will be loaded in cgi processing [16:56:45]execute_cgi json_proto POST (null) [16:56:45]execute_cgi path=json_proto method=POST [16:56:45]POST find Content-Length [16:56:45]Host: 172.17.50.3:8080 [16:56:45]Content-Length: 752 [16:56:45]Content-Type: application/json [16:56:45] [16:56:45]POST finish read [16:56:45]Found Content-Length = 752 [16:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 12.730, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:45]execute_script... [16:56: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)2885681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 12.730, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30077137", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:45]POST & json_proto [16:56:45]process_json_proto [16:56:45]json parsed OK: [16:56:45]protocol is kg_v1.0 [16:56:45]action value=close_receipt [16:56:45]process_action close_receipt [16:56:45]cmd_close_receipt [16:56:45]MH_GetDate [16:56:45]Write to MH i2c: F0 00 00 73 0B 6D [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 09 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 09 00 73 0B 00 CE 87 16 67 6B 98 1E 66 CF [16:56:45]GetLastDocTimeStamp 1729529697 [16:56:45]current date 1729529806 [16:56:45]FM_GetShiftState [16:56:45]SAM_PROTO_GetShiftState [16:56:45]wFMCommunicate request_size=4 [16:56:45]MH_SAM_APDU [16:56:45]CAPDU: 80 13 01 00 [16:56:45]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 0E 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 28 [16:56:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:56:46]wFMCommunicate OK [16:56:46]SAM_PROTO_GetShiftState done [16:56:46]FM_GetShiftState done [16:56:46]opened in 1729469703 [16:56:46]opened+sec_in_day 1729556103 [16:56:46]quantity*price = 0 [16:56:46]sum+1 = 1 [16:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 314 21.10.2024 16:56 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30077137 ФМ: 0000000000963346 ФД: 69924 ФПД: 70315620049434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69924&fm=70315620049434&tin=02508201610067®Number=0000000000156251&sum=0 [16:56:47]StoreToDocumentArchive [16:56:47]shift 194 fd 69924 [16:56:47]save to /storage/0194/doc_00069924 [16:56:47]save last doc name /storage/0194/doc_00069924 to /storage/kkm_last_doc_name [16:56:47]save OK [16:56:47]Clear old archive folders... [16:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:56:47]tlvbuf is 010E38A0 [16:56:47]SAM_PROTO_ClearQueue [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 09 00 00 [16:56:47]Write to MH i2c: E2 08 00 81 0B 80 09 00 00 00 00 00 00 FE [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_ClearQueue done [16:56:47]KKMCreateOFDPacket [16:56:47]OFDProtocolAddRootSTLVToBuf [16:56:47]FM_MakeSignedData [16:56:47]FM_MakeSignedData [16:56:47]SAM_PROTO_SignData [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 0D 01 02 [16:56:47]Write to MH i2c: E2 08 00 82 0B 80 0D 01 02 00 00 00 00 06 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=255 [16:56:47]MH_SAM_APDU [16:56: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 31 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 3A 01 00 00 F4 03 04 00 CE 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 11 01 00 35 04 06 00 3F F3 A1 8E [16:56:47]Write to MH i2c: E2 02 01 83 0B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 31 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 3A 01 00 00 F4 03 04 00 CE 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 11 01 00 35 04 06 00 3F F3 A1 8E 00 00 AE [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=7 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 0D 02 02 02 22 1A [16:56:47]Write to MH i2c: E2 0A 00 84 0B 80 0D 02 02 02 00 22 1A 00 00 49 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 0D 03 02 [16:56:47]Write to MH i2c: E2 08 00 85 0B 80 0D 03 02 00 00 00 00 0B [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0B 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0B 00 85 0B 00 B7 1E 8F 16 8F F1 C9 A2 90 00 71 [16:56:47]RAPDU: B7 1E 8F 16 8F F1 C9 A2 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_SignData done [16:56:47]FM_MakeSignedData done [16:56:47]CreateOFDProtocolMessage [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 11 00 00 [16:56:47]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [16:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:47]wFMCommunicate OK [16:56:47]CreateOFDProtocolMessage done [16:56:47]OFDSenderStorePacket 69924 [16:56:47]StoreOFDPacket docnum=69924 [16:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FF A2 04 01 C3 8C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 31 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 3A 01 00 00 F4 03 04 00 CE 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 11 01 00 35 04 06 00 3F F3 A1 8E 22 1A B7 1E 8F 16 8F F1 C9 A2 [16:56:47]CheckFolder [16:56:47]dirname=/storage/ofd_packets [16:56:47]CheckFolder done [16:56:47]ProducePacketName [16:56:47]name=ofd_packets/00069924 [16:56:47]NVStorageSaveData ofd_packets/00069924 [16:56:47]File name is /storage/ofd_packets/00069924 [16:56:47]Write 298 bytes [16:56:47]NVStorageSaveData done [16:56:47]OFDSenderStorePacket done [16:56:47]KKMCreateOFDPacket done [16:56:47]NVStorageSaveData kkm_last_timestamp [16:56:47]File name is /storage/kkm_last_timestamp [16:56:47]Write 4 bytes [16:56:47]NVStorageSaveData done [16:56:47]ExternCall_PrintAddStr [16:56:47]wPrintStart [16:56:47]Write to MH i2c: 01 00 00 87 0B 92 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [16:56:47]RasterBufferAndPrint [16:56:47]line Счет N : (1)2885681 [16:56:47]line ИНН: 02508201610067 [16:56:47]line Контрольно-Кассовый Чек [16:56:47]line ПРОДАЖА [16:56:47]line ТРК (МРК, ГНК) : 61 [16:56:47]line Товар: 2710194210 [16:56:47]line ДТ-К-5 [16:56:47]line 12.730 * 0.00 [16:56:47]line = 0.00 [16:56:47]line НДС 12% НСП 1% [16:56:47]line > о реализуемом товаре [16:56:47]line ИТОГО: 0.00 [16:56:47]line НСП 1% : 0.00 [16:56:47]line НДС 12% : 0.00 [16:56:47]line Наличными: 0.00 [16:56:47]line Безнал.: 0.00 [16:56:47]line Место: АЗС № 85 "Партнер Нефть" [16:56:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:56:47]line СНО: Общий режим [16:56:47]line Чек 314 21.10.2024 16:56 [16:56:47]line Смена: 194 ФФД: 1.0 [16:56:47]line ЗНМ: 0300000167 [16:56:47]line РНМ: 0000000000156251 [16:56:47]line Версия ККМ: v1.0 [16:56:47]line Талоны: ТК ГПНА Online [16:56:47]line 30077137 [16:56:47]line ФМ: 0000000000963346 [16:56:47]line ФД: 69924 [16:56:47]line ФПД: 70315620049434 [16:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69924&fm=70315620049434&tin=02508201610067®Number=0000000000156251&sum=0 [16:56:47]OFD Sender: Processing packet 69924 [packets to send 18, broken 17] [16:56:47]ProducePacketName [16:56:47]name=ofd_packets/00069924 [16:56:47]OFD Sender: To server: pG, [16:56:47]CommunicateWithHost lk.salyk.kg:30040 [16:56:47]ConnectInit lk.salyk.kg [16:56:47]written 0, free lines is 4095 [16:56:48]Connected sock=10 [16:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FF A2 04 01 C3 8C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 31 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 3A 01 00 00 F4 03 04 00 CE 87 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 11 01 00 35 04 06 00 3F F3 A1 8E 22 1A B7 1E 8F 16 8F F1 C9 A2 [16:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7D 6D 47 00 48 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 11 01 00 F4 03 04 00 72 31 16 67 B6 04 01 00 00 39 9B FE 3A E3 35 AE 29 [16:56:48]CommunicateWithHost err = 0 [16:56:48]CheckOFDResponse [16:56:48]1017 (14) - 77093643461234 [16:56:48]1041 (16) - 0000000000963346 [16:56:48]1040 (4) - 69924 [16:56:48]1012 (4) - 21.10.2024 10:48 [16:56:48]1206 (1) - 0 [16:56:48]OFD Sender: Remove packet 69924 [16:56:48]ProducePacketName [16:56:48]name=ofd_packets/00069924 [16:56:48]NVStorageDeleteData [16:56:48]Write to MH i2c: 01 00 00 B1 0B BC [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 07 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FA 0C C9 [16:56:48]RasterBufferAndPrint [16:56:48]line [16:56:48]line [16:56:48]line [16:56:48]line [16:56:48]line [16:56:48]written 0, free lines is 3328 [16:56:48]MH_Cut [16:56:48]Write to MH i2c: D1 01 00 B8 0B 01 95 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: D1 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: D1 01 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: D1 01 00 B8 0B 00 94 [16:56:48]Write to MH i2c: 01 00 00 B9 0B C4 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]OFD Sender: No OFD packet to send [16:56:49]*** Cut start [16:56:49]*** Partial cut [16:56:49]*** CUTSNS_PIN = 1 [16:56:49]*** CUTSNS_PIN = 0 [16:56:49]*** Brake cut motor [16:56:49]Read from MH i2c: 01 [16:56:49]MH_I2C_Read... [16:56:49]*** Stop cut motor [16:56:49]*** Cut end [16:56:49]Read from MH i2c: 01 07 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [16:56:49]process_action close_receipt done [16:56:49]requested_data is exist [16:56:49]produce_requested_data [16:56:49]requested_item fm.sn is exist - process it [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 11 00 00 [16:56:49]Write to MH i2c: E2 08 00 BA 0B 80 11 00 00 00 00 00 00 3F [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 17 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 17 00 BA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [16:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:49]wFMCommunicate OK [16:56:49]requested_item fd.num is exist - process it [16:56:49]SAM_PROTO_GetFieldsCounters [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 13 00 00 [16:56:49]Write to MH i2c: E2 08 00 BB 0B 80 13 00 00 00 00 00 00 42 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 62 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 62 00 BB 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:49]wFMCommunicate OK [16:56:49]SAM_PROTO_GetFieldsCounters done [16:56:49]requested_item shift.num is exist - process it [16:56:49]requested_item shift.opened is exist - process it [16:56:49]req_shift_opened [16:56:49]FM_GetShiftState [16:56:49]SAM_PROTO_GetShiftState [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 13 01 00 [16:56:49]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 0E 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 70 [16:56:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [16:56:49]wFMCommunicate OK [16:56:49]SAM_PROTO_GetShiftState done [16:56:49]FM_GetShiftState done [16:56:49]req_shift_opened done [16:56:49]requested_item shift.open_date is exist - process it [16:56:49]req_shift_open_date [16:56:49]req_shift_open_date done [16:56:49]produce_requested_data done [16:56:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69924,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [16:56:49]process_action_free close_receipt [16:56:49]json_value_free [16:56:49]json_value_free done [16:56:49]process_json_proto returns [16:56:49]Send response to host [16:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69924,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [16:56:49]free response buf [16:56:49]execute_script done [16:56:49]execute_script returns [16:56:49]free content buf [16:56:49]Sock 9.Close socket [16:56:49]Sock 9.Thread stoped [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:18]accept exits with 7 [17:04:18]New connection [17:04:18]New thread 3067170148 created [17:04:18]Thread 3067026788 joined [17:04:18]Waiting for new connection... [17:04:18] Sock 7.Parse request [17:04:18]Sock 7.Check first char [17:04:18]Sock 7.First char is OK [17:04:18]request: POST /json_proto HTTP/1.0 [17:04:18]Method: POST [17:04:18]URL: /json_proto [17:04:18]Method is POST - this is cgi request [17:04:18]url: /json_proto [17:04:18]query_string will be loaded in cgi processing [17:04:18]execute_cgi json_proto POST (null) [17:04:18]execute_cgi path=json_proto method=POST [17:04:18]POST find Content-Length [17:04:18]Host: 172.17.50.3:8080 [17:04:18]Content-Length: 770 [17:04:18]Content-Type: application/json [17:04:18] [17:04:18]POST finish read [17:04:18]Found Content-Length = 770 [17:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885683", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:18]execute_script... [17:04: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)2885683", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:18]POST & json_proto [17:04:18]process_json_proto [17:04:18]json parsed OK: [17:04:18]protocol is kg_v1.0 [17:04:18]action value=close_receipt [17:04:18]process_action close_receipt [17:04:18]cmd_close_receipt [17:04:18]MH_GetDate [17:04:18]Write to MH i2c: F0 00 00 BD 0B B7 [17:04:18]Write i2c OK [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: F0 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: F0 09 00 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: F0 09 00 BD 0B 00 93 89 16 67 6B 98 1E 66 E0 [17:04:18]GetLastDocTimeStamp 1729529806 [17:04:18]current date 1729530259 [17:04:18]FM_GetShiftState [17:04:18]SAM_PROTO_GetShiftState [17:04:18]wFMCommunicate request_size=4 [17:04:18]MH_SAM_APDU [17:04:18]CAPDU: 80 13 01 00 [17:04:18]Write to MH i2c: E2 08 00 BE 0B 80 13 01 00 00 00 00 00 46 [17:04:18]Write i2c OK [17:04:18]MH_I2C_Read... [17:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:19]Read from MH i2c: E2 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: E2 0E 00 [17:04:19]MH_I2C_Read... [17:04:19]Read from MH i2c: E2 0E 00 BE 0B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 72 [17:04:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:04:19]wFMCommunicate OK [17:04:19]SAM_PROTO_GetShiftState done [17:04:19]FM_GetShiftState done [17:04:19]opened in 1729469703 [17:04:19]opened+sec_in_day 1729556103 [17:04:19]quantity*price = 100015 [17:04:19]sum+1 = 100017 [17:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 315 21.10.2024 17:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69925 ФПД: 224669888731321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69925&fm=224669888731321&tin=02508201610067®Number=0000000000156251&sum=100016 [17:04:20]StoreToDocumentArchive [17:04:20]shift 194 fd 69925 [17:04:20]save to /storage/0194/doc_00069925 [17:04:20]save last doc name /storage/0194/doc_00069925 to /storage/kkm_last_doc_name [17:04:20]save OK [17:04:20]Clear old archive folders... [17:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:20]tlvbuf is 01116870 [17:04:20]SAM_PROTO_ClearQueue [17:04:20]wFMCommunicate request_size=4 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 09 00 00 [17:04:20]Write to MH i2c: E2 08 00 CB 0B 80 09 00 00 00 00 00 00 48 [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [17:04:20]RAPDU: 90 00 [17:04:20]wFMCommunicate OK [17:04:20]SAM_PROTO_ClearQueue done [17:04:20]KKMCreateOFDPacket [17:04:20]OFDProtocolAddRootSTLVToBuf [17:04:20]FM_MakeSignedData [17:04:20]FM_MakeSignedData [17:04:20]SAM_PROTO_SignData [17:04:20]wFMCommunicate request_size=4 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 0D 01 02 [17:04:20]Write to MH i2c: E2 08 00 CC 0B 80 0D 01 02 00 00 00 00 50 [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [17:04:20]RAPDU: 90 00 [17:04:20]wFMCommunicate OK [17:04:20]wFMCommunicate request_size=255 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 93 89 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 11 01 00 35 04 06 00 CC [17:04:20]Write to MH i2c: E2 02 01 CD 0B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 93 89 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 11 01 00 35 04 06 00 CC 00 00 8D [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [17:04:20]RAPDU: 90 00 [17:04:20]wFMCommunicate OK [17:04:20]wFMCommunicate request_size=10 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 0D 02 02 05 56 08 E8 D8 B9 [17:04:20]Write to MH i2c: E2 0D 00 CE 0B 80 0D 02 02 05 00 56 08 E8 D8 B9 00 00 34 [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [17:04:20]RAPDU: 90 00 [17:04:20]wFMCommunicate OK [17:04:20]wFMCommunicate request_size=4 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 0D 03 02 [17:04:20]Write to MH i2c: E2 08 00 CF 0B 80 0D 03 02 00 00 00 00 55 [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 0B 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 0B 00 CF 0B 00 7F 90 1E 92 93 94 C1 5A 90 00 57 [17:04:20]RAPDU: 7F 90 1E 92 93 94 C1 5A 90 00 [17:04:20]wFMCommunicate OK [17:04:20]SAM_PROTO_SignData done [17:04:20]FM_MakeSignedData done [17:04:20]CreateOFDProtocolMessage [17:04:20]wFMCommunicate request_size=4 [17:04:20]MH_SAM_APDU [17:04:20]CAPDU: 80 11 00 00 [17:04:20]Write to MH i2c: E2 08 00 D0 0B 80 11 00 00 00 00 00 00 55 [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:20]Read from MH i2c: E2 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 17 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: E2 17 00 D0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [17:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:04:20]wFMCommunicate OK [17:04:20]CreateOFDProtocolMessage done [17:04:20]OFDSenderStorePacket 69925 [17:04:20]StoreOFDPacket docnum=69925 [17:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 DB 07 01 3F 9C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 93 89 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 11 01 00 35 04 06 00 CC 56 08 E8 D8 B9 7F 90 1E 92 93 94 C1 5A [17:04:20]CheckFolder [17:04:20]dirname=/storage/ofd_packets [17:04:20]CheckFolder done [17:04:20]ProducePacketName [17:04:20]name=ofd_packets/00069925 [17:04:20]NVStorageSaveData ofd_packets/00069925 [17:04:20]File name is /storage/ofd_packets/00069925 [17:04:20]Write 301 bytes [17:04:20]NVStorageSaveData done [17:04:20]OFDSenderStorePacket done [17:04:20]KKMCreateOFDPacket done [17:04:20]NVStorageSaveData kkm_last_timestamp [17:04:20]File name is /storage/kkm_last_timestamp [17:04:20]Write 4 bytes [17:04:20]NVStorageSaveData done [17:04:20]ExternCall_PrintAddStr [17:04:20]wPrintStart [17:04:20]Write to MH i2c: 01 00 00 D1 0B DC [17:04:20]Write i2c OK [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: 01 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: 01 07 00 [17:04:20]MH_I2C_Read... [17:04:20]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [17:04:20]RasterBufferAndPrint [17:04:20]line Счет N : (1)2885683 [17:04:20]line ИНН: 02508201610067 [17:04:20]line Контрольно-Кассовый Чек [17:04:20]line ПРОДАЖА [17:04:20]line ТРК (МРК, ГНК) : 32 [17:04:20]line Товар: 2710124130 [17:04:20]line Аи-92-К-5 [17:04:20]line 14.950 * 66.90 [17:04:20]line = 1000.16 [17:04:20]line НДС 12% НСП 1% [17:04:20]line > о реализуемом товаре [17:04:20]line ИТОГО: 1000.16 [17:04:20]line НСП 1% : 8.85 [17:04:20]line НДС 12% : 106.21 [17:04:20]line Наличными: 0.00 [17:04:20]line Безнал.: 1000.16 [17:04:20]line Место: АЗС № 85 "Партнер Нефть" [17:04:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:04:20]line СНО: Общий режим [17:04:20]line Чек 315 21.10.2024 17:04 [17:04:20]line Смена: 194 ФФД: 1.0 [17:04:20]line ЗНМ: 0300000167 [17:04:20]line РНМ: 0000000000156251 [17:04:20]line Версия ККМ: v1.0 [17:04:20]line Платежная система: Mbank [17:04:20]line ФМ: 0000000000963346 [17:04:20]line ФД: 69925 [17:04:20]line ФПД: 224669888731321 [17:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170419&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69925&fm=224669888731321&tin=02508201610067®Number=0000000000156251&sum=100016 [17:04:21]OFD Sender: Processing packet 69925 [packets to send 18, broken 17] [17:04:21]ProducePacketName [17:04:21]name=ofd_packets/00069925 [17:04:21]OFD Sender: To server: pG, [17:04:21]CommunicateWithHost lk.salyk.kg:30040 [17:04:21]ConnectInit lk.salyk.kg [17:04:21]written 0, free lines is 4095 [17:04:21]Connected sock=10 [17:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 86 DB 07 01 3F 9C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 93 89 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 11 01 00 35 04 06 00 CC 56 08 E8 D8 B9 7F 90 1E 92 93 94 C1 5A [17:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 83 47 00 41 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 11 01 00 F4 03 04 00 37 33 16 67 B6 04 01 00 00 D0 52 ED A8 4E AB 6D F5 [17:04:21]CommunicateWithHost err = 0 [17:04:21]CheckOFDResponse [17:04:21]1017 (14) - 77093643461234 [17:04:21]1041 (16) - 0000000000963346 [17:04:21]1040 (4) - 69925 [17:04:21]1012 (4) - 21.10.2024 10:55 [17:04:21]1206 (1) - 0 [17:04:21]OFD Sender: Remove packet 69925 [17:04:21]ProducePacketName [17:04:21]name=ofd_packets/00069925 [17:04:21]NVStorageDeleteData [17:04:21]Write to MH i2c: 01 00 00 FA 0B 05 [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: 01 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: 01 07 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 13 0D 2C [17:04:21]RasterBufferAndPrint [17:04:21]line [17:04:21]line [17:04:21]line [17:04:21]line [17:04:21]line [17:04:21]written 0, free lines is 3354 [17:04:21]MH_Cut [17:04:21]Write to MH i2c: D1 01 00 01 0C 01 DF [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: D1 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: D1 01 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: D1 01 00 01 0C 00 DE [17:04:21]Write to MH i2c: 01 00 00 02 0C 0E [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]OFD Sender: No OFD packet to send [17:04:22]*** Cut start [17:04:22]*** Partial cut [17:04:22]*** CUTSNS_PIN = 1 [17:04:22]*** CUTSNS_PIN = 0 [17:04:22]*** Brake cut motor [17:04:22]Read from MH i2c: 01 [17:04:22]MH_I2C_Read... [17:04:22]*** Stop cut motor [17:04:22]*** Cut end [17:04:22]Read from MH i2c: 01 07 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [17:04:22]process_action close_receipt done [17:04:22]requested_data is exist [17:04:22]produce_requested_data [17:04:22]requested_item fm.sn is exist - process it [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 11 00 00 [17:04:22]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 17 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [17:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:04:22]wFMCommunicate OK [17:04:22]requested_item fd.num is exist - process it [17:04:22]SAM_PROTO_GetFieldsCounters [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 13 00 00 [17:04:22]Write to MH i2c: E2 08 00 04 0C 80 13 00 00 00 00 00 00 8C [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 62 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 62 00 04 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [17:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:22]wFMCommunicate OK [17:04:22]SAM_PROTO_GetFieldsCounters done [17:04:22]requested_item shift.num is exist - process it [17:04:22]requested_item shift.opened is exist - process it [17:04:22]req_shift_opened [17:04:22]FM_GetShiftState [17:04:22]SAM_PROTO_GetShiftState [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 13 01 00 [17:04:22]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 0E 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BA [17:04:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:04:23]wFMCommunicate OK [17:04:23]SAM_PROTO_GetShiftState done [17:04:23]FM_GetShiftState done [17:04:23]req_shift_opened done [17:04:23]requested_item shift.open_date is exist - process it [17:04:23]req_shift_open_date [17:04:23]req_shift_open_date done [17:04:23]produce_requested_data done [17:04:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69925,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:04:23]process_action_free close_receipt [17:04:23]json_value_free [17:04:23]json_value_free done [17:04:23]process_json_proto returns [17:04:23]Send response to host [17:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69925,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:04:23]free response buf [17:04:23]execute_script done [17:04:23]execute_script returns [17:04:23]free content buf [17:04:23]Sock 7.Close socket [17:04:23]Sock 7.Thread stoped [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:22]accept exits with 9 [17:06:22]New connection [17:06:22]New thread 3067026788 created [17:06:22]Thread 3067170148 joined [17:06:22]Waiting for new connection... [17:06:22] Sock 9.Parse request [17:06:22]Sock 9.Check first char [17:06:22]Sock 9.First char is OK [17:06:22]request: POST /json_proto HTTP/1.0 [17:06:22]Method: POST [17:06:22]URL: /json_proto [17:06:22]Method is POST - this is cgi request [17:06:22]url: /json_proto [17:06:22]query_string will be loaded in cgi processing [17:06:22]execute_cgi json_proto POST (null) [17:06:22]execute_cgi path=json_proto method=POST [17:06:22]POST find Content-Length [17:06:22]Host: 172.17.50.3:8080 [17:06:22]Content-Length: 810 [17:06:22]Content-Type: application/json [17:06:22] [17:06:22]POST finish read [17:06:22]Found Content-Length = 810 [17:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 33.680, "sum" : 2600.10, "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" : 2600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:22]execute_script... [17:06:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 33.680, "sum" : 2600.10, "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" : 2600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:22]POST & json_proto [17:06:22]process_json_proto [17:06:22]json parsed OK: [17:06:22]protocol is kg_v1.0 [17:06:22]action value=close_receipt [17:06:22]process_action close_receipt [17:06:22]cmd_close_receipt [17:06:22]MH_GetDate [17:06:22]Write to MH i2c: F0 00 00 06 0C 01 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 09 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: F0 09 00 06 0C 00 0E 8A 16 67 6B 98 1E 66 A6 [17:06:22]GetLastDocTimeStamp 1729530259 [17:06:22]current date 1729530382 [17:06:22]FM_GetShiftState [17:06:22]SAM_PROTO_GetShiftState [17:06:22]wFMCommunicate request_size=4 [17:06:22]MH_SAM_APDU [17:06:22]CAPDU: 80 13 01 00 [17:06:22]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [17:06:22]Write i2c OK [17:06:22]MH_I2C_Read... [17:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:22]Read from MH i2c: E2 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 [17:06:22]MH_I2C_Read... [17:06:22]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BC [17:06:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:06:22]wFMCommunicate OK [17:06:22]SAM_PROTO_GetShiftState done [17:06:22]FM_GetShiftState done [17:06:22]opened in 1729469703 [17:06:22]opened+sec_in_day 1729556103 [17:06:22]quantity*price = 260009 [17:06:22]sum+1 = 260011 [17:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.10 НСП 1% : 23.01 НДС 12% : 276.12 Наличными: 0.00 Безнал.: 2600.10 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 316 21.10.2024 17:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963346 ФД: 69926 ФПД: 252791866620322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170623&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69926&fm=252791866620322&tin=02508201610067®Number=0000000000156251&sum=260010 [17:06:23]StoreToDocumentArchive [17:06:23]shift 194 fd 69926 [17:06:23]save to /storage/0194/doc_00069926 [17:06:23]save last doc name /storage/0194/doc_00069926 to /storage/kkm_last_doc_name [17:06:23]save OK [17:06:23]Clear old archive folders... [17:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:06:23]tlvbuf is 010FDFE0 [17:06:23]SAM_PROTO_ClearQueue [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 09 00 00 [17:06:23]Write to MH i2c: E2 08 00 14 0C 80 09 00 00 00 00 00 00 92 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]SAM_PROTO_ClearQueue done [17:06:23]KKMCreateOFDPacket [17:06:23]OFDProtocolAddRootSTLVToBuf [17:06:23]FM_MakeSignedData [17:06:23]FM_MakeSignedData [17:06:23]SAM_PROTO_SignData [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 01 02 [17:06:23]Write to MH i2c: E2 08 00 15 0C 80 0D 01 02 00 00 00 00 9A [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=255 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 0F 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 11 01 [17:06:23]Write to MH i2c: E2 02 01 16 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 0F 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 11 01 00 00 E8 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=16 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 E9 B1 69 79 A2 [17:06:23]Write to MH i2c: E2 13 00 17 0C 80 0D 02 02 0B 00 00 35 04 06 00 E5 E9 B1 69 79 A2 00 00 F5 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [17:06:23]RAPDU: 90 00 [17:06:23]wFMCommunicate OK [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 0D 03 02 [17:06:23]Write to MH i2c: E2 08 00 18 0C 80 0D 03 02 00 00 00 00 9F [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 0B 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 0B 00 18 0C 00 92 E3 1E 26 9E 25 58 2D 90 00 A1 [17:06:23]RAPDU: 92 E3 1E 26 9E 25 58 2D 90 00 [17:06:23]wFMCommunicate OK [17:06:23]SAM_PROTO_SignData done [17:06:23]FM_MakeSignedData done [17:06:23]CreateOFDProtocolMessage [17:06:23]wFMCommunicate request_size=4 [17:06:23]MH_SAM_APDU [17:06:23]CAPDU: 80 11 00 00 [17:06:23]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:23]Read from MH i2c: E2 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: E2 17 00 19 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [17:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:06:23]wFMCommunicate OK [17:06:23]CreateOFDProtocolMessage done [17:06:23]OFDSenderStorePacket 69926 [17:06:23]StoreOFDPacket docnum=69926 [17:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 9E A1 0D 01 97 C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 0F 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 11 01 00 35 04 06 00 E5 E9 B1 69 79 A2 92 E3 1E 26 9E 25 58 2D [17:06:23]CheckFolder [17:06:23]dirname=/storage/ofd_packets [17:06:23]CheckFolder done [17:06:23]ProducePacketName [17:06:23]name=ofd_packets/00069926 [17:06:23]NVStorageSaveData ofd_packets/00069926 [17:06:23]File name is /storage/ofd_packets/00069926 [17:06:23]Write 307 bytes [17:06:23]NVStorageSaveData done [17:06:23]OFDSenderStorePacket done [17:06:23]KKMCreateOFDPacket done [17:06:23]NVStorageSaveData kkm_last_timestamp [17:06:23]File name is /storage/kkm_last_timestamp [17:06:23]Write 4 bytes [17:06:23]NVStorageSaveData done [17:06:23]ExternCall_PrintAddStr [17:06:23]wPrintStart [17:06:23]Write to MH i2c: 01 00 00 1A 0C 26 [17:06:23]Write i2c OK [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 [17:06:23]MH_I2C_Read... [17:06:23]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [17:06:23]RasterBufferAndPrint [17:06:23]line Счет N : (1)2885682 [17:06:23]line ИНН: 02508201610067 [17:06:23]line Контрольно-Кассовый Чек [17:06:23]line ПРОДАЖА [17:06:23]line ТРК (МРК, ГНК) : 21 [17:06:23]line Товар: 2710194240 [17:06:23]line D-ENERGY Дт-К-2 [17:06:23]line 33.680 * 77.20 [17:06:23]line = 2600.10 [17:06:23]line НДС 12% НСП 1% [17:06:23]line > о реализуемом товаре [17:06:23]line ИТОГО: 2600.10 [17:06:23]line НСП 1% : 23.01 [17:06:23]line НДС 12% : 276.12 [17:06:23]line Наличными: 0.00 [17:06:23]line Безнал.: 2600.10 [17:06:23]line Место: АЗС № 85 "Партнер Нефть" [17:06:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:06:23]line СНО: Общий режим [17:06:23]line Чек 316 21.10.2024 17:06 [17:06:23]line Смена: 194 ФФД: 1.0 [17:06:23]line ЗНМ: 0300000167 [17:06:23]line РНМ: 0000000000156251 [17:06:23]line Версия ККМ: v1.0 [17:06:23]line Платежная система: O! деньги [17:06:23]line ФМ: 0000000000963346 [17:06:23]line ФД: 69926 [17:06:23]line ФПД: 252791866620322 [17:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170623&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69926&fm=252791866620322&tin=02508201610067®Number=0000000000156251&sum=260010 [17:06:24]OFD Sender: Processing packet 69926 [packets to send 18, broken 17] [17:06:24]ProducePacketName [17:06:24]name=ofd_packets/00069926 [17:06:24]OFD Sender: To server: pG, [17:06:24]CommunicateWithHost lk.salyk.kg:30040 [17:06:24]ConnectInit lk.salyk.kg [17:06:24]written 0, free lines is 4095 [17:06:24]Connected sock=10 [17:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 9E A1 0D 01 97 C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 90 83 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 AA F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 0F 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 11 01 00 35 04 06 00 E5 E9 B1 69 79 A2 92 E3 1E 26 9E 25 58 2D [17:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 65 9B 47 00 F0 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 11 01 00 F4 03 04 00 B2 33 16 67 B6 04 01 00 00 8A 0C E8 78 EC 8A 7B E2 [17:06:24]CommunicateWithHost err = 0 [17:06:24]CheckOFDResponse [17:06:24]1017 (14) - 77093643461234 [17:06:24]1041 (16) - 0000000000963346 [17:06:24]1040 (4) - 69926 [17:06:24]1012 (4) - 21.10.2024 10:57 [17:06:24]1206 (1) - 0 [17:06:24]OFD Sender: Remove packet 69926 [17:06:24]ProducePacketName [17:06:24]name=ofd_packets/00069926 [17:06:24]NVStorageDeleteData [17:06:24]Write to MH i2c: 01 00 00 44 0C 50 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 07 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 02 0D 66 [17:06:24]RasterBufferAndPrint [17:06:24]line [17:06:24]line [17:06:24]line [17:06:24]line [17:06:24]line [17:06:24]written 0, free lines is 3336 [17:06:24]MH_Cut [17:06:24]Write to MH i2c: D1 01 00 4B 0C 01 29 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: D1 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: D1 01 00 [17:06:24]MH_I2C_Read... [17:06:24]Read from MH i2c: D1 01 00 4B 0C 00 28 [17:06:24]Write to MH i2c: 01 00 00 4C 0C 58 [17:06:24]Write i2c OK [17:06:24]MH_I2C_Read... [17:06:24]OFD Sender: No OFD packet to send [17:06:25]*** Cut start [17:06:25]*** Partial cut [17:06:25]*** CUTSNS_PIN = 1 [17:06:25]*** CUTSNS_PIN = 0 [17:06:25]*** Brake cut motor [17:06:25]Read from MH i2c: 01 [17:06:25]MH_I2C_Read... [17:06:25]*** Stop cut motor [17:06:25]*** Cut end [17:06:25]Read from MH i2c: 01 07 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [17:06:25]process_action close_receipt done [17:06:25]requested_data is exist [17:06:25]produce_requested_data [17:06:25]requested_item fm.sn is exist - process it [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 11 00 00 [17:06:25]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 17 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [17:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:06:25]wFMCommunicate OK [17:06:25]requested_item fd.num is exist - process it [17:06:25]SAM_PROTO_GetFieldsCounters [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 00 00 [17:06:25]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 62 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 62 00 4E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_GetFieldsCounters done [17:06:26]requested_item shift.num is exist - process it [17:06:26]requested_item shift.opened is exist - process it [17:06:26]req_shift_opened [17:06:26]FM_GetShiftState [17:06:26]SAM_PROTO_GetShiftState [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 13 01 00 [17:06:26]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0E 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 04 [17:06:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_GetShiftState done [17:06:26]FM_GetShiftState done [17:06:26]req_shift_opened done [17:06:26]requested_item shift.open_date is exist - process it [17:06:26]req_shift_open_date [17:06:26]req_shift_open_date done [17:06:26]produce_requested_data done [17:06:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69926,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:06:26]process_action_free close_receipt [17:06:26]json_value_free [17:06:26]json_value_free done [17:06:26]process_json_proto returns [17:06:26]Send response to host [17:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69926,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:06:26]free response buf [17:06:26]execute_script done [17:06:26]execute_script returns [17:06:26]free content buf [17:06:26]Sock 9.Close socket [17:06:26]Sock 9.Thread stoped [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:06]accept exits with 7 [17:09:06]New connection [17:09:06]New thread 3067170148 created [17:09:06]Thread 3067026788 joined [17:09:06]Waiting for new connection... [17:09:06] Sock 7.Parse request [17:09:06]Sock 7.Check first char [17:09:06]Sock 7.First char is OK [17:09:06]request: POST /json_proto HTTP/1.0 [17:09:06]Method: POST [17:09:06]URL: /json_proto [17:09:06]Method is POST - this is cgi request [17:09:06]url: /json_proto [17:09:06]query_string will be loaded in cgi processing [17:09:06]execute_cgi json_proto POST (null) [17:09:06]execute_cgi path=json_proto method=POST [17:09:06]POST find Content-Length [17:09:06]Host: 172.17.50.3:8080 [17:09:06]Content-Length: 678 [17:09:06]Content-Type: application/json [17:09:06] [17:09:06]POST finish read [17:09:06]Found Content-Length = 678 [17:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885684", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:06]execute_script... [17:09: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)2885684", "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" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:06]POST & json_proto [17:09:06]process_json_proto [17:09:06]json parsed OK: [17:09:06]protocol is kg_v1.0 [17:09:06]action value=close_receipt [17:09:06]process_action close_receipt [17:09:06]cmd_close_receipt [17:09:06]MH_GetDate [17:09:06]Write to MH i2c: F0 00 00 50 0C 4B [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 09 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: F0 09 00 50 0C 00 B3 8A 16 67 6B 98 1E 66 95 [17:09:06]GetLastDocTimeStamp 1729530383 [17:09:06]current date 1729530547 [17:09:06]FM_GetShiftState [17:09:06]SAM_PROTO_GetShiftState [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 13 01 00 [17:09:06]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0E 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 06 [17:09:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:09:06]wFMCommunicate OK [17:09:06]SAM_PROTO_GetShiftState done [17:09:06]FM_GetShiftState done [17:09:06]opened in 1729469703 [17:09:06]opened+sec_in_day 1729556103 [17:09:06]quantity*price = 40006 [17:09:06]sum+1 = 40007 [17:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 317 21.10.2024 17:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69927 ФПД: 201079483434706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69927&fm=201079483434706&tin=02508201610067®Number=0000000000156251&sum=40000 [17:09:07]StoreToDocumentArchive [17:09:07]shift 194 fd 69927 [17:09:07]save to /storage/0194/doc_00069927 [17:09:07]save last doc name /storage/0194/doc_00069927 to /storage/kkm_last_doc_name [17:09:07]save OK [17:09:07]Clear old archive folders... [17:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:07]tlvbuf is 01138680 [17:09:07]SAM_PROTO_ClearQueue [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 09 00 00 [17:09:07]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_ClearQueue done [17:09:07]KKMCreateOFDPacket [17:09:07]OFDProtocolAddRootSTLVToBuf [17:09:07]FM_MakeSignedData [17:09:07]FM_MakeSignedData [17:09:07]SAM_PROTO_SignData [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 0D 01 02 [17:09:07]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]wFMCommunicate request_size=255 [17:09:07]MH_SAM_APDU [17:09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 B3 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 11 01 00 35 04 06 00 B6 [17:09:07]Write to MH i2c: E2 02 01 60 0C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 B3 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 11 01 00 35 04 06 00 B6 00 00 E5 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]wFMCommunicate request_size=10 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 0D 02 02 05 E1 77 2E 86 D2 [17:09:07]Write to MH i2c: E2 0D 00 61 0C 80 0D 02 02 05 00 E1 77 2E 86 D2 00 00 CF [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [17:09:07]RAPDU: 90 00 [17:09:07]wFMCommunicate OK [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 0D 03 02 [17:09:07]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0B 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0B 00 62 0C 00 AB 41 7E 27 54 23 24 13 90 00 29 [17:09:07]RAPDU: AB 41 7E 27 54 23 24 13 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_SignData done [17:09:07]FM_MakeSignedData done [17:09:07]CreateOFDProtocolMessage [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 11 00 00 [17:09:07]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [17:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:09:07]wFMCommunicate OK [17:09:07]CreateOFDProtocolMessage done [17:09:07]OFDSenderStorePacket 69927 [17:09:07]StoreOFDPacket docnum=69927 [17:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 73 07 01 C4 1C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 B3 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 11 01 00 35 04 06 00 B6 E1 77 2E 86 D2 AB 41 7E 27 54 23 24 13 [17:09:07]CheckFolder [17:09:07]dirname=/storage/ofd_packets [17:09:07]CheckFolder done [17:09:07]ProducePacketName [17:09:07]name=ofd_packets/00069927 [17:09:07]NVStorageSaveData ofd_packets/00069927 [17:09:07]File name is /storage/ofd_packets/00069927 [17:09:07]Write 301 bytes [17:09:07]NVStorageSaveData done [17:09:07]OFDSenderStorePacket done [17:09:07]KKMCreateOFDPacket done [17:09:07]NVStorageSaveData kkm_last_timestamp [17:09:07]File name is /storage/kkm_last_timestamp [17:09:07]Write 4 bytes [17:09:07]NVStorageSaveData done [17:09:07]ExternCall_PrintAddStr [17:09:07]wPrintStart [17:09:07]Write to MH i2c: 01 00 00 64 0C 70 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [17:09:07]RasterBufferAndPrint [17:09:07]line Счет N : (1)2885684 [17:09:07]line ИНН: 02508201610067 [17:09:07]line Контрольно-Кассовый Чек [17:09:07]line ПРОДАЖА [17:09:07]line ТРК (МРК, ГНК) : 42 [17:09:07]line Товар: 2710124130 [17:09:07]line Аи-92-К-5 [17:09:07]line 5.980 * 66.90 [17:09:07]line = 400.06 [17:09:07]line НДС 12% НСП 1% [17:09:07]line > о реализуемом товаре [17:09:07]line ОКРУГЛЕНИЕ: -0.06 [17:09:07]line ИТОГО: 400.00 [17:09:07]line Внесено: 400.00 [17:09:07]line СДАЧА: 0.00 [17:09:07]line НСП 1% : 3.54 [17:09:07]line НДС 12% : 42.48 [17:09:07]line Наличными: 400.00 [17:09:07]line Безнал.: 0.00 [17:09:07]line Место: АЗС № 85 "Партнер Нефть" [17:09:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:09:07]line СНО: Общий режим [17:09:07]line Чек 317 21.10.2024 17:09 [17:09:07]line Смена: 194 ФФД: 1.0 [17:09:07]line ЗНМ: 0300000167 [17:09:07]line РНМ: 0000000000156251 [17:09:07]line Версия ККМ: v1.0 [17:09:07]line ФМ: 0000000000963346 [17:09:07]line ФД: 69927 [17:09:07]line ФПД: 201079483434706 [17:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170907&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69927&fm=201079483434706&tin=02508201610067®Number=0000000000156251&sum=40000 [17:09:08]OFD Sender: Processing packet 69927 [packets to send 18, broken 17] [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00069927 [17:09:08]OFD Sender: To server: pG, [17:09:08]CommunicateWithHost lk.salyk.kg:30040 [17:09:08]ConnectInit lk.salyk.kg [17:09:08]written 0, free lines is 4095 [17:09:08]Connected sock=10 [17:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 73 07 01 C4 1C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 B3 8A 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 11 01 00 35 04 06 00 B6 E1 77 2E 86 D2 AB 41 7E 27 54 23 24 13 [17:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 09 51 47 00 9F AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 11 01 00 F4 03 04 00 56 34 16 67 B6 04 01 00 00 BF C8 86 B5 35 57 23 EF [17:09:08]CommunicateWithHost err = 0 [17:09:08]CheckOFDResponse [17:09:08]1017 (14) - 77093643461234 [17:09:08]1041 (16) - 0000000000963346 [17:09:08]1040 (4) - 69927 [17:09:08]1012 (4) - 21.10.2024 11:00 [17:09:08]1206 (1) - 0 [17:09:08]OFD Sender: Remove packet 69927 [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00069927 [17:09:08]NVStorageDeleteData [17:09:08]Write to MH i2c: 01 00 00 8F 0C 9B [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 07 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 07 00 8F 0C 00 00 00 00 00 FF 0C AD [17:09:08]RasterBufferAndPrint [17:09:08]line [17:09:08]line [17:09:08]line [17:09:08]line [17:09:08]line [17:09:08]written 0, free lines is 3336 [17:09:08]MH_Cut [17:09:08]Write to MH i2c: D1 01 00 96 0C 01 74 [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: D1 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: D1 01 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: D1 01 00 96 0C 00 73 [17:09:08]Write to MH i2c: 01 00 00 97 0C A3 [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:09]OFD Sender: No OFD packet to send [17:09:09]*** Cut start [17:09:09]*** Partial cut [17:09:09]*** CUTSNS_PIN = 1 [17:09:09]*** CUTSNS_PIN = 0 [17:09:09]*** Brake cut motor [17:09:10]Read from MH i2c: 01 [17:09:10]MH_I2C_Read... [17:09:10]*** Stop cut motor [17:09:10]*** Cut end [17:09:10]Read from MH i2c: 01 07 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [17:09:10]process_action close_receipt done [17:09:10]requested_data is exist [17:09:10]produce_requested_data [17:09:10]requested_item fm.sn is exist - process it [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 11 00 00 [17:09:10]Write to MH i2c: E2 08 00 98 0C 80 11 00 00 00 00 00 00 1E [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 98 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [17:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:09:10]wFMCommunicate OK [17:09:10]requested_item fd.num is exist - process it [17:09:10]SAM_PROTO_GetFieldsCounters [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 13 00 00 [17:09:10]Write to MH i2c: E2 08 00 99 0C 80 13 00 00 00 00 00 00 21 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 62 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 62 00 99 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:09:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_GetFieldsCounters done [17:09:10]requested_item shift.num is exist - process it [17:09:10]requested_item shift.opened is exist - process it [17:09:10]req_shift_opened [17:09:10]FM_GetShiftState [17:09:10]SAM_PROTO_GetShiftState [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 13 01 00 [17:09:10]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0E 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [17:09:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_GetShiftState done [17:09:10]FM_GetShiftState done [17:09:10]req_shift_opened done [17:09:10]requested_item shift.open_date is exist - process it [17:09:10]req_shift_open_date [17:09:10]req_shift_open_date done [17:09:10]produce_requested_data done [17:09:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69927,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:09:10]process_action_free close_receipt [17:09:10]json_value_free [17:09:10]json_value_free done [17:09:10]process_json_proto returns [17:09:10]Send response to host [17:09:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69927,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:09:10]free response buf [17:09:10]execute_script done [17:09:10]execute_script returns [17:09:10]free content buf [17:09:10]Sock 7.Close socket [17:09:10]Sock 7.Thread stoped [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:40]accept exits with 9 [17:12:40]New connection [17:12:40]New thread 3067026788 created [17:12:40]Thread 3067170148 joined [17:12:40]Waiting for new connection... [17:12:40] Sock 9.Parse request [17:12:40]Sock 9.Check first char [17:12:40]Sock 9.First char is OK [17:12:40]request: POST /json_proto HTTP/1.0 [17:12:40]Method: POST [17:12:40]URL: /json_proto [17:12:40]Method is POST - this is cgi request [17:12:40]url: /json_proto [17:12:40]query_string will be loaded in cgi processing [17:12:40]execute_cgi json_proto POST (null) [17:12:40]execute_cgi path=json_proto method=POST [17:12:40]POST find Content-Length [17:12:40]Host: 172.17.50.3:8080 [17:12:40]Content-Length: 754 [17:12:40]Content-Type: application/json [17:12:40] [17:12:40]POST finish read [17:12:40]Found Content-Length = 754 [17:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4564768", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:40]execute_script... [17:12: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)2885685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4564768", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:40]POST & json_proto [17:12:40]process_json_proto [17:12:40]json parsed OK: [17:12:40]protocol is kg_v1.0 [17:12:40]action value=close_receipt [17:12:40]process_action close_receipt [17:12:40]cmd_close_receipt [17:12:40]MH_GetDate [17:12:40]Write to MH i2c: F0 00 00 9B 0C 96 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: F0 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: F0 09 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: F0 09 00 9B 0C 00 89 8B 16 67 6B 98 1E 66 B7 [17:12:40]GetLastDocTimeStamp 1729530547 [17:12:40]current date 1729530761 [17:12:40]FM_GetShiftState [17:12:40]SAM_PROTO_GetShiftState [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 13 01 00 [17:12:40]Write to MH i2c: E2 08 00 9C 0C 80 13 01 00 00 00 00 00 25 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0E 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0E 00 9C 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 51 [17:12:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:12:40]wFMCommunicate OK [17:12:40]SAM_PROTO_GetShiftState done [17:12:40]FM_GetShiftState done [17:12:40]opened in 1729469703 [17:12:40]opened+sec_in_day 1729556103 [17:12:40]quantity*price = 0 [17:12:40]sum+1 = 1 [17:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 318 21.10.2024 17:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 4564768 ФМ: 0000000000963346 ФД: 69928 ФПД: 226027933815620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69928&fm=226027933815620&tin=02508201610067®Number=0000000000156251&sum=0 [17:12:41]StoreToDocumentArchive [17:12:41]shift 194 fd 69928 [17:12:41]save to /storage/0194/doc_00069928 [17:12:41]save last doc name /storage/0194/doc_00069928 to /storage/kkm_last_doc_name [17:12:41]save OK [17:12:41]Clear old archive folders... [17:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:41]tlvbuf is 01145000 [17:12:41]SAM_PROTO_ClearQueue [17:12:41]wFMCommunicate request_size=4 [17:12:41]MH_SAM_APDU [17:12:41]CAPDU: 80 09 00 00 [17:12:41]Write to MH i2c: E2 08 00 A9 0C 80 09 00 00 00 00 00 00 27 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [17:12:41]RAPDU: 90 00 [17:12:41]wFMCommunicate OK [17:12:41]SAM_PROTO_ClearQueue done [17:12:41]KKMCreateOFDPacket [17:12:41]OFDProtocolAddRootSTLVToBuf [17:12:41]FM_MakeSignedData [17:12:41]FM_MakeSignedData [17:12:41]SAM_PROTO_SignData [17:12:41]wFMCommunicate request_size=4 [17:12:41]MH_SAM_APDU [17:12:41]CAPDU: 80 0D 01 02 [17:12:41]Write to MH i2c: E2 08 00 AA 0C 80 0D 01 02 00 00 00 00 2F [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [17:12:41]RAPDU: 90 00 [17:12:41]wFMCommunicate OK [17:12:41]wFMCommunicate request_size=255 [17:12:41]MH_SAM_APDU [17:12: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 89 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 11 01 00 35 04 06 00 CD [17:12:41]Write to MH i2c: E2 02 01 AB 0C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 89 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 11 01 00 35 04 06 00 CD 00 00 3A [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:41]Read from MH i2c: E2 03 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [17:12:41]RAPDU: 90 00 [17:12:41]wFMCommunicate OK [17:12:41]wFMCommunicate request_size=10 [17:12:41]MH_SAM_APDU [17:12:41]CAPDU: 80 0D 02 02 05 92 3A B4 53 44 [17:12:41]Write to MH i2c: E2 0D 00 AC 0C 80 0D 02 02 05 00 92 3A B4 53 44 00 00 53 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:41]Read from MH i2c: E2 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 [17:12:41]MH_I2C_Read... [17:12:41]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [17:12:41]RAPDU: 90 00 [17:12:41]wFMCommunicate OK [17:12:41]wFMCommunicate request_size=4 [17:12:41]MH_SAM_APDU [17:12:41]CAPDU: 80 0D 03 02 [17:12:41]Write to MH i2c: E2 08 00 AD 0C 80 0D 03 02 00 00 00 00 34 [17:12:41]Write i2c OK [17:12:41]MH_I2C_Read... [17:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0B 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0B 00 AD 0C 00 0B C2 E4 84 21 FC 93 36 90 00 50 [17:12:42]RAPDU: 0B C2 E4 84 21 FC 93 36 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_SignData done [17:12:42]FM_MakeSignedData done [17:12:42]CreateOFDProtocolMessage [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 11 00 00 [17:12:42]Write to MH i2c: E2 08 00 AE 0C 80 11 00 00 00 00 00 00 34 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 AE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [17:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:42]wFMCommunicate OK [17:12:42]CreateOFDProtocolMessage done [17:12:42]OFDSenderStorePacket 69928 [17:12:42]StoreOFDPacket docnum=69928 [17:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 A4 07 01 EB 0C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 89 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 11 01 00 35 04 06 00 CD 92 3A B4 53 44 0B C2 E4 84 21 FC 93 36 [17:12:42]CheckFolder [17:12:42]dirname=/storage/ofd_packets [17:12:42]CheckFolder done [17:12:42]ProducePacketName [17:12:42]name=ofd_packets/00069928 [17:12:42]NVStorageSaveData ofd_packets/00069928 [17:12:42]File name is /storage/ofd_packets/00069928 [17:12:42]Write 301 bytes [17:12:42]NVStorageSaveData done [17:12:42]OFDSenderStorePacket done [17:12:42]KKMCreateOFDPacket done [17:12:42]NVStorageSaveData kkm_last_timestamp [17:12:42]File name is /storage/kkm_last_timestamp [17:12:42]Write 4 bytes [17:12:42]NVStorageSaveData done [17:12:42]ExternCall_PrintAddStr [17:12:42]wPrintStart [17:12:42]Write to MH i2c: 01 00 00 AF 0C BB [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 AF 0C 00 00 00 00 00 FF 0F D0 [17:12:42]RasterBufferAndPrint [17:12:42]line Счет N : (1)2885685 [17:12:42]line ИНН: 02508201610067 [17:12:42]line Контрольно-Кассовый Чек [17:12:42]line ПРОДАЖА [17:12:42]line ТРК (МРК, ГНК) : 12 [17:12:42]line Товар: 2710124130 [17:12:42]line Аи-92-К-5 [17:12:42]line 20.000 * 0.00 [17:12:42]line = 0.00 [17:12:42]line НДС 12% НСП 1% [17:12:42]line > о реализуемом товаре [17:12:42]line ИТОГО: 0.00 [17:12:42]line НСП 1% : 0.00 [17:12:42]line НДС 12% : 0.00 [17:12:42]line Наличными: 0.00 [17:12:42]line Безнал.: 0.00 [17:12:42]line Место: АЗС № 85 "Партнер Нефть" [17:12:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:12:42]line СНО: Общий режим [17:12:42]line Чек 318 21.10.2024 17:12 [17:12:42]line Смена: 194 ФФД: 1.0 [17:12:42]line ЗНМ: 0300000167 [17:12:42]line РНМ: 0000000000156251 [17:12:42]line Версия ККМ: v1.0 [17:12:42]line Талоны: ТК ГПНА Online [17:12:42]line 4564768 [17:12:42]line ФМ: 0000000000963346 [17:12:42]line ФД: 69928 [17:12:42]line ФПД: 226027933815620 [17:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69928&fm=226027933815620&tin=02508201610067®Number=0000000000156251&sum=0 [17:12:42]OFD Sender: Processing packet 69928 [packets to send 18, broken 17] [17:12:42]ProducePacketName [17:12:42]name=ofd_packets/00069928 [17:12:42]OFD Sender: To server: pG, [17:12:42]CommunicateWithHost lk.salyk.kg:30040 [17:12:42]ConnectInit lk.salyk.kg [17:12:42]written 0, free lines is 4095 [17:12:42]Connected sock=10 [17:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 A4 07 01 EB 0C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 89 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 11 01 00 35 04 06 00 CD 92 3A B4 53 44 0B C2 E4 84 21 FC 93 36 [17:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 7E 47 00 E2 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 11 01 00 F4 03 04 00 2C 35 16 67 B6 04 01 00 00 43 19 A3 8A AE FF 09 D2 [17:12:42]CommunicateWithHost err = 0 [17:12:42]CheckOFDResponse [17:12:42]1017 (14) - 77093643461234 [17:12:42]1041 (16) - 0000000000963346 [17:12:42]1040 (4) - 69928 [17:12:42]1012 (4) - 21.10.2024 11:04 [17:12:42]1206 (1) - 0 [17:12:42]OFD Sender: Remove packet 69928 [17:12:42]ProducePacketName [17:12:42]name=ofd_packets/00069928 [17:12:42]NVStorageDeleteData [17:12:42]Write to MH i2c: 01 00 00 D9 0C E5 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 D9 0C 00 00 00 00 00 0C 0D 05 [17:12:42]RasterBufferAndPrint [17:12:42]line [17:12:42]line [17:12:42]line [17:12:42]line [17:12:42]line [17:12:42]written 0, free lines is 3346 [17:12:42]MH_Cut [17:12:42]Write to MH i2c: D1 01 00 E0 0C 01 BE [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: D1 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: D1 01 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: D1 01 00 E0 0C 00 BD [17:12:42]Write to MH i2c: 01 00 00 E1 0C ED [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:43]OFD Sender: No OFD packet to send [17:12:43]*** Cut start [17:12:43]*** Partial cut [17:12:43]*** CUTSNS_PIN = 1 [17:12:43]*** CUTSNS_PIN = 0 [17:12:43]*** Brake cut motor [17:12:44]Read from MH i2c: 01 [17:12:44]MH_I2C_Read... [17:12:44]*** Stop cut motor [17:12:44]*** Cut end [17:12:44]Read from MH i2c: 01 07 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 FF 0F 02 [17:12:44]process_action close_receipt done [17:12:44]requested_data is exist [17:12:44]produce_requested_data [17:12:44]requested_item fm.sn is exist - process it [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 11 00 00 [17:12:44]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [17:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:44]wFMCommunicate OK [17:12:44]requested_item fd.num is exist - process it [17:12:44]SAM_PROTO_GetFieldsCounters [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 13 00 00 [17:12:44]Write to MH i2c: E2 08 00 E3 0C 80 13 00 00 00 00 00 00 6B [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 62 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 62 00 E3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_GetFieldsCounters done [17:12:44]requested_item shift.num is exist - process it [17:12:44]requested_item shift.opened is exist - process it [17:12:44]req_shift_opened [17:12:44]FM_GetShiftState [17:12:44]SAM_PROTO_GetShiftState [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 13 01 00 [17:12:44]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0E 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 99 [17:12:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_GetShiftState done [17:12:44]FM_GetShiftState done [17:12:44]req_shift_opened done [17:12:44]requested_item shift.open_date is exist - process it [17:12:44]req_shift_open_date [17:12:44]req_shift_open_date done [17:12:44]produce_requested_data done [17:12:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69928,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:12:44]process_action_free close_receipt [17:12:44]json_value_free [17:12:44]json_value_free done [17:12:44]process_json_proto returns [17:12:44]Send response to host [17:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69928,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:12:44]free response buf [17:12:44]execute_script done [17:12:44]execute_script returns [17:12:44]free content buf [17:12:44]Sock 9.Close socket [17:12:44]Sock 9.Thread stoped [17:12:44]accept exits with 7 [17:12:44]New connection [17:12:44]New thread 3067170148 created [17:12:44]Thread 3067026788 joined [17:12:44]Waiting for new connection... [17:12:44] Sock 7.Parse request [17:12:44]Sock 7.Check first char [17:12:44]Sock 7.First char is OK [17:12:44]request: POST /json_proto HTTP/1.0 [17:12:44]Method: POST [17:12:44]URL: /json_proto [17:12:44]Method is POST - this is cgi request [17:12:44]url: /json_proto [17:12:44]query_string will be loaded in cgi processing [17:12:44]execute_cgi json_proto POST (null) [17:12:44]execute_cgi path=json_proto method=POST [17:12:44]POST find Content-Length [17:12:44]Host: 172.17.50.3:8080 [17:12:44]Content-Length: 683 [17:12:44]Content-Type: application/json [17:12:44] [17:12:44]POST finish read [17:12:44]Found Content-Length = 683 [17:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885686", "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" ] } } [17:12:44]execute_script... [17:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885686", "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" ] } } [17:12:44]POST & json_proto [17:12:44]process_json_proto [17:12:44]json parsed OK: [17:12:44]protocol is kg_v1.0 [17:12:44]action value=close_receipt [17:12:44]process_action close_receipt [17:12:44]cmd_close_receipt [17:12:44]MH_GetDate [17:12:44]Write to MH i2c: F0 00 00 E5 0C E0 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: F0 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: F0 09 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: F0 09 00 E5 0C 00 8D 8B 16 67 6B 98 1E 66 05 [17:12:44]GetLastDocTimeStamp 1729530761 [17:12:44]current date 1729530765 [17:12:44]FM_GetShiftState [17:12:44]SAM_PROTO_GetShiftState [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 13 01 00 [17:12:44]Write to MH i2c: E2 08 00 E6 0C 80 13 01 00 00 00 00 00 6F [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0E 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0E 00 E6 0C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9B [17:12:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_GetShiftState done [17:12:44]FM_GetShiftState done [17:12:44]opened in 1729469703 [17:12:44]opened+sec_in_day 1729556103 [17:12:44]quantity*price = 100021 [17:12:44]sum+1 = 100023 [17:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 319 21.10.2024 17:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69929 ФПД: 273292913363350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171245&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69929&fm=273292913363350&tin=02508201610067®Number=0000000000156251&sum=100000 [17:12:46]StoreToDocumentArchive [17:12:46]shift 194 fd 69929 [17:12:46]save to /storage/0194/doc_00069929 [17:12:46]save last doc name /storage/0194/doc_00069929 to /storage/kkm_last_doc_name [17:12:46]save OK [17:12:46]Clear old archive folders... [17:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:46]tlvbuf is 0116EA40 [17:12:46]SAM_PROTO_ClearQueue [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 09 00 00 [17:12:46]Write to MH i2c: E2 08 00 F3 0C 80 09 00 00 00 00 00 00 71 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [17:12:46]RAPDU: 90 00 [17:12:46]wFMCommunicate OK [17:12:46]SAM_PROTO_ClearQueue done [17:12:46]KKMCreateOFDPacket [17:12:46]OFDProtocolAddRootSTLVToBuf [17:12:46]FM_MakeSignedData [17:12:46]FM_MakeSignedData [17:12:46]SAM_PROTO_SignData [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 0D 01 02 [17:12:46]Write to MH i2c: E2 08 00 F4 0C 80 0D 01 02 00 00 00 00 79 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [17:12:46]RAPDU: 90 00 [17:12:46]wFMCommunicate OK [17:12:46]wFMCommunicate request_size=255 [17:12:46]MH_SAM_APDU [17:12: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 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 3F 01 00 00 F4 03 04 00 8D 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 11 01 00 35 04 06 00 F8 [17:12:46]Write to MH i2c: E2 02 01 F5 0C 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 3F 01 00 00 F4 03 04 00 8D 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 11 01 00 35 04 06 00 F8 00 00 E9 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [17:12:46]RAPDU: 90 00 [17:12:46]wFMCommunicate OK [17:12:46]wFMCommunicate request_size=10 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 0D 02 02 05 8E F7 05 49 96 [17:12:46]Write to MH i2c: E2 0D 00 F6 0C 80 0D 02 02 05 00 8E F7 05 49 96 00 00 EF [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [17:12:46]RAPDU: 90 00 [17:12:46]wFMCommunicate OK [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 0D 03 02 [17:12:46]Write to MH i2c: E2 08 00 F7 0C 80 0D 03 02 00 00 00 00 7E [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 0B 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 0B 00 F7 0C 00 FC CE 77 37 17 CF 49 94 90 00 BA [17:12:46]RAPDU: FC CE 77 37 17 CF 49 94 90 00 [17:12:46]wFMCommunicate OK [17:12:46]SAM_PROTO_SignData done [17:12:46]FM_MakeSignedData done [17:12:46]CreateOFDProtocolMessage [17:12:46]wFMCommunicate request_size=4 [17:12:46]MH_SAM_APDU [17:12:46]CAPDU: 80 11 00 00 [17:12:46]Write to MH i2c: E2 08 00 F8 0C 80 11 00 00 00 00 00 00 7E [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:46]Read from MH i2c: E2 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 17 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: E2 17 00 F8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [17:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:46]wFMCommunicate OK [17:12:46]CreateOFDProtocolMessage done [17:12:46]OFDSenderStorePacket 69929 [17:12:46]StoreOFDPacket docnum=69929 [17:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 30 07 01 FB 8D 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 3F 01 00 00 F4 03 04 00 8D 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 11 01 00 35 04 06 00 F8 8E F7 05 49 96 FC CE 77 37 17 CF 49 94 [17:12:46]CheckFolder [17:12:46]dirname=/storage/ofd_packets [17:12:46]CheckFolder done [17:12:46]ProducePacketName [17:12:46]name=ofd_packets/00069929 [17:12:46]NVStorageSaveData ofd_packets/00069929 [17:12:46]File name is /storage/ofd_packets/00069929 [17:12:46]Write 301 bytes [17:12:46]NVStorageSaveData done [17:12:46]OFDSenderStorePacket done [17:12:46]KKMCreateOFDPacket done [17:12:46]NVStorageSaveData kkm_last_timestamp [17:12:46]File name is /storage/kkm_last_timestamp [17:12:46]Write 4 bytes [17:12:46]NVStorageSaveData done [17:12:46]ExternCall_PrintAddStr [17:12:46]wPrintStart [17:12:46]Write to MH i2c: 01 00 00 F9 0C 05 [17:12:46]Write i2c OK [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 07 00 [17:12:46]MH_I2C_Read... [17:12:46]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [17:12:46]RasterBufferAndPrint [17:12:46]line Счет N : (1)2885686 [17:12:46]line ИНН: 02508201610067 [17:12:46]line Контрольно-Кассовый Чек [17:12:46]line ПРОДАЖА [17:12:46]line ТРК (МРК, ГНК) : 33 [17:12:46]line Товар: 2710124500 [17:12:46]line Аи-95-К-5 [17:12:46]line 13.480 * 74.20 [17:12:47]line = 1000.22 [17:12:47]line НДС 12% НСП 1% [17:12:47]line > о реализуемом товаре [17:12:47]line ОКРУГЛЕНИЕ: -0.22 [17:12:47]line ИТОГО: 1000.00 [17:12:47]line Внесено: 1000.00 [17:12:47]line СДАЧА: 0.00 [17:12:47]line НСП 1% : 8.85 [17:12:47]line НДС 12% : 106.22 [17:12:47]line Наличными: 1000.00 [17:12:47]line Безнал.: 0.00 [17:12:47]line Место: АЗС № 85 "Партнер Нефть" [17:12:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:12:47]line СНО: Общий режим [17:12:47]line Чек 319 21.10.2024 17:12 [17:12:47]line Смена: 194 ФФД: 1.0 [17:12:47]line ЗНМ: 0300000167 [17:12:47]line РНМ: 0000000000156251 [17:12:47]line Версия ККМ: v1.0 [17:12:47]line ФМ: 0000000000963346 [17:12:47]line ФД: 69929 [17:12:47]line ФПД: 273292913363350 [17:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171245&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69929&fm=273292913363350&tin=02508201610067®Number=0000000000156251&sum=100000 [17:12:47]OFD Sender: Processing packet 69929 [packets to send 18, broken 17] [17:12:47]ProducePacketName [17:12:47]name=ofd_packets/00069929 [17:12:47]OFD Sender: To server: pG, [17:12:47]CommunicateWithHost lk.salyk.kg:30040 [17:12:47]ConnectInit lk.salyk.kg [17:12:47]written 0, free lines is 4095 [17:12:47]Connected sock=10 [17:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 30 07 01 FB 8D 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 3F 01 00 00 F4 03 04 00 8D 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 11 01 00 35 04 06 00 F8 8E F7 05 49 96 FC CE 77 37 17 CF 49 94 [17:12:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CA 75 47 00 47 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 11 01 00 F4 03 04 00 31 35 16 67 B6 04 01 00 00 04 A8 19 2A 24 63 9F 40 [17:12:47]CommunicateWithHost err = 0 [17:12:47]CheckOFDResponse [17:12:47]1017 (14) - 77093643461234 [17:12:47]1041 (16) - 0000000000963346 [17:12:47]1040 (4) - 69929 [17:12:47]1012 (4) - 21.10.2024 11:04 [17:12:47]1206 (1) - 0 [17:12:47]OFD Sender: Remove packet 69929 [17:12:47]ProducePacketName [17:12:47]name=ofd_packets/00069929 [17:12:47]NVStorageDeleteData [17:12:47]Write to MH i2c: 01 00 00 24 0D 31 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 02 0D 47 [17:12:47]RasterBufferAndPrint [17:12:47]line [17:12:47]line [17:12:47]line [17:12:47]line [17:12:47]line [17:12:47]written 0, free lines is 3342 [17:12:47]MH_Cut [17:12:47]Write to MH i2c: D1 01 00 2B 0D 01 0A [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: D1 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: D1 01 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: D1 01 00 2B 0D 00 09 [17:12:47]Write to MH i2c: 01 00 00 2C 0D 39 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:48]OFD Sender: No OFD packet to send [17:12:48]*** Cut start [17:12:48]*** Partial cut [17:12:48]*** CUTSNS_PIN = 1 [17:12:48]*** CUTSNS_PIN = 0 [17:12:48]*** Brake cut motor [17:12:49]Read from MH i2c: 01 [17:12:49]MH_I2C_Read... [17:12:49]*** Stop cut motor [17:12:49]*** Cut end [17:12:49]Read from MH i2c: 01 07 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 FF 0F 4E [17:12:49]process_action close_receipt done [17:12:49]requested_data is exist [17:12:49]produce_requested_data [17:12:49]requested_item fm.sn is exist - process it [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 11 00 00 [17:12:49]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 17 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [17:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:49]wFMCommunicate OK [17:12:49]requested_item fd.num is exist - process it [17:12:49]SAM_PROTO_GetFieldsCounters [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 13 00 00 [17:12:49]Write to MH i2c: E2 08 00 2E 0D 80 13 00 00 00 00 00 00 B7 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 62 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 62 00 2E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [17:12:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:49]wFMCommunicate OK [17:12:49]SAM_PROTO_GetFieldsCounters done [17:12:49]requested_item shift.num is exist - process it [17:12:49]requested_item shift.opened is exist - process it [17:12:49]req_shift_opened [17:12:49]FM_GetShiftState [17:12:49]SAM_PROTO_GetShiftState [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 13 01 00 [17:12:49]Write to MH i2c: E2 08 00 2F 0D 80 13 01 00 00 00 00 00 B9 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 0E 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 0E 00 2F 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E5 [17:12:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:12:49]wFMCommunicate OK [17:12:49]SAM_PROTO_GetShiftState done [17:12:49]FM_GetShiftState done [17:12:49]req_shift_opened done [17:12:49]requested_item shift.open_date is exist - process it [17:12:49]req_shift_open_date [17:12:49]req_shift_open_date done [17:12:49]produce_requested_data done [17:12:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69929,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:12:49]process_action_free close_receipt [17:12:49]json_value_free [17:12:49]json_value_free done [17:12:49]process_json_proto returns [17:12:49]Send response to host [17:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69929,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:12:49]free response buf [17:12:49]execute_script done [17:12:49]execute_script returns [17:12:49]free content buf [17:12:49]Sock 7.Close socket [17:12:49]Sock 7.Thread stoped [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:49]accept exits with 9 [17:13:49]New connection [17:13:49]New thread 3067026788 created [17:13:49]Thread 3067170148 joined [17:13:49]Waiting for new connection... [17:13:49] Sock 9.Parse request [17:13:49]Sock 9.Check first char [17:13:49]Sock 9.First char is OK [17:13:49]request: POST /json_proto HTTP/1.0 [17:13:49]Method: POST [17:13:49]URL: /json_proto [17:13:49]Method is POST - this is cgi request [17:13:49]url: /json_proto [17:13:49]query_string will be loaded in cgi processing [17:13:49]execute_cgi json_proto POST (null) [17:13:49]execute_cgi path=json_proto method=POST [17:13:49]POST find Content-Length [17:13:49]Host: 172.17.50.3:8080 [17:13:49]Content-Length: 767 [17:13:49]Content-Type: application/json [17:13:49] [17:13:49]POST finish read [17:13:49]Found Content-Length = 767 [17:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]execute_script... [17:13: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)2885687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]POST & json_proto [17:13:49]process_json_proto [17:13:49]json parsed OK: [17:13:49]protocol is kg_v1.0 [17:13:49]action value=close_receipt [17:13:49]process_action close_receipt [17:13:49]cmd_close_receipt [17:13:49]MH_GetDate [17:13:49]Write to MH i2c: F0 00 00 30 0D 2C [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 30 0D 00 CE 8B 16 67 6B 98 1E 66 92 [17:13:49]GetLastDocTimeStamp 1729530765 [17:13:49]current date 1729530830 [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [17:13:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]opened in 1729469703 [17:13:49]opened+sec_in_day 1729556103 [17:13:49]quantity*price = 200025 [17:13:49]sum+1 = 200026 [17:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 320 21.10.2024 17:13 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69930 ФПД: 173687349656646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69930&fm=173687349656646&tin=02508201610067®Number=0000000000156251&sum=200025 [17:13:50]StoreToDocumentArchive [17:13:50]shift 194 fd 69930 [17:13:50]save to /storage/0194/doc_00069930 [17:13:50]save last doc name /storage/0194/doc_00069930 to /storage/kkm_last_doc_name [17:13:50]save OK [17:13:50]Clear old archive folders... [17:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:50]tlvbuf is 011399C0 [17:13:50]SAM_PROTO_ClearQueue [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 09 00 00 [17:13:50]Write to MH i2c: E2 08 00 3E 0D 80 09 00 00 00 00 00 00 BD [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_ClearQueue done [17:13:50]KKMCreateOFDPacket [17:13:50]OFDProtocolAddRootSTLVToBuf [17:13:50]FM_MakeSignedData [17:13:50]FM_MakeSignedData [17:13:50]SAM_PROTO_SignData [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 01 02 [17:13:50]Write to MH i2c: E2 08 00 3F 0D 80 0D 01 02 00 00 00 00 C5 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=255 [17:13:50]MH_SAM_APDU [17:13:50]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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 CE 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 11 01 00 35 04 06 00 9D F7 BC C7 [17:13:50]Write to MH i2c: E2 02 01 40 0D 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 CE 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 11 01 00 35 04 06 00 9D F7 BC C7 00 00 90 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=7 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 02 02 02 3C 46 [17:13:50]Write to MH i2c: E2 0A 00 41 0D 80 0D 02 02 02 00 3C 46 00 00 4E [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 03 02 [17:13:50]Write to MH i2c: E2 08 00 42 0D 80 0D 03 02 00 00 00 00 CA [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0B 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0B 00 42 0D 00 2B 34 7E 94 A8 81 4C 63 90 00 14 [17:13:50]RAPDU: 2B 34 7E 94 A8 81 4C 63 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_SignData done [17:13:50]FM_MakeSignedData done [17:13:50]CreateOFDProtocolMessage [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 11 00 00 [17:13:50]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [17:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:13:50]wFMCommunicate OK [17:13:50]CreateOFDProtocolMessage done [17:13:50]OFDSenderStorePacket 69930 [17:13:50]StoreOFDPacket docnum=69930 [17:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DC A5 04 01 FB 07 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 CE 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 11 01 00 35 04 06 00 9D F7 BC C7 3C 46 2B 34 7E 94 A8 81 4C 63 [17:13:50]CheckFolder [17:13:50]dirname=/storage/ofd_packets [17:13:50]CheckFolder done [17:13:50]ProducePacketName [17:13:50]name=ofd_packets/00069930 [17:13:50]NVStorageSaveData ofd_packets/00069930 [17:13:50]File name is /storage/ofd_packets/00069930 [17:13:50]Write 298 bytes [17:13:50]NVStorageSaveData done [17:13:50]OFDSenderStorePacket done [17:13:50]KKMCreateOFDPacket done [17:13:50]NVStorageSaveData kkm_last_timestamp [17:13:50]File name is /storage/kkm_last_timestamp [17:13:50]Write 4 bytes [17:13:50]NVStorageSaveData done [17:13:50]ExternCall_PrintAddStr [17:13:50]wPrintStart [17:13:50]Write to MH i2c: 01 00 00 44 0D 51 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: 01 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: 01 07 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [17:13:50]RasterBufferAndPrint [17:13:50]line Счет N : (1)2885687 [17:13:50]line ИНН: 02508201610067 [17:13:50]line Контрольно-Кассовый Чек [17:13:50]line ПРОДАЖА [17:13:50]line ТРК (МРК, ГНК) : 61 [17:13:50]line Товар: 2710194210 [17:13:50]line ДТ-К-5 [17:13:50]line 26.250 * 76.20 [17:13:50]line = 2000.25 [17:13:50]line НДС 12% НСП 1% [17:13:50]line > о реализуемом товаре [17:13:50]line ИТОГО: 2000.25 [17:13:50]line НСП 1% : 17.70 [17:13:50]line НДС 12% : 212.42 [17:13:50]line Наличными: 0.00 [17:13:50]line Безнал.: 2000.25 [17:13:50]line Место: АЗС № 85 "Партнер Нефть" [17:13:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:13:50]line СНО: Общий режим [17:13:50]line Чек 320 21.10.2024 17:13 [17:13:50]line Смена: 194 ФФД: 1.0 [17:13:50]line ЗНМ: 0300000167 [17:13:50]line РНМ: 0000000000156251 [17:13:50]line Версия ККМ: v1.0 [17:13:50]line Платежная система: Mbank [17:13:50]line ФМ: 0000000000963346 [17:13:50]line ФД: 69930 [17:13:50]line ФПД: 173687349656646 [17:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69930&fm=173687349656646&tin=02508201610067®Number=0000000000156251&sum=200025 [17:13:51]OFD Sender: Processing packet 69930 [packets to send 18, broken 17] [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00069930 [17:13:51]OFD Sender: To server: pG, [17:13:51]CommunicateWithHost lk.salyk.kg:30040 [17:13:51]ConnectInit lk.salyk.kg [17:13:51]written 0, free lines is 4095 [17:13:51]Connected sock=10 [17:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DC A5 04 01 FB 07 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 32 31 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 CE 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 11 01 00 35 04 06 00 9D F7 BC C7 3C 46 2B 34 7E 94 A8 81 4C 63 [17:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 94 11 47 00 65 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 11 01 00 F4 03 04 00 71 35 16 67 B6 04 01 00 00 F7 5A 05 3E B9 BA 38 12 [17:13:51]CommunicateWithHost err = 0 [17:13:51]CheckOFDResponse [17:13:51]1017 (14) - 77093643461234 [17:13:51]1041 (16) - 0000000000963346 [17:13:51]1040 (4) - 69930 [17:13:51]1012 (4) - 21.10.2024 11:05 [17:13:51]1206 (1) - 0 [17:13:51]OFD Sender: Remove packet 69930 [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00069930 [17:13:51]NVStorageDeleteData [17:13:51]Write to MH i2c: 01 00 00 6D 0D 7A [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 6D 0D 00 00 00 00 00 2E 0D BC [17:13:51]RasterBufferAndPrint [17:13:51]line [17:13:51]line [17:13:51]line [17:13:51]line [17:13:51]line [17:13:51]written 0, free lines is 3382 [17:13:51]MH_Cut [17:13:51]Write to MH i2c: D1 01 00 74 0D 01 53 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: D1 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: D1 01 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: D1 01 00 74 0D 00 52 [17:13:51]Write to MH i2c: 01 00 00 75 0D 82 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]OFD Sender: No OFD packet to send [17:13:52]*** Cut start [17:13:52]*** Partial cut [17:13:52]*** CUTSNS_PIN = 1 [17:13:52]*** CUTSNS_PIN = 0 [17:13:52]*** Brake cut motor [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]*** Stop cut motor [17:13:52]*** Cut end [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 FF 0F 97 [17:13:52]process_action close_receipt done [17:13:52]requested_data is exist [17:13:52]produce_requested_data [17:13:52]requested_item fm.sn is exist - process it [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 11 00 00 [17:13:52]Write to MH i2c: E2 08 00 76 0D 80 11 00 00 00 00 00 00 FD [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 76 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [17:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:13:52]wFMCommunicate OK [17:13:52]requested_item fd.num is exist - process it [17:13:52]SAM_PROTO_GetFieldsCounters [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 13 00 00 [17:13:52]Write to MH i2c: E2 08 00 77 0D 80 13 00 00 00 00 00 00 00 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 62 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 62 00 77 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [17:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_GetFieldsCounters done [17:13:53]requested_item shift.num is exist - process it [17:13:53]requested_item shift.opened is exist - process it [17:13:53]req_shift_opened [17:13:53]FM_GetShiftState [17:13:53]SAM_PROTO_GetShiftState [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 13 01 00 [17:13:53]Write to MH i2c: E2 08 00 78 0D 80 13 01 00 00 00 00 00 02 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 0E 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 0E 00 78 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2E [17:13:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_GetShiftState done [17:13:53]FM_GetShiftState done [17:13:53]req_shift_opened done [17:13:53]requested_item shift.open_date is exist - process it [17:13:53]req_shift_open_date [17:13:53]req_shift_open_date done [17:13:53]produce_requested_data done [17:13:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69930,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:13:53]process_action_free close_receipt [17:13:53]json_value_free [17:13:53]json_value_free done [17:13:53]process_json_proto returns [17:13:53]Send response to host [17:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69930,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:13:53]free response buf [17:13:53]execute_script done [17:13:53]execute_script returns [17:13:53]free content buf [17:13:53]Sock 9.Close socket [17:13:53]Sock 9.Thread stoped [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:12]accept exits with 7 [17:14:12]New connection [17:14:12]New thread 3067170148 created [17:14:12]Thread 3067026788 joined [17:14:12]Waiting for new connection... [17:14:12] Sock 7.Parse request [17:14:12]Sock 7.Check first char [17:14:12]Sock 7.First char is OK [17:14:12]request: POST /json_proto HTTP/1.0 [17:14:12]Method: POST [17:14:12]URL: /json_proto [17:14:12]Method is POST - this is cgi request [17:14:12]url: /json_proto [17:14:12]query_string will be loaded in cgi processing [17:14:12]execute_cgi json_proto POST (null) [17:14:12]execute_cgi path=json_proto method=POST [17:14:12]POST find Content-Length [17:14:12]Host: 172.17.50.3:8080 [17:14:12]Content-Length: 678 [17:14:12]Content-Type: application/json [17:14:12] [17:14:12]POST finish read [17:14:12]Found Content-Length = 678 [17:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885688", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:12]execute_script... [17:14: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)2885688", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:12]POST & json_proto [17:14:12]process_json_proto [17:14:12]json parsed OK: [17:14:12]protocol is kg_v1.0 [17:14:12]action value=close_receipt [17:14:12]process_action close_receipt [17:14:12]cmd_close_receipt [17:14:12]MH_GetDate [17:14:12]Write to MH i2c: F0 00 00 79 0D 75 [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: F0 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: F0 09 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: F0 09 00 79 0D 00 E5 8B 16 67 6B 98 1E 66 F2 [17:14:12]GetLastDocTimeStamp 1729530830 [17:14:12]current date 1729530853 [17:14:12]FM_GetShiftState [17:14:12]SAM_PROTO_GetShiftState [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 13 01 00 [17:14:12]Write to MH i2c: E2 08 00 7A 0D 80 13 01 00 00 00 00 00 04 [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 7A 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 30 [17:14:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:14:12]wFMCommunicate OK [17:14:12]SAM_PROTO_GetShiftState done [17:14:12]FM_GetShiftState done [17:14:12]opened in 1729469703 [17:14:12]opened+sec_in_day 1729556103 [17:14:12]quantity*price = 50041 [17:14:12]sum+1 = 50042 [17:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 321 21.10.2024 17:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69931 ФПД: 171883139303587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69931&fm=171883139303587&tin=02508201610067®Number=0000000000156251&sum=50000 [17:14:13]StoreToDocumentArchive [17:14:13]shift 194 fd 69931 [17:14:13]save to /storage/0194/doc_00069931 [17:14:13]save last doc name /storage/0194/doc_00069931 to /storage/kkm_last_doc_name [17:14:13]save OK [17:14:13]Clear old archive folders... [17:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:13]tlvbuf is 01138B30 [17:14:13]SAM_PROTO_ClearQueue [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 09 00 00 [17:14:13]Write to MH i2c: E2 08 00 87 0D 80 09 00 00 00 00 00 00 06 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [17:14:13]RAPDU: 90 00 [17:14:13]wFMCommunicate OK [17:14:13]SAM_PROTO_ClearQueue done [17:14:13]KKMCreateOFDPacket [17:14:13]OFDProtocolAddRootSTLVToBuf [17:14:13]FM_MakeSignedData [17:14:13]FM_MakeSignedData [17:14:13]SAM_PROTO_SignData [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 0D 01 02 [17:14:13]Write to MH i2c: E2 08 00 88 0D 80 0D 01 02 00 00 00 00 0E [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [17:14:13]RAPDU: 90 00 [17:14:13]wFMCommunicate OK [17:14:13]wFMCommunicate request_size=255 [17:14:13]MH_SAM_APDU [17:14: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 11 01 00 35 04 06 00 9C [17:14:13]Write to MH i2c: E2 02 01 89 0D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 11 01 00 35 04 06 00 9C 00 00 61 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [17:14:13]RAPDU: 90 00 [17:14:13]wFMCommunicate OK [17:14:13]wFMCommunicate request_size=10 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 0D 02 02 05 53 A9 76 08 A3 [17:14:13]Write to MH i2c: E2 0D 00 8A 0D 80 0D 02 02 05 00 53 A9 76 08 A3 00 00 38 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [17:14:13]RAPDU: 90 00 [17:14:13]wFMCommunicate OK [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 0D 03 02 [17:14:13]Write to MH i2c: E2 08 00 8B 0D 80 0D 03 02 00 00 00 00 13 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0B 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0B 00 8B 0D 00 AD 91 7C 83 89 FD 17 5E 90 00 4C [17:14:13]RAPDU: AD 91 7C 83 89 FD 17 5E 90 00 [17:14:13]wFMCommunicate OK [17:14:13]SAM_PROTO_SignData done [17:14:13]FM_MakeSignedData done [17:14:13]CreateOFDProtocolMessage [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 11 00 00 [17:14:13]Write to MH i2c: E2 08 00 8C 0D 80 11 00 00 00 00 00 00 13 [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 17 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 17 00 8C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [17:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:14:13]wFMCommunicate OK [17:14:13]CreateOFDProtocolMessage done [17:14:13]OFDSenderStorePacket 69931 [17:14:13]StoreOFDPacket docnum=69931 [17:14:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 EE 07 01 8F 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 11 01 00 35 04 06 00 9C 53 A9 76 08 A3 AD 91 7C 83 89 FD 17 5E [17:14:13]CheckFolder [17:14:13]dirname=/storage/ofd_packets [17:14:13]CheckFolder done [17:14:13]ProducePacketName [17:14:13]name=ofd_packets/00069931 [17:14:13]NVStorageSaveData ofd_packets/00069931 [17:14:13]File name is /storage/ofd_packets/00069931 [17:14:13]Write 301 bytes [17:14:13]NVStorageSaveData done [17:14:13]OFDSenderStorePacket done [17:14:13]KKMCreateOFDPacket done [17:14:13]NVStorageSaveData kkm_last_timestamp [17:14:13]File name is /storage/kkm_last_timestamp [17:14:13]Write 4 bytes [17:14:13]NVStorageSaveData done [17:14:13]ExternCall_PrintAddStr [17:14:13]wPrintStart [17:14:13]Write to MH i2c: 01 00 00 8D 0D 9A [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 07 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: 01 07 00 8D 0D 00 00 00 00 00 FF 0F AF [17:14:13]RasterBufferAndPrint [17:14:13]line Счет N : (1)2885688 [17:14:13]line ИНН: 02508201610067 [17:14:13]line Контрольно-Кассовый Чек [17:14:13]line ПРОДАЖА [17:14:13]line ТРК (МРК, ГНК) : 42 [17:14:13]line Товар: 2710124130 [17:14:13]line Аи-92-К-5 [17:14:13]line 7.480 * 66.90 [17:14:13]line = 500.41 [17:14:13]line НДС 12% НСП 1% [17:14:13]line > о реализуемом товаре [17:14:13]line ОКРУГЛЕНИЕ: -0.41 [17:14:13]line ИТОГО: 500.00 [17:14:13]line Внесено: 500.00 [17:14:13]line СДАЧА: 0.00 [17:14:13]line НСП 1% : 4.43 [17:14:13]line НДС 12% : 53.14 [17:14:13]line Наличными: 500.00 [17:14:13]line Безнал.: 0.00 [17:14:13]line Место: АЗС № 85 "Партнер Нефть" [17:14:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:14:13]line СНО: Общий режим [17:14:13]line Чек 321 21.10.2024 17:14 [17:14:13]line Смена: 194 ФФД: 1.0 [17:14:13]line ЗНМ: 0300000167 [17:14:13]line РНМ: 0000000000156251 [17:14:13]line Версия ККМ: v1.0 [17:14:13]line ФМ: 0000000000963346 [17:14:13]line ФД: 69931 [17:14:13]line ФПД: 171883139303587 [17:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69931&fm=171883139303587&tin=02508201610067®Number=0000000000156251&sum=50000 [17:14:14]OFD Sender: Processing packet 69931 [packets to send 18, broken 17] [17:14:14]ProducePacketName [17:14:14]name=ofd_packets/00069931 [17:14:14]OFD Sender: To server: pG, [17:14:14]CommunicateWithHost lk.salyk.kg:30040 [17:14:14]ConnectInit lk.salyk.kg [17:14:14]written 0, free lines is 4095 [17:14:14]Connected sock=10 [17:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 EE 07 01 8F 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 11 01 00 35 04 06 00 9C 53 A9 76 08 A3 AD 91 7C 83 89 FD 17 5E [17:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DB FB 47 00 2A 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 39 36 33 33 34 36 10 04 04 00 2B 11 01 00 F4 03 04 00 88 35 16 67 B6 04 01 00 00 E7 E9 1D 33 3A BB E4 BE [17:14:14]CommunicateWithHost err = 0 [17:14:14]CheckOFDResponse [17:14:14]1017 (14) - 77093643461234 [17:14:14]1041 (16) - 0000000000963346 [17:14:14]1040 (4) - 69931 [17:14:14]1012 (4) - 21.10.2024 11:05 [17:14:14]1206 (1) - 0 [17:14:14]OFD Sender: Remove packet 69931 [17:14:14]ProducePacketName [17:14:14]name=ofd_packets/00069931 [17:14:14]NVStorageDeleteData [17:14:14]Write to MH i2c: 01 00 00 B8 0D C5 [17:14:14]Write i2c OK [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: 01 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: 01 07 00 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 F5 0C CD [17:14:14]RasterBufferAndPrint [17:14:14]line [17:14:14]line [17:14:14]line [17:14:14]line [17:14:14]line [17:14:14]written 0, free lines is 3323 [17:14:14]MH_Cut [17:14:14]Write to MH i2c: D1 01 00 BF 0D 01 9E [17:14:14]Write i2c OK [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: D1 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: D1 01 00 [17:14:14]MH_I2C_Read... [17:14:14]Read from MH i2c: D1 01 00 BF 0D 00 9D [17:14:14]Write to MH i2c: 01 00 00 C0 0D CD [17:14:14]Write i2c OK [17:14:14]MH_I2C_Read... [17:14:15]OFD Sender: No OFD packet to send [17:14:15]*** Cut start [17:14:15]*** Partial cut [17:14:15]*** CUTSNS_PIN = 1 [17:14:15]*** CUTSNS_PIN = 0 [17:14:15]*** Brake cut motor [17:14:15]Read from MH i2c: 01 [17:14:15]MH_I2C_Read... [17:14:15]*** Stop cut motor [17:14:15]*** Cut end [17:14:15]Read from MH i2c: 01 07 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 FF 0F E2 [17:14:15]process_action close_receipt done [17:14:15]requested_data is exist [17:14:15]produce_requested_data [17:14:15]requested_item fm.sn is exist - process it [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 11 00 00 [17:14:15]Write to MH i2c: E2 08 00 C1 0D 80 11 00 00 00 00 00 00 48 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 17 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 17 00 C1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [17:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:14:16]wFMCommunicate OK [17:14:16]requested_item fd.num is exist - process it [17:14:16]SAM_PROTO_GetFieldsCounters [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 13 00 00 [17:14:16]Write to MH i2c: E2 08 00 C2 0D 80 13 00 00 00 00 00 00 4B [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 62 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 62 00 C2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [17:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:16]wFMCommunicate OK [17:14:16]SAM_PROTO_GetFieldsCounters done [17:14:16]requested_item shift.num is exist - process it [17:14:16]requested_item shift.opened is exist - process it [17:14:16]req_shift_opened [17:14:16]FM_GetShiftState [17:14:16]SAM_PROTO_GetShiftState [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 13 01 00 [17:14:16]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 0E 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 79 [17:14:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:14:16]wFMCommunicate OK [17:14:16]SAM_PROTO_GetShiftState done [17:14:16]FM_GetShiftState done [17:14:16]req_shift_opened done [17:14:16]requested_item shift.open_date is exist - process it [17:14:16]req_shift_open_date [17:14:16]req_shift_open_date done [17:14:16]produce_requested_data done [17:14:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69931,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:14:16]process_action_free close_receipt [17:14:16]json_value_free [17:14:16]json_value_free done [17:14:16]process_json_proto returns [17:14:16]Send response to host [17:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69931,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:14:16]free response buf [17:14:16]execute_script done [17:14:16]execute_script returns [17:14:16]free content buf [17:14:16]Sock 7.Close socket [17:14:16]Sock 7.Thread stoped [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:04]accept exits with 9 [17:21:04]New connection [17:21:04]New thread 3067026788 created [17:21:04]Thread 3067170148 joined [17:21:04]Waiting for new connection... [17:21:04] Sock 9.Parse request [17:21:04]Sock 9.Check first char [17:21:04]Sock 9.First char is OK [17:21:04]request: POST /json_proto HTTP/1.0 [17:21:04]Method: POST [17:21:04]URL: /json_proto [17:21:04]Method is POST - this is cgi request [17:21:04]url: /json_proto [17:21:04]query_string will be loaded in cgi processing [17:21:04]execute_cgi json_proto POST (null) [17:21:04]execute_cgi path=json_proto method=POST [17:21:04]POST find Content-Length [17:21:04]Host: 172.17.50.3:8080 [17:21:04]Content-Length: 793 [17:21:04]Content-Type: application/json [17:21:04] [17:21:04]POST finish read [17:21:04]Found Content-Length = 793 [17:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885689", "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" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:04]execute_script... [17:21: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)2885689", "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" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74592", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:04]POST & json_proto [17:21:04]process_json_proto [17:21:04]json parsed OK: [17:21:04]protocol is kg_v1.0 [17:21:04]action value=close_receipt [17:21:04]process_action close_receipt [17:21:04]cmd_close_receipt [17:21:04]MH_GetDate [17:21:04]Write to MH i2c: F0 00 00 C4 0D C0 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: F0 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: F0 09 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: F0 09 00 C4 0D 00 81 8D 16 67 6B 98 1E 66 DB [17:21:04]GetLastDocTimeStamp 1729530853 [17:21:04]current date 1729531265 [17:21:04]FM_GetShiftState [17:21:04]SAM_PROTO_GetShiftState [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 13 01 00 [17:21:04]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0E 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7B [17:21:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_GetShiftState done [17:21:04]FM_GetShiftState done [17:21:04]opened in 1729469703 [17:21:04]opened+sec_in_day 1729556103 [17:21:04]quantity*price = 0 [17:21:04]sum+1 = 1 [17:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 322 21.10.2024 17:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 74592 ФМ: 0000000000963346 ФД: 69932 ФПД: 70126493848148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69932&fm=70126493848148&tin=02508201610067®Number=0000000000156251&sum=0 [17:21:05]StoreToDocumentArchive [17:21:05]shift 194 fd 69932 [17:21:05]save to /storage/0194/doc_00069932 [17:21:05]save last doc name /storage/0194/doc_00069932 to /storage/kkm_last_doc_name [17:21:05]save OK [17:21:05]Clear old archive folders... [17:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:05]tlvbuf is 01144C80 [17:21:05]SAM_PROTO_ClearQueue [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 09 00 00 [17:21:05]Write to MH i2c: E2 08 00 D2 0D 80 09 00 00 00 00 00 00 51 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [17:21:05]RAPDU: 90 00 [17:21:05]wFMCommunicate OK [17:21:05]SAM_PROTO_ClearQueue done [17:21:05]KKMCreateOFDPacket [17:21:05]OFDProtocolAddRootSTLVToBuf [17:21:05]FM_MakeSignedData [17:21:05]FM_MakeSignedData [17:21:05]SAM_PROTO_SignData [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 0D 01 02 [17:21:05]Write to MH i2c: E2 08 00 D3 0D 80 0D 01 02 00 00 00 00 59 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [17:21:05]RAPDU: 90 00 [17:21:05]wFMCommunicate OK [17:21:05]wFMCommunicate request_size=255 [17:21:05]MH_SAM_APDU [17:21: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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 81 8D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 11 01 00 35 04 06 00 3F [17:21:05]Write to MH i2c: E2 02 01 D4 0D 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 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 81 8D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 11 01 00 35 04 06 00 3F 00 00 0A [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 03 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [17:21:06]RAPDU: 90 00 [17:21:06]wFMCommunicate OK [17:21:06]wFMCommunicate request_size=10 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 0D 02 02 05 C7 98 C1 52 54 [17:21:06]Write to MH i2c: E2 0D 00 D5 0D 80 0D 02 02 05 00 C7 98 C1 52 54 00 00 2C [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 03 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [17:21:06]RAPDU: 90 00 [17:21:06]wFMCommunicate OK [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 0D 03 02 [17:21:06]Write to MH i2c: E2 08 00 D6 0D 80 0D 03 02 00 00 00 00 5E [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 0B 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 0B 00 D6 0D 00 F6 C5 D3 1A 52 3A 1B 1D 90 00 CB [17:21:06]RAPDU: F6 C5 D3 1A 52 3A 1B 1D 90 00 [17:21:06]wFMCommunicate OK [17:21:06]SAM_PROTO_SignData done [17:21:06]FM_MakeSignedData done [17:21:06]CreateOFDProtocolMessage [17:21:06]wFMCommunicate request_size=4 [17:21:06]MH_SAM_APDU [17:21:06]CAPDU: 80 11 00 00 [17:21:06]Write to MH i2c: E2 08 00 D7 0D 80 11 00 00 00 00 00 00 5E [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:06]Read from MH i2c: E2 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 17 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: E2 17 00 D7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [17:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:21:06]wFMCommunicate OK [17:21:06]CreateOFDProtocolMessage done [17:21:06]OFDSenderStorePacket 69932 [17:21:06]StoreOFDPacket docnum=69932 [17:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E2 EF 07 01 F8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 81 8D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 11 01 00 35 04 06 00 3F C7 98 C1 52 54 F6 C5 D3 1A 52 3A 1B 1D [17:21:06]CheckFolder [17:21:06]dirname=/storage/ofd_packets [17:21:06]CheckFolder done [17:21:06]ProducePacketName [17:21:06]name=ofd_packets/00069932 [17:21:06]NVStorageSaveData ofd_packets/00069932 [17:21:06]File name is /storage/ofd_packets/00069932 [17:21:06]Write 301 bytes [17:21:06]NVStorageSaveData done [17:21:06]OFDSenderStorePacket done [17:21:06]KKMCreateOFDPacket done [17:21:06]NVStorageSaveData kkm_last_timestamp [17:21:06]File name is /storage/kkm_last_timestamp [17:21:06]Write 4 bytes [17:21:06]NVStorageSaveData done [17:21:06]ExternCall_PrintAddStr [17:21:06]wPrintStart [17:21:06]Write to MH i2c: 01 00 00 D8 0D E5 [17:21:06]Write i2c OK [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: 01 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: 01 07 00 [17:21:06]MH_I2C_Read... [17:21:06]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [17:21:06]RasterBufferAndPrint [17:21:06]line Счет N : (1)2885689 [17:21:06]line ИНН: 02508201610067 [17:21:06]line Контрольно-Кассовый Чек [17:21:06]line ПРОДАЖА [17:21:06]line ТРК (МРК, ГНК) : 32 [17:21:06]line Товар: 2710124130 [17:21:06]line Аи-92-К-5 [17:21:06]line 14.950 * 0.00 [17:21:06]line = 0.00 [17:21:06]line НДС 12% НСП 1% [17:21:06]line > о реализуемом товаре [17:21:06]line ИТОГО: 0.00 [17:21:06]line НСП 1% : 0.00 [17:21:06]line НДС 12% : 0.00 [17:21:06]line Наличными: 0.00 [17:21:06]line Безнал.: 0.00 [17:21:06]line Место: АЗС № 85 "Партнер Нефть" [17:21:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:21:06]line СНО: Общий режим [17:21:06]line Чек 322 21.10.2024 17:21 [17:21:06]line Смена: 194 ФФД: 1.0 [17:21:06]line ЗНМ: 0300000167 [17:21:06]line РНМ: 0000000000156251 [17:21:06]line Версия ККМ: v1.0 [17:21:06]line Талоны: Топливная Карта [17:21:06]line 74592 [17:21:06]line ФМ: 0000000000963346 [17:21:06]line ФД: 69932 [17:21:06]line ФПД: 70126493848148 [17:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69932&fm=70126493848148&tin=02508201610067®Number=0000000000156251&sum=0 [17:21:06]OFD Sender: Processing packet 69932 [packets to send 18, broken 17] [17:21:06]ProducePacketName [17:21:06]name=ofd_packets/00069932 [17:21:06]OFD Sender: To server: pG, [17:21:06]CommunicateWithHost lk.salyk.kg:30040 [17:21:06]ConnectInit lk.salyk.kg [17:21:06]written 0, free lines is 4095 [17:21:06]Connected sock=10 [17:21:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E2 EF 07 01 F8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 81 8D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 11 01 00 35 04 06 00 3F C7 98 C1 52 54 F6 C5 D3 1A 52 3A 1B 1D [17:21:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0B 2B 47 00 74 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 11 01 00 F4 03 04 00 24 37 16 67 B6 04 01 00 00 A7 56 A8 36 70 E4 D4 9E [17:21:06]CommunicateWithHost err = 0 [17:21:06]CheckOFDResponse [17:21:06]1017 (14) - 77093643461234 [17:21:06]1041 (16) - 0000000000963346 [17:21:06]1040 (4) - 69932 [17:21:06]1012 (4) - 21.10.2024 11:12 [17:21:06]1206 (1) - 0 [17:21:06]OFD Sender: Remove packet 69932 [17:21:06]ProducePacketName [17:21:06]name=ofd_packets/00069932 [17:21:06]NVStorageDeleteData [17:21:07]Write to MH i2c: 01 00 00 02 0E 10 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: 01 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: 01 07 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 0B 0D 2F [17:21:07]RasterBufferAndPrint [17:21:07]line [17:21:07]line [17:21:07]line [17:21:07]line [17:21:07]line [17:21:07]written 0, free lines is 3346 [17:21:07]MH_Cut [17:21:07]Write to MH i2c: D1 01 00 09 0E 01 E9 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: D1 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: D1 01 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: D1 01 00 09 0E 00 E8 [17:21:07]Write to MH i2c: 01 00 00 0A 0E 18 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]OFD Sender: No OFD packet to send [17:21:07]*** Cut start [17:21:07]*** Partial cut [17:21:07]*** CUTSNS_PIN = 1 [17:21:07]*** CUTSNS_PIN = 0 [17:21:08]*** Brake cut motor [17:21:08]Read from MH i2c: 01 [17:21:08]MH_I2C_Read... [17:21:08]*** Stop cut motor [17:21:08]*** Cut end [17:21:08]Read from MH i2c: 01 07 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 FF 0F 2D [17:21:08]process_action close_receipt done [17:21:08]requested_data is exist [17:21:08]produce_requested_data [17:21:08]requested_item fm.sn is exist - process it [17:21:08]wFMCommunicate request_size=4 [17:21:08]MH_SAM_APDU [17:21:08]CAPDU: 80 11 00 00 [17:21:08]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:08]Read from MH i2c: E2 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 17 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [17:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:21:08]wFMCommunicate OK [17:21:08]requested_item fd.num is exist - process it [17:21:08]SAM_PROTO_GetFieldsCounters [17:21:08]wFMCommunicate request_size=4 [17:21:08]MH_SAM_APDU [17:21:08]CAPDU: 80 13 00 00 [17:21:08]Write to MH i2c: E2 08 00 0C 0E 80 13 00 00 00 00 00 00 96 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:08]Read from MH i2c: E2 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 62 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 62 00 0C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:08]wFMCommunicate OK [17:21:08]SAM_PROTO_GetFieldsCounters done [17:21:08]requested_item shift.num is exist - process it [17:21:08]requested_item shift.opened is exist - process it [17:21:08]req_shift_opened [17:21:08]FM_GetShiftState [17:21:08]SAM_PROTO_GetShiftState [17:21:08]wFMCommunicate request_size=4 [17:21:08]MH_SAM_APDU [17:21:08]CAPDU: 80 13 01 00 [17:21:08]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [17:21:08]Write i2c OK [17:21:08]MH_I2C_Read... [17:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:08]Read from MH i2c: E2 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 0E 00 [17:21:08]MH_I2C_Read... [17:21:08]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C4 [17:21:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:21:08]wFMCommunicate OK [17:21:08]SAM_PROTO_GetShiftState done [17:21:08]FM_GetShiftState done [17:21:08]req_shift_opened done [17:21:08]requested_item shift.open_date is exist - process it [17:21:08]req_shift_open_date [17:21:08]req_shift_open_date done [17:21:08]produce_requested_data done [17:21:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69932,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:21:08]process_action_free close_receipt [17:21:08]json_value_free [17:21:08]json_value_free done [17:21:08]process_json_proto returns [17:21:08]Send response to host [17:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69932,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:21:08]free response buf [17:21:08]execute_script done [17:21:08]execute_script returns [17:21:08]free content buf [17:21:08]Sock 9.Close socket [17:21:08]Sock 9.Thread stoped [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:03]accept exits with 7 [17:24:03]New connection [17:24:03]New thread 3067170148 created [17:24:03]Thread 3067026788 joined [17:24:03]Waiting for new connection... [17:24:03] Sock 7.Parse request [17:24:03]Sock 7.Check first char [17:24:03]Sock 7.First char is OK [17:24:03]request: POST /json_proto HTTP/1.0 [17:24:03]Method: POST [17:24:03]URL: /json_proto [17:24:03]Method is POST - this is cgi request [17:24:03]url: /json_proto [17:24:03]query_string will be loaded in cgi processing [17:24:03]execute_cgi json_proto POST (null) [17:24:03]execute_cgi path=json_proto method=POST [17:24:03]POST find Content-Length [17:24:03]Host: 172.17.50.3:8080 [17:24:03]Content-Length: 689 [17:24:03]Content-Type: application/json [17:24:03] [17:24:03]POST finish read [17:24:03]Found Content-Length = 689 [17:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:24:03]execute_script... [17:24: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)2885691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:24:03]POST & json_proto [17:24:03]process_json_proto [17:24:03]json parsed OK: [17:24:03]protocol is kg_v1.0 [17:24:03]action value=close_receipt [17:24:03]process_action close_receipt [17:24:03]cmd_close_receipt [17:24:03]MH_GetDate [17:24:03]Write to MH i2c: F0 00 00 0E 0E 0B [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: F0 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: F0 09 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: F0 09 00 0E 0E 00 34 8E 16 67 6B 98 1E 66 DA [17:24:03]GetLastDocTimeStamp 1729531265 [17:24:03]current date 1729531444 [17:24:03]FM_GetShiftState [17:24:03]SAM_PROTO_GetShiftState [17:24:03]wFMCommunicate request_size=4 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 13 01 00 [17:24:03]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C6 [17:24:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:24:04]wFMCommunicate OK [17:24:04]SAM_PROTO_GetShiftState done [17:24:04]FM_GetShiftState done [17:24:04]opened in 1729469703 [17:24:04]opened+sec_in_day 1729556103 [17:24:04]quantity*price = 100051 [17:24:04]sum+1 = 100052 [17:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 323 21.10.2024 17:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69933 ФПД: 52053945277318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172404&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69933&fm=52053945277318&tin=02508201610067®Number=0000000000156251&sum=100000 [17:24:05]StoreToDocumentArchive [17:24:05]shift 194 fd 69933 [17:24:05]save to /storage/0194/doc_00069933 [17:24:05]save last doc name /storage/0194/doc_00069933 to /storage/kkm_last_doc_name [17:24:05]save OK [17:24:05]Clear old archive folders... [17:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:24:05]tlvbuf is 01111CC0 [17:24:05]SAM_PROTO_ClearQueue [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 09 00 00 [17:24:05]Write to MH i2c: E2 08 00 1C 0E 80 09 00 00 00 00 00 00 9C [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_ClearQueue done [17:24:05]KKMCreateOFDPacket [17:24:05]OFDProtocolAddRootSTLVToBuf [17:24:05]FM_MakeSignedData [17:24:05]FM_MakeSignedData [17:24:05]SAM_PROTO_SignData [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 01 02 [17:24:05]Write to MH i2c: E2 08 00 1D 0E 80 0D 01 02 00 00 00 00 A4 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=255 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 43 01 00 00 F4 03 04 00 34 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 11 01 [17:24:05]Write to MH i2c: E2 02 01 1E 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 43 01 00 00 F4 03 04 00 34 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 11 01 00 00 7A [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=16 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2F 57 C0 EA DB 86 [17:24:05]Write to MH i2c: E2 13 00 1F 0E 80 0D 02 02 0B 00 00 35 04 06 00 2F 57 C0 EA DB 86 00 00 8D [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [17:24:05]RAPDU: 90 00 [17:24:05]wFMCommunicate OK [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 0D 03 02 [17:24:05]Write to MH i2c: E2 08 00 20 0E 80 0D 03 02 00 00 00 00 A9 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0B 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0B 00 20 0E 00 4B 72 A2 84 FF 20 5F 1C 90 00 27 [17:24:05]RAPDU: 4B 72 A2 84 FF 20 5F 1C 90 00 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_SignData done [17:24:05]FM_MakeSignedData done [17:24:05]CreateOFDProtocolMessage [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 11 00 00 [17:24:05]Write to MH i2c: E2 08 00 21 0E 80 11 00 00 00 00 00 00 A9 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 17 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 17 00 21 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [17:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:24:05]wFMCommunicate OK [17:24:05]CreateOFDProtocolMessage done [17:24:05]OFDSenderStorePacket 69933 [17:24:05]StoreOFDPacket docnum=69933 [17:24:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 52 CB 0D 01 6B BB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 43 01 00 00 F4 03 04 00 34 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 11 01 00 35 04 06 00 2F 57 C0 EA DB 86 4B 72 A2 84 FF 20 5F 1C [17:24:05]CheckFolder [17:24:05]dirname=/storage/ofd_packets [17:24:05]CheckFolder done [17:24:05]ProducePacketName [17:24:05]name=ofd_packets/00069933 [17:24:05]NVStorageSaveData ofd_packets/00069933 [17:24:05]File name is /storage/ofd_packets/00069933 [17:24:05]Write 307 bytes [17:24:05]NVStorageSaveData done [17:24:05]OFDSenderStorePacket done [17:24:05]KKMCreateOFDPacket done [17:24:05]NVStorageSaveData kkm_last_timestamp [17:24:05]File name is /storage/kkm_last_timestamp [17:24:05]Write 4 bytes [17:24:05]NVStorageSaveData done [17:24:05]ExternCall_PrintAddStr [17:24:05]wPrintStart [17:24:05]Write to MH i2c: 01 00 00 22 0E 30 [17:24:05]OFD Sender: Processing packet 69933 [packets to send 18, broken 17] [17:24:05]ProducePacketName [17:24:05]name=ofd_packets/00069933 [17:24:05]OFD Sender: To server: pG, [17:24:05]CommunicateWithHost lk.salyk.kg:30040 [17:24:05]ConnectInit lk.salyk.kg [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 07 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [17:24:05]RasterBufferAndPrint [17:24:05]line Счет N : (1)2885691 [17:24:05]line ИНН: 02508201610067 [17:24:05]line Контрольно-Кассовый Чек [17:24:05]line ПРОДАЖА [17:24:05]line ТРК (МРК, ГНК) : 31 [17:24:05]line Товар: 2710194240 [17:24:05]line D-ENERGY Дт-К-2 [17:24:05]line 12.960 * 77.20 [17:24:05]line = 1000.51 [17:24:05]line НДС 12% НСП 1% [17:24:05]line > о реализуемом товаре [17:24:05]line ОКРУГЛЕНИЕ: -0.51 [17:24:05]line ИТОГО: 1000.00 [17:24:05]line Внесено: 1000.00 [17:24:05]line СДАЧА: 0.00 [17:24:05]line НСП 1% : 8.85 [17:24:05]line НДС 12% : 106.25 [17:24:05]line Наличными: 1000.00 [17:24:05]line Безнал.: 0.00 [17:24:05]line Место: АЗС № 85 "Партнер Нефть" [17:24:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:24:05]line СНО: Общий режим [17:24:05]line Чек 323 21.10.2024 17:24 [17:24:05]line Смена: 194 ФФД: 1.0 [17:24:05]line ЗНМ: 0300000167 [17:24:05]line РНМ: 0000000000156251 [17:24:05]line Версия ККМ: v1.0 [17:24:05]line ФМ: 0000000000963346 [17:24:05]line ФД: 69933 [17:24:05]line ФПД: 52053945277318 [17:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172404&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69933&fm=52053945277318&tin=02508201610067®Number=0000000000156251&sum=100000 [17:24:06]written 0, free lines is 4095 [17:24:06]Write to MH i2c: 01 00 00 4D 0E 5B [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 F1 0C 5F [17:24:06]RasterBufferAndPrint [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]line [17:24:06]written 0, free lines is 3319 [17:24:06]MH_Cut [17:24:06]Write to MH i2c: D1 01 00 54 0E 01 34 [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 01 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: D1 01 00 54 0E 00 33 [17:24:06]Write to MH i2c: 01 00 00 55 0E 63 [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:07]*** Cut start [17:24:07]*** Partial cut [17:24:07]*** CUTSNS_PIN = 1 [17:24:07]*** CUTSNS_PIN = 0 [17:24:07]*** Brake cut motor [17:24:07]Read from MH i2c: 01 [17:24:07]MH_I2C_Read... [17:24:07]*** Stop cut motor [17:24:07]*** Cut end [17:24:07]Read from MH i2c: 01 07 00 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 FF 0F 78 [17:24:07]process_action close_receipt done [17:24:07]requested_data is exist [17:24:07]produce_requested_data [17:24:07]requested_item fm.sn is exist - process it [17:24:07]wFMCommunicate request_size=4 [17:24:07]MH_SAM_APDU [17:24:07]CAPDU: 80 11 00 00 [17:24:07]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [17:24:07]Write i2c OK [17:24:07]MH_I2C_Read... [17:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:07]Read from MH i2c: E2 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: E2 17 00 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [17:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:24:07]wFMCommunicate OK [17:24:07]requested_item fd.num is exist - process it [17:24:07]SAM_PROTO_GetFieldsCounters [17:24:07]wFMCommunicate request_size=4 [17:24:07]MH_SAM_APDU [17:24:07]CAPDU: 80 13 00 00 [17:24:07]Write to MH i2c: E2 08 00 57 0E 80 13 00 00 00 00 00 00 E1 [17:24:07]Write i2c OK [17:24:07]MH_I2C_Read... [17:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 62 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 62 00 57 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [17:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_GetFieldsCounters done [17:24:08]requested_item shift.num is exist - process it [17:24:08]requested_item shift.opened is exist - process it [17:24:08]req_shift_opened [17:24:08]FM_GetShiftState [17:24:08]SAM_PROTO_GetShiftState [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 13 01 00 [17:24:08]Write to MH i2c: E2 08 00 58 0E 80 13 01 00 00 00 00 00 E3 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0E 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0E 00 58 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0F [17:24:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_GetShiftState done [17:24:08]FM_GetShiftState done [17:24:08]req_shift_opened done [17:24:08]requested_item shift.open_date is exist - process it [17:24:08]req_shift_open_date [17:24:08]req_shift_open_date done [17:24:08]produce_requested_data done [17:24:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69933,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:24:08]process_action_free close_receipt [17:24:08]json_value_free [17:24:08]json_value_free done [17:24:08]process_json_proto returns [17:24:08]Send response to host [17:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69933,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:24:08]free response buf [17:24:08]execute_script done [17:24:08]execute_script returns [17:24:08]free content buf [17:24:08]Sock 7.Close socket [17:24:08]Sock 7.Thread stoped [17:25:24]accept exits with 9 [17:25:24]New connection [17:25:24]New thread 3067026788 created [17:25:24]Thread 3067170148 joined [17:25:24]Waiting for new connection... [17:25:24] Sock 9.Parse request [17:25:24]Sock 9.Check first char [17:25:24]Sock 9.First char is OK [17:25:24]request: POST /json_proto HTTP/1.0 [17:25:24]Method: POST [17:25:24]URL: /json_proto [17:25:24]Method is POST - this is cgi request [17:25:24]url: /json_proto [17:25:24]query_string will be loaded in cgi processing [17:25:24]execute_cgi json_proto POST (null) [17:25:24]execute_cgi path=json_proto method=POST [17:25:24]POST find Content-Length [17:25:24]Host: 172.17.50.3:8080 [17:25:24]Content-Length: 689 [17:25:24]Content-Type: application/json [17:25:24] [17:25:24]POST finish read [17:25:24]Found Content-Length = 689 [17:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:25:24]execute_script... [17:25: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)2885692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:25:24]POST & json_proto [17:25:24]process_json_proto [17:25:24]json parsed OK: [17:25:24]protocol is kg_v1.0 [17:25:24]action value=close_receipt [17:25:24]process_action close_receipt [17:25:24]cmd_close_receipt [17:25:24]MH_GetDate [17:25:24]Write to MH i2c: F0 00 00 59 0E 56 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: F0 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: F0 09 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: F0 09 00 59 0E 00 85 8E 16 67 6B 98 1E 66 76 [17:25:24]GetLastDocTimeStamp 1729531444 [17:25:24]current date 1729531525 [17:25:24]FM_GetShiftState [17:25:24]SAM_PROTO_GetShiftState [17:25:24]wFMCommunicate request_size=4 [17:25:24]MH_SAM_APDU [17:25:24]CAPDU: 80 13 01 00 [17:25:24]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:24]Read from MH i2c: E2 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 0E 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [17:25:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:25:24]wFMCommunicate OK [17:25:24]SAM_PROTO_GetShiftState done [17:25:24]FM_GetShiftState done [17:25:24]opened in 1729469703 [17:25:24]opened+sec_in_day 1729556103 [17:25:24]quantity*price = 100051 [17:25:24]sum+1 = 100052 [17:25: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 324 21.10.2024 17:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69934 ФПД: 60210156098205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69934&fm=60210156098205&tin=02508201610067®Number=0000000000156251&sum=100000 [17:25:25]StoreToDocumentArchive [17:25:25]shift 194 fd 69934 [17:25:25]save to /storage/0194/doc_00069934 [17:25:25]save last doc name /storage/0194/doc_00069934 to /storage/kkm_last_doc_name [17:25:25]save OK [17:25:25]Clear old archive folders... [17:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:25:25]tlvbuf is 011056D0 [17:25:25]SAM_PROTO_ClearQueue [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 09 00 00 [17:25:25]Write to MH i2c: E2 08 00 67 0E 80 09 00 00 00 00 00 00 E7 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [17:25:26]RAPDU: 90 00 [17:25:26]wFMCommunicate OK [17:25:26]SAM_PROTO_ClearQueue done [17:25:26]KKMCreateOFDPacket [17:25:26]OFDProtocolAddRootSTLVToBuf [17:25:26]FM_MakeSignedData [17:25:26]FM_MakeSignedData [17:25:26]SAM_PROTO_SignData [17:25:26]wFMCommunicate request_size=4 [17:25:26]MH_SAM_APDU [17:25:26]CAPDU: 80 0D 01 02 [17:25:26]Write to MH i2c: E2 08 00 68 0E 80 0D 01 02 00 00 00 00 EF [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [17:25:26]RAPDU: 90 00 [17:25:26]wFMCommunicate OK [17:25:26]wFMCommunicate request_size=255 [17:25:26]MH_SAM_APDU [17:25:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 85 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 11 01 [17:25:26]Write to MH i2c: E2 02 01 69 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 85 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 11 01 00 00 18 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [17:25:26]RAPDU: 90 00 [17:25:26]wFMCommunicate OK [17:25:26]wFMCommunicate request_size=16 [17:25:26]MH_SAM_APDU [17:25:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 36 C2 C4 F7 52 9D [17:25:26]Write to MH i2c: E2 13 00 6A 0E 80 0D 02 02 0B 00 00 35 04 06 00 36 C2 C4 F7 52 9D 00 00 E9 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [17:25:26]RAPDU: 90 00 [17:25:26]wFMCommunicate OK [17:25:26]wFMCommunicate request_size=4 [17:25:26]MH_SAM_APDU [17:25:26]CAPDU: 80 0D 03 02 [17:25:26]Write to MH i2c: E2 08 00 6B 0E 80 0D 03 02 00 00 00 00 F4 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 0B 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 0B 00 6B 0E 00 2F 93 4E 16 9B CB 50 0B 90 00 DC [17:25:26]RAPDU: 2F 93 4E 16 9B CB 50 0B 90 00 [17:25:26]wFMCommunicate OK [17:25:26]SAM_PROTO_SignData done [17:25:26]FM_MakeSignedData done [17:25:26]CreateOFDProtocolMessage [17:25:26]wFMCommunicate request_size=4 [17:25:26]MH_SAM_APDU [17:25:26]CAPDU: 80 11 00 00 [17:25:26]Write to MH i2c: E2 08 00 6C 0E 80 11 00 00 00 00 00 00 F4 [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:26]Read from MH i2c: E2 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 17 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: E2 17 00 6C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [17:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:25:26]wFMCommunicate OK [17:25:26]CreateOFDProtocolMessage done [17:25:26]OFDSenderStorePacket 69934 [17:25:26]StoreOFDPacket docnum=69934 [17:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1B 9A 0D 01 B5 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 85 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 11 01 00 35 04 06 00 36 C2 C4 F7 52 9D 2F 93 4E 16 9B CB 50 0B [17:25:26]CheckFolder [17:25:26]dirname=/storage/ofd_packets [17:25:26]CheckFolder done [17:25:26]ProducePacketName [17:25:26]name=ofd_packets/00069934 [17:25:26]NVStorageSaveData ofd_packets/00069934 [17:25:26]File name is /storage/ofd_packets/00069934 [17:25:26]Write 307 bytes [17:25:26]NVStorageSaveData done [17:25:26]OFDSenderStorePacket done [17:25:26]KKMCreateOFDPacket done [17:25:26]NVStorageSaveData kkm_last_timestamp [17:25:26]File name is /storage/kkm_last_timestamp [17:25:26]Write 4 bytes [17:25:26]NVStorageSaveData done [17:25:26]ExternCall_PrintAddStr [17:25:26]wPrintStart [17:25:26]Write to MH i2c: 01 00 00 6D 0E 7B [17:25:26]Write i2c OK [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 [17:25:26]MH_I2C_Read... [17:25:26]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [17:25:26]RasterBufferAndPrint [17:25:26]line Счет N : (1)2885692 [17:25:26]line ИНН: 02508201610067 [17:25:26]line Контрольно-Кассовый Чек [17:25:26]line ПРОДАЖА [17:25:26]line ТРК (МРК, ГНК) : 11 [17:25:26]line Товар: 2710194240 [17:25:26]line D-ENERGY Дт-К-2 [17:25:26]line 12.960 * 77.20 [17:25:26]line = 1000.51 [17:25:26]line НДС 12% НСП 1% [17:25:26]line > о реализуемом товаре [17:25:26]line ОКРУГЛЕНИЕ: -0.51 [17:25:26]line ИТОГО: 1000.00 [17:25:26]line Внесено: 1000.00 [17:25:26]line СДАЧА: 0.00 [17:25:26]line НСП 1% : 8.85 [17:25:26]line НДС 12% : 106.25 [17:25:26]line Наличными: 1000.00 [17:25:26]line Безнал.: 0.00 [17:25:26]line Место: АЗС № 85 "Партнер Нефть" [17:25:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:25:26]line СНО: Общий режим [17:25:26]line Чек 324 21.10.2024 17:25 [17:25:26]line Смена: 194 ФФД: 1.0 [17:25:26]line ЗНМ: 0300000167 [17:25:26]line РНМ: 0000000000156251 [17:25:26]line Версия ККМ: v1.0 [17:25:26]line ФМ: 0000000000963346 [17:25:26]line ФД: 69934 [17:25:26]line ФПД: 60210156098205 [17:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69934&fm=60210156098205&tin=02508201610067®Number=0000000000156251&sum=100000 [17:25:26]written 0, free lines is 4095 [17:25:27]Write to MH i2c: 01 00 00 98 0E A6 [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: 01 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: 01 07 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: 01 07 00 98 0E 00 00 00 00 00 F2 0C AB [17:25:27]RasterBufferAndPrint [17:25:27]line [17:25:27]line [17:25:27]line [17:25:27]line [17:25:27]line [17:25:27]written 0, free lines is 3320 [17:25:27]MH_Cut [17:25:27]Write to MH i2c: D1 01 00 9F 0E 01 7F [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: D1 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: D1 01 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: D1 01 00 9F 0E 00 7E [17:25:27]Write to MH i2c: 01 00 00 A0 0E AE [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]*** Cut start [17:25:27]*** Partial cut [17:25:27]*** CUTSNS_PIN = 1 [17:25:28]*** CUTSNS_PIN = 0 [17:25:28]*** Brake cut motor [17:25:28]Read from MH i2c: 01 [17:25:28]MH_I2C_Read... [17:25:28]*** Stop cut motor [17:25:28]*** Cut end [17:25:28]Read from MH i2c: 01 07 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 FF 0F C3 [17:25:28]process_action close_receipt done [17:25:28]requested_data is exist [17:25:28]produce_requested_data [17:25:28]requested_item fm.sn is exist - process it [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 11 00 00 [17:25:28]Write to MH i2c: E2 08 00 A1 0E 80 11 00 00 00 00 00 00 29 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 17 00 A1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [17:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:25:28]wFMCommunicate OK [17:25:28]requested_item fd.num is exist - process it [17:25:28]SAM_PROTO_GetFieldsCounters [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 13 00 00 [17:25:28]Write to MH i2c: E2 08 00 A2 0E 80 13 00 00 00 00 00 00 2C [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 62 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 62 00 A2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_GetFieldsCounters done [17:25:28]requested_item shift.num is exist - process it [17:25:28]requested_item shift.opened is exist - process it [17:25:28]req_shift_opened [17:25:28]FM_GetShiftState [17:25:28]SAM_PROTO_GetShiftState [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 13 01 00 [17:25:28]Write to MH i2c: E2 08 00 A3 0E 80 13 01 00 00 00 00 00 2E [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0E 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 0E 00 A3 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5A [17:25:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_GetShiftState done [17:25:28]FM_GetShiftState done [17:25:28]req_shift_opened done [17:25:28]requested_item shift.open_date is exist - process it [17:25:28]req_shift_open_date [17:25:28]req_shift_open_date done [17:25:28]produce_requested_data done [17:25:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69934,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:25:28]process_action_free close_receipt [17:25:28]json_value_free [17:25:28]json_value_free done [17:25:28]process_json_proto returns [17:25:28]Send response to host [17:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69934,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:25:28]free response buf [17:25:28]execute_script done [17:25:28]execute_script returns [17:25:28]free content buf [17:25:28]Sock 9.Close socket [17:25:28]Sock 9.Thread stoped [17:26:18]ConnectInit Can't connect to host [17:26:18]CommunicateWithHost connect error [17:26:18]CommunicateWithHost err = -1 [17:26:18]OFD Sender: Server communicate error [17:26:18]OFD Sender: Processing packet 69933 [packets to send 19, broken 17] [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00069933 [17:26:18]OFD Sender: To server: pG, [17:26:18]CommunicateWithHost lk.salyk.kg:30040 [17:26:18]ConnectInit lk.salyk.kg [17:26:19]Connected sock=9 [17:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 52 CB 0D 01 6B BB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 43 01 00 00 F4 03 04 00 34 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 11 01 00 35 04 06 00 2F 57 C0 EA DB 86 4B 72 A2 84 FF 20 5F 1C [17:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 02 17 47 00 5D 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 39 36 33 33 34 36 10 04 04 00 2D 11 01 00 F4 03 04 00 5D 38 16 67 B6 04 01 00 00 DB 66 CC E2 E1 F8 AF 62 [17:26:19]CommunicateWithHost err = 0 [17:26:19]CheckOFDResponse [17:26:19]1017 (14) - 77093643461234 [17:26:19]1041 (16) - 0000000000963346 [17:26:19]1040 (4) - 69933 [17:26:19]1012 (4) - 21.10.2024 11:17 [17:26:19]1206 (1) - 0 [17:26:19]OFD Sender: Remove packet 69933 [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00069933 [17:26:19]NVStorageDeleteData [17:26:19]OFD Sender: Processing packet 69934 [packets to send 18, broken 17] [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00069934 [17:26:19]OFD Sender: To server: pG, [17:26:19]CommunicateWithHost lk.salyk.kg:30040 [17:26:19]ConnectInit lk.salyk.kg [17:26:19]Connected sock=9 [17:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1B 9A 0D 01 B5 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 01 00 00 F4 03 04 00 85 8E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 11 01 00 35 04 06 00 36 C2 C4 F7 52 9D 2F 93 4E 16 9B CB 50 0B [17:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 31 AC 47 00 2E 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 39 36 33 33 34 36 10 04 04 00 2E 11 01 00 F4 03 04 00 5D 38 16 67 B6 04 01 00 00 FB A2 14 13 11 F9 93 04 [17:26:20]CommunicateWithHost err = 0 [17:26:20]CheckOFDResponse [17:26:20]1017 (14) - 77093643461234 [17:26:20]1041 (16) - 0000000000963346 [17:26:20]1040 (4) - 69934 [17:26:20]1012 (4) - 21.10.2024 11:17 [17:26:20]1206 (1) - 0 [17:26:20]OFD Sender: Remove packet 69934 [17:26:20]ProducePacketName [17:26:20]name=ofd_packets/00069934 [17:26:20]NVStorageDeleteData [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:49]accept exits with 7 [17:30:49]New connection [17:30:49]New thread 3067170148 created [17:30:49]Thread 3067026788 joined [17:30:49]Waiting for new connection... [17:30:49] Sock 7.Parse request [17:30:49]Sock 7.Check first char [17:30:49]Sock 7.First char is OK [17:30:49]request: POST /json_proto HTTP/1.0 [17:30:49]Method: POST [17:30:49]URL: /json_proto [17:30:49]Method is POST - this is cgi request [17:30:49]url: /json_proto [17:30:49]query_string will be loaded in cgi processing [17:30:49]execute_cgi json_proto POST (null) [17:30:49]execute_cgi path=json_proto method=POST [17:30:49]POST find Content-Length [17:30:49]Host: 172.17.50.3:8080 [17:30:49]Content-Length: 776 [17:30:49]Content-Type: application/json [17:30:49] [17:30:49]POST finish read [17:30:49]Found Content-Length = 776 [17:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:49]execute_script... [17:30: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)2885694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:49]POST & json_proto [17:30:49]process_json_proto [17:30:49]json parsed OK: [17:30:49]protocol is kg_v1.0 [17:30:49]action value=close_receipt [17:30:49]process_action close_receipt [17:30:49]cmd_close_receipt [17:30:49]MH_GetDate [17:30:49]Write to MH i2c: F0 00 00 A4 0E A1 [17:30:49]Write i2c OK [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: F0 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: F0 09 00 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: F0 09 00 A4 0E 00 CA 8F 16 67 6B 98 1E 66 07 [17:30:49]GetLastDocTimeStamp 1729531525 [17:30:49]current date 1729531850 [17:30:49]FM_GetShiftState [17:30:49]SAM_PROTO_GetShiftState [17:30:49]wFMCommunicate request_size=4 [17:30:49]MH_SAM_APDU [17:30:49]CAPDU: 80 13 01 00 [17:30:49]Write to MH i2c: E2 08 00 A5 0E 80 13 01 00 00 00 00 00 30 [17:30:49]Write i2c OK [17:30:49]MH_I2C_Read... [17:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:49]Read from MH i2c: E2 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 0E 00 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 0E 00 A5 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5C [17:30:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:30:49]wFMCommunicate OK [17:30:49]SAM_PROTO_GetShiftState done [17:30:49]FM_GetShiftState done [17:30:49]opened in 1729469703 [17:30:49]opened+sec_in_day 1729556103 [17:30:49]quantity*price = 200025 [17:30:49]sum+1 = 200026 [17:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 325 21.10.2024 17:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69935 ФПД: 186207420578258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69935&fm=186207420578258&tin=02508201610067®Number=0000000000156251&sum=200025 [17:30:51]StoreToDocumentArchive [17:30:51]shift 194 fd 69935 [17:30:51]save to /storage/0194/doc_00069935 [17:30:51]save last doc name /storage/0194/doc_00069935 to /storage/kkm_last_doc_name [17:30:51]save OK [17:30:51]Clear old archive folders... [17:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:30:51]tlvbuf is 01148400 [17:30:51]SAM_PROTO_ClearQueue [17:30:51]wFMCommunicate request_size=4 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 09 00 00 [17:30:51]Write to MH i2c: E2 08 00 B2 0E 80 09 00 00 00 00 00 00 32 [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [17:30:51]RAPDU: 90 00 [17:30:51]wFMCommunicate OK [17:30:51]SAM_PROTO_ClearQueue done [17:30:51]KKMCreateOFDPacket [17:30:51]OFDProtocolAddRootSTLVToBuf [17:30:51]FM_MakeSignedData [17:30:51]FM_MakeSignedData [17:30:51]SAM_PROTO_SignData [17:30:51]wFMCommunicate request_size=4 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 0D 01 02 [17:30:51]Write to MH i2c: E2 08 00 B3 0E 80 0D 01 02 00 00 00 00 3A [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [17:30:51]RAPDU: 90 00 [17:30:51]wFMCommunicate OK [17:30:51]wFMCommunicate request_size=255 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CA 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 11 01 [17:30:51]Write to MH i2c: E2 02 01 B4 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CA 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 11 01 00 00 21 [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [17:30:51]RAPDU: 90 00 [17:30:51]wFMCommunicate OK [17:30:51]wFMCommunicate request_size=16 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A9 5A CB 28 79 D2 [17:30:51]Write to MH i2c: E2 13 00 B5 0E 80 0D 02 02 0B 00 00 35 04 06 00 A9 5A CB 28 79 D2 00 00 D3 [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [17:30:51]RAPDU: 90 00 [17:30:51]wFMCommunicate OK [17:30:51]wFMCommunicate request_size=4 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 0D 03 02 [17:30:51]Write to MH i2c: E2 08 00 B6 0E 80 0D 03 02 00 00 00 00 3F [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 0B 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 0B 00 B6 0E 00 EA EF 5D 2F 19 72 1A 6F 90 00 B9 [17:30:51]RAPDU: EA EF 5D 2F 19 72 1A 6F 90 00 [17:30:51]wFMCommunicate OK [17:30:51]SAM_PROTO_SignData done [17:30:51]FM_MakeSignedData done [17:30:51]CreateOFDProtocolMessage [17:30:51]wFMCommunicate request_size=4 [17:30:51]MH_SAM_APDU [17:30:51]CAPDU: 80 11 00 00 [17:30:51]Write to MH i2c: E2 08 00 B7 0E 80 11 00 00 00 00 00 00 3F [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:51]Read from MH i2c: E2 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 17 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: E2 17 00 B7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [17:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:30:51]wFMCommunicate OK [17:30:51]CreateOFDProtocolMessage done [17:30:51]OFDSenderStorePacket 69935 [17:30:51]StoreOFDPacket docnum=69935 [17:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 94 A2 0D 01 D7 CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CA 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 11 01 00 35 04 06 00 A9 5A CB 28 79 D2 EA EF 5D 2F 19 72 1A 6F [17:30:51]CheckFolder [17:30:51]dirname=/storage/ofd_packets [17:30:51]CheckFolder done [17:30:51]ProducePacketName [17:30:51]name=ofd_packets/00069935 [17:30:51]NVStorageSaveData ofd_packets/00069935 [17:30:51]File name is /storage/ofd_packets/00069935 [17:30:51]Write 307 bytes [17:30:51]NVStorageSaveData done [17:30:51]OFDSenderStorePacket done [17:30:51]KKMCreateOFDPacket done [17:30:51]NVStorageSaveData kkm_last_timestamp [17:30:51]File name is /storage/kkm_last_timestamp [17:30:51]Write 4 bytes [17:30:51]NVStorageSaveData done [17:30:51]ExternCall_PrintAddStr [17:30:51]wPrintStart [17:30:51]Write to MH i2c: 01 00 00 B8 0E C6 [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 07 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 07 00 B8 0E 00 00 00 00 00 FF 0F DB [17:30:51]RasterBufferAndPrint [17:30:51]line Счет N : (1)2885694 [17:30:51]line ИНН: 02508201610067 [17:30:51]line Контрольно-Кассовый Чек [17:30:51]line ПРОДАЖА [17:30:51]line ТРК (МРК, ГНК) : 11 [17:30:51]line Товар: 2710194240 [17:30:51]line D-ENERGY Дт-К-2 [17:30:51]line 25.910 * 77.20 [17:30:51]line = 2000.25 [17:30:51]line НДС 12% НСП 1% [17:30:51]line > о реализуемом товаре [17:30:51]line ИТОГО: 2000.25 [17:30:51]line НСП 1% : 17.70 [17:30:51]line НДС 12% : 212.42 [17:30:51]line Наличными: 0.00 [17:30:51]line Безнал.: 2000.25 [17:30:51]line Место: АЗС № 85 "Партнер Нефть" [17:30:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:30:51]line СНО: Общий режим [17:30:51]line Чек 325 21.10.2024 17:30 [17:30:51]line Смена: 194 ФФД: 1.0 [17:30:51]line ЗНМ: 0300000167 [17:30:51]line РНМ: 0000000000156251 [17:30:51]line Версия ККМ: v1.0 [17:30:51]line Платежная система: Mbank [17:30:51]line ФМ: 0000000000963346 [17:30:51]line ФД: 69935 [17:30:51]line ФПД: 186207420578258 [17:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173050&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69935&fm=186207420578258&tin=02508201610067®Number=0000000000156251&sum=200025 [17:30:51]OFD Sender: Processing packet 69935 [packets to send 18, broken 17] [17:30:51]ProducePacketName [17:30:51]name=ofd_packets/00069935 [17:30:51]OFD Sender: To server: pG, [17:30:51]CommunicateWithHost lk.salyk.kg:30040 [17:30:51]ConnectInit lk.salyk.kg [17:30:51]written 0, free lines is 4095 [17:30:51]Connected sock=10 [17:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 94 A2 0D 01 D7 CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 59 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 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 CA 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 11 01 00 35 04 06 00 A9 5A CB 28 79 D2 EA EF 5D 2F 19 72 1A 6F [17:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 46 56 47 00 43 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 11 01 00 F4 03 04 00 6E 39 16 67 B6 04 01 00 00 5D 4E 0B 6F 09 6C 00 E7 [17:30:52]CommunicateWithHost err = 0 [17:30:52]CheckOFDResponse [17:30:52]1017 (14) - 77093643461234 [17:30:52]1041 (16) - 0000000000963346 [17:30:52]1040 (4) - 69935 [17:30:52]1012 (4) - 21.10.2024 11:22 [17:30:52]1206 (1) - 0 [17:30:52]OFD Sender: Remove packet 69935 [17:30:52]ProducePacketName [17:30:52]name=ofd_packets/00069935 [17:30:52]NVStorageDeleteData [17:30:52]Write to MH i2c: 01 00 00 E1 0E EF [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: 01 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: 01 07 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: 01 07 00 E1 0E 00 00 00 00 00 2C 0D 2F [17:30:52]RasterBufferAndPrint [17:30:52]line [17:30:52]line [17:30:52]line [17:30:52]line [17:30:52]line [17:30:52]written 0, free lines is 3378 [17:30:52]MH_Cut [17:30:52]Write to MH i2c: D1 01 00 E8 0E 01 C8 [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: D1 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: D1 01 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: D1 01 00 E8 0E 00 C7 [17:30:52]Write to MH i2c: 01 00 00 E9 0E F7 [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]OFD Sender: No OFD packet to send [17:30:53]*** Cut start [17:30:53]*** Partial cut [17:30:53]*** CUTSNS_PIN = 1 [17:30:53]*** CUTSNS_PIN = 0 [17:30:53]*** Brake cut motor [17:30:53]Read from MH i2c: 01 [17:30:53]MH_I2C_Read... [17:30:53]*** Stop cut motor [17:30:53]*** Cut end [17:30:53]Read from MH i2c: 01 07 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 FF 0F 0C [17:30:53]process_action close_receipt done [17:30:53]requested_data is exist [17:30:53]produce_requested_data [17:30:53]requested_item fm.sn is exist - process it [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 11 00 00 [17:30:53]Write to MH i2c: E2 08 00 EA 0E 80 11 00 00 00 00 00 00 72 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 17 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 17 00 EA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [17:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:30:53]wFMCommunicate OK [17:30:53]requested_item fd.num is exist - process it [17:30:53]SAM_PROTO_GetFieldsCounters [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 13 00 00 [17:30:53]Write to MH i2c: E2 08 00 EB 0E 80 13 00 00 00 00 00 00 75 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 62 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 62 00 EB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:53]wFMCommunicate OK [17:30:53]SAM_PROTO_GetFieldsCounters done [17:30:53]requested_item shift.num is exist - process it [17:30:53]requested_item shift.opened is exist - process it [17:30:53]req_shift_opened [17:30:53]FM_GetShiftState [17:30:53]SAM_PROTO_GetShiftState [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 13 01 00 [17:30:53]Write to MH i2c: E2 08 00 EC 0E 80 13 01 00 00 00 00 00 77 [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0E 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0E 00 EC 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A3 [17:30:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:30:53]wFMCommunicate OK [17:30:53]SAM_PROTO_GetShiftState done [17:30:53]FM_GetShiftState done [17:30:53]req_shift_opened done [17:30:53]requested_item shift.open_date is exist - process it [17:30:53]req_shift_open_date [17:30:53]req_shift_open_date done [17:30:53]produce_requested_data done [17:30:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69935,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:30:53]process_action_free close_receipt [17:30:53]json_value_free [17:30:53]json_value_free done [17:30:53]process_json_proto returns [17:30:53]Send response to host [17:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69935,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:30:53]free response buf [17:30:53]execute_script done [17:30:53]execute_script returns [17:30:53]free content buf [17:30:53]Sock 7.Close socket [17:30:53]Sock 7.Thread stoped [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]accept exits with 9 [17:31:42]New connection [17:31:42]New thread 3067026788 created [17:31:42]Thread 3067170148 joined [17:31:42]Waiting for new connection... [17:31:42] Sock 9.Parse request [17:31:42]Sock 9.Check first char [17:31:42]Sock 9.First char is OK [17:31:42]request: POST /json_proto HTTP/1.0 [17:31:42]Method: POST [17:31:42]URL: /json_proto [17:31:42]Method is POST - this is cgi request [17:31:42]url: /json_proto [17:31:42]query_string will be loaded in cgi processing [17:31:42]execute_cgi json_proto POST (null) [17:31:42]execute_cgi path=json_proto method=POST [17:31:42]POST find Content-Length [17:31:42]Host: 172.17.50.3:8080 [17:31:42]Content-Length: 683 [17:31:42]Content-Type: application/json [17:31:42] [17:31:42]POST finish read [17:31:42]Found Content-Length = 683 [17:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885695", "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" ] } } [17:31:42]execute_script... [17:31:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885695", "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" ] } } [17:31:42]POST & json_proto [17:31:42]process_json_proto [17:31:42]json parsed OK: [17:31:42]protocol is kg_v1.0 [17:31:42]action value=close_receipt [17:31:42]process_action close_receipt [17:31:42]cmd_close_receipt [17:31:42]MH_GetDate [17:31:42]Write to MH i2c: F0 00 00 ED 0E EA [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 09 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 09 00 ED 0E 00 FF 8F 16 67 6B 98 1E 66 85 [17:31:42]GetLastDocTimeStamp 1729531850 [17:31:42]current date 1729531903 [17:31:42]FM_GetShiftState [17:31:42]SAM_PROTO_GetShiftState [17:31:42]wFMCommunicate request_size=4 [17:31:42]MH_SAM_APDU [17:31:42]CAPDU: 80 13 01 00 [17:31:42]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]OFD Sender: No OFD packet to send [17:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:42]Read from MH i2c: E2 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 0E 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [17:31:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:31:42]wFMCommunicate OK [17:31:42]SAM_PROTO_GetShiftState done [17:31:42]FM_GetShiftState done [17:31:42]opened in 1729469703 [17:31:42]opened+sec_in_day 1729556103 [17:31:42]quantity*price = 100021 [17:31:42]sum+1 = 100023 [17:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 326 21.10.2024 17:31 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69936 ФПД: 22209553211292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69936&fm=22209553211292&tin=02508201610067®Number=0000000000156251&sum=100000 [17:31:43]StoreToDocumentArchive [17:31:43]shift 194 fd 69936 [17:31:43]save to /storage/0194/doc_00069936 [17:31:43]save last doc name /storage/0194/doc_00069936 to /storage/kkm_last_doc_name [17:31:43]save OK [17:31:43]Clear old archive folders... [17:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:43]tlvbuf is 0110F5D0 [17:31:43]SAM_PROTO_ClearQueue [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 09 00 00 [17:31:43]Write to MH i2c: E2 08 00 FB 0E 80 09 00 00 00 00 00 00 7B [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [17:31:43]RAPDU: 90 00 [17:31:43]wFMCommunicate OK [17:31:43]SAM_PROTO_ClearQueue done [17:31:43]KKMCreateOFDPacket [17:31:43]OFDProtocolAddRootSTLVToBuf [17:31:43]FM_MakeSignedData [17:31:43]FM_MakeSignedData [17:31:43]SAM_PROTO_SignData [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 0D 01 02 [17:31:43]Write to MH i2c: E2 08 00 FC 0E 80 0D 01 02 00 00 00 00 83 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 FC 0E 00 90 00 7E [17:31:44]RAPDU: 90 00 [17:31:44]wFMCommunicate OK [17:31:44]wFMCommunicate request_size=255 [17:31:44]MH_SAM_APDU [17:31:44]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 46 01 00 00 F4 03 04 00 FF 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 11 01 00 35 04 06 00 14 [17:31:44]Write to MH i2c: E2 02 01 FD 0E 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 46 01 00 00 F4 03 04 00 FF 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 11 01 00 35 04 06 00 14 00 00 93 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 FD 0E 00 90 00 7F [17:31:44]RAPDU: 90 00 [17:31:44]wFMCommunicate OK [17:31:44]wFMCommunicate request_size=10 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 0D 02 02 05 33 10 87 9F 9C [17:31:44]Write to MH i2c: E2 0D 00 FE 0E 80 0D 02 02 05 00 33 10 87 9F 9C 00 00 95 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 FE 0E 00 90 00 80 [17:31:44]RAPDU: 90 00 [17:31:44]wFMCommunicate OK [17:31:44]wFMCommunicate request_size=4 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 0D 03 02 [17:31:44]Write to MH i2c: E2 08 00 FF 0E 80 0D 03 02 00 00 00 00 88 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0B 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0B 00 FF 0E 00 18 CE 2D 1B 31 A2 68 37 90 00 29 [17:31:44]RAPDU: 18 CE 2D 1B 31 A2 68 37 90 00 [17:31:44]wFMCommunicate OK [17:31:44]SAM_PROTO_SignData done [17:31:44]FM_MakeSignedData done [17:31:44]CreateOFDProtocolMessage [17:31:44]wFMCommunicate request_size=4 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 11 00 00 [17:31:44]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 17 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 17 00 00 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [17:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:31:44]wFMCommunicate OK [17:31:44]CreateOFDProtocolMessage done [17:31:44]OFDSenderStorePacket 69936 [17:31:44]StoreOFDPacket docnum=69936 [17:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 A7 07 01 7E E6 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 46 01 00 00 F4 03 04 00 FF 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 11 01 00 35 04 06 00 14 33 10 87 9F 9C 18 CE 2D 1B 31 A2 68 37 [17:31:44]CheckFolder [17:31:44]dirname=/storage/ofd_packets [17:31:44]CheckFolder done [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00069936 [17:31:44]NVStorageSaveData ofd_packets/00069936 [17:31:44]File name is /storage/ofd_packets/00069936 [17:31:44]Write 301 bytes [17:31:44]NVStorageSaveData done [17:31:44]OFDSenderStorePacket done [17:31:44]KKMCreateOFDPacket done [17:31:44]NVStorageSaveData kkm_last_timestamp [17:31:44]File name is /storage/kkm_last_timestamp [17:31:44]Write 4 bytes [17:31:44]NVStorageSaveData done [17:31:44]ExternCall_PrintAddStr [17:31:44]wPrintStart [17:31:44]Write to MH i2c: 01 00 00 01 0F 10 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [17:31:44]RasterBufferAndPrint [17:31:44]line Счет N : (1)2885695 [17:31:44]line ИНН: 02508201610067 [17:31:44]line Контрольно-Кассовый Чек [17:31:44]line ПРОДАЖА [17:31:44]line ТРК (МРК, ГНК) : 43 [17:31:44]line Товар: 2710124500 [17:31:44]line Аи-95-К-5 [17:31:44]line 13.480 * 74.20 [17:31:44]line = 1000.22 [17:31:44]line НДС 12% НСП 1% [17:31:44]line > о реализуемом товаре [17:31:44]line ОКРУГЛЕНИЕ: -0.22 [17:31:44]line ИТОГО: 1000.00 [17:31:44]line Внесено: 1000.00 [17:31:44]line СДАЧА: 0.00 [17:31:44]line НСП 1% : 8.85 [17:31:44]line НДС 12% : 106.22 [17:31:44]line Наличными: 1000.00 [17:31:44]line Безнал.: 0.00 [17:31:44]line Место: АЗС № 85 "Партнер Нефть" [17:31:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:31:44]line СНО: Общий режим [17:31:44]line Чек 326 21.10.2024 17:31 [17:31:44]line Смена: 194 ФФД: 1.0 [17:31:44]line ЗНМ: 0300000167 [17:31:44]line РНМ: 0000000000156251 [17:31:44]line Версия ККМ: v1.0 [17:31:44]line ФМ: 0000000000963346 [17:31:44]line ФД: 69936 [17:31:44]line ФПД: 22209553211292 [17:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69936&fm=22209553211292&tin=02508201610067®Number=0000000000156251&sum=100000 [17:31:44]written 0, free lines is 4095 [17:31:44]OFD Sender: Processing packet 69936 [packets to send 18, broken 17] [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00069936 [17:31:44]OFD Sender: To server: pG, [17:31:44]CommunicateWithHost lk.salyk.kg:30040 [17:31:44]ConnectInit lk.salyk.kg [17:31:44]Connected sock=10 [17:31:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 A7 07 01 7E E6 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 46 01 00 00 F4 03 04 00 FF 8F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 11 01 00 35 04 06 00 14 33 10 87 9F 9C 18 CE 2D 1B 31 A2 68 37 [17:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 21 47 00 0A 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 11 01 00 F4 03 04 00 A2 39 16 67 B6 04 01 00 00 3C 8A D0 CD FD 90 78 09 [17:31:44]CommunicateWithHost err = 0 [17:31:44]CheckOFDResponse [17:31:44]1017 (14) - 77093643461234 [17:31:44]1041 (16) - 0000000000963346 [17:31:44]1040 (4) - 69936 [17:31:44]1012 (4) - 21.10.2024 11:23 [17:31:44]1206 (1) - 0 [17:31:44]OFD Sender: Remove packet 69936 [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00069936 [17:31:44]NVStorageDeleteData [17:31:44]Write to MH i2c: 01 00 00 2C 0F 3B [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 FE 0C 4C [17:31:44]RasterBufferAndPrint [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]written 0, free lines is 3335 [17:31:44]MH_Cut [17:31:44]Write to MH i2c: D1 01 00 33 0F 01 14 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 01 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 01 00 33 0F 00 13 [17:31:44]Write to MH i2c: 01 00 00 34 0F 43 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:45]OFD Sender: No OFD packet to send [17:31:45]*** Cut start [17:31:45]*** Partial cut [17:31:45]*** CUTSNS_PIN = 1 [17:31:45]*** CUTSNS_PIN = 0 [17:31:45]*** Brake cut motor [17:31:46]Read from MH i2c: 01 [17:31:46]MH_I2C_Read... [17:31:46]*** Stop cut motor [17:31:46]*** Cut end [17:31:46]Read from MH i2c: 01 07 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [17:31:46]process_action close_receipt done [17:31:46]requested_data is exist [17:31:46]produce_requested_data [17:31:46]requested_item fm.sn is exist - process it [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 11 00 00 [17:31:46]Write to MH i2c: E2 08 00 35 0F 80 11 00 00 00 00 00 00 BE [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 35 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [17:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:31:46]wFMCommunicate OK [17:31:46]requested_item fd.num is exist - process it [17:31:46]SAM_PROTO_GetFieldsCounters [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 13 00 00 [17:31:46]Write to MH i2c: E2 08 00 36 0F 80 13 00 00 00 00 00 00 C1 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 62 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 62 00 36 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [17:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_GetFieldsCounters done [17:31:46]requested_item shift.num is exist - process it [17:31:46]requested_item shift.opened is exist - process it [17:31:46]req_shift_opened [17:31:46]FM_GetShiftState [17:31:46]SAM_PROTO_GetShiftState [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 13 01 00 [17:31:46]Write to MH i2c: E2 08 00 37 0F 80 13 01 00 00 00 00 00 C3 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0E 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0E 00 37 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EF [17:31:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_GetShiftState done [17:31:46]FM_GetShiftState done [17:31:46]req_shift_opened done [17:31:46]requested_item shift.open_date is exist - process it [17:31:46]req_shift_open_date [17:31:46]req_shift_open_date done [17:31:46]produce_requested_data done [17:31:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69936,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:31:46]process_action_free close_receipt [17:31:46]json_value_free [17:31:46]json_value_free done [17:31:46]process_json_proto returns [17:31:46]Send response to host [17:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69936,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:31:46]free response buf [17:31:46]execute_script done [17:31:46]execute_script returns [17:31:46]free content buf [17:31:46]Sock 9.Close socket [17:31:46]Sock 9.Thread stoped [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:46]accept exits with 7 [17:35:46]New connection [17:35:46]New thread 3067170148 created [17:35:46]Thread 3067026788 joined [17:35:46]Waiting for new connection... [17:35:46] Sock 7.Parse request [17:35:46]Sock 7.Check first char [17:35:46]Sock 7.First char is OK [17:35:46]request: POST /json_proto HTTP/1.0 [17:35:46]Method: POST [17:35:46]URL: /json_proto [17:35:46]Method is POST - this is cgi request [17:35:46]url: /json_proto [17:35:46]query_string will be loaded in cgi processing [17:35:46]execute_cgi json_proto POST (null) [17:35:46]execute_cgi path=json_proto method=POST [17:35:46]POST find Content-Length [17:35:46]Host: 172.17.50.3:8080 [17:35:46]Content-Length: 683 [17:35:46]Content-Type: application/json [17:35:46] [17:35:46]POST finish read [17:35:46]Found Content-Length = 683 [17:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [17:35:46]execute_script... [17:35: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)2885697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [17:35:46]POST & json_proto [17:35:46]process_json_proto [17:35:46]json parsed OK: [17:35:46]protocol is kg_v1.0 [17:35:46]action value=close_receipt [17:35:46]process_action close_receipt [17:35:46]cmd_close_receipt [17:35:46]MH_GetDate [17:35:46]Write to MH i2c: F0 00 00 38 0F 36 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: F0 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: F0 09 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: F0 09 00 38 0F 00 F3 90 16 67 6B 98 1E 66 C6 [17:35:46]GetLastDocTimeStamp 1729531903 [17:35:46]current date 1729532147 [17:35:46]FM_GetShiftState [17:35:46]SAM_PROTO_GetShiftState [17:35:46]wFMCommunicate request_size=4 [17:35:46]MH_SAM_APDU [17:35:46]CAPDU: 80 13 01 00 [17:35:46]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:46]Read from MH i2c: E2 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 0E 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F1 [17:35:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:35:46]wFMCommunicate OK [17:35:46]SAM_PROTO_GetShiftState done [17:35:46]FM_GetShiftState done [17:35:46]opened in 1729469703 [17:35:46]opened+sec_in_day 1729556103 [17:35:46]quantity*price = 250054 [17:35:46]sum+1 = 250055 [17:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 327 21.10.2024 17:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69937 ФПД: 158470989567883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69937&fm=158470989567883&tin=02508201610067®Number=0000000000156251&sum=250000 [17:35:47]StoreToDocumentArchive [17:35:47]shift 194 fd 69937 [17:35:47]save to /storage/0194/doc_00069937 [17:35:47]save last doc name /storage/0194/doc_00069937 to /storage/kkm_last_doc_name [17:35:47]save OK [17:35:47]Clear old archive folders... [17:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:47]tlvbuf is 01111A50 [17:35:47]SAM_PROTO_ClearQueue [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 09 00 00 [17:35:47]Write to MH i2c: E2 08 00 46 0F 80 09 00 00 00 00 00 00 C7 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 46 0F 00 90 00 C9 [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]SAM_PROTO_ClearQueue done [17:35:47]KKMCreateOFDPacket [17:35:47]OFDProtocolAddRootSTLVToBuf [17:35:47]FM_MakeSignedData [17:35:47]FM_MakeSignedData [17:35:47]SAM_PROTO_SignData [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 01 02 [17:35:47]Write to MH i2c: E2 08 00 47 0F 80 0D 01 02 00 00 00 00 CF [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 47 0F 00 90 00 CA [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]wFMCommunicate request_size=255 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 47 01 00 00 F4 03 04 00 F3 90 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 11 01 00 35 04 06 00 90 [17:35:47]Write to MH i2c: E2 02 01 48 0F 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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 47 01 00 00 F4 03 04 00 F3 90 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 11 01 00 35 04 06 00 90 00 00 20 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]wFMCommunicate request_size=10 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 02 02 05 20 E7 0A 57 8B [17:35:47]Write to MH i2c: E2 0D 00 49 0F 80 0D 02 02 05 00 20 E7 0A 57 8B 00 00 CF [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 03 02 [17:35:47]Write to MH i2c: E2 08 00 4A 0F 80 0D 03 02 00 00 00 00 D4 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 0B 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 0B 00 4A 0F 00 61 4E 4F AF 63 DD 7B B1 90 00 EE [17:35:47]RAPDU: 61 4E 4F AF 63 DD 7B B1 90 00 [17:35:47]wFMCommunicate OK [17:35:47]SAM_PROTO_SignData done [17:35:47]FM_MakeSignedData done [17:35:47]CreateOFDProtocolMessage [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 11 00 00 [17:35:47]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 17 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [17:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:35:47]wFMCommunicate OK [17:35:47]CreateOFDProtocolMessage done [17:35:47]OFDSenderStorePacket 69937 [17:35:47]StoreOFDPacket docnum=69937 [17:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 CE 07 01 9A 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 47 01 00 00 F4 03 04 00 F3 90 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 11 01 00 35 04 06 00 90 20 E7 0A 57 8B 61 4E 4F AF 63 DD 7B B1 [17:35:47]CheckFolder [17:35:47]dirname=/storage/ofd_packets [17:35:47]CheckFolder done [17:35:47]ProducePacketName [17:35:47]name=ofd_packets/00069937 [17:35:47]NVStorageSaveData ofd_packets/00069937 [17:35:47]File name is /storage/ofd_packets/00069937 [17:35:47]Write 301 bytes [17:35:47]NVStorageSaveData done [17:35:47]OFDSenderStorePacket done [17:35:47]KKMCreateOFDPacket done [17:35:47]NVStorageSaveData kkm_last_timestamp [17:35:47]File name is /storage/kkm_last_timestamp [17:35:47]Write 4 bytes [17:35:47]NVStorageSaveData done [17:35:47]ExternCall_PrintAddStr [17:35:47]wPrintStart [17:35:47]Write to MH i2c: 01 00 00 4C 0F 5B [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 07 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 FF 0F 70 [17:35:47]RasterBufferAndPrint [17:35:47]line Счет N : (1)2885697 [17:35:47]line ИНН: 02508201610067 [17:35:47]line Контрольно-Кассовый Чек [17:35:47]line ПРОДАЖА [17:35:47]line ТРК (МРК, ГНК) : 13 [17:35:47]line Товар: 2710124500 [17:35:47]line Аи-95-К-5 [17:35:47]line 33.700 * 74.20 [17:35:47]line = 2500.54 [17:35:47]line НДС 12% НСП 1% [17:35:47]line > о реализуемом товаре [17:35:47]line ОКРУГЛЕНИЕ: -0.54 [17:35:47]line ИТОГО: 2500.00 [17:35:47]line Внесено: 2500.00 [17:35:47]line СДАЧА: 0.00 [17:35:47]line НСП 1% : 22.13 [17:35:47]line НДС 12% : 265.54 [17:35:47]line Наличными: 2500.00 [17:35:47]line Безнал.: 0.00 [17:35:47]line Место: АЗС № 85 "Партнер Нефть" [17:35:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:35:47]line СНО: Общий режим [17:35:47]line Чек 327 21.10.2024 17:35 [17:35:47]line Смена: 194 ФФД: 1.0 [17:35:47]line ЗНМ: 0300000167 [17:35:47]line РНМ: 0000000000156251 [17:35:47]line Версия ККМ: v1.0 [17:35:47]line ФМ: 0000000000963346 [17:35:47]line ФД: 69937 [17:35:47]line ФПД: 158470989567883 [17:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173547&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69937&fm=158470989567883&tin=02508201610067®Number=0000000000156251&sum=250000 [17:35:48]OFD Sender: Processing packet 69937 [packets to send 18, broken 17] [17:35:48]ProducePacketName [17:35:48]name=ofd_packets/00069937 [17:35:48]OFD Sender: To server: pG, [17:35:48]CommunicateWithHost lk.salyk.kg:30040 [17:35:48]ConnectInit lk.salyk.kg [17:35:48]written 0, free lines is 4095 [17:35:48]Connected sock=10 [17:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 CE 07 01 9A 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 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 47 01 00 00 F4 03 04 00 F3 90 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 11 01 00 35 04 06 00 90 20 E7 0A 57 8B 61 4E 4F AF 63 DD 7B B1 [17:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2A D4 47 00 CB 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 11 01 00 F4 03 04 00 96 3A 16 67 B6 04 01 00 00 5F E9 08 04 C2 7F 8E 3E [17:35:48]CommunicateWithHost err = 0 [17:35:48]CheckOFDResponse [17:35:48]1017 (14) - 77093643461234 [17:35:48]1041 (16) - 0000000000963346 [17:35:48]1040 (4) - 69937 [17:35:48]1012 (4) - 21.10.2024 11:27 [17:35:48]1206 (1) - 0 [17:35:48]OFD Sender: Remove packet 69937 [17:35:48]ProducePacketName [17:35:48]name=ofd_packets/00069937 [17:35:48]NVStorageDeleteData [17:35:48]Write to MH i2c: 01 00 00 77 0F 86 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 07 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 F4 0C 8D [17:35:48]RasterBufferAndPrint [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]written 0, free lines is 3322 [17:35:48]MH_Cut [17:35:48]Write to MH i2c: D1 01 00 7E 0F 01 5F [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 01 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 01 00 7E 0F 00 5E [17:35:48]Write to MH i2c: 01 00 00 7F 0F 8E [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]OFD Sender: No OFD packet to send [17:35:49]*** Cut start [17:35:49]*** Partial cut [17:35:49]*** CUTSNS_PIN = 1 [17:35:49]*** CUTSNS_PIN = 0 [17:35:49]*** Brake cut motor [17:35:49]Read from MH i2c: 01 [17:35:49]MH_I2C_Read... [17:35:49]*** Stop cut motor [17:35:49]*** Cut end [17:35:49]Read from MH i2c: 01 07 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [17:35:49]process_action close_receipt done [17:35:49]requested_data is exist [17:35:49]produce_requested_data [17:35:49]requested_item fm.sn is exist - process it [17:35:49]wFMCommunicate request_size=4 [17:35:49]MH_SAM_APDU [17:35:49]CAPDU: 80 11 00 00 [17:35:49]Write to MH i2c: E2 08 00 80 0F 80 11 00 00 00 00 00 00 09 [17:35:49]Write i2c OK [17:35:49]MH_I2C_Read... [17:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:49]Read from MH i2c: E2 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 17 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 17 00 80 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [17:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:35:49]wFMCommunicate OK [17:35:49]requested_item fd.num is exist - process it [17:35:49]SAM_PROTO_GetFieldsCounters [17:35:49]wFMCommunicate request_size=4 [17:35:49]MH_SAM_APDU [17:35:49]CAPDU: 80 13 00 00 [17:35:49]Write to MH i2c: E2 08 00 81 0F 80 13 00 00 00 00 00 00 0C [17:35:49]Write i2c OK [17:35:49]MH_I2C_Read... [17:35:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:50]Read from MH i2c: E2 [17:35:50]MH_I2C_Read... [17:35:50]Read from MH i2c: E2 62 00 [17:35:50]MH_I2C_Read... [17:35:50]Read from MH i2c: E2 62 00 81 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:35:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:50]wFMCommunicate OK [17:35:50]SAM_PROTO_GetFieldsCounters done [17:35:50]requested_item shift.num is exist - process it [17:35:50]requested_item shift.opened is exist - process it [17:35:50]req_shift_opened [17:35:50]FM_GetShiftState [17:35:50]SAM_PROTO_GetShiftState [17:35:50]wFMCommunicate request_size=4 [17:35:50]MH_SAM_APDU [17:35:50]CAPDU: 80 13 01 00 [17:35:50]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [17:35:50]Write i2c OK [17:35:50]MH_I2C_Read... [17:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:50]Read from MH i2c: E2 [17:35:50]MH_I2C_Read... [17:35:50]Read from MH i2c: E2 0E 00 [17:35:50]MH_I2C_Read... [17:35:50]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3A [17:35:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:35:50]wFMCommunicate OK [17:35:50]SAM_PROTO_GetShiftState done [17:35:50]FM_GetShiftState done [17:35:50]req_shift_opened done [17:35:50]requested_item shift.open_date is exist - process it [17:35:50]req_shift_open_date [17:35:50]req_shift_open_date done [17:35:50]produce_requested_data done [17:35:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69937,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:35:50]process_action_free close_receipt [17:35:50]json_value_free [17:35:50]json_value_free done [17:35:50]process_json_proto returns [17:35:50]Send response to host [17:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69937,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:35:50]free response buf [17:35:50]execute_script done [17:35:50]execute_script returns [17:35:50]free content buf [17:35:50]Sock 7.Close socket [17:35:50]Sock 7.Thread stoped [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:13]accept exits with 9 [17:45:13]New connection [17:45:13]New thread 3067026788 created [17:45:13]Thread 3067170148 joined [17:45:13]Waiting for new connection... [17:45:13] Sock 9.Parse request [17:45:13]Sock 9.Check first char [17:45:13]Sock 9.First char is OK [17:45:13]request: POST /json_proto HTTP/1.0 [17:45:13]Method: POST [17:45:13]URL: /json_proto [17:45:13]Method is POST - this is cgi request [17:45:13]url: /json_proto [17:45:13]query_string will be loaded in cgi processing [17:45:13]execute_cgi json_proto POST (null) [17:45:13]execute_cgi path=json_proto method=POST [17:45:13]POST find Content-Length [17:45:13]Host: 172.17.50.3:8080 [17:45:13]Content-Length: 767 [17:45:13]Content-Type: application/json [17:45:13] [17:45:13]POST finish read [17:45:13]Found Content-Length = 767 [17:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]execute_script... [17:45: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)2885698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:13]POST & json_proto [17:45:13]process_json_proto [17:45:13]json parsed OK: [17:45:13]protocol is kg_v1.0 [17:45:13]action value=close_receipt [17:45:13]process_action close_receipt [17:45:13]cmd_close_receipt [17:45:13]MH_GetDate [17:45:13]Write to MH i2c: F0 00 00 83 0F 81 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: F0 09 00 83 0F 00 2A 93 16 67 6B 98 1E 66 4B [17:45:13]GetLastDocTimeStamp 1729532147 [17:45:13]current date 1729532714 [17:45:13]FM_GetShiftState [17:45:13]SAM_PROTO_GetShiftState [17:45:13]wFMCommunicate request_size=4 [17:45:13]MH_SAM_APDU [17:45:13]CAPDU: 80 13 01 00 [17:45:13]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [17:45:13]Write i2c OK [17:45:13]MH_I2C_Read... [17:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:13]Read from MH i2c: E2 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 [17:45:13]MH_I2C_Read... [17:45:13]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3C [17:45:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:45:13]wFMCommunicate OK [17:45:13]SAM_PROTO_GetShiftState done [17:45:13]FM_GetShiftState done [17:45:13]opened in 1729469703 [17:45:13]opened+sec_in_day 1729556103 [17:45:13]quantity*price = 120015 [17:45:13]sum+1 = 120016 [17:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.15 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.15 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 328 21.10.2024 17:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69938 ФПД: 256512957846175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69938&fm=256512957846175&tin=02508201610067®Number=0000000000156251&sum=120015 [17:45:14]StoreToDocumentArchive [17:45:14]shift 194 fd 69938 [17:45:14]save to /storage/0194/doc_00069938 [17:45:14]save last doc name /storage/0194/doc_00069938 to /storage/kkm_last_doc_name [17:45:14]save OK [17:45:14]Clear old archive folders... [17:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:14]tlvbuf is 01139CA0 [17:45:14]SAM_PROTO_ClearQueue [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 09 00 00 [17:45:14]Write to MH i2c: E2 08 00 91 0F 80 09 00 00 00 00 00 00 12 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_ClearQueue done [17:45:14]KKMCreateOFDPacket [17:45:14]OFDProtocolAddRootSTLVToBuf [17:45:14]FM_MakeSignedData [17:45:14]FM_MakeSignedData [17:45:14]SAM_PROTO_SignData [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 0D 01 02 [17:45:14]Write to MH i2c: E2 08 00 92 0F 80 0D 01 02 00 00 00 00 1A [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [17:45:14]RAPDU: 90 00 [17:45:14]wFMCommunicate OK [17:45:14]wFMCommunicate request_size=255 [17:45:14]MH_SAM_APDU [17:45: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 32 31 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 CF 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 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 2A 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 11 01 00 35 04 06 00 E9 4C 13 BB [17:45:14]Write to MH i2c: E2 02 01 93 0F 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 32 31 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 CF 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 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 2A 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 11 01 00 35 04 06 00 E9 4C 13 BB 00 00 B1 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [17:45:15]RAPDU: 90 00 [17:45:15]wFMCommunicate OK [17:45:15]wFMCommunicate request_size=7 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 0D 02 02 02 92 9F [17:45:15]Write to MH i2c: E2 0A 00 94 0F 80 0D 02 02 02 00 92 9F 00 00 52 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [17:45:15]RAPDU: 90 00 [17:45:15]wFMCommunicate OK [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 0D 03 02 [17:45:15]Write to MH i2c: E2 08 00 95 0F 80 0D 03 02 00 00 00 00 1F [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 0B 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 0B 00 95 0F 00 4D 95 83 AB 5F 0B 18 68 90 00 1A [17:45:15]RAPDU: 4D 95 83 AB 5F 0B 18 68 90 00 [17:45:15]wFMCommunicate OK [17:45:15]SAM_PROTO_SignData done [17:45:15]FM_MakeSignedData done [17:45:15]CreateOFDProtocolMessage [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 11 00 00 [17:45:15]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 17 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [17:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:45:15]wFMCommunicate OK [17:45:15]CreateOFDProtocolMessage done [17:45:15]OFDSenderStorePacket 69938 [17:45:15]StoreOFDPacket docnum=69938 [17:45:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 13 C0 04 01 42 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 32 31 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 CF 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 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 2A 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 11 01 00 35 04 06 00 E9 4C 13 BB 92 9F 4D 95 83 AB 5F 0B 18 68 [17:45:15]CheckFolder [17:45:15]dirname=/storage/ofd_packets [17:45:15]CheckFolder done [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00069938 [17:45:15]NVStorageSaveData ofd_packets/00069938 [17:45:15]File name is /storage/ofd_packets/00069938 [17:45:15]Write 298 bytes [17:45:15]NVStorageSaveData done [17:45:15]OFDSenderStorePacket done [17:45:15]KKMCreateOFDPacket done [17:45:15]NVStorageSaveData kkm_last_timestamp [17:45:15]File name is /storage/kkm_last_timestamp [17:45:15]Write 4 bytes [17:45:15]NVStorageSaveData done [17:45:15]ExternCall_PrintAddStr [17:45:15]wPrintStart [17:45:15]Write to MH i2c: 01 00 00 97 0F A6 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [17:45:15]RasterBufferAndPrint [17:45:15]line Счет N : (1)2885698 [17:45:15]line ИНН: 02508201610067 [17:45:15]line Контрольно-Кассовый Чек [17:45:15]line ПРОДАЖА [17:45:15]line ТРК (МРК, ГНК) : 51 [17:45:15]line Товар: 2710194210 [17:45:15]line ДТ-К-5 [17:45:15]line 15.750 * 76.20 [17:45:15]line = 1200.15 [17:45:15]line НДС 12% НСП 1% [17:45:15]line > о реализуемом товаре [17:45:15]line ИТОГО: 1200.15 [17:45:15]line НСП 1% : 10.62 [17:45:15]line НДС 12% : 127.45 [17:45:15]line Наличными: 0.00 [17:45:15]line Безнал.: 1200.15 [17:45:15]line Место: АЗС № 85 "Партнер Нефть" [17:45:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:45:15]line СНО: Общий режим [17:45:15]line Чек 328 21.10.2024 17:45 [17:45:15]line Смена: 194 ФФД: 1.0 [17:45:15]line ЗНМ: 0300000167 [17:45:15]line РНМ: 0000000000156251 [17:45:15]line Версия ККМ: v1.0 [17:45:15]line Платежная система: Mbank [17:45:15]line ФМ: 0000000000963346 [17:45:15]line ФД: 69938 [17:45:15]line ФПД: 256512957846175 [17:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69938&fm=256512957846175&tin=02508201610067®Number=0000000000156251&sum=120015 [17:45:15]OFD Sender: Processing packet 69938 [packets to send 18, broken 17] [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00069938 [17:45:15]OFD Sender: To server: pG, [17:45:15]CommunicateWithHost lk.salyk.kg:30040 [17:45:15]ConnectInit lk.salyk.kg [17:45:15]written 0, free lines is 4095 [17:45:15]Connected sock=11 [17:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 13 C0 04 01 42 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 32 31 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 CF 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 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 2A 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 11 01 00 35 04 06 00 E9 4C 13 BB 92 9F 4D 95 83 AB 5F 0B 18 68 [17:45:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0C 20 47 00 B9 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 39 36 33 33 34 36 10 04 04 00 32 11 01 00 F4 03 04 00 CD 3C 16 67 B6 04 01 00 00 08 D6 A0 68 B1 F9 96 52 [17:45:15]CommunicateWithHost err = 0 [17:45:15]CheckOFDResponse [17:45:15]1017 (14) - 77093643461234 [17:45:15]1041 (16) - 0000000000963346 [17:45:15]1040 (4) - 69938 [17:45:15]1012 (4) - 21.10.2024 11:36 [17:45:15]1206 (1) - 0 [17:45:15]OFD Sender: Remove packet 69938 [17:45:15]ProducePacketName [17:45:15]name=ofd_packets/00069938 [17:45:15]NVStorageDeleteData [17:45:15]Write to MH i2c: 01 00 00 C0 0F CF [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: 01 07 00 C0 0F 00 00 00 00 00 0A 0D ED [17:45:15]RasterBufferAndPrint [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]line [17:45:15]written 0, free lines is 3344 [17:45:15]MH_Cut [17:45:15]Write to MH i2c: D1 01 00 C7 0F 01 A8 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: D1 01 00 C7 0F 00 A7 [17:45:15]Write to MH i2c: 01 00 00 C8 0F D7 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:16]OFD Sender: No OFD packet to send [17:45:16]*** Cut start [17:45:16]*** Partial cut [17:45:16]*** CUTSNS_PIN = 1 [17:45:16]*** CUTSNS_PIN = 0 [17:45:16]*** Brake cut motor [17:45:17]Read from MH i2c: 01 [17:45:17]MH_I2C_Read... [17:45:17]*** Stop cut motor [17:45:17]*** Cut end [17:45:17]Read from MH i2c: 01 07 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 C8 0F 00 00 00 00 00 FF 0F EC [17:45:17]process_action close_receipt done [17:45:17]requested_data is exist [17:45:17]produce_requested_data [17:45:17]requested_item fm.sn is exist - process it [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 11 00 00 [17:45:17]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 17 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [17:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:45:17]wFMCommunicate OK [17:45:17]requested_item fd.num is exist - process it [17:45:17]SAM_PROTO_GetFieldsCounters [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 13 00 00 [17:45:17]Write to MH i2c: E2 08 00 CA 0F 80 13 00 00 00 00 00 00 55 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 62 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 62 00 CA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [17:45:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_GetFieldsCounters done [17:45:17]requested_item shift.num is exist - process it [17:45:17]requested_item shift.opened is exist - process it [17:45:17]req_shift_opened [17:45:17]FM_GetShiftState [17:45:17]SAM_PROTO_GetShiftState [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 13 01 00 [17:45:17]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 83 [17:45:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_GetShiftState done [17:45:17]FM_GetShiftState done [17:45:17]req_shift_opened done [17:45:17]requested_item shift.open_date is exist - process it [17:45:17]req_shift_open_date [17:45:17]req_shift_open_date done [17:45:17]produce_requested_data done [17:45:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69938,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:45:17]process_action_free close_receipt [17:45:17]json_value_free [17:45:17]json_value_free done [17:45:17]process_json_proto returns [17:45:17]Send response to host [17:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69938,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:45:17]free response buf [17:45:17]execute_script done [17:45:17]execute_script returns [17:45:17]free content buf [17:45:17]Sock 9.Close socket [17:45:17]Sock 9.Thread stoped [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:19]accept exits with 7 [17:46:19]New connection [17:46:19]New thread 3067170148 created [17:46:19]Thread 3067026788 joined [17:46:19]Waiting for new connection... [17:46:19] Sock 7.Parse request [17:46:19]Sock 7.Check first char [17:46:19]Sock 7.First char is OK [17:46:19]request: POST /json_proto HTTP/1.0 [17:46:19]Method: POST [17:46:19]URL: /json_proto [17:46:19]Method is POST - this is cgi request [17:46:19]url: /json_proto [17:46:19]query_string will be loaded in cgi processing [17:46:19]execute_cgi json_proto POST (null) [17:46:19]execute_cgi path=json_proto method=POST [17:46:19]POST find Content-Length [17:46:19]Host: 172.17.50.3:8080 [17:46:19]Content-Length: 678 [17:46:19]Content-Type: application/json [17:46:19] [17:46:19]POST finish read [17:46:19]Found Content-Length = 678 [17:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:19]execute_script... [17:46:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:19]POST & json_proto [17:46:19]process_json_proto [17:46:19]json parsed OK: [17:46:19]protocol is kg_v1.0 [17:46:19]action value=close_receipt [17:46:19]process_action close_receipt [17:46:19]cmd_close_receipt [17:46:19]MH_GetDate [17:46:19]Write to MH i2c: F0 00 00 CC 0F CA [17:46:19]Write i2c OK [17:46:19]MH_I2C_Read... [17:46:19]Read from MH i2c: F0 [17:46:19]MH_I2C_Read... [17:46:19]Read from MH i2c: F0 09 00 [17:46:19]MH_I2C_Read... [17:46:19]Read from MH i2c: F0 09 00 CC 0F 00 6C 93 16 67 6B 98 1E 66 D6 [17:46:19]GetLastDocTimeStamp 1729532714 [17:46:19]current date 1729532780 [17:46:19]FM_GetShiftState [17:46:19]SAM_PROTO_GetShiftState [17:46:19]wFMCommunicate request_size=4 [17:46:19]MH_SAM_APDU [17:46:19]CAPDU: 80 13 01 00 [17:46:19]Write to MH i2c: E2 08 00 CD 0F 80 13 01 00 00 00 00 00 59 [17:46:19]Write i2c OK [17:46:19]MH_I2C_Read... [17:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:19]Read from MH i2c: E2 [17:46:19]MH_I2C_Read... [17:46:19]Read from MH i2c: E2 0E 00 [17:46:19]MH_I2C_Read... [17:46:19]Read from MH i2c: E2 0E 00 CD 0F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 85 [17:46:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:46:19]wFMCommunicate OK [17:46:19]SAM_PROTO_GetShiftState done [17:46:19]FM_GetShiftState done [17:46:19]opened in 1729469703 [17:46:19]opened+sec_in_day 1729556103 [17:46:19]quantity*price = 50041 [17:46:19]sum+1 = 50042 [17:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 329 21.10.2024 17:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69939 ФПД: 231883740892216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69939&fm=231883740892216&tin=02508201610067®Number=0000000000156251&sum=50000 [17:46:20]StoreToDocumentArchive [17:46:20]shift 194 fd 69939 [17:46:20]save to /storage/0194/doc_00069939 [17:46:20]save last doc name /storage/0194/doc_00069939 to /storage/kkm_last_doc_name [17:46:20]save OK [17:46:20]Clear old archive folders... [17:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:20]tlvbuf is 01111F70 [17:46:20]SAM_PROTO_ClearQueue [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 09 00 00 [17:46:20]Write to MH i2c: E2 08 00 DA 0F 80 09 00 00 00 00 00 00 5B [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [17:46:20]RAPDU: 90 00 [17:46:20]wFMCommunicate OK [17:46:20]SAM_PROTO_ClearQueue done [17:46:20]KKMCreateOFDPacket [17:46:20]OFDProtocolAddRootSTLVToBuf [17:46:20]FM_MakeSignedData [17:46:20]FM_MakeSignedData [17:46:20]SAM_PROTO_SignData [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 0D 01 02 [17:46:20]Write to MH i2c: E2 08 00 DB 0F 80 0D 01 02 00 00 00 00 63 [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [17:46:20]RAPDU: 90 00 [17:46:20]wFMCommunicate OK [17:46:20]wFMCommunicate request_size=255 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 6C 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 11 01 00 35 04 06 00 D2 [17:46:20]Write to MH i2c: E2 02 01 DC 0F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 6C 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 11 01 00 35 04 06 00 D2 00 00 8B [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [17:46:20]RAPDU: 90 00 [17:46:20]wFMCommunicate OK [17:46:20]wFMCommunicate request_size=10 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 0D 02 02 05 E5 A4 01 4C 38 [17:46:20]Write to MH i2c: E2 0D 00 DD 0F 80 0D 02 02 05 00 E5 A4 01 4C 38 00 00 7E [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [17:46:20]RAPDU: 90 00 [17:46:20]wFMCommunicate OK [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 0D 03 02 [17:46:20]Write to MH i2c: E2 08 00 DE 0F 80 0D 03 02 00 00 00 00 68 [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0B 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 0B 00 DE 0F 00 76 88 A4 CE 71 E0 36 80 90 00 E0 [17:46:20]RAPDU: 76 88 A4 CE 71 E0 36 80 90 00 [17:46:20]wFMCommunicate OK [17:46:20]SAM_PROTO_SignData done [17:46:20]FM_MakeSignedData done [17:46:20]CreateOFDProtocolMessage [17:46:20]wFMCommunicate request_size=4 [17:46:20]MH_SAM_APDU [17:46:20]CAPDU: 80 11 00 00 [17:46:20]Write to MH i2c: E2 08 00 DF 0F 80 11 00 00 00 00 00 00 68 [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:20]Read from MH i2c: E2 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 17 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: E2 17 00 DF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [17:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:20]wFMCommunicate OK [17:46:20]CreateOFDProtocolMessage done [17:46:20]OFDSenderStorePacket 69939 [17:46:20]StoreOFDPacket docnum=69939 [17:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E7 23 07 01 1D 8C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 6C 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 11 01 00 35 04 06 00 D2 E5 A4 01 4C 38 76 88 A4 CE 71 E0 36 80 [17:46:20]CheckFolder [17:46:20]dirname=/storage/ofd_packets [17:46:20]CheckFolder done [17:46:20]ProducePacketName [17:46:20]name=ofd_packets/00069939 [17:46:20]NVStorageSaveData ofd_packets/00069939 [17:46:20]File name is /storage/ofd_packets/00069939 [17:46:20]Write 301 bytes [17:46:20]NVStorageSaveData done [17:46:20]OFDSenderStorePacket done [17:46:20]KKMCreateOFDPacket done [17:46:20]NVStorageSaveData kkm_last_timestamp [17:46:20]File name is /storage/kkm_last_timestamp [17:46:20]Write 4 bytes [17:46:20]NVStorageSaveData done [17:46:20]ExternCall_PrintAddStr [17:46:20]wPrintStart [17:46:20]Write to MH i2c: 01 00 00 E0 0F EF [17:46:20]Write i2c OK [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: 01 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: 01 07 00 [17:46:20]MH_I2C_Read... [17:46:20]Read from MH i2c: 01 07 00 E0 0F 00 00 00 00 00 FF 0F 04 [17:46:20]RasterBufferAndPrint [17:46:20]line Счет N : (1)2885699 [17:46:20]line ИНН: 02508201610067 [17:46:20]line Контрольно-Кассовый Чек [17:46:20]line ПРОДАЖА [17:46:20]line ТРК (МРК, ГНК) : 12 [17:46:20]line Товар: 2710124130 [17:46:20]line Аи-92-К-5 [17:46:20]line 7.480 * 66.90 [17:46:20]line = 500.41 [17:46:20]line НДС 12% НСП 1% [17:46:20]line > о реализуемом товаре [17:46:20]line ОКРУГЛЕНИЕ: -0.41 [17:46:20]line ИТОГО: 500.00 [17:46:20]line Внесено: 500.00 [17:46:20]line СДАЧА: 0.00 [17:46:20]line НСП 1% : 4.43 [17:46:20]line НДС 12% : 53.14 [17:46:20]line Наличными: 500.00 [17:46:20]line Безнал.: 0.00 [17:46:20]line Место: АЗС № 85 "Партнер Нефть" [17:46:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:46:20]line СНО: Общий режим [17:46:20]line Чек 329 21.10.2024 17:46 [17:46:20]line Смена: 194 ФФД: 1.0 [17:46:20]line ЗНМ: 0300000167 [17:46:20]line РНМ: 0000000000156251 [17:46:20]line Версия ККМ: v1.0 [17:46:20]line ФМ: 0000000000963346 [17:46:20]line ФД: 69939 [17:46:20]line ФПД: 231883740892216 [17:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69939&fm=231883740892216&tin=02508201610067®Number=0000000000156251&sum=50000 [17:46:21]OFD Sender: Processing packet 69939 [packets to send 18, broken 17] [17:46:21]ProducePacketName [17:46:21]name=ofd_packets/00069939 [17:46:21]OFD Sender: To server: pG, [17:46:21]CommunicateWithHost lk.salyk.kg:30040 [17:46:21]ConnectInit lk.salyk.kg [17:46:21]written 0, free lines is 4095 [17:46:21]Connected sock=10 [17:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E7 23 07 01 1D 8C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 6C 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 11 01 00 35 04 06 00 D2 E5 A4 01 4C 38 76 88 A4 CE 71 E0 36 80 [17:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BD 7A 47 00 C9 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 11 01 00 F4 03 04 00 0F 3D 16 67 B6 04 01 00 00 C8 F5 FE FA 1C 54 4D EA [17:46:21]CommunicateWithHost err = 0 [17:46:21]CheckOFDResponse [17:46:21]1017 (14) - 77093643461234 [17:46:21]1041 (16) - 0000000000963346 [17:46:21]1040 (4) - 69939 [17:46:21]1012 (4) - 21.10.2024 11:37 [17:46:21]1206 (1) - 0 [17:46:21]OFD Sender: Remove packet 69939 [17:46:21]ProducePacketName [17:46:21]name=ofd_packets/00069939 [17:46:21]NVStorageDeleteData [17:46:21]Write to MH i2c: 01 00 00 0B 10 1B [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: 01 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: 01 07 00 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 F6 0C 24 [17:46:21]RasterBufferAndPrint [17:46:21]line [17:46:21]line [17:46:21]line [17:46:21]line [17:46:21]line [17:46:21]written 0, free lines is 3324 [17:46:21]MH_Cut [17:46:21]Write to MH i2c: D1 01 00 12 10 01 F4 [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: D1 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: D1 01 00 [17:46:21]MH_I2C_Read... [17:46:21]Read from MH i2c: D1 01 00 12 10 00 F3 [17:46:21]Write to MH i2c: 01 00 00 13 10 23 [17:46:21]Write i2c OK [17:46:21]MH_I2C_Read... [17:46:22]OFD Sender: No OFD packet to send [17:46:22]*** Cut start [17:46:22]*** Partial cut [17:46:22]*** CUTSNS_PIN = 1 [17:46:22]*** CUTSNS_PIN = 0 [17:46:22]*** Brake cut motor [17:46:22]Read from MH i2c: 01 [17:46:22]MH_I2C_Read... [17:46:22]*** Stop cut motor [17:46:22]*** Cut end [17:46:22]Read from MH i2c: 01 07 00 [17:46:22]MH_I2C_Read... [17:46:22]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [17:46:22]process_action close_receipt done [17:46:22]requested_data is exist [17:46:22]produce_requested_data [17:46:22]requested_item fm.sn is exist - process it [17:46:22]wFMCommunicate request_size=4 [17:46:22]MH_SAM_APDU [17:46:22]CAPDU: 80 11 00 00 [17:46:22]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [17:46:22]Write i2c OK [17:46:22]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 17 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [17:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:23]wFMCommunicate OK [17:46:23]requested_item fd.num is exist - process it [17:46:23]SAM_PROTO_GetFieldsCounters [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 13 00 00 [17:46:23]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 62 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 62 00 15 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [17:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:23]wFMCommunicate OK [17:46:23]SAM_PROTO_GetFieldsCounters done [17:46:23]requested_item shift.num is exist - process it [17:46:23]requested_item shift.opened is exist - process it [17:46:23]req_shift_opened [17:46:23]FM_GetShiftState [17:46:23]SAM_PROTO_GetShiftState [17:46:23]wFMCommunicate request_size=4 [17:46:23]MH_SAM_APDU [17:46:23]CAPDU: 80 13 01 00 [17:46:23]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [17:46:23]Write i2c OK [17:46:23]MH_I2C_Read... [17:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:23]Read from MH i2c: E2 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 0E 00 [17:46:23]MH_I2C_Read... [17:46:23]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CF [17:46:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:46:23]wFMCommunicate OK [17:46:23]SAM_PROTO_GetShiftState done [17:46:23]FM_GetShiftState done [17:46:23]req_shift_opened done [17:46:23]requested_item shift.open_date is exist - process it [17:46:23]req_shift_open_date [17:46:23]req_shift_open_date done [17:46:23]produce_requested_data done [17:46:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69939,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:46:23]process_action_free close_receipt [17:46:23]json_value_free [17:46:23]json_value_free done [17:46:23]process_json_proto returns [17:46:23]Send response to host [17:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69939,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:46:23]free response buf [17:46:23]execute_script done [17:46:23]execute_script returns [17:46:23]free content buf [17:46:23]Sock 7.Close socket [17:46:23]Sock 7.Thread stoped [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:27]accept exits with 9 [17:47:27]New connection [17:47:27]New thread 3067026788 created [17:47:27]Thread 3067170148 joined [17:47:27]Waiting for new connection... [17:47:27] Sock 9.Parse request [17:47:27]Sock 9.Check first char [17:47:27]Sock 9.First char is OK [17:47:27]request: POST /json_proto HTTP/1.0 [17:47:27]Method: POST [17:47:27]URL: /json_proto [17:47:27]Method is POST - this is cgi request [17:47:27]url: /json_proto [17:47:27]query_string will be loaded in cgi processing [17:47:27]execute_cgi json_proto POST (null) [17:47:27]execute_cgi path=json_proto method=POST [17:47:27]POST find Content-Length [17:47:27]Host: 172.17.50.3:8080 [17:47:27]Content-Length: 689 [17:47:27]Content-Type: application/json [17:47:27] [17:47:27]POST finish read [17:47:27]Found Content-Length = 689 [17:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:47:27]execute_script... [17:47:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:47:27]POST & json_proto [17:47:27]process_json_proto [17:47:27]json parsed OK: [17:47:27]protocol is kg_v1.0 [17:47:27]action value=close_receipt [17:47:27]process_action close_receipt [17:47:27]cmd_close_receipt [17:47:27]MH_GetDate [17:47:27]Write to MH i2c: F0 00 00 17 10 16 [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: F0 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: F0 09 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: F0 09 00 17 10 00 B0 93 16 67 6B 98 1E 66 66 [17:47:27]GetLastDocTimeStamp 1729532780 [17:47:27]current date 1729532848 [17:47:27]FM_GetShiftState [17:47:27]SAM_PROTO_GetShiftState [17:47:27]wFMCommunicate request_size=4 [17:47:27]MH_SAM_APDU [17:47:27]CAPDU: 80 13 01 00 [17:47:27]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:27]Read from MH i2c: E2 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 0E 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D1 [17:47:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:47:27]wFMCommunicate OK [17:47:27]SAM_PROTO_GetShiftState done [17:47:27]FM_GetShiftState done [17:47:27]opened in 1729469703 [17:47:27]opened+sec_in_day 1729556103 [17:47:27]quantity*price = 100051 [17:47:27]sum+1 = 100052 [17:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 330 21.10.2024 17:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69940 ФПД: 6537282304326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174728&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69940&fm=6537282304326&tin=02508201610067®Number=0000000000156251&sum=100000 [17:47:28]StoreToDocumentArchive [17:47:28]shift 194 fd 69940 [17:47:28]save to /storage/0194/doc_00069940 [17:47:28]save last doc name /storage/0194/doc_00069940 to /storage/kkm_last_doc_name [17:47:28]save OK [17:47:28]Clear old archive folders... [17:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:47:28]tlvbuf is 01139420 [17:47:28]SAM_PROTO_ClearQueue [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 09 00 00 [17:47:28]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]SAM_PROTO_ClearQueue done [17:47:28]KKMCreateOFDPacket [17:47:28]OFDProtocolAddRootSTLVToBuf [17:47:28]FM_MakeSignedData [17:47:28]FM_MakeSignedData [17:47:28]SAM_PROTO_SignData [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 01 02 [17:47:28]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=255 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4A 01 00 00 F4 03 04 00 B0 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 11 01 [17:47:28]Write to MH i2c: E2 02 01 27 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4A 01 00 00 F4 03 04 00 B0 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 11 01 00 00 14 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=16 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 05 F2 14 63 B9 46 [17:47:28]Write to MH i2c: E2 13 00 28 10 80 0D 02 02 0B 00 00 35 04 06 00 05 F2 14 63 B9 46 00 00 74 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:29]Read from MH i2c: E2 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 03 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [17:47:29]RAPDU: 90 00 [17:47:29]wFMCommunicate OK [17:47:29]wFMCommunicate request_size=4 [17:47:29]MH_SAM_APDU [17:47:29]CAPDU: 80 0D 03 02 [17:47:29]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:29]Read from MH i2c: E2 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 0B 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 0B 00 29 10 00 EF BF 97 21 94 61 6D 8E 90 00 0B [17:47:29]RAPDU: EF BF 97 21 94 61 6D 8E 90 00 [17:47:29]wFMCommunicate OK [17:47:29]SAM_PROTO_SignData done [17:47:29]FM_MakeSignedData done [17:47:29]CreateOFDProtocolMessage [17:47:29]wFMCommunicate request_size=4 [17:47:29]MH_SAM_APDU [17:47:29]CAPDU: 80 11 00 00 [17:47:29]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:29]Read from MH i2c: E2 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 17 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [17:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:47:29]wFMCommunicate OK [17:47:29]CreateOFDProtocolMessage done [17:47:29]OFDSenderStorePacket 69940 [17:47:29]StoreOFDPacket docnum=69940 [17:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 97 32 0D 01 42 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4A 01 00 00 F4 03 04 00 B0 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 11 01 00 35 04 06 00 05 F2 14 63 B9 46 EF BF 97 21 94 61 6D 8E [17:47:29]CheckFolder [17:47:29]dirname=/storage/ofd_packets [17:47:29]CheckFolder done [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00069940 [17:47:29]NVStorageSaveData ofd_packets/00069940 [17:47:29]File name is /storage/ofd_packets/00069940 [17:47:29]Write 307 bytes [17:47:29]NVStorageSaveData done [17:47:29]OFDSenderStorePacket done [17:47:29]KKMCreateOFDPacket done [17:47:29]NVStorageSaveData kkm_last_timestamp [17:47:29]File name is /storage/kkm_last_timestamp [17:47:29]Write 4 bytes [17:47:29]NVStorageSaveData done [17:47:29]ExternCall_PrintAddStr [17:47:29]wPrintStart [17:47:29]Write to MH i2c: 01 00 00 2B 10 3B [17:47:29]OFD Sender: Processing packet 69940 [packets to send 18, broken 17] [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00069940 [17:47:29]OFD Sender: To server: pG, [17:47:29]CommunicateWithHost lk.salyk.kg:30040 [17:47:29]ConnectInit lk.salyk.kg [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [17:47:29]RasterBufferAndPrint [17:47:29]line Счет N : (1)2885700 [17:47:29]line ИНН: 02508201610067 [17:47:29]line Контрольно-Кассовый Чек [17:47:29]line ПРОДАЖА [17:47:29]line ТРК (МРК, ГНК) : 41 [17:47:29]line Товар: 2710194240 [17:47:29]line D-ENERGY Дт-К-2 [17:47:29]line 12.960 * 77.20 [17:47:29]line = 1000.51 [17:47:29]line НДС 12% НСП 1% [17:47:29]line > о реализуемом товаре [17:47:29]line ОКРУГЛЕНИЕ: -0.51 [17:47:29]line ИТОГО: 1000.00 [17:47:29]line Внесено: 1000.00 [17:47:29]line СДАЧА: 0.00 [17:47:29]line НСП 1% : 8.85 [17:47:29]line НДС 12% : 106.25 [17:47:29]line Наличными: 1000.00 [17:47:29]line Безнал.: 0.00 [17:47:29]line Место: АЗС № 85 "Партнер Нефть" [17:47:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:47:29]line СНО: Общий режим [17:47:29]line Чек 330 21.10.2024 17:47 [17:47:29]line Смена: 194 ФФД: 1.0 [17:47:29]line ЗНМ: 0300000167 [17:47:29]line РНМ: 0000000000156251 [17:47:29]line Версия ККМ: v1.0 [17:47:29]line ФМ: 0000000000963346 [17:47:29]line ФД: 69940 [17:47:29]line ФПД: 6537282304326 [17:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174728&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69940&fm=6537282304326&tin=02508201610067®Number=0000000000156251&sum=100000 [17:47:29]Connected sock=10 [17:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 97 32 0D 01 42 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4A 01 00 00 F4 03 04 00 B0 93 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 11 01 00 35 04 06 00 05 F2 14 63 B9 46 EF BF 97 21 94 61 6D 8E [17:47:29]written 0, free lines is 4095 [17:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 72 47 00 9C 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 39 36 33 33 34 36 10 04 04 00 34 11 01 00 F4 03 04 00 53 3D 16 67 B6 04 01 00 00 F7 A1 66 86 C1 5A DB C0 [17:47:29]CommunicateWithHost err = 0 [17:47:29]CheckOFDResponse [17:47:29]1017 (14) - 77093643461234 [17:47:29]1041 (16) - 0000000000963346 [17:47:29]1040 (4) - 69940 [17:47:29]1012 (4) - 21.10.2024 11:38 [17:47:29]1206 (1) - 0 [17:47:29]OFD Sender: Remove packet 69940 [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00069940 [17:47:29]NVStorageDeleteData [17:47:29]Write to MH i2c: 01 00 00 56 10 66 [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 ED 0C 66 [17:47:29]RasterBufferAndPrint [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]written 0, free lines is 3315 [17:47:29]MH_Cut [17:47:29]Write to MH i2c: D1 01 00 5D 10 01 3F [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 01 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 01 00 5D 10 00 3E [17:47:29]Write to MH i2c: 01 00 00 5E 10 6E [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:30]OFD Sender: No OFD packet to send [17:47:30]*** Cut start [17:47:30]*** Partial cut [17:47:30]*** CUTSNS_PIN = 1 [17:47:30]*** CUTSNS_PIN = 0 [17:47:30]*** Brake cut motor [17:47:31]Read from MH i2c: 01 [17:47:31]MH_I2C_Read... [17:47:31]*** Stop cut motor [17:47:31]*** Cut end [17:47:31]Read from MH i2c: 01 07 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 07 00 5E 10 00 00 00 00 00 FF 0F 83 [17:47:31]process_action close_receipt done [17:47:31]requested_data is exist [17:47:31]produce_requested_data [17:47:31]requested_item fm.sn is exist - process it [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 11 00 00 [17:47:31]Write to MH i2c: E2 08 00 5F 10 80 11 00 00 00 00 00 00 E9 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 5F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [17:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:47:31]wFMCommunicate OK [17:47:31]requested_item fd.num is exist - process it [17:47:31]SAM_PROTO_GetFieldsCounters [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 13 00 00 [17:47:31]Write to MH i2c: E2 08 00 60 10 80 13 00 00 00 00 00 00 EC [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 62 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 62 00 60 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_GetFieldsCounters done [17:47:31]requested_item shift.num is exist - process it [17:47:31]requested_item shift.opened is exist - process it [17:47:31]req_shift_opened [17:47:31]FM_GetShiftState [17:47:31]SAM_PROTO_GetShiftState [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 13 01 00 [17:47:31]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0E 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1A [17:47:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_GetShiftState done [17:47:31]FM_GetShiftState done [17:47:31]req_shift_opened done [17:47:31]requested_item shift.open_date is exist - process it [17:47:31]req_shift_open_date [17:47:31]req_shift_open_date done [17:47:31]produce_requested_data done [17:47:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69940,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:47:31]process_action_free close_receipt [17:47:31]json_value_free [17:47:31]json_value_free done [17:47:31]process_json_proto returns [17:47:31]Send response to host [17:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69940,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:47:31]free response buf [17:47:31]execute_script done [17:47:31]execute_script returns [17:47:31]free content buf [17:47:31]Sock 9.Close socket [17:47:31]Sock 9.Thread stoped [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:23]accept exits with 7 [17:53:23]New connection [17:53:23]New thread 3067170148 created [17:53:23]Thread 3067026788 joined [17:53:23]Waiting for new connection... [17:53:23] Sock 7.Parse request [17:53:23]Sock 7.Check first char [17:53:23]Sock 7.First char is OK [17:53:23]request: POST /json_proto HTTP/1.0 [17:53:23]Method: POST [17:53:23]URL: /json_proto [17:53:23]Method is POST - this is cgi request [17:53:23]url: /json_proto [17:53:23]query_string will be loaded in cgi processing [17:53:23]execute_cgi json_proto POST (null) [17:53:23]execute_cgi path=json_proto method=POST [17:53:23]POST find Content-Length [17:53:23]Host: 172.17.50.3:8080 [17:53:23]Content-Length: 678 [17:53:23]Content-Type: application/json [17:53:23] [17:53:23]POST finish read [17:53:23]Found Content-Length = 678 [17:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885702", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:23]execute_script... [17:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885702", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:23]POST & json_proto [17:53:23]process_json_proto [17:53:23]json parsed OK: [17:53:23]protocol is kg_v1.0 [17:53:23]action value=close_receipt [17:53:23]process_action close_receipt [17:53:23]cmd_close_receipt [17:53:23]MH_GetDate [17:53:23]Write to MH i2c: F0 00 00 62 10 61 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: F0 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: F0 09 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: F0 09 00 62 10 00 15 95 16 67 6B 98 1E 66 18 [17:53:23]GetLastDocTimeStamp 1729532848 [17:53:23]current date 1729533205 [17:53:23]FM_GetShiftState [17:53:23]SAM_PROTO_GetShiftState [17:53:23]wFMCommunicate request_size=4 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 13 01 00 [17:53:23]Write to MH i2c: E2 08 00 63 10 80 13 01 00 00 00 00 00 F0 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:24]Read from MH i2c: E2 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: E2 0E 00 [17:53:24]MH_I2C_Read... [17:53:24]Read from MH i2c: E2 0E 00 63 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1C [17:53:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:53:24]wFMCommunicate OK [17:53:24]SAM_PROTO_GetShiftState done [17:53:24]FM_GetShiftState done [17:53:24]opened in 1729469703 [17:53:24]opened+sec_in_day 1729556103 [17:53:24]quantity*price = 50041 [17:53:24]sum+1 = 50042 [17:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 331 21.10.2024 17:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69941 ФПД: 224498741388752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69941&fm=224498741388752&tin=02508201610067®Number=0000000000156251&sum=50000 [17:53:25]StoreToDocumentArchive [17:53:25]shift 194 fd 69941 [17:53:25]save to /storage/0194/doc_00069941 [17:53:25]save last doc name /storage/0194/doc_00069941 to /storage/kkm_last_doc_name [17:53:25]save OK [17:53:25]Clear old archive folders... [17:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:25]tlvbuf is 01106330 [17:53:25]SAM_PROTO_ClearQueue [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 09 00 00 [17:53:25]Write to MH i2c: E2 08 00 70 10 80 09 00 00 00 00 00 00 F2 [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [17:53:25]RAPDU: 90 00 [17:53:25]wFMCommunicate OK [17:53:25]SAM_PROTO_ClearQueue done [17:53:25]KKMCreateOFDPacket [17:53:25]OFDProtocolAddRootSTLVToBuf [17:53:25]FM_MakeSignedData [17:53:25]FM_MakeSignedData [17:53:25]SAM_PROTO_SignData [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 0D 01 02 [17:53:25]Write to MH i2c: E2 08 00 71 10 80 0D 01 02 00 00 00 00 FA [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [17:53:25]RAPDU: 90 00 [17:53:25]wFMCommunicate OK [17:53:25]wFMCommunicate request_size=255 [17:53:25]MH_SAM_APDU [17:53:25]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 15 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 11 01 00 35 04 06 00 CC [17:53:25]Write to MH i2c: E2 02 01 72 10 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 15 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 11 01 00 35 04 06 00 CC 00 00 CB [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]OFD Sender: No OFD packet to send [17:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [17:53:25]RAPDU: 90 00 [17:53:25]wFMCommunicate OK [17:53:25]wFMCommunicate request_size=10 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 0D 02 02 05 2E 2F BB A5 D0 [17:53:25]Write to MH i2c: E2 0D 00 73 10 80 0D 02 02 05 00 2E 2F BB A5 D0 00 00 94 [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [17:53:25]RAPDU: 90 00 [17:53:25]wFMCommunicate OK [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 0D 03 02 [17:53:25]Write to MH i2c: E2 08 00 74 10 80 0D 03 02 00 00 00 00 FF [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 0B 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 0B 00 74 10 00 F3 E7 A3 C8 C6 78 E0 6F 90 00 D2 [17:53:25]RAPDU: F3 E7 A3 C8 C6 78 E0 6F 90 00 [17:53:25]wFMCommunicate OK [17:53:25]SAM_PROTO_SignData done [17:53:25]FM_MakeSignedData done [17:53:25]CreateOFDProtocolMessage [17:53:25]wFMCommunicate request_size=4 [17:53:25]MH_SAM_APDU [17:53:25]CAPDU: 80 11 00 00 [17:53:25]Write to MH i2c: E2 08 00 75 10 80 11 00 00 00 00 00 00 FF [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:25]Read from MH i2c: E2 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 17 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: E2 17 00 75 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [17:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:25]wFMCommunicate OK [17:53:25]CreateOFDProtocolMessage done [17:53:25]OFDSenderStorePacket 69941 [17:53:25]StoreOFDPacket docnum=69941 [17:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 D7 07 01 F4 C6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 15 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 11 01 00 35 04 06 00 CC 2E 2F BB A5 D0 F3 E7 A3 C8 C6 78 E0 6F [17:53:25]CheckFolder [17:53:25]dirname=/storage/ofd_packets [17:53:25]CheckFolder done [17:53:25]ProducePacketName [17:53:25]name=ofd_packets/00069941 [17:53:25]NVStorageSaveData ofd_packets/00069941 [17:53:25]File name is /storage/ofd_packets/00069941 [17:53:25]Write 301 bytes [17:53:25]NVStorageSaveData done [17:53:25]OFDSenderStorePacket done [17:53:25]KKMCreateOFDPacket done [17:53:25]NVStorageSaveData kkm_last_timestamp [17:53:25]File name is /storage/kkm_last_timestamp [17:53:25]Write 4 bytes [17:53:25]NVStorageSaveData done [17:53:25]ExternCall_PrintAddStr [17:53:25]wPrintStart [17:53:25]Write to MH i2c: 01 00 00 76 10 86 [17:53:25]Write i2c OK [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: 01 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: 01 07 00 [17:53:25]MH_I2C_Read... [17:53:25]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 FF 0F 9B [17:53:25]RasterBufferAndPrint [17:53:25]line Счет N : (1)2885702 [17:53:25]line ИНН: 02508201610067 [17:53:25]line Контрольно-Кассовый Чек [17:53:25]line ПРОДАЖА [17:53:25]line ТРК (МРК, ГНК) : 42 [17:53:25]line Товар: 2710124130 [17:53:25]line Аи-92-К-5 [17:53:25]line 7.480 * 66.90 [17:53:25]line = 500.41 [17:53:25]line НДС 12% НСП 1% [17:53:25]line > о реализуемом товаре [17:53:25]line ОКРУГЛЕНИЕ: -0.41 [17:53:25]line ИТОГО: 500.00 [17:53:25]line Внесено: 500.00 [17:53:25]line СДАЧА: 0.00 [17:53:25]line НСП 1% : 4.43 [17:53:25]line НДС 12% : 53.14 [17:53:25]line Наличными: 500.00 [17:53:25]line Безнал.: 0.00 [17:53:25]line Место: АЗС № 85 "Партнер Нефть" [17:53:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:53:25]line СНО: Общий режим [17:53:25]line Чек 331 21.10.2024 17:53 [17:53:25]line Смена: 194 ФФД: 1.0 [17:53:25]line ЗНМ: 0300000167 [17:53:25]line РНМ: 0000000000156251 [17:53:25]line Версия ККМ: v1.0 [17:53:25]line ФМ: 0000000000963346 [17:53:25]line ФД: 69941 [17:53:25]line ФПД: 224498741388752 [17:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69941&fm=224498741388752&tin=02508201610067®Number=0000000000156251&sum=50000 [17:53:26]OFD Sender: Processing packet 69941 [packets to send 18, broken 17] [17:53:26]ProducePacketName [17:53:26]name=ofd_packets/00069941 [17:53:26]OFD Sender: To server: pG, [17:53:26]CommunicateWithHost lk.salyk.kg:30040 [17:53:26]ConnectInit lk.salyk.kg [17:53:26]written 0, free lines is 4095 [17:53:26]Connected sock=10 [17:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 D7 07 01 F4 C6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 15 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 11 01 00 35 04 06 00 CC 2E 2F BB A5 D0 F3 E7 A3 C8 C6 78 E0 6F [17:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 5E 47 00 A9 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 39 36 33 33 34 36 10 04 04 00 35 11 01 00 F4 03 04 00 B8 3E 16 67 B6 04 01 00 00 B7 6B 2C DD 95 88 0A 40 [17:53:26]CommunicateWithHost err = 0 [17:53:26]CheckOFDResponse [17:53:26]1017 (14) - 77093643461234 [17:53:26]1041 (16) - 0000000000963346 [17:53:26]1040 (4) - 69941 [17:53:26]1012 (4) - 21.10.2024 11:44 [17:53:26]1206 (1) - 0 [17:53:26]OFD Sender: Remove packet 69941 [17:53:26]ProducePacketName [17:53:26]name=ofd_packets/00069941 [17:53:26]NVStorageDeleteData [17:53:26]Write to MH i2c: 01 00 00 A1 10 B1 [17:53:26]Write i2c OK [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: 01 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: 01 07 00 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 DE 0C A2 [17:53:26]RasterBufferAndPrint [17:53:26]line [17:53:26]line [17:53:26]line [17:53:26]line [17:53:26]line [17:53:26]written 0, free lines is 3300 [17:53:26]MH_Cut [17:53:26]Write to MH i2c: D1 01 00 A8 10 01 8A [17:53:26]Write i2c OK [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: D1 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: D1 01 00 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: D1 01 00 A8 10 00 89 [17:53:26]Write to MH i2c: 01 00 00 A9 10 B9 [17:53:26]Write i2c OK [17:53:26]MH_I2C_Read... [17:53:26]OFD Sender: No OFD packet to send [17:53:27]*** Cut start [17:53:27]*** Partial cut [17:53:27]*** CUTSNS_PIN = 1 [17:53:27]*** CUTSNS_PIN = 0 [17:53:27]*** Brake cut motor [17:53:27]Read from MH i2c: 01 [17:53:27]MH_I2C_Read... [17:53:27]*** Stop cut motor [17:53:27]*** Cut end [17:53:27]Read from MH i2c: 01 07 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 FF 0F CE [17:53:27]process_action close_receipt done [17:53:27]requested_data is exist [17:53:27]produce_requested_data [17:53:27]requested_item fm.sn is exist - process it [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 11 00 00 [17:53:27]Write to MH i2c: E2 08 00 AA 10 80 11 00 00 00 00 00 00 34 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 17 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 17 00 AA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [17:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:53:27]wFMCommunicate OK [17:53:27]requested_item fd.num is exist - process it [17:53:27]SAM_PROTO_GetFieldsCounters [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 13 00 00 [17:53:27]Write to MH i2c: E2 08 00 AB 10 80 13 00 00 00 00 00 00 37 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 62 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 62 00 AB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:27]wFMCommunicate OK [17:53:27]SAM_PROTO_GetFieldsCounters done [17:53:27]requested_item shift.num is exist - process it [17:53:27]requested_item shift.opened is exist - process it [17:53:27]req_shift_opened [17:53:27]FM_GetShiftState [17:53:27]SAM_PROTO_GetShiftState [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 13 01 00 [17:53:27]Write to MH i2c: E2 08 00 AC 10 80 13 01 00 00 00 00 00 39 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:28]Read from MH i2c: E2 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: E2 0E 00 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: E2 0E 00 AC 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 65 [17:53:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:53:28]wFMCommunicate OK [17:53:28]SAM_PROTO_GetShiftState done [17:53:28]FM_GetShiftState done [17:53:28]req_shift_opened done [17:53:28]requested_item shift.open_date is exist - process it [17:53:28]req_shift_open_date [17:53:28]req_shift_open_date done [17:53:28]produce_requested_data done [17:53:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69941,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:53:28]process_action_free close_receipt [17:53:28]json_value_free [17:53:28]json_value_free done [17:53:28]process_json_proto returns [17:53:28]Send response to host [17:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69941,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:53:28]free response buf [17:53:28]execute_script done [17:53:28]execute_script returns [17:53:28]free content buf [17:53:28]Sock 7.Close socket [17:53:28]Sock 7.Thread stoped [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]accept exits with 9 [17:54:51]New connection [17:54:51]New thread 3067026788 created [17:54:51]Thread 3067170148 joined [17:54:51]Waiting for new connection... [17:54:51] Sock 9.Parse request [17:54:51]Sock 9.Check first char [17:54:51]Sock 9.First char is OK [17:54:51]request: POST /json_proto HTTP/1.0 [17:54:51]Method: POST [17:54:51]URL: /json_proto [17:54:51]Method is POST - this is cgi request [17:54:51]url: /json_proto [17:54:51]query_string will be loaded in cgi processing [17:54:51]execute_cgi json_proto POST (null) [17:54:51]execute_cgi path=json_proto method=POST [17:54:51]POST find Content-Length [17:54:51]Host: 172.17.50.3:8080 [17:54:51]Content-Length: 683 [17:54:51]Content-Type: application/json [17:54:51] [17:54:51]POST finish read [17:54:51]Found Content-Length = 683 [17:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885703", "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" : 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" ] } } [17:54:51]execute_script... [17:54: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)2885703", "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" : 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" ] } } [17:54:51]POST & json_proto [17:54:51]process_json_proto [17:54:51]json parsed OK: [17:54:51]protocol is kg_v1.0 [17:54:51]action value=close_receipt [17:54:51]process_action close_receipt [17:54:51]cmd_close_receipt [17:54:51]MH_GetDate [17:54:51]Write to MH i2c: F0 00 00 AD 10 AC [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: F0 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: F0 09 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: F0 09 00 AD 10 00 6C 95 16 67 6B 98 1E 66 BA [17:54:51]GetLastDocTimeStamp 1729533205 [17:54:51]current date 1729533292 [17:54:51]FM_GetShiftState [17:54:51]SAM_PROTO_GetShiftState [17:54:51]wFMCommunicate request_size=4 [17:54:51]MH_SAM_APDU [17:54:51]CAPDU: 80 13 01 00 [17:54:51]Write to MH i2c: E2 08 00 AE 10 80 13 01 00 00 00 00 00 3B [17:54:51]Write i2c OK [17:54:51]MH_I2C_Read... [17:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:51]Read from MH i2c: E2 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 0E 00 [17:54:51]MH_I2C_Read... [17:54:51]Read from MH i2c: E2 0E 00 AE 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 67 [17:54:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:54:51]wFMCommunicate OK [17:54:51]SAM_PROTO_GetShiftState done [17:54:51]FM_GetShiftState done [17:54:51]opened in 1729469703 [17:54:51]opened+sec_in_day 1729556103 [17:54:51]quantity*price = 200043 [17:54:51]sum+1 = 200044 [17:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 332 21.10.2024 17:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69942 ФПД: 105592461770679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69942&fm=105592461770679&tin=02508201610067®Number=0000000000156251&sum=200000 [17:54:52]StoreToDocumentArchive [17:54:52]shift 194 fd 69942 [17:54:52]save to /storage/0194/doc_00069942 [17:54:52]save last doc name /storage/0194/doc_00069942 to /storage/kkm_last_doc_name [17:54:52]save OK [17:54:52]Clear old archive folders... [17:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:52]tlvbuf is 0119E330 [17:54:52]SAM_PROTO_ClearQueue [17:54:52]wFMCommunicate request_size=4 [17:54:52]MH_SAM_APDU [17:54:52]CAPDU: 80 09 00 00 [17:54:52]Write to MH i2c: E2 08 00 BB 10 80 09 00 00 00 00 00 00 3D [17:54:52]Write i2c OK [17:54:52]MH_I2C_Read... [17:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:52]Read from MH i2c: E2 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: E2 03 00 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [17:54:52]RAPDU: 90 00 [17:54:52]wFMCommunicate OK [17:54:52]SAM_PROTO_ClearQueue done [17:54:52]KKMCreateOFDPacket [17:54:52]OFDProtocolAddRootSTLVToBuf [17:54:52]FM_MakeSignedData [17:54:52]FM_MakeSignedData [17:54:52]SAM_PROTO_SignData [17:54:52]wFMCommunicate request_size=4 [17:54:52]MH_SAM_APDU [17:54:52]CAPDU: 80 0D 01 02 [17:54:52]Write to MH i2c: E2 08 00 BC 10 80 0D 01 02 00 00 00 00 45 [17:54:52]Write i2c OK [17:54:52]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=255 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 01 00 00 F4 03 04 00 6C 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 11 01 00 35 04 06 00 60 [17:54:53]Write to MH i2c: E2 02 01 BD 10 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 4C 01 00 00 F4 03 04 00 6C 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 11 01 00 35 04 06 00 60 00 00 AB [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=10 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 02 02 05 09 29 2C BF B7 [17:54:53]Write to MH i2c: E2 0D 00 BE 10 80 0D 02 02 05 00 09 29 2C BF B7 00 00 26 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 BE 10 00 90 00 42 [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 03 02 [17:54:53]Write to MH i2c: E2 08 00 BF 10 80 0D 03 02 00 00 00 00 4A [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0B 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0B 00 BF 10 00 98 F9 D8 C9 74 B2 E8 A7 90 00 32 [17:54:53]RAPDU: 98 F9 D8 C9 74 B2 E8 A7 90 00 [17:54:53]wFMCommunicate OK [17:54:53]SAM_PROTO_SignData done [17:54:53]FM_MakeSignedData done [17:54:53]CreateOFDProtocolMessage [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 11 00 00 [17:54:53]Write to MH i2c: E2 08 00 C0 10 80 11 00 00 00 00 00 00 4A [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 17 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 17 00 C0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [17:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:54:53]wFMCommunicate OK [17:54:53]CreateOFDProtocolMessage done [17:54:53]OFDSenderStorePacket 69942 [17:54:53]StoreOFDPacket docnum=69942 [17:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 A7 07 01 C7 41 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 4C 01 00 00 F4 03 04 00 6C 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 11 01 00 35 04 06 00 60 09 29 2C BF B7 98 F9 D8 C9 74 B2 E8 A7 [17:54:53]CheckFolder [17:54:53]dirname=/storage/ofd_packets [17:54:53]CheckFolder done [17:54:53]ProducePacketName [17:54:53]name=ofd_packets/00069942 [17:54:53]NVStorageSaveData ofd_packets/00069942 [17:54:53]File name is /storage/ofd_packets/00069942 [17:54:53]Write 301 bytes [17:54:53]NVStorageSaveData done [17:54:53]OFDSenderStorePacket done [17:54:53]KKMCreateOFDPacket done [17:54:53]NVStorageSaveData kkm_last_timestamp [17:54:53]File name is /storage/kkm_last_timestamp [17:54:53]Write 4 bytes [17:54:53]NVStorageSaveData done [17:54:53]ExternCall_PrintAddStr [17:54:53]wPrintStart [17:54:53]Write to MH i2c: 01 00 00 C1 10 D1 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: 01 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: 01 07 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: 01 07 00 C1 10 00 00 00 00 00 FF 0F E6 [17:54:53]RasterBufferAndPrint [17:54:53]line Счет N : (1)2885703 [17:54:53]line ИНН: 02508201610067 [17:54:53]line Контрольно-Кассовый Чек [17:54:53]line ПРОДАЖА [17:54:53]line ТРК (МРК, ГНК) : 33 [17:54:53]line Товар: 2710124500 [17:54:53]line Аи-95-К-5 [17:54:53]line 26.960 * 74.20 [17:54:53]line = 2000.43 [17:54:53]line НДС 12% НСП 1% [17:54:53]line > о реализуемом товаре [17:54:53]line ОКРУГЛЕНИЕ: -0.43 [17:54:53]line ИТОГО: 2000.00 [17:54:53]line Внесено: 2000.00 [17:54:53]line СДАЧА: 0.00 [17:54:53]line НСП 1% : 17.70 [17:54:53]line НДС 12% : 212.43 [17:54:53]line Наличными: 2000.00 [17:54:53]line Безнал.: 0.00 [17:54:53]line Место: АЗС № 85 "Партнер Нефть" [17:54:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:54:53]line СНО: Общий режим [17:54:53]line Чек 332 21.10.2024 17:54 [17:54:53]line Смена: 194 ФФД: 1.0 [17:54:53]line ЗНМ: 0300000167 [17:54:53]line РНМ: 0000000000156251 [17:54:53]line Версия ККМ: v1.0 [17:54:53]line ФМ: 0000000000963346 [17:54:53]line ФД: 69942 [17:54:53]line ФПД: 105592461770679 [17:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69942&fm=105592461770679&tin=02508201610067®Number=0000000000156251&sum=200000 [17:54:53]OFD Sender: Processing packet 69942 [packets to send 18, broken 17] [17:54:53]ProducePacketName [17:54:53]name=ofd_packets/00069942 [17:54:53]OFD Sender: To server: pG, [17:54:53]CommunicateWithHost lk.salyk.kg:30040 [17:54:53]ConnectInit lk.salyk.kg [17:54:53]written 0, free lines is 4095 [17:54:53]Connected sock=10 [17:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 24 A7 07 01 C7 41 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 4C 01 00 00 F4 03 04 00 6C 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 11 01 00 35 04 06 00 60 09 29 2C BF B7 98 F9 D8 C9 74 B2 E8 A7 [17:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F2 36 47 00 06 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 11 01 00 F4 03 04 00 0F 3F 16 67 B6 04 01 00 00 F7 43 44 8A B1 88 6B 05 [17:54:54]CommunicateWithHost err = 0 [17:54:54]CheckOFDResponse [17:54:54]1017 (14) - 77093643461234 [17:54:54]1041 (16) - 0000000000963346 [17:54:54]1040 (4) - 69942 [17:54:54]1012 (4) - 21.10.2024 11:46 [17:54:54]1206 (1) - 0 [17:54:54]OFD Sender: Remove packet 69942 [17:54:54]ProducePacketName [17:54:54]name=ofd_packets/00069942 [17:54:54]NVStorageDeleteData [17:54:54]Write to MH i2c: 01 00 00 EC 10 FC [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 F5 0C 04 [17:54:54]RasterBufferAndPrint [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]written 0, free lines is 3323 [17:54:54]MH_Cut [17:54:54]Write to MH i2c: D1 01 00 F3 10 01 D5 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 01 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 01 00 F3 10 00 D4 [17:54:54]Write to MH i2c: 01 00 00 F4 10 04 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]OFD Sender: No OFD packet to send [17:54:54]*** Cut start [17:54:54]*** Partial cut [17:54:54]*** CUTSNS_PIN = 1 [17:54:54]*** CUTSNS_PIN = 0 [17:54:55]*** Brake cut motor [17:54:55]Read from MH i2c: 01 [17:54:55]MH_I2C_Read... [17:54:55]*** Stop cut motor [17:54:55]*** Cut end [17:54:55]Read from MH i2c: 01 07 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [17:54:55]process_action close_receipt done [17:54:55]requested_data is exist [17:54:55]produce_requested_data [17:54:55]requested_item fm.sn is exist - process it [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 11 00 00 [17:54:55]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 17 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [17:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:54:55]wFMCommunicate OK [17:54:55]requested_item fd.num is exist - process it [17:54:55]SAM_PROTO_GetFieldsCounters [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 13 00 00 [17:54:55]Write to MH i2c: E2 08 00 F6 10 80 13 00 00 00 00 00 00 82 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 62 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 62 00 F6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_GetFieldsCounters done [17:54:55]requested_item shift.num is exist - process it [17:54:55]requested_item shift.opened is exist - process it [17:54:55]req_shift_opened [17:54:55]FM_GetShiftState [17:54:55]SAM_PROTO_GetShiftState [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 13 01 00 [17:54:55]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:55]Read from MH i2c: E2 0E 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B0 [17:54:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_GetShiftState done [17:54:55]FM_GetShiftState done [17:54:55]req_shift_opened done [17:54:55]requested_item shift.open_date is exist - process it [17:54:55]req_shift_open_date [17:54:55]req_shift_open_date done [17:54:55]produce_requested_data done [17:54:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69942,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:54:55]process_action_free close_receipt [17:54:55]json_value_free [17:54:55]json_value_free done [17:54:55]process_json_proto returns [17:54:55]Send response to host [17:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69942,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:54:55]free response buf [17:54:55]execute_script done [17:54:55]execute_script returns [17:54:55]free content buf [17:54:55]Sock 9.Close socket [17:54:55]Sock 9.Thread stoped [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:17]accept exits with 7 [17:55:17]New connection [17:55:17]New thread 3067170148 created [17:55:17]Thread 3067026788 joined [17:55:17]Waiting for new connection... [17:55:17] Sock 7.Parse request [17:55:17]Sock 7.Check first char [17:55:17]Sock 7.First char is OK [17:55:17]request: POST /json_proto HTTP/1.0 [17:55:17]Method: POST [17:55:17]URL: /json_proto [17:55:17]Method is POST - this is cgi request [17:55:17]url: /json_proto [17:55:17]query_string will be loaded in cgi processing [17:55:17]execute_cgi json_proto POST (null) [17:55:17]execute_cgi path=json_proto method=POST [17:55:17]POST find Content-Length [17:55:17]Host: 172.17.50.3:8080 [17:55:17]Content-Length: 678 [17:55:17]Content-Type: application/json [17:55:17] [17:55:17]POST finish read [17:55:17]Found Content-Length = 678 [17:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:17]execute_script... [17:55:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:17]POST & json_proto [17:55:17]process_json_proto [17:55:17]json parsed OK: [17:55:17]protocol is kg_v1.0 [17:55:17]action value=close_receipt [17:55:17]process_action close_receipt [17:55:17]cmd_close_receipt [17:55:17]MH_GetDate [17:55:17]Write to MH i2c: F0 00 00 F8 10 F7 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 09 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 09 00 F8 10 00 86 95 16 67 6B 98 1E 66 1F [17:55:17]GetLastDocTimeStamp 1729533292 [17:55:17]current date 1729533318 [17:55:17]FM_GetShiftState [17:55:17]SAM_PROTO_GetShiftState [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 13 01 00 [17:55:17]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B2 [17:55:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetShiftState done [17:55:17]FM_GetShiftState done [17:55:17]opened in 1729469703 [17:55:17]opened+sec_in_day 1729556103 [17:55:17]quantity*price = 50041 [17:55:17]sum+1 = 50042 [17:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 333 21.10.2024 17:55 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69943 ФПД: 104919836635302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69943&fm=104919836635302&tin=02508201610067®Number=0000000000156251&sum=50000 [17:55:18]StoreToDocumentArchive [17:55:18]shift 194 fd 69943 [17:55:18]save to /storage/0194/doc_00069943 [17:55:18]save last doc name /storage/0194/doc_00069943 to /storage/kkm_last_doc_name [17:55:18]save OK [17:55:18]Clear old archive folders... [17:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:18]tlvbuf is 01105F50 [17:55:18]SAM_PROTO_ClearQueue [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 09 00 00 [17:55:18]Write to MH i2c: E2 08 00 06 11 80 09 00 00 00 00 00 00 89 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]SAM_PROTO_ClearQueue done [17:55:18]KKMCreateOFDPacket [17:55:18]OFDProtocolAddRootSTLVToBuf [17:55:18]FM_MakeSignedData [17:55:18]FM_MakeSignedData [17:55:18]SAM_PROTO_SignData [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 01 02 [17:55:18]Write to MH i2c: E2 08 00 07 11 80 0D 01 02 00 00 00 00 91 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=255 [17:55:18]MH_SAM_APDU [17:55: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 86 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 11 01 00 35 04 06 00 5F [17:55:18]Write to MH i2c: E2 02 01 08 11 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 86 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 11 01 00 35 04 06 00 5F 00 00 6A [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=10 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 02 02 05 6C 8D 97 B0 A6 [17:55:18]Write to MH i2c: E2 0D 00 09 11 80 0D 02 02 05 00 6C 8D 97 B0 A6 00 00 84 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 03 02 [17:55:18]Write to MH i2c: E2 08 00 0A 11 80 0D 03 02 00 00 00 00 96 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 0B 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 0B 00 0A 11 00 46 97 77 B1 F2 F8 40 63 90 00 29 [17:55:18]RAPDU: 46 97 77 B1 F2 F8 40 63 90 00 [17:55:18]wFMCommunicate OK [17:55:18]SAM_PROTO_SignData done [17:55:18]FM_MakeSignedData done [17:55:18]CreateOFDProtocolMessage [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 11 00 00 [17:55:18]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 17 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [17:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:55:18]wFMCommunicate OK [17:55:18]CreateOFDProtocolMessage done [17:55:18]OFDSenderStorePacket 69943 [17:55:18]StoreOFDPacket docnum=69943 [17:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 82 02 07 01 1C 28 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 86 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 11 01 00 35 04 06 00 5F 6C 8D 97 B0 A6 46 97 77 B1 F2 F8 40 63 [17:55:18]CheckFolder [17:55:18]dirname=/storage/ofd_packets [17:55:18]CheckFolder done [17:55:18]ProducePacketName [17:55:18]name=ofd_packets/00069943 [17:55:18]NVStorageSaveData ofd_packets/00069943 [17:55:18]File name is /storage/ofd_packets/00069943 [17:55:18]Write 301 bytes [17:55:18]NVStorageSaveData done [17:55:18]OFDSenderStorePacket done [17:55:18]KKMCreateOFDPacket done [17:55:18]NVStorageSaveData kkm_last_timestamp [17:55:18]File name is /storage/kkm_last_timestamp [17:55:18]Write 4 bytes [17:55:18]NVStorageSaveData done [17:55:18]ExternCall_PrintAddStr [17:55:18]wPrintStart [17:55:18]Write to MH i2c: 01 00 00 0C 11 1D [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 07 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 FF 0F 32 [17:55:18]RasterBufferAndPrint [17:55:18]line Счет N : (1)2885704 [17:55:18]line ИНН: 02508201610067 [17:55:18]line Контрольно-Кассовый Чек [17:55:18]line ПРОДАЖА [17:55:18]line ТРК (МРК, ГНК) : 12 [17:55:18]line Товар: 2710124130 [17:55:18]line Аи-92-К-5 [17:55:18]line 7.480 * 66.90 [17:55:18]line = 500.41 [17:55:18]line НДС 12% НСП 1% [17:55:18]line > о реализуемом товаре [17:55:18]line ОКРУГЛЕНИЕ: -0.41 [17:55:18]line ИТОГО: 500.00 [17:55:18]line Внесено: 500.00 [17:55:18]line СДАЧА: 0.00 [17:55:18]line НСП 1% : 4.43 [17:55:18]line НДС 12% : 53.14 [17:55:18]line Наличными: 500.00 [17:55:18]line Безнал.: 0.00 [17:55:18]line Место: АЗС № 85 "Партнер Нефть" [17:55:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:55:18]line СНО: Общий режим [17:55:18]line Чек 333 21.10.2024 17:55 [17:55:18]line Смена: 194 ФФД: 1.0 [17:55:18]line ЗНМ: 0300000167 [17:55:18]line РНМ: 0000000000156251 [17:55:18]line Версия ККМ: v1.0 [17:55:18]line ФМ: 0000000000963346 [17:55:18]line ФД: 69943 [17:55:18]line ФПД: 104919836635302 [17:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69943&fm=104919836635302&tin=02508201610067®Number=0000000000156251&sum=50000 [17:55:19]OFD Sender: Processing packet 69943 [packets to send 18, broken 17] [17:55:19]ProducePacketName [17:55:19]name=ofd_packets/00069943 [17:55:19]OFD Sender: To server: pG, [17:55:19]CommunicateWithHost lk.salyk.kg:30040 [17:55:19]ConnectInit lk.salyk.kg [17:55:19]written 0, free lines is 4095 [17:55:19]Connected sock=10 [17:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 82 02 07 01 1C 28 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 86 95 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 11 01 00 35 04 06 00 5F 6C 8D 97 B0 A6 46 97 77 B1 F2 F8 40 63 [17:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A6 A4 47 00 8F CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 11 01 00 F4 03 04 00 29 3F 16 67 B6 04 01 00 00 FD 5D 67 56 25 51 7F 26 [17:55:19]CommunicateWithHost err = 0 [17:55:19]CheckOFDResponse [17:55:19]1017 (14) - 77093643461234 [17:55:19]1041 (16) - 0000000000963346 [17:55:19]1040 (4) - 69943 [17:55:19]1012 (4) - 21.10.2024 11:46 [17:55:19]1206 (1) - 0 [17:55:19]OFD Sender: Remove packet 69943 [17:55:19]ProducePacketName [17:55:19]name=ofd_packets/00069943 [17:55:19]NVStorageDeleteData [17:55:19]Write to MH i2c: 01 00 00 37 11 48 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 07 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 07 00 37 11 00 00 00 00 00 E0 0C 3B [17:55:19]RasterBufferAndPrint [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]written 0, free lines is 3302 [17:55:19]MH_Cut [17:55:19]Write to MH i2c: D1 01 00 3E 11 01 21 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 01 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 01 00 3E 11 00 20 [17:55:19]Write to MH i2c: 01 00 00 3F 11 50 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]OFD Sender: No OFD packet to send [17:55:20]*** Cut start [17:55:20]*** Partial cut [17:55:20]*** CUTSNS_PIN = 1 [17:55:20]*** CUTSNS_PIN = 0 [17:55:20]*** Brake cut motor [17:55:20]Read from MH i2c: 01 [17:55:20]MH_I2C_Read... [17:55:20]*** Stop cut motor [17:55:20]*** Cut end [17:55:20]Read from MH i2c: 01 07 00 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: 01 07 00 3F 11 00 00 00 00 00 FF 0F 65 [17:55:20]process_action close_receipt done [17:55:20]requested_data is exist [17:55:20]produce_requested_data [17:55:20]requested_item fm.sn is exist - process it [17:55:20]wFMCommunicate request_size=4 [17:55:20]MH_SAM_APDU [17:55:20]CAPDU: 80 11 00 00 [17:55:20]Write to MH i2c: E2 08 00 40 11 80 11 00 00 00 00 00 00 CB [17:55:20]Write i2c OK [17:55:20]MH_I2C_Read... [17:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:20]Read from MH i2c: E2 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: E2 17 00 [17:55:20]MH_I2C_Read... [17:55:20]Read from MH i2c: E2 17 00 40 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [17:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:55:20]wFMCommunicate OK [17:55:20]requested_item fd.num is exist - process it [17:55:20]SAM_PROTO_GetFieldsCounters [17:55:20]wFMCommunicate request_size=4 [17:55:20]MH_SAM_APDU [17:55:20]CAPDU: 80 13 00 00 [17:55:20]Write to MH i2c: E2 08 00 41 11 80 13 00 00 00 00 00 00 CE [17:55:20]Write i2c OK [17:55:20]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 62 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 62 00 41 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [17:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:21]wFMCommunicate OK [17:55:21]SAM_PROTO_GetFieldsCounters done [17:55:21]requested_item shift.num is exist - process it [17:55:21]requested_item shift.opened is exist - process it [17:55:21]req_shift_opened [17:55:21]FM_GetShiftState [17:55:21]SAM_PROTO_GetShiftState [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 13 01 00 [17:55:21]Write to MH i2c: E2 08 00 42 11 80 13 01 00 00 00 00 00 D0 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 0E 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 0E 00 42 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FC [17:55:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:55:21]wFMCommunicate OK [17:55:21]SAM_PROTO_GetShiftState done [17:55:21]FM_GetShiftState done [17:55:21]req_shift_opened done [17:55:21]requested_item shift.open_date is exist - process it [17:55:21]req_shift_open_date [17:55:21]req_shift_open_date done [17:55:21]produce_requested_data done [17:55:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69943,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:55:21]process_action_free close_receipt [17:55:21]json_value_free [17:55:21]json_value_free done [17:55:21]process_json_proto returns [17:55:21]Send response to host [17:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69943,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:55:21]free response buf [17:55:21]execute_script done [17:55:21]execute_script returns [17:55:21]free content buf [17:55:21]Sock 7.Close socket [17:55:21]Sock 7.Thread stoped [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:50]accept exits with 9 [17:57:50]New connection [17:57:50]New thread 3067026788 created [17:57:50]Thread 3067170148 joined [17:57:50]Waiting for new connection... [17:57:50] Sock 9.Parse request [17:57:50]Sock 9.Check first char [17:57:50]Sock 9.First char is OK [17:57:50]request: POST /json_proto HTTP/1.0 [17:57:50]Method: POST [17:57:50]URL: /json_proto [17:57:50]Method is POST - this is cgi request [17:57:50]url: /json_proto [17:57:50]query_string will be loaded in cgi processing [17:57:50]execute_cgi json_proto POST (null) [17:57:50]execute_cgi path=json_proto method=POST [17:57:50]POST find Content-Length [17:57:50]Host: 172.17.50.3:8080 [17:57:50]Content-Length: 678 [17:57:50]Content-Type: application/json [17:57:50] [17:57:50]POST finish read [17:57:50]Found Content-Length = 678 [17:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:50]execute_script... [17:57: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)2885706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:50]POST & json_proto [17:57:50]process_json_proto [17:57:50]json parsed OK: [17:57:50]protocol is kg_v1.0 [17:57:50]action value=close_receipt [17:57:50]process_action close_receipt [17:57:50]cmd_close_receipt [17:57:50]MH_GetDate [17:57:50]Write to MH i2c: F0 00 00 43 11 43 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: F0 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: F0 09 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: F0 09 00 43 11 00 1F 96 16 67 6B 98 1E 66 05 [17:57:50]GetLastDocTimeStamp 1729533318 [17:57:50]current date 1729533471 [17:57:50]FM_GetShiftState [17:57:50]SAM_PROTO_GetShiftState [17:57:50]wFMCommunicate request_size=4 [17:57:50]MH_SAM_APDU [17:57:50]CAPDU: 80 13 01 00 [17:57:50]Write to MH i2c: E2 08 00 44 11 80 13 01 00 00 00 00 00 D2 [17:57:50]Write i2c OK [17:57:50]MH_I2C_Read... [17:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:50]Read from MH i2c: E2 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 [17:57:50]MH_I2C_Read... [17:57:50]Read from MH i2c: E2 0E 00 44 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FE [17:57:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:57:50]wFMCommunicate OK [17:57:50]SAM_PROTO_GetShiftState done [17:57:50]FM_GetShiftState done [17:57:50]opened in 1729469703 [17:57:50]opened+sec_in_day 1729556103 [17:57:50]quantity*price = 45023 [17:57:50]sum+1 = 45025 [17:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 334 21.10.2024 17:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69944 ФПД: 64576283735664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175751&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69944&fm=64576283735664&tin=02508201610067®Number=0000000000156251&sum=45000 [17:57:51]StoreToDocumentArchive [17:57:51]shift 194 fd 69944 [17:57:51]save to /storage/0194/doc_00069944 [17:57:51]save last doc name /storage/0194/doc_00069944 to /storage/kkm_last_doc_name [17:57:51]save OK [17:57:51]Clear old archive folders... [17:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:51]tlvbuf is B6EF6130 [17:57:51]SAM_PROTO_ClearQueue [17:57:51]wFMCommunicate request_size=4 [17:57:51]MH_SAM_APDU [17:57:51]CAPDU: 80 09 00 00 [17:57:51]Write to MH i2c: E2 08 00 51 11 80 09 00 00 00 00 00 00 D4 [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [17:57:51]RAPDU: 90 00 [17:57:51]wFMCommunicate OK [17:57:51]SAM_PROTO_ClearQueue done [17:57:51]KKMCreateOFDPacket [17:57:51]OFDProtocolAddRootSTLVToBuf [17:57:51]FM_MakeSignedData [17:57:51]FM_MakeSignedData [17:57:51]SAM_PROTO_SignData [17:57:51]wFMCommunicate request_size=4 [17:57:51]MH_SAM_APDU [17:57:51]CAPDU: 80 0D 01 02 [17:57:51]Write to MH i2c: E2 08 00 52 11 80 0D 01 02 00 00 00 00 DC [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [17:57:51]RAPDU: 90 00 [17:57:51]wFMCommunicate OK [17:57:51]wFMCommunicate request_size=255 [17:57:51]MH_SAM_APDU [17:57: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 1F 96 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 11 01 00 35 04 06 00 3A [17:57:51]Write to MH i2c: E2 02 01 53 11 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 1F 96 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 11 01 00 35 04 06 00 3A 00 00 12 [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:51]Read from MH i2c: E2 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 [17:57:51]MH_I2C_Read... [17:57:51]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [17:57:51]RAPDU: 90 00 [17:57:51]wFMCommunicate OK [17:57:51]wFMCommunicate request_size=10 [17:57:51]MH_SAM_APDU [17:57:51]CAPDU: 80 0D 02 02 05 BB 56 73 F6 70 [17:57:51]Write to MH i2c: E2 0D 00 54 11 80 0D 02 02 05 00 BB 56 73 F6 70 00 00 D3 [17:57:51]Write i2c OK [17:57:51]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 03 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [17:57:52]RAPDU: 90 00 [17:57:52]wFMCommunicate OK [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 0D 03 02 [17:57:52]Write to MH i2c: E2 08 00 55 11 80 0D 03 02 00 00 00 00 E1 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0B 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0B 00 55 11 00 41 A4 6F 3B 52 26 6E AD 90 00 04 [17:57:52]RAPDU: 41 A4 6F 3B 52 26 6E AD 90 00 [17:57:52]wFMCommunicate OK [17:57:52]SAM_PROTO_SignData done [17:57:52]FM_MakeSignedData done [17:57:52]CreateOFDProtocolMessage [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 11 00 00 [17:57:52]Write to MH i2c: E2 08 00 56 11 80 11 00 00 00 00 00 00 E1 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 17 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 17 00 56 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [17:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:52]wFMCommunicate OK [17:57:52]CreateOFDProtocolMessage done [17:57:52]OFDSenderStorePacket 69944 [17:57:52]StoreOFDPacket docnum=69944 [17:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9E 82 07 01 86 A9 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 1F 96 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 11 01 00 35 04 06 00 3A BB 56 73 F6 70 41 A4 6F 3B 52 26 6E AD [17:57:52]CheckFolder [17:57:52]dirname=/storage/ofd_packets [17:57:52]CheckFolder done [17:57:52]ProducePacketName [17:57:52]name=ofd_packets/00069944 [17:57:52]NVStorageSaveData ofd_packets/00069944 [17:57:52]File name is /storage/ofd_packets/00069944 [17:57:52]Write 301 bytes [17:57:52]NVStorageSaveData done [17:57:52]OFDSenderStorePacket done [17:57:52]KKMCreateOFDPacket done [17:57:52]NVStorageSaveData kkm_last_timestamp [17:57:52]File name is /storage/kkm_last_timestamp [17:57:52]Write 4 bytes [17:57:52]NVStorageSaveData done [17:57:52]ExternCall_PrintAddStr [17:57:52]wPrintStart [17:57:52]Write to MH i2c: 01 00 00 57 11 68 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 07 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 07 00 57 11 00 00 00 00 00 FF 0F 7D [17:57:52]RasterBufferAndPrint [17:57:52]line Счет N : (1)2885706 [17:57:52]line ИНН: 02508201610067 [17:57:52]line Контрольно-Кассовый Чек [17:57:52]line ПРОДАЖА [17:57:52]line ТРК (МРК, ГНК) : 12 [17:57:52]line Товар: 2710124130 [17:57:52]line Аи-92-К-5 [17:57:52]line 6.730 * 66.90 [17:57:52]line = 450.24 [17:57:52]line НДС 12% НСП 1% [17:57:52]line > о реализуемом товаре [17:57:52]line ОКРУГЛЕНИЕ: -0.24 [17:57:52]line ИТОГО: 450.00 [17:57:52]line Внесено: 450.00 [17:57:52]line СДАЧА: 0.00 [17:57:52]line НСП 1% : 3.98 [17:57:52]line НДС 12% : 47.81 [17:57:52]line Наличными: 450.00 [17:57:52]line Безнал.: 0.00 [17:57:52]line Место: АЗС № 85 "Партнер Нефть" [17:57:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:57:52]line СНО: Общий режим [17:57:52]line Чек 334 21.10.2024 17:57 [17:57:52]line Смена: 194 ФФД: 1.0 [17:57:52]line ЗНМ: 0300000167 [17:57:52]line РНМ: 0000000000156251 [17:57:52]line Версия ККМ: v1.0 [17:57:52]line ФМ: 0000000000963346 [17:57:52]line ФД: 69944 [17:57:52]line ФПД: 64576283735664 [17:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175751&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69944&fm=64576283735664&tin=02508201610067®Number=0000000000156251&sum=45000 [17:57:52]OFD Sender: Processing packet 69944 [packets to send 18, broken 17] [17:57:52]ProducePacketName [17:57:52]name=ofd_packets/00069944 [17:57:52]OFD Sender: To server: pG, [17:57:52]CommunicateWithHost lk.salyk.kg:30040 [17:57:52]ConnectInit lk.salyk.kg [17:57:52]written 0, free lines is 4095 [17:57:52]Connected sock=10 [17:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9E 82 07 01 86 A9 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 1F 96 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 11 01 00 35 04 06 00 3A BB 56 73 F6 70 41 A4 6F 3B 52 26 6E AD [17:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3F 80 47 00 4E EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 11 01 00 F4 03 04 00 C2 3F 16 67 B6 04 01 00 00 FD C6 42 C0 75 C6 BB 5E [17:57:52]CommunicateWithHost err = 0 [17:57:52]CheckOFDResponse [17:57:52]1017 (14) - 77093643461234 [17:57:52]1041 (16) - 0000000000963346 [17:57:52]1040 (4) - 69944 [17:57:52]1012 (4) - 21.10.2024 11:49 [17:57:52]1206 (1) - 0 [17:57:52]OFD Sender: Remove packet 69944 [17:57:52]ProducePacketName [17:57:52]name=ofd_packets/00069944 [17:57:52]NVStorageDeleteData [17:57:52]Write to MH i2c: 01 00 00 82 11 93 [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 07 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 EA 0C 90 [17:57:52]RasterBufferAndPrint [17:57:52]line [17:57:52]line [17:57:52]line [17:57:52]line [17:57:52]line [17:57:52]written 0, free lines is 3312 [17:57:52]MH_Cut [17:57:52]Write to MH i2c: D1 01 00 89 11 01 6C [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: D1 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: D1 01 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: D1 01 00 89 11 00 6B [17:57:52]Write to MH i2c: 01 00 00 8A 11 9B [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:53]OFD Sender: No OFD packet to send [17:57:53]*** Cut start [17:57:53]*** Partial cut [17:57:53]*** CUTSNS_PIN = 1 [17:57:53]*** CUTSNS_PIN = 0 [17:57:53]*** Brake cut motor [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]*** Stop cut motor [17:57:54]*** Cut end [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 FF 0F B0 [17:57:54]process_action close_receipt done [17:57:54]requested_data is exist [17:57:54]produce_requested_data [17:57:54]requested_item fm.sn is exist - process it [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 11 00 00 [17:57:54]Write to MH i2c: E2 08 00 8B 11 80 11 00 00 00 00 00 00 16 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:54]Read from MH i2c: E2 17 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 8B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [17:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:54]wFMCommunicate OK [17:57:54]requested_item fd.num is exist - process it [17:57:54]SAM_PROTO_GetFieldsCounters [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 13 00 00 [17:57:54]Write to MH i2c: E2 08 00 8C 11 80 13 00 00 00 00 00 00 19 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 62 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 62 00 8C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:57:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:54]wFMCommunicate OK [17:57:54]SAM_PROTO_GetFieldsCounters done [17:57:54]requested_item shift.num is exist - process it [17:57:54]requested_item shift.opened is exist - process it [17:57:54]req_shift_opened [17:57:54]FM_GetShiftState [17:57:54]SAM_PROTO_GetShiftState [17:57:54]wFMCommunicate request_size=4 [17:57:54]MH_SAM_APDU [17:57:54]CAPDU: 80 13 01 00 [17:57:54]Write to MH i2c: E2 08 00 8D 11 80 13 01 00 00 00 00 00 1B [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0E 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 0E 00 8D 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 47 [17:57:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [17:57:54]wFMCommunicate OK [17:57:54]SAM_PROTO_GetShiftState done [17:57:54]FM_GetShiftState done [17:57:54]req_shift_opened done [17:57:54]requested_item shift.open_date is exist - process it [17:57:54]req_shift_open_date [17:57:54]req_shift_open_date done [17:57:54]produce_requested_data done [17:57:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69944,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [17:57:54]process_action_free close_receipt [17:57:54]json_value_free [17:57:54]json_value_free done [17:57:54]process_json_proto returns [17:57:54]Send response to host [17:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69944,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [17:57:54]free response buf [17:57:54]execute_script done [17:57:54]execute_script returns [17:57:54]free content buf [17:57:54]Sock 9.Close socket [17:57:54]Sock 9.Thread stoped [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:19]accept exits with 7 [18:02:19]New connection [18:02:19]New thread 3067170148 created [18:02:19]Thread 3067026788 joined [18:02:19]Waiting for new connection... [18:02:19] Sock 7.Parse request [18:02:19]Sock 7.Check first char [18:02:19]Sock 7.First char is OK [18:02:19]request: POST /json_proto HTTP/1.0 [18:02:19]Method: POST [18:02:19]URL: /json_proto [18:02:19]Method is POST - this is cgi request [18:02:19]url: /json_proto [18:02:19]query_string will be loaded in cgi processing [18:02:19]execute_cgi json_proto POST (null) [18:02:19]execute_cgi path=json_proto method=POST [18:02:19]POST find Content-Length [18:02:19]Host: 172.17.50.3:8080 [18:02:19]Content-Length: 689 [18:02:19]Content-Type: application/json [18:02:19] [18:02:19]POST finish read [18:02:19]Found Content-Length = 689 [18:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:19]execute_script... [18:02:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:19]POST & json_proto [18:02:19]process_json_proto [18:02:19]json parsed OK: [18:02:19]protocol is kg_v1.0 [18:02:19]action value=close_receipt [18:02:19]process_action close_receipt [18:02:19]cmd_close_receipt [18:02:19]MH_GetDate [18:02:19]Write to MH i2c: F0 00 00 8E 11 8E [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: F0 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: F0 09 00 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: F0 09 00 8E 11 00 2C 97 16 67 6B 98 1E 66 5E [18:02:19]GetLastDocTimeStamp 1729533471 [18:02:19]current date 1729533740 [18:02:19]FM_GetShiftState [18:02:19]SAM_PROTO_GetShiftState [18:02:19]wFMCommunicate request_size=4 [18:02:19]MH_SAM_APDU [18:02:19]CAPDU: 80 13 01 00 [18:02:19]Write to MH i2c: E2 08 00 8F 11 80 13 01 00 00 00 00 00 1D [18:02:19]Write i2c OK [18:02:19]MH_I2C_Read... [18:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:19]Read from MH i2c: E2 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 0E 00 [18:02:19]MH_I2C_Read... [18:02:19]Read from MH i2c: E2 0E 00 8F 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 49 [18:02:19]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:02:19]wFMCommunicate OK [18:02:19]SAM_PROTO_GetShiftState done [18:02:19]FM_GetShiftState done [18:02:19]opened in 1729469703 [18:02:19]opened+sec_in_day 1729556103 [18:02:19]quantity*price = 160035 [18:02:19]sum+1 = 160037 [18:02:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 335 21.10.2024 18:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69945 ФПД: 120200775704107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69945&fm=120200775704107&tin=02508201610067®Number=0000000000156251&sum=160000 [18:02:20]StoreToDocumentArchive [18:02:20]shift 194 fd 69945 [18:02:20]save to /storage/0194/doc_00069945 [18:02:20]save last doc name /storage/0194/doc_00069945 to /storage/kkm_last_doc_name [18:02:20]save OK [18:02:20]Clear old archive folders... [18:02:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:02:20]tlvbuf is 01105F30 [18:02:20]SAM_PROTO_ClearQueue [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 09 00 00 [18:02:20]Write to MH i2c: E2 08 00 9C 11 80 09 00 00 00 00 00 00 1F [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_ClearQueue done [18:02:20]KKMCreateOFDPacket [18:02:20]OFDProtocolAddRootSTLVToBuf [18:02:20]FM_MakeSignedData [18:02:20]FM_MakeSignedData [18:02:20]SAM_PROTO_SignData [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 01 02 [18:02:20]Write to MH i2c: E2 08 00 9D 11 80 0D 01 02 00 00 00 00 27 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=255 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 2C 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 11 01 [18:02:20]Write to MH i2c: E2 02 01 9E 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 2C 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 11 01 00 00 73 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=16 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6D 52 6C 89 9E 2B [18:02:20]Write to MH i2c: E2 13 00 9F 11 80 0D 02 02 0B 00 00 35 04 06 00 6D 52 6C 89 9E 2B 00 00 FC [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [18:02:20]RAPDU: 90 00 [18:02:20]wFMCommunicate OK [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 0D 03 02 [18:02:20]Write to MH i2c: E2 08 00 A0 11 80 0D 03 02 00 00 00 00 2C [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0B 00 A0 11 00 F7 F8 BF 4E 81 5E 83 83 90 00 0E [18:02:20]RAPDU: F7 F8 BF 4E 81 5E 83 83 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_SignData done [18:02:20]FM_MakeSignedData done [18:02:20]CreateOFDProtocolMessage [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 11 00 00 [18:02:20]Write to MH i2c: E2 08 00 A1 11 80 11 00 00 00 00 00 00 2C [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 17 00 A1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [18:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:02:20]wFMCommunicate OK [18:02:20]CreateOFDProtocolMessage done [18:02:20]OFDSenderStorePacket 69945 [18:02:20]StoreOFDPacket docnum=69945 [18:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AD E0 0D 01 B7 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 2C 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 11 01 00 35 04 06 00 6D 52 6C 89 9E 2B F7 F8 BF 4E 81 5E 83 83 [18:02:20]CheckFolder [18:02:20]dirname=/storage/ofd_packets [18:02:20]CheckFolder done [18:02:20]ProducePacketName [18:02:20]name=ofd_packets/00069945 [18:02:20]NVStorageSaveData ofd_packets/00069945 [18:02:20]File name is /storage/ofd_packets/00069945 [18:02:20]Write 307 bytes [18:02:20]NVStorageSaveData done [18:02:20]OFDSenderStorePacket done [18:02:20]KKMCreateOFDPacket done [18:02:20]NVStorageSaveData kkm_last_timestamp [18:02:20]File name is /storage/kkm_last_timestamp [18:02:20]Write 4 bytes [18:02:20]NVStorageSaveData done [18:02:20]ExternCall_PrintAddStr [18:02:20]wPrintStart [18:02:20]Write to MH i2c: 01 00 00 A2 11 B3 [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 FF 0F C8 [18:02:20]RasterBufferAndPrint [18:02:20]line Счет N : (1)2885707 [18:02:20]line ИНН: 02508201610067 [18:02:20]line Контрольно-Кассовый Чек [18:02:20]line ПРОДАЖА [18:02:20]line ТРК (МРК, ГНК) : 31 [18:02:20]line Товар: 2710194240 [18:02:20]line D-ENERGY Дт-К-2 [18:02:20]line 20.730 * 77.20 [18:02:20]line = 1600.36 [18:02:20]line НДС 12% НСП 1% [18:02:20]line > о реализуемом товаре [18:02:20]line ОКРУГЛЕНИЕ: -0.36 [18:02:20]line ИТОГО: 1600.00 [18:02:20]line Внесено: 1600.00 [18:02:20]line СДАЧА: 0.00 [18:02:20]line НСП 1% : 14.16 [18:02:20]line НДС 12% : 169.95 [18:02:20]line Наличными: 1600.00 [18:02:20]line Безнал.: 0.00 [18:02:20]line Место: АЗС № 85 "Партнер Нефть" [18:02:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:02:20]line СНО: Общий режим [18:02:20]line Чек 335 21.10.2024 18:02 [18:02:20]line Смена: 194 ФФД: 1.0 [18:02:20]line ЗНМ: 0300000167 [18:02:20]line РНМ: 0000000000156251 [18:02:20]line Версия ККМ: v1.0 [18:02:20]line ФМ: 0000000000963346 [18:02:20]line ФД: 69945 [18:02:20]line ФПД: 120200775704107 [18:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69945&fm=120200775704107&tin=02508201610067®Number=0000000000156251&sum=160000 [18:02:21]OFD Sender: Processing packet 69945 [packets to send 18, broken 17] [18:02:21]ProducePacketName [18:02:21]name=ofd_packets/00069945 [18:02:21]OFD Sender: To server: pG, [18:02:21]CommunicateWithHost lk.salyk.kg:30040 [18:02:21]ConnectInit lk.salyk.kg [18:02:21]written 0, free lines is 4095 [18:02:21]Connected sock=10 [18:02:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AD E0 0D 01 B7 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 2C 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 11 01 00 35 04 06 00 6D 52 6C 89 9E 2B F7 F8 BF 4E 81 5E 83 83 [18:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 46 F0 47 00 E0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 11 01 00 F4 03 04 00 CF 40 16 67 B6 04 01 00 00 56 32 35 AD 98 36 8C 2A [18:02:21]CommunicateWithHost err = 0 [18:02:21]CheckOFDResponse [18:02:21]1017 (14) - 77093643461234 [18:02:21]1041 (16) - 0000000000963346 [18:02:21]1040 (4) - 69945 [18:02:21]1012 (4) - 21.10.2024 11:53 [18:02:21]1206 (1) - 0 [18:02:21]OFD Sender: Remove packet 69945 [18:02:21]ProducePacketName [18:02:21]name=ofd_packets/00069945 [18:02:21]NVStorageDeleteData [18:02:21]Write to MH i2c: 01 00 00 CD 11 DE [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 07 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 F6 0C E7 [18:02:21]RasterBufferAndPrint [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]line [18:02:21]written 0, free lines is 3324 [18:02:21]MH_Cut [18:02:21]Write to MH i2c: D1 01 00 D4 11 01 B7 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: D1 01 00 D4 11 00 B6 [18:02:21]Write to MH i2c: 01 00 00 D5 11 E6 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]OFD Sender: No OFD packet to send [18:02:22]*** Cut start [18:02:22]*** Partial cut [18:02:22]*** CUTSNS_PIN = 1 [18:02:22]*** CUTSNS_PIN = 0 [18:02:22]*** Brake cut motor [18:02:22]Read from MH i2c: 01 [18:02:22]MH_I2C_Read... [18:02:22]*** Stop cut motor [18:02:22]*** Cut end [18:02:22]Read from MH i2c: 01 07 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 FF 0F FB [18:02:22]process_action close_receipt done [18:02:22]requested_data is exist [18:02:22]produce_requested_data [18:02:22]requested_item fm.sn is exist - process it [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 11 00 00 [18:02:22]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [18:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:02:22]wFMCommunicate OK [18:02:22]requested_item fd.num is exist - process it [18:02:22]SAM_PROTO_GetFieldsCounters [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 13 00 00 [18:02:22]Write to MH i2c: E2 08 00 D7 11 80 13 00 00 00 00 00 00 64 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:23]Read from MH i2c: E2 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 62 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 62 00 D7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetFieldsCounters done [18:02:23]requested_item shift.num is exist - process it [18:02:23]requested_item shift.opened is exist - process it [18:02:23]req_shift_opened [18:02:23]FM_GetShiftState [18:02:23]SAM_PROTO_GetShiftState [18:02:23]wFMCommunicate request_size=4 [18:02:23]MH_SAM_APDU [18:02:23]CAPDU: 80 13 01 00 [18:02:23]Write to MH i2c: E2 08 00 D8 11 80 13 01 00 00 00 00 00 66 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:23]Read from MH i2c: E2 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 D8 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 92 [18:02:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetShiftState done [18:02:23]FM_GetShiftState done [18:02:23]req_shift_opened done [18:02:23]requested_item shift.open_date is exist - process it [18:02:23]req_shift_open_date [18:02:23]req_shift_open_date done [18:02:23]produce_requested_data done [18:02:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69945,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:02:23]process_action_free close_receipt [18:02:23]json_value_free [18:02:23]json_value_free done [18:02:23]process_json_proto returns [18:02:23]Send response to host [18:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69945,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:02:23]free response buf [18:02:23]execute_script done [18:02:23]execute_script returns [18:02:23]free content buf [18:02:23]Sock 7.Close socket [18:02:23]Sock 7.Thread stoped [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:25]accept exits with 9 [18:03:25]New connection [18:03:25]New thread 3067026788 created [18:03:25]Thread 3067170148 joined [18:03:25]Waiting for new connection... [18:03:25] Sock 9.Parse request [18:03:25]Sock 9.Check first char [18:03:25]Sock 9.First char is OK [18:03:25]request: POST /json_proto HTTP/1.0 [18:03:25]Method: POST [18:03:25]URL: /json_proto [18:03:25]Method is POST - this is cgi request [18:03:25]url: /json_proto [18:03:25]query_string will be loaded in cgi processing [18:03:25]execute_cgi json_proto POST (null) [18:03:25]execute_cgi path=json_proto method=POST [18:03:25]POST find Content-Length [18:03:25]Host: 172.17.50.3:8080 [18:03:25]Content-Length: 678 [18:03:25]Content-Type: application/json [18:03:25] [18:03:25]POST finish read [18:03:25]Found Content-Length = 678 [18:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885709", "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" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]execute_script... [18:03: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)2885709", "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" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]POST & json_proto [18:03:25]process_json_proto [18:03:25]json parsed OK: [18:03:25]protocol is kg_v1.0 [18:03:25]action value=close_receipt [18:03:25]process_action close_receipt [18:03:25]cmd_close_receipt [18:03:25]MH_GetDate [18:03:25]Write to MH i2c: F0 00 00 D9 11 D9 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 D9 11 00 6F 97 16 67 6B 98 1E 66 EC [18:03:25]GetLastDocTimeStamp 1729533740 [18:03:25]current date 1729533807 [18:03:25]FM_GetShiftState [18:03:25]SAM_PROTO_GetShiftState [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 13 01 00 [18:03:25]Write to MH i2c: E2 08 00 DA 11 80 13 01 00 00 00 00 00 68 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 DA 11 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 94 [18:03:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_GetShiftState done [18:03:26]FM_GetShiftState done [18:03:26]opened in 1729469703 [18:03:26]opened+sec_in_day 1729556103 [18:03:26]quantity*price = 34052 [18:03:26]sum+1 = 34053 [18:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 336 21.10.2024 18:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69946 ФПД: 13228477515302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69946&fm=13228477515302&tin=02508201610067®Number=0000000000156251&sum=34000 [18:03:27]StoreToDocumentArchive [18:03:27]shift 194 fd 69946 [18:03:27]save to /storage/0194/doc_00069946 [18:03:27]save last doc name /storage/0194/doc_00069946 to /storage/kkm_last_doc_name [18:03:27]save OK [18:03:27]Clear old archive folders... [18:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:27]tlvbuf is 01161270 [18:03:27]SAM_PROTO_ClearQueue [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 09 00 00 [18:03:27]Write to MH i2c: E2 08 00 E7 11 80 09 00 00 00 00 00 00 6A [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [18:03:27]RAPDU: 90 00 [18:03:27]wFMCommunicate OK [18:03:27]SAM_PROTO_ClearQueue done [18:03:27]KKMCreateOFDPacket [18:03:27]OFDProtocolAddRootSTLVToBuf [18:03:27]FM_MakeSignedData [18:03:27]FM_MakeSignedData [18:03:27]SAM_PROTO_SignData [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 0D 01 02 [18:03:27]Write to MH i2c: E2 08 00 E8 11 80 0D 01 02 00 00 00 00 72 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [18:03:27]RAPDU: 90 00 [18:03:27]wFMCommunicate OK [18:03:27]wFMCommunicate request_size=255 [18:03:27]MH_SAM_APDU [18:03: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 01 00 00 F4 03 04 00 6F 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 11 01 00 35 04 06 00 0C [18:03:27]Write to MH i2c: E2 02 01 E9 11 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 01 00 00 F4 03 04 00 6F 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 11 01 00 35 04 06 00 0C 00 00 22 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [18:03:27]RAPDU: 90 00 [18:03:27]wFMCommunicate OK [18:03:27]wFMCommunicate request_size=10 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 0D 02 02 05 07 FE B4 06 26 [18:03:27]Write to MH i2c: E2 0D 00 EA 11 80 0D 02 02 05 00 07 FE B4 06 26 00 00 64 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [18:03:27]RAPDU: 90 00 [18:03:27]wFMCommunicate OK [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 0D 03 02 [18:03:27]Write to MH i2c: E2 08 00 EB 11 80 0D 03 02 00 00 00 00 77 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 0B 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 0B 00 EB 11 00 34 19 03 94 E7 0A 0B 12 90 00 6A [18:03:27]RAPDU: 34 19 03 94 E7 0A 0B 12 90 00 [18:03:27]wFMCommunicate OK [18:03:27]SAM_PROTO_SignData done [18:03:27]FM_MakeSignedData done [18:03:27]CreateOFDProtocolMessage [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 11 00 00 [18:03:27]Write to MH i2c: E2 08 00 EC 11 80 11 00 00 00 00 00 00 77 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 17 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 17 00 EC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [18:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:27]wFMCommunicate OK [18:03:27]CreateOFDProtocolMessage done [18:03:27]OFDSenderStorePacket 69946 [18:03:27]StoreOFDPacket docnum=69946 [18:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 90 07 01 9A E1 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 01 00 00 F4 03 04 00 6F 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 11 01 00 35 04 06 00 0C 07 FE B4 06 26 34 19 03 94 E7 0A 0B 12 [18:03:27]CheckFolder [18:03:27]dirname=/storage/ofd_packets [18:03:27]CheckFolder done [18:03:27]ProducePacketName [18:03:27]name=ofd_packets/00069946 [18:03:27]NVStorageSaveData ofd_packets/00069946 [18:03:27]File name is /storage/ofd_packets/00069946 [18:03:27]Write 301 bytes [18:03:27]NVStorageSaveData done [18:03:27]OFDSenderStorePacket done [18:03:27]KKMCreateOFDPacket done [18:03:27]NVStorageSaveData kkm_last_timestamp [18:03:27]File name is /storage/kkm_last_timestamp [18:03:27]Write 4 bytes [18:03:27]NVStorageSaveData done [18:03:27]ExternCall_PrintAddStr [18:03:27]wPrintStart [18:03:27]Write to MH i2c: 01 00 00 ED 11 FE [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 FF 0F 13 [18:03:27]RasterBufferAndPrint [18:03:27]line Счет N : (1)2885709 [18:03:27]line ИНН: 02508201610067 [18:03:27]line Контрольно-Кассовый Чек [18:03:27]line ПРОДАЖА [18:03:27]line ТРК (МРК, ГНК) : 42 [18:03:27]line Товар: 2710124130 [18:03:27]line Аи-92-К-5 [18:03:27]line 5.090 * 66.90 [18:03:27]line = 340.52 [18:03:27]line НДС 12% НСП 1% [18:03:27]line > о реализуемом товаре [18:03:27]line ОКРУГЛЕНИЕ: -0.52 [18:03:27]line ИТОГО: 340.00 [18:03:27]line Внесено: 340.00 [18:03:27]line СДАЧА: 0.00 [18:03:27]line НСП 1% : 3.01 [18:03:27]line НДС 12% : 36.16 [18:03:27]line Наличными: 340.00 [18:03:27]line Безнал.: 0.00 [18:03:27]line Место: АЗС № 85 "Партнер Нефть" [18:03:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:03:27]line СНО: Общий режим [18:03:27]line Чек 336 21.10.2024 18:03 [18:03:27]line Смена: 194 ФФД: 1.0 [18:03:27]line ЗНМ: 0300000167 [18:03:27]line РНМ: 0000000000156251 [18:03:27]line Версия ККМ: v1.0 [18:03:27]line ФМ: 0000000000963346 [18:03:27]line ФД: 69946 [18:03:27]line ФПД: 13228477515302 [18:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180327&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69946&fm=13228477515302&tin=02508201610067®Number=0000000000156251&sum=34000 [18:03:28]OFD Sender: Processing packet 69946 [packets to send 18, broken 17] [18:03:28]ProducePacketName [18:03:28]name=ofd_packets/00069946 [18:03:28]OFD Sender: To server: pG, [18:03:28]CommunicateWithHost lk.salyk.kg:30040 [18:03:28]ConnectInit lk.salyk.kg [18:03:28]written 0, free lines is 4095 [18:03:28]Connected sock=10 [18:03:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 90 07 01 9A E1 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 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 01 00 00 F4 03 04 00 6F 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 11 01 00 35 04 06 00 0C 07 FE B4 06 26 34 19 03 94 E7 0A 0B 12 [18:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C4 2E 47 00 43 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 11 01 00 F4 03 04 00 12 41 16 67 B6 04 01 00 00 5A 32 44 D0 BB 93 5D F4 [18:03:28]CommunicateWithHost err = 0 [18:03:28]CheckOFDResponse [18:03:28]1017 (14) - 77093643461234 [18:03:28]1041 (16) - 0000000000963346 [18:03:28]1040 (4) - 69946 [18:03:28]1012 (4) - 21.10.2024 11:54 [18:03:28]1206 (1) - 0 [18:03:28]OFD Sender: Remove packet 69946 [18:03:28]ProducePacketName [18:03:28]name=ofd_packets/00069946 [18:03:28]NVStorageDeleteData [18:03:28]Write to MH i2c: 01 00 00 18 12 2A [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 E3 0C 20 [18:03:28]RasterBufferAndPrint [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]line [18:03:28]written 0, free lines is 3305 [18:03:28]MH_Cut [18:03:28]Write to MH i2c: D1 01 00 1F 12 01 03 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: D1 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: D1 01 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: D1 01 00 1F 12 00 02 [18:03:28]Write to MH i2c: 01 00 00 20 12 32 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]OFD Sender: No OFD packet to send [18:03:29]*** Cut start [18:03:29]*** Partial cut [18:03:29]*** CUTSNS_PIN = 1 [18:03:29]*** CUTSNS_PIN = 0 [18:03:29]*** Brake cut motor [18:03:29]Read from MH i2c: 01 [18:03:29]MH_I2C_Read... [18:03:29]*** Stop cut motor [18:03:29]*** Cut end [18:03:29]Read from MH i2c: 01 07 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: 01 07 00 20 12 00 00 00 00 00 FF 0F 47 [18:03:29]process_action close_receipt done [18:03:29]requested_data is exist [18:03:29]produce_requested_data [18:03:29]requested_item fm.sn is exist - process it [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 11 00 00 [18:03:29]Write to MH i2c: E2 08 00 21 12 80 11 00 00 00 00 00 00 AD [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:29]Read from MH i2c: E2 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 17 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 17 00 21 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [18:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:29]wFMCommunicate OK [18:03:29]requested_item fd.num is exist - process it [18:03:29]SAM_PROTO_GetFieldsCounters [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 13 00 00 [18:03:29]Write to MH i2c: E2 08 00 22 12 80 13 00 00 00 00 00 00 B0 [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:29]Read from MH i2c: E2 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 62 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 62 00 22 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [18:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:29]wFMCommunicate OK [18:03:29]SAM_PROTO_GetFieldsCounters done [18:03:29]requested_item shift.num is exist - process it [18:03:29]requested_item shift.opened is exist - process it [18:03:29]req_shift_opened [18:03:29]FM_GetShiftState [18:03:29]SAM_PROTO_GetShiftState [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 13 01 00 [18:03:29]Write to MH i2c: E2 08 00 23 12 80 13 01 00 00 00 00 00 B2 [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:30]Read from MH i2c: E2 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 23 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DE [18:03:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:03:30]wFMCommunicate OK [18:03:30]SAM_PROTO_GetShiftState done [18:03:30]FM_GetShiftState done [18:03:30]req_shift_opened done [18:03:30]requested_item shift.open_date is exist - process it [18:03:30]req_shift_open_date [18:03:30]req_shift_open_date done [18:03:30]produce_requested_data done [18:03:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69946,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:03:30]process_action_free close_receipt [18:03:30]json_value_free [18:03:30]json_value_free done [18:03:30]process_json_proto returns [18:03:30]Send response to host [18:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69946,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:03:30]free response buf [18:03:30]execute_script done [18:03:30]execute_script returns [18:03:30]free content buf [18:03:30]Sock 9.Close socket [18:03:30]Sock 9.Thread stoped [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:36]accept exits with 7 [18:04:36]New connection [18:04:36]New thread 3067170148 created [18:04:36]Thread 3067026788 joined [18:04:36]Waiting for new connection... [18:04:36] Sock 7.Parse request [18:04:36]Sock 7.Check first char [18:04:36]Sock 7.First char is OK [18:04:36]request: POST /json_proto HTTP/1.0 [18:04:36]Method: POST [18:04:36]URL: /json_proto [18:04:36]Method is POST - this is cgi request [18:04:36]url: /json_proto [18:04:36]query_string will be loaded in cgi processing [18:04:36]execute_cgi json_proto POST (null) [18:04:36]execute_cgi path=json_proto method=POST [18:04:36]POST find Content-Length [18:04:36]Host: 172.17.50.3:8080 [18:04:36]Content-Length: 755 [18:04:36]Content-Type: application/json [18:04:36] [18:04:36]POST finish read [18:04:36]Found Content-Length = 755 [18:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:36]execute_script... [18:04: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)2885710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:36]POST & json_proto [18:04:36]process_json_proto [18:04:36]json parsed OK: [18:04:36]protocol is kg_v1.0 [18:04:36]action value=close_receipt [18:04:36]process_action close_receipt [18:04:36]cmd_close_receipt [18:04:36]MH_GetDate [18:04:36]Write to MH i2c: F0 00 00 24 12 25 [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 09 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: F0 09 00 24 12 00 B5 97 16 67 6B 98 1E 66 7E [18:04:36]GetLastDocTimeStamp 1729533807 [18:04:36]current date 1729533877 [18:04:36]FM_GetShiftState [18:04:36]SAM_PROTO_GetShiftState [18:04:36]wFMCommunicate request_size=4 [18:04:36]MH_SAM_APDU [18:04:36]CAPDU: 80 13 01 00 [18:04:36]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [18:04:36]Write i2c OK [18:04:36]MH_I2C_Read... [18:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:36]Read from MH i2c: E2 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: E2 0E 00 [18:04:36]MH_I2C_Read... [18:04:36]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E0 [18:04:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:04:36]wFMCommunicate OK [18:04:36]SAM_PROTO_GetShiftState done [18:04:36]FM_GetShiftState done [18:04:36]opened in 1729469703 [18:04:36]opened+sec_in_day 1729556103 [18:04:36]quantity*price = 0 [18:04:36]sum+1 = 1 [18:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 337 21.10.2024 18:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30109047 ФМ: 0000000000963346 ФД: 69947 ФПД: 226870726749621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69947&fm=226870726749621&tin=02508201610067®Number=0000000000156251&sum=0 [18:04:37]StoreToDocumentArchive [18:04:37]shift 194 fd 69947 [18:04:37]save to /storage/0194/doc_00069947 [18:04:37]save last doc name /storage/0194/doc_00069947 to /storage/kkm_last_doc_name [18:04:37]save OK [18:04:37]Clear old archive folders... [18:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:37]tlvbuf is B6EDD6C0 [18:04:37]SAM_PROTO_ClearQueue [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 09 00 00 [18:04:37]Write to MH i2c: E2 08 00 32 12 80 09 00 00 00 00 00 00 B6 [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:37]Read from MH i2c: E2 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 [18:04:37]MH_I2C_Read... [18:04:37]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [18:04:37]RAPDU: 90 00 [18:04:37]wFMCommunicate OK [18:04:37]SAM_PROTO_ClearQueue done [18:04:37]KKMCreateOFDPacket [18:04:37]OFDProtocolAddRootSTLVToBuf [18:04:37]FM_MakeSignedData [18:04:37]FM_MakeSignedData [18:04:37]SAM_PROTO_SignData [18:04:37]wFMCommunicate request_size=4 [18:04:37]MH_SAM_APDU [18:04:37]CAPDU: 80 0D 01 02 [18:04:37]Write to MH i2c: E2 08 00 33 12 80 0D 01 02 00 00 00 00 BE [18:04:37]Write i2c OK [18:04:37]MH_I2C_Read... [18:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 33 12 00 90 00 B9 [18:04:38]RAPDU: 90 00 [18:04:38]wFMCommunicate OK [18:04:38]wFMCommunicate request_size=255 [18:04:38]MH_SAM_APDU [18:04: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 B5 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 11 01 00 35 04 06 00 CE [18:04:38]Write to MH i2c: E2 02 01 34 12 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 B5 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 11 01 00 35 04 06 00 CE 00 00 F1 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [18:04:38]RAPDU: 90 00 [18:04:38]wFMCommunicate OK [18:04:38]wFMCommunicate request_size=10 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 0D 02 02 05 56 75 13 ED B5 [18:04:38]Write to MH i2c: E2 0D 00 35 12 80 0D 02 02 05 00 56 75 13 ED B5 00 00 4B [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [18:04:38]RAPDU: 90 00 [18:04:38]wFMCommunicate OK [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 0D 03 02 [18:04:38]Write to MH i2c: E2 08 00 36 12 80 0D 03 02 00 00 00 00 C3 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0B 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 0B 00 36 12 00 DB C5 B7 8D 41 70 8B 7C 90 00 60 [18:04:38]RAPDU: DB C5 B7 8D 41 70 8B 7C 90 00 [18:04:38]wFMCommunicate OK [18:04:38]SAM_PROTO_SignData done [18:04:38]FM_MakeSignedData done [18:04:38]CreateOFDProtocolMessage [18:04:38]wFMCommunicate request_size=4 [18:04:38]MH_SAM_APDU [18:04:38]CAPDU: 80 11 00 00 [18:04:38]Write to MH i2c: E2 08 00 37 12 80 11 00 00 00 00 00 00 C3 [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:38]Read from MH i2c: E2 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: E2 17 00 37 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [18:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:04:38]wFMCommunicate OK [18:04:38]CreateOFDProtocolMessage done [18:04:38]OFDSenderStorePacket 69947 [18:04:38]StoreOFDPacket docnum=69947 [18:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 B1 07 01 D9 97 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 B5 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 11 01 00 35 04 06 00 CE 56 75 13 ED B5 DB C5 B7 8D 41 70 8B 7C [18:04:38]CheckFolder [18:04:38]dirname=/storage/ofd_packets [18:04:38]CheckFolder done [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00069947 [18:04:38]NVStorageSaveData ofd_packets/00069947 [18:04:38]File name is /storage/ofd_packets/00069947 [18:04:38]Write 301 bytes [18:04:38]NVStorageSaveData done [18:04:38]OFDSenderStorePacket done [18:04:38]KKMCreateOFDPacket done [18:04:38]NVStorageSaveData kkm_last_timestamp [18:04:38]File name is /storage/kkm_last_timestamp [18:04:38]Write 4 bytes [18:04:38]NVStorageSaveData done [18:04:38]ExternCall_PrintAddStr [18:04:38]wPrintStart [18:04:38]Write to MH i2c: 01 00 00 38 12 4A [18:04:38]OFD Sender: Processing packet 69947 [packets to send 18, broken 17] [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00069947 [18:04:38]OFD Sender: To server: pG, [18:04:38]CommunicateWithHost lk.salyk.kg:30040 [18:04:38]ConnectInit lk.salyk.kg [18:04:38]Write i2c OK [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 [18:04:38]MH_I2C_Read... [18:04:38]Read from MH i2c: 01 07 00 38 12 00 00 00 00 00 FF 0F 5F [18:04:38]RasterBufferAndPrint [18:04:38]line Счет N : (1)2885710 [18:04:38]line ИНН: 02508201610067 [18:04:38]line Контрольно-Кассовый Чек [18:04:38]line ПРОДАЖА [18:04:38]line ТРК (МРК, ГНК) : 12 [18:04:38]line Товар: 2710124130 [18:04:38]line Аи-92-К-5 [18:04:38]line 10.000 * 0.00 [18:04:38]line = 0.00 [18:04:38]line НДС 12% НСП 1% [18:04:38]line > о реализуемом товаре [18:04:38]line ИТОГО: 0.00 [18:04:38]line НСП 1% : 0.00 [18:04:38]line НДС 12% : 0.00 [18:04:38]line Наличными: 0.00 [18:04:38]line Безнал.: 0.00 [18:04:38]line Место: АЗС № 85 "Партнер Нефть" [18:04:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:04:38]line СНО: Общий режим [18:04:38]line Чек 337 21.10.2024 18:04 [18:04:38]line Смена: 194 ФФД: 1.0 [18:04:38]line ЗНМ: 0300000167 [18:04:38]line РНМ: 0000000000156251 [18:04:38]line Версия ККМ: v1.0 [18:04:38]line Талоны: ТК ГПНА Online [18:04:38]line 30109047 [18:04:38]line ФМ: 0000000000963346 [18:04:38]line ФД: 69947 [18:04:38]line ФПД: 226870726749621 [18:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69947&fm=226870726749621&tin=02508201610067®Number=0000000000156251&sum=0 [18:04:38]Connected sock=10 [18:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 B1 07 01 D9 97 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 B5 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 11 01 00 35 04 06 00 CE 56 75 13 ED B5 DB C5 B7 8D 41 70 8B 7C [18:04:38]written 0, free lines is 4095 [18:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E9 F0 47 00 55 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 39 36 33 33 34 36 10 04 04 00 3B 11 01 00 F4 03 04 00 58 41 16 67 B6 04 01 00 00 10 02 20 53 47 62 4A C6 [18:04:38]CommunicateWithHost err = 0 [18:04:38]CheckOFDResponse [18:04:38]1017 (14) - 77093643461234 [18:04:38]1041 (16) - 0000000000963346 [18:04:38]1040 (4) - 69947 [18:04:38]1012 (4) - 21.10.2024 11:56 [18:04:38]1206 (1) - 0 [18:04:38]OFD Sender: Remove packet 69947 [18:04:38]ProducePacketName [18:04:38]name=ofd_packets/00069947 [18:04:38]NVStorageDeleteData [18:04:39]Write to MH i2c: 01 00 00 62 12 74 [18:04:39]Write i2c OK [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: 01 [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: 01 07 00 [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FD 0C 84 [18:04:39]RasterBufferAndPrint [18:04:39]line [18:04:39]line [18:04:39]line [18:04:39]line [18:04:39]line [18:04:39]written 0, free lines is 3331 [18:04:39]MH_Cut [18:04:39]Write to MH i2c: D1 01 00 69 12 01 4D [18:04:39]Write i2c OK [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: D1 [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: D1 01 00 [18:04:39]MH_I2C_Read... [18:04:39]Read from MH i2c: D1 01 00 69 12 00 4C [18:04:39]Write to MH i2c: 01 00 00 6A 12 7C [18:04:39]Write i2c OK [18:04:39]MH_I2C_Read... [18:04:39]OFD Sender: No OFD packet to send [18:04:39]*** Cut start [18:04:39]*** Partial cut [18:04:39]*** CUTSNS_PIN = 1 [18:04:39]*** CUTSNS_PIN = 0 [18:04:40]*** Brake cut motor [18:04:40]Read from MH i2c: 01 [18:04:40]MH_I2C_Read... [18:04:40]*** Stop cut motor [18:04:40]*** Cut end [18:04:40]Read from MH i2c: 01 07 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 FF 0F 91 [18:04:40]process_action close_receipt done [18:04:40]requested_data is exist [18:04:40]produce_requested_data [18:04:40]requested_item fm.sn is exist - process it [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 11 00 00 [18:04:40]Write to MH i2c: E2 08 00 6B 12 80 11 00 00 00 00 00 00 F7 [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 17 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 17 00 6B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [18:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:04:40]wFMCommunicate OK [18:04:40]requested_item fd.num is exist - process it [18:04:40]SAM_PROTO_GetFieldsCounters [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 13 00 00 [18:04:40]Write to MH i2c: E2 08 00 6C 12 80 13 00 00 00 00 00 00 FA [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 62 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 62 00 6C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [18:04:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:40]wFMCommunicate OK [18:04:40]SAM_PROTO_GetFieldsCounters done [18:04:40]requested_item shift.num is exist - process it [18:04:40]requested_item shift.opened is exist - process it [18:04:40]req_shift_opened [18:04:40]FM_GetShiftState [18:04:40]SAM_PROTO_GetShiftState [18:04:40]wFMCommunicate request_size=4 [18:04:40]MH_SAM_APDU [18:04:40]CAPDU: 80 13 01 00 [18:04:40]Write to MH i2c: E2 08 00 6D 12 80 13 01 00 00 00 00 00 FC [18:04:40]Write i2c OK [18:04:40]MH_I2C_Read... [18:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:40]Read from MH i2c: E2 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 0E 00 [18:04:40]MH_I2C_Read... [18:04:40]Read from MH i2c: E2 0E 00 6D 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 28 [18:04:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:04:40]wFMCommunicate OK [18:04:40]SAM_PROTO_GetShiftState done [18:04:40]FM_GetShiftState done [18:04:40]req_shift_opened done [18:04:40]requested_item shift.open_date is exist - process it [18:04:40]req_shift_open_date [18:04:40]req_shift_open_date done [18:04:40]produce_requested_data done [18:04:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69947,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:04:40]process_action_free close_receipt [18:04:40]json_value_free [18:04:40]json_value_free done [18:04:40]process_json_proto returns [18:04:40]Send response to host [18:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69947,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:04:40]free response buf [18:04:40]execute_script done [18:04:40]execute_script returns [18:04:40]free content buf [18:04:40]Sock 7.Close socket [18:04:40]Sock 7.Thread stoped [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:04]accept exits with 9 [18:05:04]New connection [18:05:04]New thread 3067026788 created [18:05:04]Thread 3067170148 joined [18:05:04]Waiting for new connection... [18:05:04] Sock 9.Parse request [18:05:04]Sock 9.Check first char [18:05:04]Sock 9.First char is OK [18:05:04]request: POST /json_proto HTTP/1.0 [18:05:04]Method: POST [18:05:04]URL: /json_proto [18:05:04]Method is POST - this is cgi request [18:05:04]url: /json_proto [18:05:04]query_string will be loaded in cgi processing [18:05:04]execute_cgi json_proto POST (null) [18:05:04]execute_cgi path=json_proto method=POST [18:05:04]POST find Content-Length [18:05:04]Host: 172.17.50.3:8080 [18:05:04]Content-Length: 686 [18:05:04]Content-Type: application/json [18:05:04] [18:05:04]POST finish read [18:05:04]Found Content-Length = 686 [18:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 57.330, "sum" : 2230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2230.00, "payments": [ { "type": 0, "sum" : 2230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:04]execute_script... [18: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)2885708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 57.330, "sum" : 2230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2230.00, "payments": [ { "type": 0, "sum" : 2230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:04]POST & json_proto [18:05:04]process_json_proto [18:05:04]json parsed OK: [18:05:04]protocol is kg_v1.0 [18:05:04]action value=close_receipt [18:05:04]process_action close_receipt [18:05:04]cmd_close_receipt [18:05:04]MH_GetDate [18:05:04]Write to MH i2c: F0 00 00 6E 12 6F [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: F0 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: F0 09 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: F0 09 00 6E 12 00 D2 97 16 67 6B 98 1E 66 E5 [18:05:04]GetLastDocTimeStamp 1729533877 [18:05:04]current date 1729533906 [18:05:04]FM_GetShiftState [18:05:04]SAM_PROTO_GetShiftState [18:05:04]wFMCommunicate request_size=4 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 13 01 00 [18:05:04]Write to MH i2c: E2 08 00 6F 12 80 13 01 00 00 00 00 00 FE [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 0E 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 0E 00 6F 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2A [18:05:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:05:04]wFMCommunicate OK [18:05:04]SAM_PROTO_GetShiftState done [18:05:04]FM_GetShiftState done [18:05:04]opened in 1729469703 [18:05:04]opened+sec_in_day 1729556103 [18:05:04]quantity*price = 223013 [18:05:04]sum+1 = 223015 [18:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2230.00 Внесено: 3000.00 СДАЧА: 770.00 НСП 1% : 19.74 НДС 12% : 236.83 Наличными: 2230.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 338 21.10.2024 18:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69948 ФПД: 152714930522530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69948&fm=152714930522530&tin=02508201610067®Number=0000000000156251&sum=223000 [18:05:06]StoreToDocumentArchive [18:05:06]shift 194 fd 69948 [18:05:06]save to /storage/0194/doc_00069948 [18:05:06]save last doc name /storage/0194/doc_00069948 to /storage/kkm_last_doc_name [18:05:06]save OK [18:05:06]Clear old archive folders... [18:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:05:06]tlvbuf is 0110EC90 [18:05:06]SAM_PROTO_ClearQueue [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 09 00 00 [18:05:06]Write to MH i2c: E2 08 00 7C 12 80 09 00 00 00 00 00 00 00 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [18:05:06]RAPDU: 90 00 [18:05:06]wFMCommunicate OK [18:05:06]SAM_PROTO_ClearQueue done [18:05:06]KKMCreateOFDPacket [18:05:06]OFDProtocolAddRootSTLVToBuf [18:05:06]FM_MakeSignedData [18:05:06]FM_MakeSignedData [18:05:06]SAM_PROTO_SignData [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 0D 01 02 [18:05:06]Write to MH i2c: E2 08 00 7D 12 80 0D 01 02 00 00 00 00 08 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 7D 12 00 90 00 03 [18:05:06]RAPDU: 90 00 [18:05:06]wFMCommunicate OK [18:05:06]wFMCommunicate request_size=255 [18:05:06]MH_SAM_APDU [18:05:06]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 33 FF 03 08 00 03 F2 DF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 26 67 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 67 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 5C 00 00 00 00 07 04 06 00 18 67 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D2 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 11 01 00 35 04 06 00 8A E4 [18:05:06]Write to MH i2c: E2 02 01 7E 12 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 33 FF 03 08 00 03 F2 DF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 26 67 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 67 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 5C 00 00 00 00 07 04 06 00 18 67 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D2 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 11 01 00 35 04 06 00 8A E4 00 00 B3 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 7E 12 00 90 00 04 [18:05:06]RAPDU: 90 00 [18:05:06]wFMCommunicate OK [18:05:06]wFMCommunicate request_size=9 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 0D 02 02 04 B7 2F 89 A2 [18:05:06]Write to MH i2c: E2 0C 00 7F 12 80 0D 02 02 04 00 B7 2F 89 A2 00 00 24 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [18:05:06]RAPDU: 90 00 [18:05:06]wFMCommunicate OK [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 0D 03 02 [18:05:06]Write to MH i2c: E2 08 00 80 12 80 0D 03 02 00 00 00 00 0D [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 0B 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 0B 00 80 12 00 14 7C 0E C6 3D 71 E6 2E 90 00 34 [18:05:06]RAPDU: 14 7C 0E C6 3D 71 E6 2E 90 00 [18:05:06]wFMCommunicate OK [18:05:06]SAM_PROTO_SignData done [18:05:06]FM_MakeSignedData done [18:05:06]CreateOFDProtocolMessage [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 11 00 00 [18:05:06]Write to MH i2c: E2 08 00 81 12 80 11 00 00 00 00 00 00 0D [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 17 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 17 00 81 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [18:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:05:06]wFMCommunicate OK [18:05:06]CreateOFDProtocolMessage done [18:05:06]OFDSenderStorePacket 69948 [18:05:06]StoreOFDPacket docnum=69948 [18:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 27 55 06 01 95 C9 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 33 FF 03 08 00 03 F2 DF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 26 67 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 67 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 5C 00 00 00 00 07 04 06 00 18 67 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D2 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 11 01 00 35 04 06 00 8A E4 B7 2F 89 A2 14 7C 0E C6 3D 71 E6 2E [18:05:06]CheckFolder [18:05:06]dirname=/storage/ofd_packets [18:05:06]CheckFolder done [18:05:06]ProducePacketName [18:05:06]name=ofd_packets/00069948 [18:05:06]NVStorageSaveData ofd_packets/00069948 [18:05:06]File name is /storage/ofd_packets/00069948 [18:05:06]Write 300 bytes [18:05:06]NVStorageSaveData done [18:05:06]OFDSenderStorePacket done [18:05:06]KKMCreateOFDPacket done [18:05:06]NVStorageSaveData kkm_last_timestamp [18:05:06]File name is /storage/kkm_last_timestamp [18:05:06]Write 4 bytes [18:05:06]NVStorageSaveData done [18:05:06]ExternCall_PrintAddStr [18:05:06]wPrintStart [18:05:06]Write to MH i2c: 01 00 00 82 12 94 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: 01 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: 01 07 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: 01 07 00 82 12 00 00 00 00 00 FF 0F A9 [18:05:06]RasterBufferAndPrint [18:05:06]line Счет N : (1)2885708 [18:05:06]line ИНН: 02508201610067 [18:05:06]line Контрольно-Кассовый Чек [18:05:06]line ПРОДАЖА [18:05:06]line ТРК (МРК, ГНК) : 71 [18:05:06]line Товар: 2711129700 [18:05:06]line ГАЗ-К-3 [18:05:06]line 57.330 * 38.90 [18:05:06]line = 2230.14 [18:05:06]line НДС 12% НСП 1% [18:05:06]line > о реализуемом товаре [18:05:06]line ОКРУГЛЕНИЕ: -0.14 [18:05:06]line ИТОГО: 2230.00 [18:05:06]line Внесено: 3000.00 [18:05:06]line СДАЧА: 770.00 [18:05:06]line НСП 1% : 19.74 [18:05:06]line НДС 12% : 236.83 [18:05:06]line Наличными: 2230.00 [18:05:06]line Безнал.: 0.00 [18:05:06]line Место: АЗС № 85 "Партнер Нефть" [18:05:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:05:06]line СНО: Общий режим [18:05:06]line Чек 338 21.10.2024 18:05 [18:05:06]line Смена: 194 ФФД: 1.0 [18:05:06]line ЗНМ: 0300000167 [18:05:06]line РНМ: 0000000000156251 [18:05:06]line Версия ККМ: v1.0 [18:05:06]line ФМ: 0000000000963346 [18:05:06]line ФД: 69948 [18:05:06]line ФПД: 152714930522530 [18:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180506&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69948&fm=152714930522530&tin=02508201610067®Number=0000000000156251&sum=223000 [18:05:06]OFD Sender: Processing packet 69948 [packets to send 18, broken 17] [18:05:06]ProducePacketName [18:05:06]name=ofd_packets/00069948 [18:05:06]OFD Sender: To server: pG, [18:05:06]CommunicateWithHost lk.salyk.kg:30040 [18:05:06]ConnectInit lk.salyk.kg [18:05:06]written 0, free lines is 4095 [18:05:07]Connected sock=11 [18:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 27 55 06 01 95 C9 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 33 FF 03 08 00 03 F2 DF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 26 67 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 67 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 5C 00 00 00 00 07 04 06 00 18 67 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 D2 97 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 11 01 00 35 04 06 00 8A E4 B7 2F 89 A2 14 7C 0E C6 3D 71 E6 2E [18:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 24 8C 47 00 18 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 39 36 33 33 34 36 10 04 04 00 3C 11 01 00 F4 03 04 00 75 41 16 67 B6 04 01 00 00 EF A2 2A B2 75 3A 18 79 [18:05:07]CommunicateWithHost err = 0 [18:05:07]CheckOFDResponse [18:05:07]1017 (14) - 77093643461234 [18:05:07]1041 (16) - 0000000000963346 [18:05:07]1040 (4) - 69948 [18:05:07]1012 (4) - 21.10.2024 11:56 [18:05:07]1206 (1) - 0 [18:05:07]OFD Sender: Remove packet 69948 [18:05:07]ProducePacketName [18:05:07]name=ofd_packets/00069948 [18:05:07]NVStorageDeleteData [18:05:07]Write to MH i2c: 01 00 00 AD 12 BF [18:05:07]Write i2c OK [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: 01 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: 01 07 00 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 ED 0C BF [18:05:07]RasterBufferAndPrint [18:05:07]line [18:05:07]line [18:05:07]line [18:05:07]line [18:05:07]line [18:05:07]written 0, free lines is 3315 [18:05:07]MH_Cut [18:05:07]Write to MH i2c: D1 01 00 B4 12 01 98 [18:05:07]Write i2c OK [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: D1 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: D1 01 00 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: D1 01 00 B4 12 00 97 [18:05:07]Write to MH i2c: 01 00 00 B5 12 C7 [18:05:07]Write i2c OK [18:05:07]MH_I2C_Read... [18:05:07]OFD Sender: No OFD packet to send [18:05:08]*** Cut start [18:05:08]*** Partial cut [18:05:08]*** CUTSNS_PIN = 1 [18:05:08]*** CUTSNS_PIN = 0 [18:05:08]*** Brake cut motor [18:05:08]Read from MH i2c: 01 [18:05:08]MH_I2C_Read... [18:05:08]*** Stop cut motor [18:05:08]*** Cut end [18:05:08]Read from MH i2c: 01 07 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [18:05:08]process_action close_receipt done [18:05:08]requested_data is exist [18:05:08]produce_requested_data [18:05:08]requested_item fm.sn is exist - process it [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 11 00 00 [18:05:08]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 17 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 17 00 B6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [18:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:05:08]wFMCommunicate OK [18:05:08]requested_item fd.num is exist - process it [18:05:08]SAM_PROTO_GetFieldsCounters [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 13 00 00 [18:05:08]Write to MH i2c: E2 08 00 B7 12 80 13 00 00 00 00 00 00 45 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 62 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 62 00 B7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:08]wFMCommunicate OK [18:05:08]SAM_PROTO_GetFieldsCounters done [18:05:08]requested_item shift.num is exist - process it [18:05:08]requested_item shift.opened is exist - process it [18:05:08]req_shift_opened [18:05:08]FM_GetShiftState [18:05:08]SAM_PROTO_GetShiftState [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 13 01 00 [18:05:08]Write to MH i2c: E2 08 00 B8 12 80 13 01 00 00 00 00 00 47 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 B8 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 73 [18:05:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:05:08]wFMCommunicate OK [18:05:08]SAM_PROTO_GetShiftState done [18:05:08]FM_GetShiftState done [18:05:08]req_shift_opened done [18:05:08]requested_item shift.open_date is exist - process it [18:05:08]req_shift_open_date [18:05:08]req_shift_open_date done [18:05:08]produce_requested_data done [18:05:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69948,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:05:08]process_action_free close_receipt [18:05:08]json_value_free [18:05:08]json_value_free done [18:05:08]process_json_proto returns [18:05:08]Send response to host [18:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69948,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:05:08]free response buf [18:05:08]execute_script done [18:05:08]execute_script returns [18:05:08]free content buf [18:05:08]Sock 9.Close socket [18:05:08]Sock 9.Thread stoped [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]accept exits with 7 [18:06:57]New connection [18:06:57]New thread 3067170148 created [18:06:57]Thread 3067026788 joined [18:06:57]Waiting for new connection... [18:06:57] Sock 7.Parse request [18:06:57]Sock 7.Check first char [18:06:57]Sock 7.First char is OK [18:06:57]request: POST /json_proto HTTP/1.0 [18:06:57]Method: POST [18:06:57]URL: /json_proto [18:06:57]Method is POST - this is cgi request [18:06:57]url: /json_proto [18:06:57]query_string will be loaded in cgi processing [18:06:57]execute_cgi json_proto POST (null) [18:06:57]execute_cgi path=json_proto method=POST [18:06:57]POST find Content-Length [18:06:57]Host: 172.17.50.3:8080 [18:06:57]Content-Length: 683 [18:06:57]Content-Type: application/json [18:06:57] [18:06:57]POST finish read [18:06:57]Found Content-Length = 683 [18:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:06:57]execute_script... [18:06: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)2885711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:06:57]POST & json_proto [18:06:57]process_json_proto [18:06:57]json parsed OK: [18:06:57]protocol is kg_v1.0 [18:06:57]action value=close_receipt [18:06:57]process_action close_receipt [18:06:57]cmd_close_receipt [18:06:57]MH_GetDate [18:06:57]Write to MH i2c: F0 00 00 B9 12 BA [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 09 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 09 00 B9 12 00 42 98 16 67 6B 98 1E 66 A1 [18:06:57]GetLastDocTimeStamp 1729533906 [18:06:57]current date 1729534018 [18:06:57]FM_GetShiftState [18:06:57]SAM_PROTO_GetShiftState [18:06:57]wFMCommunicate request_size=4 [18:06:57]MH_SAM_APDU [18:06:57]CAPDU: 80 13 01 00 [18:06:57]Write to MH i2c: E2 08 00 BA 12 80 13 01 00 00 00 00 00 49 [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:57]Read from MH i2c: E2 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: E2 0E 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: E2 0E 00 BA 12 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 75 [18:06:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:06:57]wFMCommunicate OK [18:06:57]SAM_PROTO_GetShiftState done [18:06:57]FM_GetShiftState done [18:06:57]opened in 1729469703 [18:06:57]opened+sec_in_day 1729556103 [18:06:57]quantity*price = 150032 [18:06:57]sum+1 = 150033 [18:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 339 21.10.2024 18:06 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69949 ФПД: 142712859589256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180658&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69949&fm=142712859589256&tin=02508201610067®Number=0000000000156251&sum=150000 [18:06:58]StoreToDocumentArchive [18:06:58]shift 194 fd 69949 [18:06:58]save to /storage/0194/doc_00069949 [18:06:58]save last doc name /storage/0194/doc_00069949 to /storage/kkm_last_doc_name [18:06:58]save OK [18:06:58]Clear old archive folders... [18:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:58]tlvbuf is B6F0F350 [18:06:58]SAM_PROTO_ClearQueue [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 09 00 00 [18:06:58]Write to MH i2c: E2 08 00 C7 12 80 09 00 00 00 00 00 00 4B [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [18:06:58]RAPDU: 90 00 [18:06:58]wFMCommunicate OK [18:06:58]SAM_PROTO_ClearQueue done [18:06:58]KKMCreateOFDPacket [18:06:58]OFDProtocolAddRootSTLVToBuf [18:06:58]FM_MakeSignedData [18:06:58]FM_MakeSignedData [18:06:58]SAM_PROTO_SignData [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 0D 01 02 [18:06:58]Write to MH i2c: E2 08 00 C8 12 80 0D 01 02 00 00 00 00 53 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [18:06:58]RAPDU: 90 00 [18:06:58]wFMCommunicate OK [18:06:58]wFMCommunicate request_size=255 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 53 01 00 00 F4 03 04 00 42 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 11 01 00 35 04 06 00 81 [18:06:58]Write to MH i2c: E2 02 01 C9 12 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 53 01 00 00 F4 03 04 00 42 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 11 01 00 35 04 06 00 81 00 00 7C [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [18:06:58]RAPDU: 90 00 [18:06:58]wFMCommunicate OK [18:06:58]wFMCommunicate request_size=10 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 0D 02 02 05 CB ED 4C FA 88 [18:06:58]Write to MH i2c: E2 0D 00 CA 12 80 0D 02 02 05 00 CB ED 4C FA 88 00 00 E6 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [18:06:59]RAPDU: 90 00 [18:06:59]wFMCommunicate OK [18:06:59]wFMCommunicate request_size=4 [18:06:59]MH_SAM_APDU [18:06:59]CAPDU: 80 0D 03 02 [18:06:59]Write to MH i2c: E2 08 00 CB 12 80 0D 03 02 00 00 00 00 58 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 0B 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 0B 00 CB 12 00 70 59 75 18 9F FA FA D3 90 00 15 [18:06:59]RAPDU: 70 59 75 18 9F FA FA D3 90 00 [18:06:59]wFMCommunicate OK [18:06:59]SAM_PROTO_SignData done [18:06:59]FM_MakeSignedData done [18:06:59]CreateOFDProtocolMessage [18:06:59]wFMCommunicate request_size=4 [18:06:59]MH_SAM_APDU [18:06:59]CAPDU: 80 11 00 00 [18:06:59]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 17 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [18:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:06:59]wFMCommunicate OK [18:06:59]CreateOFDProtocolMessage done [18:06:59]OFDSenderStorePacket 69949 [18:06:59]StoreOFDPacket docnum=69949 [18:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 42 07 01 AF CA 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 53 01 00 00 F4 03 04 00 42 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 11 01 00 35 04 06 00 81 CB ED 4C FA 88 70 59 75 18 9F FA FA D3 [18:06:59]CheckFolder [18:06:59]dirname=/storage/ofd_packets [18:06:59]CheckFolder done [18:06:59]ProducePacketName [18:06:59]name=ofd_packets/00069949 [18:06:59]NVStorageSaveData ofd_packets/00069949 [18:06:59]File name is /storage/ofd_packets/00069949 [18:06:59]Write 301 bytes [18:06:59]NVStorageSaveData done [18:06:59]OFDSenderStorePacket done [18:06:59]KKMCreateOFDPacket done [18:06:59]NVStorageSaveData kkm_last_timestamp [18:06:59]File name is /storage/kkm_last_timestamp [18:06:59]Write 4 bytes [18:06:59]NVStorageSaveData done [18:06:59]ExternCall_PrintAddStr [18:06:59]wPrintStart [18:06:59]Write to MH i2c: 01 00 00 CD 12 DF [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [18:06:59]RasterBufferAndPrint [18:06:59]line Счет N : (1)2885711 [18:06:59]line ИНН: 02508201610067 [18:06:59]line Контрольно-Кассовый Чек [18:06:59]line ПРОДАЖА [18:06:59]line ТРК (МРК, ГНК) : 13 [18:06:59]line Товар: 2710124500 [18:06:59]line Аи-95-К-5 [18:06:59]line 20.220 * 74.20 [18:06:59]line = 1500.32 [18:06:59]line НДС 12% НСП 1% [18:06:59]line > о реализуемом товаре [18:06:59]line ОКРУГЛЕНИЕ: -0.32 [18:06:59]line ИТОГО: 1500.00 [18:06:59]line Внесено: 1500.00 [18:06:59]line СДАЧА: 0.00 [18:06:59]line НСП 1% : 13.28 [18:06:59]line НДС 12% : 159.33 [18:06:59]line Наличными: 1500.00 [18:06:59]line Безнал.: 0.00 [18:06:59]line Место: АЗС № 85 "Партнер Нефть" [18:06:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:06:59]line СНО: Общий режим [18:06:59]line Чек 339 21.10.2024 18:06 [18:06:59]line Смена: 194 ФФД: 1.0 [18:06:59]line ЗНМ: 0300000167 [18:06:59]line РНМ: 0000000000156251 [18:06:59]line Версия ККМ: v1.0 [18:06:59]line ФМ: 0000000000963346 [18:06:59]line ФД: 69949 [18:06:59]line ФПД: 142712859589256 [18:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180658&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69949&fm=142712859589256&tin=02508201610067®Number=0000000000156251&sum=150000 [18:06:59]OFD Sender: Processing packet 69949 [packets to send 18, broken 17] [18:06:59]ProducePacketName [18:06:59]name=ofd_packets/00069949 [18:06:59]OFD Sender: To server: pG, [18:06:59]CommunicateWithHost lk.salyk.kg:30040 [18:06:59]ConnectInit lk.salyk.kg [18:06:59]written 0, free lines is 4095 [18:06:59]Connected sock=10 [18:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 42 07 01 AF CA 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 53 01 00 00 F4 03 04 00 42 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 11 01 00 35 04 06 00 81 CB ED 4C FA 88 70 59 75 18 9F FA FA D3 [18:06:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B2 92 47 00 16 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 11 01 00 F4 03 04 00 E5 41 16 67 B6 04 01 00 00 75 BC 8F B5 64 E3 3C B5 [18:06:59]CommunicateWithHost err = 0 [18:06:59]CheckOFDResponse [18:06:59]1017 (14) - 77093643461234 [18:06:59]1041 (16) - 0000000000963346 [18:06:59]1040 (4) - 69949 [18:06:59]1012 (4) - 21.10.2024 11:58 [18:06:59]1206 (1) - 0 [18:06:59]OFD Sender: Remove packet 69949 [18:06:59]ProducePacketName [18:06:59]name=ofd_packets/00069949 [18:06:59]NVStorageDeleteData [18:06:59]Write to MH i2c: 01 00 00 F8 12 0A [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 EA 0C 07 [18:06:59]RasterBufferAndPrint [18:06:59]line [18:06:59]line [18:06:59]line [18:06:59]line [18:06:59]line [18:06:59]written 0, free lines is 3312 [18:06:59]MH_Cut [18:06:59]Write to MH i2c: D1 01 00 FF 12 01 E3 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: D1 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: D1 01 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: D1 01 00 FF 12 00 E2 [18:06:59]Write to MH i2c: 01 00 00 00 13 13 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:07:00]OFD Sender: No OFD packet to send [18:07:00]*** Cut start [18:07:00]*** Partial cut [18:07:00]*** CUTSNS_PIN = 1 [18:07:00]*** CUTSNS_PIN = 0 [18:07:00]*** Brake cut motor [18:07:01]Read from MH i2c: 01 [18:07:01]MH_I2C_Read... [18:07:01]*** Stop cut motor [18:07:01]*** Cut end [18:07:01]Read from MH i2c: 01 07 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 FF 0F 28 [18:07:01]process_action close_receipt done [18:07:01]requested_data is exist [18:07:01]produce_requested_data [18:07:01]requested_item fm.sn is exist - process it [18:07:01]wFMCommunicate request_size=4 [18:07:01]MH_SAM_APDU [18:07:01]CAPDU: 80 11 00 00 [18:07:01]Write to MH i2c: E2 08 00 01 13 80 11 00 00 00 00 00 00 8E [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:01]Read from MH i2c: E2 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 17 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 17 00 01 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [18:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:01]wFMCommunicate OK [18:07:01]requested_item fd.num is exist - process it [18:07:01]SAM_PROTO_GetFieldsCounters [18:07:01]wFMCommunicate request_size=4 [18:07:01]MH_SAM_APDU [18:07:01]CAPDU: 80 13 00 00 [18:07:01]Write to MH i2c: E2 08 00 02 13 80 13 00 00 00 00 00 00 91 [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:01]Read from MH i2c: E2 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 62 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 62 00 02 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:01]wFMCommunicate OK [18:07:01]SAM_PROTO_GetFieldsCounters done [18:07:01]requested_item shift.num is exist - process it [18:07:01]requested_item shift.opened is exist - process it [18:07:01]req_shift_opened [18:07:01]FM_GetShiftState [18:07:01]SAM_PROTO_GetShiftState [18:07:01]wFMCommunicate request_size=4 [18:07:01]MH_SAM_APDU [18:07:01]CAPDU: 80 13 01 00 [18:07:01]Write to MH i2c: E2 08 00 03 13 80 13 01 00 00 00 00 00 93 [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:01]Read from MH i2c: E2 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 0E 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 0E 00 03 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [18:07:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:07:01]wFMCommunicate OK [18:07:01]SAM_PROTO_GetShiftState done [18:07:01]FM_GetShiftState done [18:07:01]req_shift_opened done [18:07:01]requested_item shift.open_date is exist - process it [18:07:01]req_shift_open_date [18:07:01]req_shift_open_date done [18:07:01]produce_requested_data done [18:07:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69949,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:07:01]process_action_free close_receipt [18:07:01]json_value_free [18:07:01]json_value_free done [18:07:01]process_json_proto returns [18:07:01]Send response to host [18:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69949,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:07:01]free response buf [18:07:01]execute_script done [18:07:01]execute_script returns [18:07:01]free content buf [18:07:01]Sock 7.Close socket [18:07:01]Sock 7.Thread stoped [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:22]accept exits with 9 [18:07:22]New connection [18:07:22]New thread 3067026788 created [18:07:22]Thread 3067170148 joined [18:07:22]Waiting for new connection... [18:07:22] Sock 9.Parse request [18:07:22]Sock 9.Check first char [18:07:22]Sock 9.First char is OK [18:07:22]request: POST /json_proto HTTP/1.0 [18:07:22]Method: POST [18:07:22]URL: /json_proto [18:07:22]Method is POST - this is cgi request [18:07:22]url: /json_proto [18:07:22]query_string will be loaded in cgi processing [18:07:22]execute_cgi json_proto POST (null) [18:07:22]execute_cgi path=json_proto method=POST [18:07:22]POST find Content-Length [18:07:22]Host: 172.17.50.3:8080 [18:07:22]Content-Length: 683 [18:07:22]Content-Type: application/json [18:07:22] [18:07:22]POST finish read [18:07:22]Found Content-Length = 683 [18:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885712", "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" : 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" ] } } [18:07:22]execute_script... [18:07:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885712", "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" : 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" ] } } [18:07:22]POST & json_proto [18:07:22]process_json_proto [18:07:22]json parsed OK: [18:07:22]protocol is kg_v1.0 [18:07:22]action value=close_receipt [18:07:22]process_action close_receipt [18:07:22]cmd_close_receipt [18:07:22]MH_GetDate [18:07:22]Write to MH i2c: F0 00 00 04 13 06 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 04 13 00 5B 98 16 67 6B 98 1E 66 06 [18:07:22]GetLastDocTimeStamp 1729534018 [18:07:22]current date 1729534043 [18:07:22]FM_GetShiftState [18:07:22]SAM_PROTO_GetShiftState [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 01 00 [18:07:22]Write to MH i2c: E2 08 00 05 13 80 13 01 00 00 00 00 00 95 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 05 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C1 [18:07:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetShiftState done [18:07:22]FM_GetShiftState done [18:07:22]opened in 1729469703 [18:07:22]opened+sec_in_day 1729556103 [18:07:22]quantity*price = 200043 [18:07:22]sum+1 = 200044 [18:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 340 21.10.2024 18:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69950 ФПД: 192462873963374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69950&fm=192462873963374&tin=02508201610067®Number=0000000000156251&sum=200000 [18:07:24]StoreToDocumentArchive [18:07:24]shift 194 fd 69950 [18:07:24]save to /storage/0194/doc_00069950 [18:07:24]save last doc name /storage/0194/doc_00069950 to /storage/kkm_last_doc_name [18:07:24]save OK [18:07:24]Clear old archive folders... [18:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:24]tlvbuf is B6F8A060 [18:07:24]SAM_PROTO_ClearQueue [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 09 00 00 [18:07:24]Write to MH i2c: E2 08 00 12 13 80 09 00 00 00 00 00 00 97 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 12 13 00 90 00 99 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_ClearQueue done [18:07:24]KKMCreateOFDPacket [18:07:24]OFDProtocolAddRootSTLVToBuf [18:07:24]FM_MakeSignedData [18:07:24]FM_MakeSignedData [18:07:24]SAM_PROTO_SignData [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 01 02 [18:07:24]Write to MH i2c: E2 08 00 13 13 80 0D 01 02 00 00 00 00 9F [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 13 13 00 90 00 9A [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=255 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 01 00 00 F4 03 04 00 5C 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 11 01 00 35 04 06 00 AF [18:07:24]Write to MH i2c: E2 02 01 14 13 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 54 01 00 00 F4 03 04 00 5C 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 11 01 00 35 04 06 00 AF 00 00 57 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 14 13 00 90 00 9B [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=10 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 02 02 05 0B 41 3C 2B 6E [18:07:24]Write to MH i2c: E2 0D 00 15 13 80 0D 02 02 05 00 0B 41 3C 2B 6E 00 00 CD [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 15 13 00 90 00 9C [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 03 02 [18:07:24]Write to MH i2c: E2 08 00 16 13 80 0D 03 02 00 00 00 00 A4 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 16 13 00 40 E3 BB 77 40 8A 29 4F 90 00 3C [18:07:24]RAPDU: 40 E3 BB 77 40 8A 29 4F 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_SignData done [18:07:24]FM_MakeSignedData done [18:07:24]CreateOFDProtocolMessage [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 11 00 00 [18:07:24]Write to MH i2c: E2 08 00 17 13 80 11 00 00 00 00 00 00 A4 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 17 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [18:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:24]wFMCommunicate OK [18:07:24]CreateOFDProtocolMessage done [18:07:24]OFDSenderStorePacket 69950 [18:07:24]StoreOFDPacket docnum=69950 [18:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 53 07 01 85 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 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 54 01 00 00 F4 03 04 00 5C 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 11 01 00 35 04 06 00 AF 0B 41 3C 2B 6E 40 E3 BB 77 40 8A 29 4F [18:07:24]CheckFolder [18:07:24]dirname=/storage/ofd_packets [18:07:24]CheckFolder done [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00069950 [18:07:24]NVStorageSaveData ofd_packets/00069950 [18:07:24]File name is /storage/ofd_packets/00069950 [18:07:24]Write 301 bytes [18:07:24]NVStorageSaveData done [18:07:24]OFDSenderStorePacket done [18:07:24]KKMCreateOFDPacket done [18:07:24]NVStorageSaveData kkm_last_timestamp [18:07:24]File name is /storage/kkm_last_timestamp [18:07:24]Write 4 bytes [18:07:24]NVStorageSaveData done [18:07:24]ExternCall_PrintAddStr [18:07:24]wPrintStart [18:07:24]Write to MH i2c: 01 00 00 18 13 2B [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 18 13 00 00 00 00 00 FF 0F 40 [18:07:24]RasterBufferAndPrint [18:07:24]line Счет N : (1)2885712 [18:07:24]line ИНН: 02508201610067 [18:07:24]line Контрольно-Кассовый Чек [18:07:24]line ПРОДАЖА [18:07:24]line ТРК (МРК, ГНК) : 43 [18:07:24]line Товар: 2710124500 [18:07:24]line Аи-95-К-5 [18:07:24]line 26.960 * 74.20 [18:07:24]line = 2000.43 [18:07:24]line НДС 12% НСП 1% [18:07:24]line > о реализуемом товаре [18:07:24]line ОКРУГЛЕНИЕ: -0.43 [18:07:24]line ИТОГО: 2000.00 [18:07:24]line Внесено: 2000.00 [18:07:24]line СДАЧА: 0.00 [18:07:24]line НСП 1% : 17.70 [18:07:24]line НДС 12% : 212.43 [18:07:24]line Наличными: 2000.00 [18:07:24]line Безнал.: 0.00 [18:07:24]line Место: АЗС № 85 "Партнер Нефть" [18:07:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:07:24]line СНО: Общий режим [18:07:24]line Чек 340 21.10.2024 18:07 [18:07:24]line Смена: 194 ФФД: 1.0 [18:07:24]line ЗНМ: 0300000167 [18:07:24]line РНМ: 0000000000156251 [18:07:24]line Версия ККМ: v1.0 [18:07:24]line ФМ: 0000000000963346 [18:07:24]line ФД: 69950 [18:07:24]line ФПД: 192462873963374 [18:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69950&fm=192462873963374&tin=02508201610067®Number=0000000000156251&sum=200000 [18:07:24]OFD Sender: Processing packet 69950 [packets to send 18, broken 17] [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00069950 [18:07:24]OFD Sender: To server: pG, [18:07:24]CommunicateWithHost lk.salyk.kg:30040 [18:07:24]ConnectInit lk.salyk.kg [18:07:24]written 0, free lines is 4095 [18:07:25]Connected sock=10 [18:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 53 07 01 85 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 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 54 01 00 00 F4 03 04 00 5C 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 11 01 00 35 04 06 00 AF 0B 41 3C 2B 6E 40 E3 BB 77 40 8A 29 4F [18:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 16 2E 47 00 4E 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 39 36 33 33 34 36 10 04 04 00 3E 11 01 00 F4 03 04 00 FF 41 16 67 B6 04 01 00 00 5A 3E ED 92 7E B7 7A 2D [18:07:25]CommunicateWithHost err = 0 [18:07:25]CheckOFDResponse [18:07:25]1017 (14) - 77093643461234 [18:07:25]1041 (16) - 0000000000963346 [18:07:25]1040 (4) - 69950 [18:07:25]1012 (4) - 21.10.2024 11:58 [18:07:25]1206 (1) - 0 [18:07:25]OFD Sender: Remove packet 69950 [18:07:25]ProducePacketName [18:07:25]name=ofd_packets/00069950 [18:07:25]NVStorageDeleteData [18:07:25]Write to MH i2c: 01 00 00 43 13 56 [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 07 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 07 00 43 13 00 00 00 00 00 F3 0C 5C [18:07:25]RasterBufferAndPrint [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]written 0, free lines is 3321 [18:07:25]MH_Cut [18:07:25]Write to MH i2c: D1 01 00 4A 13 01 2F [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 01 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 01 00 4A 13 00 2E [18:07:25]Write to MH i2c: 01 00 00 4B 13 5E [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]OFD Sender: No OFD packet to send [18:07:26]*** Cut start [18:07:26]*** Partial cut [18:07:26]*** CUTSNS_PIN = 1 [18:07:26]*** CUTSNS_PIN = 0 [18:07:26]*** Brake cut motor [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]*** Stop cut motor [18:07:26]*** Cut end [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 FF 0F 73 [18:07:26]process_action close_receipt done [18:07:26]requested_data is exist [18:07:26]produce_requested_data [18:07:26]requested_item fm.sn is exist - process it [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 11 00 00 [18:07:26]Write to MH i2c: E2 08 00 4C 13 80 11 00 00 00 00 00 00 D9 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 4C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [18:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:07:26]wFMCommunicate OK [18:07:26]requested_item fd.num is exist - process it [18:07:26]SAM_PROTO_GetFieldsCounters [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 00 00 [18:07:26]Write to MH i2c: E2 08 00 4D 13 80 13 00 00 00 00 00 00 DC [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 4D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [18:07:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetFieldsCounters done [18:07:26]requested_item shift.num is exist - process it [18:07:26]requested_item shift.opened is exist - process it [18:07:26]req_shift_opened [18:07:26]FM_GetShiftState [18:07:26]SAM_PROTO_GetShiftState [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 01 00 [18:07:26]Write to MH i2c: E2 08 00 4E 13 80 13 01 00 00 00 00 00 DE [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 4E 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0A [18:07:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetShiftState done [18:07:26]FM_GetShiftState done [18:07:26]req_shift_opened done [18:07:26]requested_item shift.open_date is exist - process it [18:07:26]req_shift_open_date [18:07:26]req_shift_open_date done [18:07:26]produce_requested_data done [18:07:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69950,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:07:26]process_action_free close_receipt [18:07:26]json_value_free [18:07:26]json_value_free done [18:07:26]process_json_proto returns [18:07:26]Send response to host [18:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69950,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:07:26]free response buf [18:07:26]execute_script done [18:07:26]execute_script returns [18:07:26]free content buf [18:07:26]Sock 9.Close socket [18:07:26]Sock 9.Thread stoped [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:13]accept exits with 7 [18:09:13]New connection [18:09:13]New thread 3067170148 created [18:09:13]Thread 3067026788 joined [18:09:13]Waiting for new connection... [18:09:13] Sock 7.Parse request [18:09:13]Sock 7.Check first char [18:09:13]Sock 7.First char is OK [18:09:13]request: POST /json_proto HTTP/1.0 [18:09:13]Method: POST [18:09:13]URL: /json_proto [18:09:13]Method is POST - this is cgi request [18:09:13]url: /json_proto [18:09:13]query_string will be loaded in cgi processing [18:09:13]execute_cgi json_proto POST (null) [18:09:13]execute_cgi path=json_proto method=POST [18:09:13]POST find Content-Length [18:09:13]Host: 172.17.50.3:8080 [18:09:13]Content-Length: 679 [18:09:13]Content-Type: application/json [18:09:13] [18:09:13]POST finish read [18:09:13]Found Content-Length = 679 [18:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885713", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:13]execute_script... [18:09: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)2885713", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:13]POST & json_proto [18:09:13]process_json_proto [18:09:13]json parsed OK: [18:09:13]protocol is kg_v1.0 [18:09:13]action value=close_receipt [18:09:13]process_action close_receipt [18:09:13]cmd_close_receipt [18:09:13]MH_GetDate [18:09:13]Write to MH i2c: F0 00 00 4F 13 51 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: F0 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: F0 09 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: F0 09 00 4F 13 00 CA 98 16 67 6B 98 1E 66 C0 [18:09:13]GetLastDocTimeStamp 1729534044 [18:09:13]current date 1729534154 [18:09:13]FM_GetShiftState [18:09:13]SAM_PROTO_GetShiftState [18:09:13]wFMCommunicate request_size=4 [18:09:13]MH_SAM_APDU [18:09:13]CAPDU: 80 13 01 00 [18:09:13]Write to MH i2c: E2 08 00 50 13 80 13 01 00 00 00 00 00 E0 [18:09:13]Write i2c OK [18:09:13]MH_I2C_Read... [18:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:13]Read from MH i2c: E2 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 0E 00 [18:09:13]MH_I2C_Read... [18:09:13]Read from MH i2c: E2 0E 00 50 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0C [18:09:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:09:13]wFMCommunicate OK [18:09:13]SAM_PROTO_GetShiftState done [18:09:13]FM_GetShiftState done [18:09:13]opened in 1729469703 [18:09:13]opened+sec_in_day 1729556103 [18:09:13]quantity*price = 70044 [18:09:13]sum+1 = 70045 [18:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 341 21.10.2024 18:09 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69951 ФПД: 25647672050975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69951&fm=25647672050975&tin=02508201610067®Number=0000000000156251&sum=70000 [18:09:14]StoreToDocumentArchive [18:09:14]shift 194 fd 69951 [18:09:14]save to /storage/0194/doc_00069951 [18:09:14]save last doc name /storage/0194/doc_00069951 to /storage/kkm_last_doc_name [18:09:14]save OK [18:09:14]Clear old archive folders... [18:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:14]tlvbuf is 01163AB0 [18:09:14]SAM_PROTO_ClearQueue [18:09:14]wFMCommunicate request_size=4 [18:09:14]MH_SAM_APDU [18:09:14]CAPDU: 80 09 00 00 [18:09:14]Write to MH i2c: E2 08 00 5D 13 80 09 00 00 00 00 00 00 E2 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 5D 13 00 90 00 E4 [18:09:14]RAPDU: 90 00 [18:09:14]wFMCommunicate OK [18:09:14]SAM_PROTO_ClearQueue done [18:09:14]KKMCreateOFDPacket [18:09:14]OFDProtocolAddRootSTLVToBuf [18:09:14]FM_MakeSignedData [18:09:14]FM_MakeSignedData [18:09:14]SAM_PROTO_SignData [18:09:14]wFMCommunicate request_size=4 [18:09:14]MH_SAM_APDU [18:09:14]CAPDU: 80 0D 01 02 [18:09:14]Write to MH i2c: E2 08 00 5E 13 80 0D 01 02 00 00 00 00 EA [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:14]Read from MH i2c: E2 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 [18:09:14]MH_I2C_Read... [18:09:14]Read from MH i2c: E2 03 00 5E 13 00 90 00 E5 [18:09:14]RAPDU: 90 00 [18:09:14]wFMCommunicate OK [18:09:14]wFMCommunicate request_size=255 [18:09:14]MH_SAM_APDU [18:09: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 CA 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 11 01 00 35 04 06 00 17 [18:09:14]Write to MH i2c: E2 02 01 5F 13 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 CA 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 11 01 00 35 04 06 00 17 00 00 E2 [18:09:14]Write i2c OK [18:09:14]MH_I2C_Read... [18:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:15]Read from MH i2c: E2 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 03 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 03 00 5F 13 00 90 00 E6 [18:09:15]RAPDU: 90 00 [18:09:15]wFMCommunicate OK [18:09:15]wFMCommunicate request_size=10 [18:09:15]MH_SAM_APDU [18:09:15]CAPDU: 80 0D 02 02 05 53 90 61 C5 1F [18:09:15]Write to MH i2c: E2 0D 00 60 13 80 0D 02 02 05 00 53 90 61 C5 1F 00 00 1F [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:15]Read from MH i2c: E2 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 03 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [18:09:15]RAPDU: 90 00 [18:09:15]wFMCommunicate OK [18:09:15]wFMCommunicate request_size=4 [18:09:15]MH_SAM_APDU [18:09:15]CAPDU: 80 0D 03 02 [18:09:15]Write to MH i2c: E2 08 00 61 13 80 0D 03 02 00 00 00 00 EF [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:15]Read from MH i2c: E2 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 0B 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 0B 00 61 13 00 50 50 D0 A3 99 41 6E 68 90 00 B3 [18:09:15]RAPDU: 50 50 D0 A3 99 41 6E 68 90 00 [18:09:15]wFMCommunicate OK [18:09:15]SAM_PROTO_SignData done [18:09:15]FM_MakeSignedData done [18:09:15]CreateOFDProtocolMessage [18:09:15]wFMCommunicate request_size=4 [18:09:15]MH_SAM_APDU [18:09:15]CAPDU: 80 11 00 00 [18:09:15]Write to MH i2c: E2 08 00 62 13 80 11 00 00 00 00 00 00 EF [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:15]Read from MH i2c: E2 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 17 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: E2 17 00 62 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [18:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:15]wFMCommunicate OK [18:09:15]CreateOFDProtocolMessage done [18:09:15]OFDSenderStorePacket 69951 [18:09:15]StoreOFDPacket docnum=69951 [18:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 28 07 01 42 95 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 CA 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 11 01 00 35 04 06 00 17 53 90 61 C5 1F 50 50 D0 A3 99 41 6E 68 [18:09:15]CheckFolder [18:09:15]dirname=/storage/ofd_packets [18:09:15]CheckFolder done [18:09:15]ProducePacketName [18:09:15]name=ofd_packets/00069951 [18:09:15]NVStorageSaveData ofd_packets/00069951 [18:09:15]File name is /storage/ofd_packets/00069951 [18:09:15]Write 301 bytes [18:09:15]NVStorageSaveData done [18:09:15]OFDSenderStorePacket done [18:09:15]KKMCreateOFDPacket done [18:09:15]NVStorageSaveData kkm_last_timestamp [18:09:15]File name is /storage/kkm_last_timestamp [18:09:15]Write 4 bytes [18:09:15]NVStorageSaveData done [18:09:15]ExternCall_PrintAddStr [18:09:15]wPrintStart [18:09:15]Write to MH i2c: 01 00 00 63 13 76 [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 07 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 07 00 63 13 00 00 00 00 00 FF 0F 8B [18:09:15]RasterBufferAndPrint [18:09:15]line Счет N : (1)2885713 [18:09:15]line ИНН: 02508201610067 [18:09:15]line Контрольно-Кассовый Чек [18:09:15]line ПРОДАЖА [18:09:15]line ТРК (МРК, ГНК) : 32 [18:09:15]line Товар: 2710124130 [18:09:15]line Аи-92-К-5 [18:09:15]line 10.470 * 66.90 [18:09:15]line = 700.44 [18:09:15]line НДС 12% НСП 1% [18:09:15]line > о реализуемом товаре [18:09:15]line ОКРУГЛЕНИЕ: -0.44 [18:09:15]line ИТОГО: 700.00 [18:09:15]line Внесено: 700.00 [18:09:15]line СДАЧА: 0.00 [18:09:15]line НСП 1% : 6.20 [18:09:15]line НДС 12% : 74.38 [18:09:15]line Наличными: 700.00 [18:09:15]line Безнал.: 0.00 [18:09:15]line Место: АЗС № 85 "Партнер Нефть" [18:09:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:09:15]line СНО: Общий режим [18:09:15]line Чек 341 21.10.2024 18:09 [18:09:15]line Смена: 194 ФФД: 1.0 [18:09:15]line ЗНМ: 0300000167 [18:09:15]line РНМ: 0000000000156251 [18:09:15]line Версия ККМ: v1.0 [18:09:15]line ФМ: 0000000000963346 [18:09:15]line ФД: 69951 [18:09:15]line ФПД: 25647672050975 [18:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69951&fm=25647672050975&tin=02508201610067®Number=0000000000156251&sum=70000 [18:09:15]OFD Sender: Processing packet 69951 [packets to send 18, broken 17] [18:09:15]ProducePacketName [18:09:15]name=ofd_packets/00069951 [18:09:15]OFD Sender: To server: pG, [18:09:15]CommunicateWithHost lk.salyk.kg:30040 [18:09:15]ConnectInit lk.salyk.kg [18:09:15]written 0, free lines is 4095 [18:09:15]Connected sock=11 [18:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 28 07 01 42 95 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 CA 98 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 11 01 00 35 04 06 00 17 53 90 61 C5 1F 50 50 D0 A3 99 41 6E 68 [18:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 71 47 00 06 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 39 36 33 33 34 36 10 04 04 00 3F 11 01 00 F4 03 04 00 6D 42 16 67 B6 04 01 00 00 06 B8 96 B4 5A 08 D6 FE [18:09:15]CommunicateWithHost err = 0 [18:09:15]CheckOFDResponse [18:09:15]1017 (14) - 77093643461234 [18:09:15]1041 (16) - 0000000000963346 [18:09:15]1040 (4) - 69951 [18:09:15]1012 (4) - 21.10.2024 12:00 [18:09:15]1206 (1) - 0 [18:09:15]OFD Sender: Remove packet 69951 [18:09:15]ProducePacketName [18:09:15]name=ofd_packets/00069951 [18:09:15]NVStorageDeleteData [18:09:15]Write to MH i2c: 01 00 00 8E 13 A1 [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 07 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 E8 0C 9C [18:09:15]RasterBufferAndPrint [18:09:15]line [18:09:15]line [18:09:15]line [18:09:15]line [18:09:15]line [18:09:15]written 0, free lines is 3311 [18:09:15]MH_Cut [18:09:15]Write to MH i2c: D1 01 00 95 13 01 7A [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: D1 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: D1 01 00 [18:09:15]MH_I2C_Read... [18:09:15]Read from MH i2c: D1 01 00 95 13 00 79 [18:09:15]Write to MH i2c: 01 00 00 96 13 A9 [18:09:15]Write i2c OK [18:09:15]MH_I2C_Read... [18:09:16]OFD Sender: No OFD packet to send [18:09:16]*** Cut start [18:09:16]*** Partial cut [18:09:16]*** CUTSNS_PIN = 1 [18:09:16]*** CUTSNS_PIN = 0 [18:09:16]*** Brake cut motor [18:09:17]Read from MH i2c: 01 [18:09:17]MH_I2C_Read... [18:09:17]*** Stop cut motor [18:09:17]*** Cut end [18:09:17]Read from MH i2c: 01 07 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 FF 0F BE [18:09:17]process_action close_receipt done [18:09:17]requested_data is exist [18:09:17]produce_requested_data [18:09:17]requested_item fm.sn is exist - process it [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 11 00 00 [18:09:17]Write to MH i2c: E2 08 00 97 13 80 11 00 00 00 00 00 00 24 [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:17]Read from MH i2c: E2 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 17 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 17 00 97 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [18:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:17]wFMCommunicate OK [18:09:17]requested_item fd.num is exist - process it [18:09:17]SAM_PROTO_GetFieldsCounters [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 13 00 00 [18:09:17]Write to MH i2c: E2 08 00 98 13 80 13 00 00 00 00 00 00 27 [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:17]Read from MH i2c: E2 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 62 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 62 00 98 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:17]wFMCommunicate OK [18:09:17]SAM_PROTO_GetFieldsCounters done [18:09:17]requested_item shift.num is exist - process it [18:09:17]requested_item shift.opened is exist - process it [18:09:17]req_shift_opened [18:09:17]FM_GetShiftState [18:09:17]SAM_PROTO_GetShiftState [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 13 01 00 [18:09:17]Write to MH i2c: E2 08 00 99 13 80 13 01 00 00 00 00 00 29 [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:17]Read from MH i2c: E2 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 99 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 55 [18:09:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:09:17]wFMCommunicate OK [18:09:17]SAM_PROTO_GetShiftState done [18:09:17]FM_GetShiftState done [18:09:17]req_shift_opened done [18:09:17]requested_item shift.open_date is exist - process it [18:09:17]req_shift_open_date [18:09:17]req_shift_open_date done [18:09:17]produce_requested_data done [18:09:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69951,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:09:17]process_action_free close_receipt [18:09:17]json_value_free [18:09:17]json_value_free done [18:09:17]process_json_proto returns [18:09:17]Send response to host [18:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69951,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:09:17]free response buf [18:09:17]execute_script done [18:09:17]execute_script returns [18:09:17]free content buf [18:09:17]Sock 7.Close socket [18:09:17]Sock 7.Thread stoped [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:40]accept exits with 9 [18:12:40]New connection [18:12:40]New thread 3067026788 created [18:12:40]Thread 3067170148 joined [18:12:40]Waiting for new connection... [18:12:40] Sock 9.Parse request [18:12:40]Sock 9.Check first char [18:12:40]Sock 9.First char is OK [18:12:40]request: POST /json_proto HTTP/1.0 [18:12:40]Method: POST [18:12:40]URL: /json_proto [18:12:40]Method is POST - this is cgi request [18:12:40]url: /json_proto [18:12:40]query_string will be loaded in cgi processing [18:12:40]execute_cgi json_proto POST (null) [18:12:40]execute_cgi path=json_proto method=POST [18:12:40]POST find Content-Length [18:12:40]Host: 172.17.50.3:8080 [18:12:40]Content-Length: 689 [18:12:40]Content-Type: application/json [18:12:40] [18:12:40]POST finish read [18:12:40]Found Content-Length = 689 [18:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:40]execute_script... [18:12: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)2885714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:40]POST & json_proto [18:12:40]process_json_proto [18:12:40]json parsed OK: [18:12:40]protocol is kg_v1.0 [18:12:40]action value=close_receipt [18:12:40]process_action close_receipt [18:12:40]cmd_close_receipt [18:12:40]MH_GetDate [18:12:40]Write to MH i2c: F0 00 00 9A 13 9C [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: F0 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: F0 09 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: F0 09 00 9A 13 00 9A 99 16 67 6B 98 1E 66 DC [18:12:40]GetLastDocTimeStamp 1729534154 [18:12:40]current date 1729534362 [18:12:40]FM_GetShiftState [18:12:40]SAM_PROTO_GetShiftState [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 13 01 00 [18:12:40]Write to MH i2c: E2 08 00 9B 13 80 13 01 00 00 00 00 00 2B [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 0E 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 0E 00 9B 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 57 [18:12:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:12:41]wFMCommunicate OK [18:12:41]SAM_PROTO_GetShiftState done [18:12:41]FM_GetShiftState done [18:12:41]opened in 1729469703 [18:12:41]opened+sec_in_day 1729556103 [18:12:41]quantity*price = 400050 [18:12:41]sum+1 = 400051 [18:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 342 21.10.2024 18:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69952 ФПД: 263822275765958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69952&fm=263822275765958&tin=02508201610067®Number=0000000000156251&sum=400000 [18:12:42]StoreToDocumentArchive [18:12:42]shift 194 fd 69952 [18:12:42]save to /storage/0194/doc_00069952 [18:12:42]save last doc name /storage/0194/doc_00069952 to /storage/kkm_last_doc_name [18:12:42]save OK [18:12:42]Clear old archive folders... [18:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:12:42]tlvbuf is 0119AD90 [18:12:42]SAM_PROTO_ClearQueue [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 09 00 00 [18:12:42]Write to MH i2c: E2 08 00 A8 13 80 09 00 00 00 00 00 00 2D [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 A8 13 00 90 00 2F [18:12:42]RAPDU: 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_ClearQueue done [18:12:42]KKMCreateOFDPacket [18:12:42]OFDProtocolAddRootSTLVToBuf [18:12:42]FM_MakeSignedData [18:12:42]FM_MakeSignedData [18:12:42]SAM_PROTO_SignData [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 0D 01 02 [18:12:42]Write to MH i2c: E2 08 00 A9 13 80 0D 01 02 00 00 00 00 35 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 A9 13 00 90 00 30 [18:12:42]RAPDU: 90 00 [18:12:42]wFMCommunicate OK [18:12:42]wFMCommunicate request_size=255 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 9A 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 11 01 [18:12:42]Write to MH i2c: E2 02 01 AA 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 9A 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 11 01 00 00 C7 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [18:12:42]RAPDU: 90 00 [18:12:42]wFMCommunicate OK [18:12:42]wFMCommunicate request_size=16 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EF F1 E9 07 E6 C6 [18:12:42]Write to MH i2c: E2 13 00 AB 13 80 0D 02 02 0B 00 00 35 04 06 00 EF F1 E9 07 E6 C6 00 00 09 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [18:12:42]RAPDU: 90 00 [18:12:42]wFMCommunicate OK [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 0D 03 02 [18:12:42]Write to MH i2c: E2 08 00 AC 13 80 0D 03 02 00 00 00 00 3A [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0B 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0B 00 AC 13 00 9D E3 61 D5 B0 92 C1 71 90 00 65 [18:12:42]RAPDU: 9D E3 61 D5 B0 92 C1 71 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_SignData done [18:12:42]FM_MakeSignedData done [18:12:42]CreateOFDProtocolMessage [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 11 00 00 [18:12:42]Write to MH i2c: E2 08 00 AD 13 80 11 00 00 00 00 00 00 3A [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 17 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 17 00 AD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [18:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:12:42]wFMCommunicate OK [18:12:42]CreateOFDProtocolMessage done [18:12:42]OFDSenderStorePacket 69952 [18:12:42]StoreOFDPacket docnum=69952 [18:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 63 F9 0D 01 1B DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 9A 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 11 01 00 35 04 06 00 EF F1 E9 07 E6 C6 9D E3 61 D5 B0 92 C1 71 [18:12:42]CheckFolder [18:12:42]dirname=/storage/ofd_packets [18:12:42]CheckFolder done [18:12:42]ProducePacketName [18:12:42]name=ofd_packets/00069952 [18:12:42]NVStorageSaveData ofd_packets/00069952 [18:12:42]File name is /storage/ofd_packets/00069952 [18:12:42]Write 307 bytes [18:12:42]NVStorageSaveData done [18:12:42]OFDSenderStorePacket done [18:12:42]KKMCreateOFDPacket done [18:12:42]NVStorageSaveData kkm_last_timestamp [18:12:42]File name is /storage/kkm_last_timestamp [18:12:42]Write 4 bytes [18:12:42]NVStorageSaveData done [18:12:42]ExternCall_PrintAddStr [18:12:42]wPrintStart [18:12:42]Write to MH i2c: 01 00 00 AE 13 C1 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: 01 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: 01 07 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 FF 0F D6 [18:12:42]RasterBufferAndPrint [18:12:42]line Счет N : (1)2885714 [18:12:42]line ИНН: 02508201610067 [18:12:42]line Контрольно-Кассовый Чек [18:12:42]line ПРОДАЖА [18:12:42]line ТРК (МРК, ГНК) : 11 [18:12:42]line Товар: 2710194240 [18:12:42]line D-ENERGY Дт-К-2 [18:12:42]line 51.820 * 77.20 [18:12:42]line = 4000.50 [18:12:42]line НДС 12% НСП 1% [18:12:42]line > о реализуемом товаре [18:12:42]line ОКРУГЛЕНИЕ: -0.50 [18:12:42]line ИТОГО: 4000.00 [18:12:42]line Внесено: 4000.00 [18:12:42]line СДАЧА: 0.00 [18:12:42]line НСП 1% : 35.40 [18:12:42]line НДС 12% : 424.83 [18:12:42]line Наличными: 4000.00 [18:12:42]line Безнал.: 0.00 [18:12:42]line Место: АЗС № 85 "Партнер Нефть" [18:12:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:12:42]line СНО: Общий режим [18:12:42]line Чек 342 21.10.2024 18:12 [18:12:42]line Смена: 194 ФФД: 1.0 [18:12:42]line ЗНМ: 0300000167 [18:12:42]line РНМ: 0000000000156251 [18:12:42]line Версия ККМ: v1.0 [18:12:42]line ФМ: 0000000000963346 [18:12:42]line ФД: 69952 [18:12:42]line ФПД: 263822275765958 [18:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69952&fm=263822275765958&tin=02508201610067®Number=0000000000156251&sum=400000 [18:12:42]OFD Sender: Processing packet 69952 [packets to send 18, broken 17] [18:12:42]ProducePacketName [18:12:42]name=ofd_packets/00069952 [18:12:42]OFD Sender: To server: pG, [18:12:42]CommunicateWithHost lk.salyk.kg:30040 [18:12:42]ConnectInit lk.salyk.kg [18:12:42]written 0, free lines is 4095 [18:12:43]Connected sock=10 [18:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 63 F9 0D 01 1B DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 9A 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 11 01 00 35 04 06 00 EF F1 E9 07 E6 C6 9D E3 61 D5 B0 92 C1 71 [18:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 62 47 00 FD 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 39 36 33 33 34 36 10 04 04 00 40 11 01 00 F4 03 04 00 3D 43 16 67 B6 04 01 00 00 D4 53 E4 8F B4 B3 B3 D6 [18:12:43]CommunicateWithHost err = 0 [18:12:43]CheckOFDResponse [18:12:43]1017 (14) - 77093643461234 [18:12:43]1041 (16) - 0000000000963346 [18:12:43]1040 (4) - 69952 [18:12:43]1012 (4) - 21.10.2024 12:04 [18:12:43]1206 (1) - 0 [18:12:43]OFD Sender: Remove packet 69952 [18:12:43]ProducePacketName [18:12:43]name=ofd_packets/00069952 [18:12:43]NVStorageDeleteData [18:12:43]Write to MH i2c: 01 00 00 D9 13 EC [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: 01 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: 01 07 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FA 0C F9 [18:12:43]RasterBufferAndPrint [18:12:43]line [18:12:43]line [18:12:43]line [18:12:43]line [18:12:43]line [18:12:43]written 0, free lines is 3328 [18:12:43]MH_Cut [18:12:43]Write to MH i2c: D1 01 00 E0 13 01 C5 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: D1 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: D1 01 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: D1 01 00 E0 13 00 C4 [18:12:43]Write to MH i2c: 01 00 00 E1 13 F4 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]OFD Sender: No OFD packet to send [18:12:44]*** Cut start [18:12:44]*** Partial cut [18:12:44]*** CUTSNS_PIN = 1 [18:12:44]*** CUTSNS_PIN = 0 [18:12:44]*** Brake cut motor [18:12:44]Read from MH i2c: 01 [18:12:44]MH_I2C_Read... [18:12:44]*** Stop cut motor [18:12:44]*** Cut end [18:12:44]Read from MH i2c: 01 07 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 FF 0F 09 [18:12:44]process_action close_receipt done [18:12:44]requested_data is exist [18:12:44]produce_requested_data [18:12:44]requested_item fm.sn is exist - process it [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 11 00 00 [18:12:44]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [18:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:12:44]wFMCommunicate OK [18:12:44]requested_item fd.num is exist - process it [18:12:44]SAM_PROTO_GetFieldsCounters [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 13 00 00 [18:12:44]Write to MH i2c: E2 08 00 E3 13 80 13 00 00 00 00 00 00 72 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 62 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 62 00 E3 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_GetFieldsCounters done [18:12:44]requested_item shift.num is exist - process it [18:12:44]requested_item shift.opened is exist - process it [18:12:44]req_shift_opened [18:12:44]FM_GetShiftState [18:12:44]SAM_PROTO_GetShiftState [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 13 01 00 [18:12:44]Write to MH i2c: E2 08 00 E4 13 80 13 01 00 00 00 00 00 74 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:45]Read from MH i2c: E2 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0E 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: E2 0E 00 E4 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A0 [18:12:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:12:45]wFMCommunicate OK [18:12:45]SAM_PROTO_GetShiftState done [18:12:45]FM_GetShiftState done [18:12:45]req_shift_opened done [18:12:45]requested_item shift.open_date is exist - process it [18:12:45]req_shift_open_date [18:12:45]req_shift_open_date done [18:12:45]produce_requested_data done [18:12:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69952,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:12:45]process_action_free close_receipt [18:12:45]json_value_free [18:12:45]json_value_free done [18:12:45]process_json_proto returns [18:12:45]Send response to host [18:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69952,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:12:45]free response buf [18:12:45]execute_script done [18:12:45]execute_script returns [18:12:45]free content buf [18:12:45]Sock 9.Close socket [18:12:45]Sock 9.Thread stoped [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:12:59]accept exits with 7 [18:12:59]New connection [18:12:59]New thread 3067170148 created [18:12:59]Thread 3067026788 joined [18:12:59]Waiting for new connection... [18:12:59] Sock 7.Parse request [18:12:59]Sock 7.Check first char [18:12:59]Sock 7.First char is OK [18:12:59]request: POST /json_proto HTTP/1.0 [18:12:59]Method: POST [18:12:59]URL: /json_proto [18:12:59]Method is POST - this is cgi request [18:12:59]url: /json_proto [18:12:59]query_string will be loaded in cgi processing [18:12:59]execute_cgi json_proto POST (null) [18:12:59]execute_cgi path=json_proto method=POST [18:12:59]POST find Content-Length [18:12:59]Host: 172.17.50.3:8080 [18:12:59]Content-Length: 678 [18:12:59]Content-Type: application/json [18:12:59] [18:12:59]POST finish read [18:12:59]Found Content-Length = 678 [18:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885715", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:59]execute_script... [18:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885715", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:59]POST & json_proto [18:12:59]process_json_proto [18:12:59]json parsed OK: [18:12:59]protocol is kg_v1.0 [18:12:59]action value=close_receipt [18:12:59]process_action close_receipt [18:12:59]cmd_close_receipt [18:12:59]MH_GetDate [18:12:59]Write to MH i2c: F0 00 00 E5 13 E7 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: F0 09 00 E5 13 00 AD 99 16 67 6B 98 1E 66 3A [18:12:59]GetLastDocTimeStamp 1729534362 [18:12:59]current date 1729534381 [18:12:59]FM_GetShiftState [18:12:59]SAM_PROTO_GetShiftState [18:12:59]wFMCommunicate request_size=4 [18:12:59]MH_SAM_APDU [18:12:59]CAPDU: 80 13 01 00 [18:12:59]Write to MH i2c: E2 08 00 E6 13 80 13 01 00 00 00 00 00 76 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:59]Read from MH i2c: E2 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: E2 0E 00 E6 13 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A2 [18:12:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:12:59]wFMCommunicate OK [18:12:59]SAM_PROTO_GetShiftState done [18:12:59]FM_GetShiftState done [18:12:59]opened in 1729469703 [18:12:59]opened+sec_in_day 1729556103 [18:12:59]quantity*price = 50041 [18:12:59]sum+1 = 50042 [18:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 343 21.10.2024 18:13 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69953 ФПД: 144779197840096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69953&fm=144779197840096&tin=02508201610067®Number=0000000000156251&sum=50000 [18:13:01]StoreToDocumentArchive [18:13:01]shift 194 fd 69953 [18:13:01]save to /storage/0194/doc_00069953 [18:13:01]save last doc name /storage/0194/doc_00069953 to /storage/kkm_last_doc_name [18:13:01]save OK [18:13:01]Clear old archive folders... [18:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:01]tlvbuf is 01133C40 [18:13:01]SAM_PROTO_ClearQueue [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 09 00 00 [18:13:01]Write to MH i2c: E2 08 00 F3 13 80 09 00 00 00 00 00 00 78 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_ClearQueue done [18:13:01]KKMCreateOFDPacket [18:13:01]OFDProtocolAddRootSTLVToBuf [18:13:01]FM_MakeSignedData [18:13:01]FM_MakeSignedData [18:13:01]SAM_PROTO_SignData [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 01 02 [18:13:01]Write to MH i2c: E2 08 00 F4 13 80 0D 01 02 00 00 00 00 80 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=255 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 AD 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 11 01 00 35 04 06 00 83 [18:13:01]Write to MH i2c: E2 02 01 F5 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 AD 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 11 01 00 35 04 06 00 83 00 00 BC [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 F5 13 00 90 00 7C [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=10 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 02 02 05 AD 08 A8 7A E0 [18:13:01]Write to MH i2c: E2 0D 00 F6 13 80 0D 02 02 05 00 AD 08 A8 7A E0 00 00 44 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [18:13:01]RAPDU: 90 00 [18:13:01]wFMCommunicate OK [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 0D 03 02 [18:13:01]Write to MH i2c: E2 08 00 F7 13 80 0D 03 02 00 00 00 00 85 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 0B 00 F7 13 00 FF DF BC F3 03 40 0B D4 90 00 35 [18:13:01]RAPDU: FF DF BC F3 03 40 0B D4 90 00 [18:13:01]wFMCommunicate OK [18:13:01]SAM_PROTO_SignData done [18:13:01]FM_MakeSignedData done [18:13:01]CreateOFDProtocolMessage [18:13:01]wFMCommunicate request_size=4 [18:13:01]MH_SAM_APDU [18:13:01]CAPDU: 80 11 00 00 [18:13:01]Write to MH i2c: E2 08 00 F8 13 80 11 00 00 00 00 00 00 85 [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:01]Read from MH i2c: E2 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: E2 17 00 F8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [18:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:13:01]wFMCommunicate OK [18:13:01]CreateOFDProtocolMessage done [18:13:01]OFDSenderStorePacket 69953 [18:13:01]StoreOFDPacket docnum=69953 [18:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 40 07 01 D1 93 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 AD 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 11 01 00 35 04 06 00 83 AD 08 A8 7A E0 FF DF BC F3 03 40 0B D4 [18:13:01]CheckFolder [18:13:01]dirname=/storage/ofd_packets [18:13:01]CheckFolder done [18:13:01]ProducePacketName [18:13:01]name=ofd_packets/00069953 [18:13:01]NVStorageSaveData ofd_packets/00069953 [18:13:01]File name is /storage/ofd_packets/00069953 [18:13:01]Write 301 bytes [18:13:01]NVStorageSaveData done [18:13:01]OFDSenderStorePacket done [18:13:01]KKMCreateOFDPacket done [18:13:01]NVStorageSaveData kkm_last_timestamp [18:13:01]File name is /storage/kkm_last_timestamp [18:13:01]Write 4 bytes [18:13:01]NVStorageSaveData done [18:13:01]OFD Sender: Processing packet 69953 [packets to send 18, broken 17] [18:13:01]ProducePacketName [18:13:01]name=ofd_packets/00069953 [18:13:01]OFD Sender: To server: pG, [18:13:01]CommunicateWithHost lk.salyk.kg:30040 [18:13:01]ConnectInit lk.salyk.kg [18:13:01]ExternCall_PrintAddStr [18:13:01]wPrintStart [18:13:01]Write to MH i2c: 01 00 00 F9 13 0C [18:13:01]Write i2c OK [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 [18:13:01]MH_I2C_Read... [18:13:01]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [18:13:01]RasterBufferAndPrint [18:13:01]line Счет N : (1)2885715 [18:13:01]line ИНН: 02508201610067 [18:13:01]line Контрольно-Кассовый Чек [18:13:01]line ПРОДАЖА [18:13:01]line ТРК (МРК, ГНК) : 32 [18:13:01]line Товар: 2710124130 [18:13:01]line Аи-92-К-5 [18:13:01]line 7.480 * 66.90 [18:13:01]line = 500.41 [18:13:01]line НДС 12% НСП 1% [18:13:01]line > о реализуемом товаре [18:13:01]line ОКРУГЛЕНИЕ: -0.41 [18:13:01]line ИТОГО: 500.00 [18:13:01]line Внесено: 500.00 [18:13:01]line СДАЧА: 0.00 [18:13:01]line НСП 1% : 4.43 [18:13:01]line НДС 12% : 53.14 [18:13:01]line Наличными: 500.00 [18:13:01]line Безнал.: 0.00 [18:13:01]line Место: АЗС № 85 "Партнер Нефть" [18:13:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:13:01]line СНО: Общий режим [18:13:01]line Чек 343 21.10.2024 18:13 [18:13:01]line Смена: 194 ФФД: 1.0 [18:13:01]line ЗНМ: 0300000167 [18:13:01]line РНМ: 0000000000156251 [18:13:01]line Версия ККМ: v1.0 [18:13:01]line ФМ: 0000000000963346 [18:13:01]line ФД: 69953 [18:13:01]line ФПД: 144779197840096 [18:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181301&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69953&fm=144779197840096&tin=02508201610067®Number=0000000000156251&sum=50000 [18:13:01]Connected sock=11 [18:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 40 07 01 D1 93 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 AD 99 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 11 01 00 35 04 06 00 83 AD 08 A8 7A E0 FF DF BC F3 03 40 0B D4 [18:13:01]written 0, free lines is 4095 [18:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 57 FF 47 00 B8 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 11 01 00 F4 03 04 00 4F 43 16 67 B6 04 01 00 00 E3 8E 17 DB 59 72 73 79 [18:13:02]CommunicateWithHost err = 0 [18:13:02]CheckOFDResponse [18:13:02]1017 (14) - 77093643461234 [18:13:02]1041 (16) - 0000000000963346 [18:13:02]1040 (4) - 69953 [18:13:02]1012 (4) - 21.10.2024 12:04 [18:13:02]1206 (1) - 0 [18:13:02]OFD Sender: Remove packet 69953 [18:13:02]ProducePacketName [18:13:02]name=ofd_packets/00069953 [18:13:02]NVStorageDeleteData [18:13:02]Write to MH i2c: 01 00 00 24 14 38 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 EC 0C 37 [18:13:02]RasterBufferAndPrint [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]line [18:13:02]written 0, free lines is 3314 [18:13:02]MH_Cut [18:13:02]Write to MH i2c: D1 01 00 2B 14 01 11 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: D1 01 00 2B 14 00 10 [18:13:02]Write to MH i2c: 01 00 00 2C 14 40 [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]OFD Sender: No OFD packet to send [18:13:03]*** Cut start [18:13:03]*** Partial cut [18:13:03]*** CUTSNS_PIN = 1 [18:13:03]*** CUTSNS_PIN = 0 [18:13:03]*** Brake cut motor [18:13:03]Read from MH i2c: 01 [18:13:03]MH_I2C_Read... [18:13:03]*** Stop cut motor [18:13:03]*** Cut end [18:13:03]Read from MH i2c: 01 07 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 FF 0F 55 [18:13:03]process_action close_receipt done [18:13:03]requested_data is exist [18:13:03]produce_requested_data [18:13:03]requested_item fm.sn is exist - process it [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 11 00 00 [18:13:03]Write to MH i2c: E2 08 00 2D 14 80 11 00 00 00 00 00 00 BB [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 17 00 2D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [18:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:13:03]wFMCommunicate OK [18:13:03]requested_item fd.num is exist - process it [18:13:03]SAM_PROTO_GetFieldsCounters [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 13 00 00 [18:13:03]Write to MH i2c: E2 08 00 2E 14 80 13 00 00 00 00 00 00 BE [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 62 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 62 00 2E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:03]wFMCommunicate OK [18:13:03]SAM_PROTO_GetFieldsCounters done [18:13:03]requested_item shift.num is exist - process it [18:13:03]requested_item shift.opened is exist - process it [18:13:03]req_shift_opened [18:13:03]FM_GetShiftState [18:13:03]SAM_PROTO_GetShiftState [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 13 01 00 [18:13:03]Write to MH i2c: E2 08 00 2F 14 80 13 01 00 00 00 00 00 C0 [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 0E 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 0E 00 2F 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EC [18:13:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:13:03]wFMCommunicate OK [18:13:03]SAM_PROTO_GetShiftState done [18:13:03]FM_GetShiftState done [18:13:03]req_shift_opened done [18:13:03]requested_item shift.open_date is exist - process it [18:13:03]req_shift_open_date [18:13:03]req_shift_open_date done [18:13:03]produce_requested_data done [18:13:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69953,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:13:03]process_action_free close_receipt [18:13:03]json_value_free [18:13:03]json_value_free done [18:13:03]process_json_proto returns [18:13:03]Send response to host [18:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69953,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:13:03]free response buf [18:13:03]execute_script done [18:13:03]execute_script returns [18:13:03]free content buf [18:13:03]Sock 7.Close socket [18:13:03]Sock 7.Thread stoped [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:18]accept exits with 9 [18:19:18]New connection [18:19:18]New thread 3067026788 created [18:19:18]Thread 3067170148 joined [18:19:18]Waiting for new connection... [18:19:18] Sock 9.Parse request [18:19:18]Sock 9.Check first char [18:19:18]Sock 9.First char is OK [18:19:18]request: POST /json_proto HTTP/1.0 [18:19:18]Method: POST [18:19:18]URL: /json_proto [18:19:18]Method is POST - this is cgi request [18:19:18]url: /json_proto [18:19:18]query_string will be loaded in cgi processing [18:19:18]execute_cgi json_proto POST (null) [18:19:18]execute_cgi path=json_proto method=POST [18:19:18]POST find Content-Length [18:19:18]Host: 172.17.50.3:8080 [18:19:18]Content-Length: 770 [18:19:18]Content-Type: application/json [18:19:18] [18:19:18]POST finish read [18:19:18]Found Content-Length = 770 [18:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:18]execute_script... [18:19: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)2885717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:18]POST & json_proto [18:19:18]process_json_proto [18:19:18]json parsed OK: [18:19:18]protocol is kg_v1.0 [18:19:18]action value=close_receipt [18:19:18]process_action close_receipt [18:19:18]cmd_close_receipt [18:19:18]MH_GetDate [18:19:18]Write to MH i2c: F0 00 00 30 14 33 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 09 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 09 00 30 14 00 27 9B 16 67 6B 98 1E 66 02 [18:19:18]GetLastDocTimeStamp 1729534381 [18:19:18]current date 1729534759 [18:19:18]FM_GetShiftState [18:19:18]SAM_PROTO_GetShiftState [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 13 01 00 [18:19:18]Write to MH i2c: E2 08 00 31 14 80 13 01 00 00 00 00 00 C2 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 31 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EE [18:19:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:19:18]wFMCommunicate OK [18:19:18]SAM_PROTO_GetShiftState done [18:19:18]FM_GetShiftState done [18:19:18]opened in 1729469703 [18:19:18]opened+sec_in_day 1729556103 [18:19:18]quantity*price = 100021 [18:19:18]sum+1 = 100023 [18:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 344 21.10.2024 18:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69954 ФПД: 252961640410647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69954&fm=252961640410647&tin=02508201610067®Number=0000000000156251&sum=100022 [18:19:19]StoreToDocumentArchive [18:19:19]shift 194 fd 69954 [18:19:19]save to /storage/0194/doc_00069954 [18:19:19]save last doc name /storage/0194/doc_00069954 to /storage/kkm_last_doc_name [18:19:19]save OK [18:19:19]Clear old archive folders... [18:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:19]tlvbuf is 01152A20 [18:19:19]SAM_PROTO_ClearQueue [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 09 00 00 [18:19:19]Write to MH i2c: E2 08 00 3E 14 80 09 00 00 00 00 00 00 C4 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]SAM_PROTO_ClearQueue done [18:19:19]KKMCreateOFDPacket [18:19:19]OFDProtocolAddRootSTLVToBuf [18:19:19]FM_MakeSignedData [18:19:19]FM_MakeSignedData [18:19:19]SAM_PROTO_SignData [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 01 02 [18:19:19]Write to MH i2c: E2 08 00 3F 14 80 0D 01 02 00 00 00 00 CC [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=255 [18:19:19]MH_SAM_APDU [18:19:19]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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 27 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 11 01 00 35 04 06 00 E6 [18:19:19]Write to MH i2c: E2 02 01 40 14 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 27 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 11 01 00 35 04 06 00 E6 00 00 32 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 40 14 00 90 00 C8 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=10 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 02 02 05 11 38 B7 EE 17 [18:19:19]Write to MH i2c: E2 0D 00 41 14 80 0D 02 02 05 00 11 38 B7 EE 17 00 00 DE [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 03 02 [18:19:19]Write to MH i2c: E2 08 00 42 14 80 0D 03 02 00 00 00 00 D1 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 0B 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 0B 00 42 14 00 92 45 5D BD FA 0E 42 A6 90 00 B3 [18:19:19]RAPDU: 92 45 5D BD FA 0E 42 A6 90 00 [18:19:19]wFMCommunicate OK [18:19:19]SAM_PROTO_SignData done [18:19:19]FM_MakeSignedData done [18:19:19]CreateOFDProtocolMessage [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 11 00 00 [18:19:19]Write to MH i2c: E2 08 00 43 14 80 11 00 00 00 00 00 00 D1 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 17 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 17 00 43 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [18:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:19:19]wFMCommunicate OK [18:19:19]CreateOFDProtocolMessage done [18:19:19]OFDSenderStorePacket 69954 [18:19:19]StoreOFDPacket docnum=69954 [18:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 18 07 01 C7 A9 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 27 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 11 01 00 35 04 06 00 E6 11 38 B7 EE 17 92 45 5D BD FA 0E 42 A6 [18:19:19]CheckFolder [18:19:19]dirname=/storage/ofd_packets [18:19:19]CheckFolder done [18:19:19]ProducePacketName [18:19:19]name=ofd_packets/00069954 [18:19:19]NVStorageSaveData ofd_packets/00069954 [18:19:19]File name is /storage/ofd_packets/00069954 [18:19:19]Write 301 bytes [18:19:19]NVStorageSaveData done [18:19:19]OFDSenderStorePacket done [18:19:19]KKMCreateOFDPacket done [18:19:19]NVStorageSaveData kkm_last_timestamp [18:19:19]File name is /storage/kkm_last_timestamp [18:19:19]Write 4 bytes [18:19:19]NVStorageSaveData done [18:19:19]ExternCall_PrintAddStr [18:19:19]wPrintStart [18:19:19]Write to MH i2c: 01 00 00 44 14 58 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 07 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 07 00 44 14 00 00 00 00 00 FF 0F 6D [18:19:19]RasterBufferAndPrint [18:19:19]line Счет N : (1)2885717 [18:19:19]line ИНН: 02508201610067 [18:19:19]line Контрольно-Кассовый Чек [18:19:19]line ПРОДАЖА [18:19:19]line ТРК (МРК, ГНК) : 23 [18:19:19]line Товар: 2710124500 [18:19:19]line Аи-95-К-5 [18:19:19]line 13.480 * 74.20 [18:19:19]line = 1000.22 [18:19:19]line НДС 12% НСП 1% [18:19:19]line > о реализуемом товаре [18:19:19]line ИТОГО: 1000.22 [18:19:19]line НСП 1% : 8.85 [18:19:19]line НДС 12% : 106.22 [18:19:19]line Наличными: 0.00 [18:19:19]line Безнал.: 1000.22 [18:19:19]line Место: АЗС № 85 "Партнер Нефть" [18:19:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:19:19]line СНО: Общий режим [18:19:19]line Чек 344 21.10.2024 18:19 [18:19:19]line Смена: 194 ФФД: 1.0 [18:19:19]line ЗНМ: 0300000167 [18:19:19]line РНМ: 0000000000156251 [18:19:19]line Версия ККМ: v1.0 [18:19:19]line Платежная система: Mbank [18:19:19]line ФМ: 0000000000963346 [18:19:19]line ФД: 69954 [18:19:19]line ФПД: 252961640410647 [18:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69954&fm=252961640410647&tin=02508201610067®Number=0000000000156251&sum=100022 [18:19:20]OFD Sender: Processing packet 69954 [packets to send 18, broken 17] [18:19:20]ProducePacketName [18:19:20]name=ofd_packets/00069954 [18:19:20]OFD Sender: To server: pG, [18:19:20]CommunicateWithHost lk.salyk.kg:30040 [18:19:20]ConnectInit lk.salyk.kg [18:19:20]written 0, free lines is 4095 [18:19:20]Connected sock=10 [18:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 18 07 01 C7 A9 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 B6 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 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 27 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 11 01 00 35 04 06 00 E6 11 38 B7 EE 17 92 45 5D BD FA 0E 42 A6 [18:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B3 22 47 00 1A 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 11 01 00 F4 03 04 00 CA 44 16 67 B6 04 01 00 00 8B 80 F0 4E 43 FE 74 B8 [18:19:20]CommunicateWithHost err = 0 [18:19:20]CheckOFDResponse [18:19:20]1017 (14) - 77093643461234 [18:19:20]1041 (16) - 0000000000963346 [18:19:20]1040 (4) - 69954 [18:19:20]1012 (4) - 21.10.2024 12:10 [18:19:20]1206 (1) - 0 [18:19:20]OFD Sender: Remove packet 69954 [18:19:20]ProducePacketName [18:19:20]name=ofd_packets/00069954 [18:19:20]NVStorageDeleteData [18:19:20]Write to MH i2c: 01 00 00 6D 14 81 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 6D 14 00 00 00 00 00 21 0D B6 [18:19:20]RasterBufferAndPrint [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]written 0, free lines is 3367 [18:19:20]MH_Cut [18:19:20]Write to MH i2c: D1 01 00 74 14 01 5A [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 01 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 01 00 74 14 00 59 [18:19:20]Write to MH i2c: 01 00 00 75 14 89 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:21]OFD Sender: No OFD packet to send [18:19:21]*** Cut start [18:19:21]*** Partial cut [18:19:21]*** CUTSNS_PIN = 1 [18:19:21]*** CUTSNS_PIN = 0 [18:19:21]*** Brake cut motor [18:19:21]Read from MH i2c: 01 [18:19:21]MH_I2C_Read... [18:19:21]*** Stop cut motor [18:19:21]*** Cut end [18:19:21]Read from MH i2c: 01 07 00 [18:19:21]MH_I2C_Read... [18:19:22]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 FF 0F 9E [18:19:22]process_action close_receipt done [18:19:22]requested_data is exist [18:19:22]produce_requested_data [18:19:22]requested_item fm.sn is exist - process it [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 11 00 00 [18:19:22]Write to MH i2c: E2 08 00 76 14 80 11 00 00 00 00 00 00 04 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 17 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 17 00 76 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [18:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:19:22]wFMCommunicate OK [18:19:22]requested_item fd.num is exist - process it [18:19:22]SAM_PROTO_GetFieldsCounters [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 13 00 00 [18:19:22]Write to MH i2c: E2 08 00 77 14 80 13 00 00 00 00 00 00 07 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 62 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 62 00 77 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:22]wFMCommunicate OK [18:19:22]SAM_PROTO_GetFieldsCounters done [18:19:22]requested_item shift.num is exist - process it [18:19:22]requested_item shift.opened is exist - process it [18:19:22]req_shift_opened [18:19:22]FM_GetShiftState [18:19:22]SAM_PROTO_GetShiftState [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 13 01 00 [18:19:22]Write to MH i2c: E2 08 00 78 14 80 13 01 00 00 00 00 00 09 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 0E 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 0E 00 78 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 35 [18:19:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:19:22]wFMCommunicate OK [18:19:22]SAM_PROTO_GetShiftState done [18:19:22]FM_GetShiftState done [18:19:22]req_shift_opened done [18:19:22]requested_item shift.open_date is exist - process it [18:19:22]req_shift_open_date [18:19:22]req_shift_open_date done [18:19:22]produce_requested_data done [18:19:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69954,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:19:22]process_action_free close_receipt [18:19:22]json_value_free [18:19:22]json_value_free done [18:19:22]process_json_proto returns [18:19:22]Send response to host [18:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69954,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:19:22]free response buf [18:19:22]execute_script done [18:19:22]execute_script returns [18:19:22]free content buf [18:19:22]Sock 9.Close socket [18:19:22]Sock 9.Thread stoped [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:38]accept exits with 7 [18:20:38]New connection [18:20:38]New thread 3067170148 created [18:20:38]Thread 3067026788 joined [18:20:38]Waiting for new connection... [18:20:38] Sock 7.Parse request [18:20:38]Sock 7.Check first char [18:20:38]Sock 7.First char is OK [18:20:38]request: POST /json_proto HTTP/1.0 [18:20:38]Method: POST [18:20:38]URL: /json_proto [18:20:38]Method is POST - this is cgi request [18:20:38]url: /json_proto [18:20:38]query_string will be loaded in cgi processing [18:20:38]execute_cgi json_proto POST (null) [18:20:38]execute_cgi path=json_proto method=POST [18:20:38]POST find Content-Length [18:20:38]Host: 172.17.50.3:8080 [18:20:38]Content-Length: 683 [18:20:38]Content-Type: application/json [18:20:38] [18:20:38]POST finish read [18:20:38]Found Content-Length = 683 [18:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885718", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:38]execute_script... [18:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885718", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:38]POST & json_proto [18:20:38]process_json_proto [18:20:38]json parsed OK: [18:20:38]protocol is kg_v1.0 [18:20:38]action value=close_receipt [18:20:38]process_action close_receipt [18:20:38]cmd_close_receipt [18:20:38]MH_GetDate [18:20:38]Write to MH i2c: F0 00 00 79 14 7C [18:20:38]Write i2c OK [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: F0 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: F0 09 00 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: F0 09 00 79 14 00 78 9B 16 67 6B 98 1E 66 9C [18:20:38]GetLastDocTimeStamp 1729534759 [18:20:38]current date 1729534840 [18:20:38]FM_GetShiftState [18:20:38]SAM_PROTO_GetShiftState [18:20:38]wFMCommunicate request_size=4 [18:20:38]MH_SAM_APDU [18:20:38]CAPDU: 80 13 01 00 [18:20:38]Write to MH i2c: E2 08 00 7A 14 80 13 01 00 00 00 00 00 0B [18:20:38]Write i2c OK [18:20:38]MH_I2C_Read... [18:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:38]Read from MH i2c: E2 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: E2 0E 00 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: E2 0E 00 7A 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 37 [18:20:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:20:38]wFMCommunicate OK [18:20:38]SAM_PROTO_GetShiftState done [18:20:38]FM_GetShiftState done [18:20:38]opened in 1729469703 [18:20:38]opened+sec_in_day 1729556103 [18:20:38]quantity*price = 100015 [18:20:38]sum+1 = 100017 [18:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 345 21.10.2024 18:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69955 ФПД: 152365697198579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69955&fm=152365697198579&tin=02508201610067®Number=0000000000156251&sum=100000 [18:20:40]StoreToDocumentArchive [18:20:40]shift 194 fd 69955 [18:20:40]save to /storage/0194/doc_00069955 [18:20:40]save last doc name /storage/0194/doc_00069955 to /storage/kkm_last_doc_name [18:20:40]save OK [18:20:40]Clear old archive folders... [18:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:40]tlvbuf is 0111FC00 [18:20:40]SAM_PROTO_ClearQueue [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 09 00 00 [18:20:40]Write to MH i2c: E2 08 00 87 14 80 09 00 00 00 00 00 00 0D [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 87 14 00 90 00 0F [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_ClearQueue done [18:20:40]KKMCreateOFDPacket [18:20:40]OFDProtocolAddRootSTLVToBuf [18:20:40]FM_MakeSignedData [18:20:40]FM_MakeSignedData [18:20:40]SAM_PROTO_SignData [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 01 02 [18:20:40]Write to MH i2c: E2 08 00 88 14 80 0D 01 02 00 00 00 00 15 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=255 [18:20:40]MH_SAM_APDU [18:20: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 11 01 00 35 04 06 00 8A [18:20:40]Write to MH i2c: E2 02 01 89 14 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 11 01 00 35 04 06 00 8A 00 00 23 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=10 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 02 02 05 93 67 41 E9 F3 [18:20:40]Write to MH i2c: E2 0D 00 8A 14 80 0D 02 02 05 00 93 67 41 E9 F3 00 00 39 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 8A 14 00 90 00 12 [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 03 02 [18:20:40]Write to MH i2c: E2 08 00 8B 14 80 0D 03 02 00 00 00 00 1A [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0B 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0B 00 8B 14 00 76 3A 66 02 93 86 51 A3 90 00 40 [18:20:40]RAPDU: 76 3A 66 02 93 86 51 A3 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_SignData done [18:20:40]FM_MakeSignedData done [18:20:40]CreateOFDProtocolMessage [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 11 00 00 [18:20:40]Write to MH i2c: E2 08 00 8C 14 80 11 00 00 00 00 00 00 1A [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 8C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [18:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:20:40]wFMCommunicate OK [18:20:40]CreateOFDProtocolMessage done [18:20:40]OFDSenderStorePacket 69955 [18:20:40]StoreOFDPacket docnum=69955 [18:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1B 6B 07 01 65 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 11 01 00 35 04 06 00 8A 93 67 41 E9 F3 76 3A 66 02 93 86 51 A3 [18:20:40]CheckFolder [18:20:40]dirname=/storage/ofd_packets [18:20:40]CheckFolder done [18:20:40]ProducePacketName [18:20:40]name=ofd_packets/00069955 [18:20:40]NVStorageSaveData ofd_packets/00069955 [18:20:40]File name is /storage/ofd_packets/00069955 [18:20:40]Write 301 bytes [18:20:40]NVStorageSaveData done [18:20:40]OFDSenderStorePacket done [18:20:40]KKMCreateOFDPacket done [18:20:40]NVStorageSaveData kkm_last_timestamp [18:20:40]File name is /storage/kkm_last_timestamp [18:20:40]Write 4 bytes [18:20:40]NVStorageSaveData done [18:20:40]ExternCall_PrintAddStr [18:20:40]wPrintStart [18:20:40]Write to MH i2c: 01 00 00 8D 14 A1 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 07 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 07 00 8D 14 00 00 00 00 00 FF 0F B6 [18:20:40]RasterBufferAndPrint [18:20:40]line Счет N : (1)2885718 [18:20:40]line ИНН: 02508201610067 [18:20:40]line Контрольно-Кассовый Чек [18:20:40]line ПРОДАЖА [18:20:40]line ТРК (МРК, ГНК) : 32 [18:20:40]line Товар: 2710124130 [18:20:40]line Аи-92-К-5 [18:20:40]line 14.950 * 66.90 [18:20:40]line = 1000.16 [18:20:40]line НДС 12% НСП 1% [18:20:40]line > о реализуемом товаре [18:20:40]line ОКРУГЛЕНИЕ: -0.16 [18:20:40]line ИТОГО: 1000.00 [18:20:40]line Внесено: 1000.00 [18:20:40]line СДАЧА: 0.00 [18:20:40]line НСП 1% : 8.85 [18:20:40]line НДС 12% : 106.21 [18:20:40]line Наличными: 1000.00 [18:20:40]line Безнал.: 0.00 [18:20:40]line Место: АЗС № 85 "Партнер Нефть" [18:20:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:20:40]line СНО: Общий режим [18:20:40]line Чек 345 21.10.2024 18:20 [18:20:40]line Смена: 194 ФФД: 1.0 [18:20:40]line ЗНМ: 0300000167 [18:20:40]line РНМ: 0000000000156251 [18:20:40]line Версия ККМ: v1.0 [18:20:40]line ФМ: 0000000000963346 [18:20:40]line ФД: 69955 [18:20:40]line ФПД: 152365697198579 [18:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69955&fm=152365697198579&tin=02508201610067®Number=0000000000156251&sum=100000 [18:20:40]OFD Sender: Processing packet 69955 [packets to send 18, broken 17] [18:20:40]ProducePacketName [18:20:40]name=ofd_packets/00069955 [18:20:40]OFD Sender: To server: pG, [18:20:40]CommunicateWithHost lk.salyk.kg:30040 [18:20:40]ConnectInit lk.salyk.kg [18:20:40]written 0, free lines is 4095 [18:20:40]Connected sock=10 [18:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1B 6B 07 01 65 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 78 9B 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 11 01 00 35 04 06 00 8A 93 67 41 E9 F3 76 3A 66 02 93 86 51 A3 [18:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A9 F2 47 00 E6 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 11 01 00 F4 03 04 00 1B 45 16 67 B6 04 01 00 00 AB FB 90 56 F8 49 60 E1 [18:20:41]CommunicateWithHost err = 0 [18:20:41]CheckOFDResponse [18:20:41]1017 (14) - 77093643461234 [18:20:41]1041 (16) - 0000000000963346 [18:20:41]1040 (4) - 69955 [18:20:41]1012 (4) - 21.10.2024 12:12 [18:20:41]1206 (1) - 0 [18:20:41]OFD Sender: Remove packet 69955 [18:20:41]ProducePacketName [18:20:41]name=ofd_packets/00069955 [18:20:41]NVStorageDeleteData [18:20:41]Write to MH i2c: 01 00 00 B8 14 CC [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 07 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 F1 0C D0 [18:20:41]RasterBufferAndPrint [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]written 0, free lines is 3319 [18:20:41]MH_Cut [18:20:41]Write to MH i2c: D1 01 00 BF 14 01 A5 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 01 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 01 00 BF 14 00 A4 [18:20:41]Write to MH i2c: 01 00 00 C0 14 D4 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]OFD Sender: No OFD packet to send [18:20:42]*** Cut start [18:20:42]*** Partial cut [18:20:42]*** CUTSNS_PIN = 1 [18:20:42]*** CUTSNS_PIN = 0 [18:20:42]*** Brake cut motor [18:20:42]Read from MH i2c: 01 [18:20:42]MH_I2C_Read... [18:20:42]*** Stop cut motor [18:20:42]*** Cut end [18:20:42]Read from MH i2c: 01 07 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 FF 0F E9 [18:20:42]process_action close_receipt done [18:20:42]requested_data is exist [18:20:42]produce_requested_data [18:20:42]requested_item fm.sn is exist - process it [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 11 00 00 [18:20:42]Write to MH i2c: E2 08 00 C1 14 80 11 00 00 00 00 00 00 4F [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:42]Read from MH i2c: E2 17 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 17 00 C1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [18:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:20:42]wFMCommunicate OK [18:20:42]requested_item fd.num is exist - process it [18:20:42]SAM_PROTO_GetFieldsCounters [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 13 00 00 [18:20:42]Write to MH i2c: E2 08 00 C2 14 80 13 00 00 00 00 00 00 52 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 62 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 62 00 C2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:42]wFMCommunicate OK [18:20:42]SAM_PROTO_GetFieldsCounters done [18:20:42]requested_item shift.num is exist - process it [18:20:42]requested_item shift.opened is exist - process it [18:20:42]req_shift_opened [18:20:42]FM_GetShiftState [18:20:42]SAM_PROTO_GetShiftState [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 13 01 00 [18:20:42]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 0E 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 80 [18:20:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:20:42]wFMCommunicate OK [18:20:42]SAM_PROTO_GetShiftState done [18:20:42]FM_GetShiftState done [18:20:42]req_shift_opened done [18:20:42]requested_item shift.open_date is exist - process it [18:20:42]req_shift_open_date [18:20:42]req_shift_open_date done [18:20:42]produce_requested_data done [18:20:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69955,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:20:42]process_action_free close_receipt [18:20:42]json_value_free [18:20:42]json_value_free done [18:20:42]process_json_proto returns [18:20:42]Send response to host [18:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69955,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:20:42]free response buf [18:20:42]execute_script done [18:20:42]execute_script returns [18:20:42]free content buf [18:20:42]Sock 7.Close socket [18:20:42]Sock 7.Thread stoped [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:28]accept exits with 9 [18:24:28]New connection [18:24:28]New thread 3067026788 created [18:24:28]Thread 3067170148 joined [18:24:28]Waiting for new connection... [18:24:28] Sock 9.Parse request [18:24:28]Sock 9.Check first char [18:24:28]Sock 9.First char is OK [18:24:28]request: POST /json_proto HTTP/1.0 [18:24:28]Method: POST [18:24:28]URL: /json_proto [18:24:28]Method is POST - this is cgi request [18:24:28]url: /json_proto [18:24:28]query_string will be loaded in cgi processing [18:24:28]execute_cgi json_proto POST (null) [18:24:28]execute_cgi path=json_proto method=POST [18:24:28]POST find Content-Length [18:24:28]Host: 172.17.50.3:8080 [18:24:28]Content-Length: 776 [18:24:28]Content-Type: application/json [18:24:28] [18:24:28]POST finish read [18:24:28]Found Content-Length = 776 [18:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:28]execute_script... [18:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:28]POST & json_proto [18:24:28]process_json_proto [18:24:28]json parsed OK: [18:24:28]protocol is kg_v1.0 [18:24:28]action value=close_receipt [18:24:28]process_action close_receipt [18:24:28]cmd_close_receipt [18:24:28]MH_GetDate [18:24:28]Write to MH i2c: F0 00 00 C4 14 C7 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: F0 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: F0 09 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: F0 09 00 C4 14 00 5D 9C 16 67 6B 98 1E 66 CD [18:24:28]GetLastDocTimeStamp 1729534840 [18:24:28]current date 1729535069 [18:24:28]FM_GetShiftState [18:24:28]SAM_PROTO_GetShiftState [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 13 01 00 [18:24:28]Write to MH i2c: E2 08 00 C5 14 80 13 01 00 00 00 00 00 56 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 C5 14 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 82 [18:24:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:24:28]wFMCommunicate OK [18:24:28]SAM_PROTO_GetShiftState done [18:24:28]FM_GetShiftState done [18:24:28]opened in 1729469703 [18:24:28]opened+sec_in_day 1729556103 [18:24:28]quantity*price = 100051 [18:24:28]sum+1 = 100052 [18:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 346 21.10.2024 18:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69956 ФПД: 185152770000115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182429&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69956&fm=185152770000115&tin=02508201610067®Number=0000000000156251&sum=100051 [18:24:29]StoreToDocumentArchive [18:24:29]shift 194 fd 69956 [18:24:29]save to /storage/0194/doc_00069956 [18:24:29]save last doc name /storage/0194/doc_00069956 to /storage/kkm_last_doc_name [18:24:29]save OK [18:24:29]Clear old archive folders... [18:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:24:29]tlvbuf is B6EF60E0 [18:24:29]SAM_PROTO_ClearQueue [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 09 00 00 [18:24:29]Write to MH i2c: E2 08 00 D2 14 80 09 00 00 00 00 00 00 58 [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [18:24:29]RAPDU: 90 00 [18:24:29]wFMCommunicate OK [18:24:29]SAM_PROTO_ClearQueue done [18:24:29]KKMCreateOFDPacket [18:24:29]OFDProtocolAddRootSTLVToBuf [18:24:29]FM_MakeSignedData [18:24:29]FM_MakeSignedData [18:24:29]SAM_PROTO_SignData [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 0D 01 02 [18:24:29]Write to MH i2c: E2 08 00 D3 14 80 0D 01 02 00 00 00 00 60 [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [18:24:29]RAPDU: 90 00 [18:24:29]wFMCommunicate OK [18:24:29]wFMCommunicate request_size=255 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 5D 9C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 11 01 [18:24:29]Write to MH i2c: E2 02 01 D4 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 5D 9C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 11 01 00 00 01 [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [18:24:29]RAPDU: 90 00 [18:24:29]wFMCommunicate OK [18:24:29]wFMCommunicate request_size=16 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 65 3D 15 C4 F3 [18:24:29]Write to MH i2c: E2 13 00 D5 14 80 0D 02 02 0B 00 00 35 04 06 00 A8 65 3D 15 C4 F3 00 00 CE [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:29]Read from MH i2c: E2 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 [18:24:29]MH_I2C_Read... [18:24:29]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [18:24:29]RAPDU: 90 00 [18:24:29]wFMCommunicate OK [18:24:29]wFMCommunicate request_size=4 [18:24:29]MH_SAM_APDU [18:24:29]CAPDU: 80 0D 03 02 [18:24:29]Write to MH i2c: E2 08 00 D6 14 80 0D 03 02 00 00 00 00 65 [18:24:29]Write i2c OK [18:24:29]MH_I2C_Read... [18:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:30]Read from MH i2c: E2 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 0B 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 0B 00 D6 14 00 6F 76 9B F7 8F 43 69 FB 90 00 13 [18:24:30]RAPDU: 6F 76 9B F7 8F 43 69 FB 90 00 [18:24:30]wFMCommunicate OK [18:24:30]SAM_PROTO_SignData done [18:24:30]FM_MakeSignedData done [18:24:30]CreateOFDProtocolMessage [18:24:30]wFMCommunicate request_size=4 [18:24:30]MH_SAM_APDU [18:24:30]CAPDU: 80 11 00 00 [18:24:30]Write to MH i2c: E2 08 00 D7 14 80 11 00 00 00 00 00 00 65 [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:30]Read from MH i2c: E2 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 17 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: E2 17 00 D7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [18:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:24:30]wFMCommunicate OK [18:24:30]CreateOFDProtocolMessage done [18:24:30]OFDSenderStorePacket 69956 [18:24:30]StoreOFDPacket docnum=69956 [18:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 20 C4 0D 01 17 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 5D 9C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 11 01 00 35 04 06 00 A8 65 3D 15 C4 F3 6F 76 9B F7 8F 43 69 FB [18:24:30]CheckFolder [18:24:30]dirname=/storage/ofd_packets [18:24:30]CheckFolder done [18:24:30]ProducePacketName [18:24:30]name=ofd_packets/00069956 [18:24:30]NVStorageSaveData ofd_packets/00069956 [18:24:30]File name is /storage/ofd_packets/00069956 [18:24:30]Write 307 bytes [18:24:30]NVStorageSaveData done [18:24:30]OFDSenderStorePacket done [18:24:30]KKMCreateOFDPacket done [18:24:30]NVStorageSaveData kkm_last_timestamp [18:24:30]File name is /storage/kkm_last_timestamp [18:24:30]Write 4 bytes [18:24:30]NVStorageSaveData done [18:24:30]ExternCall_PrintAddStr [18:24:30]wPrintStart [18:24:30]Write to MH i2c: 01 00 00 D8 14 EC [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 07 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 FF 0F 01 [18:24:30]RasterBufferAndPrint [18:24:30]line Счет N : (1)2885720 [18:24:30]line ИНН: 02508201610067 [18:24:30]line Контрольно-Кассовый Чек [18:24:30]line ПРОДАЖА [18:24:30]line ТРК (МРК, ГНК) : 21 [18:24:30]line Товар: 2710194240 [18:24:30]line D-ENERGY Дт-К-2 [18:24:30]line 12.960 * 77.20 [18:24:30]line = 1000.51 [18:24:30]line НДС 12% НСП 1% [18:24:30]line > о реализуемом товаре [18:24:30]line ИТОГО: 1000.51 [18:24:30]line НСП 1% : 8.85 [18:24:30]line НДС 12% : 106.25 [18:24:30]line Наличными: 0.00 [18:24:30]line Безнал.: 1000.51 [18:24:30]line Место: АЗС № 85 "Партнер Нефть" [18:24:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:24:30]line СНО: Общий режим [18:24:30]line Чек 346 21.10.2024 18:24 [18:24:30]line Смена: 194 ФФД: 1.0 [18:24:30]line ЗНМ: 0300000167 [18:24:30]line РНМ: 0000000000156251 [18:24:30]line Версия ККМ: v1.0 [18:24:30]line Платежная система: Mbank [18:24:30]line ФМ: 0000000000963346 [18:24:30]line ФД: 69956 [18:24:30]line ФПД: 185152770000115 [18:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182429&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69956&fm=185152770000115&tin=02508201610067®Number=0000000000156251&sum=100051 [18:24:30]OFD Sender: Processing packet 69956 [packets to send 18, broken 17] [18:24:30]ProducePacketName [18:24:30]name=ofd_packets/00069956 [18:24:30]OFD Sender: To server: pG, [18:24:30]CommunicateWithHost lk.salyk.kg:30040 [18:24:30]ConnectInit lk.salyk.kg [18:24:30]written 0, free lines is 4095 [18:24:30]Connected sock=10 [18:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 20 C4 0D 01 17 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 5D 9C 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 11 01 00 35 04 06 00 A8 65 3D 15 C4 F3 6F 76 9B F7 8F 43 69 FB [18:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 73 6A 47 00 C0 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 11 01 00 F4 03 04 00 00 46 16 67 B6 04 01 00 00 3B 91 A1 C2 E3 4B 51 A9 [18:24:30]CommunicateWithHost err = 0 [18:24:30]CheckOFDResponse [18:24:30]1017 (14) - 77093643461234 [18:24:30]1041 (16) - 0000000000963346 [18:24:30]1040 (4) - 69956 [18:24:30]1012 (4) - 21.10.2024 12:16 [18:24:30]1206 (1) - 0 [18:24:30]OFD Sender: Remove packet 69956 [18:24:30]ProducePacketName [18:24:30]name=ofd_packets/00069956 [18:24:30]NVStorageDeleteData [18:24:30]Write to MH i2c: 01 00 00 01 15 16 [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 07 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 13 0D 3D [18:24:30]RasterBufferAndPrint [18:24:30]line [18:24:30]line [18:24:30]line [18:24:30]line [18:24:30]line [18:24:30]written 0, free lines is 3354 [18:24:30]MH_Cut [18:24:30]Write to MH i2c: D1 01 00 08 15 01 EF [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: D1 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: D1 01 00 [18:24:30]MH_I2C_Read... [18:24:30]Read from MH i2c: D1 01 00 08 15 00 EE [18:24:30]Write to MH i2c: 01 00 00 09 15 1E [18:24:30]Write i2c OK [18:24:30]MH_I2C_Read... [18:24:31]OFD Sender: No OFD packet to send [18:24:31]*** Cut start [18:24:31]*** Partial cut [18:24:31]*** CUTSNS_PIN = 1 [18:24:31]*** CUTSNS_PIN = 0 [18:24:31]*** Brake cut motor [18:24:32]Read from MH i2c: 01 [18:24:32]MH_I2C_Read... [18:24:32]*** Stop cut motor [18:24:32]*** Cut end [18:24:32]Read from MH i2c: 01 07 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: 01 07 00 09 15 00 00 00 00 00 FF 0F 33 [18:24:32]process_action close_receipt done [18:24:32]requested_data is exist [18:24:32]produce_requested_data [18:24:32]requested_item fm.sn is exist - process it [18:24:32]wFMCommunicate request_size=4 [18:24:32]MH_SAM_APDU [18:24:32]CAPDU: 80 11 00 00 [18:24:32]Write to MH i2c: E2 08 00 0A 15 80 11 00 00 00 00 00 00 99 [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:32]Read from MH i2c: E2 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 17 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 17 00 0A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [18:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:24:32]wFMCommunicate OK [18:24:32]requested_item fd.num is exist - process it [18:24:32]SAM_PROTO_GetFieldsCounters [18:24:32]wFMCommunicate request_size=4 [18:24:32]MH_SAM_APDU [18:24:32]CAPDU: 80 13 00 00 [18:24:32]Write to MH i2c: E2 08 00 0B 15 80 13 00 00 00 00 00 00 9C [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:32]Read from MH i2c: E2 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 62 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 62 00 0B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:32]wFMCommunicate OK [18:24:32]SAM_PROTO_GetFieldsCounters done [18:24:32]requested_item shift.num is exist - process it [18:24:32]requested_item shift.opened is exist - process it [18:24:32]req_shift_opened [18:24:32]FM_GetShiftState [18:24:32]SAM_PROTO_GetShiftState [18:24:32]wFMCommunicate request_size=4 [18:24:32]MH_SAM_APDU [18:24:32]CAPDU: 80 13 01 00 [18:24:32]Write to MH i2c: E2 08 00 0C 15 80 13 01 00 00 00 00 00 9E [18:24:32]Write i2c OK [18:24:32]MH_I2C_Read... [18:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:32]Read from MH i2c: E2 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 0E 00 [18:24:32]MH_I2C_Read... [18:24:32]Read from MH i2c: E2 0E 00 0C 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [18:24:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:24:32]wFMCommunicate OK [18:24:32]SAM_PROTO_GetShiftState done [18:24:32]FM_GetShiftState done [18:24:32]req_shift_opened done [18:24:32]requested_item shift.open_date is exist - process it [18:24:32]req_shift_open_date [18:24:32]req_shift_open_date done [18:24:32]produce_requested_data done [18:24:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69956,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:24:32]process_action_free close_receipt [18:24:32]json_value_free [18:24:32]json_value_free done [18:24:32]process_json_proto returns [18:24:32]Send response to host [18:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69956,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:24:32]free response buf [18:24:32]execute_script done [18:24:32]execute_script returns [18:24:32]free content buf [18:24:32]Sock 9.Close socket [18:24:32]Sock 9.Thread stoped [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:32]accept exits with 7 [18:27:32]New connection [18:27:32]New thread 3067170148 created [18:27:32]Thread 3067026788 joined [18:27:32]Waiting for new connection... [18:27:32] Sock 7.Parse request [18:27:32]Sock 7.Check first char [18:27:32]Sock 7.First char is OK [18:27:32]request: POST /json_proto HTTP/1.0 [18:27:32]Method: POST [18:27:32]URL: /json_proto [18:27:32]Method is POST - this is cgi request [18:27:32]url: /json_proto [18:27:32]query_string will be loaded in cgi processing [18:27:32]execute_cgi json_proto POST (null) [18:27:32]execute_cgi path=json_proto method=POST [18:27:32]POST find Content-Length [18:27:32]Host: 172.17.50.3:8080 [18:27:32]Content-Length: 681 [18:27:32]Content-Type: application/json [18:27:32] [18:27:32]POST finish read [18:27:32]Found Content-Length = 681 [18:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.730, "sum" : 106.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 106.00, "payments": [ { "type": 0, "sum" : 106.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:32]execute_script... [18:27: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)2885722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 2.730, "sum" : 106.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 106.00, "payments": [ { "type": 0, "sum" : 106.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:32]POST & json_proto [18:27:32]process_json_proto [18:27:32]json parsed OK: [18:27:32]protocol is kg_v1.0 [18:27:32]action value=close_receipt [18:27:32]process_action close_receipt [18:27:32]cmd_close_receipt [18:27:32]MH_GetDate [18:27:32]Write to MH i2c: F0 00 00 0D 15 11 [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 0D 15 00 15 9D 16 67 6B 98 1E 66 D0 [18:27:32]GetLastDocTimeStamp 1729535069 [18:27:32]current date 1729535253 [18:27:32]FM_GetShiftState [18:27:32]SAM_PROTO_GetShiftState [18:27:32]wFMCommunicate request_size=4 [18:27:32]MH_SAM_APDU [18:27:32]CAPDU: 80 13 01 00 [18:27:32]Write to MH i2c: E2 08 00 0E 15 80 13 01 00 00 00 00 00 A0 [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:32]Read from MH i2c: E2 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 0E 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CC [18:27:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:27:32]wFMCommunicate OK [18:27:32]SAM_PROTO_GetShiftState done [18:27:32]FM_GetShiftState done [18:27:32]opened in 1729469703 [18:27:32]opened+sec_in_day 1729556103 [18:27:32]quantity*price = 10619 [18:27:32]sum+1 = 10621 [18:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 106.00 Внесено: 200.00 СДАЧА: 94.00 НСП 1% : 0.94 НДС 12% : 11.28 Наличными: 106.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 347 21.10.2024 18:27 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69957 ФПД: 273406068448614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69957&fm=273406068448614&tin=02508201610067®Number=0000000000156251&sum=10600 [18:27:33]StoreToDocumentArchive [18:27:33]shift 194 fd 69957 [18:27:33]save to /storage/0194/doc_00069957 [18:27:33]save last doc name /storage/0194/doc_00069957 to /storage/kkm_last_doc_name [18:27:33]save OK [18:27:33]Clear old archive folders... [18:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:27:33]tlvbuf is B6F8DAF0 [18:27:33]SAM_PROTO_ClearQueue [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 09 00 00 [18:27:33]Write to MH i2c: E2 08 00 1B 15 80 09 00 00 00 00 00 00 A2 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_ClearQueue done [18:27:33]KKMCreateOFDPacket [18:27:33]OFDProtocolAddRootSTLVToBuf [18:27:33]FM_MakeSignedData [18:27:33]FM_MakeSignedData [18:27:33]SAM_PROTO_SignData [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 01 02 [18:27:33]Write to MH i2c: E2 08 00 1C 15 80 0D 01 02 00 00 00 00 AA [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=255 [18:27:33]MH_SAM_APDU [18:27:33]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 33 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 04 00 00 00 00 07 04 06 00 68 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 15 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 11 01 00 35 04 06 00 F8 A9 [18:27:33]Write to MH i2c: E2 02 01 1D 15 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 33 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 04 00 00 00 00 07 04 06 00 68 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 15 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 11 01 00 35 04 06 00 F8 A9 00 00 27 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=9 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 02 02 04 4F 96 DD 66 [18:27:33]Write to MH i2c: E2 0C 00 1E 15 80 0D 02 02 04 00 4F 96 DD 66 00 00 DD [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 03 02 [18:27:33]Write to MH i2c: E2 08 00 1F 15 80 0D 03 02 00 00 00 00 AF [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0B 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0B 00 1F 15 00 57 E2 D9 20 E0 6A 53 9B 90 00 1A [18:27:33]RAPDU: 57 E2 D9 20 E0 6A 53 9B 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_SignData done [18:27:33]FM_MakeSignedData done [18:27:33]CreateOFDProtocolMessage [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 11 00 00 [18:27:33]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 20 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [18:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:33]wFMCommunicate OK [18:27:33]CreateOFDProtocolMessage done [18:27:33]OFDSenderStorePacket 69957 [18:27:33]StoreOFDPacket docnum=69957 [18:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4B 00 06 01 02 1B 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 33 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 04 00 00 00 00 07 04 06 00 68 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 15 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 11 01 00 35 04 06 00 F8 A9 4F 96 DD 66 57 E2 D9 20 E0 6A 53 9B [18:27:33]CheckFolder [18:27:33]dirname=/storage/ofd_packets [18:27:33]CheckFolder done [18:27:33]ProducePacketName [18:27:33]name=ofd_packets/00069957 [18:27:33]NVStorageSaveData ofd_packets/00069957 [18:27:33]File name is /storage/ofd_packets/00069957 [18:27:33]Write 300 bytes [18:27:33]NVStorageSaveData done [18:27:33]OFDSenderStorePacket done [18:27:33]KKMCreateOFDPacket done [18:27:33]NVStorageSaveData kkm_last_timestamp [18:27:33]File name is /storage/kkm_last_timestamp [18:27:33]Write 4 bytes [18:27:33]NVStorageSaveData done [18:27:33]ExternCall_PrintAddStr [18:27:33]wPrintStart [18:27:33]Write to MH i2c: 01 00 00 21 15 36 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 07 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 07 00 21 15 00 00 00 00 00 FF 0F 4B [18:27:33]RasterBufferAndPrint [18:27:33]line Счет N : (1)2885722 [18:27:33]line ИНН: 02508201610067 [18:27:33]line Контрольно-Кассовый Чек [18:27:33]line ПРОДАЖА [18:27:33]line ТРК (МРК, ГНК) : 71 [18:27:33]line Товар: 2711129700 [18:27:33]line ГАЗ-К-3 [18:27:33]line 2.730 * 38.90 [18:27:33]line = 106.20 [18:27:33]line НДС 12% НСП 1% [18:27:33]line > о реализуемом товаре [18:27:33]line ОКРУГЛЕНИЕ: -0.20 [18:27:33]line ИТОГО: 106.00 [18:27:33]line Внесено: 200.00 [18:27:33]line СДАЧА: 94.00 [18:27:33]line НСП 1% : 0.94 [18:27:33]line НДС 12% : 11.28 [18:27:33]line Наличными: 106.00 [18:27:33]line Безнал.: 0.00 [18:27:33]line Место: АЗС № 85 "Партнер Нефть" [18:27:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:27:33]line СНО: Общий режим [18:27:33]line Чек 347 21.10.2024 18:27 [18:27:33]line Смена: 194 ФФД: 1.0 [18:27:33]line ЗНМ: 0300000167 [18:27:33]line РНМ: 0000000000156251 [18:27:33]line Версия ККМ: v1.0 [18:27:33]line ФМ: 0000000000963346 [18:27:33]line ФД: 69957 [18:27:33]line ФПД: 273406068448614 [18:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69957&fm=273406068448614&tin=02508201610067®Number=0000000000156251&sum=10600 [18:27:34]OFD Sender: Processing packet 69957 [packets to send 18, broken 17] [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00069957 [18:27:34]OFD Sender: To server: pG, [18:27:34]CommunicateWithHost lk.salyk.kg:30040 [18:27:34]ConnectInit lk.salyk.kg [18:27:34]written 0, free lines is 4095 [18:27:34]Connected sock=9 [18:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4B 00 06 01 02 1B 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 33 FF 03 08 00 03 AA 0A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 7C 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 04 00 00 00 00 07 04 06 00 68 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 15 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 11 01 00 35 04 06 00 F8 A9 4F 96 DD 66 57 E2 D9 20 E0 6A 53 9B [18:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 DE 47 00 6B 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 11 01 00 F4 03 04 00 B8 46 16 67 B6 04 01 00 00 C9 41 38 34 7F EB B8 84 [18:27:34]CommunicateWithHost err = 0 [18:27:34]CheckOFDResponse [18:27:34]1017 (14) - 77093643461234 [18:27:34]1041 (16) - 0000000000963346 [18:27:34]1040 (4) - 69957 [18:27:34]1012 (4) - 21.10.2024 12:19 [18:27:34]1206 (1) - 0 [18:27:34]OFD Sender: Remove packet 69957 [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00069957 [18:27:34]NVStorageDeleteData [18:27:34]Write to MH i2c: 01 00 00 4C 15 61 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 EF 0C 63 [18:27:34]RasterBufferAndPrint [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]written 0, free lines is 3320 [18:27:34]MH_Cut [18:27:34]Write to MH i2c: D1 01 00 53 15 01 3A [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 01 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 01 00 53 15 00 39 [18:27:34]Write to MH i2c: 01 00 00 54 15 69 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]OFD Sender: No OFD packet to send [18:27:35]*** Cut start [18:27:35]*** Partial cut [18:27:35]*** CUTSNS_PIN = 1 [18:27:35]*** CUTSNS_PIN = 0 [18:27:35]*** Brake cut motor [18:27:35]Read from MH i2c: 01 [18:27:35]MH_I2C_Read... [18:27:35]*** Stop cut motor [18:27:35]*** Cut end [18:27:35]Read from MH i2c: 01 07 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 FF 0F 7E [18:27:35]process_action close_receipt done [18:27:35]requested_data is exist [18:27:35]produce_requested_data [18:27:35]requested_item fm.sn is exist - process it [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 11 00 00 [18:27:35]Write to MH i2c: E2 08 00 55 15 80 11 00 00 00 00 00 00 E4 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 55 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [18:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:35]wFMCommunicate OK [18:27:35]requested_item fd.num is exist - process it [18:27:35]SAM_PROTO_GetFieldsCounters [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 13 00 00 [18:27:35]Write to MH i2c: E2 08 00 56 15 80 13 00 00 00 00 00 00 E7 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 62 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 62 00 56 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_GetFieldsCounters done [18:27:36]requested_item shift.num is exist - process it [18:27:36]requested_item shift.opened is exist - process it [18:27:36]req_shift_opened [18:27:36]FM_GetShiftState [18:27:36]SAM_PROTO_GetShiftState [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 13 01 00 [18:27:36]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [18:27:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_GetShiftState done [18:27:36]FM_GetShiftState done [18:27:36]req_shift_opened done [18:27:36]requested_item shift.open_date is exist - process it [18:27:36]req_shift_open_date [18:27:36]req_shift_open_date done [18:27:36]produce_requested_data done [18:27:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69957,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:27:36]process_action_free close_receipt [18:27:36]json_value_free [18:27:36]json_value_free done [18:27:36]process_json_proto returns [18:27:36]Send response to host [18:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69957,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:27:36]free response buf [18:27:36]execute_script done [18:27:36]execute_script returns [18:27:36]free content buf [18:27:36]Sock 7.Close socket [18:27:36]Sock 7.Thread stoped [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:04]accept exits with 10 [18:28:04]New connection [18:28:04]New thread 3067026788 created [18:28:04]Thread 3067170148 joined [18:28:04]Waiting for new connection... [18:28:04] Sock 10.Parse request [18:28:04]Sock 10.Check first char [18:28:04]Sock 10.First char is OK [18:28:04]request: POST /json_proto HTTP/1.0 [18:28:04]Method: POST [18:28:04]URL: /json_proto [18:28:04]Method is POST - this is cgi request [18:28:04]url: /json_proto [18:28:04]query_string will be loaded in cgi processing [18:28:04]execute_cgi json_proto POST (null) [18:28:04]execute_cgi path=json_proto method=POST [18:28:04]POST find Content-Length [18:28:04]Host: 172.17.50.3:8080 [18:28:04]Content-Length: 689 [18:28:04]Content-Type: application/json [18:28:04] [18:28:04]POST finish read [18:28:04]Found Content-Length = 689 [18:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:28:04]execute_script... [18: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)2885723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:28:04]POST & json_proto [18:28:04]process_json_proto [18:28:04]json parsed OK: [18:28:04]protocol is kg_v1.0 [18:28:04]action value=close_receipt [18:28:04]process_action close_receipt [18:28:04]cmd_close_receipt [18:28:04]MH_GetDate [18:28:04]Write to MH i2c: F0 00 00 58 15 5C [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 09 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 09 00 58 15 00 35 9D 16 67 6B 98 1E 66 3B [18:28:04]GetLastDocTimeStamp 1729535253 [18:28:04]current date 1729535285 [18:28:04]FM_GetShiftState [18:28:04]SAM_PROTO_GetShiftState [18:28:04]wFMCommunicate request_size=4 [18:28:04]MH_SAM_APDU [18:28:04]CAPDU: 80 13 01 00 [18:28:04]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:04]Read from MH i2c: E2 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: E2 0E 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 17 [18:28:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:28:04]wFMCommunicate OK [18:28:04]SAM_PROTO_GetShiftState done [18:28:04]FM_GetShiftState done [18:28:04]opened in 1729469703 [18:28:04]opened+sec_in_day 1729556103 [18:28:04]quantity*price = 100051 [18:28:04]sum+1 = 100052 [18:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 348 21.10.2024 18:28 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69958 ФПД: 139082183227769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182805&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69958&fm=139082183227769&tin=02508201610067®Number=0000000000156251&sum=100000 [18:28:05]StoreToDocumentArchive [18:28:05]shift 194 fd 69958 [18:28:05]save to /storage/0194/doc_00069958 [18:28:05]save last doc name /storage/0194/doc_00069958 to /storage/kkm_last_doc_name [18:28:05]save OK [18:28:05]Clear old archive folders... [18:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:28:05]tlvbuf is 011A1CD0 [18:28:05]SAM_PROTO_ClearQueue [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 09 00 00 [18:28:05]Write to MH i2c: E2 08 00 66 15 80 09 00 00 00 00 00 00 ED [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_ClearQueue done [18:28:05]KKMCreateOFDPacket [18:28:05]OFDProtocolAddRootSTLVToBuf [18:28:05]FM_MakeSignedData [18:28:05]FM_MakeSignedData [18:28:05]SAM_PROTO_SignData [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 01 02 [18:28:05]Write to MH i2c: E2 08 00 67 15 80 0D 01 02 00 00 00 00 F5 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=255 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5C 01 00 00 F4 03 04 00 35 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 11 01 [18:28:05]Write to MH i2c: E2 02 01 68 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5C 01 00 00 F4 03 04 00 35 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 11 01 00 00 0D [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=16 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7E 7E 98 20 39 79 [18:28:05]Write to MH i2c: E2 13 00 69 15 80 0D 02 02 0B 00 00 35 04 06 00 7E 7E 98 20 39 79 00 00 B3 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 03 02 [18:28:05]Write to MH i2c: E2 08 00 6A 15 80 0D 03 02 00 00 00 00 FA [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0B 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0B 00 6A 15 00 A9 62 6D 24 9B 89 07 B2 90 00 74 [18:28:05]RAPDU: A9 62 6D 24 9B 89 07 B2 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_SignData done [18:28:05]FM_MakeSignedData done [18:28:05]CreateOFDProtocolMessage [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 11 00 00 [18:28:05]Write to MH i2c: E2 08 00 6B 15 80 11 00 00 00 00 00 00 FA [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 17 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 17 00 6B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [18:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:28:05]wFMCommunicate OK [18:28:05]CreateOFDProtocolMessage done [18:28:05]OFDSenderStorePacket 69958 [18:28:05]StoreOFDPacket docnum=69958 [18:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 37 5D 0D 01 8C F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5C 01 00 00 F4 03 04 00 35 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 11 01 00 35 04 06 00 7E 7E 98 20 39 79 A9 62 6D 24 9B 89 07 B2 [18:28:05]CheckFolder [18:28:05]dirname=/storage/ofd_packets [18:28:05]CheckFolder done [18:28:05]ProducePacketName [18:28:05]name=ofd_packets/00069958 [18:28:05]NVStorageSaveData ofd_packets/00069958 [18:28:05]File name is /storage/ofd_packets/00069958 [18:28:05]Write 307 bytes [18:28:05]NVStorageSaveData done [18:28:05]OFDSenderStorePacket done [18:28:05]KKMCreateOFDPacket done [18:28:05]NVStorageSaveData kkm_last_timestamp [18:28:05]File name is /storage/kkm_last_timestamp [18:28:05]Write 4 bytes [18:28:05]NVStorageSaveData done [18:28:05]ExternCall_PrintAddStr [18:28:05]wPrintStart [18:28:05]Write to MH i2c: 01 00 00 6C 15 81 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [18:28:05]RasterBufferAndPrint [18:28:05]line Счет N : (1)2885723 [18:28:05]line ИНН: 02508201610067 [18:28:05]line Контрольно-Кассовый Чек [18:28:05]line ПРОДАЖА [18:28:05]line ТРК (МРК, ГНК) : 21 [18:28:05]line Товар: 2710194240 [18:28:05]line D-ENERGY Дт-К-2 [18:28:05]line 12.960 * 77.20 [18:28:05]line = 1000.51 [18:28:05]line НДС 12% НСП 1% [18:28:05]line > о реализуемом товаре [18:28:05]line ОКРУГЛЕНИЕ: -0.51 [18:28:05]line ИТОГО: 1000.00 [18:28:05]line Внесено: 1000.00 [18:28:05]line СДАЧА: 0.00 [18:28:05]line НСП 1% : 8.85 [18:28:05]line НДС 12% : 106.25 [18:28:05]line Наличными: 1000.00 [18:28:05]line Безнал.: 0.00 [18:28:05]line Место: АЗС № 85 "Партнер Нефть" [18:28:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:28:05]line СНО: Общий режим [18:28:05]line Чек 348 21.10.2024 18:28 [18:28:05]line Смена: 194 ФФД: 1.0 [18:28:05]line ЗНМ: 0300000167 [18:28:05]line РНМ: 0000000000156251 [18:28:05]line Версия ККМ: v1.0 [18:28:05]line ФМ: 0000000000963346 [18:28:05]line ФД: 69958 [18:28:05]line ФПД: 139082183227769 [18:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182805&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69958&fm=139082183227769&tin=02508201610067®Number=0000000000156251&sum=100000 [18:28:06]OFD Sender: Processing packet 69958 [packets to send 18, broken 17] [18:28:06]ProducePacketName [18:28:06]name=ofd_packets/00069958 [18:28:06]OFD Sender: To server: pG, [18:28:06]CommunicateWithHost lk.salyk.kg:30040 [18:28:06]ConnectInit lk.salyk.kg [18:28:06]written 0, free lines is 4095 [18:28:06]Connected sock=9 [18:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 37 5D 0D 01 8C F1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5C 01 00 00 F4 03 04 00 35 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 11 01 00 35 04 06 00 7E 7E 98 20 39 79 A9 62 6D 24 9B 89 07 B2 [18:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3E 5F 47 00 33 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 39 36 33 33 34 36 10 04 04 00 46 11 01 00 F4 03 04 00 D8 46 16 67 B6 04 01 00 00 7E 6A E0 32 14 12 06 C1 [18:28:06]CommunicateWithHost err = 0 [18:28:06]CheckOFDResponse [18:28:06]1017 (14) - 77093643461234 [18:28:06]1041 (16) - 0000000000963346 [18:28:06]1040 (4) - 69958 [18:28:06]1012 (4) - 21.10.2024 12:19 [18:28:06]1206 (1) - 0 [18:28:06]OFD Sender: Remove packet 69958 [18:28:06]ProducePacketName [18:28:06]name=ofd_packets/00069958 [18:28:06]NVStorageDeleteData [18:28:06]Write to MH i2c: 01 00 00 97 15 AC [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 07 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 F9 0C B8 [18:28:06]RasterBufferAndPrint [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]written 0, free lines is 3329 [18:28:06]MH_Cut [18:28:06]Write to MH i2c: D1 01 00 9E 15 01 85 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 01 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 01 00 9E 15 00 84 [18:28:06]Write to MH i2c: 01 00 00 9F 15 B4 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]OFD Sender: No OFD packet to send [18:28:07]*** Cut start [18:28:07]*** Partial cut [18:28:07]*** CUTSNS_PIN = 1 [18:28:07]*** CUTSNS_PIN = 0 [18:28:07]*** Brake cut motor [18:28:07]Read from MH i2c: 01 [18:28:07]MH_I2C_Read... [18:28:07]*** Stop cut motor [18:28:07]*** Cut end [18:28:07]Read from MH i2c: 01 07 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: 01 07 00 9F 15 00 00 00 00 00 FF 0F C9 [18:28:07]process_action close_receipt done [18:28:07]requested_data is exist [18:28:07]produce_requested_data [18:28:07]requested_item fm.sn is exist - process it [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 11 00 00 [18:28:07]Write to MH i2c: E2 08 00 A0 15 80 11 00 00 00 00 00 00 2F [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:07]Read from MH i2c: E2 17 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 17 00 A0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [18:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:28:07]wFMCommunicate OK [18:28:07]requested_item fd.num is exist - process it [18:28:07]SAM_PROTO_GetFieldsCounters [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 13 00 00 [18:28:07]Write to MH i2c: E2 08 00 A1 15 80 13 00 00 00 00 00 00 32 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 A1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [18:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetFieldsCounters done [18:28:08]requested_item shift.num is exist - process it [18:28:08]requested_item shift.opened is exist - process it [18:28:08]req_shift_opened [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 A2 15 80 13 01 00 00 00 00 00 34 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 A2 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [18:28:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]req_shift_opened done [18:28:08]requested_item shift.open_date is exist - process it [18:28:08]req_shift_open_date [18:28:08]req_shift_open_date done [18:28:08]produce_requested_data done [18:28:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69958,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:28:08]process_action_free close_receipt [18:28:08]json_value_free [18:28:08]json_value_free done [18:28:08]process_json_proto returns [18:28:08]Send response to host [18:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69958,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:28:08]free response buf [18:28:08]execute_script done [18:28:08]execute_script returns [18:28:08]free content buf [18:28:08]Sock 10.Close socket [18:28:08]Sock 10.Thread stoped [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:03]accept exits with 7 [18:30:03]New connection [18:30:03]New thread 3067170148 created [18:30:03]Thread 3067026788 joined [18:30:03]Waiting for new connection... [18:30:03] Sock 7.Parse request [18:30:03]Sock 7.Check first char [18:30:03]Sock 7.First char is OK [18:30:03]request: POST /json_proto HTTP/1.0 [18:30:03]Method: POST [18:30:03]URL: /json_proto [18:30:03]Method is POST - this is cgi request [18:30:03]url: /json_proto [18:30:03]query_string will be loaded in cgi processing [18:30:03]execute_cgi json_proto POST (null) [18:30:03]execute_cgi path=json_proto method=POST [18:30:03]POST find Content-Length [18:30:03]Host: 172.17.50.3:8080 [18:30:03]Content-Length: 679 [18:30:03]Content-Type: application/json [18:30:03] [18:30:03]POST finish read [18:30:03]Found Content-Length = 679 [18:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:03]execute_script... [18:30: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)2885725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:03]POST & json_proto [18:30:03]process_json_proto [18:30:03]json parsed OK: [18:30:03]protocol is kg_v1.0 [18:30:03]action value=close_receipt [18:30:03]process_action close_receipt [18:30:03]cmd_close_receipt [18:30:03]MH_GetDate [18:30:03]Write to MH i2c: F0 00 00 A3 15 A7 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 09 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 09 00 A3 15 00 AC 9D 16 67 6B 98 1E 66 FD [18:30:03]GetLastDocTimeStamp 1729535285 [18:30:03]current date 1729535404 [18:30:03]FM_GetShiftState [18:30:03]SAM_PROTO_GetShiftState [18:30:03]wFMCommunicate request_size=4 [18:30:03]MH_SAM_APDU [18:30:03]CAPDU: 80 13 01 00 [18:30:03]Write to MH i2c: E2 08 00 A4 15 80 13 01 00 00 00 00 00 36 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:03]Read from MH i2c: E2 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 0E 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 0E 00 A4 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 62 [18:30:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:30:03]wFMCommunicate OK [18:30:03]SAM_PROTO_GetShiftState done [18:30:03]FM_GetShiftState done [18:30:03]opened in 1729469703 [18:30:03]opened+sec_in_day 1729556103 [18:30:03]quantity*price = 70044 [18:30:03]sum+1 = 70045 [18:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 349 21.10.2024 18:30 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69959 ФПД: 27060911006057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69959&fm=27060911006057&tin=02508201610067®Number=0000000000156251&sum=70000 [18:30:04]StoreToDocumentArchive [18:30:04]shift 194 fd 69959 [18:30:04]save to /storage/0194/doc_00069959 [18:30:04]save last doc name /storage/0194/doc_00069959 to /storage/kkm_last_doc_name [18:30:04]save OK [18:30:04]Clear old archive folders... [18:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:04]tlvbuf is 0114F0A0 [18:30:04]SAM_PROTO_ClearQueue [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 09 00 00 [18:30:04]Write to MH i2c: E2 08 00 B1 15 80 09 00 00 00 00 00 00 38 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]SAM_PROTO_ClearQueue done [18:30:04]KKMCreateOFDPacket [18:30:04]OFDProtocolAddRootSTLVToBuf [18:30:04]FM_MakeSignedData [18:30:04]FM_MakeSignedData [18:30:04]SAM_PROTO_SignData [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 0D 01 02 [18:30:04]Write to MH i2c: E2 08 00 B2 15 80 0D 01 02 00 00 00 00 40 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]wFMCommunicate request_size=255 [18:30:04]MH_SAM_APDU [18:30: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AC 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 11 01 00 35 04 06 00 18 [18:30:04]Write to MH i2c: E2 02 01 B3 15 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AC 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 11 01 00 35 04 06 00 18 00 00 30 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=10 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 0D 02 02 05 9C 9B FC E1 69 [18:30:05]Write to MH i2c: E2 0D 00 B4 15 80 0D 02 02 05 00 9C 9B FC E1 69 00 00 CA [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [18:30:05]RAPDU: 90 00 [18:30:05]wFMCommunicate OK [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 0D 03 02 [18:30:05]Write to MH i2c: E2 08 00 B5 15 80 0D 03 02 00 00 00 00 45 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0B 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0B 00 B5 15 00 DC BD BA C0 33 DC 4B 1F 90 00 D2 [18:30:05]RAPDU: DC BD BA C0 33 DC 4B 1F 90 00 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_SignData done [18:30:05]FM_MakeSignedData done [18:30:05]CreateOFDProtocolMessage [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 11 00 00 [18:30:05]Write to MH i2c: E2 08 00 B6 15 80 11 00 00 00 00 00 00 45 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 17 00 B6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [18:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:05]wFMCommunicate OK [18:30:05]CreateOFDProtocolMessage done [18:30:05]OFDSenderStorePacket 69959 [18:30:05]StoreOFDPacket docnum=69959 [18:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 80 96 07 01 70 88 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AC 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 11 01 00 35 04 06 00 18 9C 9B FC E1 69 DC BD BA C0 33 DC 4B 1F [18:30:05]CheckFolder [18:30:05]dirname=/storage/ofd_packets [18:30:05]CheckFolder done [18:30:05]ProducePacketName [18:30:05]name=ofd_packets/00069959 [18:30:05]NVStorageSaveData ofd_packets/00069959 [18:30:05]File name is /storage/ofd_packets/00069959 [18:30:05]Write 301 bytes [18:30:05]NVStorageSaveData done [18:30:05]OFDSenderStorePacket done [18:30:05]KKMCreateOFDPacket done [18:30:05]NVStorageSaveData kkm_last_timestamp [18:30:05]File name is /storage/kkm_last_timestamp [18:30:05]Write 4 bytes [18:30:05]NVStorageSaveData done [18:30:05]ExternCall_PrintAddStr [18:30:05]wPrintStart [18:30:05]Write to MH i2c: 01 00 00 B7 15 CC [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 B7 15 00 00 00 00 00 FF 0F E1 [18:30:05]RasterBufferAndPrint [18:30:05]line Счет N : (1)2885725 [18:30:05]line ИНН: 02508201610067 [18:30:05]line Контрольно-Кассовый Чек [18:30:05]line ПРОДАЖА [18:30:05]line ТРК (МРК, ГНК) : 12 [18:30:05]line Товар: 2710124130 [18:30:05]line Аи-92-К-5 [18:30:05]line 10.470 * 66.90 [18:30:05]line = 700.44 [18:30:05]line НДС 12% НСП 1% [18:30:05]line > о реализуемом товаре [18:30:05]line ОКРУГЛЕНИЕ: -0.44 [18:30:05]line ИТОГО: 700.00 [18:30:05]line Внесено: 700.00 [18:30:05]line СДАЧА: 0.00 [18:30:05]line НСП 1% : 6.20 [18:30:05]line НДС 12% : 74.38 [18:30:05]line Наличными: 700.00 [18:30:05]line Безнал.: 0.00 [18:30:05]line Место: АЗС № 85 "Партнер Нефть" [18:30:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:30:05]line СНО: Общий режим [18:30:05]line Чек 349 21.10.2024 18:30 [18:30:05]line Смена: 194 ФФД: 1.0 [18:30:05]line ЗНМ: 0300000167 [18:30:05]line РНМ: 0000000000156251 [18:30:05]line Версия ККМ: v1.0 [18:30:05]line ФМ: 0000000000963346 [18:30:05]line ФД: 69959 [18:30:05]line ФПД: 27060911006057 [18:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183004&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69959&fm=27060911006057&tin=02508201610067®Number=0000000000156251&sum=70000 [18:30:05]OFD Sender: Processing packet 69959 [packets to send 18, broken 17] [18:30:05]ProducePacketName [18:30:05]name=ofd_packets/00069959 [18:30:05]OFD Sender: To server: pG, [18:30:05]CommunicateWithHost lk.salyk.kg:30040 [18:30:05]ConnectInit lk.salyk.kg [18:30:05]written 0, free lines is 4095 [18:30:05]Connected sock=11 [18:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 80 96 07 01 70 88 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AC 9D 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 11 01 00 35 04 06 00 18 9C 9B FC E1 69 DC BD BA C0 33 DC 4B 1F [18:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 48 51 47 00 AE 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 11 01 00 F4 03 04 00 4F 47 16 67 B6 04 01 00 00 8B D4 E1 63 F8 46 11 D4 [18:30:05]CommunicateWithHost err = 0 [18:30:05]CheckOFDResponse [18:30:05]1017 (14) - 77093643461234 [18:30:05]1041 (16) - 0000000000963346 [18:30:05]1040 (4) - 69959 [18:30:05]1012 (4) - 21.10.2024 12:21 [18:30:05]1206 (1) - 0 [18:30:05]OFD Sender: Remove packet 69959 [18:30:05]ProducePacketName [18:30:05]name=ofd_packets/00069959 [18:30:05]NVStorageDeleteData [18:30:05]Write to MH i2c: 01 00 00 E2 15 F7 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 E5 0C EF [18:30:05]RasterBufferAndPrint [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]written 0, free lines is 3307 [18:30:05]MH_Cut [18:30:05]Write to MH i2c: D1 01 00 E9 15 01 D0 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 01 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 01 00 E9 15 00 CF [18:30:05]Write to MH i2c: 01 00 00 EA 15 FF [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:06]OFD Sender: No OFD packet to send [18:30:06]*** Cut start [18:30:06]*** Partial cut [18:30:06]*** CUTSNS_PIN = 1 [18:30:06]*** CUTSNS_PIN = 0 [18:30:06]*** Brake cut motor [18:30:07]Read from MH i2c: 01 [18:30:07]MH_I2C_Read... [18:30:07]*** Stop cut motor [18:30:07]*** Cut end [18:30:07]Read from MH i2c: 01 07 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 FF 0F 14 [18:30:07]process_action close_receipt done [18:30:07]requested_data is exist [18:30:07]produce_requested_data [18:30:07]requested_item fm.sn is exist - process it [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 11 00 00 [18:30:07]Write to MH i2c: E2 08 00 EB 15 80 11 00 00 00 00 00 00 7A [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 17 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 17 00 EB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [18:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:07]wFMCommunicate OK [18:30:07]requested_item fd.num is exist - process it [18:30:07]SAM_PROTO_GetFieldsCounters [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 13 00 00 [18:30:07]Write to MH i2c: E2 08 00 EC 15 80 13 00 00 00 00 00 00 7D [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 62 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 62 00 EC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_GetFieldsCounters done [18:30:07]requested_item shift.num is exist - process it [18:30:07]requested_item shift.opened is exist - process it [18:30:07]req_shift_opened [18:30:07]FM_GetShiftState [18:30:07]SAM_PROTO_GetShiftState [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 13 01 00 [18:30:07]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [18:30:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_GetShiftState done [18:30:07]FM_GetShiftState done [18:30:07]req_shift_opened done [18:30:07]requested_item shift.open_date is exist - process it [18:30:07]req_shift_open_date [18:30:07]req_shift_open_date done [18:30:07]produce_requested_data done [18:30:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69959,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:30:07]process_action_free close_receipt [18:30:07]json_value_free [18:30:07]json_value_free done [18:30:07]process_json_proto returns [18:30:07]Send response to host [18:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69959,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:30:07]free response buf [18:30:07]execute_script done [18:30:07]execute_script returns [18:30:07]free content buf [18:30:07]Sock 7.Close socket [18:30:07]Sock 7.Thread stoped [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:40]accept exits with 9 [18:32:40]New connection [18:32:40]New thread 3067026788 created [18:32:40]Thread 3067170148 joined [18:32:40]Waiting for new connection... [18:32:40] Sock 9.Parse request [18:32:40]Sock 9.Check first char [18:32:40]Sock 9.First char is OK [18:32:40]request: POST /json_proto HTTP/1.0 [18:32:40]Method: POST [18:32:40]URL: /json_proto [18:32:40]Method is POST - this is cgi request [18:32:40]url: /json_proto [18:32:40]query_string will be loaded in cgi processing [18:32:40]execute_cgi json_proto POST (null) [18:32:40]execute_cgi path=json_proto method=POST [18:32:40]POST find Content-Length [18:32:40]Host: 172.17.50.3:8080 [18:32:40]Content-Length: 773 [18:32:40]Content-Type: application/json [18:32:40] [18:32:40]POST finish read [18:32:40]Found Content-Length = 773 [18:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 78.230, "sum" : 3043.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3043.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:40]execute_script... [18:32: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)2885724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 78.230, "sum" : 3043.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3043.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:40]POST & json_proto [18:32:40]process_json_proto [18:32:40]json parsed OK: [18:32:40]protocol is kg_v1.0 [18:32:40]action value=close_receipt [18:32:40]process_action close_receipt [18:32:40]cmd_close_receipt [18:32:40]MH_GetDate [18:32:40]Write to MH i2c: F0 00 00 EE 15 F2 [18:32:40]Write i2c OK [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 09 00 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 09 00 EE 15 00 49 9E 16 67 6B 98 1E 66 E6 [18:32:40]GetLastDocTimeStamp 1729535404 [18:32:40]current date 1729535561 [18:32:40]FM_GetShiftState [18:32:40]SAM_PROTO_GetShiftState [18:32:40]wFMCommunicate request_size=4 [18:32:40]MH_SAM_APDU [18:32:40]CAPDU: 80 13 01 00 [18:32:40]Write to MH i2c: E2 08 00 EF 15 80 13 01 00 00 00 00 00 81 [18:32:40]Write i2c OK [18:32:40]MH_I2C_Read... [18:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:40]Read from MH i2c: E2 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: E2 0E 00 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: E2 0E 00 EF 15 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AD [18:32:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:32:40]wFMCommunicate OK [18:32:40]SAM_PROTO_GetShiftState done [18:32:40]FM_GetShiftState done [18:32:40]opened in 1729469703 [18:32:40]opened+sec_in_day 1729556103 [18:32:40]quantity*price = 304314 [18:32:40]sum+1 = 304316 [18:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3043.15 НСП 1% : 26.93 НДС 12% : 323.17 Наличными: 0.00 Безнал.: 3043.15 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 350 21.10.2024 18:32 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69960 ФПД: 129497932355471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69960&fm=129497932355471&tin=02508201610067®Number=0000000000156251&sum=304315 [18:32:41]StoreToDocumentArchive [18:32:41]shift 194 fd 69960 [18:32:41]save to /storage/0194/doc_00069960 [18:32:41]save last doc name /storage/0194/doc_00069960 to /storage/kkm_last_doc_name [18:32:41]save OK [18:32:41]Clear old archive folders... [18:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:32:41]tlvbuf is B6EF60E0 [18:32:41]SAM_PROTO_ClearQueue [18:32:41]wFMCommunicate request_size=4 [18:32:41]MH_SAM_APDU [18:32:41]CAPDU: 80 09 00 00 [18:32:41]Write to MH i2c: E2 08 00 FC 15 80 09 00 00 00 00 00 00 83 [18:32:41]Write i2c OK [18:32:41]MH_I2C_Read... [18:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:41]Read from MH i2c: E2 [18:32:41]MH_I2C_Read... [18:32:41]Read from MH i2c: E2 03 00 [18:32:41]MH_I2C_Read... [18:32:41]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [18:32:41]RAPDU: 90 00 [18:32:41]wFMCommunicate OK [18:32:41]SAM_PROTO_ClearQueue done [18:32:41]KKMCreateOFDPacket [18:32:41]OFDProtocolAddRootSTLVToBuf [18:32:41]FM_MakeSignedData [18:32:41]FM_MakeSignedData [18:32:41]SAM_PROTO_SignData [18:32:41]wFMCommunicate request_size=4 [18:32:41]MH_SAM_APDU [18:32:41]CAPDU: 80 0D 01 02 [18:32:41]Write to MH i2c: E2 08 00 FD 15 80 0D 01 02 00 00 00 00 8B [18:32:41]Write i2c OK [18:32:41]MH_I2C_Read... [18:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:41]Read from MH i2c: E2 [18:32:41]MH_I2C_Read... [18:32:41]Read from MH i2c: E2 03 00 [18:32:41]MH_I2C_Read... [18:32:41]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [18:32:41]RAPDU: 90 00 [18:32:41]wFMCommunicate OK [18:32:41]wFMCommunicate request_size=255 [18:32:41]MH_SAM_APDU [18:32:41]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 33 FF 03 08 00 03 96 31 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB A4 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB A4 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 7E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB A4 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 49 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 11 01 00 35 04 06 00 75 C7 [18:32:41]Write to MH i2c: E2 02 01 FE 15 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 33 FF 03 08 00 03 96 31 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB A4 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB A4 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 7E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB A4 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 49 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 11 01 00 35 04 06 00 75 C7 00 00 D4 [18:32:41]Write i2c OK [18:32:41]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]wFMCommunicate request_size=9 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 02 02 04 16 41 D7 8F [18:32:42]Write to MH i2c: E2 0C 00 FF 15 80 0D 02 02 04 00 16 41 D7 8F 00 00 53 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 03 02 [18:32:42]Write to MH i2c: E2 08 00 00 16 80 0D 03 02 00 00 00 00 91 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 0B 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 0B 00 00 16 00 23 4F B3 7D 5C B3 53 CB 90 00 61 [18:32:42]RAPDU: 23 4F B3 7D 5C B3 53 CB 90 00 [18:32:42]wFMCommunicate OK [18:32:42]SAM_PROTO_SignData done [18:32:42]FM_MakeSignedData done [18:32:42]CreateOFDProtocolMessage [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 11 00 00 [18:32:42]Write to MH i2c: E2 08 00 01 16 80 11 00 00 00 00 00 00 91 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 17 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 17 00 01 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [18:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:32:42]wFMCommunicate OK [18:32:42]CreateOFDProtocolMessage done [18:32:42]OFDSenderStorePacket 69960 [18:32:42]StoreOFDPacket docnum=69960 [18:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 36 ED 06 01 75 88 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 33 FF 03 08 00 03 96 31 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB A4 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB A4 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 7E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB A4 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 49 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 11 01 00 35 04 06 00 75 C7 16 41 D7 8F 23 4F B3 7D 5C B3 53 CB [18:32:42]CheckFolder [18:32:42]dirname=/storage/ofd_packets [18:32:42]CheckFolder done [18:32:42]ProducePacketName [18:32:42]name=ofd_packets/00069960 [18:32:42]NVStorageSaveData ofd_packets/00069960 [18:32:42]File name is /storage/ofd_packets/00069960 [18:32:42]Write 300 bytes [18:32:42]NVStorageSaveData done [18:32:42]OFDSenderStorePacket done [18:32:42]KKMCreateOFDPacket done [18:32:42]NVStorageSaveData kkm_last_timestamp [18:32:42]File name is /storage/kkm_last_timestamp [18:32:42]Write 4 bytes [18:32:42]NVStorageSaveData done [18:32:42]ExternCall_PrintAddStr [18:32:42]wPrintStart [18:32:42]Write to MH i2c: 01 00 00 02 16 18 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 07 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 07 00 02 16 00 00 00 00 00 FF 0F 2D [18:32:42]RasterBufferAndPrint [18:32:42]line Счет N : (1)2885724 [18:32:42]line ИНН: 02508201610067 [18:32:42]line Контрольно-Кассовый Чек [18:32:42]line ПРОДАЖА [18:32:42]line ТРК (МРК, ГНК) : 71 [18:32:42]line Товар: 2711129700 [18:32:42]line ГАЗ-К-3 [18:32:42]line 78.230 * 38.90 [18:32:42]line = 3043.15 [18:32:42]line НДС 12% НСП 1% [18:32:42]line > о реализуемом товаре [18:32:42]line ИТОГО: 3043.15 [18:32:42]line НСП 1% : 26.93 [18:32:42]line НДС 12% : 323.17 [18:32:42]line Наличными: 0.00 [18:32:42]line Безнал.: 3043.15 [18:32:42]line Место: АЗС № 85 "Партнер Нефть" [18:32:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:32:42]line СНО: Общий режим [18:32:42]line Чек 350 21.10.2024 18:32 [18:32:42]line Смена: 194 ФФД: 1.0 [18:32:42]line ЗНМ: 0300000167 [18:32:42]line РНМ: 0000000000156251 [18:32:42]line Версия ККМ: v1.0 [18:32:42]line Платежная система: Mbank [18:32:42]line ФМ: 0000000000963346 [18:32:42]line ФД: 69960 [18:32:42]line ФПД: 129497932355471 [18:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183241&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69960&fm=129497932355471&tin=02508201610067®Number=0000000000156251&sum=304315 [18:32:42]OFD Sender: Processing packet 69960 [packets to send 18, broken 17] [18:32:42]ProducePacketName [18:32:42]name=ofd_packets/00069960 [18:32:42]OFD Sender: To server: pG, [18:32:42]CommunicateWithHost lk.salyk.kg:30040 [18:32:42]ConnectInit lk.salyk.kg [18:32:42]written 0, free lines is 4095 [18:32:42]Connected sock=10 [18:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 36 ED 06 01 75 88 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 33 FF 03 08 00 03 96 31 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BB A4 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB A4 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 7E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB A4 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 49 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 11 01 00 35 04 06 00 75 C7 16 41 D7 8F 23 4F B3 7D 5C B3 53 CB [18:32:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 16 09 47 00 9E E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 11 01 00 F4 03 04 00 EC 47 16 67 B6 04 01 00 00 9C 7E 41 26 99 BD 6D 01 [18:32:43]CommunicateWithHost err = 0 [18:32:43]CheckOFDResponse [18:32:43]1017 (14) - 77093643461234 [18:32:43]1041 (16) - 0000000000963346 [18:32:43]1040 (4) - 69960 [18:32:43]1012 (4) - 21.10.2024 12:24 [18:32:43]1206 (1) - 0 [18:32:43]OFD Sender: Remove packet 69960 [18:32:43]ProducePacketName [18:32:43]name=ofd_packets/00069960 [18:32:43]NVStorageDeleteData [18:32:43]Write to MH i2c: 01 00 00 2B 16 41 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 07 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 20 0D 75 [18:32:43]RasterBufferAndPrint [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]written 0, free lines is 3366 [18:32:43]MH_Cut [18:32:43]Write to MH i2c: D1 01 00 32 16 01 1A [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: D1 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: D1 01 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: D1 01 00 32 16 00 19 [18:32:43]Write to MH i2c: 01 00 00 33 16 49 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]OFD Sender: No OFD packet to send [18:32:43]*** Cut start [18:32:43]*** Partial cut [18:32:43]*** CUTSNS_PIN = 1 [18:32:43]*** CUTSNS_PIN = 0 [18:32:43]*** Brake cut motor [18:32:44]Read from MH i2c: 01 [18:32:44]MH_I2C_Read... [18:32:44]*** Stop cut motor [18:32:44]*** Cut end [18:32:44]Read from MH i2c: 01 07 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 FF 0F 5E [18:32:44]process_action close_receipt done [18:32:44]requested_data is exist [18:32:44]produce_requested_data [18:32:44]requested_item fm.sn is exist - process it [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 11 00 00 [18:32:44]Write to MH i2c: E2 08 00 34 16 80 11 00 00 00 00 00 00 C4 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 17 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 17 00 34 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [18:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:32:44]wFMCommunicate OK [18:32:44]requested_item fd.num is exist - process it [18:32:44]SAM_PROTO_GetFieldsCounters [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 13 00 00 [18:32:44]Write to MH i2c: E2 08 00 35 16 80 13 00 00 00 00 00 00 C7 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 62 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 62 00 35 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:32:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_GetFieldsCounters done [18:32:44]requested_item shift.num is exist - process it [18:32:44]requested_item shift.opened is exist - process it [18:32:44]req_shift_opened [18:32:44]FM_GetShiftState [18:32:44]SAM_PROTO_GetShiftState [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 13 01 00 [18:32:44]Write to MH i2c: E2 08 00 36 16 80 13 01 00 00 00 00 00 C9 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0E 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0E 00 36 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [18:32:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_GetShiftState done [18:32:44]FM_GetShiftState done [18:32:44]req_shift_opened done [18:32:44]requested_item shift.open_date is exist - process it [18:32:44]req_shift_open_date [18:32:44]req_shift_open_date done [18:32:44]produce_requested_data done [18:32:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69960,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:32:44]process_action_free close_receipt [18:32:44]json_value_free [18:32:44]json_value_free done [18:32:44]process_json_proto returns [18:32:44]Send response to host [18:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69960,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:32:44]free response buf [18:32:44]execute_script done [18:32:44]execute_script returns [18:32:44]free content buf [18:32:44]Sock 9.Close socket [18:32:44]Sock 9.Thread stoped [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:12]accept exits with 7 [18:34:12]New connection [18:34:12]New thread 3067170148 created [18:34:12]Thread 3067026788 joined [18:34:12]Waiting for new connection... [18:34:12] Sock 7.Parse request [18:34:12]Sock 7.Check first char [18:34:12]Sock 7.First char is OK [18:34:12]request: POST /json_proto HTTP/1.0 [18:34:12]Method: POST [18:34:12]URL: /json_proto [18:34:12]Method is POST - this is cgi request [18:34:12]url: /json_proto [18:34:12]query_string will be loaded in cgi processing [18:34:12]execute_cgi json_proto POST (null) [18:34:12]execute_cgi path=json_proto method=POST [18:34:12]POST find Content-Length [18:34:12]Host: 172.17.50.3:8080 [18:34:12]Content-Length: 680 [18:34:12]Content-Type: application/json [18:34:12] [18:34:12]POST finish read [18:34:12]Found Content-Length = 680 [18:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:34:12]execute_script... [18:34: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)2885727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:34:12]POST & json_proto [18:34:12]process_json_proto [18:34:12]json parsed OK: [18:34:12]protocol is kg_v1.0 [18:34:12]action value=close_receipt [18:34:12]process_action close_receipt [18:34:12]cmd_close_receipt [18:34:12]MH_GetDate [18:34:12]Write to MH i2c: F0 00 00 37 16 3C [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: F0 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: F0 09 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: F0 09 00 37 16 00 A5 9E 16 67 6B 98 1E 66 8C [18:34:12]GetLastDocTimeStamp 1729535561 [18:34:12]current date 1729535653 [18:34:12]FM_GetShiftState [18:34:12]SAM_PROTO_GetShiftState [18:34:12]wFMCommunicate request_size=4 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 13 01 00 [18:34:12]Write to MH i2c: E2 08 00 38 16 80 13 01 00 00 00 00 00 CB [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:12]Read from MH i2c: E2 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 0E 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 0E 00 38 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [18:34:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:34:12]wFMCommunicate OK [18:34:12]SAM_PROTO_GetShiftState done [18:34:12]FM_GetShiftState done [18:34:12]opened in 1729469703 [18:34:12]opened+sec_in_day 1729556103 [18:34:12]quantity*price = 100050 [18:34:12]sum+1 = 100052 [18:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 351 21.10.2024 18:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69961 ФПД: 222081248557137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69961&fm=222081248557137&tin=02508201610067®Number=0000000000156251&sum=100000 [18:34:13]StoreToDocumentArchive [18:34:13]shift 194 fd 69961 [18:34:13]save to /storage/0194/doc_00069961 [18:34:13]save last doc name /storage/0194/doc_00069961 to /storage/kkm_last_doc_name [18:34:13]save OK [18:34:13]Clear old archive folders... [18:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:34:13]tlvbuf is 0111FC30 [18:34:13]SAM_PROTO_ClearQueue [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 09 00 00 [18:34:13]Write to MH i2c: E2 08 00 45 16 80 09 00 00 00 00 00 00 CD [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]SAM_PROTO_ClearQueue done [18:34:13]KKMCreateOFDPacket [18:34:13]OFDProtocolAddRootSTLVToBuf [18:34:13]FM_MakeSignedData [18:34:13]FM_MakeSignedData [18:34:13]SAM_PROTO_SignData [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 01 02 [18:34:13]Write to MH i2c: E2 08 00 46 16 80 0D 01 02 00 00 00 00 D5 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=255 [18:34:13]MH_SAM_APDU [18:34:13]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 32 31 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 01 00 00 F4 03 04 00 A5 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 11 01 00 35 04 06 00 C9 FB 51 EE [18:34:13]Write to MH i2c: E2 02 01 47 16 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 32 31 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 01 00 00 F4 03 04 00 A5 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 11 01 00 35 04 06 00 C9 FB 51 EE 00 00 94 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]OFD Sender: No OFD packet to send [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=7 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 02 02 02 78 51 [18:34:13]Write to MH i2c: E2 0A 00 48 16 80 0D 02 02 02 00 78 51 00 00 A5 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 03 02 [18:34:13]Write to MH i2c: E2 08 00 49 16 80 0D 03 02 00 00 00 00 DA [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 49 16 00 82 42 A4 3C 64 97 F3 E8 90 00 55 [18:34:13]RAPDU: 82 42 A4 3C 64 97 F3 E8 90 00 [18:34:13]wFMCommunicate OK [18:34:13]SAM_PROTO_SignData done [18:34:13]FM_MakeSignedData done [18:34:13]CreateOFDProtocolMessage [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 11 00 00 [18:34:13]Write to MH i2c: E2 08 00 4A 16 80 11 00 00 00 00 00 00 DA [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 4A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [18:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:34:13]wFMCommunicate OK [18:34:13]CreateOFDProtocolMessage done [18:34:13]OFDSenderStorePacket 69961 [18:34:13]StoreOFDPacket docnum=69961 [18:34:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 42 AE 04 01 CF DE 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 32 31 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 01 00 00 F4 03 04 00 A5 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 11 01 00 35 04 06 00 C9 FB 51 EE 78 51 82 42 A4 3C 64 97 F3 E8 [18:34:13]CheckFolder [18:34:13]dirname=/storage/ofd_packets [18:34:13]CheckFolder done [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00069961 [18:34:13]NVStorageSaveData ofd_packets/00069961 [18:34:13]File name is /storage/ofd_packets/00069961 [18:34:13]Write 298 bytes [18:34:13]NVStorageSaveData done [18:34:13]OFDSenderStorePacket done [18:34:13]KKMCreateOFDPacket done [18:34:13]NVStorageSaveData kkm_last_timestamp [18:34:13]File name is /storage/kkm_last_timestamp [18:34:13]Write 4 bytes [18:34:13]NVStorageSaveData done [18:34:13]ExternCall_PrintAddStr [18:34:13]wPrintStart [18:34:13]Write to MH i2c: 01 00 00 4B 16 61 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 FF 0F 76 [18:34:13]RasterBufferAndPrint [18:34:13]line Счет N : (1)2885727 [18:34:13]line ИНН: 02508201610067 [18:34:13]line Контрольно-Кассовый Чек [18:34:13]line ПРОДАЖА [18:34:13]line ТРК (МРК, ГНК) : 51 [18:34:13]line Товар: 2710194210 [18:34:13]line ДТ-К-5 [18:34:13]line 13.130 * 76.20 [18:34:13]line = 1000.51 [18:34:13]line НДС 12% НСП 1% [18:34:13]line > о реализуемом товаре [18:34:13]line ОКРУГЛЕНИЕ: -0.51 [18:34:13]line ИТОГО: 1000.00 [18:34:13]line Внесено: 1000.00 [18:34:13]line СДАЧА: 0.00 [18:34:13]line НСП 1% : 8.85 [18:34:13]line НДС 12% : 106.25 [18:34:13]line Наличными: 1000.00 [18:34:13]line Безнал.: 0.00 [18:34:13]line Место: АЗС № 85 "Партнер Нефть" [18:34:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:34:13]line СНО: Общий режим [18:34:13]line Чек 351 21.10.2024 18:34 [18:34:13]line Смена: 194 ФФД: 1.0 [18:34:13]line ЗНМ: 0300000167 [18:34:13]line РНМ: 0000000000156251 [18:34:13]line Версия ККМ: v1.0 [18:34:13]line ФМ: 0000000000963346 [18:34:14]line ФД: 69961 [18:34:14]line ФПД: 222081248557137 [18:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183413&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69961&fm=222081248557137&tin=02508201610067®Number=0000000000156251&sum=100000 [18:34:14]OFD Sender: Processing packet 69961 [packets to send 18, broken 17] [18:34:14]ProducePacketName [18:34:14]name=ofd_packets/00069961 [18:34:14]OFD Sender: To server: pG, [18:34:14]CommunicateWithHost lk.salyk.kg:30040 [18:34:14]ConnectInit lk.salyk.kg [18:34:14]written 0, free lines is 4095 [18:34:14]Connected sock=11 [18:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 42 AE 04 01 CF DE 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 32 31 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 01 00 00 F4 03 04 00 A5 9E 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 11 01 00 35 04 06 00 C9 FB 51 EE 78 51 82 42 A4 3C 64 97 F3 E8 [18:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4D 7C 47 00 04 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 11 01 00 F4 03 04 00 48 48 16 67 B6 04 01 00 00 E0 13 2A 9A 5D FD B7 61 [18:34:14]CommunicateWithHost err = 0 [18:34:14]CheckOFDResponse [18:34:14]1017 (14) - 77093643461234 [18:34:14]1041 (16) - 0000000000963346 [18:34:14]1040 (4) - 69961 [18:34:14]1012 (4) - 21.10.2024 12:25 [18:34:14]1206 (1) - 0 [18:34:14]OFD Sender: Remove packet 69961 [18:34:14]ProducePacketName [18:34:14]name=ofd_packets/00069961 [18:34:14]NVStorageDeleteData [18:34:14]Write to MH i2c: 01 00 00 76 16 8C [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 EA 0C 89 [18:34:14]RasterBufferAndPrint [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]written 0, free lines is 3312 [18:34:14]MH_Cut [18:34:14]Write to MH i2c: D1 01 00 7D 16 01 65 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 7D 16 00 64 [18:34:14]Write to MH i2c: 01 00 00 7E 16 94 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]OFD Sender: No OFD packet to send [18:34:15]*** Cut start [18:34:15]*** Partial cut [18:34:15]*** CUTSNS_PIN = 1 [18:34:15]*** CUTSNS_PIN = 0 [18:34:15]*** Brake cut motor [18:34:15]Read from MH i2c: 01 [18:34:15]MH_I2C_Read... [18:34:15]*** Stop cut motor [18:34:15]Read from MH i2c: 01 07 00 [18:34:15]MH_I2C_Read... [18:34:15]*** Cut end [18:34:15]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 FF 0F A9 [18:34:15]process_action close_receipt done [18:34:15]requested_data is exist [18:34:15]produce_requested_data [18:34:15]requested_item fm.sn is exist - process it [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 11 00 00 [18:34:15]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:15]Read from MH i2c: E2 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 17 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [18:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:34:15]wFMCommunicate OK [18:34:15]requested_item fd.num is exist - process it [18:34:15]SAM_PROTO_GetFieldsCounters [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 13 00 00 [18:34:15]Write to MH i2c: E2 08 00 80 16 80 13 00 00 00 00 00 00 12 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 62 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 62 00 80 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [18:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:16]wFMCommunicate OK [18:34:16]SAM_PROTO_GetFieldsCounters done [18:34:16]requested_item shift.num is exist - process it [18:34:16]requested_item shift.opened is exist - process it [18:34:16]req_shift_opened [18:34:16]FM_GetShiftState [18:34:16]SAM_PROTO_GetShiftState [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 13 01 00 [18:34:16]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 0E 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [18:34:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:34:16]wFMCommunicate OK [18:34:16]SAM_PROTO_GetShiftState done [18:34:16]FM_GetShiftState done [18:34:16]req_shift_opened done [18:34:16]requested_item shift.open_date is exist - process it [18:34:16]req_shift_open_date [18:34:16]req_shift_open_date done [18:34:16]produce_requested_data done [18:34:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69961,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:34:16]process_action_free close_receipt [18:34:16]json_value_free [18:34:16]json_value_free done [18:34:16]process_json_proto returns [18:34:16]Send response to host [18:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69961,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:34:16]free response buf [18:34:16]execute_script done [18:34:16]execute_script returns [18:34:16]free content buf [18:34:16]Sock 7.Close socket [18:34:16]Sock 7.Thread stoped [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:48]accept exits with 9 [18:35:48]New connection [18:35:48]New thread 3067026788 created [18:35:48]Thread 3067170148 joined [18:35:48]Waiting for new connection... [18:35:48] Sock 9.Parse request [18:35:48]Sock 9.Check first char [18:35:48]Sock 9.First char is OK [18:35:48]request: POST /json_proto HTTP/1.0 [18:35:48]Method: POST [18:35:48]URL: /json_proto [18:35:48]Method is POST - this is cgi request [18:35:48]url: /json_proto [18:35:48]query_string will be loaded in cgi processing [18:35:48]execute_cgi json_proto POST (null) [18:35:48]execute_cgi path=json_proto method=POST [18:35:48]POST find Content-Length [18:35:48]Host: 172.17.50.3:8080 [18:35:48]Content-Length: 686 [18:35:48]Content-Type: application/json [18:35:48] [18:35:48]POST finish read [18:35:48]Found Content-Length = 686 [18:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [18:35:48]execute_script... [18:35:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [18:35:48]POST & json_proto [18:35:48]process_json_proto [18:35:48]json parsed OK: [18:35:48]protocol is kg_v1.0 [18:35:48]action value=close_receipt [18:35:48]process_action close_receipt [18:35:48]cmd_close_receipt [18:35:48]MH_GetDate [18:35:48]Write to MH i2c: F0 00 00 82 16 87 [18:35:48]Write i2c OK [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: F0 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: F0 09 00 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: F0 09 00 82 16 00 05 9F 16 67 6B 98 1E 66 38 [18:35:48]GetLastDocTimeStamp 1729535653 [18:35:48]current date 1729535749 [18:35:48]FM_GetShiftState [18:35:48]SAM_PROTO_GetShiftState [18:35:48]wFMCommunicate request_size=4 [18:35:48]MH_SAM_APDU [18:35:48]CAPDU: 80 13 01 00 [18:35:48]Write to MH i2c: E2 08 00 83 16 80 13 01 00 00 00 00 00 16 [18:35:48]Write i2c OK [18:35:48]MH_I2C_Read... [18:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:48]Read from MH i2c: E2 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: E2 0E 00 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: E2 0E 00 83 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [18:35:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:35:48]wFMCommunicate OK [18:35:48]SAM_PROTO_GetShiftState done [18:35:48]FM_GetShiftState done [18:35:48]opened in 1729469703 [18:35:48]opened+sec_in_day 1729556103 [18:35:48]quantity*price = 150037 [18:35:48]sum+1 = 150038 [18:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 352 21.10.2024 18:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69962 ФПД: 79709286223866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69962&fm=79709286223866&tin=02508201610067®Number=0000000000156251&sum=150000 [18:35:49]StoreToDocumentArchive [18:35:49]shift 194 fd 69962 [18:35:49]save to /storage/0194/doc_00069962 [18:35:49]save last doc name /storage/0194/doc_00069962 to /storage/kkm_last_doc_name [18:35:49]save OK [18:35:49]Clear old archive folders... [18:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:35:49]tlvbuf is 011AD900 [18:35:49]SAM_PROTO_ClearQueue [18:35:49]wFMCommunicate request_size=4 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 09 00 00 [18:35:49]Write to MH i2c: E2 08 00 90 16 80 09 00 00 00 00 00 00 18 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [18:35:49]RAPDU: 90 00 [18:35:49]wFMCommunicate OK [18:35:49]SAM_PROTO_ClearQueue done [18:35:49]KKMCreateOFDPacket [18:35:49]OFDProtocolAddRootSTLVToBuf [18:35:49]FM_MakeSignedData [18:35:49]FM_MakeSignedData [18:35:49]SAM_PROTO_SignData [18:35:49]wFMCommunicate request_size=4 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 0D 01 02 [18:35:49]Write to MH i2c: E2 08 00 91 16 80 0D 01 02 00 00 00 00 20 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [18:35:49]RAPDU: 90 00 [18:35:49]wFMCommunicate OK [18:35:49]wFMCommunicate request_size=255 [18:35:49]MH_SAM_APDU [18:35:49]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 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 60 01 00 00 F4 03 04 00 05 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 11 01 00 35 04 06 00 48 7E [18:35:49]Write to MH i2c: E2 02 01 92 16 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 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 60 01 00 00 F4 03 04 00 05 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 11 01 00 35 04 06 00 48 7E 00 00 40 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [18:35:49]RAPDU: 90 00 [18:35:49]wFMCommunicate OK [18:35:49]wFMCommunicate request_size=9 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 0D 02 02 04 C3 B0 CF FA [18:35:49]Write to MH i2c: E2 0C 00 93 16 80 0D 02 02 04 00 C3 B0 CF FA 00 00 67 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [18:35:49]RAPDU: 90 00 [18:35:49]wFMCommunicate OK [18:35:49]wFMCommunicate request_size=4 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 0D 03 02 [18:35:49]Write to MH i2c: E2 08 00 94 16 80 0D 03 02 00 00 00 00 25 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 0B 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 0B 00 94 16 00 89 7D 58 CB DE 4B 1F 11 90 00 A8 [18:35:49]RAPDU: 89 7D 58 CB DE 4B 1F 11 90 00 [18:35:49]wFMCommunicate OK [18:35:49]SAM_PROTO_SignData done [18:35:49]FM_MakeSignedData done [18:35:49]CreateOFDProtocolMessage [18:35:49]wFMCommunicate request_size=4 [18:35:49]MH_SAM_APDU [18:35:49]CAPDU: 80 11 00 00 [18:35:49]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:49]Read from MH i2c: E2 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 17 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [18:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:49]wFMCommunicate OK [18:35:49]CreateOFDProtocolMessage done [18:35:49]OFDSenderStorePacket 69962 [18:35:49]StoreOFDPacket docnum=69962 [18:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CA C6 06 01 21 30 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 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 60 01 00 00 F4 03 04 00 05 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 11 01 00 35 04 06 00 48 7E C3 B0 CF FA 89 7D 58 CB DE 4B 1F 11 [18:35:49]CheckFolder [18:35:49]dirname=/storage/ofd_packets [18:35:49]CheckFolder done [18:35:49]ProducePacketName [18:35:49]name=ofd_packets/00069962 [18:35:49]NVStorageSaveData ofd_packets/00069962 [18:35:49]File name is /storage/ofd_packets/00069962 [18:35:49]Write 300 bytes [18:35:49]NVStorageSaveData done [18:35:49]OFDSenderStorePacket done [18:35:49]KKMCreateOFDPacket done [18:35:49]NVStorageSaveData kkm_last_timestamp [18:35:49]File name is /storage/kkm_last_timestamp [18:35:49]Write 4 bytes [18:35:49]NVStorageSaveData done [18:35:49]OFD Sender: Processing packet 69962 [packets to send 18, broken 17] [18:35:49]ProducePacketName [18:35:49]name=ofd_packets/00069962 [18:35:49]OFD Sender: To server: pG, [18:35:49]CommunicateWithHost lk.salyk.kg:30040 [18:35:49]ConnectInit lk.salyk.kg [18:35:49]ExternCall_PrintAddStr [18:35:49]wPrintStart [18:35:49]Write to MH i2c: 01 00 00 96 16 AC [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 07 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 FF 0F C1 [18:35:49]RasterBufferAndPrint [18:35:49]line Счет N : (1)2885726 [18:35:49]line ИНН: 02508201610067 [18:35:49]line Контрольно-Кассовый Чек [18:35:49]line ПРОДАЖА [18:35:49]line ТРК (МРК, ГНК) : 71 [18:35:49]line Товар: 2711129700 [18:35:49]line ГАЗ-К-3 [18:35:49]line 38.570 * 38.90 [18:35:49]line = 1500.37 [18:35:49]line НДС 12% НСП 1% [18:35:49]line > о реализуемом товаре [18:35:49]line ОКРУГЛЕНИЕ: -0.37 [18:35:49]line ИТОГО: 1500.00 [18:35:49]line Внесено: 1500.00 [18:35:49]line СДАЧА: 0.00 [18:35:49]line НСП 1% : 13.28 [18:35:49]line НДС 12% : 159.33 [18:35:49]line Наличными: 1500.00 [18:35:49]line Безнал.: 0.00 [18:35:49]line Место: АЗС № 85 "Партнер Нефть" [18:35:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:35:49]line СНО: Общий режим [18:35:49]line Чек 352 21.10.2024 18:35 [18:35:49]line Смена: 194 ФФД: 1.0 [18:35:49]line ЗНМ: 0300000167 [18:35:50]line РНМ: 0000000000156251 [18:35:50]line Версия ККМ: v1.0 [18:35:50]line ФМ: 0000000000963346 [18:35:50]line ФД: 69962 [18:35:50]line ФПД: 79709286223866 [18:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69962&fm=79709286223866&tin=02508201610067®Number=0000000000156251&sum=150000 [18:35:50]Connected sock=10 [18:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CA C6 06 01 21 30 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 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 60 01 00 00 F4 03 04 00 05 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 11 01 00 35 04 06 00 48 7E C3 B0 CF FA 89 7D 58 CB DE 4B 1F 11 [18:35:50]written 0, free lines is 4095 [18:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 75 D2 47 00 F5 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 11 01 00 F4 03 04 00 A8 48 16 67 B6 04 01 00 00 31 FF 68 F7 D5 70 DA 28 [18:35:50]CommunicateWithHost err = 0 [18:35:50]CheckOFDResponse [18:35:50]1017 (14) - 77093643461234 [18:35:50]1041 (16) - 0000000000963346 [18:35:50]1040 (4) - 69962 [18:35:50]1012 (4) - 21.10.2024 12:27 [18:35:50]1206 (1) - 0 [18:35:50]OFD Sender: Remove packet 69962 [18:35:50]ProducePacketName [18:35:50]name=ofd_packets/00069962 [18:35:50]NVStorageDeleteData [18:35:50]Write to MH i2c: 01 00 00 C1 16 D7 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: 01 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: 01 07 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: 01 07 00 C1 16 00 00 00 00 00 F5 0C DF [18:35:50]RasterBufferAndPrint [18:35:50]line [18:35:50]line [18:35:50]line [18:35:50]line [18:35:50]line [18:35:50]written 0, free lines is 3323 [18:35:50]MH_Cut [18:35:50]Write to MH i2c: D1 01 00 C8 16 01 B0 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: D1 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: D1 01 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: D1 01 00 C8 16 00 AF [18:35:50]Write to MH i2c: 01 00 00 C9 16 DF [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]OFD Sender: No OFD packet to send [18:35:51]*** Cut start [18:35:51]*** Partial cut [18:35:51]*** CUTSNS_PIN = 1 [18:35:51]*** CUTSNS_PIN = 0 [18:35:51]*** Brake cut motor [18:35:51]Read from MH i2c: 01 [18:35:51]MH_I2C_Read... [18:35:51]*** Stop cut motor [18:35:51]*** Cut end [18:35:51]Read from MH i2c: 01 07 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 FF 0F F4 [18:35:51]process_action close_receipt done [18:35:51]requested_data is exist [18:35:51]produce_requested_data [18:35:51]requested_item fm.sn is exist - process it [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 CA 16 80 11 00 00 00 00 00 00 5A [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 CA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:51]wFMCommunicate OK [18:35:51]requested_item fd.num is exist - process it [18:35:51]SAM_PROTO_GetFieldsCounters [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 13 00 00 [18:35:51]Write to MH i2c: E2 08 00 CB 16 80 13 00 00 00 00 00 00 5D [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 62 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 62 00 CB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_GetFieldsCounters done [18:35:52]requested_item shift.num is exist - process it [18:35:52]requested_item shift.opened is exist - process it [18:35:52]req_shift_opened [18:35:52]FM_GetShiftState [18:35:52]SAM_PROTO_GetShiftState [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 13 01 00 [18:35:52]Write to MH i2c: E2 08 00 CC 16 80 13 01 00 00 00 00 00 5F [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 CC 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [18:35:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_GetShiftState done [18:35:52]FM_GetShiftState done [18:35:52]req_shift_opened done [18:35:52]requested_item shift.open_date is exist - process it [18:35:52]req_shift_open_date [18:35:52]req_shift_open_date done [18:35:52]produce_requested_data done [18:35:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69962,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:35:52]process_action_free close_receipt [18:35:52]json_value_free [18:35:52]json_value_free done [18:35:52]process_json_proto returns [18:35:52]Send response to host [18:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69962,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:35:52]free response buf [18:35:52]execute_script done [18:35:52]execute_script returns [18:35:52]free content buf [18:35:52]Sock 9.Close socket [18:35:52]Sock 9.Thread stoped [18:35:52]accept exits with 7 [18:35:52]New connection [18:35:52]New thread 3067170148 created [18:35:52]Thread 3067026788 joined [18:35:52]Waiting for new connection... [18:35:52] Sock 7.Parse request [18:35:52]Sock 7.Check first char [18:35:52]Sock 7.First char is OK [18:35:52]request: POST /json_proto HTTP/1.0 [18:35:52]Method: POST [18:35:52]URL: /json_proto [18:35:52]Method is POST - this is cgi request [18:35:52]url: /json_proto [18:35:52]query_string will be loaded in cgi processing [18:35:52]execute_cgi json_proto POST (null) [18:35:52]execute_cgi path=json_proto method=POST [18:35:52]POST find Content-Length [18:35:52]Host: 172.17.50.3:8080 [18:35:52]Content-Length: 678 [18:35:52]Content-Type: application/json [18:35:52] [18:35:52]POST finish read [18:35:52]Found Content-Length = 678 [18:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:52]execute_script... [18:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:52]POST & json_proto [18:35:52]process_json_proto [18:35:52]json parsed OK: [18:35:52]protocol is kg_v1.0 [18:35:52]action value=close_receipt [18:35:52]process_action close_receipt [18:35:52]cmd_close_receipt [18:35:52]MH_GetDate [18:35:52]Write to MH i2c: F0 00 00 CD 16 D2 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: F0 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: F0 09 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: F0 09 00 CD 16 00 09 9F 16 67 6B 98 1E 66 87 [18:35:52]GetLastDocTimeStamp 1729535749 [18:35:52]current date 1729535753 [18:35:52]FM_GetShiftState [18:35:52]SAM_PROTO_GetShiftState [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 13 01 00 [18:35:52]Write to MH i2c: E2 08 00 CE 16 80 13 01 00 00 00 00 00 61 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 CE 16 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [18:35:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_GetShiftState done [18:35:52]FM_GetShiftState done [18:35:52]opened in 1729469703 [18:35:52]opened+sec_in_day 1729556103 [18:35:52]quantity*price = 50010 [18:35:52]sum+1 = 50012 [18:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 353 21.10.2024 18:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69963 ФПД: 202221577133832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69963&fm=202221577133832&tin=02508201610067®Number=0000000000156251&sum=50000 [18:35:53]StoreToDocumentArchive [18:35:53]shift 194 fd 69963 [18:35:53]save to /storage/0194/doc_00069963 [18:35:53]save last doc name /storage/0194/doc_00069963 to /storage/kkm_last_doc_name [18:35:53]save OK [18:35:53]Clear old archive folders... [18:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:53]tlvbuf is 01184590 [18:35:53]SAM_PROTO_ClearQueue [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 09 00 00 [18:35:53]Write to MH i2c: E2 08 00 DB 16 80 09 00 00 00 00 00 00 63 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [18:35:53]RAPDU: 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_ClearQueue done [18:35:53]KKMCreateOFDPacket [18:35:53]OFDProtocolAddRootSTLVToBuf [18:35:53]FM_MakeSignedData [18:35:53]FM_MakeSignedData [18:35:53]SAM_PROTO_SignData [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 0D 01 02 [18:35:53]Write to MH i2c: E2 08 00 DC 16 80 0D 01 02 00 00 00 00 6B [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [18:35:53]RAPDU: 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=255 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 09 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 11 01 00 35 04 06 00 B7 [18:35:53]Write to MH i2c: E2 02 01 DD 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 09 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 11 01 00 35 04 06 00 B7 00 00 29 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:54]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:54]E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [18:35:54]RAPDU: 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=10 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 0D 02 02 05 EB 61 45 5F 08 [18:35:54]Write to MH i2c: E2 0D 00 DE 16 80 0D 02 02 05 00 EB 61 45 5F 08 00 00 70 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [18:35:54]RAPDU: 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 0D 03 02 [18:35:54]Write to MH i2c: E2 08 00 DF 16 80 0D 03 02 00 00 00 00 70 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0B 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 0B 00 DF 16 00 AC 1A 51 8A E1 7B 1E 7D 90 00 09 [18:35:54]RAPDU: AC 1A 51 8A E1 7B 1E 7D 90 00 [18:35:54]wFMCommunicate OK [18:35:54]SAM_PROTO_SignData done [18:35:54]FM_MakeSignedData done [18:35:54]CreateOFDProtocolMessage [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 11 00 00 [18:35:54]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [18:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:54]wFMCommunicate OK [18:35:54]CreateOFDProtocolMessage done [18:35:54]OFDSenderStorePacket 69963 [18:35:54]StoreOFDPacket docnum=69963 [18:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 AF 07 01 C2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 09 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 11 01 00 35 04 06 00 B7 EB 61 45 5F 08 AC 1A 51 8A E1 7B 1E 7D [18:35:54]CheckFolder [18:35:54]dirname=/storage/ofd_packets [18:35:54]CheckFolder done [18:35:54]ProducePacketName [18:35:54]name=ofd_packets/00069963 [18:35:54]NVStorageSaveData ofd_packets/00069963 [18:35:54]File name is /storage/ofd_packets/00069963 [18:35:54]Write 301 bytes [18:35:54]NVStorageSaveData done [18:35:54]OFDSenderStorePacket done [18:35:54]KKMCreateOFDPacket done [18:35:54]NVStorageSaveData kkm_last_timestamp [18:35:54]File name is /storage/kkm_last_timestamp [18:35:54]Write 4 bytes [18:35:54]NVStorageSaveData done [18:35:54]ExternCall_PrintAddStr [18:35:54]wPrintStart [18:35:54]Write to MH i2c: 01 00 00 E1 16 F7 [18:35:54]OFD Sender: Processing packet 69963 [packets to send 18, broken 17] [18:35:54]ProducePacketName [18:35:54]name=ofd_packets/00069963 [18:35:54]OFD Sender: To server: pG, [18:35:54]CommunicateWithHost lk.salyk.kg:30040 [18:35:54]ConnectInit lk.salyk.kg [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FF 0F 0C [18:35:54]RasterBufferAndPrint [18:35:54]line Счет N : (1)2885728 [18:35:54]line ИНН: 02508201610067 [18:35:54]line Контрольно-Кассовый Чек [18:35:54]line ПРОДАЖА [18:35:54]line ТРК (МРК, ГНК) : 13 [18:35:54]line Товар: 2710124500 [18:35:54]line Аи-95-К-5 [18:35:54]line 6.740 * 74.20 [18:35:54]line = 500.11 [18:35:54]line НДС 12% НСП 1% [18:35:54]line > о реализуемом товаре [18:35:54]line ОКРУГЛЕНИЕ: -0.11 [18:35:54]line ИТОГО: 500.00 [18:35:54]line Внесено: 500.00 [18:35:54]line СДАЧА: 0.00 [18:35:54]line НСП 1% : 4.43 [18:35:54]line НДС 12% : 53.11 [18:35:54]line Наличными: 500.00 [18:35:54]line Безнал.: 0.00 [18:35:54]line Место: АЗС № 85 "Партнер Нефть" [18:35:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:35:54]line СНО: Общий режим [18:35:54]line Чек 353 21.10.2024 18:35 [18:35:54]line Смена: 194 ФФД: 1.0 [18:35:54]line ЗНМ: 0300000167 [18:35:54]line РНМ: 0000000000156251 [18:35:54]line Версия ККМ: v1.0 [18:35:54]line ФМ: 0000000000963346 [18:35:54]line ФД: 69963 [18:35:54]line ФПД: 202221577133832 [18:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183553&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69963&fm=202221577133832&tin=02508201610067®Number=0000000000156251&sum=50000 [18:35:54]written 0, free lines is 4095 [18:35:54]Connected sock=10 [18:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 AF 07 01 C2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 09 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 11 01 00 35 04 06 00 B7 EB 61 45 5F 08 AC 1A 51 8A E1 7B 1E 7D [18:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1B 5D 47 00 97 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 11 01 00 F4 03 04 00 AD 48 16 67 B6 04 01 00 00 3E 3E 61 BD 87 62 0D 26 [18:35:55]CommunicateWithHost err = 0 [18:35:55]CheckOFDResponse [18:35:55]1017 (14) - 77093643461234 [18:35:55]1041 (16) - 0000000000963346 [18:35:55]1040 (4) - 69963 [18:35:55]1012 (4) - 21.10.2024 12:27 [18:35:55]1206 (1) - 0 [18:35:55]OFD Sender: Remove packet 69963 [18:35:55]ProducePacketName [18:35:55]name=ofd_packets/00069963 [18:35:55]NVStorageDeleteData [18:35:55]Write to MH i2c: 01 00 00 0C 17 23 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 07 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 07 00 0C 17 00 00 00 00 00 1E 0D 55 [18:35:55]RasterBufferAndPrint [18:35:55]line [18:35:55]line [18:35:55]line [18:35:55]line [18:35:55]line [18:35:55]written 0, free lines is 3370 [18:35:55]MH_Cut [18:35:55]Write to MH i2c: D1 01 00 13 17 01 FC [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: D1 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: D1 01 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: D1 01 00 13 17 00 FB [18:35:55]Write to MH i2c: 01 00 00 14 17 2B [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]OFD Sender: No OFD packet to send [18:35:56]*** Cut start [18:35:56]*** Partial cut [18:35:56]*** CUTSNS_PIN = 1 [18:35:56]*** CUTSNS_PIN = 0 [18:35:56]*** Brake cut motor [18:35:56]Read from MH i2c: 01 [18:35:56]*** Stop cut motor [18:35:56]MH_I2C_Read... [18:35:56]*** Cut end [18:35:56]Read from MH i2c: 01 07 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 FF 0F 40 [18:35:56]process_action close_receipt done [18:35:56]requested_data is exist [18:35:56]produce_requested_data [18:35:56]requested_item fm.sn is exist - process it [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 11 00 00 [18:35:56]Write to MH i2c: E2 08 00 15 17 80 11 00 00 00 00 00 00 A6 [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:56]E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 17 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 17 00 15 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [18:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:56]wFMCommunicate OK [18:35:56]requested_item fd.num is exist - process it [18:35:56]SAM_PROTO_GetFieldsCounters [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 13 00 00 [18:35:56]Write to MH i2c: E2 08 00 16 17 80 13 00 00 00 00 00 00 A9 [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:56]Read from MH i2c: E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 62 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 62 00 16 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [18:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:56]wFMCommunicate OK [18:35:56]SAM_PROTO_GetFieldsCounters done [18:35:56]requested_item shift.num is exist - process it [18:35:56]requested_item shift.opened is exist - process it [18:35:56]req_shift_opened [18:35:56]FM_GetShiftState [18:35:56]SAM_PROTO_GetShiftState [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 13 01 00 [18:35:56]Write to MH i2c: E2 08 00 17 17 80 13 01 00 00 00 00 00 AB [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:56]Read from MH i2c: E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 0E 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 0E 00 17 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D7 [18:35:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:35:56]wFMCommunicate OK [18:35:56]SAM_PROTO_GetShiftState done [18:35:56]FM_GetShiftState done [18:35:56]req_shift_opened done [18:35:56]requested_item shift.open_date is exist - process it [18:35:56]req_shift_open_date [18:35:56]req_shift_open_date done [18:35:56]produce_requested_data done [18:35:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69963,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:35:56]process_action_free close_receipt [18:35:56]json_value_free [18:35:56]json_value_free done [18:35:56]process_json_proto returns [18:35:56]Send response to host [18:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69963,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:35:56]free response buf [18:35:56]execute_script done [18:35:56]execute_script returns [18:35:56]free content buf [18:35:56]Sock 7.Close socket [18:35:56]Sock 7.Thread stoped [18:35:57]accept exits with 6 [18:35:57]New connection [18:35:57]New thread 3067026788 created [18:35:57]Thread 3067170148 joined [18:35:57]Waiting for new connection... [18:35:57] Sock 6.Parse request [18:35:57]Sock 6.Check first char [18:35:57]Sock 6.First char is OK [18:35:57]request: POST /json_proto HTTP/1.0 [18:35:57]Method: POST [18:35:57]URL: /json_proto [18:35:57]Method is POST - this is cgi request [18:35:57]url: /json_proto [18:35:57]query_string will be loaded in cgi processing [18:35:57]execute_cgi json_proto POST (null) [18:35:57]execute_cgi path=json_proto method=POST [18:35:57]POST find Content-Length [18:35:57]Host: 172.17.50.3:8080 [18:35:57]Content-Length: 678 [18:35:57]Content-Type: application/json [18:35:57] [18:35:57]POST finish read [18:35:57]Found Content-Length = 678 [18:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885729", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]execute_script... [18:35: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)2885729", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]POST & json_proto [18:35:57]process_json_proto [18:35:57]json parsed OK: [18:35:57]protocol is kg_v1.0 [18:35:57]action value=close_receipt [18:35:57]process_action close_receipt [18:35:57]cmd_close_receipt [18:35:57]MH_GetDate [18:35:57]Write to MH i2c: F0 00 00 18 17 1E [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 18 17 00 0E 9F 16 67 6B 98 1E 66 D8 [18:35:57]GetLastDocTimeStamp 1729535753 [18:35:57]current date 1729535758 [18:35:57]FM_GetShiftState [18:35:57]SAM_PROTO_GetShiftState [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 13 01 00 [18:35:57]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [18:35:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_GetShiftState done [18:35:57]FM_GetShiftState done [18:35:57]opened in 1729469703 [18:35:57]opened+sec_in_day 1729556103 [18:35:57]quantity*price = 50010 [18:35:57]sum+1 = 50012 [18:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 354 21.10.2024 18:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69964 ФПД: 271778051237843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69964&fm=271778051237843&tin=02508201610067®Number=0000000000156251&sum=50000 [18:35:58]StoreToDocumentArchive [18:35:58]shift 194 fd 69964 [18:35:58]save to /storage/0194/doc_00069964 [18:35:58]save last doc name /storage/0194/doc_00069964 to /storage/kkm_last_doc_name [18:35:58]save OK [18:35:58]Clear old archive folders... [18:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:58]tlvbuf is 01176CF0 [18:35:58]SAM_PROTO_ClearQueue [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 09 00 00 [18:35:58]Write to MH i2c: E2 08 00 26 17 80 09 00 00 00 00 00 00 AF [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]SAM_PROTO_ClearQueue done [18:35:58]KKMCreateOFDPacket [18:35:58]OFDProtocolAddRootSTLVToBuf [18:35:58]FM_MakeSignedData [18:35:58]FM_MakeSignedData [18:35:58]SAM_PROTO_SignData [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 01 02 [18:35:58]Write to MH i2c: E2 08 00 27 17 80 0D 01 02 00 00 00 00 B7 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]wFMCommunicate request_size=255 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0E 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 11 01 00 35 04 06 00 F7 [18:35:58]Write to MH i2c: E2 02 01 28 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0E 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 11 01 00 35 04 06 00 F7 00 00 BC [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [18:35:59]RAPDU: 90 00 [18:35:59]wFMCommunicate OK [18:35:59]wFMCommunicate request_size=10 [18:35:59]MH_SAM_APDU [18:35:59]CAPDU: 80 0D 02 02 05 2E 42 33 A7 D3 [18:35:59]Write to MH i2c: E2 0D 00 29 17 80 0D 02 02 05 00 2E 42 33 A7 D3 00 00 E1 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [18:35:59]RAPDU: 90 00 [18:35:59]wFMCommunicate OK [18:35:59]wFMCommunicate request_size=4 [18:35:59]MH_SAM_APDU [18:35:59]CAPDU: 80 0D 03 02 [18:35:59]Write to MH i2c: E2 08 00 2A 17 80 0D 03 02 00 00 00 00 BC [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 0B 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 0B 00 2A 17 00 99 A4 0D 4C 6D F5 B7 6F 90 00 DB [18:35:59]RAPDU: 99 A4 0D 4C 6D F5 B7 6F 90 00 [18:35:59]wFMCommunicate OK [18:35:59]SAM_PROTO_SignData done [18:35:59]FM_MakeSignedData done [18:35:59]CreateOFDProtocolMessage [18:35:59]wFMCommunicate request_size=4 [18:35:59]MH_SAM_APDU [18:35:59]CAPDU: 80 11 00 00 [18:35:59]Write to MH i2c: E2 08 00 2B 17 80 11 00 00 00 00 00 00 BC [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 2B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [18:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:59]wFMCommunicate OK [18:35:59]CreateOFDProtocolMessage done [18:35:59]OFDSenderStorePacket 69964 [18:35:59]StoreOFDPacket docnum=69964 [18:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 61 0C 07 01 0C 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0E 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 11 01 00 35 04 06 00 F7 2E 42 33 A7 D3 99 A4 0D 4C 6D F5 B7 6F [18:35:59]CheckFolder [18:35:59]dirname=/storage/ofd_packets [18:35:59]CheckFolder done [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00069964 [18:35:59]NVStorageSaveData ofd_packets/00069964 [18:35:59]File name is /storage/ofd_packets/00069964 [18:35:59]Write 301 bytes [18:35:59]NVStorageSaveData done [18:35:59]OFDSenderStorePacket done [18:35:59]KKMCreateOFDPacket done [18:35:59]NVStorageSaveData kkm_last_timestamp [18:35:59]File name is /storage/kkm_last_timestamp [18:35:59]Write 4 bytes [18:35:59]NVStorageSaveData done [18:35:59]ExternCall_PrintAddStr [18:35:59]wPrintStart [18:35:59]Write to MH i2c: 01 00 00 2C 17 43 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 [18:35:59]MH_I2C_Read... [18:35:59]OFD Sender: Processing packet 69964 [packets to send 18, broken 17] [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00069964 [18:35:59]OFD Sender: To server: pG, [18:35:59]CommunicateWithHost lk.salyk.kg:30040 [18:35:59]ConnectInit lk.salyk.kg [18:35:59]Read from MH i2c: 01 07 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 2C 17 00 00 00 00 00 FF 0F 58 [18:35:59]RasterBufferAndPrint [18:35:59]line Счет N : (1)2885729 [18:35:59]line ИНН: 02508201610067 [18:35:59]line Контрольно-Кассовый Чек [18:35:59]line ПРОДАЖА [18:35:59]line ТРК (МРК, ГНК) : 33 [18:35:59]line Товар: 2710124500 [18:35:59]line Аи-95-К-5 [18:35:59]line 6.740 * 74.20 [18:35:59]line = 500.11 [18:35:59]line НДС 12% НСП 1% [18:35:59]line > о реализуемом товаре [18:35:59]line ОКРУГЛЕНИЕ: -0.11 [18:35:59]line ИТОГО: 500.00 [18:35:59]line Внесено: 500.00 [18:35:59]line СДАЧА: 0.00 [18:35:59]line НСП 1% : 4.43 [18:35:59]line НДС 12% : 53.11 [18:35:59]line Наличными: 500.00 [18:35:59]line Безнал.: 0.00 [18:35:59]line Место: АЗС № 85 "Партнер Нефть" [18:35:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:35:59]line СНО: Общий режим [18:35:59]line Чек 354 21.10.2024 18:35 [18:35:59]line Смена: 194 ФФД: 1.0 [18:35:59]line ЗНМ: 0300000167 [18:35:59]line РНМ: 0000000000156251 [18:35:59]line Версия ККМ: v1.0 [18:35:59]line ФМ: 0000000000963346 [18:35:59]line ФД: 69964 [18:35:59]line ФПД: 271778051237843 [18:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183558&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69964&fm=271778051237843&tin=02508201610067®Number=0000000000156251&sum=50000 [18:35:59]Connected sock=10 [18:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 61 0C 07 01 0C 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 written 0, free lines is 4095 [18:35:59]02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 0E 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 11 01 00 35 04 06 00 F7 2E 42 33 A7 D3 99 A4 0D 4C 6D F5 B7 6F [18:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2C 74 47 00 AD 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 39 36 33 33 34 36 10 04 04 00 4C 11 01 00 F4 03 04 00 B1 48 16 67 B6 04 01 00 00 23 B7 9B 18 7F 38 55 72 [18:36:00]CommunicateWithHost err = 0 [18:36:00]CheckOFDResponse [18:36:00]1017 (14) - 77093643461234 [18:36:00]1041 (16) - 0000000000963346 [18:36:00]1040 (4) - 69964 [18:36:00]1012 (4) - 21.10.2024 12:27 [18:36:00]1206 (1) - 0 [18:36:00]OFD Sender: Remove packet 69964 [18:36:00]ProducePacketName [18:36:00]name=ofd_packets/00069964 [18:36:00]NVStorageDeleteData [18:36:00]Write to MH i2c: 01 00 00 57 17 6E [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 57 17 00 00 00 00 00 E7 0C 68 [18:36:00]RasterBufferAndPrint [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]written 0, free lines is 3324 [18:36:00]MH_Cut [18:36:00]Write to MH i2c: D1 01 00 5E 17 01 47 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 5E 17 00 46 [18:36:00]Write to MH i2c: 01 00 00 5F 17 76 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]OFD Sender: No OFD packet to send [18:36:00]*** Cut start [18:36:00]*** Partial cut [18:36:00]*** CUTSNS_PIN = 1 [18:36:01]*** CUTSNS_PIN = 0 [18:36:01]*** Brake cut motor [18:36:01]Read from MH i2c: 01 [18:36:01]MH_I2C_Read... [18:36:01]*** Stop cut motor [18:36:01]*** Cut end [18:36:01]Read from MH i2c: 01 07 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 FF 0F 8B [18:36:01]process_action close_receipt done [18:36:01]requested_data is exist [18:36:01]produce_requested_data [18:36:01]requested_item fm.sn is exist - process it [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 11 00 00 [18:36:01]Write to MH i2c: E2 08 00 60 17 80 11 00 00 00 00 00 00 F1 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 60 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [18:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:36:01]wFMCommunicate OK [18:36:01]requested_item fd.num is exist - process it [18:36:01]SAM_PROTO_GetFieldsCounters [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 00 00 [18:36:01]Write to MH i2c: E2 08 00 61 17 80 13 00 00 00 00 00 00 F4 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 61 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetFieldsCounters done [18:36:01]requested_item shift.num is exist - process it [18:36:01]requested_item shift.opened is exist - process it [18:36:01]req_shift_opened [18:36:01]FM_GetShiftState [18:36:01]SAM_PROTO_GetShiftState [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 01 00 [18:36:01]Write to MH i2c: E2 08 00 62 17 80 13 01 00 00 00 00 00 F6 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 62 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 22 [18:36:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetShiftState done [18:36:01]FM_GetShiftState done [18:36:01]req_shift_opened done [18:36:01]requested_item shift.open_date is exist - process it [18:36:01]req_shift_open_date [18:36:01]req_shift_open_date done [18:36:01]produce_requested_data done [18:36:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69964,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:36:01]process_action_free close_receipt [18:36:01]json_value_free [18:36:01]json_value_free done [18:36:01]process_json_proto returns [18:36:01]Send response to host [18:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69964,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:36:01]free response buf [18:36:01]execute_script done [18:36:01]execute_script returns [18:36:01]free content buf [18:36:01]Sock 6.Close socket [18:36:01]Sock 6.Thread stoped [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:32]accept exits with 7 [18:37:32]New connection [18:37:32]New thread 3067170148 created [18:37:32]Thread 3067026788 joined [18:37:32]Waiting for new connection... [18:37:32] Sock 7.Parse request [18:37:32]Sock 7.Check first char [18:37:32]Sock 7.First char is OK [18:37:32]request: POST /json_proto HTTP/1.0 [18:37:32]Method: POST [18:37:32]URL: /json_proto [18:37:32]Method is POST - this is cgi request [18:37:32]url: /json_proto [18:37:32]query_string will be loaded in cgi processing [18:37:32]execute_cgi json_proto POST (null) [18:37:32]execute_cgi path=json_proto method=POST [18:37:32]POST find Content-Length [18:37:32]Host: 172.17.50.3:8080 [18:37:32]Content-Length: 678 [18:37:32]Content-Type: application/json [18:37:32] [18:37:32]POST finish read [18:37:32]Found Content-Length = 678 [18:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885730", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:32]execute_script... [18:37: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)2885730", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:32]POST & json_proto [18:37:32]process_json_proto [18:37:32]json parsed OK: [18:37:32]protocol is kg_v1.0 [18:37:32]action value=close_receipt [18:37:32]process_action close_receipt [18:37:32]cmd_close_receipt [18:37:32]MH_GetDate [18:37:32]Write to MH i2c: F0 00 00 63 17 69 [18:37:32]Write i2c OK [18:37:32]MH_I2C_Read... [18:37:32]Read from MH i2c: F0 [18:37:32]MH_I2C_Read... [18:37:32]Read from MH i2c: F0 09 00 [18:37:32]MH_I2C_Read... [18:37:32]Read from MH i2c: F0 09 00 63 17 00 6D 9F 16 67 6B 98 1E 66 82 [18:37:32]GetLastDocTimeStamp 1729535758 [18:37:32]current date 1729535853 [18:37:32]FM_GetShiftState [18:37:32]SAM_PROTO_GetShiftState [18:37:32]wFMCommunicate request_size=4 [18:37:32]MH_SAM_APDU [18:37:32]CAPDU: 80 13 01 00 [18:37:32]Write to MH i2c: E2 08 00 64 17 80 13 01 00 00 00 00 00 F8 [18:37:32]Write i2c OK [18:37:32]MH_I2C_Read... [18:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:32]Read from MH i2c: E2 [18:37:32]MH_I2C_Read... [18:37:32]Read from MH i2c: E2 0E 00 [18:37:32]MH_I2C_Read... [18:37:32]Read from MH i2c: E2 0E 00 64 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [18:37:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:37:32]wFMCommunicate OK [18:37:32]SAM_PROTO_GetShiftState done [18:37:32]FM_GetShiftState done [18:37:32]opened in 1729469703 [18:37:32]opened+sec_in_day 1729556103 [18:37:32]quantity*price = 30038 [18:37:32]sum+1 = 30039 [18:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 355 21.10.2024 18:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69965 ФПД: 171434617378986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69965&fm=171434617378986&tin=02508201610067®Number=0000000000156251&sum=30000 [18:37:33]StoreToDocumentArchive [18:37:33]shift 194 fd 69965 [18:37:33]save to /storage/0194/doc_00069965 [18:37:33]save last doc name /storage/0194/doc_00069965 to /storage/kkm_last_doc_name [18:37:33]save OK [18:37:33]Clear old archive folders... [18:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:33]tlvbuf is 0111F5E0 [18:37:33]SAM_PROTO_ClearQueue [18:37:33]wFMCommunicate request_size=4 [18:37:33]MH_SAM_APDU [18:37:33]CAPDU: 80 09 00 00 [18:37:33]Write to MH i2c: E2 08 00 71 17 80 09 00 00 00 00 00 00 FA [18:37:33]Write i2c OK [18:37:33]MH_I2C_Read... [18:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:33]Read from MH i2c: E2 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [18:37:33]RAPDU: 90 00 [18:37:33]wFMCommunicate OK [18:37:33]SAM_PROTO_ClearQueue done [18:37:33]KKMCreateOFDPacket [18:37:33]OFDProtocolAddRootSTLVToBuf [18:37:33]FM_MakeSignedData [18:37:33]FM_MakeSignedData [18:37:33]SAM_PROTO_SignData [18:37:33]wFMCommunicate request_size=4 [18:37:33]MH_SAM_APDU [18:37:33]CAPDU: 80 0D 01 02 [18:37:33]Write to MH i2c: E2 08 00 72 17 80 0D 01 02 00 00 00 00 02 [18:37:33]Write i2c OK [18:37:33]MH_I2C_Read... [18:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:33]Read from MH i2c: E2 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [18:37:33]RAPDU: 90 00 [18:37:33]wFMCommunicate OK [18:37:33]wFMCommunicate request_size=255 [18:37:33]MH_SAM_APDU [18:37:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 6D 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 11 01 00 35 04 06 00 9B [18:37:33]Write to MH i2c: E2 02 01 73 17 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 6D 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 11 01 00 35 04 06 00 9B 00 00 28 [18:37:33]Write i2c OK [18:37:33]MH_I2C_Read... [18:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:33]Read from MH i2c: E2 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 [18:37:33]MH_I2C_Read... [18:37:33]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [18:37:33]RAPDU: 90 00 [18:37:33]wFMCommunicate OK [18:37:33]wFMCommunicate request_size=10 [18:37:33]MH_SAM_APDU [18:37:33]CAPDU: 80 0D 02 02 05 EB 3B 78 98 AA [18:37:33]Write to MH i2c: E2 0D 00 74 17 80 0D 02 02 05 00 EB 3B 78 98 AA 00 00 EF [18:37:33]Write i2c OK [18:37:33]MH_I2C_Read... [18:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:34]Read from MH i2c: E2 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 03 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [18:37:34]RAPDU: 90 00 [18:37:34]wFMCommunicate OK [18:37:34]wFMCommunicate request_size=4 [18:37:34]MH_SAM_APDU [18:37:34]CAPDU: 80 0D 03 02 [18:37:34]Write to MH i2c: E2 08 00 75 17 80 0D 03 02 00 00 00 00 07 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:34]Read from MH i2c: E2 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 0B 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 0B 00 75 17 00 81 40 3F C1 53 CF D0 0B 90 00 C6 [18:37:34]RAPDU: 81 40 3F C1 53 CF D0 0B 90 00 [18:37:34]wFMCommunicate OK [18:37:34]SAM_PROTO_SignData done [18:37:34]FM_MakeSignedData done [18:37:34]CreateOFDProtocolMessage [18:37:34]wFMCommunicate request_size=4 [18:37:34]MH_SAM_APDU [18:37:34]CAPDU: 80 11 00 00 [18:37:34]Write to MH i2c: E2 08 00 76 17 80 11 00 00 00 00 00 00 07 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:34]Read from MH i2c: E2 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 17 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: E2 17 00 76 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [18:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:37:34]wFMCommunicate OK [18:37:34]CreateOFDProtocolMessage done [18:37:34]OFDSenderStorePacket 69965 [18:37:34]StoreOFDPacket docnum=69965 [18:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7E D9 07 01 72 0C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 6D 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 11 01 00 35 04 06 00 9B EB 3B 78 98 AA 81 40 3F C1 53 CF D0 0B [18:37:34]CheckFolder [18:37:34]dirname=/storage/ofd_packets [18:37:34]CheckFolder done [18:37:34]ProducePacketName [18:37:34]name=ofd_packets/00069965 [18:37:34]NVStorageSaveData ofd_packets/00069965 [18:37:34]File name is /storage/ofd_packets/00069965 [18:37:34]Write 301 bytes [18:37:34]NVStorageSaveData done [18:37:34]OFDSenderStorePacket done [18:37:34]KKMCreateOFDPacket done [18:37:34]NVStorageSaveData kkm_last_timestamp [18:37:34]File name is /storage/kkm_last_timestamp [18:37:34]Write 4 bytes [18:37:34]NVStorageSaveData done [18:37:34]ExternCall_PrintAddStr [18:37:34]wPrintStart [18:37:34]Write to MH i2c: 01 00 00 77 17 8E [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 07 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 07 00 77 17 00 00 00 00 00 FF 0F A3 [18:37:34]RasterBufferAndPrint [18:37:34]line Счет N : (1)2885730 [18:37:34]line ИНН: 02508201610067 [18:37:34]line Контрольно-Кассовый Чек [18:37:34]line ПРОДАЖА [18:37:34]line ТРК (МРК, ГНК) : 42 [18:37:34]line Товар: 2710124130 [18:37:34]line Аи-92-К-5 [18:37:34]line 4.490 * 66.90 [18:37:34]line = 300.38 [18:37:34]line НДС 12% НСП 1% [18:37:34]line > о реализуемом товаре [18:37:34]line ОКРУГЛЕНИЕ: -0.38 [18:37:34]line ИТОГО: 300.00 [18:37:34]line Внесено: 300.00 [18:37:34]line СДАЧА: 0.00 [18:37:34]line НСП 1% : 2.66 [18:37:34]line НДС 12% : 31.90 [18:37:34]line Наличными: 300.00 [18:37:34]line Безнал.: 0.00 [18:37:34]line Место: АЗС № 85 "Партнер Нефть" [18:37:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:37:34]line СНО: Общий режим [18:37:34]line Чек 355 21.10.2024 18:37 [18:37:34]line Смена: 194 ФФД: 1.0 [18:37:34]line ЗНМ: 0300000167 [18:37:34]line РНМ: 0000000000156251 [18:37:34]line Версия ККМ: v1.0 [18:37:34]line ФМ: 0000000000963346 [18:37:34]line ФД: 69965 [18:37:34]line ФПД: 171434617378986 [18:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69965&fm=171434617378986&tin=02508201610067®Number=0000000000156251&sum=30000 [18:37:34]OFD Sender: Processing packet 69965 [packets to send 18, broken 17] [18:37:34]ProducePacketName [18:37:34]name=ofd_packets/00069965 [18:37:34]OFD Sender: To server: pG, [18:37:34]CommunicateWithHost lk.salyk.kg:30040 [18:37:34]ConnectInit lk.salyk.kg [18:37:34]written 0, free lines is 4095 [18:37:34]Connected sock=10 [18:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7E D9 07 01 72 0C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 6D 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 11 01 00 35 04 06 00 9B EB 3B 78 98 AA 81 40 3F C1 53 CF D0 0B [18:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A E6 47 00 92 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 11 01 00 F4 03 04 00 10 49 16 67 B6 04 01 00 00 AB 59 6B A8 C7 A1 E7 50 [18:37:34]CommunicateWithHost err = 0 [18:37:34]CheckOFDResponse [18:37:34]1017 (14) - 77093643461234 [18:37:34]1041 (16) - 0000000000963346 [18:37:34]1040 (4) - 69965 [18:37:34]1012 (4) - 21.10.2024 12:29 [18:37:34]1206 (1) - 0 [18:37:34]OFD Sender: Remove packet 69965 [18:37:34]ProducePacketName [18:37:34]name=ofd_packets/00069965 [18:37:34]NVStorageDeleteData [18:37:34]Write to MH i2c: 01 00 00 A2 17 B9 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 07 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 EC 0C B8 [18:37:34]RasterBufferAndPrint [18:37:34]line [18:37:34]line [18:37:34]line [18:37:34]line [18:37:34]line [18:37:34]written 0, free lines is 3314 [18:37:34]MH_Cut [18:37:34]Write to MH i2c: D1 01 00 A9 17 01 92 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: D1 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: D1 01 00 [18:37:34]MH_I2C_Read... [18:37:34]Read from MH i2c: D1 01 00 A9 17 00 91 [18:37:34]Write to MH i2c: 01 00 00 AA 17 C1 [18:37:34]Write i2c OK [18:37:34]MH_I2C_Read... [18:37:35]OFD Sender: No OFD packet to send [18:37:35]*** Cut start [18:37:35]*** Partial cut [18:37:35]*** CUTSNS_PIN = 1 [18:37:35]*** CUTSNS_PIN = 0 [18:37:35]*** Brake cut motor [18:37:36]Read from MH i2c: 01 [18:37:36]MH_I2C_Read... [18:37:36]*** Stop cut motor [18:37:36]*** Cut end [18:37:36]Read from MH i2c: 01 07 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [18:37:36]process_action close_receipt done [18:37:36]requested_data is exist [18:37:36]produce_requested_data [18:37:36]requested_item fm.sn is exist - process it [18:37:36]wFMCommunicate request_size=4 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 11 00 00 [18:37:36]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 17 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [18:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:37:36]wFMCommunicate OK [18:37:36]requested_item fd.num is exist - process it [18:37:36]SAM_PROTO_GetFieldsCounters [18:37:36]wFMCommunicate request_size=4 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 13 00 00 [18:37:36]Write to MH i2c: E2 08 00 AC 17 80 13 00 00 00 00 00 00 3F [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 62 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 62 00 AC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:36]wFMCommunicate OK [18:37:36]SAM_PROTO_GetFieldsCounters done [18:37:36]requested_item shift.num is exist - process it [18:37:36]requested_item shift.opened is exist - process it [18:37:36]req_shift_opened [18:37:36]FM_GetShiftState [18:37:36]SAM_PROTO_GetShiftState [18:37:36]wFMCommunicate request_size=4 [18:37:36]MH_SAM_APDU [18:37:36]CAPDU: 80 13 01 00 [18:37:36]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [18:37:36]Write i2c OK [18:37:36]MH_I2C_Read... [18:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:36]Read from MH i2c: E2 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 0E 00 [18:37:36]MH_I2C_Read... [18:37:36]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6D [18:37:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:37:36]wFMCommunicate OK [18:37:36]SAM_PROTO_GetShiftState done [18:37:36]FM_GetShiftState done [18:37:36]req_shift_opened done [18:37:36]requested_item shift.open_date is exist - process it [18:37:36]req_shift_open_date [18:37:36]req_shift_open_date done [18:37:36]produce_requested_data done [18:37:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69965,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:37:36]process_action_free close_receipt [18:37:36]json_value_free [18:37:36]json_value_free done [18:37:36]process_json_proto returns [18:37:36]Send response to host [18:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69965,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:37:36]free response buf [18:37:36]execute_script done [18:37:36]execute_script returns [18:37:36]free content buf [18:37:36]Sock 7.Close socket [18:37:36]Sock 7.Thread stoped [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:03]accept exits with 9 [18:39:03]New connection [18:39:03]New thread 3067026788 created [18:39:03]Thread 3067170148 joined [18:39:03]Waiting for new connection... [18:39:03] Sock 9.Parse request [18:39:03]Sock 9.Check first char [18:39:03]Sock 9.First char is OK [18:39:03]request: POST /json_proto HTTP/1.0 [18:39:03]Method: POST [18:39:03]URL: /json_proto [18:39:03]Method is POST - this is cgi request [18:39:03]url: /json_proto [18:39:03]query_string will be loaded in cgi processing [18:39:03]execute_cgi json_proto POST (null) [18:39:03]execute_cgi path=json_proto method=POST [18:39:03]POST find Content-Length [18:39:03]Host: 172.17.50.3:8080 [18:39:03]Content-Length: 678 [18:39:03]Content-Type: application/json [18:39:03] [18:39:03]POST finish read [18:39:03]Found Content-Length = 678 [18:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:03]execute_script... [18:39: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)2885731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:03]POST & json_proto [18:39:03]process_json_proto [18:39:03]json parsed OK: [18:39:03]protocol is kg_v1.0 [18:39:03]action value=close_receipt [18:39:03]process_action close_receipt [18:39:03]cmd_close_receipt [18:39:03]MH_GetDate [18:39:03]Write to MH i2c: F0 00 00 AE 17 B4 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: F0 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: F0 09 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: F0 09 00 AE 17 00 C9 9F 16 67 6B 98 1E 66 29 [18:39:03]GetLastDocTimeStamp 1729535853 [18:39:03]current date 1729535945 [18:39:03]FM_GetShiftState [18:39:03]SAM_PROTO_GetShiftState [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 13 01 00 [18:39:03]Write to MH i2c: E2 08 00 AF 17 80 13 01 00 00 00 00 00 43 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:04]Read from MH i2c: E2 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 AF 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6F [18:39:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:39:04]wFMCommunicate OK [18:39:04]SAM_PROTO_GetShiftState done [18:39:04]FM_GetShiftState done [18:39:04]opened in 1729469703 [18:39:04]opened+sec_in_day 1729556103 [18:39:04]quantity*price = 20003 [18:39:04]sum+1 = 20004 [18:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 356 21.10.2024 18:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69966 ФПД: 68005780700202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69966&fm=68005780700202&tin=02508201610067®Number=0000000000156251&sum=20000 [18:39:05]StoreToDocumentArchive [18:39:05]shift 194 fd 69966 [18:39:05]save to /storage/0194/doc_00069966 [18:39:05]save last doc name /storage/0194/doc_00069966 to /storage/kkm_last_doc_name [18:39:05]save OK [18:39:05]Clear old archive folders... [18:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:05]tlvbuf is 01189820 [18:39:05]SAM_PROTO_ClearQueue [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 09 00 00 [18:39:05]Write to MH i2c: E2 08 00 BC 17 80 09 00 00 00 00 00 00 45 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_ClearQueue done [18:39:05]KKMCreateOFDPacket [18:39:05]OFDProtocolAddRootSTLVToBuf [18:39:05]FM_MakeSignedData [18:39:05]FM_MakeSignedData [18:39:05]SAM_PROTO_SignData [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 01 02 [18:39:05]Write to MH i2c: E2 08 00 BD 17 80 0D 01 02 00 00 00 00 4D [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=255 [18:39:05]MH_SAM_APDU [18:39: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C9 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 11 01 00 35 04 06 00 3D [18:39:05]Write to MH i2c: E2 02 01 BE 17 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C9 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 11 01 00 35 04 06 00 3D 00 00 41 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]OFD Sender: No OFD packet to send [18:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=10 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 02 02 05 D9 D4 66 BC 2A [18:39:05]Write to MH i2c: E2 0D 00 BF 17 80 0D 02 02 05 00 D9 D4 66 BC 2A 00 00 53 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 03 02 [18:39:05]Write to MH i2c: E2 08 00 C0 17 80 0D 03 02 00 00 00 00 52 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0B 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0B 00 C0 17 00 5A 7C 9B 04 53 47 1D DF 90 00 5E [18:39:05]RAPDU: 5A 7C 9B 04 53 47 1D DF 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_SignData done [18:39:05]FM_MakeSignedData done [18:39:05]CreateOFDProtocolMessage [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 11 00 00 [18:39:05]Write to MH i2c: E2 08 00 C1 17 80 11 00 00 00 00 00 00 52 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 C1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [18:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:39:05]wFMCommunicate OK [18:39:05]CreateOFDProtocolMessage done [18:39:05]OFDSenderStorePacket 69966 [18:39:05]StoreOFDPacket docnum=69966 [18:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EB C8 07 01 95 42 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C9 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 11 01 00 35 04 06 00 3D D9 D4 66 BC 2A 5A 7C 9B 04 53 47 1D DF [18:39:05]CheckFolder [18:39:05]dirname=/storage/ofd_packets [18:39:05]CheckFolder done [18:39:05]ProducePacketName [18:39:05]name=ofd_packets/00069966 [18:39:05]NVStorageSaveData ofd_packets/00069966 [18:39:05]File name is /storage/ofd_packets/00069966 [18:39:05]Write 301 bytes [18:39:05]NVStorageSaveData done [18:39:05]OFDSenderStorePacket done [18:39:05]KKMCreateOFDPacket done [18:39:05]NVStorageSaveData kkm_last_timestamp [18:39:05]File name is /storage/kkm_last_timestamp [18:39:05]Write 4 bytes [18:39:05]NVStorageSaveData done [18:39:05]ExternCall_PrintAddStr [18:39:05]wPrintStart [18:39:05]Write to MH i2c: 01 00 00 C2 17 D9 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 FF 0F EE [18:39:05]RasterBufferAndPrint [18:39:05]line Счет N : (1)2885731 [18:39:05]line ИНН: 02508201610067 [18:39:05]line Контрольно-Кассовый Чек [18:39:05]line ПРОДАЖА [18:39:05]line ТРК (МРК, ГНК) : 12 [18:39:05]line Товар: 2710124130 [18:39:05]line Аи-92-К-5 [18:39:05]line 2.990 * 66.90 [18:39:05]line = 200.03 [18:39:05]line НДС 12% НСП 1% [18:39:05]line > о реализуемом товаре [18:39:05]line ОКРУГЛЕНИЕ: -0.03 [18:39:05]line ИТОГО: 200.00 [18:39:05]line Внесено: 200.00 [18:39:05]line СДАЧА: 0.00 [18:39:05]line НСП 1% : 1.77 [18:39:05]line НДС 12% : 21.24 [18:39:05]line Наличными: 200.00 [18:39:05]line Безнал.: 0.00 [18:39:05]line Место: АЗС № 85 "Партнер Нефть" [18:39:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:39:05]line СНО: Общий режим [18:39:05]line Чек 356 21.10.2024 18:39 [18:39:05]line Смена: 194 ФФД: 1.0 [18:39:05]line ЗНМ: 0300000167 [18:39:05]line РНМ: 0000000000156251 [18:39:05]line Версия ККМ: v1.0 [18:39:05]line ФМ: 0000000000963346 [18:39:05]line ФД: 69966 [18:39:05]line ФПД: 68005780700202 [18:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69966&fm=68005780700202&tin=02508201610067®Number=0000000000156251&sum=20000 [18:39:06]OFD Sender: Processing packet 69966 [packets to send 18, broken 17] [18:39:06]ProducePacketName [18:39:06]name=ofd_packets/00069966 [18:39:06]OFD Sender: To server: pG, [18:39:06]CommunicateWithHost lk.salyk.kg:30040 [18:39:06]ConnectInit lk.salyk.kg [18:39:06]written 0, free lines is 4095 [18:39:06]Connected sock=11 [18:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EB C8 07 01 95 42 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C9 9F 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 11 01 00 35 04 06 00 3D D9 D4 66 BC 2A 5A 7C 9B 04 53 47 1D DF [18:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 AF 47 00 8B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 11 01 00 F4 03 04 00 6C 49 16 67 B6 04 01 00 00 1A 8E 47 82 C0 F6 8B 0E [18:39:06]CommunicateWithHost err = 0 [18:39:06]CheckOFDResponse [18:39:06]1017 (14) - 77093643461234 [18:39:06]1041 (16) - 0000000000963346 [18:39:06]1040 (4) - 69966 [18:39:06]1012 (4) - 21.10.2024 12:30 [18:39:06]1206 (1) - 0 [18:39:06]OFD Sender: Remove packet 69966 [18:39:06]ProducePacketName [18:39:06]name=ofd_packets/00069966 [18:39:06]NVStorageDeleteData [18:39:06]Write to MH i2c: 01 00 00 ED 17 04 [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 07 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 07 00 ED 17 00 00 00 00 00 F6 0C 0D [18:39:06]RasterBufferAndPrint [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]written 0, free lines is 3324 [18:39:06]MH_Cut [18:39:06]Write to MH i2c: D1 01 00 F4 17 01 DD [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 01 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 01 00 F4 17 00 DC [18:39:06]Write to MH i2c: 01 00 00 F5 17 0C [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]OFD Sender: No OFD packet to send [18:39:07]*** Cut start [18:39:07]*** Partial cut [18:39:07]*** CUTSNS_PIN = 1 [18:39:07]*** CUTSNS_PIN = 0 [18:39:07]*** Brake cut motor [18:39:07]Read from MH i2c: 01 [18:39:07]MH_I2C_Read... [18:39:07]*** Stop cut motor [18:39:07]*** Cut end [18:39:07]Read from MH i2c: 01 07 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: 01 07 00 F5 17 00 00 00 00 00 FF 0F 21 [18:39:07]process_action close_receipt done [18:39:07]requested_data is exist [18:39:07]produce_requested_data [18:39:07]requested_item fm.sn is exist - process it [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 11 00 00 [18:39:07]Write to MH i2c: E2 08 00 F6 17 80 11 00 00 00 00 00 00 87 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 F6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D9 [18:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:39:07]wFMCommunicate OK [18:39:07]requested_item fd.num is exist - process it [18:39:07]SAM_PROTO_GetFieldsCounters [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 13 00 00 [18:39:07]Write to MH i2c: E2 08 00 F7 17 80 13 00 00 00 00 00 00 8A [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 62 00 [18:39:07]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 62 00 F7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetFieldsCounters done [18:39:08]requested_item shift.num is exist - process it [18:39:08]requested_item shift.opened is exist - process it [18:39:08]req_shift_opened [18:39:08]FM_GetShiftState [18:39:08]SAM_PROTO_GetShiftState [18:39:08]wFMCommunicate request_size=4 [18:39:08]MH_SAM_APDU [18:39:08]CAPDU: 80 13 01 00 [18:39:08]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [18:39:08]Write i2c OK [18:39:08]MH_I2C_Read... [18:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:08]Read from MH i2c: E2 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 [18:39:08]MH_I2C_Read... [18:39:08]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B8 [18:39:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:39:08]wFMCommunicate OK [18:39:08]SAM_PROTO_GetShiftState done [18:39:08]FM_GetShiftState done [18:39:08]req_shift_opened done [18:39:08]requested_item shift.open_date is exist - process it [18:39:08]req_shift_open_date [18:39:08]req_shift_open_date done [18:39:08]produce_requested_data done [18:39:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69966,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:39:08]process_action_free close_receipt [18:39:08]json_value_free [18:39:08]json_value_free done [18:39:08]process_json_proto returns [18:39:08]Send response to host [18:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69966,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:39:08]free response buf [18:39:08]execute_script done [18:39:08]execute_script returns [18:39:08]free content buf [18:39:08]Sock 9.Close socket [18:39:08]Sock 9.Thread stoped [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:56]accept exits with 7 [18:43:56]New connection [18:43:56]New thread 3067170148 created [18:43:56]Thread 3067026788 joined [18:43:56]Waiting for new connection... [18:43:56] Sock 7.Parse request [18:43:56]Sock 7.Check first char [18:43:56]Sock 7.First char is OK [18:43:56]request: POST /json_proto HTTP/1.0 [18:43:56]Method: POST [18:43:56]URL: /json_proto [18:43:56]Method is POST - this is cgi request [18:43:56]url: /json_proto [18:43:56]query_string will be loaded in cgi processing [18:43:56]execute_cgi json_proto POST (null) [18:43:56]execute_cgi path=json_proto method=POST [18:43:56]POST find Content-Length [18:43:56]Host: 172.17.50.3:8080 [18:43:56]Content-Length: 678 [18:43:56]Content-Type: application/json [18:43:56] [18:43:56]POST finish read [18:43:56]Found Content-Length = 678 [18:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:56]execute_script... [18:43: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)2885732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:56]POST & json_proto [18:43:56]process_json_proto [18:43:56]json parsed OK: [18:43:56]protocol is kg_v1.0 [18:43:56]action value=close_receipt [18:43:56]process_action close_receipt [18:43:56]cmd_close_receipt [18:43:56]MH_GetDate [18:43:56]Write to MH i2c: F0 00 00 F9 17 FF [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: F0 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: F0 09 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: F0 09 00 F9 17 00 ED A0 16 67 6B 98 1E 66 99 [18:43:56]GetLastDocTimeStamp 1729535945 [18:43:56]current date 1729536237 [18:43:56]FM_GetShiftState [18:43:56]SAM_PROTO_GetShiftState [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 13 01 00 [18:43:56]Write to MH i2c: E2 08 00 FA 17 80 13 01 00 00 00 00 00 8E [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 0E 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 0E 00 FA 17 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BA [18:43:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:43:56]wFMCommunicate OK [18:43:56]SAM_PROTO_GetShiftState done [18:43:56]FM_GetShiftState done [18:43:56]opened in 1729469703 [18:43:56]opened+sec_in_day 1729556103 [18:43:56]quantity*price = 10035 [18:43:56]sum+1 = 10036 [18:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 357 21.10.2024 18:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69967 ФПД: 13790239699629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69967&fm=13790239699629&tin=02508201610067®Number=0000000000156251&sum=10000 [18:43:57]StoreToDocumentArchive [18:43:57]shift 194 fd 69967 [18:43:57]save to /storage/0194/doc_00069967 [18:43:57]save last doc name /storage/0194/doc_00069967 to /storage/kkm_last_doc_name [18:43:57]save OK [18:43:57]Clear old archive folders... [18:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:57]tlvbuf is B6F0F6A0 [18:43:57]SAM_PROTO_ClearQueue [18:43:57]wFMCommunicate request_size=4 [18:43:57]MH_SAM_APDU [18:43:57]CAPDU: 80 09 00 00 [18:43:57]Write to MH i2c: E2 08 00 07 18 80 09 00 00 00 00 00 00 91 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:57]Read from MH i2c: E2 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [18:43:57]RAPDU: 90 00 [18:43:57]wFMCommunicate OK [18:43:57]SAM_PROTO_ClearQueue done [18:43:57]KKMCreateOFDPacket [18:43:57]OFDProtocolAddRootSTLVToBuf [18:43:57]FM_MakeSignedData [18:43:57]FM_MakeSignedData [18:43:57]SAM_PROTO_SignData [18:43:57]wFMCommunicate request_size=4 [18:43:57]MH_SAM_APDU [18:43:57]CAPDU: 80 0D 01 02 [18:43:57]Write to MH i2c: E2 08 00 08 18 80 0D 01 02 00 00 00 00 99 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:57]Read from MH i2c: E2 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [18:43:57]RAPDU: 90 00 [18:43:57]wFMCommunicate OK [18:43:57]wFMCommunicate request_size=255 [18:43:57]MH_SAM_APDU [18:43:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 EE A0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 11 01 00 35 04 06 00 0C [18:43:57]Write to MH i2c: E2 02 01 09 18 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 EE A0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 11 01 00 35 04 06 00 0C 00 00 A9 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:58]Read from MH i2c: E2 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 03 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 03 00 09 18 00 90 00 95 [18:43:58]RAPDU: 90 00 [18:43:58]wFMCommunicate OK [18:43:58]wFMCommunicate request_size=10 [18:43:58]MH_SAM_APDU [18:43:58]CAPDU: 80 0D 02 02 05 8A CA 56 B2 AD [18:43:58]Write to MH i2c: E2 0D 00 0A 18 80 0D 02 02 05 00 8A CA 56 B2 AD 00 00 AF [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:58]Read from MH i2c: E2 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 03 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 03 00 0A 18 00 90 00 96 [18:43:58]RAPDU: 90 00 [18:43:58]wFMCommunicate OK [18:43:58]wFMCommunicate request_size=4 [18:43:58]MH_SAM_APDU [18:43:58]CAPDU: 80 0D 03 02 [18:43:58]Write to MH i2c: E2 08 00 0B 18 80 0D 03 02 00 00 00 00 9E [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:58]Read from MH i2c: E2 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 0B 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 0B 00 0B 18 00 A4 E1 14 8A E8 D9 2D FC 90 00 AC [18:43:58]RAPDU: A4 E1 14 8A E8 D9 2D FC 90 00 [18:43:58]wFMCommunicate OK [18:43:58]SAM_PROTO_SignData done [18:43:58]FM_MakeSignedData done [18:43:58]CreateOFDProtocolMessage [18:43:58]wFMCommunicate request_size=4 [18:43:58]MH_SAM_APDU [18:43:58]CAPDU: 80 11 00 00 [18:43:58]Write to MH i2c: E2 08 00 0C 18 80 11 00 00 00 00 00 00 9E [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:58]Read from MH i2c: E2 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 17 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: E2 17 00 0C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [18:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:43:58]wFMCommunicate OK [18:43:58]CreateOFDProtocolMessage done [18:43:58]OFDSenderStorePacket 69967 [18:43:58]StoreOFDPacket docnum=69967 [18:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 A8 07 01 55 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 EE A0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 11 01 00 35 04 06 00 0C 8A CA 56 B2 AD A4 E1 14 8A E8 D9 2D FC [18:43:58]CheckFolder [18:43:58]dirname=/storage/ofd_packets [18:43:58]CheckFolder done [18:43:58]ProducePacketName [18:43:58]name=ofd_packets/00069967 [18:43:58]NVStorageSaveData ofd_packets/00069967 [18:43:58]File name is /storage/ofd_packets/00069967 [18:43:58]Write 301 bytes [18:43:58]NVStorageSaveData done [18:43:58]OFDSenderStorePacket done [18:43:58]KKMCreateOFDPacket done [18:43:58]NVStorageSaveData kkm_last_timestamp [18:43:58]File name is /storage/kkm_last_timestamp [18:43:58]Write 4 bytes [18:43:58]NVStorageSaveData done [18:43:58]ExternCall_PrintAddStr [18:43:58]wPrintStart [18:43:58]Write to MH i2c: 01 00 00 0D 18 25 [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: 01 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: 01 07 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: 01 07 00 0D 18 00 00 00 00 00 FF 0F 3A [18:43:58]RasterBufferAndPrint [18:43:58]line Счет N : (1)2885732 [18:43:58]line ИНН: 02508201610067 [18:43:58]line Контрольно-Кассовый Чек [18:43:58]line ПРОДАЖА [18:43:58]line ТРК (МРК, ГНК) : 12 [18:43:58]line Товар: 2710124130 [18:43:58]line Аи-92-К-5 [18:43:58]line 1.500 * 66.90 [18:43:58]line = 100.35 [18:43:58]line НДС 12% НСП 1% [18:43:58]line > о реализуемом товаре [18:43:58]line ОКРУГЛЕНИЕ: -0.35 [18:43:58]line ИТОГО: 100.00 [18:43:58]line Внесено: 100.00 [18:43:58]line СДАЧА: 0.00 [18:43:58]line НСП 1% : 0.89 [18:43:58]line НДС 12% : 10.66 [18:43:58]line Наличными: 100.00 [18:43:58]line Безнал.: 0.00 [18:43:58]line Место: АЗС № 85 "Партнер Нефть" [18:43:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:43:58]line СНО: Общий режим [18:43:58]line Чек 357 21.10.2024 18:43 [18:43:58]line Смена: 194 ФФД: 1.0 [18:43:58]line ЗНМ: 0300000167 [18:43:58]line РНМ: 0000000000156251 [18:43:58]line Версия ККМ: v1.0 [18:43:58]line ФМ: 0000000000963346 [18:43:58]line ФД: 69967 [18:43:58]line ФПД: 13790239699629 [18:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184358&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69967&fm=13790239699629&tin=02508201610067®Number=0000000000156251&sum=10000 [18:43:58]OFD Sender: Processing packet 69967 [packets to send 18, broken 17] [18:43:58]ProducePacketName [18:43:58]name=ofd_packets/00069967 [18:43:58]OFD Sender: To server: pG, [18:43:58]CommunicateWithHost lk.salyk.kg:30040 [18:43:58]ConnectInit lk.salyk.kg [18:43:58]written 0, free lines is 4095 [18:43:58]Connected sock=10 [18:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 A8 07 01 55 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 EE A0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 11 01 00 35 04 06 00 0C 8A CA 56 B2 AD A4 E1 14 8A E8 D9 2D FC [18:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 72 CD 47 00 36 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 11 01 00 F4 03 04 00 91 4A 16 67 B6 04 01 00 00 37 E0 58 E9 0D E4 6F DF [18:43:59]CommunicateWithHost err = 0 [18:43:59]CheckOFDResponse [18:43:59]1017 (14) - 77093643461234 [18:43:59]1041 (16) - 0000000000963346 [18:43:59]1040 (4) - 69967 [18:43:59]1012 (4) - 21.10.2024 12:35 [18:43:59]1206 (1) - 0 [18:43:59]OFD Sender: Remove packet 69967 [18:43:59]ProducePacketName [18:43:59]name=ofd_packets/00069967 [18:43:59]NVStorageDeleteData [18:43:59]Write to MH i2c: 01 00 00 38 18 50 [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: 01 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: 01 07 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: 01 07 00 38 18 00 00 00 00 00 03 0D 67 [18:43:59]RasterBufferAndPrint [18:43:59]line [18:43:59]line [18:43:59]line [18:43:59]line [18:43:59]line [18:43:59]written 0, free lines is 3337 [18:43:59]MH_Cut [18:43:59]Write to MH i2c: D1 01 00 3F 18 01 29 [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: D1 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: D1 01 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: D1 01 00 3F 18 00 28 [18:43:59]Write to MH i2c: 01 00 00 40 18 58 [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]OFD Sender: No OFD packet to send [18:43:59]*** Cut start [18:43:59]*** Partial cut [18:43:59]*** CUTSNS_PIN = 1 [18:43:59]*** CUTSNS_PIN = 0 [18:44:00]*** Brake cut motor [18:44:00]Read from MH i2c: 01 [18:44:00]MH_I2C_Read... [18:44:00]*** Stop cut motor [18:44:00]*** Cut end [18:44:00]Read from MH i2c: 01 07 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [18:44:00]process_action close_receipt done [18:44:00]requested_data is exist [18:44:00]produce_requested_data [18:44:00]requested_item fm.sn is exist - process it [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 11 00 00 [18:44:00]Write to MH i2c: E2 08 00 41 18 80 11 00 00 00 00 00 00 D3 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 17 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 17 00 41 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [18:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:00]wFMCommunicate OK [18:44:00]requested_item fd.num is exist - process it [18:44:00]SAM_PROTO_GetFieldsCounters [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 13 00 00 [18:44:00]Write to MH i2c: E2 08 00 42 18 80 13 00 00 00 00 00 00 D6 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 62 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 62 00 42 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:00]wFMCommunicate OK [18:44:00]SAM_PROTO_GetFieldsCounters done [18:44:00]requested_item shift.num is exist - process it [18:44:00]requested_item shift.opened is exist - process it [18:44:00]req_shift_opened [18:44:00]FM_GetShiftState [18:44:00]SAM_PROTO_GetShiftState [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 13 01 00 [18:44:00]Write to MH i2c: E2 08 00 43 18 80 13 01 00 00 00 00 00 D8 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 0E 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 0E 00 43 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 04 [18:44:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:44:00]wFMCommunicate OK [18:44:00]SAM_PROTO_GetShiftState done [18:44:00]FM_GetShiftState done [18:44:00]req_shift_opened done [18:44:00]requested_item shift.open_date is exist - process it [18:44:00]req_shift_open_date [18:44:00]req_shift_open_date done [18:44:00]produce_requested_data done [18:44:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69967,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:44:00]process_action_free close_receipt [18:44:00]json_value_free [18:44:00]json_value_free done [18:44:00]process_json_proto returns [18:44:00]Send response to host [18:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69967,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:44:00]free response buf [18:44:00]execute_script done [18:44:00]execute_script returns [18:44:00]free content buf [18:44:00]Sock 7.Close socket [18:44:00]Sock 7.Thread stoped [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:25]accept exits with 9 [18:44:25]New connection [18:44:25]New thread 3067026788 created [18:44:25]Thread 3067170148 joined [18:44:25]Waiting for new connection... [18:44:25] Sock 9.Parse request [18:44:25]Sock 9.Check first char [18:44:25]Sock 9.First char is OK [18:44:25]request: POST /json_proto HTTP/1.0 [18:44:25]Method: POST [18:44:25]URL: /json_proto [18:44:25]Method is POST - this is cgi request [18:44:25]url: /json_proto [18:44:25]query_string will be loaded in cgi processing [18:44:25]execute_cgi json_proto POST (null) [18:44:25]execute_cgi path=json_proto method=POST [18:44:25]POST find Content-Length [18:44:25]Host: 172.17.50.3:8080 [18:44:25]Content-Length: 683 [18:44:25]Content-Type: application/json [18:44:25] [18:44:25]POST finish read [18:44:25]Found Content-Length = 683 [18:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885733", "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" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:25]execute_script... [18:44: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)2885733", "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" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:25]POST & json_proto [18:44:25]process_json_proto [18:44:25]json parsed OK: [18:44:25]protocol is kg_v1.0 [18:44:25]action value=close_receipt [18:44:25]process_action close_receipt [18:44:25]cmd_close_receipt [18:44:25]MH_GetDate [18:44:25]Write to MH i2c: F0 00 00 44 18 4B [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 09 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: F0 09 00 44 18 00 0A A1 16 67 6B 98 1E 66 03 [18:44:25]GetLastDocTimeStamp 1729536238 [18:44:25]current date 1729536266 [18:44:25]FM_GetShiftState [18:44:25]SAM_PROTO_GetShiftState [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 13 01 00 [18:44:25]Write to MH i2c: E2 08 00 45 18 80 13 01 00 00 00 00 00 DA [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0E 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0E 00 45 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 06 [18:44:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:44:25]wFMCommunicate OK [18:44:25]SAM_PROTO_GetShiftState done [18:44:25]FM_GetShiftState done [18:44:25]opened in 1729469703 [18:44:25]opened+sec_in_day 1729556103 [18:44:25]quantity*price = 110050 [18:44:25]sum+1 = 110052 [18:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 358 21.10.2024 18:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69968 ФПД: 116707857370793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69968&fm=116707857370793&tin=02508201610067®Number=0000000000156251&sum=110000 [18:44:26]StoreToDocumentArchive [18:44:26]shift 194 fd 69968 [18:44:26]save to /storage/0194/doc_00069968 [18:44:26]save last doc name /storage/0194/doc_00069968 to /storage/kkm_last_doc_name [18:44:26]save OK [18:44:26]Clear old archive folders... [18:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:26]tlvbuf is B6DDD620 [18:44:26]SAM_PROTO_ClearQueue [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 09 00 00 [18:44:26]Write to MH i2c: E2 08 00 52 18 80 09 00 00 00 00 00 00 DC [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 52 18 00 90 00 DE [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]SAM_PROTO_ClearQueue done [18:44:26]KKMCreateOFDPacket [18:44:26]OFDProtocolAddRootSTLVToBuf [18:44:26]FM_MakeSignedData [18:44:26]FM_MakeSignedData [18:44:26]SAM_PROTO_SignData [18:44:26]wFMCommunicate request_size=4 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 0D 01 02 [18:44:26]Write to MH i2c: E2 08 00 53 18 80 0D 01 02 00 00 00 00 E4 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 53 18 00 90 00 DF [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]wFMCommunicate request_size=255 [18:44:26]MH_SAM_APDU [18:44:26]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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 11 01 00 35 04 06 00 6A [18:44:26]Write to MH i2c: E2 02 01 54 18 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 11 01 00 35 04 06 00 6A 00 00 B5 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:26]Read from MH i2c: E2 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: E2 03 00 54 18 00 90 00 E0 [18:44:26]RAPDU: 90 00 [18:44:26]wFMCommunicate OK [18:44:26]wFMCommunicate request_size=10 [18:44:26]MH_SAM_APDU [18:44:26]CAPDU: 80 0D 02 02 05 25 2A 61 8E A9 [18:44:26]Write to MH i2c: E2 0D 00 55 18 80 0D 02 02 05 00 25 2A 61 8E A9 00 00 D8 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 03 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [18:44:27]RAPDU: 90 00 [18:44:27]wFMCommunicate OK [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 0D 03 02 [18:44:27]Write to MH i2c: E2 08 00 56 18 80 0D 03 02 00 00 00 00 E9 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0B 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 0B 00 56 18 00 CA 72 82 64 6A D7 E6 74 90 00 A7 [18:44:27]RAPDU: CA 72 82 64 6A D7 E6 74 90 00 [18:44:27]wFMCommunicate OK [18:44:27]SAM_PROTO_SignData done [18:44:27]FM_MakeSignedData done [18:44:27]CreateOFDProtocolMessage [18:44:27]wFMCommunicate request_size=4 [18:44:27]MH_SAM_APDU [18:44:27]CAPDU: 80 11 00 00 [18:44:27]Write to MH i2c: E2 08 00 57 18 80 11 00 00 00 00 00 00 E9 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:27]Read from MH i2c: E2 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 17 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: E2 17 00 57 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [18:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:27]wFMCommunicate OK [18:44:27]CreateOFDProtocolMessage done [18:44:27]OFDSenderStorePacket 69968 [18:44:27]StoreOFDPacket docnum=69968 [18:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 D5 07 01 20 13 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 11 01 00 35 04 06 00 6A 25 2A 61 8E A9 CA 72 82 64 6A D7 E6 74 [18:44:27]CheckFolder [18:44:27]dirname=/storage/ofd_packets [18:44:27]CheckFolder done [18:44:27]ProducePacketName [18:44:27]name=ofd_packets/00069968 [18:44:27]NVStorageSaveData ofd_packets/00069968 [18:44:27]File name is /storage/ofd_packets/00069968 [18:44:27]Write 301 bytes [18:44:27]NVStorageSaveData done [18:44:27]OFDSenderStorePacket done [18:44:27]KKMCreateOFDPacket done [18:44:27]NVStorageSaveData kkm_last_timestamp [18:44:27]File name is /storage/kkm_last_timestamp [18:44:27]Write 4 bytes [18:44:27]NVStorageSaveData done [18:44:27]ExternCall_PrintAddStr [18:44:27]wPrintStart [18:44:27]Write to MH i2c: 01 00 00 58 18 70 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 58 18 00 00 00 00 00 FF 0F 85 [18:44:27]RasterBufferAndPrint [18:44:27]line Счет N : (1)2885733 [18:44:27]line ИНН: 02508201610067 [18:44:27]line Контрольно-Кассовый Чек [18:44:27]line ПРОДАЖА [18:44:27]line ТРК (МРК, ГНК) : 42 [18:44:27]line Товар: 2710124130 [18:44:27]line Аи-92-К-5 [18:44:27]line 16.450 * 66.90 [18:44:27]line = 1100.51 [18:44:27]line НДС 12% НСП 1% [18:44:27]line > о реализуемом товаре [18:44:27]line ОКРУГЛЕНИЕ: -0.51 [18:44:27]line ИТОГО: 1100.00 [18:44:27]line Внесено: 1100.00 [18:44:27]line СДАЧА: 0.00 [18:44:27]line НСП 1% : 9.74 [18:44:27]line НДС 12% : 116.87 [18:44:27]line Наличными: 1100.00 [18:44:27]line Безнал.: 0.00 [18:44:27]line Место: АЗС № 85 "Партнер Нефть" [18:44:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:44:27]line СНО: Общий режим [18:44:27]line Чек 358 21.10.2024 18:44 [18:44:27]line Смена: 194 ФФД: 1.0 [18:44:27]line ЗНМ: 0300000167 [18:44:27]line РНМ: 0000000000156251 [18:44:27]line Версия ККМ: v1.0 [18:44:27]line ФМ: 0000000000963346 [18:44:27]line ФД: 69968 [18:44:27]line ФПД: 116707857370793 [18:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69968&fm=116707857370793&tin=02508201610067®Number=0000000000156251&sum=110000 [18:44:27]OFD Sender: Processing packet 69968 [packets to send 18, broken 17] [18:44:27]ProducePacketName [18:44:27]name=ofd_packets/00069968 [18:44:27]OFD Sender: To server: pG, [18:44:27]CommunicateWithHost lk.salyk.kg:30040 [18:44:27]ConnectInit lk.salyk.kg [18:44:27]written 0, free lines is 4095 [18:44:27]Connected sock=10 [18:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 D5 07 01 20 13 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 0A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 11 01 00 35 04 06 00 6A 25 2A 61 8E A9 CA 72 82 64 6A D7 E6 74 [18:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 20 CC 47 00 07 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 11 01 00 F4 03 04 00 AD 4A 16 67 B6 04 01 00 00 33 1E 05 DF 40 1E 15 C5 [18:44:27]CommunicateWithHost err = 0 [18:44:27]CheckOFDResponse [18:44:27]1017 (14) - 77093643461234 [18:44:27]1041 (16) - 0000000000963346 [18:44:27]1040 (4) - 69968 [18:44:27]1012 (4) - 21.10.2024 12:35 [18:44:27]1206 (1) - 0 [18:44:27]OFD Sender: Remove packet 69968 [18:44:27]ProducePacketName [18:44:27]name=ofd_packets/00069968 [18:44:27]NVStorageDeleteData [18:44:27]Write to MH i2c: 01 00 00 83 18 9B [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FD 0C AB [18:44:27]RasterBufferAndPrint [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]line [18:44:27]written 0, free lines is 3331 [18:44:27]MH_Cut [18:44:27]Write to MH i2c: D1 01 00 8A 18 01 74 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: D1 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: D1 01 00 [18:44:27]MH_I2C_Read... [18:44:27]Read from MH i2c: D1 01 00 8A 18 00 73 [18:44:27]Write to MH i2c: 01 00 00 8B 18 A3 [18:44:27]Write i2c OK [18:44:27]MH_I2C_Read... [18:44:28]OFD Sender: No OFD packet to send [18:44:28]*** Cut start [18:44:28]*** Partial cut [18:44:28]*** CUTSNS_PIN = 1 [18:44:28]*** CUTSNS_PIN = 0 [18:44:28]*** Brake cut motor [18:44:29]Read from MH i2c: 01 [18:44:29]MH_I2C_Read... [18:44:29]*** Stop cut motor [18:44:29]*** Cut end [18:44:29]Read from MH i2c: 01 07 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 FF 0F B8 [18:44:29]process_action close_receipt done [18:44:29]requested_data is exist [18:44:29]produce_requested_data [18:44:29]requested_item fm.sn is exist - process it [18:44:29]wFMCommunicate request_size=4 [18:44:29]MH_SAM_APDU [18:44:29]CAPDU: 80 11 00 00 [18:44:29]Write to MH i2c: E2 08 00 8C 18 80 11 00 00 00 00 00 00 1E [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:29]Read from MH i2c: E2 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 17 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 17 00 8C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [18:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:29]wFMCommunicate OK [18:44:29]requested_item fd.num is exist - process it [18:44:29]SAM_PROTO_GetFieldsCounters [18:44:29]wFMCommunicate request_size=4 [18:44:29]MH_SAM_APDU [18:44:29]CAPDU: 80 13 00 00 [18:44:29]Write to MH i2c: E2 08 00 8D 18 80 13 00 00 00 00 00 00 21 [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:29]Read from MH i2c: E2 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 62 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 62 00 8D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [18:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:29]wFMCommunicate OK [18:44:29]SAM_PROTO_GetFieldsCounters done [18:44:29]requested_item shift.num is exist - process it [18:44:29]requested_item shift.opened is exist - process it [18:44:29]req_shift_opened [18:44:29]FM_GetShiftState [18:44:29]SAM_PROTO_GetShiftState [18:44:29]wFMCommunicate request_size=4 [18:44:29]MH_SAM_APDU [18:44:29]CAPDU: 80 13 01 00 [18:44:29]Write to MH i2c: E2 08 00 8E 18 80 13 01 00 00 00 00 00 23 [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:29]Read from MH i2c: E2 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 0E 00 [18:44:29]MH_I2C_Read... [18:44:29]Read from MH i2c: E2 0E 00 8E 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [18:44:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:44:29]wFMCommunicate OK [18:44:29]SAM_PROTO_GetShiftState done [18:44:29]FM_GetShiftState done [18:44:29]req_shift_opened done [18:44:29]requested_item shift.open_date is exist - process it [18:44:29]req_shift_open_date [18:44:29]req_shift_open_date done [18:44:29]produce_requested_data done [18:44:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69968,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:44:29]process_action_free close_receipt [18:44:29]json_value_free [18:44:29]json_value_free done [18:44:29]process_json_proto returns [18:44:29]Send response to host [18:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69968,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:44:29]free response buf [18:44:29]execute_script done [18:44:29]execute_script returns [18:44:29]free content buf [18:44:29]Sock 9.Close socket [18:44:29]Sock 9.Thread stoped [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:28]accept exits with 7 [18:45:28]New connection [18:45:28]New thread 3067170148 created [18:45:28]Thread 3067026788 joined [18:45:28]Waiting for new connection... [18:45:28] Sock 7.Parse request [18:45:28]Sock 7.Check first char [18:45:28]Sock 7.First char is OK [18:45:28]request: POST /json_proto HTTP/1.0 [18:45:28]Method: POST [18:45:28]URL: /json_proto [18:45:28]Method is POST - this is cgi request [18:45:28]url: /json_proto [18:45:28]query_string will be loaded in cgi processing [18:45:28]execute_cgi json_proto POST (null) [18:45:28]execute_cgi path=json_proto method=POST [18:45:28]POST find Content-Length [18:45:28]Host: 172.17.50.3:8080 [18:45:28]Content-Length: 683 [18:45:28]Content-Type: application/json [18:45:28] [18:45:28]POST finish read [18:45:28]Found Content-Length = 683 [18:45:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885734", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:28]execute_script... [18:45:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885734", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:28]POST & json_proto [18:45:28]process_json_proto [18:45:28]json parsed OK: [18:45:28]protocol is kg_v1.0 [18:45:28]action value=close_receipt [18:45:28]process_action close_receipt [18:45:28]cmd_close_receipt [18:45:28]MH_GetDate [18:45:28]Write to MH i2c: F0 00 00 8F 18 96 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: F0 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: F0 09 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: F0 09 00 8F 18 00 4A A1 16 67 6B 98 1E 66 8E [18:45:28]GetLastDocTimeStamp 1729536266 [18:45:28]current date 1729536330 [18:45:28]FM_GetShiftState [18:45:28]SAM_PROTO_GetShiftState [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 01 00 [18:45:28]Write to MH i2c: E2 08 00 90 18 80 13 01 00 00 00 00 00 25 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 90 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 51 [18:45:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetShiftState done [18:45:28]FM_GetShiftState done [18:45:28]opened in 1729469703 [18:45:28]opened+sec_in_day 1729556103 [18:45:28]quantity*price = 100015 [18:45:28]sum+1 = 100017 [18:45:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 359 21.10.2024 18:45 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69969 ФПД: 151648847813294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184530&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69969&fm=151648847813294&tin=02508201610067®Number=0000000000156251&sum=100000 [18:45:30]StoreToDocumentArchive [18:45:30]shift 194 fd 69969 [18:45:30]save to /storage/0194/doc_00069969 [18:45:30]save last doc name /storage/0194/doc_00069969 to /storage/kkm_last_doc_name [18:45:30]save OK [18:45:30]Clear old archive folders... [18:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:30]tlvbuf is 01127860 [18:45:30]SAM_PROTO_ClearQueue [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 09 00 00 [18:45:30]Write to MH i2c: E2 08 00 9D 18 80 09 00 00 00 00 00 00 27 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 9D 18 00 90 00 29 [18:45:30]RAPDU: 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_ClearQueue done [18:45:30]KKMCreateOFDPacket [18:45:30]OFDProtocolAddRootSTLVToBuf [18:45:30]FM_MakeSignedData [18:45:30]FM_MakeSignedData [18:45:30]SAM_PROTO_SignData [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 0D 01 02 [18:45:30]Write to MH i2c: E2 08 00 9E 18 80 0D 01 02 00 00 00 00 2F [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 9E 18 00 90 00 2A [18:45:30]RAPDU: 90 00 [18:45:30]wFMCommunicate OK [18:45:30]wFMCommunicate request_size=255 [18:45:30]MH_SAM_APDU [18:45: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 11 01 00 35 04 06 00 89 [18:45:30]Write to MH i2c: E2 02 01 9F 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 11 01 00 35 04 06 00 89 00 00 30 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 9F 18 00 90 00 2B [18:45:30]RAPDU: 90 00 [18:45:30]wFMCommunicate OK [18:45:30]wFMCommunicate request_size=10 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 0D 02 02 05 EC 7F B4 5A AE [18:45:30]Write to MH i2c: E2 0D 00 A0 18 80 0D 02 02 05 00 EC 7F B4 5A AE 00 00 63 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [18:45:30]RAPDU: 90 00 [18:45:30]wFMCommunicate OK [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 0D 03 02 [18:45:30]Write to MH i2c: E2 08 00 A1 18 80 0D 03 02 00 00 00 00 34 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0B 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0B 00 A1 18 00 B8 94 18 E8 C9 EA 28 34 90 00 90 [18:45:30]RAPDU: B8 94 18 E8 C9 EA 28 34 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_SignData done [18:45:30]FM_MakeSignedData done [18:45:30]CreateOFDProtocolMessage [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 11 00 00 [18:45:30]Write to MH i2c: E2 08 00 A2 18 80 11 00 00 00 00 00 00 34 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 A2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 86 [18:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:45:30]wFMCommunicate OK [18:45:30]CreateOFDProtocolMessage done [18:45:30]OFDSenderStorePacket 69969 [18:45:30]StoreOFDPacket docnum=69969 [18:45:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 99 07 01 A6 87 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 11 01 00 35 04 06 00 89 EC 7F B4 5A AE B8 94 18 E8 C9 EA 28 34 [18:45:30]CheckFolder [18:45:30]dirname=/storage/ofd_packets [18:45:30]CheckFolder done [18:45:30]ProducePacketName [18:45:30]name=ofd_packets/00069969 [18:45:30]NVStorageSaveData ofd_packets/00069969 [18:45:30]File name is /storage/ofd_packets/00069969 [18:45:30]Write 301 bytes [18:45:30]NVStorageSaveData done [18:45:30]OFDSenderStorePacket done [18:45:30]KKMCreateOFDPacket done [18:45:30]NVStorageSaveData kkm_last_timestamp [18:45:30]File name is /storage/kkm_last_timestamp [18:45:30]Write 4 bytes [18:45:30]NVStorageSaveData done [18:45:30]ExternCall_PrintAddStr [18:45:30]wPrintStart [18:45:30]Write to MH i2c: 01 00 00 A3 18 BB [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 A3 18 00 00 00 00 00 FF 0F D0 [18:45:30]RasterBufferAndPrint [18:45:30]line Счет N : (1)2885734 [18:45:30]line ИНН: 02508201610067 [18:45:30]line Контрольно-Кассовый Чек [18:45:30]line ПРОДАЖА [18:45:30]line ТРК (МРК, ГНК) : 32 [18:45:30]line Товар: 2710124130 [18:45:30]line Аи-92-К-5 [18:45:30]line 14.950 * 66.90 [18:45:30]line = 1000.16 [18:45:30]line НДС 12% НСП 1% [18:45:30]line > о реализуемом товаре [18:45:30]line ОКРУГЛЕНИЕ: -0.16 [18:45:30]line ИТОГО: 1000.00 [18:45:30]line Внесено: 1000.00 [18:45:30]line СДАЧА: 0.00 [18:45:30]line НСП 1% : 8.85 [18:45:30]line НДС 12% : 106.21 [18:45:30]line Наличными: 1000.00 [18:45:30]line Безнал.: 0.00 [18:45:30]line Место: АЗС № 85 "Партнер Нефть" [18:45:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:45:30]line СНО: Общий режим [18:45:30]line Чек 359 21.10.2024 18:45 [18:45:30]line Смена: 194 ФФД: 1.0 [18:45:30]line ЗНМ: 0300000167 [18:45:30]line РНМ: 0000000000156251 [18:45:30]line Версия ККМ: v1.0 [18:45:30]line ФМ: 0000000000963346 [18:45:30]line ФД: 69969 [18:45:30]line ФПД: 151648847813294 [18:45:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184530&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69969&fm=151648847813294&tin=02508201610067®Number=0000000000156251&sum=100000 [18:45:30]OFD Sender: Processing packet 69969 [packets to send 18, broken 17] [18:45:30]ProducePacketName [18:45:30]name=ofd_packets/00069969 [18:45:30]OFD Sender: To server: pG, [18:45:30]CommunicateWithHost lk.salyk.kg:30040 [18:45:30]ConnectInit lk.salyk.kg [18:45:30]written 0, free lines is 4095 [18:45:31]Connected sock=10 [18:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 99 07 01 A6 87 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4A A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 11 01 00 35 04 06 00 89 EC 7F B4 5A AE B8 94 18 E8 C9 EA 28 34 [18:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3D 77 47 00 8B DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 11 01 00 F4 03 04 00 ED 4A 16 67 B6 04 01 00 00 ED 2C 51 EA A8 9E 00 F9 [18:45:31]CommunicateWithHost err = 0 [18:45:31]CheckOFDResponse [18:45:31]1017 (14) - 77093643461234 [18:45:31]1041 (16) - 0000000000963346 [18:45:31]1040 (4) - 69969 [18:45:31]1012 (4) - 21.10.2024 12:37 [18:45:31]1206 (1) - 0 [18:45:31]OFD Sender: Remove packet 69969 [18:45:31]ProducePacketName [18:45:31]name=ofd_packets/00069969 [18:45:31]NVStorageDeleteData [18:45:31]Write to MH i2c: 01 00 00 CE 18 E6 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: 01 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: 01 07 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 00 0D FA [18:45:31]RasterBufferAndPrint [18:45:31]line [18:45:31]line [18:45:31]line [18:45:31]line [18:45:31]line [18:45:31]written 0, free lines is 3334 [18:45:31]MH_Cut [18:45:31]Write to MH i2c: D1 01 00 D5 18 01 BF [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: D1 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: D1 01 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: D1 01 00 D5 18 00 BE [18:45:31]Write to MH i2c: 01 00 00 D6 18 EE [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]OFD Sender: No OFD packet to send [18:45:32]*** Cut start [18:45:32]*** Partial cut [18:45:32]*** CUTSNS_PIN = 1 [18:45:32]*** CUTSNS_PIN = 0 [18:45:32]*** Brake cut motor [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]*** Stop cut motor [18:45:32]*** Cut end [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 D6 18 00 00 00 00 00 FF 0F 03 [18:45:32]process_action close_receipt done [18:45:32]requested_data is exist [18:45:32]produce_requested_data [18:45:32]requested_item fm.sn is exist - process it [18:45:32]wFMCommunicate request_size=4 [18:45:32]MH_SAM_APDU [18:45:32]CAPDU: 80 11 00 00 [18:45:32]Write to MH i2c: E2 08 00 D7 18 80 11 00 00 00 00 00 00 69 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 D7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [18:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:45:32]wFMCommunicate OK [18:45:32]requested_item fd.num is exist - process it [18:45:32]SAM_PROTO_GetFieldsCounters [18:45:32]wFMCommunicate request_size=4 [18:45:32]MH_SAM_APDU [18:45:32]CAPDU: 80 13 00 00 [18:45:32]Write to MH i2c: E2 08 00 D8 18 80 13 00 00 00 00 00 00 6C [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 62 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 62 00 D8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:45:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:32]wFMCommunicate OK [18:45:32]SAM_PROTO_GetFieldsCounters done [18:45:32]requested_item shift.num is exist - process it [18:45:32]requested_item shift.opened is exist - process it [18:45:32]req_shift_opened [18:45:32]FM_GetShiftState [18:45:32]SAM_PROTO_GetShiftState [18:45:32]wFMCommunicate request_size=4 [18:45:32]MH_SAM_APDU [18:45:32]CAPDU: 80 13 01 00 [18:45:32]Write to MH i2c: E2 08 00 D9 18 80 13 01 00 00 00 00 00 6E [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 0E 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 0E 00 D9 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9A [18:45:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:45:32]wFMCommunicate OK [18:45:32]SAM_PROTO_GetShiftState done [18:45:32]FM_GetShiftState done [18:45:32]req_shift_opened done [18:45:32]requested_item shift.open_date is exist - process it [18:45:32]req_shift_open_date [18:45:32]req_shift_open_date done [18:45:32]produce_requested_data done [18:45:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69969,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:45:32]process_action_free close_receipt [18:45:32]json_value_free [18:45:32]json_value_free done [18:45:32]process_json_proto returns [18:45:32]Send response to host [18:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69969,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:45:32]free response buf [18:45:32]execute_script done [18:45:32]execute_script returns [18:45:32]free content buf [18:45:32]Sock 7.Close socket [18:45:32]Sock 7.Thread stoped [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:25]accept exits with 9 [18:46:25]New connection [18:46:25]New thread 3067026788 created [18:46:25]Thread 3067170148 joined [18:46:25]Waiting for new connection... [18:46:25] Sock 9.Parse request [18:46:25]Sock 9.Check first char [18:46:25]Sock 9.First char is OK [18:46:25]request: POST /json_proto HTTP/1.0 [18:46:25]Method: POST [18:46:25]URL: /json_proto [18:46:25]Method is POST - this is cgi request [18:46:25]url: /json_proto [18:46:25]query_string will be loaded in cgi processing [18:46:25]execute_cgi json_proto POST (null) [18:46:25]execute_cgi path=json_proto method=POST [18:46:25]POST find Content-Length [18:46:25]Host: 172.17.50.3:8080 [18:46:25]Content-Length: 754 [18:46:25]Content-Type: application/json [18:46:25] [18:46:25]POST finish read [18:46:25]Found Content-Length = 754 [18:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:25]execute_script... [18:46: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)2885735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:25]POST & json_proto [18:46:25]process_json_proto [18:46:25]json parsed OK: [18:46:25]protocol is kg_v1.0 [18:46:25]action value=close_receipt [18:46:25]process_action close_receipt [18:46:25]cmd_close_receipt [18:46:25]MH_GetDate [18:46:25]Write to MH i2c: F0 00 00 DA 18 E1 [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: F0 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: F0 09 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: F0 09 00 DA 18 00 82 A1 16 67 6B 98 1E 66 11 [18:46:25]GetLastDocTimeStamp 1729536330 [18:46:25]current date 1729536386 [18:46:25]FM_GetShiftState [18:46:25]SAM_PROTO_GetShiftState [18:46:25]wFMCommunicate request_size=4 [18:46:25]MH_SAM_APDU [18:46:25]CAPDU: 80 13 01 00 [18:46:25]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9C [18:46:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:46:25]wFMCommunicate OK [18:46:25]SAM_PROTO_GetShiftState done [18:46:25]FM_GetShiftState done [18:46:25]opened in 1729469703 [18:46:25]opened+sec_in_day 1729556103 [18:46:25]quantity*price = 0 [18:46:25]sum+1 = 1 [18:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 360 21.10.2024 18:46 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69970 ФПД: 252922200118967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69970&fm=252922200118967&tin=02508201610067®Number=0000000000156251&sum=0 [18:46:26]StoreToDocumentArchive [18:46:26]shift 194 fd 69970 [18:46:26]save to /storage/0194/doc_00069970 [18:46:26]save last doc name /storage/0194/doc_00069970 to /storage/kkm_last_doc_name [18:46:26]save OK [18:46:26]Clear old archive folders... [18:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:26]tlvbuf is 01127C00 [18:46:26]SAM_PROTO_ClearQueue [18:46:26]wFMCommunicate request_size=4 [18:46:26]MH_SAM_APDU [18:46:26]CAPDU: 80 09 00 00 [18:46:26]Write to MH i2c: E2 08 00 E8 18 80 09 00 00 00 00 00 00 72 [18:46:26]Write i2c OK [18:46:26]MH_I2C_Read... [18:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:26]Read from MH i2c: E2 [18:46:26]MH_I2C_Read... [18:46:26]Read from MH i2c: E2 03 00 [18:46:26]MH_I2C_Read... [18:46:26]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [18:46:26]RAPDU: 90 00 [18:46:26]wFMCommunicate OK [18:46:26]SAM_PROTO_ClearQueue done [18:46:26]KKMCreateOFDPacket [18:46:26]OFDProtocolAddRootSTLVToBuf [18:46:26]FM_MakeSignedData [18:46:26]FM_MakeSignedData [18:46:26]SAM_PROTO_SignData [18:46:26]wFMCommunicate request_size=4 [18:46:26]MH_SAM_APDU [18:46:26]CAPDU: 80 0D 01 02 [18:46:26]Write to MH i2c: E2 08 00 E9 18 80 0D 01 02 00 00 00 00 7A [18:46:26]Write i2c OK [18:46:26]MH_I2C_Read... [18:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:26]Read from MH i2c: E2 [18:46:26]MH_I2C_Read... [18:46:26]Read from MH i2c: E2 03 00 [18:46:26]MH_I2C_Read... [18:46:26]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [18:46:26]RAPDU: 90 00 [18:46:26]wFMCommunicate OK [18:46:26]wFMCommunicate request_size=255 [18:46:26]MH_SAM_APDU [18:46:26]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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 82 A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 11 01 00 35 04 06 00 E6 [18:46:26]Write to MH i2c: E2 02 01 EA 18 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 82 A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 11 01 00 35 04 06 00 E6 00 00 2E [18:46:26]OFD Sender: No OFD packet to send [18:46:26]Write i2c OK [18:46:26]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [18:46:27]RAPDU: 90 00 [18:46:27]wFMCommunicate OK [18:46:27]wFMCommunicate request_size=10 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 0D 02 02 05 08 09 E4 D6 B7 [18:46:27]Write to MH i2c: E2 0D 00 EB 18 80 0D 02 02 05 00 08 09 E4 D6 B7 00 00 09 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [18:46:27]RAPDU: 90 00 [18:46:27]wFMCommunicate OK [18:46:27]wFMCommunicate request_size=4 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 0D 03 02 [18:46:27]Write to MH i2c: E2 08 00 EC 18 80 0D 03 02 00 00 00 00 7F [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 0B 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 0B 00 EC 18 00 E1 E9 C9 E2 33 CC 73 A1 90 00 08 [18:46:27]RAPDU: E1 E9 C9 E2 33 CC 73 A1 90 00 [18:46:27]wFMCommunicate OK [18:46:27]SAM_PROTO_SignData done [18:46:27]FM_MakeSignedData done [18:46:27]CreateOFDProtocolMessage [18:46:27]wFMCommunicate request_size=4 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 11 00 00 [18:46:27]Write to MH i2c: E2 08 00 ED 18 80 11 00 00 00 00 00 00 7F [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 17 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 17 00 ED 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [18:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:46:27]wFMCommunicate OK [18:46:27]CreateOFDProtocolMessage done [18:46:27]OFDSenderStorePacket 69970 [18:46:27]StoreOFDPacket docnum=69970 [18:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 B1 07 01 73 1B 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 82 A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 11 01 00 35 04 06 00 E6 08 09 E4 D6 B7 E1 E9 C9 E2 33 CC 73 A1 [18:46:27]CheckFolder [18:46:27]dirname=/storage/ofd_packets [18:46:27]CheckFolder done [18:46:27]ProducePacketName [18:46:27]name=ofd_packets/00069970 [18:46:27]NVStorageSaveData ofd_packets/00069970 [18:46:27]File name is /storage/ofd_packets/00069970 [18:46:27]Write 301 bytes [18:46:27]NVStorageSaveData done [18:46:27]OFDSenderStorePacket done [18:46:27]KKMCreateOFDPacket done [18:46:27]NVStorageSaveData kkm_last_timestamp [18:46:27]File name is /storage/kkm_last_timestamp [18:46:27]Write 4 bytes [18:46:27]NVStorageSaveData done [18:46:27]ExternCall_PrintAddStr [18:46:27]wPrintStart [18:46:27]Write to MH i2c: 01 00 00 EE 18 06 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 07 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [18:46:27]RasterBufferAndPrint [18:46:27]line Счет N : (1)2885735 [18:46:27]line ИНН: 02508201610067 [18:46:27]line Контрольно-Кассовый Чек [18:46:27]line ПРОДАЖА [18:46:27]line ТРК (МРК, ГНК) : 22 [18:46:27]line Товар: 2710124130 [18:46:27]line Аи-92-К-5 [18:46:27]line 5.000 * 0.00 [18:46:27]line = 0.00 [18:46:27]line НДС 12% НСП 1% [18:46:27]line > о реализуемом товаре [18:46:27]line ИТОГО: 0.00 [18:46:27]line НСП 1% : 0.00 [18:46:27]line НДС 12% : 0.00 [18:46:27]line Наличными: 0.00 [18:46:27]line Безнал.: 0.00 [18:46:27]line Место: АЗС № 85 "Партнер Нефть" [18:46:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:46:27]line СНО: Общий режим [18:46:27]line Чек 360 21.10.2024 18:46 [18:46:27]line Смена: 194 ФФД: 1.0 [18:46:27]line ЗНМ: 0300000167 [18:46:27]line РНМ: 0000000000156251 [18:46:27]line Версия ККМ: v1.0 [18:46:27]line Талоны: ТК ГПНА Online [18:46:27]line 30100970 [18:46:27]line ФМ: 0000000000963346 [18:46:27]line ФД: 69970 [18:46:27]line ФПД: 252922200118967 [18:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69970&fm=252922200118967&tin=02508201610067®Number=0000000000156251&sum=0 [18:46:27]OFD Sender: Processing packet 69970 [packets to send 18, broken 17] [18:46:27]ProducePacketName [18:46:27]name=ofd_packets/00069970 [18:46:27]OFD Sender: To server: pG, [18:46:27]CommunicateWithHost lk.salyk.kg:30040 [18:46:27]ConnectInit lk.salyk.kg [18:46:27]written 0, free lines is 4095 [18:46:27]Connected sock=10 [18:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 B1 07 01 73 1B 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 82 A1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 11 01 00 35 04 06 00 E6 08 09 E4 D6 B7 E1 E9 C9 E2 33 CC 73 A1 [18:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F9 43 47 00 7F 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 11 01 00 F4 03 04 00 25 4B 16 67 B6 04 01 00 00 B5 87 7A 96 B1 04 0E 91 [18:46:27]CommunicateWithHost err = 0 [18:46:27]CheckOFDResponse [18:46:27]1017 (14) - 77093643461234 [18:46:27]1041 (16) - 0000000000963346 [18:46:27]1040 (4) - 69970 [18:46:27]1012 (4) - 21.10.2024 12:37 [18:46:27]1206 (1) - 0 [18:46:27]OFD Sender: Remove packet 69970 [18:46:27]ProducePacketName [18:46:27]name=ofd_packets/00069970 [18:46:27]NVStorageDeleteData [18:46:28]Write to MH i2c: 01 00 00 18 19 31 [18:46:28]Write i2c OK [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: 01 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: 01 07 00 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 0F 0D 54 [18:46:28]RasterBufferAndPrint [18:46:28]line [18:46:28]line [18:46:28]line [18:46:28]line [18:46:28]line [18:46:28]written 0, free lines is 3348 [18:46:28]MH_Cut [18:46:28]Write to MH i2c: D1 01 00 1F 19 01 0A [18:46:28]Write i2c OK [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: D1 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: D1 01 00 [18:46:28]MH_I2C_Read... [18:46:28]Read from MH i2c: D1 01 00 1F 19 00 09 [18:46:28]Write to MH i2c: 01 00 00 20 19 39 [18:46:28]Write i2c OK [18:46:28]MH_I2C_Read... [18:46:28]OFD Sender: No OFD packet to send [18:46:28]*** Cut start [18:46:28]*** Partial cut [18:46:28]*** CUTSNS_PIN = 1 [18:46:28]*** CUTSNS_PIN = 0 [18:46:28]*** Brake cut motor [18:46:29]Read from MH i2c: 01 [18:46:29]MH_I2C_Read... [18:46:29]*** Stop cut motor [18:46:29]*** Cut end [18:46:29]Read from MH i2c: 01 07 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 FF 0F 4E [18:46:29]process_action close_receipt done [18:46:29]requested_data is exist [18:46:29]produce_requested_data [18:46:29]requested_item fm.sn is exist - process it [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 11 00 00 [18:46:29]Write to MH i2c: E2 08 00 21 19 80 11 00 00 00 00 00 00 B4 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 17 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 17 00 21 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [18:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:46:29]wFMCommunicate OK [18:46:29]requested_item fd.num is exist - process it [18:46:29]SAM_PROTO_GetFieldsCounters [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 13 00 00 [18:46:29]Write to MH i2c: E2 08 00 22 19 80 13 00 00 00 00 00 00 B7 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 62 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 62 00 22 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:46:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:29]wFMCommunicate OK [18:46:29]SAM_PROTO_GetFieldsCounters done [18:46:29]requested_item shift.num is exist - process it [18:46:29]requested_item shift.opened is exist - process it [18:46:29]req_shift_opened [18:46:29]FM_GetShiftState [18:46:29]SAM_PROTO_GetShiftState [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 13 01 00 [18:46:29]Write to MH i2c: E2 08 00 23 19 80 13 01 00 00 00 00 00 B9 [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 23 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E5 [18:46:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:46:29]wFMCommunicate OK [18:46:29]SAM_PROTO_GetShiftState done [18:46:29]FM_GetShiftState done [18:46:29]req_shift_opened done [18:46:29]requested_item shift.open_date is exist - process it [18:46:29]req_shift_open_date [18:46:29]req_shift_open_date done [18:46:29]produce_requested_data done [18:46:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69970,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:46:29]process_action_free close_receipt [18:46:29]json_value_free [18:46:29]json_value_free done [18:46:29]process_json_proto returns [18:46:29]Send response to host [18:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69970,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:46:29]free response buf [18:46:29]execute_script done [18:46:29]execute_script returns [18:46:29]free content buf [18:46:29]Sock 9.Close socket [18:46:29]Sock 9.Thread stoped [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:57]accept exits with 7 [18:49:57]New connection [18:49:57]New thread 3067170148 created [18:49:57]Thread 3067026788 joined [18:49:57]Waiting for new connection... [18:49:57] Sock 7.Parse request [18:49:57]Sock 7.Check first char [18:49:57]Sock 7.First char is OK [18:49:57]request: POST /json_proto HTTP/1.0 [18:49:57]Method: POST [18:49:57]URL: /json_proto [18:49:57]Method is POST - this is cgi request [18:49:57]url: /json_proto [18:49:57]query_string will be loaded in cgi processing [18:49:57]execute_cgi json_proto POST (null) [18:49:57]execute_cgi path=json_proto method=POST [18:49:57]POST find Content-Length [18:49:57]Host: 172.17.50.3:8080 [18:49:57]Content-Length: 689 [18:49:57]Content-Type: application/json [18:49:57] [18:49:57]POST finish read [18:49:57]Found Content-Length = 689 [18:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:57]execute_script... [18:49: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)2885736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:57]POST & json_proto [18:49:57]process_json_proto [18:49:57]json parsed OK: [18:49:57]protocol is kg_v1.0 [18:49:57]action value=close_receipt [18:49:57]process_action close_receipt [18:49:57]cmd_close_receipt [18:49:57]MH_GetDate [18:49:57]Write to MH i2c: F0 00 00 24 19 2C [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: F0 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: F0 09 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: F0 09 00 24 19 00 56 A2 16 67 6B 98 1E 66 31 [18:49:57]GetLastDocTimeStamp 1729536386 [18:49:57]current date 1729536598 [18:49:57]FM_GetShiftState [18:49:57]SAM_PROTO_GetShiftState [18:49:57]wFMCommunicate request_size=4 [18:49:57]MH_SAM_APDU [18:49:57]CAPDU: 80 13 01 00 [18:49:57]Write to MH i2c: E2 08 00 25 19 80 13 01 00 00 00 00 00 BB [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:57]Read from MH i2c: E2 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: E2 0E 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: E2 0E 00 25 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [18:49:57]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:49:57]wFMCommunicate OK [18:49:57]SAM_PROTO_GetShiftState done [18:49:57]FM_GetShiftState done [18:49:57]opened in 1729469703 [18:49:57]opened+sec_in_day 1729556103 [18:49:57]quantity*price = 300076 [18:49:57]sum+1 = 300077 [18:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 361 21.10.2024 18:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69971 ФПД: 169508097301448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184958&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69971&fm=169508097301448&tin=02508201610067®Number=0000000000156251&sum=300000 [18:49:58]StoreToDocumentArchive [18:49:58]shift 194 fd 69971 [18:49:58]save to /storage/0194/doc_00069971 [18:49:58]save last doc name /storage/0194/doc_00069971 to /storage/kkm_last_doc_name [18:49:58]save OK [18:49:58]Clear old archive folders... [18:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:49:58]tlvbuf is 0118A1E0 [18:49:58]SAM_PROTO_ClearQueue [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 09 00 00 [18:49:58]Write to MH i2c: E2 08 00 32 19 80 09 00 00 00 00 00 00 BD [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [18:49:58]RAPDU: 90 00 [18:49:58]wFMCommunicate OK [18:49:58]SAM_PROTO_ClearQueue done [18:49:58]KKMCreateOFDPacket [18:49:58]OFDProtocolAddRootSTLVToBuf [18:49:58]FM_MakeSignedData [18:49:58]FM_MakeSignedData [18:49:58]SAM_PROTO_SignData [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 0D 01 02 [18:49:58]Write to MH i2c: E2 08 00 33 19 80 0D 01 02 00 00 00 00 C5 [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [18:49:58]RAPDU: 90 00 [18:49:58]wFMCommunicate OK [18:49:58]wFMCommunicate request_size=255 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 56 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 11 01 [18:49:58]Write to MH i2c: E2 02 01 34 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 56 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 11 01 00 00 FF [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [18:49:58]RAPDU: 90 00 [18:49:58]wFMCommunicate OK [18:49:58]wFMCommunicate request_size=16 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A 2A AD ED 1B C8 [18:49:58]Write to MH i2c: E2 13 00 35 19 80 0D 02 02 0B 00 00 35 04 06 00 9A 2A AD ED 1B C8 00 00 5E [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [18:49:58]RAPDU: 90 00 [18:49:58]wFMCommunicate OK [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 0D 03 02 [18:49:58]Write to MH i2c: E2 08 00 36 19 80 0D 03 02 00 00 00 00 CA [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:58]OFD Sender: No OFD packet to send [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0B 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 0B 00 36 19 00 41 41 AF 96 16 4A B1 C4 90 00 67 [18:49:58]RAPDU: 41 41 AF 96 16 4A B1 C4 90 00 [18:49:58]wFMCommunicate OK [18:49:58]SAM_PROTO_SignData done [18:49:58]FM_MakeSignedData done [18:49:58]CreateOFDProtocolMessage [18:49:58]wFMCommunicate request_size=4 [18:49:58]MH_SAM_APDU [18:49:58]CAPDU: 80 11 00 00 [18:49:58]Write to MH i2c: E2 08 00 37 19 80 11 00 00 00 00 00 00 CA [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:58]Read from MH i2c: E2 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 17 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: E2 17 00 37 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [18:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:49:58]wFMCommunicate OK [18:49:58]CreateOFDProtocolMessage done [18:49:58]OFDSenderStorePacket 69971 [18:49:58]StoreOFDPacket docnum=69971 [18:49:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F7 34 0D 01 72 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 56 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 11 01 00 35 04 06 00 9A 2A AD ED 1B C8 41 41 AF 96 16 4A B1 C4 [18:49:58]CheckFolder [18:49:58]dirname=/storage/ofd_packets [18:49:58]CheckFolder done [18:49:58]ProducePacketName [18:49:58]name=ofd_packets/00069971 [18:49:58]NVStorageSaveData ofd_packets/00069971 [18:49:58]File name is /storage/ofd_packets/00069971 [18:49:58]Write 307 bytes [18:49:58]NVStorageSaveData done [18:49:58]OFDSenderStorePacket done [18:49:58]KKMCreateOFDPacket done [18:49:58]NVStorageSaveData kkm_last_timestamp [18:49:58]File name is /storage/kkm_last_timestamp [18:49:58]Write 4 bytes [18:49:58]NVStorageSaveData done [18:49:58]ExternCall_PrintAddStr [18:49:58]wPrintStart [18:49:58]Write to MH i2c: 01 00 00 38 19 51 [18:49:58]Write i2c OK [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: 01 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: 01 07 00 [18:49:58]MH_I2C_Read... [18:49:58]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [18:49:58]RasterBufferAndPrint [18:49:58]line Счет N : (1)2885736 [18:49:58]line ИНН: 02508201610067 [18:49:58]line Контрольно-Кассовый Чек [18:49:58]line ПРОДАЖА [18:49:58]line ТРК (МРК, ГНК) : 31 [18:49:58]line Товар: 2710194240 [18:49:58]line D-ENERGY Дт-К-2 [18:49:58]line 38.870 * 77.20 [18:49:58]line = 3000.76 [18:49:58]line НДС 12% НСП 1% [18:49:58]line > о реализуемом товаре [18:49:58]line ОКРУГЛЕНИЕ: -0.76 [18:49:58]line ИТОГО: 3000.00 [18:49:58]line Внесено: 3000.00 [18:49:58]line СДАЧА: 0.00 [18:49:58]line НСП 1% : 26.55 [18:49:58]line НДС 12% : 318.66 [18:49:58]line Наличными: 3000.00 [18:49:58]line Безнал.: 0.00 [18:49:58]line Место: АЗС № 85 "Партнер Нефть" [18:49:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:49:58]line СНО: Общий режим [18:49:58]line Чек 361 21.10.2024 18:49 [18:49:58]line Смена: 194 ФФД: 1.0 [18:49:58]line ЗНМ: 0300000167 [18:49:58]line РНМ: 0000000000156251 [18:49:58]line Версия ККМ: v1.0 [18:49:58]line ФМ: 0000000000963346 [18:49:58]line ФД: 69971 [18:49:59]line ФПД: 169508097301448 [18:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184958&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69971&fm=169508097301448&tin=02508201610067®Number=0000000000156251&sum=300000 [18:49:59]OFD Sender: Processing packet 69971 [packets to send 18, broken 17] [18:49:59]ProducePacketName [18:49:59]name=ofd_packets/00069971 [18:49:59]OFD Sender: To server: pG, [18:49:59]CommunicateWithHost lk.salyk.kg:30040 [18:49:59]ConnectInit lk.salyk.kg [18:49:59]written 0, free lines is 4095 [18:49:59]Connected sock=9 [18:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F7 34 0D 01 72 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 56 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 11 01 00 35 04 06 00 9A 2A AD ED 1B C8 41 41 AF 96 16 4A B1 C4 [18:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 FE 47 00 24 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 39 36 33 33 34 36 10 04 04 00 53 11 01 00 F4 03 04 00 F9 4B 16 67 B6 04 01 00 00 56 32 9C 49 10 EB D8 7B [18:49:59]CommunicateWithHost err = 0 [18:49:59]CheckOFDResponse [18:49:59]1017 (14) - 77093643461234 [18:49:59]1041 (16) - 0000000000963346 [18:49:59]1040 (4) - 69971 [18:49:59]1012 (4) - 21.10.2024 12:41 [18:49:59]1206 (1) - 0 [18:49:59]OFD Sender: Remove packet 69971 [18:49:59]ProducePacketName [18:49:59]name=ofd_packets/00069971 [18:49:59]NVStorageDeleteData [18:49:59]Write to MH i2c: 01 00 00 63 19 7C [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 01 0D 91 [18:49:59]RasterBufferAndPrint [18:49:59]line [18:49:59]line [18:49:59]line [18:49:59]line [18:49:59]line [18:49:59]written 0, free lines is 3338 [18:49:59]MH_Cut [18:49:59]Write to MH i2c: D1 01 00 6A 19 01 55 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: D1 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: D1 01 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: D1 01 00 6A 19 00 54 [18:49:59]Write to MH i2c: 01 00 00 6B 19 84 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]OFD Sender: No OFD packet to send [18:50:00]*** Cut start [18:50:00]*** Partial cut [18:50:00]*** CUTSNS_PIN = 1 [18:50:00]*** CUTSNS_PIN = 0 [18:50:00]*** Brake cut motor [18:50:00]Read from MH i2c: 01 [18:50:00]MH_I2C_Read... [18:50:00]*** Stop cut motor [18:50:00]*** Cut end [18:50:00]Read from MH i2c: 01 07 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: 01 07 00 6B 19 00 00 00 00 00 FF 0F 99 [18:50:00]process_action close_receipt done [18:50:00]requested_data is exist [18:50:00]produce_requested_data [18:50:00]requested_item fm.sn is exist - process it [18:50:00]wFMCommunicate request_size=4 [18:50:00]MH_SAM_APDU [18:50:00]CAPDU: 80 11 00 00 [18:50:00]Write to MH i2c: E2 08 00 6C 19 80 11 00 00 00 00 00 00 FF [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:00]Read from MH i2c: E2 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: E2 17 00 [18:50:00]MH_I2C_Read... [18:50:00]Read from MH i2c: E2 17 00 6C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [18:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:50:00]wFMCommunicate OK [18:50:00]requested_item fd.num is exist - process it [18:50:00]SAM_PROTO_GetFieldsCounters [18:50:00]wFMCommunicate request_size=4 [18:50:00]MH_SAM_APDU [18:50:00]CAPDU: 80 13 00 00 [18:50:00]Write to MH i2c: E2 08 00 6D 19 80 13 00 00 00 00 00 00 02 [18:50:00]Write i2c OK [18:50:00]MH_I2C_Read... [18:50:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 62 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 62 00 6D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_GetFieldsCounters done [18:50:01]requested_item shift.num is exist - process it [18:50:01]requested_item shift.opened is exist - process it [18:50:01]req_shift_opened [18:50:01]FM_GetShiftState [18:50:01]SAM_PROTO_GetShiftState [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 13 01 00 [18:50:01]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0E 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 30 [18:50:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_GetShiftState done [18:50:01]FM_GetShiftState done [18:50:01]req_shift_opened done [18:50:01]requested_item shift.open_date is exist - process it [18:50:01]req_shift_open_date [18:50:01]req_shift_open_date done [18:50:01]produce_requested_data done [18:50:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69971,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:50:01]process_action_free close_receipt [18:50:01]json_value_free [18:50:01]json_value_free done [18:50:01]process_json_proto returns [18:50:01]Send response to host [18:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69971,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:50:01]free response buf [18:50:01]execute_script done [18:50:01]execute_script returns [18:50:01]free content buf [18:50:01]Sock 7.Close socket [18:50:01]Sock 7.Thread stoped [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:01]accept exits with 10 [18:52:01]New connection [18:52:01]New thread 3067026788 created [18:52:01]Thread 3067170148 joined [18:52:01]Waiting for new connection... [18:52:01] Sock 10.Parse request [18:52:01]Sock 10.Check first char [18:52:01]Sock 10.First char is OK [18:52:01]request: POST /json_proto HTTP/1.0 [18:52:01]Method: POST [18:52:01]URL: /json_proto [18:52:01]Method is POST - this is cgi request [18:52:01]url: /json_proto [18:52:01]query_string will be loaded in cgi processing [18:52:01]execute_cgi json_proto POST (null) [18:52:01]execute_cgi path=json_proto method=POST [18:52:01]POST find Content-Length [18:52:01]Host: 172.17.50.3:8080 [18:52:01]Content-Length: 771 [18:52:01]Content-Type: application/json [18:52:01] [18:52:01]POST finish read [18:52:01]Found Content-Length = 771 [18:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.670, "sum" : 998.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 998.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:01]execute_script... [18:52: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)2885737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.670, "sum" : 998.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 998.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:01]POST & json_proto [18:52:01]process_json_proto [18:52:01]json parsed OK: [18:52:01]protocol is kg_v1.0 [18:52:01]action value=close_receipt [18:52:01]process_action close_receipt [18:52:01]cmd_close_receipt [18:52:01]MH_GetDate [18:52:01]Write to MH i2c: F0 00 00 6F 19 77 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 09 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: F0 09 00 6F 19 00 D3 A2 16 67 6B 98 1E 66 F9 [18:52:01]GetLastDocTimeStamp 1729536598 [18:52:01]current date 1729536723 [18:52:01]FM_GetShiftState [18:52:01]SAM_PROTO_GetShiftState [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 01 00 [18:52:01]Write to MH i2c: E2 08 00 70 19 80 13 01 00 00 00 00 00 06 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 70 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [18:52:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetShiftState done [18:52:01]FM_GetShiftState done [18:52:01]opened in 1729469703 [18:52:01]opened+sec_in_day 1729556103 [18:52:01]quantity*price = 99856 [18:52:01]sum+1 = 99857 [18:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 998.56 НСП 1% : 8.84 НДС 12% : 106.04 Наличными: 0.00 Безнал.: 998.56 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 362 21.10.2024 18:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69972 ФПД: 247144945642013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185203&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69972&fm=247144945642013&tin=02508201610067®Number=0000000000156251&sum=99856 [18:52:02]StoreToDocumentArchive [18:52:02]shift 194 fd 69972 [18:52:02]save to /storage/0194/doc_00069972 [18:52:02]save last doc name /storage/0194/doc_00069972 to /storage/kkm_last_doc_name [18:52:02]save OK [18:52:02]Clear old archive folders... [18:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:52:02]tlvbuf is 01189CA0 [18:52:02]SAM_PROTO_ClearQueue [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 09 00 00 [18:52:02]Write to MH i2c: E2 08 00 7D 19 80 09 00 00 00 00 00 00 08 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [18:52:02]RAPDU: 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_ClearQueue done [18:52:02]KKMCreateOFDPacket [18:52:02]OFDProtocolAddRootSTLVToBuf [18:52:02]FM_MakeSignedData [18:52:02]FM_MakeSignedData [18:52:02]SAM_PROTO_SignData [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 0D 01 02 [18:52:02]Write to MH i2c: E2 08 00 7E 19 80 0D 01 02 00 00 00 00 10 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=255 [18:52:03]MH_SAM_APDU [18:52:03]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 33 FF 03 08 00 03 46 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 D3 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 11 01 00 35 04 06 00 E0 C6 [18:52:03]Write to MH i2c: E2 02 01 7F 19 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 33 FF 03 08 00 03 46 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 D3 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 11 01 00 35 04 06 00 E0 C6 00 00 A9 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=9 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 02 02 04 EA B1 6A 1D [18:52:03]Write to MH i2c: E2 0C 00 80 19 80 0D 02 02 04 00 EA B1 6A 1D 00 00 3D [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [18:52:03]RAPDU: 90 00 [18:52:03]wFMCommunicate OK [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 0D 03 02 [18:52:03]Write to MH i2c: E2 08 00 81 19 80 0D 03 02 00 00 00 00 15 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0B 00 81 19 00 9C 30 C9 39 BA 06 29 88 90 00 55 [18:52:03]RAPDU: 9C 30 C9 39 BA 06 29 88 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_SignData done [18:52:03]FM_MakeSignedData done [18:52:03]CreateOFDProtocolMessage [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 11 00 00 [18:52:03]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [18:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:03]wFMCommunicate OK [18:52:03]CreateOFDProtocolMessage done [18:52:03]OFDSenderStorePacket 69972 [18:52:03]StoreOFDPacket docnum=69972 [18:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 DA 89 06 01 92 D3 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 33 FF 03 08 00 03 46 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 D3 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 11 01 00 35 04 06 00 E0 C6 EA B1 6A 1D 9C 30 C9 39 BA 06 29 88 [18:52:03]CheckFolder [18:52:03]dirname=/storage/ofd_packets [18:52:03]CheckFolder done [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00069972 [18:52:03]NVStorageSaveData ofd_packets/00069972 [18:52:03]File name is /storage/ofd_packets/00069972 [18:52:03]Write 300 bytes [18:52:03]NVStorageSaveData done [18:52:03]OFDSenderStorePacket done [18:52:03]KKMCreateOFDPacket done [18:52:03]NVStorageSaveData kkm_last_timestamp [18:52:03]File name is /storage/kkm_last_timestamp [18:52:03]Write 4 bytes [18:52:03]NVStorageSaveData done [18:52:03]ExternCall_PrintAddStr [18:52:03]wPrintStart [18:52:03]Write to MH i2c: 01 00 00 83 19 9C [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [18:52:03]RasterBufferAndPrint [18:52:03]line Счет N : (1)2885737 [18:52:03]line ИНН: 02508201610067 [18:52:03]line Контрольно-Кассовый Чек [18:52:03]line ПРОДАЖА [18:52:03]line ТРК (МРК, ГНК) : 71 [18:52:03]line Товар: 2711129700 [18:52:03]line ГАЗ-К-3 [18:52:03]line 25.670 * 38.90 [18:52:03]line = 998.56 [18:52:03]line НДС 12% НСП 1% [18:52:03]line > о реализуемом товаре [18:52:03]line ИТОГО: 998.56 [18:52:03]line НСП 1% : 8.84 [18:52:03]line НДС 12% : 106.04 [18:52:03]line Наличными: 0.00 [18:52:03]line Безнал.: 998.56 [18:52:03]line Место: АЗС № 85 "Партнер Нефть" [18:52:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:52:03]line СНО: Общий режим [18:52:03]line Чек 362 21.10.2024 18:52 [18:52:03]line Смена: 194 ФФД: 1.0 [18:52:03]line ЗНМ: 0300000167 [18:52:03]line РНМ: 0000000000156251 [18:52:03]line Версия ККМ: v1.0 [18:52:03]line Платежная система: Mbank [18:52:03]line ФМ: 0000000000963346 [18:52:03]line ФД: 69972 [18:52:03]line ФПД: 247144945642013 [18:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185203&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69972&fm=247144945642013&tin=02508201610067®Number=0000000000156251&sum=99856 [18:52:03]OFD Sender: Processing packet 69972 [packets to send 18, broken 17] [18:52:03]ProducePacketName [18:52:03]name=ofd_packets/00069972 [18:52:03]OFD Sender: To server: pG, [18:52:03]CommunicateWithHost lk.salyk.kg:30040 [18:52:03]ConnectInit lk.salyk.kg [18:52:03]written 0, free lines is 4095 [18:52:03]Connected sock=11 [18:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 DA 89 06 01 92 D3 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 33 FF 03 08 00 03 46 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 10 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 D3 A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 11 01 00 35 04 06 00 E0 C6 EA B1 6A 1D 9C 30 C9 39 BA 06 29 88 [18:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1B F4 47 00 9D 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 11 01 00 F4 03 04 00 76 4C 16 67 B6 04 01 00 00 E9 89 4C 40 DE FC CC 16 [18:52:04]CommunicateWithHost err = 0 [18:52:04]CheckOFDResponse [18:52:04]1017 (14) - 77093643461234 [18:52:04]1041 (16) - 0000000000963346 [18:52:04]1040 (4) - 69972 [18:52:04]1012 (4) - 21.10.2024 12:43 [18:52:04]1206 (1) - 0 [18:52:04]OFD Sender: Remove packet 69972 [18:52:04]ProducePacketName [18:52:04]name=ofd_packets/00069972 [18:52:04]NVStorageDeleteData [18:52:04]Write to MH i2c: 01 00 00 AC 19 C5 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: 01 07 00 AC 19 00 00 00 00 00 1C 0D F5 [18:52:04]RasterBufferAndPrint [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]line [18:52:04]written 0, free lines is 3362 [18:52:04]MH_Cut [18:52:04]Write to MH i2c: D1 01 00 B3 19 01 9E [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 01 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: D1 01 00 B3 19 00 9D [18:52:04]Write to MH i2c: 01 00 00 B4 19 CD [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]OFD Sender: No OFD packet to send [18:52:04]*** Cut start [18:52:04]*** Partial cut [18:52:04]*** CUTSNS_PIN = 1 [18:52:04]*** CUTSNS_PIN = 0 [18:52:05]*** Brake cut motor [18:52:05]Read from MH i2c: 01 [18:52:05]MH_I2C_Read... [18:52:05]*** Stop cut motor [18:52:05]*** Cut end [18:52:05]Read from MH i2c: 01 07 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 FF 0F E2 [18:52:05]process_action close_receipt done [18:52:05]requested_data is exist [18:52:05]produce_requested_data [18:52:05]requested_item fm.sn is exist - process it [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 11 00 00 [18:52:05]Write to MH i2c: E2 08 00 B5 19 80 11 00 00 00 00 00 00 48 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 B5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [18:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:05]wFMCommunicate OK [18:52:05]requested_item fd.num is exist - process it [18:52:05]SAM_PROTO_GetFieldsCounters [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 13 00 00 [18:52:05]Write to MH i2c: E2 08 00 B6 19 80 13 00 00 00 00 00 00 4B [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 62 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 62 00 B6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_GetFieldsCounters done [18:52:05]requested_item shift.num is exist - process it [18:52:05]requested_item shift.opened is exist - process it [18:52:05]req_shift_opened [18:52:05]FM_GetShiftState [18:52:05]SAM_PROTO_GetShiftState [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 13 01 00 [18:52:05]Write to MH i2c: E2 08 00 B7 19 80 13 01 00 00 00 00 00 4D [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0E 00 B7 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 79 [18:52:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_GetShiftState done [18:52:05]FM_GetShiftState done [18:52:05]req_shift_opened done [18:52:05]requested_item shift.open_date is exist - process it [18:52:05]req_shift_open_date [18:52:05]req_shift_open_date done [18:52:05]produce_requested_data done [18:52:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69972,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:52:05]process_action_free close_receipt [18:52:05]json_value_free [18:52:05]json_value_free done [18:52:05]process_json_proto returns [18:52:05]Send response to host [18:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69972,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:52:05]free response buf [18:52:05]execute_script done [18:52:05]execute_script returns [18:52:05]free content buf [18:52:05]Sock 10.Close socket [18:52:05]Sock 10.Thread stoped [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:26]accept exits with 7 [18:52:26]New connection [18:52:26]New thread 3067170148 created [18:52:26]Thread 3067026788 joined [18:52:26]Waiting for new connection... [18:52:26] Sock 7.Parse request [18:52:26]Sock 7.Check first char [18:52:26]Sock 7.First char is OK [18:52:26]request: POST /json_proto HTTP/1.0 [18:52:26]Method: POST [18:52:26]URL: /json_proto [18:52:26]Method is POST - this is cgi request [18:52:26]url: /json_proto [18:52:26]query_string will be loaded in cgi processing [18:52:26]execute_cgi json_proto POST (null) [18:52:26]execute_cgi path=json_proto method=POST [18:52:26]POST find Content-Length [18:52:26]Host: 172.17.50.3:8080 [18:52:26]Content-Length: 767 [18:52:26]Content-Type: application/json [18:52:26] [18:52:26]POST finish read [18:52:26]Found Content-Length = 767 [18:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:26]execute_script... [18:52:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:26]POST & json_proto [18:52:26]process_json_proto [18:52:26]json parsed OK: [18:52:26]protocol is kg_v1.0 [18:52:26]action value=close_receipt [18:52:26]process_action close_receipt [18:52:26]cmd_close_receipt [18:52:26]MH_GetDate [18:52:26]Write to MH i2c: F0 00 00 B8 19 C0 [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 09 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: F0 09 00 B8 19 00 EB A2 16 67 6B 98 1E 66 5A [18:52:26]GetLastDocTimeStamp 1729536723 [18:52:26]current date 1729536747 [18:52:26]FM_GetShiftState [18:52:26]SAM_PROTO_GetShiftState [18:52:26]wFMCommunicate request_size=4 [18:52:26]MH_SAM_APDU [18:52:26]CAPDU: 80 13 01 00 [18:52:26]Write to MH i2c: E2 08 00 B9 19 80 13 01 00 00 00 00 00 4F [18:52:26]Write i2c OK [18:52:26]MH_I2C_Read... [18:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:26]Read from MH i2c: E2 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0E 00 [18:52:26]MH_I2C_Read... [18:52:26]Read from MH i2c: E2 0E 00 B9 19 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7B [18:52:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:52:26]wFMCommunicate OK [18:52:26]SAM_PROTO_GetShiftState done [18:52:26]FM_GetShiftState done [18:52:26]opened in 1729469703 [18:52:26]opened+sec_in_day 1729556103 [18:52:26]quantity*price = 50041 [18:52:26]sum+1 = 50042 [18:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 363 21.10.2024 18:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69973 ФПД: 42177669302524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69973&fm=42177669302524&tin=02508201610067®Number=0000000000156251&sum=50041 [18:52:27]StoreToDocumentArchive [18:52:27]shift 194 fd 69973 [18:52:27]save to /storage/0194/doc_00069973 [18:52:27]save last doc name /storage/0194/doc_00069973 to /storage/kkm_last_doc_name [18:52:27]save OK [18:52:27]Clear old archive folders... [18:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:27]tlvbuf is 01161490 [18:52:27]SAM_PROTO_ClearQueue [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 09 00 00 [18:52:27]Write to MH i2c: E2 08 00 C6 19 80 09 00 00 00 00 00 00 51 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]SAM_PROTO_ClearQueue done [18:52:27]KKMCreateOFDPacket [18:52:27]OFDProtocolAddRootSTLVToBuf [18:52:27]FM_MakeSignedData [18:52:27]FM_MakeSignedData [18:52:27]SAM_PROTO_SignData [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 01 02 [18:52:27]Write to MH i2c: E2 08 00 C7 19 80 0D 01 02 00 00 00 00 59 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=255 [18:52:27]MH_SAM_APDU [18:52: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 EB A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 11 01 00 35 04 06 00 26 [18:52:27]Write to MH i2c: E2 02 01 C8 19 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 EB A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 11 01 00 35 04 06 00 26 00 00 F9 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=10 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 02 02 05 5C 40 FF 08 FC [18:52:27]Write to MH i2c: E2 0D 00 C9 19 80 0D 02 02 05 00 5C 40 FF 08 FC 00 00 05 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [18:52:27]RAPDU: 90 00 [18:52:27]wFMCommunicate OK [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 0D 03 02 [18:52:27]Write to MH i2c: E2 08 00 CA 19 80 0D 03 02 00 00 00 00 5E [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 0B 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 0B 00 CA 19 00 7E A9 AA E2 8A 30 D0 0E 90 00 AA [18:52:27]RAPDU: 7E A9 AA E2 8A 30 D0 0E 90 00 [18:52:27]wFMCommunicate OK [18:52:27]SAM_PROTO_SignData done [18:52:27]FM_MakeSignedData done [18:52:27]CreateOFDProtocolMessage [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 11 00 00 [18:52:27]Write to MH i2c: E2 08 00 CB 19 80 11 00 00 00 00 00 00 5E [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:28]Read from MH i2c: E2 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: E2 17 00 CB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [18:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:28]wFMCommunicate OK [18:52:28]CreateOFDProtocolMessage done [18:52:28]OFDSenderStorePacket 69973 [18:52:28]StoreOFDPacket docnum=69973 [18:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 92 50 07 01 8D 71 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 EB A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 11 01 00 35 04 06 00 26 5C 40 FF 08 FC 7E A9 AA E2 8A 30 D0 0E [18:52:28]CheckFolder [18:52:28]dirname=/storage/ofd_packets [18:52:28]CheckFolder done [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00069973 [18:52:28]NVStorageSaveData ofd_packets/00069973 [18:52:28]File name is /storage/ofd_packets/00069973 [18:52:28]Write 301 bytes [18:52:28]NVStorageSaveData done [18:52:28]OFDSenderStorePacket done [18:52:28]KKMCreateOFDPacket done [18:52:28]NVStorageSaveData kkm_last_timestamp [18:52:28]File name is /storage/kkm_last_timestamp [18:52:28]Write 4 bytes [18:52:28]NVStorageSaveData done [18:52:28]ExternCall_PrintAddStr [18:52:28]wPrintStart [18:52:28]Write to MH i2c: 01 00 00 CC 19 E5 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [18:52:28]RasterBufferAndPrint [18:52:28]line Счет N : (1)2885738 [18:52:28]line ИНН: 02508201610067 [18:52:28]line Контрольно-Кассовый Чек [18:52:28]line ПРОДАЖА [18:52:28]line ТРК (МРК, ГНК) : 12 [18:52:28]line Товар: 2710124130 [18:52:28]line Аи-92-К-5 [18:52:28]line 7.480 * 66.90 [18:52:28]line = 500.41 [18:52:28]line НДС 12% НСП 1% [18:52:28]line > о реализуемом товаре [18:52:28]line ИТОГО: 500.41 [18:52:28]line НСП 1% : 4.43 [18:52:28]line НДС 12% : 53.14 [18:52:28]line Наличными: 0.00 [18:52:28]line Безнал.: 500.41 [18:52:28]line Место: АЗС № 85 "Партнер Нефть" [18:52:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:52:28]line СНО: Общий режим [18:52:28]line Чек 363 21.10.2024 18:52 [18:52:28]line Смена: 194 ФФД: 1.0 [18:52:28]line ЗНМ: 0300000167 [18:52:28]line РНМ: 0000000000156251 [18:52:28]line Версия ККМ: v1.0 [18:52:28]line Платежная система: Mbank [18:52:28]line ФМ: 0000000000963346 [18:52:28]line ФД: 69973 [18:52:28]line ФПД: 42177669302524 [18:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69973&fm=42177669302524&tin=02508201610067®Number=0000000000156251&sum=50041 [18:52:28]OFD Sender: Processing packet 69973 [packets to send 18, broken 17] [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00069973 [18:52:28]OFD Sender: To server: pG, [18:52:28]CommunicateWithHost lk.salyk.kg:30040 [18:52:28]ConnectInit lk.salyk.kg [18:52:28]written 0, free lines is 4095 [18:52:28]Connected sock=10 [18:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 92 50 07 01 8D 71 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 EB A2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 11 01 00 35 04 06 00 26 5C 40 FF 08 FC 7E A9 AA E2 8A 30 D0 0E [18:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 3C 47 00 72 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 11 01 00 F4 03 04 00 8E 4C 16 67 B6 04 01 00 00 16 1E B9 23 F2 67 92 2F [18:52:28]CommunicateWithHost err = 0 [18:52:28]CheckOFDResponse [18:52:28]1017 (14) - 77093643461234 [18:52:28]1041 (16) - 0000000000963346 [18:52:28]1040 (4) - 69973 [18:52:28]1012 (4) - 21.10.2024 12:43 [18:52:28]1206 (1) - 0 [18:52:28]OFD Sender: Remove packet 69973 [18:52:28]ProducePacketName [18:52:28]name=ofd_packets/00069973 [18:52:28]NVStorageDeleteData [18:52:28]Write to MH i2c: 01 00 00 F5 19 0E [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: 01 07 00 F5 19 00 00 00 00 00 21 0D 43 [18:52:28]RasterBufferAndPrint [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]line [18:52:28]written 0, free lines is 3367 [18:52:28]MH_Cut [18:52:28]Write to MH i2c: D1 01 00 FC 19 01 E7 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: D1 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: D1 01 00 [18:52:28]MH_I2C_Read... [18:52:28]Read from MH i2c: D1 01 00 FC 19 00 E6 [18:52:28]Write to MH i2c: 01 00 00 FD 19 16 [18:52:28]Write i2c OK [18:52:28]MH_I2C_Read... [18:52:29]OFD Sender: No OFD packet to send [18:52:29]*** Cut start [18:52:29]*** Partial cut [18:52:29]*** CUTSNS_PIN = 1 [18:52:29]*** CUTSNS_PIN = 0 [18:52:29]*** Brake cut motor [18:52:30]Read from MH i2c: 01 [18:52:30]MH_I2C_Read... [18:52:30]*** Stop cut motor [18:52:30]*** Cut end [18:52:30]Read from MH i2c: 01 07 00 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: 01 07 00 FD 19 00 00 00 00 00 FF 0F 2B [18:52:30]process_action close_receipt done [18:52:30]requested_data is exist [18:52:30]produce_requested_data [18:52:30]requested_item fm.sn is exist - process it [18:52:30]wFMCommunicate request_size=4 [18:52:30]MH_SAM_APDU [18:52:30]CAPDU: 80 11 00 00 [18:52:30]Write to MH i2c: E2 08 00 FE 19 80 11 00 00 00 00 00 00 91 [18:52:30]Write i2c OK [18:52:30]MH_I2C_Read... [18:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:30]Read from MH i2c: E2 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 17 00 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 17 00 FE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [18:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:30]wFMCommunicate OK [18:52:30]requested_item fd.num is exist - process it [18:52:30]SAM_PROTO_GetFieldsCounters [18:52:30]wFMCommunicate request_size=4 [18:52:30]MH_SAM_APDU [18:52:30]CAPDU: 80 13 00 00 [18:52:30]Write to MH i2c: E2 08 00 FF 19 80 13 00 00 00 00 00 00 94 [18:52:30]Write i2c OK [18:52:30]MH_I2C_Read... [18:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:30]Read from MH i2c: E2 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 62 00 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 62 00 FF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [18:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:30]wFMCommunicate OK [18:52:30]SAM_PROTO_GetFieldsCounters done [18:52:30]requested_item shift.num is exist - process it [18:52:30]requested_item shift.opened is exist - process it [18:52:30]req_shift_opened [18:52:30]FM_GetShiftState [18:52:30]SAM_PROTO_GetShiftState [18:52:30]wFMCommunicate request_size=4 [18:52:30]MH_SAM_APDU [18:52:30]CAPDU: 80 13 01 00 [18:52:30]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [18:52:30]Write i2c OK [18:52:30]MH_I2C_Read... [18:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:30]Read from MH i2c: E2 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 0E 00 [18:52:30]MH_I2C_Read... [18:52:30]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C3 [18:52:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:52:30]wFMCommunicate OK [18:52:30]SAM_PROTO_GetShiftState done [18:52:30]FM_GetShiftState done [18:52:30]req_shift_opened done [18:52:30]requested_item shift.open_date is exist - process it [18:52:30]req_shift_open_date [18:52:30]req_shift_open_date done [18:52:30]produce_requested_data done [18:52:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69973,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:52:30]process_action_free close_receipt [18:52:30]json_value_free [18:52:30]json_value_free done [18:52:30]process_json_proto returns [18:52:30]Send response to host [18:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69973,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:52:30]free response buf [18:52:30]execute_script done [18:52:30]execute_script returns [18:52:30]free content buf [18:52:30]Sock 7.Close socket [18:52:30]Sock 7.Thread stoped [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:52]accept exits with 9 [18:54:52]New connection [18:54:52]New thread 3067026788 created [18:54:52]Thread 3067170148 joined [18:54:52]Waiting for new connection... [18:54:52] Sock 9.Parse request [18:54:52]Sock 9.Check first char [18:54:52]Sock 9.First char is OK [18:54:52]request: POST /json_proto HTTP/1.0 [18:54:52]Method: POST [18:54:52]URL: /json_proto [18:54:52]Method is POST - this is cgi request [18:54:52]url: /json_proto [18:54:52]query_string will be loaded in cgi processing [18:54:52]execute_cgi json_proto POST (null) [18:54:52]execute_cgi path=json_proto method=POST [18:54:52]POST find Content-Length [18:54:52]Host: 172.17.50.3:8080 [18:54:52]Content-Length: 774 [18:54:52]Content-Type: application/json [18:54:52] [18:54:52]POST finish read [18:54:52]Found Content-Length = 774 [18:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:52]execute_script... [18:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:52]POST & json_proto [18:54:52]process_json_proto [18:54:52]json parsed OK: [18:54:52]protocol is kg_v1.0 [18:54:52]action value=close_receipt [18:54:52]process_action close_receipt [18:54:52]cmd_close_receipt [18:54:52]MH_GetDate [18:54:52]Write to MH i2c: F0 00 00 01 1A 0A [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: F0 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: F0 09 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: F0 09 00 01 1A 00 7D A3 16 67 6B 98 1E 66 37 [18:54:52]GetLastDocTimeStamp 1729536747 [18:54:52]current date 1729536893 [18:54:52]FM_GetShiftState [18:54:52]SAM_PROTO_GetShiftState [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 13 01 00 [18:54:52]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0E 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [18:54:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:54:52]wFMCommunicate OK [18:54:52]SAM_PROTO_GetShiftState done [18:54:52]FM_GetShiftState done [18:54:52]opened in 1729469703 [18:54:52]opened+sec_in_day 1729556103 [18:54:52]quantity*price = 80056 [18:54:52]sum+1 = 80057 [18:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 364 21.10.2024 18:54 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69974 ФПД: 34238627061554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69974&fm=34238627061554&tin=02508201610067®Number=0000000000156251&sum=80056 [18:54:53]StoreToDocumentArchive [18:54:53]shift 194 fd 69974 [18:54:53]save to /storage/0194/doc_00069974 [18:54:53]save last doc name /storage/0194/doc_00069974 to /storage/kkm_last_doc_name [18:54:53]save OK [18:54:53]Clear old archive folders... [18:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:54:53]tlvbuf is 01152A20 [18:54:53]SAM_PROTO_ClearQueue [18:54:53]wFMCommunicate request_size=4 [18:54:53]MH_SAM_APDU [18:54:53]CAPDU: 80 09 00 00 [18:54:53]Write to MH i2c: E2 08 00 0F 1A 80 09 00 00 00 00 00 00 9B [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:53]Read from MH i2c: E2 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 03 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [18:54:53]RAPDU: 90 00 [18:54:53]wFMCommunicate OK [18:54:53]SAM_PROTO_ClearQueue done [18:54:53]KKMCreateOFDPacket [18:54:53]OFDProtocolAddRootSTLVToBuf [18:54:53]FM_MakeSignedData [18:54:53]FM_MakeSignedData [18:54:53]SAM_PROTO_SignData [18:54:53]wFMCommunicate request_size=4 [18:54:53]MH_SAM_APDU [18:54:53]CAPDU: 80 0D 01 02 [18:54:53]Write to MH i2c: E2 08 00 10 1A 80 0D 01 02 00 00 00 00 A3 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:53]Read from MH i2c: E2 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 03 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [18:54:53]RAPDU: 90 00 [18:54:53]wFMCommunicate OK [18:54:53]wFMCommunicate request_size=255 [18:54:53]MH_SAM_APDU [18:54:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 7E A3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 11 01 [18:54:53]Write to MH i2c: E2 02 01 11 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 7E A3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 11 01 00 00 27 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [18:54:54]RAPDU: 90 00 [18:54:54]wFMCommunicate OK [18:54:54]wFMCommunicate request_size=16 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1F 23 CD 34 1F 32 [18:54:54]Write to MH i2c: E2 13 00 12 1A 80 0D 02 02 0B 00 00 35 04 06 00 1F 23 CD 34 1F 32 00 00 8F [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [18:54:54]RAPDU: 90 00 [18:54:54]wFMCommunicate OK [18:54:54]wFMCommunicate request_size=4 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 0D 03 02 [18:54:54]Write to MH i2c: E2 08 00 13 1A 80 0D 03 02 00 00 00 00 A8 [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 0B 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 0B 00 13 1A 00 D5 2C C2 22 33 27 56 0D 90 00 4B [18:54:54]RAPDU: D5 2C C2 22 33 27 56 0D 90 00 [18:54:54]wFMCommunicate OK [18:54:54]SAM_PROTO_SignData done [18:54:54]FM_MakeSignedData done [18:54:54]CreateOFDProtocolMessage [18:54:54]wFMCommunicate request_size=4 [18:54:54]MH_SAM_APDU [18:54:54]CAPDU: 80 11 00 00 [18:54:54]Write to MH i2c: E2 08 00 14 1A 80 11 00 00 00 00 00 00 A8 [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]OFD Sender: No OFD packet to send [18:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:54]Read from MH i2c: E2 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 17 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: E2 17 00 14 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [18:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:54:54]wFMCommunicate OK [18:54:54]CreateOFDProtocolMessage done [18:54:54]OFDSenderStorePacket 69974 [18:54:54]StoreOFDPacket docnum=69974 [18:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5D 8F 0D 01 57 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 7E A3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 11 01 00 35 04 06 00 1F 23 CD 34 1F 32 D5 2C C2 22 33 27 56 0D [18:54:54]CheckFolder [18:54:54]dirname=/storage/ofd_packets [18:54:54]CheckFolder done [18:54:54]ProducePacketName [18:54:54]name=ofd_packets/00069974 [18:54:54]NVStorageSaveData ofd_packets/00069974 [18:54:54]File name is /storage/ofd_packets/00069974 [18:54:54]Write 307 bytes [18:54:54]NVStorageSaveData done [18:54:54]OFDSenderStorePacket done [18:54:54]KKMCreateOFDPacket done [18:54:54]NVStorageSaveData kkm_last_timestamp [18:54:54]File name is /storage/kkm_last_timestamp [18:54:54]Write 4 bytes [18:54:54]NVStorageSaveData done [18:54:54]ExternCall_PrintAddStr [18:54:54]wPrintStart [18:54:54]Write to MH i2c: 01 00 00 15 1A 2F [18:54:54]Write i2c OK [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: 01 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: 01 07 00 [18:54:54]MH_I2C_Read... [18:54:54]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [18:54:54]RasterBufferAndPrint [18:54:54]line Счет N : (1)2885739 [18:54:54]line ИНН: 02508201610067 [18:54:54]line Контрольно-Кассовый Чек [18:54:54]line ПРОДАЖА [18:54:54]line ТРК (МРК, ГНК) : 31 [18:54:54]line Товар: 2710194240 [18:54:54]line D-ENERGY Дт-К-2 [18:54:54]line 10.370 * 77.20 [18:54:54]line = 800.56 [18:54:54]line НДС 12% НСП 1% [18:54:54]line > о реализуемом товаре [18:54:54]line ИТОГО: 800.56 [18:54:54]line НСП 1% : 7.08 [18:54:54]line НДС 12% : 85.01 [18:54:54]line Наличными: 0.00 [18:54:54]line Безнал.: 800.56 [18:54:54]line Место: АЗС № 85 "Партнер Нефть" [18:54:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:54:54]line СНО: Общий режим [18:54:54]line Чек 364 21.10.2024 18:54 [18:54:54]line Смена: 194 ФФД: 1.0 [18:54:54]line ЗНМ: 0300000167 [18:54:54]line РНМ: 0000000000156251 [18:54:54]line Версия ККМ: v1.0 [18:54:54]line Платежная система: Mbank [18:54:54]line ФМ: 0000000000963346 [18:54:54]line ФД: 69974 [18:54:54]line ФПД: 34238627061554 [18:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69974&fm=34238627061554&tin=02508201610067®Number=0000000000156251&sum=80056 [18:54:54]OFD Sender: Processing packet 69974 [packets to send 18, broken 17] [18:54:54]ProducePacketName [18:54:54]name=ofd_packets/00069974 [18:54:54]OFD Sender: To server: pG, [18:54:54]CommunicateWithHost lk.salyk.kg:30040 [18:54:54]ConnectInit lk.salyk.kg [18:54:54]written 0, free lines is 4095 [18:54:54]Connected sock=10 [18:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5D 8F 0D 01 57 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 7E A3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 11 01 00 35 04 06 00 1F 23 CD 34 1F 32 D5 2C C2 22 33 27 56 0D [18:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 65 A8 47 00 4B 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 39 36 33 33 34 36 10 04 04 00 56 11 01 00 F4 03 04 00 21 4D 16 67 B6 04 01 00 00 0D D5 AC D8 B7 18 91 8E [18:54:55]CommunicateWithHost err = 0 [18:54:55]CheckOFDResponse [18:54:55]1017 (14) - 77093643461234 [18:54:55]1041 (16) - 0000000000963346 [18:54:55]1040 (4) - 69974 [18:54:55]1012 (4) - 21.10.2024 12:46 [18:54:55]1206 (1) - 0 [18:54:55]OFD Sender: Remove packet 69974 [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00069974 [18:54:55]NVStorageDeleteData [18:54:55]Write to MH i2c: 01 00 00 3E 1A 58 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 24 0D 90 [18:54:55]RasterBufferAndPrint [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]line [18:54:55]written 0, free lines is 3371 [18:54:55]MH_Cut [18:54:55]Write to MH i2c: D1 01 00 45 1A 01 31 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: D1 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: D1 01 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: D1 01 00 45 1A 00 30 [18:54:55]Write to MH i2c: 01 00 00 46 1A 60 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]OFD Sender: No OFD packet to send [18:54:55]*** Cut start [18:54:55]*** Partial cut [18:54:55]*** CUTSNS_PIN = 1 [18:54:55]*** CUTSNS_PIN = 0 [18:54:56]*** Brake cut motor [18:54:56]Read from MH i2c: 01 [18:54:56]MH_I2C_Read... [18:54:56]*** Stop cut motor [18:54:56]*** Cut end [18:54:56]Read from MH i2c: 01 07 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 FF 0F 75 [18:54:56]process_action close_receipt done [18:54:56]requested_data is exist [18:54:56]produce_requested_data [18:54:56]requested_item fm.sn is exist - process it [18:54:56]wFMCommunicate request_size=4 [18:54:56]MH_SAM_APDU [18:54:56]CAPDU: 80 11 00 00 [18:54:56]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:56]Read from MH i2c: E2 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 17 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [18:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:54:56]wFMCommunicate OK [18:54:56]requested_item fd.num is exist - process it [18:54:56]SAM_PROTO_GetFieldsCounters [18:54:56]wFMCommunicate request_size=4 [18:54:56]MH_SAM_APDU [18:54:56]CAPDU: 80 13 00 00 [18:54:56]Write to MH i2c: E2 08 00 48 1A 80 13 00 00 00 00 00 00 DE [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:56]Read from MH i2c: E2 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 62 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 62 00 48 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [18:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:56]wFMCommunicate OK [18:54:56]SAM_PROTO_GetFieldsCounters done [18:54:56]requested_item shift.num is exist - process it [18:54:56]requested_item shift.opened is exist - process it [18:54:56]req_shift_opened [18:54:56]FM_GetShiftState [18:54:56]SAM_PROTO_GetShiftState [18:54:56]wFMCommunicate request_size=4 [18:54:56]MH_SAM_APDU [18:54:56]CAPDU: 80 13 01 00 [18:54:56]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:56]Read from MH i2c: E2 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 0E 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0C [18:54:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [18:54:56]wFMCommunicate OK [18:54:56]SAM_PROTO_GetShiftState done [18:54:56]FM_GetShiftState done [18:54:56]req_shift_opened done [18:54:56]requested_item shift.open_date is exist - process it [18:54:56]req_shift_open_date [18:54:56]req_shift_open_date done [18:54:56]produce_requested_data done [18:54:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69974,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [18:54:56]process_action_free close_receipt [18:54:56]json_value_free [18:54:56]json_value_free done [18:54:56]process_json_proto returns [18:54:56]Send response to host [18:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69974,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [18:54:56]free response buf [18:54:56]execute_script done [18:54:56]execute_script returns [18:54:56]free content buf [18:54:56]Sock 9.Close socket [18:54:56]Sock 9.Thread stoped [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:23]accept exits with 7 [19:00:23]New connection [19:00:23]New thread 3067170148 created [19:00:23]Thread 3067026788 joined [19:00:23]Waiting for new connection... [19:00:23] Sock 7.Parse request [19:00:23]Sock 7.Check first char [19:00:23]Sock 7.First char is OK [19:00:23]request: POST /json_proto HTTP/1.0 [19:00:23]Method: POST [19:00:23]URL: /json_proto [19:00:23]Method is POST - this is cgi request [19:00:23]url: /json_proto [19:00:23]query_string will be loaded in cgi processing [19:00:23]execute_cgi json_proto POST (null) [19:00:23]execute_cgi path=json_proto method=POST [19:00:23]POST find Content-Length [19:00:23]Host: 172.17.50.3:8080 [19:00:23]Content-Length: 682 [19:00:23]Content-Type: application/json [19:00:23] [19:00:23]POST finish read [19:00:23]Found Content-Length = 682 [19:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [19:00:23]execute_script... [19:00:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [19:00:23]POST & json_proto [19:00:23]process_json_proto [19:00:23]json parsed OK: [19:00:23]protocol is kg_v1.0 [19:00:23]action value=close_receipt [19:00:23]process_action close_receipt [19:00:23]cmd_close_receipt [19:00:23]MH_GetDate [19:00:23]Write to MH i2c: F0 00 00 4A 1A 53 [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: F0 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: F0 09 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: F0 09 00 4A 1A 00 C8 A4 16 67 6B 98 1E 66 CC [19:00:23]GetLastDocTimeStamp 1729536894 [19:00:23]current date 1729537224 [19:00:23]FM_GetShiftState [19:00:23]SAM_PROTO_GetShiftState [19:00:23]wFMCommunicate request_size=4 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 13 01 00 [19:00:23]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:23]Read from MH i2c: E2 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 0E 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0E [19:00:23]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:00:23]wFMCommunicate OK [19:00:23]SAM_PROTO_GetShiftState done [19:00:23]FM_GetShiftState done [19:00:23]opened in 1729469703 [19:00:23]opened+sec_in_day 1729556103 [19:00:23]quantity*price = 70020 [19:00:23]sum+1 = 70021 [19:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 365 21.10.2024 19:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69975 ФПД: 18408540223643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69975&fm=18408540223643&tin=02508201610067®Number=0000000000156251&sum=70000 [19:00:24]StoreToDocumentArchive [19:00:24]shift 194 fd 69975 [19:00:24]save to /storage/0194/doc_00069975 [19:00:24]save last doc name /storage/0194/doc_00069975 to /storage/kkm_last_doc_name [19:00:24]save OK [19:00:24]Clear old archive folders... [19:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:00:24]tlvbuf is 0111F920 [19:00:24]SAM_PROTO_ClearQueue [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 09 00 00 [19:00:24]Write to MH i2c: E2 08 00 58 1A 80 09 00 00 00 00 00 00 E4 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_ClearQueue done [19:00:24]KKMCreateOFDPacket [19:00:24]OFDProtocolAddRootSTLVToBuf [19:00:24]FM_MakeSignedData [19:00:24]FM_MakeSignedData [19:00:24]SAM_PROTO_SignData [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 0D 01 02 [19:00:24]Write to MH i2c: E2 08 00 59 1A 80 0D 01 02 00 00 00 00 EC [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]wFMCommunicate request_size=255 [19:00:24]MH_SAM_APDU [19:00:24]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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 6D 01 00 00 F4 03 04 00 C8 A4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 11 01 00 35 04 06 00 10 BE [19:00:24]Write to MH i2c: E2 02 01 5A 1A 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 6D 01 00 00 F4 03 04 00 C8 A4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 11 01 00 35 04 06 00 10 BE 00 00 F6 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]wFMCommunicate request_size=9 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 0D 02 02 04 12 80 38 9B [19:00:24]Write to MH i2c: E2 0C 00 5B 1A 80 0D 02 02 04 00 12 80 38 9B 00 00 5C [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [19:00:24]RAPDU: 90 00 [19:00:24]wFMCommunicate OK [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 0D 03 02 [19:00:24]Write to MH i2c: E2 08 00 5C 1A 80 0D 03 02 00 00 00 00 F1 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0B 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0B 00 5C 1A 00 BE 2F AD F1 7E 91 29 5A 90 00 0F [19:00:24]RAPDU: BE 2F AD F1 7E 91 29 5A 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_SignData done [19:00:24]FM_MakeSignedData done [19:00:24]CreateOFDProtocolMessage [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 11 00 00 [19:00:24]Write to MH i2c: E2 08 00 5D 1A 80 11 00 00 00 00 00 00 F1 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 5D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [19:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:00:24]wFMCommunicate OK [19:00:24]CreateOFDProtocolMessage done [19:00:24]OFDSenderStorePacket 69975 [19:00:24]StoreOFDPacket docnum=69975 [19:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 BF FB 06 01 F8 12 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 6D 01 00 00 F4 03 04 00 C8 A4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 11 01 00 35 04 06 00 10 BE 12 80 38 9B BE 2F AD F1 7E 91 29 5A [19:00:24]CheckFolder [19:00:24]dirname=/storage/ofd_packets [19:00:24]CheckFolder done [19:00:24]ProducePacketName [19:00:24]name=ofd_packets/00069975 [19:00:24]NVStorageSaveData ofd_packets/00069975 [19:00:24]File name is /storage/ofd_packets/00069975 [19:00:24]Write 300 bytes [19:00:24]NVStorageSaveData done [19:00:24]OFDSenderStorePacket done [19:00:24]KKMCreateOFDPacket done [19:00:24]NVStorageSaveData kkm_last_timestamp [19:00:24]File name is /storage/kkm_last_timestamp [19:00:24]Write 4 bytes [19:00:24]NVStorageSaveData done [19:00:24]ExternCall_PrintAddStr [19:00:24]wPrintStart [19:00:24]Write to MH i2c: 01 00 00 5E 1A 78 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 5E 1A 00 00 00 00 00 FF 0F 8D [19:00:24]RasterBufferAndPrint [19:00:24]line Счет N : (1)2885740 [19:00:24]line ИНН: 02508201610067 [19:00:24]line Контрольно-Кассовый Чек [19:00:24]line ПРОДАЖА [19:00:24]line ТРК (МРК, ГНК) : 71 [19:00:24]line Товар: 2711129700 [19:00:24]line ГАЗ-К-3 [19:00:24]line 18.000 * 38.90 [19:00:24]line = 700.20 [19:00:24]line НДС 12% НСП 1% [19:00:24]line > о реализуемом товаре [19:00:24]line ОКРУГЛЕНИЕ: -0.20 [19:00:24]line ИТОГО: 700.00 [19:00:24]line Внесено: 700.00 [19:00:24]line СДАЧА: 0.00 [19:00:24]line НСП 1% : 6.20 [19:00:24]line НДС 12% : 74.36 [19:00:24]line Наличными: 700.00 [19:00:24]line Безнал.: 0.00 [19:00:24]line Место: АЗС № 85 "Партнер Нефть" [19:00:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:00:24]line СНО: Общий режим [19:00:24]line Чек 365 21.10.2024 19:00 [19:00:24]line Смена: 194 ФФД: 1.0 [19:00:24]line ЗНМ: 0300000167 [19:00:24]line РНМ: 0000000000156251 [19:00:24]line Версия ККМ: v1.0 [19:00:24]line ФМ: 0000000000963346 [19:00:24]line ФД: 69975 [19:00:24]line ФПД: 18408540223643 [19:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190024&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69975&fm=18408540223643&tin=02508201610067®Number=0000000000156251&sum=70000 [19:00:25]OFD Sender: Processing packet 69975 [packets to send 18, broken 17] [19:00:25]ProducePacketName [19:00:25]name=ofd_packets/00069975 [19:00:25]OFD Sender: To server: pG, [19:00:25]CommunicateWithHost lk.salyk.kg:30040 [19:00:25]ConnectInit lk.salyk.kg [19:00:25]written 0, free lines is 4095 [19:00:25]Connected sock=11 [19:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 BF FB 06 01 F8 12 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 6D 01 00 00 F4 03 04 00 C8 A4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 11 01 00 35 04 06 00 10 BE 12 80 38 9B BE 2F AD F1 7E 91 29 5A [19:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 17 FE 47 00 9A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 11 01 00 F4 03 04 00 6B 4E 16 67 B6 04 01 00 00 15 70 BC BC 56 12 A4 F6 [19:00:25]CommunicateWithHost err = 0 [19:00:25]CheckOFDResponse [19:00:25]1017 (14) - 77093643461234 [19:00:25]1041 (16) - 0000000000963346 [19:00:25]1040 (4) - 69975 [19:00:25]1012 (4) - 21.10.2024 12:51 [19:00:25]1206 (1) - 0 [19:00:25]OFD Sender: Remove packet 69975 [19:00:25]ProducePacketName [19:00:25]name=ofd_packets/00069975 [19:00:25]NVStorageDeleteData [19:00:25]Write to MH i2c: 01 00 00 89 1A A3 [19:00:25]Write i2c OK [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: 01 [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: 01 07 00 [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0C B5 [19:00:25]RasterBufferAndPrint [19:00:25]line [19:00:25]line [19:00:25]line [19:00:25]line [19:00:25]line [19:00:25]written 0, free lines is 3333 [19:00:25]MH_Cut [19:00:25]Write to MH i2c: D1 01 00 90 1A 01 7C [19:00:25]Write i2c OK [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: D1 [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: D1 01 00 [19:00:25]MH_I2C_Read... [19:00:25]Read from MH i2c: D1 01 00 90 1A 00 7B [19:00:25]Write to MH i2c: 01 00 00 91 1A AB [19:00:25]Write i2c OK [19:00:25]MH_I2C_Read... [19:00:25]OFD Sender: No OFD packet to send [19:00:26]*** Cut start [19:00:26]*** Partial cut [19:00:26]*** CUTSNS_PIN = 1 [19:00:26]*** CUTSNS_PIN = 0 [19:00:26]*** Brake cut motor [19:00:26]Read from MH i2c: 01 [19:00:26]MH_I2C_Read... [19:00:26]*** Stop cut motor [19:00:26]*** Cut end [19:00:26]Read from MH i2c: 01 07 00 [19:00:26]MH_I2C_Read... [19:00:26]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 FF 0F C0 [19:00:26]process_action close_receipt done [19:00:26]requested_data is exist [19:00:26]produce_requested_data [19:00:26]requested_item fm.sn is exist - process it [19:00:26]wFMCommunicate request_size=4 [19:00:26]MH_SAM_APDU [19:00:26]CAPDU: 80 11 00 00 [19:00:26]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [19:00:26]Write i2c OK [19:00:26]MH_I2C_Read... [19:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:27]Read from MH i2c: E2 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 17 00 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [19:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:00:27]wFMCommunicate OK [19:00:27]requested_item fd.num is exist - process it [19:00:27]SAM_PROTO_GetFieldsCounters [19:00:27]wFMCommunicate request_size=4 [19:00:27]MH_SAM_APDU [19:00:27]CAPDU: 80 13 00 00 [19:00:27]Write to MH i2c: E2 08 00 93 1A 80 13 00 00 00 00 00 00 29 [19:00:27]Write i2c OK [19:00:27]MH_I2C_Read... [19:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:27]Read from MH i2c: E2 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 62 00 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 62 00 93 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [19:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:27]wFMCommunicate OK [19:00:27]SAM_PROTO_GetFieldsCounters done [19:00:27]requested_item shift.num is exist - process it [19:00:27]requested_item shift.opened is exist - process it [19:00:27]req_shift_opened [19:00:27]FM_GetShiftState [19:00:27]SAM_PROTO_GetShiftState [19:00:27]wFMCommunicate request_size=4 [19:00:27]MH_SAM_APDU [19:00:27]CAPDU: 80 13 01 00 [19:00:27]Write to MH i2c: E2 08 00 94 1A 80 13 01 00 00 00 00 00 2B [19:00:27]Write i2c OK [19:00:27]MH_I2C_Read... [19:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:27]Read from MH i2c: E2 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 0E 00 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 0E 00 94 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 57 [19:00:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:00:27]wFMCommunicate OK [19:00:27]SAM_PROTO_GetShiftState done [19:00:27]FM_GetShiftState done [19:00:27]req_shift_opened done [19:00:27]requested_item shift.open_date is exist - process it [19:00:27]req_shift_open_date [19:00:27]req_shift_open_date done [19:00:27]produce_requested_data done [19:00:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69975,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:00:27]process_action_free close_receipt [19:00:27]json_value_free [19:00:27]json_value_free done [19:00:27]process_json_proto returns [19:00:27]Send response to host [19:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69975,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:00:27]free response buf [19:00:27]execute_script done [19:00:27]execute_script returns [19:00:27]free content buf [19:00:27]Sock 7.Close socket [19:00:27]Sock 7.Thread stoped [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:42]accept exits with 9 [19:03:42]New connection [19:03:42]New thread 3067026788 created [19:03:42]Thread 3067170148 joined [19:03:42]Waiting for new connection... [19:03:42] Sock 9.Parse request [19:03:42]Sock 9.Check first char [19:03:42]Sock 9.First char is OK [19:03:42]request: POST /json_proto HTTP/1.0 [19:03:42]Method: POST [19:03:42]URL: /json_proto [19:03:42]Method is POST - this is cgi request [19:03:42]url: /json_proto [19:03:42]query_string will be loaded in cgi processing [19:03:42]execute_cgi json_proto POST (null) [19:03:42]execute_cgi path=json_proto method=POST [19:03:42]POST find Content-Length [19:03:42]Host: 172.17.50.3:8080 [19:03:42]Content-Length: 755 [19:03:42]Content-Type: application/json [19:03:42] [19:03:42]POST finish read [19:03:42]Found Content-Length = 755 [19:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:42]execute_script... [19:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144846", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:42]POST & json_proto [19:03:42]process_json_proto [19:03:42]json parsed OK: [19:03:42]protocol is kg_v1.0 [19:03:42]action value=close_receipt [19:03:42]process_action close_receipt [19:03:42]cmd_close_receipt [19:03:42]MH_GetDate [19:03:42]Write to MH i2c: F0 00 00 95 1A 9E [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: F0 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: F0 09 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: F0 09 00 95 1A 00 8F A5 16 67 6B 98 1E 66 DF [19:03:42]GetLastDocTimeStamp 1729537224 [19:03:42]current date 1729537423 [19:03:42]FM_GetShiftState [19:03:42]SAM_PROTO_GetShiftState [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 13 01 00 [19:03:42]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 0E 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 59 [19:03:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:03:42]wFMCommunicate OK [19:03:42]SAM_PROTO_GetShiftState done [19:03:42]FM_GetShiftState done [19:03:42]opened in 1729469703 [19:03:42]opened+sec_in_day 1729556103 [19:03:42]quantity*price = 0 [19:03:42]sum+1 = 1 [19:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 366 21.10.2024 19:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30144846 ФМ: 0000000000963346 ФД: 69976 ФПД: 124824859059643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190343&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69976&fm=124824859059643&tin=02508201610067®Number=0000000000156251&sum=0 [19:03:43]StoreToDocumentArchive [19:03:43]shift 194 fd 69976 [19:03:43]save to /storage/0194/doc_00069976 [19:03:43]save last doc name /storage/0194/doc_00069976 to /storage/kkm_last_doc_name [19:03:43]save OK [19:03:43]Clear old archive folders... [19:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:43]tlvbuf is 011AD8F0 [19:03:43]SAM_PROTO_ClearQueue [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 09 00 00 [19:03:43]Write to MH i2c: E2 08 00 A3 1A 80 09 00 00 00 00 00 00 2F [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 A3 1A 00 90 00 31 [19:03:43]RAPDU: 90 00 [19:03:43]wFMCommunicate OK [19:03:43]SAM_PROTO_ClearQueue done [19:03:43]KKMCreateOFDPacket [19:03:43]OFDProtocolAddRootSTLVToBuf [19:03:43]FM_MakeSignedData [19:03:43]FM_MakeSignedData [19:03:43]SAM_PROTO_SignData [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 0D 01 02 [19:03:43]Write to MH i2c: E2 08 00 A4 1A 80 0D 01 02 00 00 00 00 37 [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [19:03:43]RAPDU: 90 00 [19:03:43]wFMCommunicate OK [19:03:43]wFMCommunicate request_size=255 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 8F A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 11 01 00 35 04 06 00 71 [19:03:43]Write to MH i2c: E2 02 01 A5 1A 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 8F A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 11 01 00 35 04 06 00 71 00 00 01 [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [19:03:43]RAPDU: 90 00 [19:03:43]wFMCommunicate OK [19:03:43]wFMCommunicate request_size=10 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 0D 02 02 05 87 0D 62 25 BB [19:03:43]Write to MH i2c: E2 0D 00 A6 1A 80 0D 02 02 05 00 87 0D 62 25 BB 00 00 1A [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [19:03:43]RAPDU: 90 00 [19:03:43]wFMCommunicate OK [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 0D 03 02 [19:03:43]Write to MH i2c: E2 08 00 A7 1A 80 0D 03 02 00 00 00 00 3C [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 0B 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 0B 00 A7 1A 00 53 9D F1 35 DE 48 BF C7 90 00 FF [19:03:43]RAPDU: 53 9D F1 35 DE 48 BF C7 90 00 [19:03:43]wFMCommunicate OK [19:03:43]SAM_PROTO_SignData done [19:03:43]FM_MakeSignedData done [19:03:43]CreateOFDProtocolMessage [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 11 00 00 [19:03:43]Write to MH i2c: E2 08 00 A8 1A 80 11 00 00 00 00 00 00 3C [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 17 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 17 00 A8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [19:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:03:43]wFMCommunicate OK [19:03:43]CreateOFDProtocolMessage done [19:03:43]OFDSenderStorePacket 69976 [19:03:43]StoreOFDPacket docnum=69976 [19:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8F 81 07 01 10 74 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 8F A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 11 01 00 35 04 06 00 71 87 0D 62 25 BB 53 9D F1 35 DE 48 BF C7 [19:03:43]CheckFolder [19:03:43]dirname=/storage/ofd_packets [19:03:43]CheckFolder done [19:03:43]ProducePacketName [19:03:43]name=ofd_packets/00069976 [19:03:43]NVStorageSaveData ofd_packets/00069976 [19:03:43]File name is /storage/ofd_packets/00069976 [19:03:43]Write 301 bytes [19:03:43]NVStorageSaveData done [19:03:43]OFDSenderStorePacket done [19:03:43]KKMCreateOFDPacket done [19:03:43]NVStorageSaveData kkm_last_timestamp [19:03:43]File name is /storage/kkm_last_timestamp [19:03:43]Write 4 bytes [19:03:43]NVStorageSaveData done [19:03:43]ExternCall_PrintAddStr [19:03:43]wPrintStart [19:03:43]Write to MH i2c: 01 00 00 A9 1A C3 [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 07 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [19:03:43]RasterBufferAndPrint [19:03:43]line Счет N : (1)2885742 [19:03:43]line ИНН: 02508201610067 [19:03:43]line Контрольно-Кассовый Чек [19:03:43]line ПРОДАЖА [19:03:43]line ТРК (МРК, ГНК) : 12 [19:03:43]line Товар: 2710124130 [19:03:43]line Аи-92-К-5 [19:03:43]line 25.000 * 0.00 [19:03:43]line = 0.00 [19:03:43]line НДС 12% НСП 1% [19:03:43]line > о реализуемом товаре [19:03:43]line ИТОГО: 0.00 [19:03:43]line НСП 1% : 0.00 [19:03:43]line НДС 12% : 0.00 [19:03:43]line Наличными: 0.00 [19:03:43]line Безнал.: 0.00 [19:03:43]line Место: АЗС № 85 "Партнер Нефть" [19:03:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:03:43]line СНО: Общий режим [19:03:43]line Чек 366 21.10.2024 19:03 [19:03:43]line Смена: 194 ФФД: 1.0 [19:03:43]line ЗНМ: 0300000167 [19:03:43]line РНМ: 0000000000156251 [19:03:43]line Версия ККМ: v1.0 [19:03:43]line Талоны: ТК ГПНА Online [19:03:43]line 30144846 [19:03:43]line ФМ: 0000000000963346 [19:03:43]line ФД: 69976 [19:03:43]line ФПД: 124824859059643 [19:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190343&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69976&fm=124824859059643&tin=02508201610067®Number=0000000000156251&sum=0 [19:03:44]OFD Sender: Processing packet 69976 [packets to send 18, broken 17] [19:03:44]ProducePacketName [19:03:44]name=ofd_packets/00069976 [19:03:44]OFD Sender: To server: pG, [19:03:44]CommunicateWithHost lk.salyk.kg:30040 [19:03:44]ConnectInit lk.salyk.kg [19:03:44]written 0, free lines is 4095 [19:03:44]Connected sock=10 [19:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8F 81 07 01 10 74 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 8F A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 11 01 00 35 04 06 00 71 87 0D 62 25 BB 53 9D F1 35 DE 48 BF C7 [19:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6D 03 47 00 BE 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 39 36 33 33 34 36 10 04 04 00 58 11 01 00 F4 03 04 00 32 4F 16 67 B6 04 01 00 00 C3 88 CC 0B 1C 46 EE FD [19:03:44]CommunicateWithHost err = 0 [19:03:44]CheckOFDResponse [19:03:44]1017 (14) - 77093643461234 [19:03:44]1041 (16) - 0000000000963346 [19:03:44]1040 (4) - 69976 [19:03:44]1012 (4) - 21.10.2024 12:55 [19:03:44]1206 (1) - 0 [19:03:44]OFD Sender: Remove packet 69976 [19:03:44]ProducePacketName [19:03:44]name=ofd_packets/00069976 [19:03:44]NVStorageDeleteData [19:03:44]Write to MH i2c: 01 00 00 D3 1A ED [19:03:44]Write i2c OK [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: 01 [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: 01 07 00 [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 16 0D 17 [19:03:44]RasterBufferAndPrint [19:03:44]line [19:03:44]line [19:03:44]line [19:03:44]line [19:03:44]line [19:03:44]written 0, free lines is 3360 [19:03:44]MH_Cut [19:03:44]Write to MH i2c: D1 01 00 DA 1A 01 C6 [19:03:44]Write i2c OK [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: D1 [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: D1 01 00 [19:03:44]MH_I2C_Read... [19:03:44]Read from MH i2c: D1 01 00 DA 1A 00 C5 [19:03:44]Write to MH i2c: 01 00 00 DB 1A F5 [19:03:44]Write i2c OK [19:03:44]MH_I2C_Read... [19:03:45]OFD Sender: No OFD packet to send [19:03:45]*** Cut start [19:03:45]*** Partial cut [19:03:45]*** CUTSNS_PIN = 1 [19:03:45]*** CUTSNS_PIN = 0 [19:03:45]*** Brake cut motor [19:03:45]Read from MH i2c: 01 [19:03:45]MH_I2C_Read... [19:03:45]*** Stop cut motor [19:03:45]*** Cut end [19:03:45]Read from MH i2c: 01 07 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: 01 07 00 DB 1A 00 00 00 00 00 FF 0F 0A [19:03:45]process_action close_receipt done [19:03:45]requested_data is exist [19:03:45]produce_requested_data [19:03:45]requested_item fm.sn is exist - process it [19:03:45]wFMCommunicate request_size=4 [19:03:45]MH_SAM_APDU [19:03:45]CAPDU: 80 11 00 00 [19:03:45]Write to MH i2c: E2 08 00 DC 1A 80 11 00 00 00 00 00 00 70 [19:03:45]Write i2c OK [19:03:45]MH_I2C_Read... [19:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:45]Read from MH i2c: E2 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 17 00 [19:03:45]MH_I2C_Read... [19:03:45]Read from MH i2c: E2 17 00 DC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [19:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:03:46]wFMCommunicate OK [19:03:46]requested_item fd.num is exist - process it [19:03:46]SAM_PROTO_GetFieldsCounters [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 13 00 00 [19:03:46]Write to MH i2c: E2 08 00 DD 1A 80 13 00 00 00 00 00 00 73 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 62 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 62 00 DD 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:46]wFMCommunicate OK [19:03:46]SAM_PROTO_GetFieldsCounters done [19:03:46]requested_item shift.num is exist - process it [19:03:46]requested_item shift.opened is exist - process it [19:03:46]req_shift_opened [19:03:46]FM_GetShiftState [19:03:46]SAM_PROTO_GetShiftState [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 13 01 00 [19:03:46]Write to MH i2c: E2 08 00 DE 1A 80 13 01 00 00 00 00 00 75 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 0E 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 0E 00 DE 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A1 [19:03:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:03:46]wFMCommunicate OK [19:03:46]SAM_PROTO_GetShiftState done [19:03:46]FM_GetShiftState done [19:03:46]req_shift_opened done [19:03:46]requested_item shift.open_date is exist - process it [19:03:46]req_shift_open_date [19:03:46]req_shift_open_date done [19:03:46]produce_requested_data done [19:03:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69976,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:03:46]process_action_free close_receipt [19:03:46]json_value_free [19:03:46]json_value_free done [19:03:46]process_json_proto returns [19:03:46]Send response to host [19:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69976,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:03:46]free response buf [19:03:46]execute_script done [19:03:46]execute_script returns [19:03:46]free content buf [19:03:46]Sock 9.Close socket [19:03:46]Sock 9.Thread stoped [19:03:46]accept exits with 7 [19:03:46]New connection [19:03:46]New thread 3067170148 created [19:03:46]Thread 3067026788 joined [19:03:46]Waiting for new connection... [19:03:46] Sock 7.Parse request [19:03:46]Sock 7.Check first char [19:03:46]Sock 7.First char is OK [19:03:46]request: POST /json_proto HTTP/1.0 [19:03:46]Method: POST [19:03:46]URL: /json_proto [19:03:46]Method is POST - this is cgi request [19:03:46]url: /json_proto [19:03:46]query_string will be loaded in cgi processing [19:03:46]execute_cgi json_proto POST (null) [19:03:46]execute_cgi path=json_proto method=POST [19:03:46]POST find Content-Length [19:03:46]Host: 172.17.50.3:8080 [19:03:46]Content-Length: 978 [19:03:46]Content-Type: application/json [19:03:46] [19:03:46]POST finish read [19:03:46]Found Content-Length = 978 [19:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 71.810, "sum" : 5400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 71.81 \u0441\u043E\u043C", "deposit" : 5500.00, "total" : 5400.00, "payments": [ { "type": 0, "sum" : 5400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:46]execute_script... [19:03: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)2885741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 71.810, "sum" : 5400.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 71.81 \u0441\u043E\u043C", "deposit" : 5500.00, "total" : 5400.00, "payments": [ { "type": 0, "sum" : 5400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:46]POST & json_proto [19:03:46]process_json_proto [19:03:46]json parsed OK: [19:03:46]protocol is kg_v1.0 [19:03:46]action value=close_receipt [19:03:46]process_action close_receipt [19:03:46]cmd_close_receipt [19:03:46]MH_GetDate [19:03:46]Write to MH i2c: F0 00 00 DF 1A E8 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: F0 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: F0 09 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: F0 09 00 DF 1A 00 93 A5 16 67 6B 98 1E 66 2D [19:03:46]GetLastDocTimeStamp 1729537423 [19:03:46]current date 1729537427 [19:03:46]FM_GetShiftState [19:03:46]SAM_PROTO_GetShiftState [19:03:46]wFMCommunicate request_size=4 [19:03:46]MH_SAM_APDU [19:03:46]CAPDU: 80 13 01 00 [19:03:46]Write to MH i2c: E2 08 00 E0 1A 80 13 01 00 00 00 00 00 77 [19:03:46]Write i2c OK [19:03:46]MH_I2C_Read... [19:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:46]Read from MH i2c: E2 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 0E 00 [19:03:46]MH_I2C_Read... [19:03:46]Read from MH i2c: E2 0E 00 E0 1A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A3 [19:03:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:03:46]wFMCommunicate OK [19:03:46]SAM_PROTO_GetShiftState done [19:03:46]FM_GetShiftState done [19:03:46]opened in 1729469703 [19:03:46]opened+sec_in_day 1729556103 [19:03:46]quantity*price = 540011 [19:03:46]sum+1 = 540012 [19:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 5400.00 Внесено: 5500.00 СДАЧА: 100.00 НСП 1% : 47.79 НДС 12% : 573.46 Наличными: 5400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 367 21.10.2024 19:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 71.81 сом ФМ: 0000000000963346 ФД: 69977 ФПД: 262923053396473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190347&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69977&fm=262923053396473&tin=02508201610067®Number=0000000000156251&sum=540000 [19:03:47]StoreToDocumentArchive [19:03:47]shift 194 fd 69977 [19:03:47]save to /storage/0194/doc_00069977 [19:03:47]save last doc name /storage/0194/doc_00069977 to /storage/kkm_last_doc_name [19:03:47]save OK [19:03:47]Clear old archive folders... [19:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:47]tlvbuf is 01163B30 [19:03:47]SAM_PROTO_ClearQueue [19:03:47]wFMCommunicate request_size=4 [19:03:47]MH_SAM_APDU [19:03:47]CAPDU: 80 09 00 00 [19:03:47]Write to MH i2c: E2 08 00 ED 1A 80 09 00 00 00 00 00 00 79 [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:47]Read from MH i2c: E2 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 03 00 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 03 00 ED 1A 00 90 00 7B [19:03:47]RAPDU: 90 00 [19:03:47]wFMCommunicate OK [19:03:47]SAM_PROTO_ClearQueue done [19:03:47]KKMCreateOFDPacket [19:03:47]OFDProtocolAddRootSTLVToBuf [19:03:47]FM_MakeSignedData [19:03:47]FM_MakeSignedData [19:03:47]SAM_PROTO_SignData [19:03:47]wFMCommunicate request_size=4 [19:03:47]MH_SAM_APDU [19:03:47]CAPDU: 80 0D 01 02 [19:03:47]Write to MH i2c: E2 08 00 EE 1A 80 0D 01 02 00 00 00 00 81 [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:47]Read from MH i2c: E2 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 03 00 [19:03:47]MH_I2C_Read... [19:03:47]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [19:03:47]RAPDU: 90 00 [19:03:47]wFMCommunicate OK [19:03:47]wFMCommunicate request_size=255 [19:03:47]MH_SAM_APDU [19:03: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 18 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6B 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 E0 00 00 00 00 07 04 06 00 60 3D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 93 A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 11 01 00 35 04 06 00 EF 20 8B 33 [19:03:47]Write to MH i2c: E2 02 01 EF 1A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 18 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6B 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 E0 00 00 00 00 07 04 06 00 60 3D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 93 A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 11 01 00 35 04 06 00 EF 20 8B 33 00 00 A8 [19:03:47]Write i2c OK [19:03:47]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 03 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [19:03:48]RAPDU: 90 00 [19:03:48]wFMCommunicate OK [19:03:48]wFMCommunicate request_size=7 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 0D 02 02 02 71 F9 [19:03:48]Write to MH i2c: E2 0A 00 F0 1A 80 0D 02 02 02 00 71 F9 00 00 F2 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 03 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [19:03:48]RAPDU: 90 00 [19:03:48]wFMCommunicate OK [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 0D 03 02 [19:03:48]Write to MH i2c: E2 08 00 F1 1A 80 0D 03 02 00 00 00 00 86 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0B 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0B 00 F1 1A 00 FD E5 A1 EF E2 C2 FF 96 90 00 32 [19:03:48]RAPDU: FD E5 A1 EF E2 C2 FF 96 90 00 [19:03:48]wFMCommunicate OK [19:03:48]SAM_PROTO_SignData done [19:03:48]FM_MakeSignedData done [19:03:48]CreateOFDProtocolMessage [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 11 00 00 [19:03:48]Write to MH i2c: E2 08 00 F2 1A 80 11 00 00 00 00 00 00 86 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 17 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 17 00 F2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [19:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:03:48]wFMCommunicate OK [19:03:48]CreateOFDProtocolMessage done [19:03:48]OFDSenderStorePacket 69977 [19:03:48]StoreOFDPacket docnum=69977 [19:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EF 88 04 01 D7 49 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 18 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6B 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 E0 00 00 00 00 07 04 06 00 60 3D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 93 A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 11 01 00 35 04 06 00 EF 20 8B 33 71 F9 FD E5 A1 EF E2 C2 FF 96 [19:03:48]CheckFolder [19:03:48]dirname=/storage/ofd_packets [19:03:48]CheckFolder done [19:03:48]ProducePacketName [19:03:48]name=ofd_packets/00069977 [19:03:48]NVStorageSaveData ofd_packets/00069977 [19:03:48]File name is /storage/ofd_packets/00069977 [19:03:48]Write 298 bytes [19:03:48]NVStorageSaveData done [19:03:48]OFDSenderStorePacket done [19:03:48]KKMCreateOFDPacket done [19:03:48]NVStorageSaveData kkm_last_timestamp [19:03:48]File name is /storage/kkm_last_timestamp [19:03:48]Write 4 bytes [19:03:48]NVStorageSaveData done [19:03:48]ExternCall_PrintAddStr [19:03:48]wPrintStart [19:03:48]Write to MH i2c: 01 00 00 F3 1A 0D [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 07 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [19:03:48]RasterBufferAndPrint [19:03:48]line Счет N : (1)2885741 [19:03:48]line ИНН: 02508201610067 [19:03:48]line Контрольно-Кассовый Чек [19:03:48]line ПРОДАЖА [19:03:48]line ТРК (МРК, ГНК) : 51 [19:03:48]line Товар: 2710194210 [19:03:48]line ДТ-К-5 [19:03:48]line 71.810 * 75.20 [19:03:48]line = 5400.11 [19:03:48]line НДС 12% НСП 1% [19:03:48]line > о реализуемом товаре [19:03:48]line ОКРУГЛЕНИЕ: -0.11 [19:03:48]line ИТОГО: 5400.00 [19:03:48]line Внесено: 5500.00 [19:03:48]line СДАЧА: 100.00 [19:03:48]line НСП 1% : 47.79 [19:03:48]line НДС 12% : 573.46 [19:03:48]line Наличными: 5400.00 [19:03:48]line Безнал.: 0.00 [19:03:48]line Место: АЗС № 85 "Партнер Нефть" [19:03:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:03:48]line СНО: Общий режим [19:03:48]line Чек 367 21.10.2024 19:03 [19:03:48]line Смена: 194 ФФД: 1.0 [19:03:48]line ЗНМ: 0300000167 [19:03:48]line РНМ: 0000000000156251 [19:03:48]line Версия ККМ: v1.0 [19:03:48]line [19:03:48]line Дисконтная программа [19:03:48]line ДТ [19:03:48]line номер 85 [19:03:48]line сэкономлено 71.81 сом [19:03:48]line ФМ: 0000000000963346 [19:03:48]line ФД: 69977 [19:03:48]line ФПД: 262923053396473 [19:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190347&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69977&fm=262923053396473&tin=02508201610067®Number=0000000000156251&sum=540000 [19:03:48]written 0, free lines is 4095 [19:03:48]OFD Sender: Processing packet 69977 [packets to send 18, broken 17] [19:03:48]ProducePacketName [19:03:48]name=ofd_packets/00069977 [19:03:48]OFD Sender: To server: pG, [19:03:48]CommunicateWithHost lk.salyk.kg:30040 [19:03:48]ConnectInit lk.salyk.kg [19:03:48]Connected sock=10 [19:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EF 88 04 01 D7 49 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 18 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6B 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 E0 00 00 00 00 07 04 06 00 60 3D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 93 A5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 11 01 00 35 04 06 00 EF 20 8B 33 71 F9 FD E5 A1 EF E2 C2 FF 96 [19:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9C 86 47 00 A1 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 11 01 00 F4 03 04 00 37 4F 16 67 B6 04 01 00 00 B4 C2 A9 56 FD FE 9D 5B [19:03:49]CommunicateWithHost err = 0 [19:03:49]CheckOFDResponse [19:03:49]1017 (14) - 77093643461234 [19:03:49]1041 (16) - 0000000000963346 [19:03:49]1040 (4) - 69977 [19:03:49]1012 (4) - 21.10.2024 12:55 [19:03:49]1206 (1) - 0 [19:03:49]OFD Sender: Remove packet 69977 [19:03:49]ProducePacketName [19:03:49]name=ofd_packets/00069977 [19:03:49]NVStorageDeleteData [19:03:49]Write to MH i2c: 01 00 00 23 1B 3E [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: 01 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: 01 07 00 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: 01 07 00 23 1B 00 00 00 00 00 B4 0C 05 [19:03:49]RasterBufferAndPrint [19:03:49]line [19:03:49]line [19:03:49]line [19:03:49]line [19:03:49]line [19:03:49]written 0, free lines is 3268 [19:03:49]MH_Cut [19:03:49]Write to MH i2c: D1 01 00 2A 1B 01 17 [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: D1 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: D1 01 00 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: D1 01 00 2A 1B 00 16 [19:03:49]Write to MH i2c: 01 00 00 2B 1B 46 [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]OFD Sender: No OFD packet to send [19:03:50]*** Cut start [19:03:50]*** Partial cut [19:03:50]*** CUTSNS_PIN = 1 [19:03:50]*** CUTSNS_PIN = 0 [19:03:50]*** Brake cut motor [19:03:50]Read from MH i2c: 01 [19:03:50]MH_I2C_Read... [19:03:50]*** Stop cut motor [19:03:50]*** Cut end [19:03:50]Read from MH i2c: 01 07 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 FF 0F 5B [19:03:50]process_action close_receipt done [19:03:50]requested_data is exist [19:03:50]produce_requested_data [19:03:50]requested_item fm.sn is exist - process it [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 11 00 00 [19:03:50]Write to MH i2c: E2 08 00 2C 1B 80 11 00 00 00 00 00 00 C1 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 2C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [19:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:03:50]wFMCommunicate OK [19:03:50]requested_item fd.num is exist - process it [19:03:50]SAM_PROTO_GetFieldsCounters [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 13 00 00 [19:03:50]Write to MH i2c: E2 08 00 2D 1B 80 13 00 00 00 00 00 00 C4 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 62 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 62 00 2D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_GetFieldsCounters done [19:03:50]requested_item shift.num is exist - process it [19:03:50]requested_item shift.opened is exist - process it [19:03:50]req_shift_opened [19:03:50]FM_GetShiftState [19:03:50]SAM_PROTO_GetShiftState [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 13 01 00 [19:03:50]Write to MH i2c: E2 08 00 2E 1B 80 13 01 00 00 00 00 00 C6 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 2E 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F2 [19:03:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_GetShiftState done [19:03:50]FM_GetShiftState done [19:03:50]req_shift_opened done [19:03:50]requested_item shift.open_date is exist - process it [19:03:50]req_shift_open_date [19:03:50]req_shift_open_date done [19:03:50]produce_requested_data done [19:03:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69977,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:03:50]process_action_free close_receipt [19:03:50]json_value_free [19:03:50]json_value_free done [19:03:50]process_json_proto returns [19:03:50]Send response to host [19:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69977,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:03:50]free response buf [19:03:50]execute_script done [19:03:50]execute_script returns [19:03:50]free content buf [19:03:50]Sock 7.Close socket [19:03:50]Sock 7.Thread stoped [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:38]accept exits with 9 [19:05:38]New connection [19:05:38]New thread 3067026788 created [19:05:38]Thread 3067170148 joined [19:05:38]Waiting for new connection... [19:05:38] Sock 9.Parse request [19:05:38]Sock 9.Check first char [19:05:38]Sock 9.First char is OK [19:05:38]request: POST /json_proto HTTP/1.0 [19:05:38]Method: POST [19:05:38]URL: /json_proto [19:05:38]Method is POST - this is cgi request [19:05:38]url: /json_proto [19:05:38]query_string will be loaded in cgi processing [19:05:38]execute_cgi json_proto POST (null) [19:05:38]execute_cgi path=json_proto method=POST [19:05:38]POST find Content-Length [19:05:38]Host: 172.17.50.3:8080 [19:05:38]Content-Length: 683 [19:05:38]Content-Type: application/json [19:05:38] [19:05:38]POST finish read [19:05:38]Found Content-Length = 683 [19:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885743", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:38]execute_script... [19:05:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885743", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:38]POST & json_proto [19:05:38]process_json_proto [19:05:38]json parsed OK: [19:05:38]protocol is kg_v1.0 [19:05:38]action value=close_receipt [19:05:38]process_action close_receipt [19:05:38]cmd_close_receipt [19:05:38]MH_GetDate [19:05:38]Write to MH i2c: F0 00 00 2F 1B 39 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 2F 1B 00 03 A6 16 67 6B 98 1E 66 EF [19:05:38]GetLastDocTimeStamp 1729537427 [19:05:38]current date 1729537539 [19:05:38]FM_GetShiftState [19:05:38]SAM_PROTO_GetShiftState [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 13 01 00 [19:05:38]Write to MH i2c: E2 08 00 30 1B 80 13 01 00 00 00 00 00 C8 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 30 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F4 [19:05:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:05:38]wFMCommunicate OK [19:05:38]SAM_PROTO_GetShiftState done [19:05:38]FM_GetShiftState done [19:05:38]opened in 1729469703 [19:05:38]opened+sec_in_day 1729556103 [19:05:38]quantity*price = 100015 [19:05:38]sum+1 = 100017 [19:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 368 21.10.2024 19:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69978 ФПД: 51222355375052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69978&fm=51222355375052&tin=02508201610067®Number=0000000000156251&sum=100000 [19:05:39]StoreToDocumentArchive [19:05:39]shift 194 fd 69978 [19:05:39]save to /storage/0194/doc_00069978 [19:05:39]save last doc name /storage/0194/doc_00069978 to /storage/kkm_last_doc_name [19:05:39]save OK [19:05:39]Clear old archive folders... [19:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:39]tlvbuf is 0112D450 [19:05:39]SAM_PROTO_ClearQueue [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 09 00 00 [19:05:39]Write to MH i2c: E2 08 00 3D 1B 80 09 00 00 00 00 00 00 CA [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_ClearQueue done [19:05:39]KKMCreateOFDPacket [19:05:39]OFDProtocolAddRootSTLVToBuf [19:05:39]FM_MakeSignedData [19:05:39]FM_MakeSignedData [19:05:39]SAM_PROTO_SignData [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 01 02 [19:05:39]Write to MH i2c: E2 08 00 3E 1B 80 0D 01 02 00 00 00 00 D2 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=255 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 03 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 11 01 00 35 04 06 00 2E [19:05:39]Write to MH i2c: E2 02 01 3F 1B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 03 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 11 01 00 35 04 06 00 2E 00 00 48 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=10 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 02 02 05 96 22 4B F3 CC [19:05:39]Write to MH i2c: E2 0D 00 40 1B 80 0D 02 02 05 00 96 22 4B F3 CC 00 00 A1 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 03 02 [19:05:39]Write to MH i2c: E2 08 00 41 1B 80 0D 03 02 00 00 00 00 D7 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0B 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0B 00 41 1B 00 93 43 36 1E 8D 11 17 6A 90 00 21 [19:05:39]RAPDU: 93 43 36 1E 8D 11 17 6A 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_SignData done [19:05:39]FM_MakeSignedData done [19:05:39]CreateOFDProtocolMessage [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 11 00 00 [19:05:39]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [19:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:05:39]wFMCommunicate OK [19:05:39]CreateOFDProtocolMessage done [19:05:39]OFDSenderStorePacket 69978 [19:05:39]StoreOFDPacket docnum=69978 [19:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 3A 07 01 02 1E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 03 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 11 01 00 35 04 06 00 2E 96 22 4B F3 CC 93 43 36 1E 8D 11 17 6A [19:05:39]CheckFolder [19:05:39]dirname=/storage/ofd_packets [19:05:39]CheckFolder done [19:05:39]ProducePacketName [19:05:39]name=ofd_packets/00069978 [19:05:39]NVStorageSaveData ofd_packets/00069978 [19:05:39]File name is /storage/ofd_packets/00069978 [19:05:39]Write 301 bytes [19:05:39]NVStorageSaveData done [19:05:39]OFDSenderStorePacket done [19:05:39]KKMCreateOFDPacket done [19:05:39]NVStorageSaveData kkm_last_timestamp [19:05:39]File name is /storage/kkm_last_timestamp [19:05:39]Write 4 bytes [19:05:39]NVStorageSaveData done [19:05:39]ExternCall_PrintAddStr [19:05:39]wPrintStart [19:05:39]Write to MH i2c: 01 00 00 43 1B 5E [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 43 1B 00 00 00 00 00 FF 0F 73 [19:05:39]RasterBufferAndPrint [19:05:39]line Счет N : (1)2885743 [19:05:39]line ИНН: 02508201610067 [19:05:39]line Контрольно-Кассовый Чек [19:05:39]line ПРОДАЖА [19:05:39]line ТРК (МРК, ГНК) : 42 [19:05:39]line Товар: 2710124130 [19:05:39]line Аи-92-К-5 [19:05:39]line 14.950 * 66.90 [19:05:39]line = 1000.16 [19:05:39]line НДС 12% НСП 1% [19:05:39]line > о реализуемом товаре [19:05:39]line ОКРУГЛЕНИЕ: -0.16 [19:05:39]line ИТОГО: 1000.00 [19:05:39]line Внесено: 1000.00 [19:05:39]line СДАЧА: 0.00 [19:05:39]line НСП 1% : 8.85 [19:05:39]line НДС 12% : 106.21 [19:05:39]line Наличными: 1000.00 [19:05:39]line Безнал.: 0.00 [19:05:39]line Место: АЗС № 85 "Партнер Нефть" [19:05:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:05:39]line СНО: Общий режим [19:05:39]line Чек 368 21.10.2024 19:05 [19:05:39]line Смена: 194 ФФД: 1.0 [19:05:39]line ЗНМ: 0300000167 [19:05:39]line РНМ: 0000000000156251 [19:05:39]line Версия ККМ: v1.0 [19:05:39]line ФМ: 0000000000963346 [19:05:39]line ФД: 69978 [19:05:39]line ФПД: 51222355375052 [19:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69978&fm=51222355375052&tin=02508201610067®Number=0000000000156251&sum=100000 [19:05:40]OFD Sender: Processing packet 69978 [packets to send 18, broken 17] [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00069978 [19:05:40]OFD Sender: To server: pG, [19:05:40]CommunicateWithHost lk.salyk.kg:30040 [19:05:40]ConnectInit lk.salyk.kg [19:05:40]written 0, free lines is 4095 [19:05:40]Connected sock=10 [19:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F8 3A 07 01 02 1E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 03 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 11 01 00 35 04 06 00 2E 96 22 4B F3 CC 93 43 36 1E 8D 11 17 6A [19:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 64 47 00 D3 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 11 01 00 F4 03 04 00 A6 4F 16 67 B6 04 01 00 00 2A B3 3F 8B ED EC 21 24 [19:05:40]CommunicateWithHost err = 0 [19:05:40]CheckOFDResponse [19:05:40]1017 (14) - 77093643461234 [19:05:40]1041 (16) - 0000000000963346 [19:05:40]1040 (4) - 69978 [19:05:40]1012 (4) - 21.10.2024 12:57 [19:05:40]1206 (1) - 0 [19:05:40]OFD Sender: Remove packet 69978 [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00069978 [19:05:40]NVStorageDeleteData [19:05:40]Write to MH i2c: 01 00 00 6E 1B 89 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 6E 1B 00 00 00 00 00 04 0D A1 [19:05:40]RasterBufferAndPrint [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]written 0, free lines is 3338 [19:05:40]MH_Cut [19:05:40]Write to MH i2c: D1 01 00 75 1B 01 62 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 75 1B 00 61 [19:05:40]Write to MH i2c: 01 00 00 76 1B 91 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]OFD Sender: No OFD packet to send [19:05:41]*** Cut start [19:05:41]*** Partial cut [19:05:41]*** CUTSNS_PIN = 1 [19:05:41]*** CUTSNS_PIN = 0 [19:05:41]*** Brake cut motor [19:05:41]Read from MH i2c: 01 [19:05:41]MH_I2C_Read... [19:05:41]*** Stop cut motor [19:05:41]*** Cut end [19:05:41]Read from MH i2c: 01 07 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [19:05:41]process_action close_receipt done [19:05:41]requested_data is exist [19:05:41]produce_requested_data [19:05:41]requested_item fm.sn is exist - process it [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 11 00 00 [19:05:41]Write to MH i2c: E2 08 00 77 1B 80 11 00 00 00 00 00 00 0C [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 77 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [19:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:05:41]wFMCommunicate OK [19:05:41]requested_item fd.num is exist - process it [19:05:41]SAM_PROTO_GetFieldsCounters [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 13 00 00 [19:05:41]Write to MH i2c: E2 08 00 78 1B 80 13 00 00 00 00 00 00 0F [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 62 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 62 00 78 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [19:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:42]wFMCommunicate OK [19:05:42]SAM_PROTO_GetFieldsCounters done [19:05:42]requested_item shift.num is exist - process it [19:05:42]requested_item shift.opened is exist - process it [19:05:42]req_shift_opened [19:05:42]FM_GetShiftState [19:05:42]SAM_PROTO_GetShiftState [19:05:42]wFMCommunicate request_size=4 [19:05:42]MH_SAM_APDU [19:05:42]CAPDU: 80 13 01 00 [19:05:42]Write to MH i2c: E2 08 00 79 1B 80 13 01 00 00 00 00 00 11 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 0E 00 79 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3D [19:05:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:05:42]wFMCommunicate OK [19:05:42]SAM_PROTO_GetShiftState done [19:05:42]FM_GetShiftState done [19:05:42]req_shift_opened done [19:05:42]requested_item shift.open_date is exist - process it [19:05:42]req_shift_open_date [19:05:42]req_shift_open_date done [19:05:42]produce_requested_data done [19:05:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69978,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:05:42]process_action_free close_receipt [19:05:42]json_value_free [19:05:42]json_value_free done [19:05:42]process_json_proto returns [19:05:42]Send response to host [19:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69978,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:05:42]free response buf [19:05:42]execute_script done [19:05:42]execute_script returns [19:05:42]free content buf [19:05:42]Sock 9.Close socket [19:05:42]Sock 9.Thread stoped [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:33]accept exits with 7 [19:08:33]New connection [19:08:33]New thread 3067170148 created [19:08:33]Thread 3067026788 joined [19:08:33]Waiting for new connection... [19:08:33] Sock 7.Parse request [19:08:33]Sock 7.Check first char [19:08:33]Sock 7.First char is OK [19:08:33]request: POST /json_proto HTTP/1.0 [19:08:33]Method: POST [19:08:33]URL: /json_proto [19:08:33]Method is POST - this is cgi request [19:08:33]url: /json_proto [19:08:33]query_string will be loaded in cgi processing [19:08:33]execute_cgi json_proto POST (null) [19:08:33]execute_cgi path=json_proto method=POST [19:08:33]POST find Content-Length [19:08:33]Host: 172.17.50.3:8080 [19:08:33]Content-Length: 681 [19:08:33]Content-Type: application/json [19:08:33] [19:08:33]POST finish read [19:08:33]Found Content-Length = 681 [19:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 3.860, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:33]execute_script... [19:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 3.860, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:33]POST & json_proto [19:08:33]process_json_proto [19:08:33]json parsed OK: [19:08:33]protocol is kg_v1.0 [19:08:33]action value=close_receipt [19:08:33]process_action close_receipt [19:08:33]cmd_close_receipt [19:08:33]MH_GetDate [19:08:33]Write to MH i2c: F0 00 00 7A 1B 84 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: F0 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: F0 09 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: F0 09 00 7A 1B 00 B3 A6 16 67 6B 98 1E 66 EA [19:08:33]GetLastDocTimeStamp 1729537539 [19:08:33]current date 1729537715 [19:08:33]FM_GetShiftState [19:08:33]SAM_PROTO_GetShiftState [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 13 01 00 [19:08:33]Write to MH i2c: E2 08 00 7B 1B 80 13 01 00 00 00 00 00 13 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 0E 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 0E 00 7B 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3F [19:08:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:08:33]wFMCommunicate OK [19:08:33]SAM_PROTO_GetShiftState done [19:08:33]FM_GetShiftState done [19:08:33]opened in 1729469703 [19:08:33]opened+sec_in_day 1729556103 [19:08:33]quantity*price = 15015 [19:08:33]sum+1 = 15016 [19:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 369 21.10.2024 19:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69979 ФПД: 103974791174492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190835&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69979&fm=103974791174492&tin=02508201610067®Number=0000000000156251&sum=15000 [19:08:35]StoreToDocumentArchive [19:08:35]shift 194 fd 69979 [19:08:35]save to /storage/0194/doc_00069979 [19:08:35]save last doc name /storage/0194/doc_00069979 to /storage/kkm_last_doc_name [19:08:35]save OK [19:08:35]Clear old archive folders... [19:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:08:35]tlvbuf is 0114E920 [19:08:35]SAM_PROTO_ClearQueue [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 09 00 00 [19:08:35]Write to MH i2c: E2 08 00 88 1B 80 09 00 00 00 00 00 00 15 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [19:08:35]RAPDU: 90 00 [19:08:35]wFMCommunicate OK [19:08:35]SAM_PROTO_ClearQueue done [19:08:35]KKMCreateOFDPacket [19:08:35]OFDProtocolAddRootSTLVToBuf [19:08:35]FM_MakeSignedData [19:08:35]FM_MakeSignedData [19:08:35]SAM_PROTO_SignData [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 0D 01 02 [19:08:35]Write to MH i2c: E2 08 00 89 1B 80 0D 01 02 00 00 00 00 1D [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [19:08:35]RAPDU: 90 00 [19:08:35]wFMCommunicate OK [19:08:35]wFMCommunicate request_size=255 [19:08:35]MH_SAM_APDU [19:08:35]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 33 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 B3 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 11 01 00 35 04 06 00 5E 90 [19:08:35]Write to MH i2c: E2 02 01 8A 1B 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 33 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 B3 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 11 01 00 35 04 06 00 5E 90 00 00 E2 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [19:08:35]RAPDU: 90 00 [19:08:35]wFMCommunicate OK [19:08:35]wFMCommunicate request_size=9 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 0D 02 02 04 84 7E 59 5C [19:08:35]Write to MH i2c: E2 0C 00 8B 1B 80 0D 02 02 04 00 84 7E 59 5C 00 00 DF [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [19:08:35]RAPDU: 90 00 [19:08:35]wFMCommunicate OK [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 0D 03 02 [19:08:35]Write to MH i2c: E2 08 00 8C 1B 80 0D 03 02 00 00 00 00 22 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0B 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0B 00 8C 1B 00 29 47 11 67 C8 84 5F DE 90 00 94 [19:08:35]RAPDU: 29 47 11 67 C8 84 5F DE 90 00 [19:08:35]wFMCommunicate OK [19:08:35]SAM_PROTO_SignData done [19:08:35]FM_MakeSignedData done [19:08:35]CreateOFDProtocolMessage [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 11 00 00 [19:08:35]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 17 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 17 00 8D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [19:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:08:35]wFMCommunicate OK [19:08:35]CreateOFDProtocolMessage done [19:08:35]OFDSenderStorePacket 69979 [19:08:35]StoreOFDPacket docnum=69979 [19:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AB 0D 06 01 BC 60 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 33 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 B3 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 11 01 00 35 04 06 00 5E 90 84 7E 59 5C 29 47 11 67 C8 84 5F DE [19:08:35]CheckFolder [19:08:35]dirname=/storage/ofd_packets [19:08:35]CheckFolder done [19:08:35]ProducePacketName [19:08:35]name=ofd_packets/00069979 [19:08:35]NVStorageSaveData ofd_packets/00069979 [19:08:35]File name is /storage/ofd_packets/00069979 [19:08:35]Write 300 bytes [19:08:35]NVStorageSaveData done [19:08:35]OFDSenderStorePacket done [19:08:35]KKMCreateOFDPacket done [19:08:35]NVStorageSaveData kkm_last_timestamp [19:08:35]File name is /storage/kkm_last_timestamp [19:08:35]Write 4 bytes [19:08:35]NVStorageSaveData done [19:08:35]ExternCall_PrintAddStr [19:08:35]wPrintStart [19:08:35]Write to MH i2c: 01 00 00 8E 1B A9 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 07 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [19:08:35]RasterBufferAndPrint [19:08:35]line Счет N : (1)2885744 [19:08:35]line ИНН: 02508201610067 [19:08:35]line Контрольно-Кассовый Чек [19:08:35]line ПРОДАЖА [19:08:35]line ТРК (МРК, ГНК) : 71 [19:08:35]line Товар: 2711129700 [19:08:35]line ГАЗ-К-3 [19:08:35]line 3.860 * 38.90 [19:08:35]line = 150.15 [19:08:35]line НДС 12% НСП 1% [19:08:35]line > о реализуемом товаре [19:08:35]line ОКРУГЛЕНИЕ: -0.15 [19:08:35]line ИТОГО: 150.00 [19:08:35]line Внесено: 150.00 [19:08:35]line СДАЧА: 0.00 [19:08:35]line НСП 1% : 1.33 [19:08:35]line НДС 12% : 15.94 [19:08:35]line Наличными: 150.00 [19:08:35]line Безнал.: 0.00 [19:08:35]line Место: АЗС № 85 "Партнер Нефть" [19:08:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:08:35]line СНО: Общий режим [19:08:35]line Чек 369 21.10.2024 19:08 [19:08:35]line Смена: 194 ФФД: 1.0 [19:08:35]line ЗНМ: 0300000167 [19:08:35]line РНМ: 0000000000156251 [19:08:35]line Версия ККМ: v1.0 [19:08:35]line ФМ: 0000000000963346 [19:08:35]line ФД: 69979 [19:08:35]line ФПД: 103974791174492 [19:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190835&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69979&fm=103974791174492&tin=02508201610067®Number=0000000000156251&sum=15000 [19:08:35]OFD Sender: Processing packet 69979 [packets to send 18, broken 17] [19:08:35]ProducePacketName [19:08:35]name=ofd_packets/00069979 [19:08:35]OFD Sender: To server: pG, [19:08:35]CommunicateWithHost lk.salyk.kg:30040 [19:08:35]ConnectInit lk.salyk.kg [19:08:35]written 0, free lines is 4095 [19:08:36]Connected sock=10 [19:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AB 0D 06 01 BC 60 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 33 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 B3 A6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 11 01 00 35 04 06 00 5E 90 84 7E 59 5C 29 47 11 67 C8 84 5F DE [19:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A FD 47 00 35 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 11 01 00 F4 03 04 00 56 50 16 67 B6 04 01 00 00 B9 26 D9 1A 23 B0 1E F9 [19:08:36]CommunicateWithHost err = 0 [19:08:36]CheckOFDResponse [19:08:36]1017 (14) - 77093643461234 [19:08:36]1041 (16) - 0000000000963346 [19:08:36]1040 (4) - 69979 [19:08:36]1012 (4) - 21.10.2024 13:00 [19:08:36]1206 (1) - 0 [19:08:36]OFD Sender: Remove packet 69979 [19:08:36]ProducePacketName [19:08:36]name=ofd_packets/00069979 [19:08:36]NVStorageDeleteData [19:08:36]Write to MH i2c: 01 00 00 B9 1B D4 [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: 01 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: 01 07 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: 01 07 00 B9 1B 00 00 00 00 00 E4 0C CB [19:08:36]RasterBufferAndPrint [19:08:36]line [19:08:36]line [19:08:36]line [19:08:36]line [19:08:36]line [19:08:36]written 0, free lines is 3306 [19:08:36]MH_Cut [19:08:36]Write to MH i2c: D1 01 00 C0 1B 01 AD [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: D1 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: D1 01 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: D1 01 00 C0 1B 00 AC [19:08:36]Write to MH i2c: 01 00 00 C1 1B DC [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]OFD Sender: No OFD packet to send [19:08:37]*** Cut start [19:08:37]*** Partial cut [19:08:37]*** CUTSNS_PIN = 1 [19:08:37]*** CUTSNS_PIN = 0 [19:08:37]*** Brake cut motor [19:08:37]Read from MH i2c: 01 [19:08:37]MH_I2C_Read... [19:08:37]*** Stop cut motor [19:08:37]*** Cut end [19:08:37]Read from MH i2c: 01 07 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 07 00 C1 1B 00 00 00 00 00 FF 0F F1 [19:08:37]process_action close_receipt done [19:08:37]requested_data is exist [19:08:37]produce_requested_data [19:08:37]requested_item fm.sn is exist - process it [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 11 00 00 [19:08:37]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [19:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:08:37]wFMCommunicate OK [19:08:37]requested_item fd.num is exist - process it [19:08:37]SAM_PROTO_GetFieldsCounters [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 13 00 00 [19:08:37]Write to MH i2c: E2 08 00 C3 1B 80 13 00 00 00 00 00 00 5A [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 62 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 62 00 C3 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [19:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_GetFieldsCounters done [19:08:37]requested_item shift.num is exist - process it [19:08:37]requested_item shift.opened is exist - process it [19:08:37]req_shift_opened [19:08:37]FM_GetShiftState [19:08:37]SAM_PROTO_GetShiftState [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 13 01 00 [19:08:37]Write to MH i2c: E2 08 00 C4 1B 80 13 01 00 00 00 00 00 5C [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0E 00 C4 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [19:08:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_GetShiftState done [19:08:37]FM_GetShiftState done [19:08:37]req_shift_opened done [19:08:37]requested_item shift.open_date is exist - process it [19:08:37]req_shift_open_date [19:08:37]req_shift_open_date done [19:08:37]produce_requested_data done [19:08:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69979,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:08:37]process_action_free close_receipt [19:08:37]json_value_free [19:08:37]json_value_free done [19:08:37]process_json_proto returns [19:08:37]Send response to host [19:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69979,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:08:37]free response buf [19:08:37]execute_script done [19:08:37]execute_script returns [19:08:37]free content buf [19:08:37]Sock 7.Close socket [19:08:37]Sock 7.Thread stoped [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]accept exits with 9 [19:10:51]New connection [19:10:51]New thread 3067026788 created [19:10:51]Thread 3067170148 joined [19:10:51]Waiting for new connection... [19:10:51] Sock 9.Parse request [19:10:51]Sock 9.Check first char [19:10:51]Sock 9.First char is OK [19:10:51]request: POST /json_proto HTTP/1.0 [19:10:51]Method: POST [19:10:51]URL: /json_proto [19:10:51]Method is POST - this is cgi request [19:10:51]url: /json_proto [19:10:51]query_string will be loaded in cgi processing [19:10:51]execute_cgi json_proto POST (null) [19:10:51]execute_cgi path=json_proto method=POST [19:10:51]POST find Content-Length [19:10:51]Host: 172.17.50.3:8080 [19:10:51]Content-Length: 689 [19:10:51]Content-Type: application/json [19:10:51] [19:10:51]POST finish read [19:10:51]Found Content-Length = 689 [19:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 30.060, "sum" : 2320.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2320.00, "total" : 2320.00, "payments": [ { "type": 0, "sum" : 2320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:51]execute_script... [19:10: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)2885745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 30.060, "sum" : 2320.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2320.00, "total" : 2320.00, "payments": [ { "type": 0, "sum" : 2320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:51]POST & json_proto [19:10:51]process_json_proto [19:10:51]json parsed OK: [19:10:51]protocol is kg_v1.0 [19:10:51]action value=close_receipt [19:10:51]process_action close_receipt [19:10:51]cmd_close_receipt [19:10:51]MH_GetDate [19:10:51]Write to MH i2c: F0 00 00 C5 1B CF [19:10:51]Write i2c OK [19:10:51]MH_I2C_Read... [19:10:51]Read from MH i2c: F0 [19:10:51]MH_I2C_Read... [19:10:51]Read from MH i2c: F0 09 00 [19:10:51]MH_I2C_Read... [19:10:51]Read from MH i2c: F0 09 00 C5 1B 00 3C A7 16 67 6B 98 1E 66 BF [19:10:51]GetLastDocTimeStamp 1729537715 [19:10:51]current date 1729537852 [19:10:51]FM_GetShiftState [19:10:51]SAM_PROTO_GetShiftState [19:10:51]wFMCommunicate request_size=4 [19:10:51]MH_SAM_APDU [19:10:51]CAPDU: 80 13 01 00 [19:10:51]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [19:10:51]Write i2c OK [19:10:51]MH_I2C_Read... [19:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:51]Read from MH i2c: E2 [19:10:51]MH_I2C_Read... [19:10:51]Read from MH i2c: E2 0E 00 [19:10:51]MH_I2C_Read... [19:10:51]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8A [19:10:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:10:51]wFMCommunicate OK [19:10:51]SAM_PROTO_GetShiftState done [19:10:51]FM_GetShiftState done [19:10:51]opened in 1729469703 [19:10:51]opened+sec_in_day 1729556103 [19:10:51]quantity*price = 232063 [19:10:51]sum+1 = 232064 [19:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2320.00 Внесено: 2320.00 СДАЧА: 0.00 НСП 1% : 20.54 НДС 12% : 246.44 Наличными: 2320.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 370 21.10.2024 19:10 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69980 ФПД: 14776877228433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69980&fm=14776877228433&tin=02508201610067®Number=0000000000156251&sum=232000 [19:10:52]StoreToDocumentArchive [19:10:52]shift 194 fd 69980 [19:10:52]save to /storage/0194/doc_00069980 [19:10:52]save last doc name /storage/0194/doc_00069980 to /storage/kkm_last_doc_name [19:10:52]save OK [19:10:52]Clear old archive folders... [19:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:10:52]tlvbuf is 01161810 [19:10:52]SAM_PROTO_ClearQueue [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 09 00 00 [19:10:52]Write to MH i2c: E2 08 00 D3 1B 80 09 00 00 00 00 00 00 60 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 D3 1B 00 90 00 62 [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_ClearQueue done [19:10:52]KKMCreateOFDPacket [19:10:52]OFDProtocolAddRootSTLVToBuf [19:10:52]FM_MakeSignedData [19:10:52]FM_MakeSignedData [19:10:52]SAM_PROTO_SignData [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 01 02 [19:10:52]Write to MH i2c: E2 08 00 D4 1B 80 0D 01 02 00 00 00 00 68 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 D4 1B 00 90 00 63 [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=255 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7F 8A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 60 00 00 00 00 07 04 06 00 40 8A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3C A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 11 01 [19:10:52]Write to MH i2c: E2 02 01 D5 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7F 8A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 60 00 00 00 00 07 04 06 00 40 8A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3C A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 11 01 00 00 5A [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=16 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0D 70 82 84 A1 91 [19:10:52]Write to MH i2c: E2 13 00 D6 1B 80 0D 02 02 0B 00 00 35 04 06 00 0D 70 82 84 A1 91 00 00 75 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 03 02 [19:10:52]Write to MH i2c: E2 08 00 D7 1B 80 0D 03 02 00 00 00 00 6D [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0B 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0B 00 D7 1B 00 50 8B 67 7F 3C EC 8A 17 90 00 F8 [19:10:52]RAPDU: 50 8B 67 7F 3C EC 8A 17 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_SignData done [19:10:52]FM_MakeSignedData done [19:10:52]CreateOFDProtocolMessage [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 11 00 00 [19:10:52]Write to MH i2c: E2 08 00 D8 1B 80 11 00 00 00 00 00 00 6D [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 17 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 17 00 D8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [19:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:52]wFMCommunicate OK [19:10:52]CreateOFDProtocolMessage done [19:10:52]OFDSenderStorePacket 69980 [19:10:52]StoreOFDPacket docnum=69980 [19:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 13 5E 0D 01 99 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7F 8A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 60 00 00 00 00 07 04 06 00 40 8A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3C A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 11 01 00 35 04 06 00 0D 70 82 84 A1 91 50 8B 67 7F 3C EC 8A 17 [19:10:52]CheckFolder [19:10:52]dirname=/storage/ofd_packets [19:10:52]CheckFolder done [19:10:52]ProducePacketName [19:10:52]name=ofd_packets/00069980 [19:10:52]NVStorageSaveData ofd_packets/00069980 [19:10:52]File name is /storage/ofd_packets/00069980 [19:10:52]Write 307 bytes [19:10:52]NVStorageSaveData done [19:10:52]OFDSenderStorePacket done [19:10:52]KKMCreateOFDPacket done [19:10:52]NVStorageSaveData kkm_last_timestamp [19:10:52]File name is /storage/kkm_last_timestamp [19:10:52]Write 4 bytes [19:10:52]OFD Sender: Processing packet 69980 [packets to send 18, broken 17] [19:10:52]ProducePacketName [19:10:52]name=ofd_packets/00069980 [19:10:52]OFD Sender: To server: pG, [19:10:52]CommunicateWithHost lk.salyk.kg:30040 [19:10:52]ConnectInit lk.salyk.kg [19:10:52]NVStorageSaveData done [19:10:52]ExternCall_PrintAddStr [19:10:52]wPrintStart [19:10:52]Write to MH i2c: 01 00 00 D9 1B F4 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 07 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 07 00 D9 1B 00 00 00 00 00 FF 0F 09 [19:10:52]RasterBufferAndPrint [19:10:52]line Счет N : (1)2885745 [19:10:52]line ИНН: 02508201610067 [19:10:52]line Контрольно-Кассовый Чек [19:10:52]line ПРОДАЖА [19:10:52]line ТРК (МРК, ГНК) : 31 [19:10:52]line Товар: 2710194240 [19:10:52]line D-ENERGY Дт-К-2 [19:10:52]line 30.060 * 77.20 [19:10:52]line = 2320.63 [19:10:52]line НДС 12% НСП 1% [19:10:52]line > о реализуемом товаре [19:10:52]line ОКРУГЛЕНИЕ: -0.63 [19:10:52]line ИТОГО: 2320.00 [19:10:52]line Внесено: 2320.00 [19:10:52]line СДАЧА: 0.00 [19:10:52]line НСП 1% : 20.54 [19:10:52]line НДС 12% : 246.44 [19:10:52]line Наличными: 2320.00 [19:10:52]line Безнал.: 0.00 [19:10:52]line Место: АЗС № 85 "Партнер Нефть" [19:10:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:10:52]line СНО: Общий режим [19:10:52]line Чек 370 21.10.2024 19:10 [19:10:52]line Смена: 194 ФФД: 1.0 [19:10:53]line ЗНМ: 0300000167 [19:10:53]line РНМ: 0000000000156251 [19:10:53]line Версия ККМ: v1.0 [19:10:53]line ФМ: 0000000000963346 [19:10:53]line ФД: 69980 [19:10:53]line ФПД: 14776877228433 [19:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69980&fm=14776877228433&tin=02508201610067®Number=0000000000156251&sum=232000 [19:10:53]Connected sock=11 [19:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 13 5E 0D 01 99 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7F 8A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 60 00 00 00 00 07 04 06 00 40 8A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 3C A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 11 01 00 35 04 06 00 0D 70 82 84 A1 91 50 8B 67 7F 3C EC 8A 17 [19:10:53]written 0, free lines is 4095 [19:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4D 0B 47 00 43 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 11 01 00 F4 03 04 00 DF 50 16 67 B6 04 01 00 00 2A 21 14 92 3F 34 11 A6 [19:10:53]CommunicateWithHost err = 0 [19:10:53]CheckOFDResponse [19:10:53]1017 (14) - 77093643461234 [19:10:53]1041 (16) - 0000000000963346 [19:10:53]1040 (4) - 69980 [19:10:53]1012 (4) - 21.10.2024 13:02 [19:10:53]1206 (1) - 0 [19:10:53]OFD Sender: Remove packet 69980 [19:10:53]ProducePacketName [19:10:53]name=ofd_packets/00069980 [19:10:53]NVStorageDeleteData [19:10:53]Write to MH i2c: 01 00 00 04 1C 20 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 04 1C 00 00 00 00 00 FB 0C 2E [19:10:53]RasterBufferAndPrint [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]written 0, free lines is 3330 [19:10:53]MH_Cut [19:10:53]Write to MH i2c: D1 01 00 0B 1C 01 F9 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 01 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 01 00 0B 1C 00 F8 [19:10:53]Write to MH i2c: 01 00 00 0C 1C 28 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]OFD Sender: No OFD packet to send [19:10:54]*** Cut start [19:10:54]*** Partial cut [19:10:54]*** CUTSNS_PIN = 1 [19:10:54]*** CUTSNS_PIN = 0 [19:10:54]*** Brake cut motor [19:10:54]Read from MH i2c: 01 [19:10:54]MH_I2C_Read... [19:10:54]*** Stop cut motor [19:10:54]*** Cut end [19:10:54]Read from MH i2c: 01 07 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [19:10:54]process_action close_receipt done [19:10:54]requested_data is exist [19:10:54]produce_requested_data [19:10:54]requested_item fm.sn is exist - process it [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 11 00 00 [19:10:54]Write to MH i2c: E2 08 00 0D 1C 80 11 00 00 00 00 00 00 A3 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [19:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:54]wFMCommunicate OK [19:10:54]requested_item fd.num is exist - process it [19:10:54]SAM_PROTO_GetFieldsCounters [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 00 00 [19:10:54]Write to MH i2c: E2 08 00 0E 1C 80 13 00 00 00 00 00 00 A6 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 62 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 62 00 0E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [19:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_GetFieldsCounters done [19:10:55]requested_item shift.num is exist - process it [19:10:55]requested_item shift.opened is exist - process it [19:10:55]req_shift_opened [19:10:55]FM_GetShiftState [19:10:55]SAM_PROTO_GetShiftState [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 13 01 00 [19:10:55]Write to MH i2c: E2 08 00 0F 1C 80 13 01 00 00 00 00 00 A8 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0E 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0E 00 0F 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D4 [19:10:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_GetShiftState done [19:10:55]FM_GetShiftState done [19:10:55]req_shift_opened done [19:10:55]requested_item shift.open_date is exist - process it [19:10:55]req_shift_open_date [19:10:55]req_shift_open_date done [19:10:55]produce_requested_data done [19:10:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69980,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:10:55]process_action_free close_receipt [19:10:55]json_value_free [19:10:55]json_value_free done [19:10:55]process_json_proto returns [19:10:55]Send response to host [19:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69980,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:10:55]free response buf [19:10:55]execute_script done [19:10:55]execute_script returns [19:10:55]free content buf [19:10:55]Sock 9.Close socket [19:10:55]Sock 9.Thread stoped [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:14]accept exits with 7 [19:11:14]New connection [19:11:14]New thread 3067170148 created [19:11:14]Thread 3067026788 joined [19:11:14]Waiting for new connection... [19:11:14] Sock 7.Parse request [19:11:14]Sock 7.Check first char [19:11:14]Sock 7.First char is OK [19:11:14]request: POST /json_proto HTTP/1.0 [19:11:14]Method: POST [19:11:14]URL: /json_proto [19:11:14]Method is POST - this is cgi request [19:11:14]url: /json_proto [19:11:14]query_string will be loaded in cgi processing [19:11:14]execute_cgi json_proto POST (null) [19:11:14]execute_cgi path=json_proto method=POST [19:11:14]POST find Content-Length [19:11:14]Host: 172.17.50.3:8080 [19:11:14]Content-Length: 770 [19:11:14]Content-Type: application/json [19:11:14] [19:11:14]POST finish read [19:11:14]Found Content-Length = 770 [19:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:14]execute_script... [19:11: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)2885747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:14]POST & json_proto [19:11:14]process_json_proto [19:11:14]json parsed OK: [19:11:14]protocol is kg_v1.0 [19:11:14]action value=close_receipt [19:11:14]process_action close_receipt [19:11:14]cmd_close_receipt [19:11:14]MH_GetDate [19:11:14]Write to MH i2c: F0 00 00 10 1C 1B [19:11:14]Write i2c OK [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: F0 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: F0 09 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: F0 09 00 10 1C 00 53 A7 16 67 6B 98 1E 66 22 [19:11:14]GetLastDocTimeStamp 1729537852 [19:11:14]current date 1729537875 [19:11:14]FM_GetShiftState [19:11:14]SAM_PROTO_GetShiftState [19:11:14]wFMCommunicate request_size=4 [19:11:14]MH_SAM_APDU [19:11:14]CAPDU: 80 13 01 00 [19:11:14]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [19:11:14]Write i2c OK [19:11:14]MH_I2C_Read... [19:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:14]Read from MH i2c: E2 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 0E 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D6 [19:11:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:11:14]wFMCommunicate OK [19:11:14]SAM_PROTO_GetShiftState done [19:11:14]FM_GetShiftState done [19:11:14]opened in 1729469703 [19:11:14]opened+sec_in_day 1729556103 [19:11:14]quantity*price = 100015 [19:11:14]sum+1 = 100017 [19:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 371 21.10.2024 19:11 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69981 ФПД: 167972960761772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69981&fm=167972960761772&tin=02508201610067®Number=0000000000156251&sum=100016 [19:11:15]StoreToDocumentArchive [19:11:15]shift 194 fd 69981 [19:11:15]save to /storage/0194/doc_00069981 [19:11:15]save last doc name /storage/0194/doc_00069981 to /storage/kkm_last_doc_name [19:11:15]save OK [19:11:15]Clear old archive folders... [19:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:15]tlvbuf is 011AD870 [19:11:15]SAM_PROTO_ClearQueue [19:11:15]wFMCommunicate request_size=4 [19:11:15]MH_SAM_APDU [19:11:15]CAPDU: 80 09 00 00 [19:11:15]Write to MH i2c: E2 08 00 1E 1C 80 09 00 00 00 00 00 00 AC [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [19:11:15]RAPDU: 90 00 [19:11:15]wFMCommunicate OK [19:11:15]SAM_PROTO_ClearQueue done [19:11:15]KKMCreateOFDPacket [19:11:15]OFDProtocolAddRootSTLVToBuf [19:11:15]FM_MakeSignedData [19:11:15]FM_MakeSignedData [19:11:15]SAM_PROTO_SignData [19:11:15]wFMCommunicate request_size=4 [19:11:15]MH_SAM_APDU [19:11:15]CAPDU: 80 0D 01 02 [19:11:15]Write to MH i2c: E2 08 00 1F 1C 80 0D 01 02 00 00 00 00 B4 [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [19:11:15]RAPDU: 90 00 [19:11:15]wFMCommunicate OK [19:11:15]wFMCommunicate request_size=255 [19:11:15]MH_SAM_APDU [19:11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 53 A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 11 01 00 35 04 06 00 98 [19:11:15]Write to MH i2c: E2 02 01 20 1C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 53 A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 11 01 00 35 04 06 00 98 00 00 0B [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [19:11:15]RAPDU: 90 00 [19:11:15]wFMCommunicate OK [19:11:15]wFMCommunicate request_size=10 [19:11:15]MH_SAM_APDU [19:11:15]CAPDU: 80 0D 02 02 05 C5 40 A8 77 AC [19:11:15]Write to MH i2c: E2 0D 00 21 1C 80 0D 02 02 05 00 C5 40 A8 77 AC 00 00 91 [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [19:11:15]RAPDU: 90 00 [19:11:15]wFMCommunicate OK [19:11:15]wFMCommunicate request_size=4 [19:11:15]MH_SAM_APDU [19:11:15]CAPDU: 80 0D 03 02 [19:11:15]Write to MH i2c: E2 08 00 22 1C 80 0D 03 02 00 00 00 00 B9 [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 0B 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 0B 00 22 1C 00 EB E2 20 58 68 E0 94 DC 90 00 B7 [19:11:15]RAPDU: EB E2 20 58 68 E0 94 DC 90 00 [19:11:15]wFMCommunicate OK [19:11:15]SAM_PROTO_SignData done [19:11:15]FM_MakeSignedData done [19:11:15]CreateOFDProtocolMessage [19:11:15]wFMCommunicate request_size=4 [19:11:15]MH_SAM_APDU [19:11:15]CAPDU: 80 11 00 00 [19:11:15]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:15]Read from MH i2c: E2 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 17 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [19:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:15]wFMCommunicate OK [19:11:15]CreateOFDProtocolMessage done [19:11:15]OFDSenderStorePacket 69981 [19:11:15]StoreOFDPacket docnum=69981 [19:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 33 07 01 86 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 53 A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 11 01 00 35 04 06 00 98 C5 40 A8 77 AC EB E2 20 58 68 E0 94 DC [19:11:15]CheckFolder [19:11:15]dirname=/storage/ofd_packets [19:11:15]CheckFolder done [19:11:15]ProducePacketName [19:11:15]name=ofd_packets/00069981 [19:11:15]NVStorageSaveData ofd_packets/00069981 [19:11:15]File name is /storage/ofd_packets/00069981 [19:11:15]Write 301 bytes [19:11:15]NVStorageSaveData done [19:11:15]OFDSenderStorePacket done [19:11:15]KKMCreateOFDPacket done [19:11:15]NVStorageSaveData kkm_last_timestamp [19:11:15]File name is /storage/kkm_last_timestamp [19:11:15]Write 4 bytes [19:11:15]NVStorageSaveData done [19:11:15]ExternCall_PrintAddStr [19:11:15]wPrintStart [19:11:15]Write to MH i2c: 01 00 00 24 1C 40 [19:11:15]Write i2c OK [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: 01 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: 01 07 00 [19:11:15]MH_I2C_Read... [19:11:15]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 FF 0F 55 [19:11:15]RasterBufferAndPrint [19:11:15]line Счет N : (1)2885747 [19:11:15]line ИНН: 02508201610067 [19:11:15]line Контрольно-Кассовый Чек [19:11:15]line ПРОДАЖА [19:11:15]line ТРК (МРК, ГНК) : 12 [19:11:15]line Товар: 2710124130 [19:11:15]line Аи-92-К-5 [19:11:15]line 14.950 * 66.90 [19:11:15]line = 1000.16 [19:11:15]line НДС 12% НСП 1% [19:11:15]line > о реализуемом товаре [19:11:15]line ИТОГО: 1000.16 [19:11:15]line НСП 1% : 8.85 [19:11:15]line НДС 12% : 106.21 [19:11:15]line Наличными: 0.00 [19:11:15]line Безнал.: 1000.16 [19:11:15]line Место: АЗС № 85 "Партнер Нефть" [19:11:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:11:15]line СНО: Общий режим [19:11:15]line Чек 371 21.10.2024 19:11 [19:11:15]line Смена: 194 ФФД: 1.0 [19:11:15]line ЗНМ: 0300000167 [19:11:15]line РНМ: 0000000000156251 [19:11:15]line Версия ККМ: v1.0 [19:11:15]line Платежная система: Mbank [19:11:15]line ФМ: 0000000000963346 [19:11:15]line ФД: 69981 [19:11:15]line ФПД: 167972960761772 [19:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69981&fm=167972960761772&tin=02508201610067®Number=0000000000156251&sum=100016 [19:11:16]written 0, free lines is 4095 [19:11:16]OFD Sender: Processing packet 69981 [packets to send 18, broken 17] [19:11:16]ProducePacketName [19:11:16]name=ofd_packets/00069981 [19:11:16]OFD Sender: To server: pG, [19:11:16]CommunicateWithHost lk.salyk.kg:30040 [19:11:16]ConnectInit lk.salyk.kg [19:11:16]Connected sock=10 [19:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 33 07 01 86 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 53 A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 11 01 00 35 04 06 00 98 C5 40 A8 77 AC EB E2 20 58 68 E0 94 DC [19:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 53 7A 47 00 0B 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 39 36 33 33 34 36 10 04 04 00 5D 11 01 00 F4 03 04 00 F6 50 16 67 B6 04 01 00 00 7F 7E 5C 3D B2 24 96 B2 [19:11:16]CommunicateWithHost err = 0 [19:11:16]CheckOFDResponse [19:11:16]1017 (14) - 77093643461234 [19:11:16]1041 (16) - 0000000000963346 [19:11:16]1040 (4) - 69981 [19:11:16]1012 (4) - 21.10.2024 13:02 [19:11:16]1206 (1) - 0 [19:11:16]OFD Sender: Remove packet 69981 [19:11:16]ProducePacketName [19:11:16]name=ofd_packets/00069981 [19:11:16]NVStorageDeleteData [19:11:16]Write to MH i2c: 01 00 00 4D 1C 69 [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 07 00 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 07 00 4D 1C 00 00 00 00 00 23 0D A0 [19:11:16]RasterBufferAndPrint [19:11:16]line [19:11:16]line [19:11:16]line [19:11:16]line [19:11:16]line [19:11:16]written 0, free lines is 3369 [19:11:16]MH_Cut [19:11:16]Write to MH i2c: D1 01 00 54 1C 01 42 [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: D1 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: D1 01 00 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: D1 01 00 54 1C 00 41 [19:11:16]Write to MH i2c: 01 00 00 55 1C 71 [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:17]OFD Sender: No OFD packet to send [19:11:17]*** Cut start [19:11:17]*** Partial cut [19:11:17]*** CUTSNS_PIN = 1 [19:11:17]*** CUTSNS_PIN = 0 [19:11:17]*** Brake cut motor [19:11:17]Read from MH i2c: 01 [19:11:17]MH_I2C_Read... [19:11:17]*** Stop cut motor [19:11:17]*** Cut end [19:11:17]Read from MH i2c: 01 07 00 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 FF 0F 86 [19:11:17]process_action close_receipt done [19:11:17]requested_data is exist [19:11:17]produce_requested_data [19:11:17]requested_item fm.sn is exist - process it [19:11:17]wFMCommunicate request_size=4 [19:11:17]MH_SAM_APDU [19:11:17]CAPDU: 80 11 00 00 [19:11:17]Write to MH i2c: E2 08 00 56 1C 80 11 00 00 00 00 00 00 EC [19:11:17]Write i2c OK [19:11:17]MH_I2C_Read... [19:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:17]Read from MH i2c: E2 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: E2 17 00 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: E2 17 00 56 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [19:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:11:17]wFMCommunicate OK [19:11:17]requested_item fd.num is exist - process it [19:11:17]SAM_PROTO_GetFieldsCounters [19:11:17]wFMCommunicate request_size=4 [19:11:17]MH_SAM_APDU [19:11:17]CAPDU: 80 13 00 00 [19:11:17]Write to MH i2c: E2 08 00 57 1C 80 13 00 00 00 00 00 00 EF [19:11:17]Write i2c OK [19:11:17]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 62 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 62 00 57 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [19:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_GetFieldsCounters done [19:11:18]requested_item shift.num is exist - process it [19:11:18]requested_item shift.opened is exist - process it [19:11:18]req_shift_opened [19:11:18]FM_GetShiftState [19:11:18]SAM_PROTO_GetShiftState [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 13 01 00 [19:11:18]Write to MH i2c: E2 08 00 58 1C 80 13 01 00 00 00 00 00 F1 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 58 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1D [19:11:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_GetShiftState done [19:11:18]FM_GetShiftState done [19:11:18]req_shift_opened done [19:11:18]requested_item shift.open_date is exist - process it [19:11:18]req_shift_open_date [19:11:18]req_shift_open_date done [19:11:18]produce_requested_data done [19:11:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69981,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:11:18]process_action_free close_receipt [19:11:18]json_value_free [19:11:18]json_value_free done [19:11:18]process_json_proto returns [19:11:18]Send response to host [19:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69981,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:11:18]free response buf [19:11:18]execute_script done [19:11:18]execute_script returns [19:11:18]free content buf [19:11:18]Sock 7.Close socket [19:11:18]Sock 7.Thread stoped [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:25]accept exits with 9 [19:12:25]New connection [19:12:25]New thread 3067026788 created [19:12:25]Thread 3067170148 joined [19:12:25]Waiting for new connection... [19:12:25] Sock 9.Parse request [19:12:25]Sock 9.Check first char [19:12:25]Sock 9.First char is OK [19:12:25]request: POST /json_proto HTTP/1.0 [19:12:25]Method: POST [19:12:25]URL: /json_proto [19:12:25]Method is POST - this is cgi request [19:12:25]url: /json_proto [19:12:25]query_string will be loaded in cgi processing [19:12:25]execute_cgi json_proto POST (null) [19:12:25]execute_cgi path=json_proto method=POST [19:12:25]POST find Content-Length [19:12:25]Host: 172.17.50.3:8080 [19:12:25]Content-Length: 767 [19:12:25]Content-Type: application/json [19:12:25] [19:12:25]POST finish read [19:12:25]Found Content-Length = 767 [19:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 51.170, "sum" : 3899.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3899.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:25]execute_script... [19:12: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)2885746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 51.170, "sum" : 3899.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3899.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:25]POST & json_proto [19:12:25]process_json_proto [19:12:25]json parsed OK: [19:12:25]protocol is kg_v1.0 [19:12:25]action value=close_receipt [19:12:25]process_action close_receipt [19:12:25]cmd_close_receipt [19:12:25]MH_GetDate [19:12:25]Write to MH i2c: F0 00 00 59 1C 64 [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 09 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: F0 09 00 59 1C 00 9B A7 16 67 6B 98 1E 66 B3 [19:12:25]GetLastDocTimeStamp 1729537875 [19:12:25]current date 1729537947 [19:12:25]FM_GetShiftState [19:12:25]SAM_PROTO_GetShiftState [19:12:25]wFMCommunicate request_size=4 [19:12:25]MH_SAM_APDU [19:12:25]CAPDU: 80 13 01 00 [19:12:25]Write to MH i2c: E2 08 00 5A 1C 80 13 01 00 00 00 00 00 F3 [19:12:25]Write i2c OK [19:12:25]MH_I2C_Read... [19:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:25]Read from MH i2c: E2 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0E 00 [19:12:25]MH_I2C_Read... [19:12:25]Read from MH i2c: E2 0E 00 5A 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1F [19:12:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:12:25]wFMCommunicate OK [19:12:25]SAM_PROTO_GetShiftState done [19:12:25]FM_GetShiftState done [19:12:25]opened in 1729469703 [19:12:25]opened+sec_in_day 1729556103 [19:12:25]quantity*price = 389915 [19:12:25]sum+1 = 389916 [19:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3899.15 НСП 1% : 34.51 НДС 12% : 414.07 Наличными: 0.00 Безнал.: 3899.15 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 372 21.10.2024 19:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69982 ФПД: 241049506920396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69982&fm=241049506920396&tin=02508201610067®Number=0000000000156251&sum=389915 [19:12:26]StoreToDocumentArchive [19:12:26]shift 194 fd 69982 [19:12:26]save to /storage/0194/doc_00069982 [19:12:26]save last doc name /storage/0194/doc_00069982 to /storage/kkm_last_doc_name [19:12:26]save OK [19:12:26]Clear old archive folders... [19:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:26]tlvbuf is 0111D6E0 [19:12:26]SAM_PROTO_ClearQueue [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 09 00 00 [19:12:26]Write to MH i2c: E2 08 00 67 1C 80 09 00 00 00 00 00 00 F5 [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]SAM_PROTO_ClearQueue done [19:12:26]KKMCreateOFDPacket [19:12:26]OFDProtocolAddRootSTLVToBuf [19:12:26]FM_MakeSignedData [19:12:26]FM_MakeSignedData [19:12:26]SAM_PROTO_SignData [19:12:26]wFMCommunicate request_size=4 [19:12:26]MH_SAM_APDU [19:12:26]CAPDU: 80 0D 01 02 [19:12:26]Write to MH i2c: E2 08 00 68 1C 80 0D 01 02 00 00 00 00 FD [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:26]Read from MH i2c: E2 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 [19:12:26]MH_I2C_Read... [19:12:26]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [19:12:26]RAPDU: 90 00 [19:12:26]wFMCommunicate OK [19:12:26]wFMCommunicate request_size=255 [19:12:26]MH_SAM_APDU [19:12: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 C7 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1B F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B F3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 9B A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 11 01 00 35 04 06 00 DB 3B B6 3B [19:12:26]Write to MH i2c: E2 02 01 69 1C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 C7 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1B F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B F3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 9B A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 11 01 00 35 04 06 00 DB 3B B6 3B 00 00 6C [19:12:26]Write i2c OK [19:12:26]MH_I2C_Read... [19:12:27]OFD Sender: No OFD packet to send [19:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:27]Read from MH i2c: E2 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 03 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [19:12:27]RAPDU: 90 00 [19:12:27]wFMCommunicate OK [19:12:27]wFMCommunicate request_size=7 [19:12:27]MH_SAM_APDU [19:12:27]CAPDU: 80 0D 02 02 02 B7 CC [19:12:27]Write to MH i2c: E2 0A 00 6A 1C 80 0D 02 02 02 00 B7 CC 00 00 87 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:27]Read from MH i2c: E2 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 03 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [19:12:27]RAPDU: 90 00 [19:12:27]wFMCommunicate OK [19:12:27]wFMCommunicate request_size=4 [19:12:27]MH_SAM_APDU [19:12:27]CAPDU: 80 0D 03 02 [19:12:27]Write to MH i2c: E2 08 00 6B 1C 80 0D 03 02 00 00 00 00 02 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:27]Read from MH i2c: E2 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 0B 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 0B 00 6B 1C 00 50 9E 24 27 94 8B 89 53 90 00 37 [19:12:27]RAPDU: 50 9E 24 27 94 8B 89 53 90 00 [19:12:27]wFMCommunicate OK [19:12:27]SAM_PROTO_SignData done [19:12:27]FM_MakeSignedData done [19:12:27]CreateOFDProtocolMessage [19:12:27]wFMCommunicate request_size=4 [19:12:27]MH_SAM_APDU [19:12:27]CAPDU: 80 11 00 00 [19:12:27]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:27]Read from MH i2c: E2 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 17 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [19:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:12:27]wFMCommunicate OK [19:12:27]CreateOFDProtocolMessage done [19:12:27]OFDSenderStorePacket 69982 [19:12:27]StoreOFDPacket docnum=69982 [19:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 27 F8 04 01 07 4B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 C7 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1B F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B F3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 9B A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 11 01 00 35 04 06 00 DB 3B B6 3B B7 CC 50 9E 24 27 94 8B 89 53 [19:12:27]CheckFolder [19:12:27]dirname=/storage/ofd_packets [19:12:27]CheckFolder done [19:12:27]ProducePacketName [19:12:27]name=ofd_packets/00069982 [19:12:27]NVStorageSaveData ofd_packets/00069982 [19:12:27]File name is /storage/ofd_packets/00069982 [19:12:27]Write 298 bytes [19:12:27]NVStorageSaveData done [19:12:27]OFDSenderStorePacket done [19:12:27]KKMCreateOFDPacket done [19:12:27]NVStorageSaveData kkm_last_timestamp [19:12:27]File name is /storage/kkm_last_timestamp [19:12:27]Write 4 bytes [19:12:27]NVStorageSaveData done [19:12:27]ExternCall_PrintAddStr [19:12:27]wPrintStart [19:12:27]Write to MH i2c: 01 00 00 6D 1C 89 [19:12:27]Write i2c OK [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 07 00 [19:12:27]MH_I2C_Read... [19:12:27]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 FF 0F 9E [19:12:27]RasterBufferAndPrint [19:12:27]line Счет N : (1)2885746 [19:12:27]line ИНН: 02508201610067 [19:12:27]line Контрольно-Кассовый Чек [19:12:27]line ПРОДАЖА [19:12:27]line ТРК (МРК, ГНК) : 51 [19:12:27]line Товар: 2710194210 [19:12:27]line ДТ-К-5 [19:12:27]line 51.170 * 76.20 [19:12:27]line = 3899.15 [19:12:27]line НДС 12% НСП 1% [19:12:27]line > о реализуемом товаре [19:12:27]line ИТОГО: 3899.15 [19:12:27]line НСП 1% : 34.51 [19:12:27]line НДС 12% : 414.07 [19:12:27]line Наличными: 0.00 [19:12:27]line Безнал.: 3899.15 [19:12:27]line Место: АЗС № 85 "Партнер Нефть" [19:12:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:12:27]line СНО: Общий режим [19:12:27]line Чек 372 21.10.2024 19:12 [19:12:27]line Смена: 194 ФФД: 1.0 [19:12:27]line ЗНМ: 0300000167 [19:12:27]line РНМ: 0000000000156251 [19:12:27]line Версия ККМ: v1.0 [19:12:27]line Платежная система: Mbank [19:12:27]line ФМ: 0000000000963346 [19:12:27]line ФД: 69982 [19:12:27]line ФПД: 241049506920396 [19:12:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69982&fm=241049506920396&tin=02508201610067®Number=0000000000156251&sum=389915 [19:12:27]OFD Sender: Processing packet 69982 [packets to send 18, broken 17] [19:12:27]ProducePacketName [19:12:27]name=ofd_packets/00069982 [19:12:27]OFD Sender: To server: pG, [19:12:27]CommunicateWithHost lk.salyk.kg:30040 [19:12:27]ConnectInit lk.salyk.kg [19:12:27]written 0, free lines is 4095 [19:12:27]Connected sock=10 [19:12:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 27 F8 04 01 07 4B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 C7 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1B F3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B F3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B F3 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 9B A7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 11 01 00 35 04 06 00 DB 3B B6 3B B7 CC 50 9E 24 27 94 8B 89 53 [19:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E5 47 47 00 33 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 11 01 00 F4 03 04 00 3E 51 16 67 B6 04 01 00 00 AA B2 A3 7F 12 D7 27 F3 [19:12:28]CommunicateWithHost err = 0 [19:12:28]CheckOFDResponse [19:12:28]1017 (14) - 77093643461234 [19:12:28]1041 (16) - 0000000000963346 [19:12:28]1040 (4) - 69982 [19:12:28]1012 (4) - 21.10.2024 13:03 [19:12:28]1206 (1) - 0 [19:12:28]OFD Sender: Remove packet 69982 [19:12:28]ProducePacketName [19:12:28]name=ofd_packets/00069982 [19:12:28]NVStorageDeleteData [19:12:28]Write to MH i2c: 01 00 00 96 1C B2 [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: 01 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: 01 07 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: 01 07 00 96 1C 00 00 00 00 00 25 0D EB [19:12:28]RasterBufferAndPrint [19:12:28]line [19:12:28]line [19:12:28]line [19:12:28]line [19:12:28]line [19:12:28]written 0, free lines is 3371 [19:12:28]MH_Cut [19:12:28]Write to MH i2c: D1 01 00 9D 1C 01 8B [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: D1 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: D1 01 00 [19:12:28]MH_I2C_Read... [19:12:28]Read from MH i2c: D1 01 00 9D 1C 00 8A [19:12:28]Write to MH i2c: 01 00 00 9E 1C BA [19:12:28]Write i2c OK [19:12:28]MH_I2C_Read... [19:12:28]OFD Sender: No OFD packet to send [19:12:28]*** Cut start [19:12:28]*** Partial cut [19:12:28]*** CUTSNS_PIN = 1 [19:12:28]*** CUTSNS_PIN = 0 [19:12:29]*** Brake cut motor [19:12:29]Read from MH i2c: 01 [19:12:29]MH_I2C_Read... [19:12:29]*** Stop cut motor [19:12:29]*** Cut end [19:12:29]Read from MH i2c: 01 07 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 FF 0F CF [19:12:29]process_action close_receipt done [19:12:29]requested_data is exist [19:12:29]produce_requested_data [19:12:29]requested_item fm.sn is exist - process it [19:12:29]wFMCommunicate request_size=4 [19:12:29]MH_SAM_APDU [19:12:29]CAPDU: 80 11 00 00 [19:12:29]Write to MH i2c: E2 08 00 9F 1C 80 11 00 00 00 00 00 00 35 [19:12:29]Write i2c OK [19:12:29]MH_I2C_Read... [19:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:29]Read from MH i2c: E2 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 17 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 17 00 9F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [19:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:12:29]wFMCommunicate OK [19:12:29]requested_item fd.num is exist - process it [19:12:29]SAM_PROTO_GetFieldsCounters [19:12:29]wFMCommunicate request_size=4 [19:12:29]MH_SAM_APDU [19:12:29]CAPDU: 80 13 00 00 [19:12:29]Write to MH i2c: E2 08 00 A0 1C 80 13 00 00 00 00 00 00 38 [19:12:29]Write i2c OK [19:12:29]MH_I2C_Read... [19:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:29]Read from MH i2c: E2 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 62 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 62 00 A0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [19:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:29]wFMCommunicate OK [19:12:29]SAM_PROTO_GetFieldsCounters done [19:12:29]requested_item shift.num is exist - process it [19:12:29]requested_item shift.opened is exist - process it [19:12:29]req_shift_opened [19:12:29]FM_GetShiftState [19:12:29]SAM_PROTO_GetShiftState [19:12:29]wFMCommunicate request_size=4 [19:12:29]MH_SAM_APDU [19:12:29]CAPDU: 80 13 01 00 [19:12:29]Write to MH i2c: E2 08 00 A1 1C 80 13 01 00 00 00 00 00 3A [19:12:29]Write i2c OK [19:12:29]MH_I2C_Read... [19:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:29]Read from MH i2c: E2 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 0E 00 [19:12:29]MH_I2C_Read... [19:12:29]Read from MH i2c: E2 0E 00 A1 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 66 [19:12:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:12:29]wFMCommunicate OK [19:12:29]SAM_PROTO_GetShiftState done [19:12:29]FM_GetShiftState done [19:12:29]req_shift_opened done [19:12:29]requested_item shift.open_date is exist - process it [19:12:29]req_shift_open_date [19:12:29]req_shift_open_date done [19:12:29]produce_requested_data done [19:12:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69982,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:12:29]process_action_free close_receipt [19:12:29]json_value_free [19:12:29]json_value_free done [19:12:29]process_json_proto returns [19:12:29]Send response to host [19:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69982,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:12:29]free response buf [19:12:29]execute_script done [19:12:29]execute_script returns [19:12:29]free content buf [19:12:29]Sock 9.Close socket [19:12:29]Sock 9.Thread stoped [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:49]accept exits with 7 [19:14:49]New connection [19:14:49]New thread 3067170148 created [19:14:49]Thread 3067026788 joined [19:14:49]Waiting for new connection... [19:14:49] Sock 7.Parse request [19:14:49]Sock 7.Check first char [19:14:49]Sock 7.First char is OK [19:14:49]request: POST /json_proto HTTP/1.0 [19:14:49]Method: POST [19:14:49]URL: /json_proto [19:14:49]Method is POST - this is cgi request [19:14:49]url: /json_proto [19:14:49]query_string will be loaded in cgi processing [19:14:49]execute_cgi json_proto POST (null) [19:14:49]execute_cgi path=json_proto method=POST [19:14:49]POST find Content-Length [19:14:49]Host: 172.17.50.3:8080 [19:14:49]Content-Length: 683 [19:14:49]Content-Type: application/json [19:14:49] [19:14:49]POST finish read [19:14:49]Found Content-Length = 683 [19:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885748", "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" ] } } [19:14:49]execute_script... [19:14: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)2885748", "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" ] } } [19:14:49]POST & json_proto [19:14:49]process_json_proto [19:14:49]json parsed OK: [19:14:49]protocol is kg_v1.0 [19:14:49]action value=close_receipt [19:14:49]process_action close_receipt [19:14:49]cmd_close_receipt [19:14:49]MH_GetDate [19:14:49]Write to MH i2c: F0 00 00 A2 1C AD [19:14:49]Write i2c OK [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 09 00 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 09 00 A2 1C 00 2A A8 16 67 6B 98 1E 66 8C [19:14:49]GetLastDocTimeStamp 1729537947 [19:14:49]current date 1729538090 [19:14:49]FM_GetShiftState [19:14:49]SAM_PROTO_GetShiftState [19:14:49]wFMCommunicate request_size=4 [19:14:49]MH_SAM_APDU [19:14:49]CAPDU: 80 13 01 00 [19:14:49]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [19:14:49]Write i2c OK [19:14:49]MH_I2C_Read... [19:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:49]Read from MH i2c: E2 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: E2 0E 00 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 68 [19:14:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:14:49]wFMCommunicate OK [19:14:49]SAM_PROTO_GetShiftState done [19:14:49]FM_GetShiftState done [19:14:49]opened in 1729469703 [19:14:49]opened+sec_in_day 1729556103 [19:14:49]quantity*price = 100021 [19:14:49]sum+1 = 100023 [19:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 373 21.10.2024 19:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69983 ФПД: 76078279845146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69983&fm=76078279845146&tin=02508201610067®Number=0000000000156251&sum=100000 [19:14:50]StoreToDocumentArchive [19:14:50]shift 194 fd 69983 [19:14:50]save to /storage/0194/doc_00069983 [19:14:50]save last doc name /storage/0194/doc_00069983 to /storage/kkm_last_doc_name [19:14:50]save OK [19:14:50]Clear old archive folders... [19:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:50]tlvbuf is 011A1A70 [19:14:50]SAM_PROTO_ClearQueue [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 09 00 00 [19:14:50]Write to MH i2c: E2 08 00 B0 1C 80 09 00 00 00 00 00 00 3E [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 B0 1C 00 90 00 40 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]SAM_PROTO_ClearQueue done [19:14:50]KKMCreateOFDPacket [19:14:50]OFDProtocolAddRootSTLVToBuf [19:14:50]FM_MakeSignedData [19:14:50]FM_MakeSignedData [19:14:50]SAM_PROTO_SignData [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 0D 01 02 [19:14:50]Write to MH i2c: E2 08 00 B1 1C 80 0D 01 02 00 00 00 00 46 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 B1 1C 00 90 00 41 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]wFMCommunicate request_size=255 [19:14:50]MH_SAM_APDU [19:14: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 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 75 01 00 00 F4 03 04 00 2A A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 11 01 00 35 04 06 00 45 [19:14:50]Write to MH i2c: E2 02 01 B2 1C 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 75 01 00 00 F4 03 04 00 2A A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 11 01 00 35 04 06 00 45 00 00 29 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]wFMCommunicate request_size=10 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 0D 02 02 05 31 5A D8 65 1A [19:14:50]Write to MH i2c: E2 0D 00 B3 1C 80 0D 02 02 05 00 31 5A D8 65 1A 00 00 35 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 0D 03 02 [19:14:50]Write to MH i2c: E2 08 00 B4 1C 80 0D 03 02 00 00 00 00 4B [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 0B 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 0B 00 B4 1C 00 A8 F4 31 EF F6 3D 8F 5D 90 00 27 [19:14:50]RAPDU: A8 F4 31 EF F6 3D 8F 5D 90 00 [19:14:50]wFMCommunicate OK [19:14:50]SAM_PROTO_SignData done [19:14:50]FM_MakeSignedData done [19:14:50]CreateOFDProtocolMessage [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 11 00 00 [19:14:50]Write to MH i2c: E2 08 00 B5 1C 80 11 00 00 00 00 00 00 4B [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:51]Read from MH i2c: E2 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 17 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 17 00 B5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [19:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:14:51]wFMCommunicate OK [19:14:51]CreateOFDProtocolMessage done [19:14:51]OFDSenderStorePacket 69983 [19:14:51]StoreOFDPacket docnum=69983 [19:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 74 07 01 CE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 01 00 00 F4 03 04 00 2A A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 11 01 00 35 04 06 00 45 31 5A D8 65 1A A8 F4 31 EF F6 3D 8F 5D [19:14:51]CheckFolder [19:14:51]dirname=/storage/ofd_packets [19:14:51]CheckFolder done [19:14:51]ProducePacketName [19:14:51]name=ofd_packets/00069983 [19:14:51]NVStorageSaveData ofd_packets/00069983 [19:14:51]File name is /storage/ofd_packets/00069983 [19:14:51]Write 301 bytes [19:14:51]NVStorageSaveData done [19:14:51]OFDSenderStorePacket done [19:14:51]KKMCreateOFDPacket done [19:14:51]NVStorageSaveData kkm_last_timestamp [19:14:51]File name is /storage/kkm_last_timestamp [19:14:51]Write 4 bytes [19:14:51]NVStorageSaveData done [19:14:51]ExternCall_PrintAddStr [19:14:51]wPrintStart [19:14:51]Write to MH i2c: 01 00 00 B6 1C D2 [19:14:51]OFD Sender: Processing packet 69983 [packets to send 18, broken 17] [19:14:51]ProducePacketName [19:14:51]name=ofd_packets/00069983 [19:14:51]OFD Sender: To server: pG, [19:14:51]CommunicateWithHost lk.salyk.kg:30040 [19:14:51]ConnectInit lk.salyk.kg [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 B6 1C 00 00 00 00 00 FF 0F E7 [19:14:51]RasterBufferAndPrint [19:14:51]line Счет N : (1)2885748 [19:14:51]line ИНН: 02508201610067 [19:14:51]line Контрольно-Кассовый Чек [19:14:51]line ПРОДАЖА [19:14:51]line ТРК (МРК, ГНК) : 43 [19:14:51]line Товар: 2710124500 [19:14:51]line Аи-95-К-5 [19:14:51]line 13.480 * 74.20 [19:14:51]line = 1000.22 [19:14:51]line НДС 12% НСП 1% [19:14:51]line > о реализуемом товаре [19:14:51]line ОКРУГЛЕНИЕ: -0.22 [19:14:51]line ИТОГО: 1000.00 [19:14:51]line Внесено: 1000.00 [19:14:51]line СДАЧА: 0.00 [19:14:51]line НСП 1% : 8.85 [19:14:51]line НДС 12% : 106.22 [19:14:51]line Наличными: 1000.00 [19:14:51]line Безнал.: 0.00 [19:14:51]line Место: АЗС № 85 "Партнер Нефть" [19:14:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:14:51]line СНО: Общий режим [19:14:51]line Чек 373 21.10.2024 19:14 [19:14:51]line Смена: 194 ФФД: 1.0 [19:14:51]line ЗНМ: 0300000167 [19:14:51]line РНМ: 0000000000156251 [19:14:51]line Версия ККМ: v1.0 [19:14:51]line ФМ: 0000000000963346 [19:14:51]line ФД: 69983 [19:14:51]line ФПД: 76078279845146 [19:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69983&fm=76078279845146&tin=02508201610067®Number=0000000000156251&sum=100000 [19:14:51]Connected sock=10 [19:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 74 07 01 CE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 01 00 00 F4 03 04 00 2A A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 11 01 00 35 04 06 00 45 31 5A D8 65 1A A8 F4 31 EF F6 3D 8F 5D [19:14:51]written 0, free lines is 4095 [19:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3F 19 47 00 4D DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 11 01 00 F4 03 04 00 CD 51 16 67 B6 04 01 00 00 63 00 24 5E 95 4F 01 3A [19:14:51]CommunicateWithHost err = 0 [19:14:51]CheckOFDResponse [19:14:51]1017 (14) - 77093643461234 [19:14:51]1041 (16) - 0000000000963346 [19:14:51]1040 (4) - 69983 [19:14:51]1012 (4) - 21.10.2024 13:06 [19:14:51]1206 (1) - 0 [19:14:51]OFD Sender: Remove packet 69983 [19:14:51]ProducePacketName [19:14:51]name=ofd_packets/00069983 [19:14:51]NVStorageDeleteData [19:14:51]Write to MH i2c: 01 00 00 E1 1C FD [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 F4 0C 04 [19:14:51]RasterBufferAndPrint [19:14:51]line [19:14:51]line [19:14:51]line [19:14:51]line [19:14:51]line [19:14:51]written 0, free lines is 3322 [19:14:51]MH_Cut [19:14:51]Write to MH i2c: D1 01 00 E8 1C 01 D6 [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: D1 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: D1 01 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: D1 01 00 E8 1C 00 D5 [19:14:51]Write to MH i2c: 01 00 00 E9 1C 05 [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:52]OFD Sender: No OFD packet to send [19:14:52]*** Cut start [19:14:52]*** Partial cut [19:14:52]*** CUTSNS_PIN = 1 [19:14:52]*** CUTSNS_PIN = 0 [19:14:52]*** Brake cut motor [19:14:53]Read from MH i2c: 01 [19:14:53]MH_I2C_Read... [19:14:53]*** Stop cut motor [19:14:53]*** Cut end [19:14:53]Read from MH i2c: 01 07 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: 01 07 00 E9 1C 00 00 00 00 00 FF 0F 1A [19:14:53]process_action close_receipt done [19:14:53]requested_data is exist [19:14:53]produce_requested_data [19:14:53]requested_item fm.sn is exist - process it [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 11 00 00 [19:14:53]Write to MH i2c: E2 08 00 EA 1C 80 11 00 00 00 00 00 00 80 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 17 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 17 00 EA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [19:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:14:53]wFMCommunicate OK [19:14:53]requested_item fd.num is exist - process it [19:14:53]SAM_PROTO_GetFieldsCounters [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 13 00 00 [19:14:53]Write to MH i2c: E2 08 00 EB 1C 80 13 00 00 00 00 00 00 83 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 62 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 62 00 EB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:53]wFMCommunicate OK [19:14:53]SAM_PROTO_GetFieldsCounters done [19:14:53]requested_item shift.num is exist - process it [19:14:53]requested_item shift.opened is exist - process it [19:14:53]req_shift_opened [19:14:53]FM_GetShiftState [19:14:53]SAM_PROTO_GetShiftState [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 13 01 00 [19:14:53]Write to MH i2c: E2 08 00 EC 1C 80 13 01 00 00 00 00 00 85 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 0E 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 0E 00 EC 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B1 [19:14:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:14:53]wFMCommunicate OK [19:14:53]SAM_PROTO_GetShiftState done [19:14:53]FM_GetShiftState done [19:14:53]req_shift_opened done [19:14:53]requested_item shift.open_date is exist - process it [19:14:53]req_shift_open_date [19:14:53]req_shift_open_date done [19:14:53]produce_requested_data done [19:14:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69983,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:14:53]process_action_free close_receipt [19:14:53]json_value_free [19:14:53]json_value_free done [19:14:53]process_json_proto returns [19:14:53]Send response to host [19:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69983,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:14:53]free response buf [19:14:53]execute_script done [19:14:53]execute_script returns [19:14:53]free content buf [19:14:53]Sock 7.Close socket [19:14:53]Sock 7.Thread stoped [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:54]accept exits with 9 [19:16:54]New connection [19:16:54]New thread 3067026788 created [19:16:54]Thread 3067170148 joined [19:16:54]Waiting for new connection... [19:16:54] Sock 9.Parse request [19:16:54]Sock 9.Check first char [19:16:54]Sock 9.First char is OK [19:16:54]request: POST /json_proto HTTP/1.0 [19:16:54]Method: POST [19:16:54]URL: /json_proto [19:16:54]Method is POST - this is cgi request [19:16:54]url: /json_proto [19:16:54]query_string will be loaded in cgi processing [19:16:54]execute_cgi json_proto POST (null) [19:16:54]execute_cgi path=json_proto method=POST [19:16:54]POST find Content-Length [19:16:54]Host: 172.17.50.3:8080 [19:16:54]Content-Length: 680 [19:16:54]Content-Type: application/json [19:16:54] [19:16:54]POST finish read [19:16:54]Found Content-Length = 680 [19:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [19:16:54]execute_script... [19:16: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)2885749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [19:16:54]POST & json_proto [19:16:54]process_json_proto [19:16:54]json parsed OK: [19:16:54]protocol is kg_v1.0 [19:16:54]action value=close_receipt [19:16:54]process_action close_receipt [19:16:54]cmd_close_receipt [19:16:54]MH_GetDate [19:16:54]Write to MH i2c: F0 00 00 ED 1C F8 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: F0 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: F0 09 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: F0 09 00 ED 1C 00 A8 A8 16 67 6B 98 1E 66 55 [19:16:54]GetLastDocTimeStamp 1729538090 [19:16:54]current date 1729538216 [19:16:54]FM_GetShiftState [19:16:54]SAM_PROTO_GetShiftState [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 13 01 00 [19:16:54]Write to MH i2c: E2 08 00 EE 1C 80 13 01 00 00 00 00 00 87 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0E 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0E 00 EE 1C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B3 [19:16:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:16:54]wFMCommunicate OK [19:16:54]SAM_PROTO_GetShiftState done [19:16:54]FM_GetShiftState done [19:16:54]opened in 1729469703 [19:16:54]opened+sec_in_day 1729556103 [19:16:54]quantity*price = 100050 [19:16:54]sum+1 = 100052 [19:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 374 21.10.2024 19:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69984 ФПД: 11233925508367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69984&fm=11233925508367&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:56]StoreToDocumentArchive [19:16:56]shift 194 fd 69984 [19:16:56]save to /storage/0194/doc_00069984 [19:16:56]save last doc name /storage/0194/doc_00069984 to /storage/kkm_last_doc_name [19:16:56]save OK [19:16:56]Clear old archive folders... [19:16:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:56]tlvbuf is B6F8D480 [19:16:56]SAM_PROTO_ClearQueue [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 09 00 00 [19:16:56]Write to MH i2c: E2 08 00 FB 1C 80 09 00 00 00 00 00 00 89 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_ClearQueue done [19:16:56]KKMCreateOFDPacket [19:16:56]OFDProtocolAddRootSTLVToBuf [19:16:56]FM_MakeSignedData [19:16:56]FM_MakeSignedData [19:16:56]SAM_PROTO_SignData [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 01 02 [19:16:56]Write to MH i2c: E2 08 00 FC 1C 80 0D 01 02 00 00 00 00 91 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=255 [19:16:56]MH_SAM_APDU [19:16:56]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 32 31 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 76 01 00 00 F4 03 04 00 A8 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 11 01 00 35 04 06 00 0A 37 9A 23 [19:16:56]Write to MH i2c: E2 02 01 FD 1C 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 32 31 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 76 01 00 00 F4 03 04 00 A8 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 11 01 00 35 04 06 00 0A 37 9A 23 00 00 86 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=7 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 02 02 02 AD 0F [19:16:56]Write to MH i2c: E2 0A 00 FE 1C 80 0D 02 02 02 00 AD 0F 00 00 54 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 03 02 [19:16:56]Write to MH i2c: E2 08 00 FF 1C 80 0D 03 02 00 00 00 00 96 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0B 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0B 00 FF 1C 00 5F 8B A7 2B EF D3 16 D4 90 00 FF [19:16:56]RAPDU: 5F 8B A7 2B EF D3 16 D4 90 00 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_SignData done [19:16:56]FM_MakeSignedData done [19:16:56]CreateOFDProtocolMessage [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 11 00 00 [19:16:56]Write to MH i2c: E2 08 00 00 1D 80 11 00 00 00 00 00 00 97 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 17 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 17 00 00 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [19:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:56]wFMCommunicate OK [19:16:56]CreateOFDProtocolMessage done [19:16:56]OFDSenderStorePacket 69984 [19:16:56]StoreOFDPacket docnum=69984 [19:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9C A2 04 01 C3 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 32 31 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 76 01 00 00 F4 03 04 00 A8 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 11 01 00 35 04 06 00 0A 37 9A 23 AD 0F 5F 8B A7 2B EF D3 16 D4 [19:16:56]CheckFolder [19:16:56]dirname=/storage/ofd_packets [19:16:56]CheckFolder done [19:16:56]ProducePacketName [19:16:56]name=ofd_packets/00069984 [19:16:56]NVStorageSaveData ofd_packets/00069984 [19:16:56]File name is /storage/ofd_packets/00069984 [19:16:56]Write 298 bytes [19:16:56]NVStorageSaveData done [19:16:56]OFDSenderStorePacket done [19:16:56]KKMCreateOFDPacket done [19:16:56]NVStorageSaveData kkm_last_timestamp [19:16:56]File name is /storage/kkm_last_timestamp [19:16:56]Write 4 bytes [19:16:56]NVStorageSaveData done [19:16:56]ExternCall_PrintAddStr [19:16:56]wPrintStart [19:16:56]Write to MH i2c: 01 00 00 01 1D 1E [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: 01 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: 01 07 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 FF 0F 33 [19:16:56]RasterBufferAndPrint [19:16:56]line Счет N : (1)2885749 [19:16:56]line ИНН: 02508201610067 [19:16:56]line Контрольно-Кассовый Чек [19:16:56]line ПРОДАЖА [19:16:56]line ТРК (МРК, ГНК) : 61 [19:16:56]line Товар: 2710194210 [19:16:56]line ДТ-К-5 [19:16:56]line 13.130 * 76.20 [19:16:56]line = 1000.51 [19:16:56]line НДС 12% НСП 1% [19:16:56]line > о реализуемом товаре [19:16:56]line ОКРУГЛЕНИЕ: -0.51 [19:16:56]line ИТОГО: 1000.00 [19:16:56]line Внесено: 1000.00 [19:16:56]line СДАЧА: 0.00 [19:16:56]line НСП 1% : 8.85 [19:16:56]line НДС 12% : 106.25 [19:16:56]line Наличными: 1000.00 [19:16:56]line Безнал.: 0.00 [19:16:56]line Место: АЗС № 85 "Партнер Нефть" [19:16:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:16:56]line СНО: Общий режим [19:16:56]line Чек 374 21.10.2024 19:16 [19:16:56]line Смена: 194 ФФД: 1.0 [19:16:56]line ЗНМ: 0300000167 [19:16:56]line РНМ: 0000000000156251 [19:16:56]line Версия ККМ: v1.0 [19:16:56]line ФМ: 0000000000963346 [19:16:56]line ФД: 69984 [19:16:56]line ФПД: 11233925508367 [19:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69984&fm=11233925508367&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:56]OFD Sender: Processing packet 69984 [packets to send 18, broken 17] [19:16:56]ProducePacketName [19:16:56]name=ofd_packets/00069984 [19:16:56]OFD Sender: To server: pG, [19:16:56]CommunicateWithHost lk.salyk.kg:30040 [19:16:56]ConnectInit lk.salyk.kg [19:16:56]written 0, free lines is 4095 [19:16:56]Connected sock=10 [19:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9C A2 04 01 C3 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 32 31 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 76 01 00 00 F4 03 04 00 A8 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 11 01 00 35 04 06 00 0A 37 9A 23 AD 0F 5F 8B A7 2B EF D3 16 D4 [19:16:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 74 CB 47 00 96 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 11 01 00 F4 03 04 00 4B 52 16 67 B6 04 01 00 00 52 22 F0 41 EA 45 13 4B [19:16:57]CommunicateWithHost err = 0 [19:16:57]CheckOFDResponse [19:16:57]1017 (14) - 77093643461234 [19:16:57]1041 (16) - 0000000000963346 [19:16:57]1040 (4) - 69984 [19:16:57]1012 (4) - 21.10.2024 13:08 [19:16:57]1206 (1) - 0 [19:16:57]OFD Sender: Remove packet 69984 [19:16:57]ProducePacketName [19:16:57]name=ofd_packets/00069984 [19:16:57]NVStorageDeleteData [19:16:57]Write to MH i2c: 01 00 00 2C 1D 49 [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 05 0D 62 [19:16:57]RasterBufferAndPrint [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]written 0, free lines is 3342 [19:16:57]MH_Cut [19:16:57]Write to MH i2c: D1 01 00 33 1D 01 22 [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 01 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 01 00 33 1D 00 21 [19:16:57]Write to MH i2c: 01 00 00 34 1D 51 [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]OFD Sender: No OFD packet to send [19:16:58]*** Cut start [19:16:58]*** Partial cut [19:16:58]*** CUTSNS_PIN = 1 [19:16:58]*** CUTSNS_PIN = 0 [19:16:58]*** Brake cut motor [19:16:58]Read from MH i2c: 01 [19:16:58]MH_I2C_Read... [19:16:58]*** Stop cut motor [19:16:58]*** Cut end [19:16:58]Read from MH i2c: 01 07 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: 01 07 00 34 1D 00 00 00 00 00 FF 0F 66 [19:16:58]process_action close_receipt done [19:16:58]requested_data is exist [19:16:58]produce_requested_data [19:16:58]requested_item fm.sn is exist - process it [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 11 00 00 [19:16:58]Write to MH i2c: E2 08 00 35 1D 80 11 00 00 00 00 00 00 CC [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 17 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 17 00 35 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [19:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:58]wFMCommunicate OK [19:16:58]requested_item fd.num is exist - process it [19:16:58]SAM_PROTO_GetFieldsCounters [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 13 00 00 [19:16:58]Write to MH i2c: E2 08 00 36 1D 80 13 00 00 00 00 00 00 CF [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 62 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 62 00 36 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [19:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:58]wFMCommunicate OK [19:16:58]SAM_PROTO_GetFieldsCounters done [19:16:58]requested_item shift.num is exist - process it [19:16:58]requested_item shift.opened is exist - process it [19:16:58]req_shift_opened [19:16:58]FM_GetShiftState [19:16:58]SAM_PROTO_GetShiftState [19:16:58]wFMCommunicate request_size=4 [19:16:58]MH_SAM_APDU [19:16:58]CAPDU: 80 13 01 00 [19:16:58]Write to MH i2c: E2 08 00 37 1D 80 13 01 00 00 00 00 00 D1 [19:16:58]Write i2c OK [19:16:58]MH_I2C_Read... [19:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:58]Read from MH i2c: E2 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 0E 00 [19:16:58]MH_I2C_Read... [19:16:58]Read from MH i2c: E2 0E 00 37 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FD [19:16:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:16:58]wFMCommunicate OK [19:16:58]SAM_PROTO_GetShiftState done [19:16:58]FM_GetShiftState done [19:16:58]req_shift_opened done [19:16:58]requested_item shift.open_date is exist - process it [19:16:58]req_shift_open_date [19:16:58]req_shift_open_date done [19:16:58]produce_requested_data done [19:16:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69984,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:16:58]process_action_free close_receipt [19:16:58]json_value_free [19:16:58]json_value_free done [19:16:58]process_json_proto returns [19:16:58]Send response to host [19:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69984,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:16:58]free response buf [19:16:58]execute_script done [19:16:58]execute_script returns [19:16:58]free content buf [19:16:58]Sock 9.Close socket [19:16:58]Sock 9.Thread stoped [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:37]accept exits with 7 [19:17:37]New connection [19:17:37]New thread 3067170148 created [19:17:37]Thread 3067026788 joined [19:17:37]Waiting for new connection... [19:17:37] Sock 7.Parse request [19:17:37]Sock 7.Check first char [19:17:37]Sock 7.First char is OK [19:17:37]request: POST /json_proto HTTP/1.0 [19:17:37]Method: POST [19:17:37]URL: /json_proto [19:17:37]Method is POST - this is cgi request [19:17:37]url: /json_proto [19:17:37]query_string will be loaded in cgi processing [19:17:37]execute_cgi json_proto POST (null) [19:17:37]execute_cgi path=json_proto method=POST [19:17:37]POST find Content-Length [19:17:37]Host: 172.17.50.3:8080 [19:17:37]Content-Length: 792 [19:17:37]Content-Type: application/json [19:17:37] [19:17:37]POST finish read [19:17:37]Found Content-Length = 792 [19:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885750", "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" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:37]execute_script... [19: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)2885750", "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" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:37]POST & json_proto [19:17:37]process_json_proto [19:17:37]json parsed OK: [19:17:37]protocol is kg_v1.0 [19:17:37]action value=close_receipt [19:17:37]process_action close_receipt [19:17:37]cmd_close_receipt [19:17:37]MH_GetDate [19:17:37]Write to MH i2c: F0 00 00 38 1D 44 [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: F0 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: F0 09 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: F0 09 00 38 1D 00 D3 A8 16 67 6B 98 1E 66 CC [19:17:37]GetLastDocTimeStamp 1729538216 [19:17:37]current date 1729538259 [19:17:37]FM_GetShiftState [19:17:37]SAM_PROTO_GetShiftState [19:17:37]wFMCommunicate request_size=4 [19:17:37]MH_SAM_APDU [19:17:37]CAPDU: 80 13 01 00 [19:17:37]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:37]Read from MH i2c: E2 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: E2 0E 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FF [19:17:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:17:37]wFMCommunicate OK [19:17:37]SAM_PROTO_GetShiftState done [19:17:37]FM_GetShiftState done [19:17:37]opened in 1729469703 [19:17:37]opened+sec_in_day 1729556103 [19:17:37]quantity*price = 0 [19:17:37]sum+1 = 1 [19:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 375 21.10.2024 19:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69985 ФПД: 57093200248421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191739&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69985&fm=57093200248421&tin=02508201610067®Number=0000000000156251&sum=0 [19:17:39]StoreToDocumentArchive [19:17:39]shift 194 fd 69985 [19:17:39]save to /storage/0194/doc_00069985 [19:17:39]save last doc name /storage/0194/doc_00069985 to /storage/kkm_last_doc_name [19:17:39]save OK [19:17:39]Clear old archive folders... [19:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:39]tlvbuf is 01172980 [19:17:39]SAM_PROTO_ClearQueue [19:17:39]wFMCommunicate request_size=4 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 09 00 00 [19:17:39]Write to MH i2c: E2 08 00 46 1D 80 09 00 00 00 00 00 00 D5 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [19:17:39]RAPDU: 90 00 [19:17:39]wFMCommunicate OK [19:17:39]SAM_PROTO_ClearQueue done [19:17:39]KKMCreateOFDPacket [19:17:39]OFDProtocolAddRootSTLVToBuf [19:17:39]FM_MakeSignedData [19:17:39]FM_MakeSignedData [19:17:39]SAM_PROTO_SignData [19:17:39]wFMCommunicate request_size=4 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 0D 01 02 [19:17:39]Write to MH i2c: E2 08 00 47 1D 80 0D 01 02 00 00 00 00 DD [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 47 1D 00 90 00 D8 [19:17:39]RAPDU: 90 00 [19:17:39]wFMCommunicate OK [19:17:39]wFMCommunicate request_size=255 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 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 77 01 00 00 F4 03 04 00 D3 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 11 01 00 35 04 06 00 33 [19:17:39]Write to MH i2c: E2 02 01 48 1D 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 38 1D 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 77 01 00 00 F4 03 04 00 D3 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 11 01 00 35 04 06 00 33 00 00 0E [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [19:17:39]RAPDU: 90 00 [19:17:39]wFMCommunicate OK [19:17:39]wFMCommunicate request_size=10 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 0D 02 02 05 ED 0B EB 7E 65 [19:17:39]Write to MH i2c: E2 0D 00 49 1D 80 0D 02 02 05 00 ED 0B EB 7E 65 00 00 B0 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [19:17:39]RAPDU: 90 00 [19:17:39]wFMCommunicate OK [19:17:39]wFMCommunicate request_size=4 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 0D 03 02 [19:17:39]Write to MH i2c: E2 08 00 4A 1D 80 0D 03 02 00 00 00 00 E2 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 0B 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 0B 00 4A 1D 00 A1 A5 03 FB 10 2D F9 DD 90 00 3A [19:17:39]RAPDU: A1 A5 03 FB 10 2D F9 DD 90 00 [19:17:39]wFMCommunicate OK [19:17:39]SAM_PROTO_SignData done [19:17:39]FM_MakeSignedData done [19:17:39]CreateOFDProtocolMessage [19:17:39]wFMCommunicate request_size=4 [19:17:39]MH_SAM_APDU [19:17:39]CAPDU: 80 11 00 00 [19:17:39]Write to MH i2c: E2 08 00 4B 1D 80 11 00 00 00 00 00 00 E2 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:39]Read from MH i2c: E2 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 17 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: E2 17 00 4B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [19:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:39]wFMCommunicate OK [19:17:39]CreateOFDProtocolMessage done [19:17:39]OFDSenderStorePacket 69985 [19:17:39]StoreOFDPacket docnum=69985 [19:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 4E 07 01 BC 30 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 38 1D 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 77 01 00 00 F4 03 04 00 D3 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 11 01 00 35 04 06 00 33 ED 0B EB 7E 65 A1 A5 03 FB 10 2D F9 DD [19:17:39]CheckFolder [19:17:39]dirname=/storage/ofd_packets [19:17:39]CheckFolder done [19:17:39]ProducePacketName [19:17:39]name=ofd_packets/00069985 [19:17:39]NVStorageSaveData ofd_packets/00069985 [19:17:39]File name is /storage/ofd_packets/00069985 [19:17:39]Write 301 bytes [19:17:39]NVStorageSaveData done [19:17:39]OFDSenderStorePacket done [19:17:39]KKMCreateOFDPacket done [19:17:39]NVStorageSaveData kkm_last_timestamp [19:17:39]File name is /storage/kkm_last_timestamp [19:17:39]Write 4 bytes [19:17:39]NVStorageSaveData done [19:17:39]ExternCall_PrintAddStr [19:17:39]wPrintStart [19:17:39]Write to MH i2c: 01 00 00 4C 1D 69 [19:17:39]Write i2c OK [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: 01 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: 01 07 00 [19:17:39]MH_I2C_Read... [19:17:39]Read from MH i2c: 01 07 00 4C 1D 00 00 00 00 00 FF 0F 7E [19:17:39]RasterBufferAndPrint [19:17:39]line Счет N : (1)2885750 [19:17:39]line ИНН: 02508201610067 [19:17:39]line Контрольно-Кассовый Чек [19:17:39]line ПРОДАЖА [19:17:39]line ТРК (МРК, ГНК) : 42 [19:17:39]line Товар: 2710124130 [19:17:39]line Аи-92-К-5 [19:17:39]line 7.480 * 0.00 [19:17:39]line = 0.00 [19:17:39]line НДС 12% НСП 1% [19:17:39]line > о реализуемом товаре [19:17:39]line ИТОГО: 0.00 [19:17:39]line НСП 1% : 0.00 [19:17:39]line НДС 12% : 0.00 [19:17:39]line Наличными: 0.00 [19:17:39]line Безнал.: 0.00 [19:17:39]line Место: АЗС № 85 "Партнер Нефть" [19:17:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:17:39]line СНО: Общий режим [19:17:39]line Чек 375 21.10.2024 19:17 [19:17:39]line Смена: 194 ФФД: 1.0 [19:17:39]line ЗНМ: 0300000167 [19:17:39]line РНМ: 0000000000156251 [19:17:39]line Версия ККМ: v1.0 [19:17:39]line Талоны: Топливная Карта [19:17:39]line 31095 [19:17:39]line ФМ: 0000000000963346 [19:17:39]line ФД: 69985 [19:17:39]line ФПД: 57093200248421 [19:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191739&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69985&fm=57093200248421&tin=02508201610067®Number=0000000000156251&sum=0 [19:17:39]OFD Sender: Processing packet 69985 [packets to send 18, broken 17] [19:17:39]ProducePacketName [19:17:39]name=ofd_packets/00069985 [19:17:39]OFD Sender: To server: pG, [19:17:39]CommunicateWithHost lk.salyk.kg:30040 [19:17:39]ConnectInit lk.salyk.kg [19:17:39]written 0, free lines is 4095 [19:17:40]Connected sock=10 [19:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 4E 07 01 BC 30 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 38 1D 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 77 01 00 00 F4 03 04 00 D3 A8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 11 01 00 35 04 06 00 33 ED 0B EB 7E 65 A1 A5 03 FB 10 2D F9 DD [19:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 15 12 47 00 F8 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 39 36 33 33 34 36 10 04 04 00 61 11 01 00 F4 03 04 00 76 52 16 67 B6 04 01 00 00 25 56 D8 8D 56 24 30 0B [19:17:40]CommunicateWithHost err = 0 [19:17:40]CheckOFDResponse [19:17:40]1017 (14) - 77093643461234 [19:17:40]1041 (16) - 0000000000963346 [19:17:40]1040 (4) - 69985 [19:17:40]1012 (4) - 21.10.2024 13:09 [19:17:40]1206 (1) - 0 [19:17:40]OFD Sender: Remove packet 69985 [19:17:40]ProducePacketName [19:17:40]name=ofd_packets/00069985 [19:17:40]NVStorageDeleteData [19:17:40]Write to MH i2c: 01 00 00 76 1D 93 [19:17:40]Write i2c OK [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: 01 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: 01 07 00 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: 01 07 00 76 1D 00 00 00 00 00 08 0D AF [19:17:40]RasterBufferAndPrint [19:17:40]line [19:17:40]line [19:17:40]line [19:17:40]line [19:17:40]line [19:17:40]written 0, free lines is 3343 [19:17:40]MH_Cut [19:17:40]Write to MH i2c: D1 01 00 7D 1D 01 6C [19:17:40]Write i2c OK [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: D1 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: D1 01 00 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: D1 01 00 7D 1D 00 6B [19:17:40]Write to MH i2c: 01 00 00 7E 1D 9B [19:17:40]Write i2c OK [19:17:40]MH_I2C_Read... [19:17:40]OFD Sender: No OFD packet to send [19:17:41]*** Cut start [19:17:41]*** Partial cut [19:17:41]*** CUTSNS_PIN = 1 [19:17:41]*** CUTSNS_PIN = 0 [19:17:41]*** Brake cut motor [19:17:41]Read from MH i2c: 01 [19:17:41]MH_I2C_Read... [19:17:41]*** Stop cut motor [19:17:41]*** Cut end [19:17:41]Read from MH i2c: 01 07 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [19:17:41]process_action close_receipt done [19:17:41]requested_data is exist [19:17:41]produce_requested_data [19:17:41]requested_item fm.sn is exist - process it [19:17:41]wFMCommunicate request_size=4 [19:17:41]MH_SAM_APDU [19:17:41]CAPDU: 80 11 00 00 [19:17:41]Write to MH i2c: E2 08 00 7F 1D 80 11 00 00 00 00 00 00 16 [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:41]Read from MH i2c: E2 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 17 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 17 00 7F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [19:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:41]wFMCommunicate OK [19:17:41]requested_item fd.num is exist - process it [19:17:41]SAM_PROTO_GetFieldsCounters [19:17:41]wFMCommunicate request_size=4 [19:17:41]MH_SAM_APDU [19:17:41]CAPDU: 80 13 00 00 [19:17:41]Write to MH i2c: E2 08 00 80 1D 80 13 00 00 00 00 00 00 19 [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:41]Read from MH i2c: E2 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 62 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 62 00 80 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:41]wFMCommunicate OK [19:17:41]SAM_PROTO_GetFieldsCounters done [19:17:41]requested_item shift.num is exist - process it [19:17:41]requested_item shift.opened is exist - process it [19:17:41]req_shift_opened [19:17:41]FM_GetShiftState [19:17:41]SAM_PROTO_GetShiftState [19:17:41]wFMCommunicate request_size=4 [19:17:41]MH_SAM_APDU [19:17:41]CAPDU: 80 13 01 00 [19:17:41]Write to MH i2c: E2 08 00 81 1D 80 13 01 00 00 00 00 00 1B [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:41]Read from MH i2c: E2 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 81 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 47 [19:17:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:17:41]wFMCommunicate OK [19:17:41]SAM_PROTO_GetShiftState done [19:17:41]FM_GetShiftState done [19:17:41]req_shift_opened done [19:17:41]requested_item shift.open_date is exist - process it [19:17:41]req_shift_open_date [19:17:41]req_shift_open_date done [19:17:41]produce_requested_data done [19:17:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69985,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:17:41]process_action_free close_receipt [19:17:41]json_value_free [19:17:41]json_value_free done [19:17:41]process_json_proto returns [19:17:41]Send response to host [19:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69985,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:17:41]free response buf [19:17:41]execute_script done [19:17:41]execute_script returns [19:17:41]free content buf [19:17:41]Sock 7.Close socket [19:17:41]Sock 7.Thread stoped [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:24:59]accept exits with 9 [19:24:59]New connection [19:24:59]New thread 3067026788 created [19:24:59]Thread 3067170148 joined [19:24:59]Waiting for new connection... [19:24:59] Sock 9.Parse request [19:24:59]Sock 9.Check first char [19:24:59]Sock 9.First char is OK [19:24:59]request: POST /json_proto HTTP/1.0 [19:24:59]Method: POST [19:24:59]URL: /json_proto [19:24:59]Method is POST - this is cgi request [19:24:59]url: /json_proto [19:24:59]query_string will be loaded in cgi processing [19:24:59]execute_cgi json_proto POST (null) [19:24:59]execute_cgi path=json_proto method=POST [19:24:59]POST find Content-Length [19:24:59]Host: 172.17.50.3:8080 [19:24:59]Content-Length: 689 [19:24:59]Content-Type: application/json [19:24:59] [19:24:59]POST finish read [19:24:59]Found Content-Length = 689 [19:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:59]execute_script... [19:24:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:59]POST & json_proto [19:24:59]process_json_proto [19:24:59]json parsed OK: [19:24:59]protocol is kg_v1.0 [19:24:59]action value=close_receipt [19:24:59]process_action close_receipt [19:24:59]cmd_close_receipt [19:24:59]MH_GetDate [19:24:59]Write to MH i2c: F0 00 00 82 1D 8E [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: F0 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: F0 09 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: F0 09 00 82 1D 00 8C AA 16 67 6B 98 1E 66 D1 [19:24:59]GetLastDocTimeStamp 1729538259 [19:24:59]current date 1729538700 [19:24:59]FM_GetShiftState [19:24:59]SAM_PROTO_GetShiftState [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 01 00 [19:24:59]Write to MH i2c: E2 08 00 83 1D 80 13 01 00 00 00 00 00 1D [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 83 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 49 [19:24:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetShiftState done [19:24:59]FM_GetShiftState done [19:24:59]opened in 1729469703 [19:24:59]opened+sec_in_day 1729556103 [19:24:59]quantity*price = 500024 [19:24:59]sum+1 = 500025 [19:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 376 21.10.2024 19:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69986 ФПД: 267404114290159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192500&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69986&fm=267404114290159&tin=02508201610067®Number=0000000000156251&sum=500000 [19:25:00]StoreToDocumentArchive [19:25:00]shift 194 fd 69986 [19:25:00]save to /storage/0194/doc_00069986 [19:25:00]save last doc name /storage/0194/doc_00069986 to /storage/kkm_last_doc_name [19:25:00]save OK [19:25:00]Clear old archive folders... [19:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:25:00]tlvbuf is 01172510 [19:25:00]SAM_PROTO_ClearQueue [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 09 00 00 [19:25:00]Write to MH i2c: E2 08 00 90 1D 80 09 00 00 00 00 00 00 1F [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_ClearQueue done [19:25:00]KKMCreateOFDPacket [19:25:00]OFDProtocolAddRootSTLVToBuf [19:25:00]FM_MakeSignedData [19:25:00]FM_MakeSignedData [19:25:00]SAM_PROTO_SignData [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 01 02 [19:25:00]Write to MH i2c: E2 08 00 91 1D 80 0D 01 02 00 00 00 00 27 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 91 1D 00 90 00 22 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=255 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 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 20 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 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 8C AA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 11 01 [19:25:00]Write to MH i2c: E2 02 01 92 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 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 20 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 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 8C AA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 11 01 00 00 43 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 92 1D 00 90 00 23 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=16 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 33 DF 3E 65 EF [19:25:00]Write to MH i2c: E2 13 00 93 1D 80 0D 02 02 0B 00 00 35 04 06 00 F3 33 DF 3E 65 EF 00 00 16 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 03 02 [19:25:00]Write to MH i2c: E2 08 00 94 1D 80 0D 03 02 00 00 00 00 2C [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0B 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0B 00 94 1D 00 F2 F7 6D 2A 68 9C 6E 2E 90 00 4D [19:25:00]RAPDU: F2 F7 6D 2A 68 9C 6E 2E 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_SignData done [19:25:00]FM_MakeSignedData done [19:25:00]CreateOFDProtocolMessage [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 11 00 00 [19:25:00]Write to MH i2c: E2 08 00 95 1D 80 11 00 00 00 00 00 00 2C [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 95 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [19:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:25:00]wFMCommunicate OK [19:25:00]CreateOFDProtocolMessage done [19:25:00]OFDSenderStorePacket 69986 [19:25:00]StoreOFDPacket docnum=69986 [19:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 A7 0D 01 CF DC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 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 20 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 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 8C AA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 11 01 00 35 04 06 00 F3 33 DF 3E 65 EF F2 F7 6D 2A 68 9C 6E 2E [19:25:00]CheckFolder [19:25:00]dirname=/storage/ofd_packets [19:25:00]CheckFolder done [19:25:00]ProducePacketName [19:25:00]name=ofd_packets/00069986 [19:25:00]NVStorageSaveData ofd_packets/00069986 [19:25:00]File name is /storage/ofd_packets/00069986 [19:25:00]Write 307 bytes [19:25:00]NVStorageSaveData done [19:25:00]OFDSenderStorePacket done [19:25:00]KKMCreateOFDPacket done [19:25:00]NVStorageSaveData kkm_last_timestamp [19:25:00]File name is /storage/kkm_last_timestamp [19:25:00]Write 4 bytes [19:25:00]NVStorageSaveData done [19:25:00]ExternCall_PrintAddStr [19:25:00]wPrintStart [19:25:00]Write to MH i2c: 01 00 00 96 1D B3 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 FF 0F C8 [19:25:00]RasterBufferAndPrint [19:25:00]line Счет N : (1)2885751 [19:25:00]line ИНН: 02508201610067 [19:25:00]line Контрольно-Кассовый Чек [19:25:00]line ПРОДАЖА [19:25:00]line ТРК (МРК, ГНК) : 31 [19:25:00]line Товар: 2710194240 [19:25:00]line D-ENERGY Дт-К-2 [19:25:00]line 64.770 * 77.20 [19:25:00]line = 5000.24 [19:25:00]line НДС 12% НСП 1% [19:25:00]line > о реализуемом товаре [19:25:00]line ОКРУГЛЕНИЕ: -0.24 [19:25:00]line ИТОГО: 5000.00 [19:25:00]line Внесено: 5000.00 [19:25:00]line СДАЧА: 0.00 [19:25:00]line НСП 1% : 44.25 [19:25:00]line НДС 12% : 531.00 [19:25:00]line Наличными: 5000.00 [19:25:00]line Безнал.: 0.00 [19:25:00]line Место: АЗС № 85 "Партнер Нефть" [19:25:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:25:00]line СНО: Общий режим [19:25:00]line Чек 376 21.10.2024 19:25 [19:25:00]line Смена: 194 ФФД: 1.0 [19:25:00]line ЗНМ: 0300000167 [19:25:00]line РНМ: 0000000000156251 [19:25:00]line Версия ККМ: v1.0 [19:25:00]line ФМ: 0000000000963346 [19:25:00]line ФД: 69986 [19:25:00]line ФПД: 267404114290159 [19:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192500&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69986&fm=267404114290159&tin=02508201610067®Number=0000000000156251&sum=500000 [19:25:01]OFD Sender: Processing packet 69986 [packets to send 18, broken 17] [19:25:01]ProducePacketName [19:25:01]name=ofd_packets/00069986 [19:25:01]OFD Sender: To server: pG, [19:25:01]CommunicateWithHost lk.salyk.kg:30040 [19:25:01]ConnectInit lk.salyk.kg [19:25:01]written 0, free lines is 4095 [19:25:01]Connected sock=11 [19:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 A7 0D 01 CF DC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 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 20 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 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 8C AA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 11 01 00 35 04 06 00 F3 33 DF 3E 65 EF F2 F7 6D 2A 68 9C 6E 2E [19:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D9 C9 47 00 05 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 11 01 00 F4 03 04 00 2F 54 16 67 B6 04 01 00 00 97 41 03 E4 E3 ED 83 D5 [19:25:01]CommunicateWithHost err = 0 [19:25:01]CheckOFDResponse [19:25:01]1017 (14) - 77093643461234 [19:25:01]1041 (16) - 0000000000963346 [19:25:01]1040 (4) - 69986 [19:25:01]1012 (4) - 21.10.2024 13:16 [19:25:01]1206 (1) - 0 [19:25:01]OFD Sender: Remove packet 69986 [19:25:01]ProducePacketName [19:25:01]name=ofd_packets/00069986 [19:25:01]NVStorageDeleteData [19:25:01]Write to MH i2c: 01 00 00 C1 1D DE [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 C1 1D 00 00 00 00 00 FD 0C EE [19:25:01]RasterBufferAndPrint [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]written 0, free lines is 3331 [19:25:01]MH_Cut [19:25:01]Write to MH i2c: D1 01 00 C8 1D 01 B7 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 01 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 01 00 C8 1D 00 B6 [19:25:01]Write to MH i2c: 01 00 00 C9 1D E6 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:02]OFD Sender: No OFD packet to send [19:25:02]*** Cut start [19:25:02]*** Partial cut [19:25:02]*** CUTSNS_PIN = 1 [19:25:02]*** CUTSNS_PIN = 0 [19:25:02]*** Brake cut motor [19:25:02]Read from MH i2c: 01 [19:25:02]MH_I2C_Read... [19:25:02]*** Stop cut motor [19:25:02]*** Cut end [19:25:02]Read from MH i2c: 01 07 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: 01 07 00 C9 1D 00 00 00 00 00 FF 0F FB [19:25:02]process_action close_receipt done [19:25:02]requested_data is exist [19:25:02]produce_requested_data [19:25:02]requested_item fm.sn is exist - process it [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 11 00 00 [19:25:02]Write to MH i2c: E2 08 00 CA 1D 80 11 00 00 00 00 00 00 61 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 17 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 17 00 CA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [19:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:25:02]wFMCommunicate OK [19:25:02]requested_item fd.num is exist - process it [19:25:02]SAM_PROTO_GetFieldsCounters [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 13 00 00 [19:25:02]Write to MH i2c: E2 08 00 CB 1D 80 13 00 00 00 00 00 00 64 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 62 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 62 00 CB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:03]wFMCommunicate OK [19:25:03]SAM_PROTO_GetFieldsCounters done [19:25:03]requested_item shift.num is exist - process it [19:25:03]requested_item shift.opened is exist - process it [19:25:03]req_shift_opened [19:25:03]FM_GetShiftState [19:25:03]SAM_PROTO_GetShiftState [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 13 01 00 [19:25:03]Write to MH i2c: E2 08 00 CC 1D 80 13 01 00 00 00 00 00 66 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0E 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0E 00 CC 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 92 [19:25:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:25:03]wFMCommunicate OK [19:25:03]SAM_PROTO_GetShiftState done [19:25:03]FM_GetShiftState done [19:25:03]req_shift_opened done [19:25:03]requested_item shift.open_date is exist - process it [19:25:03]req_shift_open_date [19:25:03]req_shift_open_date done [19:25:03]produce_requested_data done [19:25:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69986,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:25:03]process_action_free close_receipt [19:25:03]json_value_free [19:25:03]json_value_free done [19:25:03]process_json_proto returns [19:25:03]Send response to host [19:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69986,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:25:03]free response buf [19:25:03]execute_script done [19:25:03]execute_script returns [19:25:03]free content buf [19:25:03]Sock 9.Close socket [19:25:03]Sock 9.Thread stoped [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:51]accept exits with 7 [19:28:51]New connection [19:28:51]New thread 3067170148 created [19:28:51]Thread 3067026788 joined [19:28:51]Waiting for new connection... [19:28:51] Sock 7.Parse request [19:28:51]Sock 7.Check first char [19:28:51]Sock 7.First char is OK [19:28:51]request: POST /json_proto HTTP/1.0 [19:28:51]Method: POST [19:28:51]URL: /json_proto [19:28:51]Method is POST - this is cgi request [19:28:51]url: /json_proto [19:28:51]query_string will be loaded in cgi processing [19:28:51]execute_cgi json_proto POST (null) [19:28:51]execute_cgi path=json_proto method=POST [19:28:51]POST find Content-Length [19:28:51]Host: 172.17.50.3:8080 [19:28:51]Content-Length: 675 [19:28:51]Content-Type: application/json [19:28:51] [19:28:51]POST finish read [19:28:51]Found Content-Length = 675 [19:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:28:51]execute_script... [19:28: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)2885752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:28:51]POST & json_proto [19:28:51]process_json_proto [19:28:51]json parsed OK: [19:28:51]protocol is kg_v1.0 [19:28:51]action value=close_receipt [19:28:51]process_action close_receipt [19:28:51]cmd_close_receipt [19:28:51]MH_GetDate [19:28:51]Write to MH i2c: F0 00 00 CD 1D D9 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: F0 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: F0 09 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: F0 09 00 CD 1D 00 74 AB 16 67 6B 98 1E 66 05 [19:28:51]GetLastDocTimeStamp 1729538700 [19:28:51]current date 1729538932 [19:28:51]FM_GetShiftState [19:28:51]SAM_PROTO_GetShiftState [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 13 01 00 [19:28:51]Write to MH i2c: E2 08 00 CE 1D 80 13 01 00 00 00 00 00 68 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0E 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0E 00 CE 1D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 94 [19:28:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_GetShiftState done [19:28:51]FM_GetShiftState done [19:28:51]opened in 1729469703 [19:28:51]opened+sec_in_day 1729556103 [19:28:51]quantity*price = 50063 [19:28:51]sum+1 = 50064 [19:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 377 21.10.2024 19:28 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69987 ФПД: 59439933727535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69987&fm=59439933727535&tin=02508201610067®Number=0000000000156251&sum=50000 [19:28:52]StoreToDocumentArchive [19:28:52]shift 194 fd 69987 [19:28:52]save to /storage/0194/doc_00069987 [19:28:52]save last doc name /storage/0194/doc_00069987 to /storage/kkm_last_doc_name [19:28:52]save OK [19:28:52]Clear old archive folders... [19:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:28:52]tlvbuf is 0118A060 [19:28:52]SAM_PROTO_ClearQueue [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 09 00 00 [19:28:52]Write to MH i2c: E2 08 00 DB 1D 80 09 00 00 00 00 00 00 6A [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 DB 1D 00 90 00 6C [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_ClearQueue done [19:28:52]KKMCreateOFDPacket [19:28:52]OFDProtocolAddRootSTLVToBuf [19:28:52]FM_MakeSignedData [19:28:52]FM_MakeSignedData [19:28:52]SAM_PROTO_SignData [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 01 02 [19:28:52]Write to MH i2c: E2 08 00 DC 1D 80 0D 01 02 00 00 00 00 72 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=255 [19:28:52]MH_SAM_APDU [19:28:52]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 79 01 00 00 F4 03 04 00 74 AB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 11 01 00 35 04 06 00 36 0F 70 22 [19:28:52]Write to MH i2c: E2 02 01 DD 1D 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 79 01 00 00 F4 03 04 00 74 AB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 11 01 00 35 04 06 00 36 0F 70 22 00 00 9D [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=7 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 02 02 02 A3 2F [19:28:52]Write to MH i2c: E2 0A 00 DE 1D 80 0D 02 02 02 00 A3 2F 00 00 4B [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 03 02 [19:28:52]Write to MH i2c: E2 08 00 DF 1D 80 0D 03 02 00 00 00 00 77 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 DF 1D 00 68 4C 1A EE EF 05 46 5D 90 00 CB [19:28:52]RAPDU: 68 4C 1A EE EF 05 46 5D 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_SignData done [19:28:52]FM_MakeSignedData done [19:28:52]CreateOFDProtocolMessage [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 11 00 00 [19:28:52]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [19:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:28:52]wFMCommunicate OK [19:28:52]CreateOFDProtocolMessage done [19:28:52]OFDSenderStorePacket 69987 [19:28:52]StoreOFDPacket docnum=69987 [19:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 34 49 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 79 01 00 00 F4 03 04 00 74 AB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 11 01 00 35 04 06 00 36 0F 70 22 A3 2F 68 4C 1A EE EF 05 46 5D [19:28:52]CheckFolder [19:28:52]dirname=/storage/ofd_packets [19:28:52]CheckFolder done [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00069987 [19:28:52]NVStorageSaveData ofd_packets/00069987 [19:28:52]File name is /storage/ofd_packets/00069987 [19:28:52]Write 298 bytes [19:28:52]NVStorageSaveData done [19:28:52]OFDSenderStorePacket done [19:28:52]KKMCreateOFDPacket done [19:28:52]NVStorageSaveData kkm_last_timestamp [19:28:52]File name is /storage/kkm_last_timestamp [19:28:52]Write 4 bytes [19:28:52]NVStorageSaveData done [19:28:52]ExternCall_PrintAddStr [19:28:52]wPrintStart [19:28:52]Write to MH i2c: 01 00 00 E1 1D FE [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 E1 1D 00 00 00 00 00 FF 0F 13 [19:28:52]RasterBufferAndPrint [19:28:52]line Счет N : (1)2885752 [19:28:52]line ИНН: 02508201610067 [19:28:52]line Контрольно-Кассовый Чек [19:28:52]line ПРОДАЖА [19:28:52]line ТРК (МРК, ГНК) : 61 [19:28:52]line Товар: 2710194210 [19:28:52]line ДТ-К-5 [19:28:52]line 6.570 * 76.20 [19:28:52]line = 500.63 [19:28:52]line НДС 12% НСП 1% [19:28:52]line > о реализуемом товаре [19:28:52]line ОКРУГЛЕНИЕ: -0.63 [19:28:52]line ИТОГО: 500.00 [19:28:52]line Внесено: 500.00 [19:28:52]line СДАЧА: 0.00 [19:28:52]line НСП 1% : 4.43 [19:28:52]line НДС 12% : 53.16 [19:28:52]line Наличными: 500.00 [19:28:52]line Безнал.: 0.00 [19:28:52]line Место: АЗС № 85 "Партнер Нефть" [19:28:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:28:52]line СНО: Общий режим [19:28:52]line Чек 377 21.10.2024 19:28 [19:28:52]line Смена: 194 ФФД: 1.0 [19:28:52]line ЗНМ: 0300000167 [19:28:52]line РНМ: 0000000000156251 [19:28:52]line Версия ККМ: v1.0 [19:28:52]line ФМ: 0000000000963346 [19:28:52]line ФД: 69987 [19:28:52]line ФПД: 59439933727535 [19:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69987&fm=59439933727535&tin=02508201610067®Number=0000000000156251&sum=50000 [19:28:53]OFD Sender: Processing packet 69987 [packets to send 18, broken 17] [19:28:53]ProducePacketName [19:28:53]name=ofd_packets/00069987 [19:28:53]OFD Sender: To server: pG, [19:28:53]CommunicateWithHost lk.salyk.kg:30040 [19:28:53]ConnectInit lk.salyk.kg [19:28:53]written 0, free lines is 4095 [19:28:53]Connected sock=10 [19:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 34 49 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 79 01 00 00 F4 03 04 00 74 AB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 11 01 00 35 04 06 00 36 0F 70 22 A3 2F 68 4C 1A EE EF 05 46 5D [19:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 DB 47 00 9D 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 11 01 00 F4 03 04 00 17 55 16 67 B6 04 01 00 00 4F 20 97 E7 EA 8F 80 96 [19:28:53]CommunicateWithHost err = 0 [19:28:53]CheckOFDResponse [19:28:53]1017 (14) - 77093643461234 [19:28:53]1041 (16) - 0000000000963346 [19:28:53]1040 (4) - 69987 [19:28:53]1012 (4) - 21.10.2024 13:20 [19:28:53]1206 (1) - 0 [19:28:53]OFD Sender: Remove packet 69987 [19:28:53]ProducePacketName [19:28:53]name=ofd_packets/00069987 [19:28:53]NVStorageDeleteData [19:28:53]Write to MH i2c: 01 00 00 0C 1E 2A [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 0C 1E 00 00 00 00 00 FC 0C 39 [19:28:53]RasterBufferAndPrint [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]written 0, free lines is 3333 [19:28:53]MH_Cut [19:28:53]Write to MH i2c: D1 01 00 13 1E 01 03 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 13 1E 00 02 [19:28:53]Write to MH i2c: 01 00 00 14 1E 32 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]OFD Sender: No OFD packet to send [19:28:54]*** Cut start [19:28:54]*** Partial cut [19:28:54]*** CUTSNS_PIN = 1 [19:28:54]*** CUTSNS_PIN = 0 [19:28:54]*** Brake cut motor [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]*** Stop cut motor [19:28:54]*** Cut end [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 14 1E 00 00 00 00 00 FF 0F 47 [19:28:54]process_action close_receipt done [19:28:54]requested_data is exist [19:28:54]produce_requested_data [19:28:54]requested_item fm.sn is exist - process it [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 15 1E 80 11 00 00 00 00 00 00 AD [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 15 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [19:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:28:54]wFMCommunicate OK [19:28:54]requested_item fd.num is exist - process it [19:28:54]SAM_PROTO_GetFieldsCounters [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 00 00 [19:28:54]Write to MH i2c: E2 08 00 16 1E 80 13 00 00 00 00 00 00 B0 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 16 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [19:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetFieldsCounters done [19:28:55]requested_item shift.num is exist - process it [19:28:55]requested_item shift.opened is exist - process it [19:28:55]req_shift_opened [19:28:55]FM_GetShiftState [19:28:55]SAM_PROTO_GetShiftState [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 13 01 00 [19:28:55]Write to MH i2c: E2 08 00 17 1E 80 13 01 00 00 00 00 00 B2 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 17 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DE [19:28:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetShiftState done [19:28:55]FM_GetShiftState done [19:28:55]req_shift_opened done [19:28:55]requested_item shift.open_date is exist - process it [19:28:55]req_shift_open_date [19:28:55]req_shift_open_date done [19:28:55]produce_requested_data done [19:28:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69987,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:28:55]process_action_free close_receipt [19:28:55]json_value_free [19:28:55]json_value_free done [19:28:55]process_json_proto returns [19:28:55]Send response to host [19:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69987,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:28:55]free response buf [19:28:55]execute_script done [19:28:55]execute_script returns [19:28:55]free content buf [19:28:55]Sock 7.Close socket [19:28:55]Sock 7.Thread stoped [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:01]accept exits with 9 [19:32:01]New connection [19:32:01]New thread 3067026788 created [19:32:01]Thread 3067170148 joined [19:32:01]Waiting for new connection... [19:32:01] Sock 9.Parse request [19:32:01]Sock 9.Check first char [19:32:01]Sock 9.First char is OK [19:32:01]request: POST /json_proto HTTP/1.0 [19:32:01]Method: POST [19:32:01]URL: /json_proto [19:32:01]Method is POST - this is cgi request [19:32:01]url: /json_proto [19:32:01]query_string will be loaded in cgi processing [19:32:01]execute_cgi json_proto POST (null) [19:32:01]execute_cgi path=json_proto method=POST [19:32:01]POST find Content-Length [19:32:01]Host: 172.17.50.3:8080 [19:32:01]Content-Length: 686 [19:32:02]Content-Type: application/json [19:32:02] [19:32:02]POST finish read [19:32:02]Found Content-Length = 686 [19:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [19:32:02]execute_script... [19:32: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)2885753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [19:32:02]POST & json_proto [19:32:02]process_json_proto [19:32:02]json parsed OK: [19:32:02]protocol is kg_v1.0 [19:32:02]action value=close_receipt [19:32:02]process_action close_receipt [19:32:02]cmd_close_receipt [19:32:02]MH_GetDate [19:32:02]Write to MH i2c: F0 00 00 18 1E 25 [19:32:02]Write i2c OK [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: F0 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: F0 09 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: F0 09 00 18 1E 00 33 AC 16 67 6B 98 1E 66 11 [19:32:02]GetLastDocTimeStamp 1729538932 [19:32:02]current date 1729539123 [19:32:02]FM_GetShiftState [19:32:02]SAM_PROTO_GetShiftState [19:32:02]wFMCommunicate request_size=4 [19:32:02]MH_SAM_APDU [19:32:02]CAPDU: 80 13 01 00 [19:32:02]Write to MH i2c: E2 08 00 19 1E 80 13 01 00 00 00 00 00 B4 [19:32:02]Write i2c OK [19:32:02]MH_I2C_Read... [19:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:02]Read from MH i2c: E2 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 0E 00 [19:32:02]MH_I2C_Read... [19:32:02]Read from MH i2c: E2 0E 00 19 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E0 [19:32:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:32:02]wFMCommunicate OK [19:32:02]SAM_PROTO_GetShiftState done [19:32:02]FM_GetShiftState done [19:32:02]opened in 1729469703 [19:32:02]opened+sec_in_day 1729556103 [19:32:02]quantity*price = 100011 [19:32:02]sum+1 = 100013 [19:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 378 21.10.2024 19:32 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69988 ФПД: 269297618055713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193203&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69988&fm=269297618055713&tin=02508201610067®Number=0000000000156251&sum=100000 [19:32:03]StoreToDocumentArchive [19:32:03]shift 194 fd 69988 [19:32:03]save to /storage/0194/doc_00069988 [19:32:03]save last doc name /storage/0194/doc_00069988 to /storage/kkm_last_doc_name [19:32:03]save OK [19:32:03]Clear old archive folders... [19:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:32:03]tlvbuf is 011943C0 [19:32:03]SAM_PROTO_ClearQueue [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 09 00 00 [19:32:03]Write to MH i2c: E2 08 00 26 1E 80 09 00 00 00 00 00 00 B6 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 26 1E 00 90 00 B8 [19:32:03]RAPDU: 90 00 [19:32:03]wFMCommunicate OK [19:32:03]SAM_PROTO_ClearQueue done [19:32:03]KKMCreateOFDPacket [19:32:03]OFDProtocolAddRootSTLVToBuf [19:32:03]FM_MakeSignedData [19:32:03]FM_MakeSignedData [19:32:03]SAM_PROTO_SignData [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 0D 01 02 [19:32:03]Write to MH i2c: E2 08 00 27 1E 80 0D 01 02 00 00 00 00 BE [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 27 1E 00 90 00 B9 [19:32:03]RAPDU: 90 00 [19:32:03]wFMCommunicate OK [19:32:03]wFMCommunicate request_size=255 [19:32:03]MH_SAM_APDU [19:32:03]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 33 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 11 01 00 35 04 06 00 F4 EC [19:32:03]Write to MH i2c: E2 02 01 28 1E 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 33 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 11 01 00 35 04 06 00 F4 EC 00 00 11 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 28 1E 00 90 00 BA [19:32:03]RAPDU: 90 00 [19:32:03]wFMCommunicate OK [19:32:03]wFMCommunicate request_size=9 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 0D 02 02 04 BC DC F2 21 [19:32:03]Write to MH i2c: E2 0C 00 29 1E 80 0D 02 02 04 00 BC DC F2 21 00 00 74 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 03 00 29 1E 00 90 00 BB [19:32:03]RAPDU: 90 00 [19:32:03]wFMCommunicate OK [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 0D 03 02 [19:32:03]Write to MH i2c: E2 08 00 2A 1E 80 0D 03 02 00 00 00 00 C3 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0B 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0B 00 2A 1E 00 BA 2F 28 4F 1A 94 DE E6 90 00 96 [19:32:03]RAPDU: BA 2F 28 4F 1A 94 DE E6 90 00 [19:32:03]wFMCommunicate OK [19:32:03]SAM_PROTO_SignData done [19:32:03]FM_MakeSignedData done [19:32:03]CreateOFDProtocolMessage [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 11 00 00 [19:32:03]Write to MH i2c: E2 08 00 2B 1E 80 11 00 00 00 00 00 00 C3 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 17 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 17 00 2B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [19:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:32:03]wFMCommunicate OK [19:32:03]CreateOFDProtocolMessage done [19:32:03]OFDSenderStorePacket 69988 [19:32:03]StoreOFDPacket docnum=69988 [19:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E5 A7 06 01 66 ED 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 33 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 11 01 00 35 04 06 00 F4 EC BC DC F2 21 BA 2F 28 4F 1A 94 DE E6 [19:32:03]CheckFolder [19:32:03]dirname=/storage/ofd_packets [19:32:03]CheckFolder done [19:32:03]ProducePacketName [19:32:03]name=ofd_packets/00069988 [19:32:03]NVStorageSaveData ofd_packets/00069988 [19:32:03]File name is /storage/ofd_packets/00069988 [19:32:03]Write 300 bytes [19:32:03]NVStorageSaveData done [19:32:03]OFDSenderStorePacket done [19:32:03]KKMCreateOFDPacket done [19:32:03]NVStorageSaveData kkm_last_timestamp [19:32:03]File name is /storage/kkm_last_timestamp [19:32:03]Write 4 bytes [19:32:03]NVStorageSaveData done [19:32:03]ExternCall_PrintAddStr [19:32:03]wPrintStart [19:32:03]Write to MH i2c: 01 00 00 2C 1E 4A [19:32:03]OFD Sender: Processing packet 69988 [packets to send 18, broken 17] [19:32:03]ProducePacketName [19:32:03]name=ofd_packets/00069988 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]OFD Sender: To server: pG, [19:32:03]CommunicateWithHost lk.salyk.kg:30040 [19:32:03]ConnectInit lk.salyk.kg [19:32:03]Read from MH i2c: 01 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: 01 07 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: 01 07 00 2C 1E 00 00 00 00 00 FF 0F 5F [19:32:03]RasterBufferAndPrint [19:32:03]line Счет N : (1)2885753 [19:32:03]line ИНН: 02508201610067 [19:32:03]line Контрольно-Кассовый Чек [19:32:03]line ПРОДАЖА [19:32:03]line ТРК (МРК, ГНК) : 71 [19:32:03]line Товар: 2711129700 [19:32:03]line ГАЗ-К-3 [19:32:03]line 25.710 * 38.90 [19:32:03]line = 1000.12 [19:32:03]line НДС 12% НСП 1% [19:32:03]line > о реализуемом товаре [19:32:03]line ОКРУГЛЕНИЕ: -0.12 [19:32:03]line ИТОГО: 1000.00 [19:32:03]line Внесено: 1000.00 [19:32:03]line СДАЧА: 0.00 [19:32:03]line НСП 1% : 8.85 [19:32:03]line НДС 12% : 106.21 [19:32:03]line Наличными: 1000.00 [19:32:03]line Безнал.: 0.00 [19:32:03]line Место: АЗС № 85 "Партнер Нефть" [19:32:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:32:03]line СНО: Общий режим [19:32:03]line Чек 378 21.10.2024 19:32 [19:32:03]line Смена: 194 ФФД: 1.0 [19:32:03]line ЗНМ: 0300000167 [19:32:03]line РНМ: 0000000000156251 [19:32:03]line Версия ККМ: v1.0 [19:32:03]line ФМ: 0000000000963346 [19:32:03]line ФД: 69988 [19:32:03]line ФПД: 269297618055713 [19:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193203&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69988&fm=269297618055713&tin=02508201610067®Number=0000000000156251&sum=100000 [19:32:04]Connected sock=10 [19:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E5 A7 06 01 66 ED 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 33 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 11 01 00 35 04 06 00 F4 EC BC DC F2 21 BA 2F 28 4F 1A 94 DE E6 [19:32:04]written 0, free lines is 4095 [19:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CF 7C 47 00 8F 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 39 36 33 33 34 36 10 04 04 00 64 11 01 00 F4 03 04 00 D6 55 16 67 B6 04 01 00 00 06 F5 10 88 17 BB F9 36 [19:32:04]CommunicateWithHost err = 0 [19:32:04]CheckOFDResponse [19:32:04]1017 (14) - 77093643461234 [19:32:04]1041 (16) - 0000000000963346 [19:32:04]1040 (4) - 69988 [19:32:04]1012 (4) - 21.10.2024 13:23 [19:32:04]1206 (1) - 0 [19:32:04]OFD Sender: Remove packet 69988 [19:32:04]ProducePacketName [19:32:04]name=ofd_packets/00069988 [19:32:04]NVStorageDeleteData [19:32:04]Write to MH i2c: 01 00 00 57 1E 75 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 07 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 07 00 57 1E 00 00 00 00 00 F3 0C 7B [19:32:04]RasterBufferAndPrint [19:32:04]line [19:32:04]line [19:32:04]line [19:32:04]line [19:32:04]line [19:32:04]written 0, free lines is 3321 [19:32:04]MH_Cut [19:32:04]Write to MH i2c: D1 01 00 5E 1E 01 4E [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: D1 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: D1 01 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: D1 01 00 5E 1E 00 4D [19:32:04]Write to MH i2c: 01 00 00 5F 1E 7D [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]OFD Sender: No OFD packet to send [19:32:05]*** Cut start [19:32:05]*** Partial cut [19:32:05]*** CUTSNS_PIN = 1 [19:32:05]*** CUTSNS_PIN = 0 [19:32:05]*** Brake cut motor [19:32:05]Read from MH i2c: 01 [19:32:05]MH_I2C_Read... [19:32:05]*** Stop cut motor [19:32:05]*** Cut end [19:32:05]Read from MH i2c: 01 07 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 07 00 5F 1E 00 00 00 00 00 FF 0F 92 [19:32:05]process_action close_receipt done [19:32:05]requested_data is exist [19:32:05]produce_requested_data [19:32:05]requested_item fm.sn is exist - process it [19:32:05]wFMCommunicate request_size=4 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 11 00 00 [19:32:05]Write to MH i2c: E2 08 00 60 1E 80 11 00 00 00 00 00 00 F8 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:05]Read from MH i2c: E2 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 17 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: E2 17 00 60 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [19:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:32:05]wFMCommunicate OK [19:32:05]requested_item fd.num is exist - process it [19:32:05]SAM_PROTO_GetFieldsCounters [19:32:05]wFMCommunicate request_size=4 [19:32:05]MH_SAM_APDU [19:32:05]CAPDU: 80 13 00 00 [19:32:05]Write to MH i2c: E2 08 00 61 1E 80 13 00 00 00 00 00 00 FB [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 62 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 62 00 61 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:06]wFMCommunicate OK [19:32:06]SAM_PROTO_GetFieldsCounters done [19:32:06]requested_item shift.num is exist - process it [19:32:06]requested_item shift.opened is exist - process it [19:32:06]req_shift_opened [19:32:06]FM_GetShiftState [19:32:06]SAM_PROTO_GetShiftState [19:32:06]wFMCommunicate request_size=4 [19:32:06]MH_SAM_APDU [19:32:06]CAPDU: 80 13 01 00 [19:32:06]Write to MH i2c: E2 08 00 62 1E 80 13 01 00 00 00 00 00 FD [19:32:06]Write i2c OK [19:32:06]MH_I2C_Read... [19:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:06]Read from MH i2c: E2 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 0E 00 [19:32:06]MH_I2C_Read... [19:32:06]Read from MH i2c: E2 0E 00 62 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 29 [19:32:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:32:06]wFMCommunicate OK [19:32:06]SAM_PROTO_GetShiftState done [19:32:06]FM_GetShiftState done [19:32:06]req_shift_opened done [19:32:06]requested_item shift.open_date is exist - process it [19:32:06]req_shift_open_date [19:32:06]req_shift_open_date done [19:32:06]produce_requested_data done [19:32:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69988,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:32:06]process_action_free close_receipt [19:32:06]json_value_free [19:32:06]json_value_free done [19:32:06]process_json_proto returns [19:32:06]Send response to host [19:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69988,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:32:06]free response buf [19:32:06]execute_script done [19:32:06]execute_script returns [19:32:06]free content buf [19:32:06]Sock 9.Close socket [19:32:06]Sock 9.Thread stoped [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]accept exits with 7 [19:33:24]New connection [19:33:24]New thread 3067170148 created [19:33:24]Thread 3067026788 joined [19:33:24]Waiting for new connection... [19:33:24] Sock 7.Parse request [19:33:24]Sock 7.Check first char [19:33:24]Sock 7.First char is OK [19:33:24]request: POST /json_proto HTTP/1.0 [19:33:24]Method: POST [19:33:24]URL: /json_proto [19:33:24]Method is POST - this is cgi request [19:33:24]url: /json_proto [19:33:24]query_string will be loaded in cgi processing [19:33:24]execute_cgi json_proto POST (null) [19:33:24]execute_cgi path=json_proto method=POST [19:33:24]POST find Content-Length [19:33:24]Host: 172.17.50.3:8080 [19:33:24]Content-Length: 683 [19:33:24]Content-Type: application/json [19:33:24] [19:33:24]POST finish read [19:33:24]Found Content-Length = 683 [19:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [19:33:24]execute_script... [19:33: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)2885755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [19:33:24]POST & json_proto [19:33:24]process_json_proto [19:33:24]json parsed OK: [19:33:24]protocol is kg_v1.0 [19:33:24]action value=close_receipt [19:33:24]process_action close_receipt [19:33:24]cmd_close_receipt [19:33:24]MH_GetDate [19:33:24]Write to MH i2c: F0 00 00 63 1E 70 [19:33:24]Write i2c OK [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: F0 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: F0 09 00 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: F0 09 00 63 1E 00 86 AC 16 67 6B 98 1E 66 AF [19:33:24]GetLastDocTimeStamp 1729539123 [19:33:24]current date 1729539206 [19:33:24]FM_GetShiftState [19:33:24]SAM_PROTO_GetShiftState [19:33:24]wFMCommunicate request_size=4 [19:33:24]MH_SAM_APDU [19:33:24]CAPDU: 80 13 01 00 [19:33:24]Write to MH i2c: E2 08 00 64 1E 80 13 01 00 00 00 00 00 FF [19:33:24]Write i2c OK [19:33:24]MH_I2C_Read... [19:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:24]Read from MH i2c: E2 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: E2 0E 00 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: E2 0E 00 64 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2B [19:33:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:33:24]wFMCommunicate OK [19:33:24]SAM_PROTO_GetShiftState done [19:33:24]FM_GetShiftState done [19:33:24]opened in 1729469703 [19:33:24]opened+sec_in_day 1729556103 [19:33:24]quantity*price = 100021 [19:33:24]sum+1 = 100023 [19:33:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 379 21.10.2024 19:33 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69989 ФПД: 78457310057007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69989&fm=78457310057007&tin=02508201610067®Number=0000000000156251&sum=100000 [19:33:25]StoreToDocumentArchive [19:33:25]shift 194 fd 69989 [19:33:25]save to /storage/0194/doc_00069989 [19:33:25]save last doc name /storage/0194/doc_00069989 to /storage/kkm_last_doc_name [19:33:25]save OK [19:33:25]Clear old archive folders... [19:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:25]tlvbuf is B6F8A210 [19:33:25]SAM_PROTO_ClearQueue [19:33:25]wFMCommunicate request_size=4 [19:33:25]MH_SAM_APDU [19:33:25]CAPDU: 80 09 00 00 [19:33:25]Write to MH i2c: E2 08 00 71 1E 80 09 00 00 00 00 00 00 01 [19:33:25]Write i2c OK [19:33:25]MH_I2C_Read... [19:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:25]Read from MH i2c: E2 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 03 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [19:33:25]RAPDU: 90 00 [19:33:25]wFMCommunicate OK [19:33:25]SAM_PROTO_ClearQueue done [19:33:25]KKMCreateOFDPacket [19:33:25]OFDProtocolAddRootSTLVToBuf [19:33:25]FM_MakeSignedData [19:33:25]FM_MakeSignedData [19:33:25]SAM_PROTO_SignData [19:33:25]wFMCommunicate request_size=4 [19:33:25]MH_SAM_APDU [19:33:25]CAPDU: 80 0D 01 02 [19:33:25]Write to MH i2c: E2 08 00 72 1E 80 0D 01 02 00 00 00 00 09 [19:33:25]Write i2c OK [19:33:25]MH_I2C_Read... [19:33:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:25]Read from MH i2c: E2 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 03 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [19:33:25]RAPDU: 90 00 [19:33:25]wFMCommunicate OK [19:33:25]wFMCommunicate request_size=255 [19:33:25]MH_SAM_APDU [19:33:25]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 7B 01 00 00 F4 03 04 00 86 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 11 01 00 35 04 06 00 47 [19:33:25]Write to MH i2c: E2 02 01 73 1E 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 7B 01 00 00 F4 03 04 00 86 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 11 01 00 35 04 06 00 47 00 00 5A [19:33:26]Write i2c OK [19:33:26]MH_I2C_Read... [19:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:26]Read from MH i2c: E2 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 03 00 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [19:33:26]RAPDU: 90 00 [19:33:26]wFMCommunicate OK [19:33:26]wFMCommunicate request_size=10 [19:33:26]MH_SAM_APDU [19:33:26]CAPDU: 80 0D 02 02 05 5B 44 18 92 2F [19:33:26]Write to MH i2c: E2 0D 00 74 1E 80 0D 02 02 05 00 5B 44 18 92 2F 00 00 8E [19:33:26]Write i2c OK [19:33:26]MH_I2C_Read... [19:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:26]Read from MH i2c: E2 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 03 00 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [19:33:26]RAPDU: 90 00 [19:33:26]wFMCommunicate OK [19:33:26]wFMCommunicate request_size=4 [19:33:26]MH_SAM_APDU [19:33:26]CAPDU: 80 0D 03 02 [19:33:26]Write to MH i2c: E2 08 00 75 1E 80 0D 03 02 00 00 00 00 0E [19:33:26]Write i2c OK [19:33:26]MH_I2C_Read... [19:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:26]Read from MH i2c: E2 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 0B 00 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 0B 00 75 1E 00 FC 92 52 95 05 58 A8 84 90 00 0D [19:33:26]RAPDU: FC 92 52 95 05 58 A8 84 90 00 [19:33:26]wFMCommunicate OK [19:33:26]SAM_PROTO_SignData done [19:33:26]FM_MakeSignedData done [19:33:26]CreateOFDProtocolMessage [19:33:26]wFMCommunicate request_size=4 [19:33:26]MH_SAM_APDU [19:33:26]CAPDU: 80 11 00 00 [19:33:26]Write to MH i2c: E2 08 00 76 1E 80 11 00 00 00 00 00 00 0E [19:33:26]Write i2c OK [19:33:26]MH_I2C_Read... [19:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:26]Read from MH i2c: E2 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 17 00 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: E2 17 00 76 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [19:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:33:26]wFMCommunicate OK [19:33:26]CreateOFDProtocolMessage done [19:33:26]OFDSenderStorePacket 69989 [19:33:26]StoreOFDPacket docnum=69989 [19:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F7 BD 07 01 ED 07 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 7B 01 00 00 F4 03 04 00 86 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 11 01 00 35 04 06 00 47 5B 44 18 92 2F FC 92 52 95 05 58 A8 84 [19:33:26]CheckFolder [19:33:26]dirname=/storage/ofd_packets [19:33:26]CheckFolder done [19:33:26]ProducePacketName [19:33:26]name=ofd_packets/00069989 [19:33:26]NVStorageSaveData ofd_packets/00069989 [19:33:26]File name is /storage/ofd_packets/00069989 [19:33:26]Write 301 bytes [19:33:26]NVStorageSaveData done [19:33:26]OFDSenderStorePacket done [19:33:26]KKMCreateOFDPacket done [19:33:26]NVStorageSaveData kkm_last_timestamp [19:33:26]File name is /storage/kkm_last_timestamp [19:33:26]Write 4 bytes [19:33:26]NVStorageSaveData done [19:33:26]ExternCall_PrintAddStr [19:33:26]wPrintStart [19:33:26]Write to MH i2c: 01 00 00 77 1E 95 [19:33:26]Write i2c OK [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: 01 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: 01 07 00 [19:33:26]MH_I2C_Read... [19:33:26]Read from MH i2c: 01 07 00 77 1E 00 00 00 00 00 FF 0F AA [19:33:26]RasterBufferAndPrint [19:33:26]line Счет N : (1)2885755 [19:33:26]line ИНН: 02508201610067 [19:33:26]line Контрольно-Кассовый Чек [19:33:26]line ПРОДАЖА [19:33:26]line ТРК (МРК, ГНК) : 13 [19:33:26]line Товар: 2710124500 [19:33:26]line Аи-95-К-5 [19:33:26]line 13.480 * 74.20 [19:33:26]line = 1000.22 [19:33:26]line НДС 12% НСП 1% [19:33:26]line > о реализуемом товаре [19:33:26]line ОКРУГЛЕНИЕ: -0.22 [19:33:26]line ИТОГО: 1000.00 [19:33:26]line Внесено: 1000.00 [19:33:26]line СДАЧА: 0.00 [19:33:26]line НСП 1% : 8.85 [19:33:26]line НДС 12% : 106.22 [19:33:26]line Наличными: 1000.00 [19:33:26]line Безнал.: 0.00 [19:33:26]line Место: АЗС № 85 "Партнер Нефть" [19:33:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:33:26]line СНО: Общий режим [19:33:26]line Чек 379 21.10.2024 19:33 [19:33:26]line Смена: 194 ФФД: 1.0 [19:33:26]line ЗНМ: 0300000167 [19:33:26]line РНМ: 0000000000156251 [19:33:26]line Версия ККМ: v1.0 [19:33:26]line ФМ: 0000000000963346 [19:33:26]line ФД: 69989 [19:33:26]line ФПД: 78457310057007 [19:33:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69989&fm=78457310057007&tin=02508201610067®Number=0000000000156251&sum=100000 [19:33:26]OFD Sender: Processing packet 69989 [packets to send 18, broken 17] [19:33:26]ProducePacketName [19:33:26]name=ofd_packets/00069989 [19:33:26]OFD Sender: To server: pG, [19:33:26]CommunicateWithHost lk.salyk.kg:30040 [19:33:26]ConnectInit lk.salyk.kg [19:33:26]written 0, free lines is 4095 [19:33:26]Connected sock=10 [19:33:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F7 BD 07 01 ED 07 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 7B 01 00 00 F4 03 04 00 86 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 11 01 00 35 04 06 00 47 5B 44 18 92 2F FC 92 52 95 05 58 A8 84 [19:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F8 4D 47 00 83 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 11 01 00 F4 03 04 00 29 56 16 67 B6 04 01 00 00 DA E7 B5 69 9C F3 CB DE [19:33:27]CommunicateWithHost err = 0 [19:33:27]CheckOFDResponse [19:33:27]1017 (14) - 77093643461234 [19:33:27]1041 (16) - 0000000000963346 [19:33:27]1040 (4) - 69989 [19:33:27]1012 (4) - 21.10.2024 13:24 [19:33:27]1206 (1) - 0 [19:33:27]OFD Sender: Remove packet 69989 [19:33:27]ProducePacketName [19:33:27]name=ofd_packets/00069989 [19:33:27]NVStorageDeleteData [19:33:27]Write to MH i2c: 01 00 00 A2 1E C0 [19:33:27]Write i2c OK [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: 01 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: 01 07 00 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: 01 07 00 A2 1E 00 00 00 00 00 FC 0C CF [19:33:27]RasterBufferAndPrint [19:33:27]line [19:33:27]line [19:33:27]line [19:33:27]line [19:33:27]line [19:33:27]written 0, free lines is 3333 [19:33:27]MH_Cut [19:33:27]Write to MH i2c: D1 01 00 A9 1E 01 99 [19:33:27]Write i2c OK [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: D1 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: D1 01 00 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: D1 01 00 A9 1E 00 98 [19:33:27]Write to MH i2c: 01 00 00 AA 1E C8 [19:33:27]Write i2c OK [19:33:27]MH_I2C_Read... [19:33:27]OFD Sender: No OFD packet to send [19:33:27]*** Cut start [19:33:27]*** Partial cut [19:33:27]*** CUTSNS_PIN = 1 [19:33:27]*** CUTSNS_PIN = 0 [19:33:28]*** Brake cut motor [19:33:28]Read from MH i2c: 01 [19:33:28]MH_I2C_Read... [19:33:28]*** Stop cut motor [19:33:28]*** Cut end [19:33:28]Read from MH i2c: 01 07 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: 01 07 00 AA 1E 00 00 00 00 00 FF 0F DD [19:33:28]process_action close_receipt done [19:33:28]requested_data is exist [19:33:28]produce_requested_data [19:33:28]requested_item fm.sn is exist - process it [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 11 00 00 [19:33:28]Write to MH i2c: E2 08 00 AB 1E 80 11 00 00 00 00 00 00 43 [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 17 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 17 00 AB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [19:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:33:28]wFMCommunicate OK [19:33:28]requested_item fd.num is exist - process it [19:33:28]SAM_PROTO_GetFieldsCounters [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 13 00 00 [19:33:28]Write to MH i2c: E2 08 00 AC 1E 80 13 00 00 00 00 00 00 46 [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 62 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 62 00 AC 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:33:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:28]wFMCommunicate OK [19:33:28]SAM_PROTO_GetFieldsCounters done [19:33:28]requested_item shift.num is exist - process it [19:33:28]requested_item shift.opened is exist - process it [19:33:28]req_shift_opened [19:33:28]FM_GetShiftState [19:33:28]SAM_PROTO_GetShiftState [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 13 01 00 [19:33:28]Write to MH i2c: E2 08 00 AD 1E 80 13 01 00 00 00 00 00 48 [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 0E 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 0E 00 AD 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 74 [19:33:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:33:28]wFMCommunicate OK [19:33:28]SAM_PROTO_GetShiftState done [19:33:28]FM_GetShiftState done [19:33:28]req_shift_opened done [19:33:28]requested_item shift.open_date is exist - process it [19:33:28]req_shift_open_date [19:33:28]req_shift_open_date done [19:33:28]produce_requested_data done [19:33:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69989,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:33:28]process_action_free close_receipt [19:33:28]json_value_free [19:33:28]json_value_free done [19:33:28]process_json_proto returns [19:33:28]Send response to host [19:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69989,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:33:28]free response buf [19:33:28]execute_script done [19:33:28]execute_script returns [19:33:28]free content buf [19:33:28]Sock 7.Close socket [19:33:28]Sock 7.Thread stoped [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:52]accept exits with 9 [19:34:52]New connection [19:34:52]New thread 3067026788 created [19:34:52]Thread 3067170148 joined [19:34:52]Waiting for new connection... [19:34:52] Sock 9.Parse request [19:34:52]Sock 9.Check first char [19:34:52]Sock 9.First char is OK [19:34:52]request: POST /json_proto HTTP/1.0 [19:34:52]Method: POST [19:34:52]URL: /json_proto [19:34:52]Method is POST - this is cgi request [19:34:52]url: /json_proto [19:34:52]query_string will be loaded in cgi processing [19:34:52]execute_cgi json_proto POST (null) [19:34:52]execute_cgi path=json_proto method=POST [19:34:52]POST find Content-Length [19:34:52]Host: 172.17.50.3:8080 [19:34:52]Content-Length: 791 [19:34:52]Content-Type: application/json [19:34:52] [19:34:52]POST finish read [19:34:52]Found Content-Length = 791 [19:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:52]execute_script... [19:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:52]POST & json_proto [19:34:52]process_json_proto [19:34:52]json parsed OK: [19:34:52]protocol is kg_v1.0 [19:34:52]action value=close_receipt [19:34:52]process_action close_receipt [19:34:52]cmd_close_receipt [19:34:52]MH_GetDate [19:34:52]Write to MH i2c: F0 00 00 AE 1E BB [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 09 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: F0 09 00 AE 1E 00 DE AC 16 67 6B 98 1E 66 52 [19:34:52]GetLastDocTimeStamp 1729539206 [19:34:52]current date 1729539294 [19:34:52]FM_GetShiftState [19:34:52]SAM_PROTO_GetShiftState [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 13 01 00 [19:34:52]Write to MH i2c: E2 08 00 AF 1E 80 13 01 00 00 00 00 00 4A [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0E 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0E 00 AF 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 76 [19:34:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:34:52]wFMCommunicate OK [19:34:52]SAM_PROTO_GetShiftState done [19:34:52]FM_GetShiftState done [19:34:52]opened in 1729469703 [19:34:52]opened+sec_in_day 1729556103 [19:34:52]quantity*price = 0 [19:34:52]sum+1 = 1 [19:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 380 21.10.2024 19:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69990 ФПД: 157624906954386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69990&fm=157624906954386&tin=02508201610067®Number=0000000000156251&sum=0 [19:34:53]StoreToDocumentArchive [19:34:53]shift 194 fd 69990 [19:34:53]save to /storage/0194/doc_00069990 [19:34:53]save last doc name /storage/0194/doc_00069990 to /storage/kkm_last_doc_name [19:34:53]save OK [19:34:53]Clear old archive folders... [19:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:53]tlvbuf is 01131900 [19:34:53]SAM_PROTO_ClearQueue [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 09 00 00 [19:34:53]Write to MH i2c: E2 08 00 BC 1E 80 09 00 00 00 00 00 00 4C [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [19:34:53]RAPDU: 90 00 [19:34:53]wFMCommunicate OK [19:34:53]SAM_PROTO_ClearQueue done [19:34:53]KKMCreateOFDPacket [19:34:53]OFDProtocolAddRootSTLVToBuf [19:34:53]FM_MakeSignedData [19:34:53]FM_MakeSignedData [19:34:53]SAM_PROTO_SignData [19:34:53]wFMCommunicate request_size=4 [19:34:53]MH_SAM_APDU [19:34:53]CAPDU: 80 0D 01 02 [19:34:53]Write to MH i2c: E2 08 00 BD 1E 80 0D 01 02 00 00 00 00 54 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:53]Read from MH i2c: E2 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [19:34:53]RAPDU: 90 00 [19:34:53]wFMCommunicate OK [19:34:53]wFMCommunicate request_size=255 [19:34:53]MH_SAM_APDU [19:34: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 32 31 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 7C 01 00 00 F4 03 04 00 DE AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 11 01 00 35 04 06 00 8F 5B E8 96 [19:34:53]Write to MH i2c: E2 02 01 BE 1E 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 32 31 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 7C 01 00 00 F4 03 04 00 DE AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 11 01 00 35 04 06 00 8F 5B E8 96 00 00 F8 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 BE 1E 00 90 00 50 [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=7 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 02 02 02 36 92 [19:34:54]Write to MH i2c: E2 0A 00 BF 1E 80 0D 02 02 02 00 36 92 00 00 23 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 03 00 BF 1E 00 90 00 51 [19:34:54]RAPDU: 90 00 [19:34:54]wFMCommunicate OK [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 0D 03 02 [19:34:54]Write to MH i2c: E2 08 00 C0 1E 80 0D 03 02 00 00 00 00 59 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0B 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0B 00 C0 1E 00 39 21 24 FB 4F 0D D5 33 90 00 37 [19:34:54]RAPDU: 39 21 24 FB 4F 0D D5 33 90 00 [19:34:54]wFMCommunicate OK [19:34:54]SAM_PROTO_SignData done [19:34:54]FM_MakeSignedData done [19:34:54]CreateOFDProtocolMessage [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 11 00 00 [19:34:54]Write to MH i2c: E2 08 00 C1 1E 80 11 00 00 00 00 00 00 59 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 C1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [19:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:54]wFMCommunicate OK [19:34:54]CreateOFDProtocolMessage done [19:34:54]OFDSenderStorePacket 69990 [19:34:54]StoreOFDPacket docnum=69990 [19:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FC A8 04 01 EC 9C 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 32 31 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 7C 01 00 00 F4 03 04 00 DE AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 11 01 00 35 04 06 00 8F 5B E8 96 36 92 39 21 24 FB 4F 0D D5 33 [19:34:54]CheckFolder [19:34:54]dirname=/storage/ofd_packets [19:34:54]CheckFolder done [19:34:54]ProducePacketName [19:34:54]name=ofd_packets/00069990 [19:34:54]NVStorageSaveData ofd_packets/00069990 [19:34:54]File name is /storage/ofd_packets/00069990 [19:34:54]Write 298 bytes [19:34:54]NVStorageSaveData done [19:34:54]OFDSenderStorePacket done [19:34:54]KKMCreateOFDPacket done [19:34:54]NVStorageSaveData kkm_last_timestamp [19:34:54]File name is /storage/kkm_last_timestamp [19:34:54]Write 4 bytes [19:34:54]NVStorageSaveData done [19:34:54]ExternCall_PrintAddStr [19:34:54]wPrintStart [19:34:54]Write to MH i2c: 01 00 00 C2 1E E0 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 C2 1E 00 00 00 00 00 FF 0F F5 [19:34:54]RasterBufferAndPrint [19:34:54]line Счет N : (1)2885754 [19:34:54]line ИНН: 02508201610067 [19:34:54]line Контрольно-Кассовый Чек [19:34:54]line ПРОДАЖА [19:34:54]line ТРК (МРК, ГНК) : 51 [19:34:54]line Товар: 2710194210 [19:34:54]line ДТ-К-5 [19:34:54]line 100.000 * 0.00 [19:34:54]line = 0.00 [19:34:54]line НДС 12% НСП 1% [19:34:54]line > о реализуемом товаре [19:34:54]line ИТОГО: 0.00 [19:34:54]line НСП 1% : 0.00 [19:34:54]line НДС 12% : 0.00 [19:34:54]line Наличными: 0.00 [19:34:54]line Безнал.: 0.00 [19:34:54]line Место: АЗС № 85 "Партнер Нефть" [19:34:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:34:54]line СНО: Общий режим [19:34:54]line Чек 380 21.10.2024 19:34 [19:34:54]line Смена: 194 ФФД: 1.0 [19:34:54]line ЗНМ: 0300000167 [19:34:54]line РНМ: 0000000000156251 [19:34:54]line Версия ККМ: v1.0 [19:34:54]line Талоны: Топливная Карта [19:34:54]line 31095 [19:34:54]line ФМ: 0000000000963346 [19:34:54]line ФД: 69990 [19:34:54]line ФПД: 157624906954386 [19:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69990&fm=157624906954386&tin=02508201610067®Number=0000000000156251&sum=0 [19:34:54]OFD Sender: Processing packet 69990 [packets to send 18, broken 17] [19:34:54]ProducePacketName [19:34:54]name=ofd_packets/00069990 [19:34:54]OFD Sender: To server: pG, [19:34:54]CommunicateWithHost lk.salyk.kg:30040 [19:34:54]ConnectInit lk.salyk.kg [19:34:54]written 0, free lines is 4095 [19:34:54]Connected sock=10 [19:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FC A8 04 01 EC 9C 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 32 31 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 7C 01 00 00 F4 03 04 00 DE AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 11 01 00 35 04 06 00 8F 5B E8 96 36 92 39 21 24 FB 4F 0D D5 33 [19:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 03 47 00 07 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 39 36 33 33 34 36 10 04 04 00 66 11 01 00 F4 03 04 00 81 56 16 67 B6 04 01 00 00 96 1C DC 13 44 29 22 C0 [19:34:55]CommunicateWithHost err = 0 [19:34:55]CheckOFDResponse [19:34:55]1017 (14) - 77093643461234 [19:34:55]1041 (16) - 0000000000963346 [19:34:55]1040 (4) - 69990 [19:34:55]1012 (4) - 21.10.2024 13:26 [19:34:55]1206 (1) - 0 [19:34:55]OFD Sender: Remove packet 69990 [19:34:55]ProducePacketName [19:34:55]name=ofd_packets/00069990 [19:34:55]NVStorageDeleteData [19:34:55]Write to MH i2c: 01 00 00 EC 1E 0A [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FE 0C 1B [19:34:55]RasterBufferAndPrint [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]line [19:34:55]written 0, free lines is 3332 [19:34:55]MH_Cut [19:34:55]Write to MH i2c: D1 01 00 F3 1E 01 E3 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 01 00 [19:34:55]MH_I2C_Read... [19:34:55]Read from MH i2c: D1 01 00 F3 1E 00 E2 [19:34:55]Write to MH i2c: 01 00 00 F4 1E 12 [19:34:55]Write i2c OK [19:34:55]MH_I2C_Read... [19:34:55]OFD Sender: No OFD packet to send [19:34:55]*** Cut start [19:34:55]*** Partial cut [19:34:55]*** CUTSNS_PIN = 1 [19:34:55]*** CUTSNS_PIN = 0 [19:34:56]*** Brake cut motor [19:34:56]Read from MH i2c: 01 [19:34:56]MH_I2C_Read... [19:34:56]*** Stop cut motor [19:34:56]*** Cut end [19:34:56]Read from MH i2c: 01 07 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: 01 07 00 F4 1E 00 00 00 00 00 FF 0F 27 [19:34:56]process_action close_receipt done [19:34:56]requested_data is exist [19:34:56]produce_requested_data [19:34:56]requested_item fm.sn is exist - process it [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 11 00 00 [19:34:56]Write to MH i2c: E2 08 00 F5 1E 80 11 00 00 00 00 00 00 8D [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 17 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 17 00 F5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [19:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:34:56]wFMCommunicate OK [19:34:56]requested_item fd.num is exist - process it [19:34:56]SAM_PROTO_GetFieldsCounters [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 13 00 00 [19:34:56]Write to MH i2c: E2 08 00 F6 1E 80 13 00 00 00 00 00 00 90 [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 62 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 62 00 F6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:56]wFMCommunicate OK [19:34:56]SAM_PROTO_GetFieldsCounters done [19:34:56]requested_item shift.num is exist - process it [19:34:56]requested_item shift.opened is exist - process it [19:34:56]req_shift_opened [19:34:56]FM_GetShiftState [19:34:56]SAM_PROTO_GetShiftState [19:34:56]wFMCommunicate request_size=4 [19:34:56]MH_SAM_APDU [19:34:56]CAPDU: 80 13 01 00 [19:34:56]Write to MH i2c: E2 08 00 F7 1E 80 13 01 00 00 00 00 00 92 [19:34:56]Write i2c OK [19:34:56]MH_I2C_Read... [19:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:56]Read from MH i2c: E2 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 0E 00 [19:34:56]MH_I2C_Read... [19:34:56]Read from MH i2c: E2 0E 00 F7 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BE [19:34:56]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:34:56]wFMCommunicate OK [19:34:56]SAM_PROTO_GetShiftState done [19:34:56]FM_GetShiftState done [19:34:56]req_shift_opened done [19:34:56]requested_item shift.open_date is exist - process it [19:34:56]req_shift_open_date [19:34:56]req_shift_open_date done [19:34:56]produce_requested_data done [19:34:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69990,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:34:56]process_action_free close_receipt [19:34:56]json_value_free [19:34:56]json_value_free done [19:34:56]process_json_proto returns [19:34:56]Send response to host [19:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69990,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:34:56]free response buf [19:34:56]execute_script done [19:34:56]execute_script returns [19:34:56]free content buf [19:34:56]Sock 9.Close socket [19:34:56]Sock 9.Thread stoped [19:35:00]OFD Sender: No OFD packet to send [19:35:02]accept exits with 7 [19:35:02]New connection [19:35:02]New thread 3067170148 created [19:35:02]Thread 3067026788 joined [19:35:02]Waiting for new connection... [19:35:02] Sock 7.Parse request [19:35:02]Sock 7.Check first char [19:35:02]Sock 7.First char is OK [19:35:02]request: POST /json_proto HTTP/1.0 [19:35:02]Method: POST [19:35:02]URL: /json_proto [19:35:02]Method is POST - this is cgi request [19:35:02]url: /json_proto [19:35:02]query_string will be loaded in cgi processing [19:35:02]execute_cgi json_proto POST (null) [19:35:02]execute_cgi path=json_proto method=POST [19:35:02]POST find Content-Length [19:35:02]Host: 172.17.50.3:8080 [19:35:02]Content-Length: 678 [19:35:02]Content-Type: application/json [19:35:02] [19:35:02]POST finish read [19:35:02]Found Content-Length = 678 [19:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885756", "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" : 3.240, "sum" : 240.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:02]execute_script... [19:35: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)2885756", "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" : 3.240, "sum" : 240.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:02]POST & json_proto [19:35:02]process_json_proto [19:35:02]json parsed OK: [19:35:02]protocol is kg_v1.0 [19:35:02]action value=close_receipt [19:35:02]process_action close_receipt [19:35:02]cmd_close_receipt [19:35:02]MH_GetDate [19:35:02]Write to MH i2c: F0 00 00 F8 1E 05 [19:35:02]Write i2c OK [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 09 00 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 09 00 F8 1E 00 E8 AC 16 67 6B 98 1E 66 A6 [19:35:02]GetLastDocTimeStamp 1729539294 [19:35:02]current date 1729539304 [19:35:02]FM_GetShiftState [19:35:02]SAM_PROTO_GetShiftState [19:35:02]wFMCommunicate request_size=4 [19:35:02]MH_SAM_APDU [19:35:02]CAPDU: 80 13 01 00 [19:35:02]Write to MH i2c: E2 08 00 F9 1E 80 13 01 00 00 00 00 00 94 [19:35:02]Write i2c OK [19:35:02]MH_I2C_Read... [19:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:02]Read from MH i2c: E2 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: E2 0E 00 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: E2 0E 00 F9 1E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C0 [19:35:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:35:02]wFMCommunicate OK [19:35:02]SAM_PROTO_GetShiftState done [19:35:02]FM_GetShiftState done [19:35:02]opened in 1729469703 [19:35:02]opened+sec_in_day 1729556103 [19:35:02]quantity*price = 24040 [19:35:02]sum+1 = 24042 [19:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 381 21.10.2024 19:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69991 ФПД: 265217168098870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193504&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69991&fm=265217168098870&tin=02508201610067®Number=0000000000156251&sum=24000 [19:35:03]StoreToDocumentArchive [19:35:03]shift 194 fd 69991 [19:35:03]save to /storage/0194/doc_00069991 [19:35:03]save last doc name /storage/0194/doc_00069991 to /storage/kkm_last_doc_name [19:35:03]save OK [19:35:03]Clear old archive folders... [19:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:03]tlvbuf is 011DB3C0 [19:35:03]SAM_PROTO_ClearQueue [19:35:03]wFMCommunicate request_size=4 [19:35:03]MH_SAM_APDU [19:35:03]CAPDU: 80 09 00 00 [19:35:03]Write to MH i2c: E2 08 00 06 1F 80 09 00 00 00 00 00 00 97 [19:35:03]Write i2c OK [19:35:03]MH_I2C_Read... [19:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:03]Read from MH i2c: E2 [19:35:03]MH_I2C_Read... [19:35:03]Read from MH i2c: E2 03 00 [19:35:03]MH_I2C_Read... [19:35:03]Read from MH i2c: E2 03 00 06 1F 00 90 00 99 [19:35:03]RAPDU: 90 00 [19:35:03]wFMCommunicate OK [19:35:03]SAM_PROTO_ClearQueue done [19:35:03]KKMCreateOFDPacket [19:35:03]OFDProtocolAddRootSTLVToBuf [19:35:03]FM_MakeSignedData [19:35:03]FM_MakeSignedData [19:35:03]SAM_PROTO_SignData [19:35:03]wFMCommunicate request_size=4 [19:35:03]MH_SAM_APDU [19:35:03]CAPDU: 80 0D 01 02 [19:35:03]Write to MH i2c: E2 08 00 07 1F 80 0D 01 02 00 00 00 00 9F [19:35:03]Write i2c OK [19:35:03]MH_I2C_Read... [19:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:03]Read from MH i2c: E2 [19:35:03]MH_I2C_Read... [19:35:03]Read from MH i2c: E2 03 00 [19:35:03]MH_I2C_Read... [19:35:03]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [19:35:03]RAPDU: 90 00 [19:35:03]wFMCommunicate OK [19:35:03]wFMCommunicate request_size=255 [19:35:03]MH_SAM_APDU [19:35: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 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 E8 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 11 01 00 35 04 06 00 F1 [19:35:03]Write to MH i2c: E2 02 01 08 1F 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 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 E8 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 11 01 00 35 04 06 00 F1 00 00 85 [19:35:03]Write i2c OK [19:35:03]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]wFMCommunicate request_size=10 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 02 02 05 36 AF 17 C6 36 [19:35:04]Write to MH i2c: E2 0D 00 09 1F 80 0D 02 02 05 00 36 AF 17 C6 36 00 00 A4 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 09 1F 00 90 00 9C [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 03 02 [19:35:04]Write to MH i2c: E2 08 00 0A 1F 80 0D 03 02 00 00 00 00 A4 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0B 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0B 00 0A 1F 00 F4 1C CC 46 02 D8 C3 50 90 00 B4 [19:35:04]RAPDU: F4 1C CC 46 02 D8 C3 50 90 00 [19:35:04]wFMCommunicate OK [19:35:04]SAM_PROTO_SignData done [19:35:04]FM_MakeSignedData done [19:35:04]CreateOFDProtocolMessage [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 11 00 00 [19:35:04]Write to MH i2c: E2 08 00 0B 1F 80 11 00 00 00 00 00 00 A4 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 17 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 17 00 0B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [19:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:35:04]wFMCommunicate OK [19:35:04]CreateOFDProtocolMessage done [19:35:04]OFDSenderStorePacket 69991 [19:35:04]StoreOFDPacket docnum=69991 [19:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 85 07 01 E1 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 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 E8 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 11 01 00 35 04 06 00 F1 36 AF 17 C6 36 F4 1C CC 46 02 D8 C3 50 [19:35:04]CheckFolder [19:35:04]dirname=/storage/ofd_packets [19:35:04]CheckFolder done [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00069991 [19:35:04]NVStorageSaveData ofd_packets/00069991 [19:35:04]File name is /storage/ofd_packets/00069991 [19:35:04]Write 301 bytes [19:35:04]NVStorageSaveData done [19:35:04]OFDSenderStorePacket done [19:35:04]KKMCreateOFDPacket done [19:35:04]NVStorageSaveData kkm_last_timestamp [19:35:04]File name is /storage/kkm_last_timestamp [19:35:04]Write 4 bytes [19:35:04]NVStorageSaveData done [19:35:04]ExternCall_PrintAddStr [19:35:04]wPrintStart [19:35:04]Write to MH i2c: 01 00 00 0C 1F 2B [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 0C 1F 00 00 00 00 00 FF 0F 40 [19:35:04]RasterBufferAndPrint [19:35:04]line Счет N : (1)2885756 [19:35:04]line ИНН: 02508201610067 [19:35:04]line Контрольно-Кассовый Чек [19:35:04]line ПРОДАЖА [19:35:04]line ТРК (МРК, ГНК) : 33 [19:35:04]line Товар: 2710124500 [19:35:04]line Аи-95-К-5 [19:35:04]line 3.240 * 74.20 [19:35:04]line = 240.41 [19:35:04]line НДС 12% НСП 1% [19:35:04]line > о реализуемом товаре [19:35:04]line ОКРУГЛЕНИЕ: -0.41 [19:35:04]line ИТОГО: 240.00 [19:35:04]line Внесено: 240.00 [19:35:04]line СДАЧА: 0.00 [19:35:04]line НСП 1% : 2.13 [19:35:04]line НДС 12% : 25.53 [19:35:04]line Наличными: 240.00 [19:35:04]line Безнал.: 0.00 [19:35:04]line Место: АЗС № 85 "Партнер Нефть" [19:35:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:35:04]line СНО: Общий режим [19:35:04]line Чек 381 21.10.2024 19:35 [19:35:04]line Смена: 194 ФФД: 1.0 [19:35:04]line ЗНМ: 0300000167 [19:35:04]line РНМ: 0000000000156251 [19:35:04]line Версия ККМ: v1.0 [19:35:04]line ФМ: 0000000000963346 [19:35:04]line ФД: 69991 [19:35:04]line ФПД: 265217168098870 [19:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193504&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69991&fm=265217168098870&tin=02508201610067®Number=0000000000156251&sum=24000 [19:35:04]written 0, free lines is 4095 [19:35:04]OFD Sender: Processing packet 69991 [packets to send 18, broken 17] [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00069991 [19:35:04]OFD Sender: To server: pG, [19:35:04]CommunicateWithHost lk.salyk.kg:30040 [19:35:04]ConnectInit lk.salyk.kg [19:35:04]Connected sock=11 [19:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 85 07 01 E1 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 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 E8 AC 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 11 01 00 35 04 06 00 F1 36 AF 17 C6 36 F4 1C CC 46 02 D8 C3 50 [19:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CF 4F 47 00 34 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 11 01 00 F4 03 04 00 8A 56 16 67 B6 04 01 00 00 D8 40 A8 2C 15 99 A4 26 [19:35:04]CommunicateWithHost err = 0 [19:35:04]CheckOFDResponse [19:35:04]1017 (14) - 77093643461234 [19:35:04]1041 (16) - 0000000000963346 [19:35:04]1040 (4) - 69991 [19:35:04]1012 (4) - 21.10.2024 13:26 [19:35:04]1206 (1) - 0 [19:35:04]OFD Sender: Remove packet 69991 [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00069991 [19:35:04]NVStorageDeleteData [19:35:04]Write to MH i2c: 01 00 00 37 1F 56 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 F9 0C 62 [19:35:04]RasterBufferAndPrint [19:35:04]line [19:35:04]line [19:35:04]line [19:35:04]line [19:35:04]line [19:35:04]written 0, free lines is 3331 [19:35:04]MH_Cut [19:35:04]Write to MH i2c: D1 01 00 3E 1F 01 2F [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: D1 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: D1 01 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: D1 01 00 3E 1F 00 2E [19:35:04]Write to MH i2c: 01 00 00 3F 1F 5E [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:05]OFD Sender: No OFD packet to send [19:35:05]*** Cut start [19:35:05]*** Partial cut [19:35:05]*** CUTSNS_PIN = 1 [19:35:05]*** CUTSNS_PIN = 0 [19:35:05]*** Brake cut motor [19:35:06]Read from MH i2c: 01 [19:35:06]MH_I2C_Read... [19:35:06]*** Stop cut motor [19:35:06]*** Cut end [19:35:06]Read from MH i2c: 01 07 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: 01 07 00 3F 1F 00 00 00 00 00 FF 0F 73 [19:35:06]process_action close_receipt done [19:35:06]requested_data is exist [19:35:06]produce_requested_data [19:35:06]requested_item fm.sn is exist - process it [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 11 00 00 [19:35:06]Write to MH i2c: E2 08 00 40 1F 80 11 00 00 00 00 00 00 D9 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 40 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [19:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:35:06]wFMCommunicate OK [19:35:06]requested_item fd.num is exist - process it [19:35:06]SAM_PROTO_GetFieldsCounters [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 13 00 00 [19:35:06]Write to MH i2c: E2 08 00 41 1F 80 13 00 00 00 00 00 00 DC [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 62 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 62 00 41 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [19:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_GetFieldsCounters done [19:35:06]requested_item shift.num is exist - process it [19:35:06]requested_item shift.opened is exist - process it [19:35:06]req_shift_opened [19:35:06]FM_GetShiftState [19:35:06]SAM_PROTO_GetShiftState [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 13 01 00 [19:35:06]Write to MH i2c: E2 08 00 42 1F 80 13 01 00 00 00 00 00 DE [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 0E 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 0E 00 42 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0A [19:35:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_GetShiftState done [19:35:06]FM_GetShiftState done [19:35:06]req_shift_opened done [19:35:06]requested_item shift.open_date is exist - process it [19:35:06]req_shift_open_date [19:35:06]req_shift_open_date done [19:35:06]produce_requested_data done [19:35:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69991,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:35:06]process_action_free close_receipt [19:35:06]json_value_free [19:35:06]json_value_free done [19:35:06]process_json_proto returns [19:35:06]Send response to host [19:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69991,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:35:06]free response buf [19:35:06]execute_script done [19:35:06]execute_script returns [19:35:06]free content buf [19:35:06]Sock 7.Close socket [19:35:06]Sock 7.Thread stoped [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:37:58]accept exits with 9 [19:37:58]New connection [19:37:58]New thread 3067026788 created [19:37:58]Thread 3067170148 joined [19:37:58]Waiting for new connection... [19:37:58] Sock 9.Parse request [19:37:58]Sock 9.Check first char [19:37:58]Sock 9.First char is OK [19:37:58]request: POST /json_proto HTTP/1.0 [19:37:58]Method: POST [19:37:58]URL: /json_proto [19:37:58]Method is POST - this is cgi request [19:37:58]url: /json_proto [19:37:58]query_string will be loaded in cgi processing [19:37:58]execute_cgi json_proto POST (null) [19:37:58]execute_cgi path=json_proto method=POST [19:37:58]POST find Content-Length [19:37:58]Host: 172.17.50.3:8080 [19:37:58]Content-Length: 770 [19:37:58]Content-Type: application/json [19:37:58] [19:37:58]POST finish read [19:37:58]Found Content-Length = 770 [19:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:58]execute_script... [19:37: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)2885757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:58]POST & json_proto [19:37:58]process_json_proto [19:37:58]json parsed OK: [19:37:58]protocol is kg_v1.0 [19:37:58]action value=close_receipt [19:37:58]process_action close_receipt [19:37:58]cmd_close_receipt [19:37:58]MH_GetDate [19:37:58]Write to MH i2c: F0 00 00 43 1F 51 [19:37:58]Write i2c OK [19:37:58]MH_I2C_Read... [19:37:58]Read from MH i2c: F0 [19:37:58]MH_I2C_Read... [19:37:58]Read from MH i2c: F0 09 00 [19:37:58]MH_I2C_Read... [19:37:58]Read from MH i2c: F0 09 00 43 1F 00 97 AD 16 67 6B 98 1E 66 A2 [19:37:58]GetLastDocTimeStamp 1729539304 [19:37:58]current date 1729539479 [19:37:58]FM_GetShiftState [19:37:58]SAM_PROTO_GetShiftState [19:37:58]wFMCommunicate request_size=4 [19:37:58]MH_SAM_APDU [19:37:58]CAPDU: 80 13 01 00 [19:37:58]Write to MH i2c: E2 08 00 44 1F 80 13 01 00 00 00 00 00 E0 [19:37:58]Write i2c OK [19:37:58]MH_I2C_Read... [19:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:58]Read from MH i2c: E2 [19:37:58]MH_I2C_Read... [19:37:58]Read from MH i2c: E2 0E 00 [19:37:58]MH_I2C_Read... [19:37:58]Read from MH i2c: E2 0E 00 44 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0C [19:37:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:37:58]wFMCommunicate OK [19:37:58]SAM_PROTO_GetShiftState done [19:37:58]FM_GetShiftState done [19:37:58]opened in 1729469703 [19:37:58]opened+sec_in_day 1729556103 [19:37:58]quantity*price = 200043 [19:37:58]sum+1 = 200044 [19:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 382 21.10.2024 19:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69992 ФПД: 37756860436389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69992&fm=37756860436389&tin=02508201610067®Number=0000000000156251&sum=200043 [19:37:59]StoreToDocumentArchive [19:37:59]shift 194 fd 69992 [19:37:59]save to /storage/0194/doc_00069992 [19:37:59]save last doc name /storage/0194/doc_00069992 to /storage/kkm_last_doc_name [19:37:59]save OK [19:37:59]Clear old archive folders... [19:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:59]tlvbuf is 01154D70 [19:37:59]SAM_PROTO_ClearQueue [19:37:59]wFMCommunicate request_size=4 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 09 00 00 [19:37:59]Write to MH i2c: E2 08 00 51 1F 80 09 00 00 00 00 00 00 E2 [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [19:37:59]RAPDU: 90 00 [19:37:59]wFMCommunicate OK [19:37:59]SAM_PROTO_ClearQueue done [19:37:59]KKMCreateOFDPacket [19:37:59]OFDProtocolAddRootSTLVToBuf [19:37:59]FM_MakeSignedData [19:37:59]FM_MakeSignedData [19:37:59]SAM_PROTO_SignData [19:37:59]wFMCommunicate request_size=4 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 0D 01 02 [19:37:59]Write to MH i2c: E2 08 00 52 1F 80 0D 01 02 00 00 00 00 EA [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [19:37:59]RAPDU: 90 00 [19:37:59]wFMCommunicate OK [19:37:59]wFMCommunicate request_size=255 [19:37:59]MH_SAM_APDU [19:37: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 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 97 AD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 11 01 00 35 04 06 00 22 [19:37:59]Write to MH i2c: E2 02 01 53 1F 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 97 AD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 11 01 00 35 04 06 00 22 00 00 0F [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 53 1F 00 90 00 E6 [19:37:59]RAPDU: 90 00 [19:37:59]wFMCommunicate OK [19:37:59]wFMCommunicate request_size=10 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 0D 02 02 05 56 F4 41 0F A5 [19:37:59]Write to MH i2c: E2 0D 00 54 1F 80 0D 02 02 05 00 56 F4 41 0F A5 00 00 36 [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 03 00 54 1F 00 90 00 E7 [19:37:59]RAPDU: 90 00 [19:37:59]wFMCommunicate OK [19:37:59]wFMCommunicate request_size=4 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 0D 03 02 [19:37:59]Write to MH i2c: E2 08 00 55 1F 80 0D 03 02 00 00 00 00 EF [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 0B 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 0B 00 55 1F 00 79 DB 56 98 6F 39 0B 91 90 00 76 [19:37:59]RAPDU: 79 DB 56 98 6F 39 0B 91 90 00 [19:37:59]wFMCommunicate OK [19:37:59]SAM_PROTO_SignData done [19:37:59]FM_MakeSignedData done [19:37:59]CreateOFDProtocolMessage [19:37:59]wFMCommunicate request_size=4 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 11 00 00 [19:37:59]Write to MH i2c: E2 08 00 56 1F 80 11 00 00 00 00 00 00 EF [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 17 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 17 00 56 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [19:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:38:00]wFMCommunicate OK [19:38:00]CreateOFDProtocolMessage done [19:38:00]OFDSenderStorePacket 69992 [19:38:00]StoreOFDPacket docnum=69992 [19:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F DD 07 01 ED 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 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 97 AD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 11 01 00 35 04 06 00 22 56 F4 41 0F A5 79 DB 56 98 6F 39 0B 91 [19:38:00]CheckFolder [19:38:00]dirname=/storage/ofd_packets [19:38:00]CheckFolder done [19:38:00]ProducePacketName [19:38:00]name=ofd_packets/00069992 [19:38:00]NVStorageSaveData ofd_packets/00069992 [19:38:00]File name is /storage/ofd_packets/00069992 [19:38:00]Write 301 bytes [19:38:00]NVStorageSaveData done [19:38:00]OFDSenderStorePacket done [19:38:00]KKMCreateOFDPacket done [19:38:00]NVStorageSaveData kkm_last_timestamp [19:38:00]File name is /storage/kkm_last_timestamp [19:38:00]Write 4 bytes [19:38:00]NVStorageSaveData done [19:38:00]ExternCall_PrintAddStr [19:38:00]wPrintStart [19:38:00]Write to MH i2c: 01 00 00 57 1F 76 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 57 1F 00 00 00 00 00 FF 0F 8B [19:38:00]RasterBufferAndPrint [19:38:00]line Счет N : (1)2885757 [19:38:00]line ИНН: 02508201610067 [19:38:00]line Контрольно-Кассовый Чек [19:38:00]line ПРОДАЖА [19:38:00]line ТРК (МРК, ГНК) : 13 [19:38:00]line Товар: 2710124500 [19:38:00]line Аи-95-К-5 [19:38:00]line 26.960 * 74.20 [19:38:00]line = 2000.43 [19:38:00]line НДС 12% НСП 1% [19:38:00]line > о реализуемом товаре [19:38:00]line ИТОГО: 2000.43 [19:38:00]line НСП 1% : 17.70 [19:38:00]line НДС 12% : 212.43 [19:38:00]line Наличными: 0.00 [19:38:00]line Безнал.: 2000.43 [19:38:00]line Место: АЗС № 85 "Партнер Нефть" [19:38:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:38:00]line СНО: Общий режим [19:38:00]line Чек 382 21.10.2024 19:37 [19:38:00]line Смена: 194 ФФД: 1.0 [19:38:00]line ЗНМ: 0300000167 [19:38:00]line РНМ: 0000000000156251 [19:38:00]line Версия ККМ: v1.0 [19:38:00]line Платежная система: Mbank [19:38:00]line ФМ: 0000000000963346 [19:38:00]line ФД: 69992 [19:38:00]line ФПД: 37756860436389 [19:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69992&fm=37756860436389&tin=02508201610067®Number=0000000000156251&sum=200043 [19:38:00]OFD Sender: Processing packet 69992 [packets to send 18, broken 17] [19:38:00]ProducePacketName [19:38:00]name=ofd_packets/00069992 [19:38:00]OFD Sender: To server: pG, [19:38:00]CommunicateWithHost lk.salyk.kg:30040 [19:38:00]ConnectInit lk.salyk.kg [19:38:00]written 0, free lines is 4095 [19:38:00]Connected sock=10 [19:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F DD 07 01 ED 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 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 97 AD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 11 01 00 35 04 06 00 22 56 F4 41 0F A5 79 DB 56 98 6F 39 0B 91 [19:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 6F 47 00 27 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 11 01 00 F4 03 04 00 3A 57 16 67 B6 04 01 00 00 D9 B4 B9 B5 8E B3 1A 2F [19:38:00]CommunicateWithHost err = 0 [19:38:00]CheckOFDResponse [19:38:00]1017 (14) - 77093643461234 [19:38:00]1041 (16) - 0000000000963346 [19:38:00]1040 (4) - 69992 [19:38:00]1012 (4) - 21.10.2024 13:29 [19:38:00]1206 (1) - 0 [19:38:00]OFD Sender: Remove packet 69992 [19:38:00]ProducePacketName [19:38:00]name=ofd_packets/00069992 [19:38:00]NVStorageDeleteData [19:38:00]Write to MH i2c: 01 00 00 80 1F 9F [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 28 0D DB [19:38:00]RasterBufferAndPrint [19:38:00]line [19:38:00]line [19:38:00]line [19:38:00]line [19:38:00]line [19:38:00]written 0, free lines is 3375 [19:38:00]MH_Cut [19:38:00]Write to MH i2c: D1 01 00 87 1F 01 78 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: D1 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: D1 01 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: D1 01 00 87 1F 00 77 [19:38:00]Write to MH i2c: 01 00 00 88 1F A7 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:01]OFD Sender: No OFD packet to send [19:38:01]*** Cut start [19:38:01]*** Partial cut [19:38:01]*** CUTSNS_PIN = 1 [19:38:01]*** CUTSNS_PIN = 0 [19:38:01]*** Brake cut motor [19:38:02]Read from MH i2c: 01 [19:38:02]MH_I2C_Read... [19:38:02]*** Stop cut motor [19:38:02]*** Cut end [19:38:02]Read from MH i2c: 01 07 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 FF 0F BC [19:38:02]process_action close_receipt done [19:38:02]requested_data is exist [19:38:02]produce_requested_data [19:38:02]requested_item fm.sn is exist - process it [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 11 00 00 [19:38:02]Write to MH i2c: E2 08 00 89 1F 80 11 00 00 00 00 00 00 22 [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 17 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 17 00 89 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [19:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:38:02]wFMCommunicate OK [19:38:02]requested_item fd.num is exist - process it [19:38:02]SAM_PROTO_GetFieldsCounters [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 13 00 00 [19:38:02]Write to MH i2c: E2 08 00 8A 1F 80 13 00 00 00 00 00 00 25 [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 62 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 62 00 8A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [19:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:02]wFMCommunicate OK [19:38:02]SAM_PROTO_GetFieldsCounters done [19:38:02]requested_item shift.num is exist - process it [19:38:02]requested_item shift.opened is exist - process it [19:38:02]req_shift_opened [19:38:02]FM_GetShiftState [19:38:02]SAM_PROTO_GetShiftState [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 13 01 00 [19:38:02]Write to MH i2c: E2 08 00 8B 1F 80 13 01 00 00 00 00 00 27 [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:02]Read from MH i2c: E2 0E 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 0E 00 8B 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 53 [19:38:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:38:02]wFMCommunicate OK [19:38:02]SAM_PROTO_GetShiftState done [19:38:02]FM_GetShiftState done [19:38:02]req_shift_opened done [19:38:02]requested_item shift.open_date is exist - process it [19:38:02]req_shift_open_date [19:38:02]req_shift_open_date done [19:38:02]produce_requested_data done [19:38:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69992,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:38:02]process_action_free close_receipt [19:38:02]json_value_free [19:38:02]json_value_free done [19:38:02]process_json_proto returns [19:38:02]Send response to host [19:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69992,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:38:02]free response buf [19:38:02]execute_script done [19:38:02]execute_script returns [19:38:02]free content buf [19:38:02]Sock 9.Close socket [19:38:02]Sock 9.Thread stoped [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:39:58]accept exits with 7 [19:39:58]New connection [19:39:58]New thread 3067170148 created [19:39:58]Thread 3067026788 joined [19:39:58]Waiting for new connection... [19:39:58] Sock 7.Parse request [19:39:58]Sock 7.Check first char [19:39:58]Sock 7.First char is OK [19:39:58]request: POST /json_proto HTTP/1.0 [19:39:58]Method: POST [19:39:58]URL: /json_proto [19:39:58]Method is POST - this is cgi request [19:39:58]url: /json_proto [19:39:58]query_string will be loaded in cgi processing [19:39:58]execute_cgi json_proto POST (null) [19:39:58]execute_cgi path=json_proto method=POST [19:39:58]POST find Content-Length [19:39:58]Host: 172.17.50.3:8080 [19:39:58]Content-Length: 678 [19:39:58]Content-Type: application/json [19:39:58] [19:39:58]POST finish read [19:39:58]Found Content-Length = 678 [19:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885759", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:58]execute_script... [19:39: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)2885759", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:58]POST & json_proto [19:39:58]process_json_proto [19:39:58]json parsed OK: [19:39:58]protocol is kg_v1.0 [19:39:58]action value=close_receipt [19:39:58]process_action close_receipt [19:39:58]cmd_close_receipt [19:39:58]MH_GetDate [19:39:58]Write to MH i2c: F0 00 00 8C 1F 9A [19:39:58]Write i2c OK [19:39:58]MH_I2C_Read... [19:39:58]Read from MH i2c: F0 [19:39:58]MH_I2C_Read... [19:39:58]Read from MH i2c: F0 09 00 [19:39:58]MH_I2C_Read... [19:39:58]Read from MH i2c: F0 09 00 8C 1F 00 10 AE 16 67 6B 98 1E 66 65 [19:39:58]GetLastDocTimeStamp 1729539479 [19:39:58]current date 1729539600 [19:39:58]FM_GetShiftState [19:39:58]SAM_PROTO_GetShiftState [19:39:58]wFMCommunicate request_size=4 [19:39:58]MH_SAM_APDU [19:39:58]CAPDU: 80 13 01 00 [19:39:58]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [19:39:58]Write i2c OK [19:39:58]MH_I2C_Read... [19:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:58]Read from MH i2c: E2 [19:39:58]MH_I2C_Read... [19:39:58]Read from MH i2c: E2 0E 00 [19:39:58]MH_I2C_Read... [19:39:58]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 55 [19:39:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:39:58]wFMCommunicate OK [19:39:58]SAM_PROTO_GetShiftState done [19:39:58]FM_GetShiftState done [19:39:58]opened in 1729469703 [19:39:58]opened+sec_in_day 1729556103 [19:39:58]quantity*price = 30038 [19:39:58]sum+1 = 30039 [19:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 383 21.10.2024 19:40 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69993 ФПД: 112531615274395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69993&fm=112531615274395&tin=02508201610067®Number=0000000000156251&sum=30000 [19:40:00]StoreToDocumentArchive [19:40:00]shift 194 fd 69993 [19:40:00]save to /storage/0194/doc_00069993 [19:40:00]save last doc name /storage/0194/doc_00069993 to /storage/kkm_last_doc_name [19:40:00]save OK [19:40:00]Clear old archive folders... [19:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:00]tlvbuf is 0114EFA0 [19:40:00]SAM_PROTO_ClearQueue [19:40:00]wFMCommunicate request_size=4 [19:40:00]MH_SAM_APDU [19:40:00]CAPDU: 80 09 00 00 [19:40:00]Write to MH i2c: E2 08 00 9A 1F 80 09 00 00 00 00 00 00 2B [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [19:40:00]RAPDU: 90 00 [19:40:00]wFMCommunicate OK [19:40:00]SAM_PROTO_ClearQueue done [19:40:00]KKMCreateOFDPacket [19:40:00]OFDProtocolAddRootSTLVToBuf [19:40:00]FM_MakeSignedData [19:40:00]FM_MakeSignedData [19:40:00]SAM_PROTO_SignData [19:40:00]wFMCommunicate request_size=4 [19:40:00]MH_SAM_APDU [19:40:00]CAPDU: 80 0D 01 02 [19:40:00]Write to MH i2c: E2 08 00 9B 1F 80 0D 01 02 00 00 00 00 33 [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [19:40:00]RAPDU: 90 00 [19:40:00]wFMCommunicate OK [19:40:00]wFMCommunicate request_size=255 [19:40:00]MH_SAM_APDU [19:40:00]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 10 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 11 01 00 35 04 06 00 66 [19:40:00]Write to MH i2c: E2 02 01 9C 1F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 10 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 11 01 00 35 04 06 00 66 00 00 0E [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [19:40:00]RAPDU: 90 00 [19:40:00]wFMCommunicate OK [19:40:00]wFMCommunicate request_size=10 [19:40:00]MH_SAM_APDU [19:40:00]CAPDU: 80 0D 02 02 05 58 CE F4 55 9B [19:40:00]Write to MH i2c: E2 0D 00 9D 1F 80 0D 02 02 05 00 58 CE F4 55 9B 00 00 4A [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [19:40:00]RAPDU: 90 00 [19:40:00]wFMCommunicate OK [19:40:00]wFMCommunicate request_size=4 [19:40:00]MH_SAM_APDU [19:40:00]CAPDU: 80 0D 03 02 [19:40:00]Write to MH i2c: E2 08 00 9E 1F 80 0D 03 02 00 00 00 00 38 [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 0B 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 0B 00 9E 1F 00 85 3B 16 6D CC 20 0F A8 90 00 1F [19:40:00]RAPDU: 85 3B 16 6D CC 20 0F A8 90 00 [19:40:00]wFMCommunicate OK [19:40:00]SAM_PROTO_SignData done [19:40:00]FM_MakeSignedData done [19:40:00]CreateOFDProtocolMessage [19:40:00]wFMCommunicate request_size=4 [19:40:00]MH_SAM_APDU [19:40:00]CAPDU: 80 11 00 00 [19:40:00]Write to MH i2c: E2 08 00 9F 1F 80 11 00 00 00 00 00 00 38 [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:00]Read from MH i2c: E2 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 17 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: E2 17 00 9F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [19:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:40:00]wFMCommunicate OK [19:40:00]CreateOFDProtocolMessage done [19:40:00]OFDSenderStorePacket 69993 [19:40:00]StoreOFDPacket docnum=69993 [19:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 1B 07 01 5E 9F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 10 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 11 01 00 35 04 06 00 66 58 CE F4 55 9B 85 3B 16 6D CC 20 0F A8 [19:40:00]CheckFolder [19:40:00]dirname=/storage/ofd_packets [19:40:00]CheckFolder done [19:40:00]ProducePacketName [19:40:00]name=ofd_packets/00069993 [19:40:00]NVStorageSaveData ofd_packets/00069993 [19:40:00]File name is /storage/ofd_packets/00069993 [19:40:00]Write 301 bytes [19:40:00]NVStorageSaveData done [19:40:00]OFDSenderStorePacket done [19:40:00]KKMCreateOFDPacket done [19:40:00]NVStorageSaveData kkm_last_timestamp [19:40:00]File name is /storage/kkm_last_timestamp [19:40:00]Write 4 bytes [19:40:00]NVStorageSaveData done [19:40:00]ExternCall_PrintAddStr [19:40:00]wPrintStart [19:40:00]Write to MH i2c: 01 00 00 A0 1F BF [19:40:00]Write i2c OK [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: 01 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: 01 07 00 [19:40:00]MH_I2C_Read... [19:40:00]Read from MH i2c: 01 07 00 A0 1F 00 00 00 00 00 FF 0F D4 [19:40:00]RasterBufferAndPrint [19:40:00]line Счет N : (1)2885759 [19:40:00]line ИНН: 02508201610067 [19:40:00]line Контрольно-Кассовый Чек [19:40:00]line ПРОДАЖА [19:40:00]line ТРК (МРК, ГНК) : 32 [19:40:00]line Товар: 2710124130 [19:40:00]line Аи-92-К-5 [19:40:00]line 4.490 * 66.90 [19:40:00]line = 300.38 [19:40:00]line НДС 12% НСП 1% [19:40:00]line > о реализуемом товаре [19:40:00]line ОКРУГЛЕНИЕ: -0.38 [19:40:00]line ИТОГО: 300.00 [19:40:00]line Внесено: 300.00 [19:40:00]line СДАЧА: 0.00 [19:40:00]line НСП 1% : 2.66 [19:40:00]line НДС 12% : 31.90 [19:40:00]line Наличными: 300.00 [19:40:00]line Безнал.: 0.00 [19:40:00]line Место: АЗС № 85 "Партнер Нефть" [19:40:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:40:00]line СНО: Общий режим [19:40:00]line Чек 383 21.10.2024 19:40 [19:40:00]line Смена: 194 ФФД: 1.0 [19:40:00]line ЗНМ: 0300000167 [19:40:00]line РНМ: 0000000000156251 [19:40:00]line Версия ККМ: v1.0 [19:40:00]line ФМ: 0000000000963346 [19:40:00]line ФД: 69993 [19:40:00]line ФПД: 112531615274395 [19:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69993&fm=112531615274395&tin=02508201610067®Number=0000000000156251&sum=30000 [19:40:00]OFD Sender: Processing packet 69993 [packets to send 18, broken 17] [19:40:00]ProducePacketName [19:40:00]name=ofd_packets/00069993 [19:40:00]OFD Sender: To server: pG, [19:40:00]CommunicateWithHost lk.salyk.kg:30040 [19:40:00]ConnectInit lk.salyk.kg [19:40:00]written 0, free lines is 4095 [19:40:01]Connected sock=10 [19:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 1B 07 01 5E 9F 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 10 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 11 01 00 35 04 06 00 66 58 CE F4 55 9B 85 3B 16 6D CC 20 0F A8 [19:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 68 41 47 00 00 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 39 36 33 33 34 36 10 04 04 00 69 11 01 00 F4 03 04 00 B3 57 16 67 B6 04 01 00 00 6C 38 13 DD 23 B5 68 8D [19:40:01]CommunicateWithHost err = 0 [19:40:01]CheckOFDResponse [19:40:01]1017 (14) - 77093643461234 [19:40:01]1041 (16) - 0000000000963346 [19:40:01]1040 (4) - 69993 [19:40:01]1012 (4) - 21.10.2024 13:31 [19:40:01]1206 (1) - 0 [19:40:01]OFD Sender: Remove packet 69993 [19:40:01]ProducePacketName [19:40:01]name=ofd_packets/00069993 [19:40:01]NVStorageDeleteData [19:40:01]Write to MH i2c: 01 00 00 CB 1F EA [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: 01 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: 01 07 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 F5 0C F2 [19:40:01]RasterBufferAndPrint [19:40:01]line [19:40:01]line [19:40:01]line [19:40:01]line [19:40:01]line [19:40:01]written 0, free lines is 3323 [19:40:01]MH_Cut [19:40:01]Write to MH i2c: D1 01 00 D2 1F 01 C3 [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: D1 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: D1 01 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: D1 01 00 D2 1F 00 C2 [19:40:01]Write to MH i2c: 01 00 00 D3 1F F2 [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]OFD Sender: No OFD packet to send [19:40:02]*** Cut start [19:40:02]*** Partial cut [19:40:02]*** CUTSNS_PIN = 1 [19:40:02]*** CUTSNS_PIN = 0 [19:40:02]*** Brake cut motor [19:40:02]Read from MH i2c: 01 [19:40:02]MH_I2C_Read... [19:40:02]*** Stop cut motor [19:40:02]*** Cut end [19:40:02]Read from MH i2c: 01 07 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [19:40:02]process_action close_receipt done [19:40:02]requested_data is exist [19:40:02]produce_requested_data [19:40:02]requested_item fm.sn is exist - process it [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 11 00 00 [19:40:02]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 17 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [19:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:40:02]wFMCommunicate OK [19:40:02]requested_item fd.num is exist - process it [19:40:02]SAM_PROTO_GetFieldsCounters [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 13 00 00 [19:40:02]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 62 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 62 00 D5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [19:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:02]wFMCommunicate OK [19:40:02]SAM_PROTO_GetFieldsCounters done [19:40:02]requested_item shift.num is exist - process it [19:40:02]requested_item shift.opened is exist - process it [19:40:02]req_shift_opened [19:40:02]FM_GetShiftState [19:40:02]SAM_PROTO_GetShiftState [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 13 01 00 [19:40:02]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0E 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9E [19:40:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:40:02]wFMCommunicate OK [19:40:02]SAM_PROTO_GetShiftState done [19:40:02]FM_GetShiftState done [19:40:02]req_shift_opened done [19:40:02]requested_item shift.open_date is exist - process it [19:40:02]req_shift_open_date [19:40:02]req_shift_open_date done [19:40:02]produce_requested_data done [19:40:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69993,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:40:02]process_action_free close_receipt [19:40:02]json_value_free [19:40:02]json_value_free done [19:40:02]process_json_proto returns [19:40:02]Send response to host [19:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69993,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:40:02]free response buf [19:40:02]execute_script done [19:40:02]execute_script returns [19:40:02]free content buf [19:40:02]Sock 7.Close socket [19:40:02]Sock 7.Thread stoped [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]accept exits with 9 [19:42:31]New connection [19:42:31]New thread 3067026788 created [19:42:31]Thread 3067170148 joined [19:42:31]Waiting for new connection... [19:42:31] Sock 9.Parse request [19:42:31]Sock 9.Check first char [19:42:31]Sock 9.First char is OK [19:42:31]request: POST /json_proto HTTP/1.0 [19:42:31]Method: POST [19:42:31]URL: /json_proto [19:42:31]Method is POST - this is cgi request [19:42:31]url: /json_proto [19:42:31]query_string will be loaded in cgi processing [19:42:31]execute_cgi json_proto POST (null) [19:42:31]execute_cgi path=json_proto method=POST [19:42:31]POST find Content-Length [19:42:31]Host: 172.17.50.3:8080 [19:42:31]Content-Length: 770 [19:42:31]Content-Type: application/json [19:42:31] [19:42:31]POST finish read [19:42:31]Found Content-Length = 770 [19:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885760", "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" : 66.060, "sum" : 4901.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4901.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:31]execute_script... [19:42: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)2885760", "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" : 66.060, "sum" : 4901.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4901.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:31]POST & json_proto [19:42:31]process_json_proto [19:42:31]json parsed OK: [19:42:31]protocol is kg_v1.0 [19:42:31]action value=close_receipt [19:42:31]process_action close_receipt [19:42:31]cmd_close_receipt [19:42:31]MH_GetDate [19:42:31]Write to MH i2c: F0 00 00 D7 1F E5 [19:42:31]Write i2c OK [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: F0 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: F0 09 00 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: F0 09 00 D7 1F 00 A9 AE 16 67 6B 98 1E 66 49 [19:42:31]GetLastDocTimeStamp 1729539600 [19:42:31]current date 1729539753 [19:42:31]FM_GetShiftState [19:42:31]SAM_PROTO_GetShiftState [19:42:31]wFMCommunicate request_size=4 [19:42:31]MH_SAM_APDU [19:42:31]CAPDU: 80 13 01 00 [19:42:31]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [19:42:31]Write i2c OK [19:42:31]MH_I2C_Read... [19:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:31]Read from MH i2c: E2 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: E2 0E 00 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A0 [19:42:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:42:31]wFMCommunicate OK [19:42:31]SAM_PROTO_GetShiftState done [19:42:31]FM_GetShiftState done [19:42:31]opened in 1729469703 [19:42:31]opened+sec_in_day 1729556103 [19:42:31]quantity*price = 490165 [19:42:31]sum+1 = 490166 [19:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4901.65 НСП 1% : 43.38 НДС 12% : 520.53 Наличными: 0.00 Безнал.: 4901.65 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 384 21.10.2024 19:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69994 ФПД: 173516462276540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69994&fm=173516462276540&tin=02508201610067®Number=0000000000156251&sum=490165 [19:42:32]StoreToDocumentArchive [19:42:32]shift 194 fd 69994 [19:42:32]save to /storage/0194/doc_00069994 [19:42:32]save last doc name /storage/0194/doc_00069994 to /storage/kkm_last_doc_name [19:42:32]save OK [19:42:32]Clear old archive folders... [19:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:32]tlvbuf is 01133910 [19:42:32]SAM_PROTO_ClearQueue [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 09 00 00 [19:42:32]Write to MH i2c: E2 08 00 E5 1F 80 09 00 00 00 00 00 00 76 [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:32]Read from MH i2c: E2 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 03 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [19:42:32]RAPDU: 90 00 [19:42:32]wFMCommunicate OK [19:42:32]SAM_PROTO_ClearQueue done [19:42:32]KKMCreateOFDPacket [19:42:32]OFDProtocolAddRootSTLVToBuf [19:42:32]FM_MakeSignedData [19:42:32]FM_MakeSignedData [19:42:32]SAM_PROTO_SignData [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 0D 01 02 [19:42:32]Write to MH i2c: E2 08 00 E6 1F 80 0D 01 02 00 00 00 00 7E [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]wFMCommunicate request_size=255 [19:42:33]MH_SAM_APDU [19:42: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 0C 02 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B5 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 A9 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 11 01 00 35 04 06 00 9D [19:42:33]Write to MH i2c: E2 02 01 E7 1F 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 0C 02 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B5 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 A9 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 11 01 00 35 04 06 00 9D 00 00 A1 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]wFMCommunicate request_size=10 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 0D 02 02 05 CF F3 18 BF BC [19:42:33]Write to MH i2c: E2 0D 00 E8 1F 80 0D 02 02 05 00 CF F3 18 BF BC 00 00 E0 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]wFMCommunicate request_size=4 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 0D 03 02 [19:42:33]Write to MH i2c: E2 08 00 E9 1F 80 0D 03 02 00 00 00 00 83 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 0B 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 0B 00 E9 1F 00 C4 DE EF 5A BB 3B B0 0E 90 00 23 [19:42:33]RAPDU: C4 DE EF 5A BB 3B B0 0E 90 00 [19:42:33]wFMCommunicate OK [19:42:33]SAM_PROTO_SignData done [19:42:33]FM_MakeSignedData done [19:42:33]CreateOFDProtocolMessage [19:42:33]wFMCommunicate request_size=4 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 11 00 00 [19:42:33]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 17 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 17 00 EA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [19:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:42:33]wFMCommunicate OK [19:42:33]CreateOFDProtocolMessage done [19:42:33]OFDSenderStorePacket 69994 [19:42:33]StoreOFDPacket docnum=69994 [19:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 BB 07 01 A1 3E 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 0C 02 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B5 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 A9 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 11 01 00 35 04 06 00 9D CF F3 18 BF BC C4 DE EF 5A BB 3B B0 0E [19:42:33]CheckFolder [19:42:33]dirname=/storage/ofd_packets [19:42:33]CheckFolder done [19:42:33]ProducePacketName [19:42:33]name=ofd_packets/00069994 [19:42:33]NVStorageSaveData ofd_packets/00069994 [19:42:33]File name is /storage/ofd_packets/00069994 [19:42:33]Write 301 bytes [19:42:33]NVStorageSaveData done [19:42:33]OFDSenderStorePacket done [19:42:33]KKMCreateOFDPacket done [19:42:33]NVStorageSaveData kkm_last_timestamp [19:42:33]File name is /storage/kkm_last_timestamp [19:42:33]Write 4 bytes [19:42:33]NVStorageSaveData done [19:42:33]ExternCall_PrintAddStr [19:42:33]wPrintStart [19:42:33]Write to MH i2c: 01 00 00 EB 1F 0A [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: 01 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: 01 07 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 FF 0F 1F [19:42:33]RasterBufferAndPrint [19:42:33]line Счет N : (1)2885760 [19:42:33]line ИНН: 02508201610067 [19:42:33]line Контрольно-Кассовый Чек [19:42:33]line ПРОДАЖА [19:42:33]line ТРК (МРК, ГНК) : 43 [19:42:33]line Товар: 2710124500 [19:42:33]line Аи-95-К-5 [19:42:33]line 66.060 * 74.20 [19:42:33]line = 4901.65 [19:42:33]line НДС 12% НСП 1% [19:42:33]line > о реализуемом товаре [19:42:33]line ИТОГО: 4901.65 [19:42:33]line НСП 1% : 43.38 [19:42:33]line НДС 12% : 520.53 [19:42:33]line Наличными: 0.00 [19:42:33]line Безнал.: 4901.65 [19:42:33]line Место: АЗС № 85 "Партнер Нефть" [19:42:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:42:33]line СНО: Общий режим [19:42:33]line Чек 384 21.10.2024 19:42 [19:42:33]line Смена: 194 ФФД: 1.0 [19:42:33]line ЗНМ: 0300000167 [19:42:33]line РНМ: 0000000000156251 [19:42:33]line Версия ККМ: v1.0 [19:42:33]line Платежная система: Mbank [19:42:33]line ФМ: 0000000000963346 [19:42:33]line ФД: 69994 [19:42:33]line ФПД: 173516462276540 [19:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194233&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69994&fm=173516462276540&tin=02508201610067®Number=0000000000156251&sum=490165 [19:42:33]OFD Sender: Processing packet 69994 [packets to send 18, broken 17] [19:42:33]ProducePacketName [19:42:33]name=ofd_packets/00069994 [19:42:33]OFD Sender: To server: pG, [19:42:33]CommunicateWithHost lk.salyk.kg:30040 [19:42:33]ConnectInit lk.salyk.kg [19:42:33]written 0, free lines is 4095 [19:42:33]Connected sock=10 [19:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 BB 07 01 A1 3E 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 0C 02 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B5 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 A9 AE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 11 01 00 35 04 06 00 9D CF F3 18 BF BC C4 DE EF 5A BB 3B B0 0E [19:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F1 09 47 00 44 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 11 01 00 F4 03 04 00 4C 58 16 67 B6 04 01 00 00 EA C2 B8 A7 A0 9E E9 13 [19:42:34]CommunicateWithHost err = 0 [19:42:34]CheckOFDResponse [19:42:34]1017 (14) - 77093643461234 [19:42:34]1041 (16) - 0000000000963346 [19:42:34]1040 (4) - 69994 [19:42:34]1012 (4) - 21.10.2024 13:34 [19:42:34]1206 (1) - 0 [19:42:34]OFD Sender: Remove packet 69994 [19:42:34]ProducePacketName [19:42:34]name=ofd_packets/00069994 [19:42:34]NVStorageDeleteData [19:42:34]Write to MH i2c: 01 00 00 14 20 34 [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 2D 0D 75 [19:42:34]RasterBufferAndPrint [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]written 0, free lines is 3379 [19:42:34]MH_Cut [19:42:34]Write to MH i2c: D1 01 00 1B 20 01 0D [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 01 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 01 00 1B 20 00 0C [19:42:34]Write to MH i2c: 01 00 00 1C 20 3C [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]OFD Sender: No OFD packet to send [19:42:34]*** Cut start [19:42:34]*** Partial cut [19:42:34]*** CUTSNS_PIN = 1 [19:42:34]*** CUTSNS_PIN = 0 [19:42:35]*** Brake cut motor [19:42:35]Read from MH i2c: 01 [19:42:35]MH_I2C_Read... [19:42:35]*** Stop cut motor [19:42:35]*** Cut end [19:42:35]Read from MH i2c: 01 07 00 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: 01 07 00 1C 20 00 00 00 00 00 FF 0F 51 [19:42:35]process_action close_receipt done [19:42:35]requested_data is exist [19:42:35]produce_requested_data [19:42:35]requested_item fm.sn is exist - process it [19:42:35]wFMCommunicate request_size=4 [19:42:35]MH_SAM_APDU [19:42:35]CAPDU: 80 11 00 00 [19:42:35]Write to MH i2c: E2 08 00 1D 20 80 11 00 00 00 00 00 00 B7 [19:42:35]Write i2c OK [19:42:35]MH_I2C_Read... [19:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:35]Read from MH i2c: E2 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 17 00 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 17 00 1D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [19:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:42:35]wFMCommunicate OK [19:42:35]requested_item fd.num is exist - process it [19:42:35]SAM_PROTO_GetFieldsCounters [19:42:35]wFMCommunicate request_size=4 [19:42:35]MH_SAM_APDU [19:42:35]CAPDU: 80 13 00 00 [19:42:35]Write to MH i2c: E2 08 00 1E 20 80 13 00 00 00 00 00 00 BA [19:42:35]Write i2c OK [19:42:35]MH_I2C_Read... [19:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:35]Read from MH i2c: E2 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 62 00 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 62 00 1E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:35]wFMCommunicate OK [19:42:35]SAM_PROTO_GetFieldsCounters done [19:42:35]requested_item shift.num is exist - process it [19:42:35]requested_item shift.opened is exist - process it [19:42:35]req_shift_opened [19:42:35]FM_GetShiftState [19:42:35]SAM_PROTO_GetShiftState [19:42:35]wFMCommunicate request_size=4 [19:42:35]MH_SAM_APDU [19:42:35]CAPDU: 80 13 01 00 [19:42:35]Write to MH i2c: E2 08 00 1F 20 80 13 01 00 00 00 00 00 BC [19:42:35]Write i2c OK [19:42:35]MH_I2C_Read... [19:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:35]Read from MH i2c: E2 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 0E 00 [19:42:35]MH_I2C_Read... [19:42:35]Read from MH i2c: E2 0E 00 1F 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E8 [19:42:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:42:35]wFMCommunicate OK [19:42:35]SAM_PROTO_GetShiftState done [19:42:35]FM_GetShiftState done [19:42:35]req_shift_opened done [19:42:35]requested_item shift.open_date is exist - process it [19:42:35]req_shift_open_date [19:42:35]req_shift_open_date done [19:42:35]produce_requested_data done [19:42:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69994,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:42:35]process_action_free close_receipt [19:42:35]json_value_free [19:42:35]json_value_free done [19:42:35]process_json_proto returns [19:42:35]Send response to host [19:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69994,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:42:35]free response buf [19:42:35]execute_script done [19:42:35]execute_script returns [19:42:35]free content buf [19:42:35]Sock 9.Close socket [19:42:35]Sock 9.Thread stoped [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]accept exits with 7 [19:44:49]New connection [19:44:49]New thread 3067170148 created [19:44:49]Thread 3067026788 joined [19:44:49]Waiting for new connection... [19:44:49] Sock 7.Parse request [19:44:49]Sock 7.Check first char [19:44:49]Sock 7.First char is OK [19:44:49]request: POST /json_proto HTTP/1.0 [19:44:49]Method: POST [19:44:49]URL: /json_proto [19:44:49]Method is POST - this is cgi request [19:44:49]url: /json_proto [19:44:49]query_string will be loaded in cgi processing [19:44:49]execute_cgi json_proto POST (null) [19:44:49]execute_cgi path=json_proto method=POST [19:44:49]POST find Content-Length [19:44:49]Host: 172.17.50.3:8080 [19:44:49]Content-Length: 768 [19:44:49]Content-Type: application/json [19:44:49] [19:44:49]POST finish read [19:44:49]Found Content-Length = 768 [19:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885762", "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" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:49]execute_script... [19:44: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)2885762", "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" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:49]POST & json_proto [19:44:49]process_json_proto [19:44:49]json parsed OK: [19:44:49]protocol is kg_v1.0 [19:44:49]action value=close_receipt [19:44:49]process_action close_receipt [19:44:49]cmd_close_receipt [19:44:49]MH_GetDate [19:44:49]Write to MH i2c: F0 00 00 20 20 2F [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: F0 09 00 20 20 00 32 AF 16 67 6B 98 1E 66 1D [19:44:49]GetLastDocTimeStamp 1729539753 [19:44:49]current date 1729539890 [19:44:49]FM_GetShiftState [19:44:49]SAM_PROTO_GetShiftState [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 01 00 [19:44:49]Write to MH i2c: E2 08 00 21 20 80 13 01 00 00 00 00 00 BE [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 21 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EA [19:44:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:44:49]wFMCommunicate OK [19:44:49]SAM_PROTO_GetShiftState done [19:44:49]FM_GetShiftState done [19:44:49]opened in 1729469703 [19:44:49]opened+sec_in_day 1729556103 [19:44:49]quantity*price = 80061 [19:44:49]sum+1 = 80063 [19:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 385 21.10.2024 19:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69995 ФПД: 28843251605542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69995&fm=28843251605542&tin=02508201610067®Number=0000000000156251&sum=80062 [19:44:50]StoreToDocumentArchive [19:44:50]shift 194 fd 69995 [19:44:50]save to /storage/0194/doc_00069995 [19:44:50]save last doc name /storage/0194/doc_00069995 to /storage/kkm_last_doc_name [19:44:50]save OK [19:44:50]Clear old archive folders... [19:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:50]tlvbuf is 0111D110 [19:44:50]SAM_PROTO_ClearQueue [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 09 00 00 [19:44:50]Write to MH i2c: E2 08 00 2E 20 80 09 00 00 00 00 00 00 C0 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_ClearQueue done [19:44:50]KKMCreateOFDPacket [19:44:50]OFDProtocolAddRootSTLVToBuf [19:44:50]FM_MakeSignedData [19:44:50]FM_MakeSignedData [19:44:50]SAM_PROTO_SignData [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 01 02 [19:44:50]Write to MH i2c: E2 08 00 2F 20 80 0D 01 02 00 00 00 00 C8 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=255 [19:44:50]MH_SAM_APDU [19:44: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 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 32 AF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 11 01 00 35 04 06 00 1A [19:44:50]Write to MH i2c: E2 02 01 30 20 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 32 AF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 11 01 00 35 04 06 00 1A 00 00 73 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=10 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 02 02 05 3B 97 C4 20 26 [19:44:50]Write to MH i2c: E2 0D 00 31 20 80 0D 02 02 05 00 3B 97 C4 20 26 00 00 B1 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [19:44:50]RAPDU: 90 00 [19:44:50]wFMCommunicate OK [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 0D 03 02 [19:44:50]Write to MH i2c: E2 08 00 32 20 80 0D 03 02 00 00 00 00 CD [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0B 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0B 00 32 20 00 2F 61 D2 3E AA 19 B8 5C 90 00 45 [19:44:50]RAPDU: 2F 61 D2 3E AA 19 B8 5C 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_SignData done [19:44:50]FM_MakeSignedData done [19:44:50]CreateOFDProtocolMessage [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 11 00 00 [19:44:50]Write to MH i2c: E2 08 00 33 20 80 11 00 00 00 00 00 00 CD [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 17 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 17 00 33 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [19:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:50]wFMCommunicate OK [19:44:50]CreateOFDProtocolMessage done [19:44:50]OFDSenderStorePacket 69995 [19:44:50]StoreOFDPacket docnum=69995 [19:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 D7 07 01 73 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 32 AF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 11 01 00 35 04 06 00 1A 3B 97 C4 20 26 2F 61 D2 3E AA 19 B8 5C [19:44:50]CheckFolder [19:44:50]dirname=/storage/ofd_packets [19:44:50]CheckFolder done [19:44:50]ProducePacketName [19:44:50]name=ofd_packets/00069995 [19:44:50]NVStorageSaveData ofd_packets/00069995 [19:44:50]File name is /storage/ofd_packets/00069995 [19:44:50]Write 301 bytes [19:44:50]NVStorageSaveData done [19:44:50]OFDSenderStorePacket done [19:44:50]KKMCreateOFDPacket done [19:44:50]NVStorageSaveData kkm_last_timestamp [19:44:50]File name is /storage/kkm_last_timestamp [19:44:50]Write 4 bytes [19:44:50]NVStorageSaveData done [19:44:50]ExternCall_PrintAddStr [19:44:50]wPrintStart [19:44:50]Write to MH i2c: 01 00 00 34 20 54 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 07 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: 01 07 00 34 20 00 00 00 00 00 FF 0F 69 [19:44:50]RasterBufferAndPrint [19:44:50]line Счет N : (1)2885762 [19:44:50]line ИНН: 02508201610067 [19:44:50]line Контрольно-Кассовый Чек [19:44:50]line ПРОДАЖА [19:44:50]line ТРК (МРК, ГНК) : 33 [19:44:50]line Товар: 2710124500 [19:44:50]line Аи-95-К-5 [19:44:50]line 10.790 * 74.20 [19:44:50]line = 800.62 [19:44:50]line НДС 12% НСП 1% [19:44:50]line > о реализуемом товаре [19:44:50]line ИТОГО: 800.62 [19:44:50]line НСП 1% : 7.08 [19:44:50]line НДС 12% : 85.02 [19:44:50]line Наличными: 0.00 [19:44:50]line Безнал.: 800.62 [19:44:50]line Место: АЗС № 85 "Партнер Нефть" [19:44:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:44:50]line СНО: Общий режим [19:44:50]line Чек 385 21.10.2024 19:44 [19:44:50]line Смена: 194 ФФД: 1.0 [19:44:50]line ЗНМ: 0300000167 [19:44:50]line РНМ: 0000000000156251 [19:44:50]line Версия ККМ: v1.0 [19:44:50]line Платежная система: Mbank [19:44:50]line ФМ: 0000000000963346 [19:44:50]line ФД: 69995 [19:44:50]line ФПД: 28843251605542 [19:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194450&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69995&fm=28843251605542&tin=02508201610067®Number=0000000000156251&sum=80062 [19:44:51]OFD Sender: Processing packet 69995 [packets to send 18, broken 17] [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00069995 [19:44:51]OFD Sender: To server: pG, [19:44:51]CommunicateWithHost lk.salyk.kg:30040 [19:44:51]ConnectInit lk.salyk.kg [19:44:51]written 0, free lines is 4095 [19:44:51]Connected sock=10 [19:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 D7 07 01 73 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 32 AF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 11 01 00 35 04 06 00 1A 3B 97 C4 20 26 2F 61 D2 3E AA 19 B8 5C [19:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0E 9C 47 00 0A 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 11 01 00 F4 03 04 00 D5 58 16 67 B6 04 01 00 00 4A 73 9D 81 BC 7E D8 70 [19:44:51]CommunicateWithHost err = 0 [19:44:51]CheckOFDResponse [19:44:51]1017 (14) - 77093643461234 [19:44:51]1041 (16) - 0000000000963346 [19:44:51]1040 (4) - 69995 [19:44:51]1012 (4) - 21.10.2024 13:36 [19:44:51]1206 (1) - 0 [19:44:51]OFD Sender: Remove packet 69995 [19:44:51]ProducePacketName [19:44:51]name=ofd_packets/00069995 [19:44:51]NVStorageDeleteData [19:44:51]Write to MH i2c: 01 00 00 5D 20 7D [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 2E 0D BF [19:44:51]RasterBufferAndPrint [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]line [19:44:51]written 0, free lines is 3382 [19:44:51]MH_Cut [19:44:51]Write to MH i2c: D1 01 00 64 20 01 56 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 [19:44:51]MH_I2C_Read... [19:44:51]Read from MH i2c: D1 01 00 64 20 00 55 [19:44:51]Write to MH i2c: 01 00 00 65 20 85 [19:44:51]Write i2c OK [19:44:51]MH_I2C_Read... [19:44:52]OFD Sender: No OFD packet to send [19:44:52]*** Cut start [19:44:52]*** Partial cut [19:44:52]*** CUTSNS_PIN = 1 [19:44:52]*** CUTSNS_PIN = 0 [19:44:52]*** Brake cut motor [19:44:53]Read from MH i2c: 01 [19:44:53]MH_I2C_Read... [19:44:53]*** Stop cut motor [19:44:53]*** Cut end [19:44:53]Read from MH i2c: 01 07 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: 01 07 00 65 20 00 00 00 00 00 FF 0F 9A [19:44:53]process_action close_receipt done [19:44:53]requested_data is exist [19:44:53]produce_requested_data [19:44:53]requested_item fm.sn is exist - process it [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 11 00 00 [19:44:53]Write to MH i2c: E2 08 00 66 20 80 11 00 00 00 00 00 00 00 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 17 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 17 00 66 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [19:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:53]wFMCommunicate OK [19:44:53]requested_item fd.num is exist - process it [19:44:53]SAM_PROTO_GetFieldsCounters [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 13 00 00 [19:44:53]Write to MH i2c: E2 08 00 67 20 80 13 00 00 00 00 00 00 03 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 62 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 62 00 67 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:53]wFMCommunicate OK [19:44:53]SAM_PROTO_GetFieldsCounters done [19:44:53]requested_item shift.num is exist - process it [19:44:53]requested_item shift.opened is exist - process it [19:44:53]req_shift_opened [19:44:53]FM_GetShiftState [19:44:53]SAM_PROTO_GetShiftState [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 13 01 00 [19:44:53]Write to MH i2c: E2 08 00 68 20 80 13 01 00 00 00 00 00 05 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 0E 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 0E 00 68 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 31 [19:44:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:44:53]wFMCommunicate OK [19:44:53]SAM_PROTO_GetShiftState done [19:44:53]FM_GetShiftState done [19:44:53]req_shift_opened done [19:44:53]requested_item shift.open_date is exist - process it [19:44:53]req_shift_open_date [19:44:53]req_shift_open_date done [19:44:53]produce_requested_data done [19:44:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69995,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:44:53]process_action_free close_receipt [19:44:53]json_value_free [19:44:53]json_value_free done [19:44:53]process_json_proto returns [19:44:53]Send response to host [19:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69995,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:44:53]free response buf [19:44:53]execute_script done [19:44:53]execute_script returns [19:44:53]free content buf [19:44:53]Sock 7.Close socket [19:44:53]Sock 7.Thread stoped [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:51]accept exits with 9 [19:59:51]New connection [19:59:51]New thread 3067026788 created [19:59:51]Thread 3067170148 joined [19:59:51]Waiting for new connection... [19:59:51] Sock 9.Parse request [19:59:51]Sock 9.Check first char [19:59:51]Sock 9.First char is OK [19:59:51]request: POST /json_proto HTTP/1.0 [19:59:51]Method: POST [19:59:51]URL: /json_proto [19:59:51]Method is POST - this is cgi request [19:59:51]url: /json_proto [19:59:51]query_string will be loaded in cgi processing [19:59:51]execute_cgi json_proto POST (null) [19:59:51]execute_cgi path=json_proto method=POST [19:59:51]POST find Content-Length [19:59:51]Host: 172.17.50.3:8080 [19:59:51]Content-Length: 773 [19:59:51]Content-Type: application/json [19:59:51] [19:59:51]POST finish read [19:59:51]Found Content-Length = 773 [19:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 63.990, "sum" : 2489.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2489.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:51]execute_script... [19:59: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)2885763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 63.990, "sum" : 2489.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2489.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:51]POST & json_proto [19:59:51]process_json_proto [19:59:51]json parsed OK: [19:59:51]protocol is kg_v1.0 [19:59:51]action value=close_receipt [19:59:51]process_action close_receipt [19:59:51]cmd_close_receipt [19:59:51]MH_GetDate [19:59:51]Write to MH i2c: F0 00 00 69 20 78 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: F0 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: F0 09 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: F0 09 00 69 20 00 B8 B2 16 67 6B 98 1E 66 EF [19:59:51]GetLastDocTimeStamp 1729539890 [19:59:51]current date 1729540792 [19:59:51]FM_GetShiftState [19:59:51]SAM_PROTO_GetShiftState [19:59:51]wFMCommunicate request_size=4 [19:59:51]MH_SAM_APDU [19:59:51]CAPDU: 80 13 01 00 [19:59:51]Write to MH i2c: E2 08 00 6A 20 80 13 01 00 00 00 00 00 07 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:51]Read from MH i2c: E2 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 0E 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 0E 00 6A 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 33 [19:59:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:59:51]wFMCommunicate OK [19:59:51]SAM_PROTO_GetShiftState done [19:59:51]FM_GetShiftState done [19:59:51]opened in 1729469703 [19:59:51]opened+sec_in_day 1729556103 [19:59:51]quantity*price = 248921 [19:59:51]sum+1 = 248922 [19:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2489.21 НСП 1% : 22.03 НДС 12% : 264.34 Наличными: 0.00 Безнал.: 2489.21 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 386 21.10.2024 19:59 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69996 ФПД: 190952944155522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69996&fm=190952944155522&tin=02508201610067®Number=0000000000156251&sum=248921 [19:59:52]StoreToDocumentArchive [19:59:52]shift 194 fd 69996 [19:59:52]save to /storage/0194/doc_00069996 [19:59:52]save last doc name /storage/0194/doc_00069996 to /storage/kkm_last_doc_name [19:59:52]save OK [19:59:52]Clear old archive folders... [19:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:59:52]tlvbuf is 011277F0 [19:59:52]SAM_PROTO_ClearQueue [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 09 00 00 [19:59:52]Write to MH i2c: E2 08 00 77 20 80 09 00 00 00 00 00 00 09 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [19:59:52]RAPDU: 90 00 [19:59:52]wFMCommunicate OK [19:59:52]SAM_PROTO_ClearQueue done [19:59:52]KKMCreateOFDPacket [19:59:52]OFDProtocolAddRootSTLVToBuf [19:59:52]FM_MakeSignedData [19:59:52]FM_MakeSignedData [19:59:52]SAM_PROTO_SignData [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 0D 01 02 [19:59:52]Write to MH i2c: E2 08 00 78 20 80 0D 01 02 00 00 00 00 11 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [19:59:52]RAPDU: 90 00 [19:59:52]wFMCommunicate OK [19:59:52]wFMCommunicate request_size=255 [19:59:52]MH_SAM_APDU [19:59:52]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 33 FF 03 08 00 03 F6 F9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B8 B2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 11 01 00 35 04 06 00 AD AB [19:59:52]Write to MH i2c: E2 02 01 79 20 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 33 FF 03 08 00 03 F6 F9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B8 B2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 11 01 00 35 04 06 00 AD AB 00 00 B9 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [19:59:52]RAPDU: 90 00 [19:59:52]wFMCommunicate OK [19:59:52]wFMCommunicate request_size=9 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 0D 02 02 04 B2 67 BB 82 [19:59:52]Write to MH i2c: E2 0C 00 7A 20 80 0D 02 02 04 00 B2 67 BB 82 00 00 72 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:52]Read from MH i2c: E2 03 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [19:59:52]RAPDU: 90 00 [19:59:52]wFMCommunicate OK [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 0D 03 02 [19:59:52]Write to MH i2c: E2 08 00 7B 20 80 0D 03 02 00 00 00 00 16 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 0B 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 0B 00 7B 20 00 A2 2E 02 90 EE 74 5B F2 90 00 28 [19:59:52]RAPDU: A2 2E 02 90 EE 74 5B F2 90 00 [19:59:52]wFMCommunicate OK [19:59:52]SAM_PROTO_SignData done [19:59:52]FM_MakeSignedData done [19:59:52]CreateOFDProtocolMessage [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 11 00 00 [19:59:52]Write to MH i2c: E2 08 00 7C 20 80 11 00 00 00 00 00 00 16 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 17 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 17 00 7C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [19:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:52]wFMCommunicate OK [19:59:52]CreateOFDProtocolMessage done [19:59:52]OFDSenderStorePacket 69996 [19:59:52]StoreOFDPacket docnum=69996 [19:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6E CD 06 01 AF 91 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 33 FF 03 08 00 03 F6 F9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B8 B2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 11 01 00 35 04 06 00 AD AB B2 67 BB 82 A2 2E 02 90 EE 74 5B F2 [19:59:52]CheckFolder [19:59:52]dirname=/storage/ofd_packets [19:59:52]CheckFolder done [19:59:52]ProducePacketName [19:59:52]name=ofd_packets/00069996 [19:59:52]NVStorageSaveData ofd_packets/00069996 [19:59:52]File name is /storage/ofd_packets/00069996 [19:59:52]Write 300 bytes [19:59:52]NVStorageSaveData done [19:59:52]OFDSenderStorePacket done [19:59:52]KKMCreateOFDPacket done [19:59:52]NVStorageSaveData kkm_last_timestamp [19:59:52]File name is /storage/kkm_last_timestamp [19:59:52]Write 4 bytes [19:59:52]NVStorageSaveData done [19:59:52]ExternCall_PrintAddStr [19:59:52]wPrintStart [19:59:52]Write to MH i2c: 01 00 00 7D 20 9D [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: 01 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: 01 07 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: 01 07 00 7D 20 00 00 00 00 00 FF 0F B2 [19:59:52]RasterBufferAndPrint [19:59:52]line Счет N : (1)2885763 [19:59:52]line ИНН: 02508201610067 [19:59:52]line Контрольно-Кассовый Чек [19:59:52]line ПРОДАЖА [19:59:52]line ТРК (МРК, ГНК) : 71 [19:59:52]line Товар: 2711129700 [19:59:52]line ГАЗ-К-3 [19:59:52]line 63.990 * 38.90 [19:59:52]line = 2489.21 [19:59:52]line НДС 12% НСП 1% [19:59:52]line > о реализуемом товаре [19:59:52]line ИТОГО: 2489.21 [19:59:52]line НСП 1% : 22.03 [19:59:52]line НДС 12% : 264.34 [19:59:52]line Наличными: 0.00 [19:59:52]line Безнал.: 2489.21 [19:59:52]line Место: АЗС № 85 "Партнер Нефть" [19:59:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:59:52]line СНО: Общий режим [19:59:52]line Чек 386 21.10.2024 19:59 [19:59:52]line Смена: 194 ФФД: 1.0 [19:59:52]line ЗНМ: 0300000167 [19:59:52]line РНМ: 0000000000156251 [19:59:52]line Версия ККМ: v1.0 [19:59:52]line Платежная система: Mbank [19:59:52]line ФМ: 0000000000963346 [19:59:52]line ФД: 69996 [19:59:52]line ФПД: 190952944155522 [19:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195952&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69996&fm=190952944155522&tin=02508201610067®Number=0000000000156251&sum=248921 [19:59:53]OFD Sender: Processing packet 69996 [packets to send 18, broken 17] [19:59:53]ProducePacketName [19:59:53]name=ofd_packets/00069996 [19:59:53]OFD Sender: To server: pG, [19:59:53]CommunicateWithHost lk.salyk.kg:30040 [19:59:53]ConnectInit lk.salyk.kg [19:59:53]written 0, free lines is 4095 [19:59:53]Connected sock=10 [19:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 6E CD 06 01 AF 91 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 33 FF 03 08 00 03 F6 F9 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 59 CC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 CC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 CC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B8 B2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 11 01 00 35 04 06 00 AD AB B2 67 BB 82 A2 2E 02 90 EE 74 5B F2 [19:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 7C 47 00 F6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 11 01 00 F4 03 04 00 5B 5C 16 67 B6 04 01 00 00 07 61 D3 63 EF BB 8C 29 [19:59:53]CommunicateWithHost err = 0 [19:59:53]CheckOFDResponse [19:59:53]1017 (14) - 77093643461234 [19:59:53]1041 (16) - 0000000000963346 [19:59:53]1040 (4) - 69996 [19:59:53]1012 (4) - 21.10.2024 13:51 [19:59:53]1206 (1) - 0 [19:59:53]OFD Sender: Remove packet 69996 [19:59:53]ProducePacketName [19:59:53]name=ofd_packets/00069996 [19:59:53]NVStorageDeleteData [19:59:53]Write to MH i2c: 01 00 00 A6 20 C6 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 07 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 07 00 A6 20 00 00 00 00 00 19 0D F3 [19:59:53]RasterBufferAndPrint [19:59:53]line [19:59:53]line [19:59:53]line [19:59:53]line [19:59:53]line [19:59:53]written 0, free lines is 3359 [19:59:53]MH_Cut [19:59:53]Write to MH i2c: D1 01 00 AD 20 01 9F [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: D1 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: D1 01 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: D1 01 00 AD 20 00 9E [19:59:53]Write to MH i2c: 01 00 00 AE 20 CE [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]OFD Sender: No OFD packet to send [19:59:54]*** Cut start [19:59:54]*** Partial cut [19:59:54]*** CUTSNS_PIN = 1 [19:59:54]*** CUTSNS_PIN = 0 [19:59:54]*** Brake cut motor [19:59:54]Read from MH i2c: 01 [19:59:54]MH_I2C_Read... [19:59:54]*** Stop cut motor [19:59:54]*** Cut end [19:59:54]Read from MH i2c: 01 07 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 07 00 AE 20 00 00 00 00 00 FF 0F E3 [19:59:54]process_action close_receipt done [19:59:54]requested_data is exist [19:59:54]produce_requested_data [19:59:54]requested_item fm.sn is exist - process it [19:59:54]wFMCommunicate request_size=4 [19:59:54]MH_SAM_APDU [19:59:54]CAPDU: 80 11 00 00 [19:59:54]Write to MH i2c: E2 08 00 AF 20 80 11 00 00 00 00 00 00 49 [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:54]Read from MH i2c: E2 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 17 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: E2 17 00 AF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [19:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:54]wFMCommunicate OK [19:59:54]requested_item fd.num is exist - process it [19:59:54]SAM_PROTO_GetFieldsCounters [19:59:54]wFMCommunicate request_size=4 [19:59:54]MH_SAM_APDU [19:59:54]CAPDU: 80 13 00 00 [19:59:54]Write to MH i2c: E2 08 00 B0 20 80 13 00 00 00 00 00 00 4C [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 62 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 62 00 B0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:59:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:55]wFMCommunicate OK [19:59:55]SAM_PROTO_GetFieldsCounters done [19:59:55]requested_item shift.num is exist - process it [19:59:55]requested_item shift.opened is exist - process it [19:59:55]req_shift_opened [19:59:55]FM_GetShiftState [19:59:55]SAM_PROTO_GetShiftState [19:59:55]wFMCommunicate request_size=4 [19:59:55]MH_SAM_APDU [19:59:55]CAPDU: 80 13 01 00 [19:59:55]Write to MH i2c: E2 08 00 B1 20 80 13 01 00 00 00 00 00 4E [19:59:55]Write i2c OK [19:59:55]MH_I2C_Read... [19:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:55]Read from MH i2c: E2 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 0E 00 [19:59:55]MH_I2C_Read... [19:59:55]Read from MH i2c: E2 0E 00 B1 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7A [19:59:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [19:59:55]wFMCommunicate OK [19:59:55]SAM_PROTO_GetShiftState done [19:59:55]FM_GetShiftState done [19:59:55]req_shift_opened done [19:59:55]requested_item shift.open_date is exist - process it [19:59:55]req_shift_open_date [19:59:55]req_shift_open_date done [19:59:55]produce_requested_data done [19:59:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69996,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [19:59:55]process_action_free close_receipt [19:59:55]json_value_free [19:59:55]json_value_free done [19:59:55]process_json_proto returns [19:59:55]Send response to host [19:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69996,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [19:59:55]free response buf [19:59:55]execute_script done [19:59:55]execute_script returns [19:59:55]free content buf [19:59:55]Sock 9.Close socket [19:59:55]Sock 9.Thread stoped [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:44]accept exits with 7 [20:02:44]New connection [20:02:44]New thread 3067170148 created [20:02:44]Thread 3067026788 joined [20:02:44]Waiting for new connection... [20:02:44] Sock 7.Parse request [20:02:44]Sock 7.Check first char [20:02:44]Sock 7.First char is OK [20:02:44]request: POST /json_proto HTTP/1.0 [20:02:44]Method: POST [20:02:44]URL: /json_proto [20:02:44]Method is POST - this is cgi request [20:02:44]url: /json_proto [20:02:44]query_string will be loaded in cgi processing [20:02:44]execute_cgi json_proto POST (null) [20:02:44]execute_cgi path=json_proto method=POST [20:02:44]POST find Content-Length [20:02:44]Host: 172.17.50.3:8080 [20:02:44]Content-Length: 689 [20:02:44]Content-Type: application/json [20:02:44] [20:02:44]POST finish read [20:02:44]Found Content-Length = 689 [20:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:02:44]execute_script... [20:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [20:02:44]POST & json_proto [20:02:44]process_json_proto [20:02:44]json parsed OK: [20:02:44]protocol is kg_v1.0 [20:02:44]action value=close_receipt [20:02:44]process_action close_receipt [20:02:44]cmd_close_receipt [20:02:44]MH_GetDate [20:02:44]Write to MH i2c: F0 00 00 B2 20 C1 [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: F0 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: F0 09 00 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: F0 09 00 B2 20 00 66 B3 16 67 6B 98 1E 66 E7 [20:02:44]GetLastDocTimeStamp 1729540792 [20:02:44]current date 1729540966 [20:02:44]FM_GetShiftState [20:02:44]SAM_PROTO_GetShiftState [20:02:44]wFMCommunicate request_size=4 [20:02:44]MH_SAM_APDU [20:02:44]CAPDU: 80 13 01 00 [20:02:44]Write to MH i2c: E2 08 00 B3 20 80 13 01 00 00 00 00 00 50 [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:45]Read from MH i2c: E2 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 0E 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 0E 00 B3 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7C [20:02:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:02:45]wFMCommunicate OK [20:02:45]SAM_PROTO_GetShiftState done [20:02:45]FM_GetShiftState done [20:02:45]opened in 1729469703 [20:02:45]opened+sec_in_day 1729556103 [20:02:45]quantity*price = 100051 [20:02:45]sum+1 = 100052 [20:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 387 21.10.2024 20:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69997 ФПД: 248158975240009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69997&fm=248158975240009&tin=02508201610067®Number=0000000000156251&sum=100000 [20:02:46]StoreToDocumentArchive [20:02:46]shift 194 fd 69997 [20:02:46]save to /storage/0194/doc_00069997 [20:02:46]save last doc name /storage/0194/doc_00069997 to /storage/kkm_last_doc_name [20:02:46]save OK [20:02:46]Clear old archive folders... [20:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:02:46]tlvbuf is 0112D200 [20:02:46]SAM_PROTO_ClearQueue [20:02:46]wFMCommunicate request_size=4 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 09 00 00 [20:02:46]Write to MH i2c: E2 08 00 C0 20 80 09 00 00 00 00 00 00 52 [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [20:02:46]RAPDU: 90 00 [20:02:46]wFMCommunicate OK [20:02:46]SAM_PROTO_ClearQueue done [20:02:46]KKMCreateOFDPacket [20:02:46]OFDProtocolAddRootSTLVToBuf [20:02:46]FM_MakeSignedData [20:02:46]FM_MakeSignedData [20:02:46]SAM_PROTO_SignData [20:02:46]wFMCommunicate request_size=4 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 0D 01 02 [20:02:46]Write to MH i2c: E2 08 00 C1 20 80 0D 01 02 00 00 00 00 5A [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [20:02:46]RAPDU: 90 00 [20:02:46]wFMCommunicate OK [20:02:46]wFMCommunicate request_size=255 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 01 00 00 F4 03 04 00 66 B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 11 01 [20:02:46]Write to MH i2c: E2 02 01 C2 20 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 01 00 00 F4 03 04 00 66 B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 11 01 00 00 07 [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [20:02:46]RAPDU: 90 00 [20:02:46]wFMCommunicate OK [20:02:46]wFMCommunicate request_size=16 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E1 B3 03 91 27 49 [20:02:46]Write to MH i2c: E2 13 00 C3 20 80 0D 02 02 0B 00 00 35 04 06 00 E1 B3 03 91 27 49 00 00 4A [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [20:02:46]RAPDU: 90 00 [20:02:46]wFMCommunicate OK [20:02:46]wFMCommunicate request_size=4 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 0D 03 02 [20:02:46]Write to MH i2c: E2 08 00 C4 20 80 0D 03 02 00 00 00 00 5F [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 0B 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 0B 00 C4 20 00 CB C1 72 A1 DA 16 1D 25 90 00 31 [20:02:46]RAPDU: CB C1 72 A1 DA 16 1D 25 90 00 [20:02:46]wFMCommunicate OK [20:02:46]SAM_PROTO_SignData done [20:02:46]FM_MakeSignedData done [20:02:46]CreateOFDProtocolMessage [20:02:46]wFMCommunicate request_size=4 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 11 00 00 [20:02:46]Write to MH i2c: E2 08 00 C5 20 80 11 00 00 00 00 00 00 5F [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 17 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 17 00 C5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [20:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:46]wFMCommunicate OK [20:02:46]CreateOFDProtocolMessage done [20:02:46]OFDSenderStorePacket 69997 [20:02:46]StoreOFDPacket docnum=69997 [20:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2F B0 0D 01 28 6C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 01 00 00 F4 03 04 00 66 B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 11 01 00 35 04 06 00 E1 B3 03 91 27 49 CB C1 72 A1 DA 16 1D 25 [20:02:46]CheckFolder [20:02:46]dirname=/storage/ofd_packets [20:02:46]CheckFolder done [20:02:46]ProducePacketName [20:02:46]name=ofd_packets/00069997 [20:02:46]NVStorageSaveData ofd_packets/00069997 [20:02:46]File name is /storage/ofd_packets/00069997 [20:02:46]Write 307 bytes [20:02:46]NVStorageSaveData done [20:02:46]OFDSenderStorePacket done [20:02:46]KKMCreateOFDPacket done [20:02:46]NVStorageSaveData kkm_last_timestamp [20:02:46]File name is /storage/kkm_last_timestamp [20:02:46]Write 4 bytes [20:02:46]NVStorageSaveData done [20:02:46]ExternCall_PrintAddStr [20:02:46]wPrintStart [20:02:46]Write to MH i2c: 01 00 00 C6 20 E6 [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: 01 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: 01 07 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: 01 07 00 C6 20 00 00 00 00 00 FF 0F FB [20:02:46]RasterBufferAndPrint [20:02:46]line Счет N : (1)2885765 [20:02:46]line ИНН: 02508201610067 [20:02:46]line Контрольно-Кассовый Чек [20:02:46]line ПРОДАЖА [20:02:46]line ТРК (МРК, ГНК) : 31 [20:02:46]line Товар: 2710194240 [20:02:46]line D-ENERGY Дт-К-2 [20:02:46]line 12.960 * 77.20 [20:02:46]line = 1000.51 [20:02:46]line НДС 12% НСП 1% [20:02:46]line > о реализуемом товаре [20:02:46]line ОКРУГЛЕНИЕ: -0.51 [20:02:46]line ИТОГО: 1000.00 [20:02:46]line Внесено: 1000.00 [20:02:46]line СДАЧА: 0.00 [20:02:46]line НСП 1% : 8.85 [20:02:46]line НДС 12% : 106.25 [20:02:46]line Наличными: 1000.00 [20:02:46]line Безнал.: 0.00 [20:02:46]line Место: АЗС № 85 "Партнер Нефть" [20:02:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:02:46]line СНО: Общий режим [20:02:46]line Чек 387 21.10.2024 20:02 [20:02:46]line Смена: 194 ФФД: 1.0 [20:02:46]line ЗНМ: 0300000167 [20:02:46]line РНМ: 0000000000156251 [20:02:46]line Версия ККМ: v1.0 [20:02:46]line ФМ: 0000000000963346 [20:02:46]line ФД: 69997 [20:02:46]line ФПД: 248158975240009 [20:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69997&fm=248158975240009&tin=02508201610067®Number=0000000000156251&sum=100000 [20:02:46]OFD Sender: Processing packet 69997 [packets to send 18, broken 17] [20:02:46]ProducePacketName [20:02:46]name=ofd_packets/00069997 [20:02:46]OFD Sender: To server: pG, [20:02:46]CommunicateWithHost lk.salyk.kg:30040 [20:02:46]ConnectInit lk.salyk.kg [20:02:46]written 0, free lines is 4095 [20:02:47]Connected sock=10 [20:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2F B0 0D 01 28 6C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 01 00 00 F4 03 04 00 66 B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 11 01 00 35 04 06 00 E1 B3 03 91 27 49 CB C1 72 A1 DA 16 1D 25 [20:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9B C5 47 00 CD AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 11 01 00 F4 03 04 00 09 5D 16 67 B6 04 01 00 00 2C 76 B7 B4 E4 93 7A 6F [20:02:47]CommunicateWithHost err = 0 [20:02:47]CheckOFDResponse [20:02:47]1017 (14) - 77093643461234 [20:02:47]1041 (16) - 0000000000963346 [20:02:47]1040 (4) - 69997 [20:02:47]1012 (4) - 21.10.2024 13:54 [20:02:47]1206 (1) - 0 [20:02:47]OFD Sender: Remove packet 69997 [20:02:47]ProducePacketName [20:02:47]name=ofd_packets/00069997 [20:02:47]NVStorageDeleteData [20:02:47]Write to MH i2c: 01 00 00 F1 20 11 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 07 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 F5 0C 19 [20:02:47]RasterBufferAndPrint [20:02:47]line [20:02:47]line [20:02:47]line [20:02:47]line [20:02:47]line [20:02:47]written 0, free lines is 3324 [20:02:47]MH_Cut [20:02:47]Write to MH i2c: D1 01 00 F8 20 01 EA [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: D1 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: D1 01 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: D1 01 00 F8 20 00 E9 [20:02:47]Write to MH i2c: 01 00 00 F9 20 19 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]OFD Sender: No OFD packet to send [20:02:48]*** Cut start [20:02:48]*** Partial cut [20:02:48]*** CUTSNS_PIN = 1 [20:02:48]*** CUTSNS_PIN = 0 [20:02:48]*** Brake cut motor [20:02:48]Read from MH i2c: 01 [20:02:48]MH_I2C_Read... [20:02:48]*** Stop cut motor [20:02:48]*** Cut end [20:02:48]Read from MH i2c: 01 07 00 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: 01 07 00 F9 20 00 00 00 00 00 FF 0F 2E [20:02:48]process_action close_receipt done [20:02:48]requested_data is exist [20:02:48]produce_requested_data [20:02:48]requested_item fm.sn is exist - process it [20:02:48]wFMCommunicate request_size=4 [20:02:48]MH_SAM_APDU [20:02:48]CAPDU: 80 11 00 00 [20:02:48]Write to MH i2c: E2 08 00 FA 20 80 11 00 00 00 00 00 00 94 [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:48]Read from MH i2c: E2 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: E2 17 00 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: E2 17 00 FA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [20:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:48]wFMCommunicate OK [20:02:48]requested_item fd.num is exist - process it [20:02:48]SAM_PROTO_GetFieldsCounters [20:02:48]wFMCommunicate request_size=4 [20:02:48]MH_SAM_APDU [20:02:48]CAPDU: 80 13 00 00 [20:02:48]Write to MH i2c: E2 08 00 FB 20 80 13 00 00 00 00 00 00 97 [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:48]Read from MH i2c: E2 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: E2 62 00 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: E2 62 00 FB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:48]wFMCommunicate OK [20:02:48]SAM_PROTO_GetFieldsCounters done [20:02:48]requested_item shift.num is exist - process it [20:02:48]requested_item shift.opened is exist - process it [20:02:48]req_shift_opened [20:02:48]FM_GetShiftState [20:02:48]SAM_PROTO_GetShiftState [20:02:48]wFMCommunicate request_size=4 [20:02:48]MH_SAM_APDU [20:02:48]CAPDU: 80 13 01 00 [20:02:48]Write to MH i2c: E2 08 00 FC 20 80 13 01 00 00 00 00 00 99 [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:49]Read from MH i2c: E2 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: E2 0E 00 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: E2 0E 00 FC 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [20:02:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:02:49]wFMCommunicate OK [20:02:49]SAM_PROTO_GetShiftState done [20:02:49]FM_GetShiftState done [20:02:49]req_shift_opened done [20:02:49]requested_item shift.open_date is exist - process it [20:02:49]req_shift_open_date [20:02:49]req_shift_open_date done [20:02:49]produce_requested_data done [20:02:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69997,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:02:49]process_action_free close_receipt [20:02:49]json_value_free [20:02:49]json_value_free done [20:02:49]process_json_proto returns [20:02:49]Send response to host [20:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69997,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:02:49]free response buf [20:02:49]execute_script done [20:02:49]execute_script returns [20:02:49]free content buf [20:02:49]Sock 7.Close socket [20:02:49]Sock 7.Thread stoped [20:02:49]accept exits with 9 [20:02:49]New connection [20:02:49]New thread 3067026788 created [20:02:49]Thread 3067170148 joined [20:02:49]Waiting for new connection... [20:02:49] Sock 9.Parse request [20:02:49]Sock 9.Check first char [20:02:49]Sock 9.First char is OK [20:02:49]request: POST /json_proto HTTP/1.0 [20:02:49]Method: POST [20:02:49]URL: /json_proto [20:02:49]Method is POST - this is cgi request [20:02:49]url: /json_proto [20:02:49]query_string will be loaded in cgi processing [20:02:49]execute_cgi json_proto POST (null) [20:02:49]execute_cgi path=json_proto method=POST [20:02:49]POST find Content-Length [20:02:49]Host: 172.17.50.3:8080 [20:02:49]Content-Length: 682 [20:02:49]Content-Type: application/json [20:02:49] [20:02:49]POST finish read [20:02:49]Found Content-Length = 682 [20:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [20:02:49]execute_script... [20:02: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)2885764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "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" ] } } [20:02:49]POST & json_proto [20:02:49]process_json_proto [20:02:49]json parsed OK: [20:02:49]protocol is kg_v1.0 [20:02:49]action value=close_receipt [20:02:49]process_action close_receipt [20:02:49]cmd_close_receipt [20:02:49]MH_GetDate [20:02:49]Write to MH i2c: F0 00 00 FD 20 0C [20:02:49]Write i2c OK [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: F0 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: F0 09 00 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: F0 09 00 FD 20 00 6A B3 16 67 6B 98 1E 66 36 [20:02:49]GetLastDocTimeStamp 1729540966 [20:02:49]current date 1729540970 [20:02:49]FM_GetShiftState [20:02:49]SAM_PROTO_GetShiftState [20:02:49]wFMCommunicate request_size=4 [20:02:49]MH_SAM_APDU [20:02:49]CAPDU: 80 13 01 00 [20:02:49]Write to MH i2c: E2 08 00 FE 20 80 13 01 00 00 00 00 00 9B [20:02:49]Write i2c OK [20:02:49]MH_I2C_Read... [20:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:49]Read from MH i2c: E2 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: E2 0E 00 [20:02:49]MH_I2C_Read... [20:02:49]Read from MH i2c: E2 0E 00 FE 20 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C7 [20:02:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:02:49]wFMCommunicate OK [20:02:49]SAM_PROTO_GetShiftState done [20:02:49]FM_GetShiftState done [20:02:49]opened in 1729469703 [20:02:49]opened+sec_in_day 1729556103 [20:02:49]quantity*price = 70020 [20:02:49]sum+1 = 70021 [20:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 388 21.10.2024 20:02 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69998 ФПД: 93261806835609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200251&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69998&fm=93261806835609&tin=02508201610067®Number=0000000000156251&sum=70000 [20:02:50]StoreToDocumentArchive [20:02:50]shift 194 fd 69998 [20:02:50]save to /storage/0194/doc_00069998 [20:02:50]save last doc name /storage/0194/doc_00069998 to /storage/kkm_last_doc_name [20:02:50]save OK [20:02:50]Clear old archive folders... [20:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:02:50]tlvbuf is 011C8860 [20:02:50]SAM_PROTO_ClearQueue [20:02:50]wFMCommunicate request_size=4 [20:02:50]MH_SAM_APDU [20:02:50]CAPDU: 80 09 00 00 [20:02:50]Write to MH i2c: E2 08 00 0B 21 80 09 00 00 00 00 00 00 9E [20:02:50]Write i2c OK [20:02:50]MH_I2C_Read... [20:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:50]Read from MH i2c: E2 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 03 00 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [20:02:50]RAPDU: 90 00 [20:02:50]wFMCommunicate OK [20:02:50]SAM_PROTO_ClearQueue done [20:02:50]KKMCreateOFDPacket [20:02:50]OFDProtocolAddRootSTLVToBuf [20:02:50]FM_MakeSignedData [20:02:50]FM_MakeSignedData [20:02:50]SAM_PROTO_SignData [20:02:50]wFMCommunicate request_size=4 [20:02:50]MH_SAM_APDU [20:02:50]CAPDU: 80 0D 01 02 [20:02:50]Write to MH i2c: E2 08 00 0C 21 80 0D 01 02 00 00 00 00 A6 [20:02:50]Write i2c OK [20:02:50]MH_I2C_Read... [20:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:51]Read from MH i2c: E2 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [20:02:51]RAPDU: 90 00 [20:02:51]wFMCommunicate OK [20:02:51]wFMCommunicate request_size=255 [20:02:51]MH_SAM_APDU [20:02:51]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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 84 01 00 00 F4 03 04 00 6B B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 11 01 00 35 04 06 00 54 D2 [20:02:51]Write to MH i2c: E2 02 01 0D 21 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 84 01 00 00 F4 03 04 00 6B B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 11 01 00 35 04 06 00 54 D2 00 00 E8 [20:02:51]Write i2c OK [20:02:51]MH_I2C_Read... [20:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:51]Read from MH i2c: E2 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [20:02:51]RAPDU: 90 00 [20:02:51]wFMCommunicate OK [20:02:51]wFMCommunicate request_size=9 [20:02:51]MH_SAM_APDU [20:02:51]CAPDU: 80 0D 02 02 04 34 DE 17 99 [20:02:51]Write to MH i2c: E2 0C 00 0E 21 80 0D 02 02 04 00 34 DE 17 99 00 00 73 [20:02:51]Write i2c OK [20:02:51]MH_I2C_Read... [20:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:51]Read from MH i2c: E2 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [20:02:51]RAPDU: 90 00 [20:02:51]wFMCommunicate OK [20:02:51]wFMCommunicate request_size=4 [20:02:51]MH_SAM_APDU [20:02:51]CAPDU: 80 0D 03 02 [20:02:51]Write to MH i2c: E2 08 00 0F 21 80 0D 03 02 00 00 00 00 AB [20:02:51]Write i2c OK [20:02:51]MH_I2C_Read... [20:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:51]Read from MH i2c: E2 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 0B 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 0B 00 0F 21 00 FF 04 74 56 D2 94 78 93 90 00 EA [20:02:51]RAPDU: FF 04 74 56 D2 94 78 93 90 00 [20:02:51]wFMCommunicate OK [20:02:51]SAM_PROTO_SignData done [20:02:51]FM_MakeSignedData done [20:02:51]CreateOFDProtocolMessage [20:02:51]wFMCommunicate request_size=4 [20:02:51]MH_SAM_APDU [20:02:51]CAPDU: 80 11 00 00 [20:02:51]Write to MH i2c: E2 08 00 10 21 80 11 00 00 00 00 00 00 AB [20:02:51]Write i2c OK [20:02:51]MH_I2C_Read... [20:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:51]Read from MH i2c: E2 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 17 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: E2 17 00 10 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [20:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:51]wFMCommunicate OK [20:02:51]CreateOFDProtocolMessage done [20:02:51]OFDSenderStorePacket 69998 [20:02:51]StoreOFDPacket docnum=69998 [20:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2A 2C 06 01 CC 4C 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 84 01 00 00 F4 03 04 00 6B B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 11 01 00 35 04 06 00 54 D2 34 DE 17 99 FF 04 74 56 D2 94 78 93 [20:02:51]CheckFolder [20:02:51]dirname=/storage/ofd_packets [20:02:51]CheckFolder done [20:02:51]ProducePacketName [20:02:51]name=ofd_packets/00069998 [20:02:51]NVStorageSaveData ofd_packets/00069998 [20:02:51]File name is /storage/ofd_packets/00069998 [20:02:51]Write 300 bytes [20:02:51]NVStorageSaveData done [20:02:51]OFDSenderStorePacket done [20:02:51]KKMCreateOFDPacket done [20:02:51]NVStorageSaveData kkm_last_timestamp [20:02:51]File name is /storage/kkm_last_timestamp [20:02:51]Write 4 bytes [20:02:51]NVStorageSaveData done [20:02:51]ExternCall_PrintAddStr [20:02:51]wPrintStart [20:02:51]Write to MH i2c: 01 00 00 11 21 32 [20:02:51]Write i2c OK [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: 01 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: 01 07 00 [20:02:51]MH_I2C_Read... [20:02:51]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 FF 0F 47 [20:02:51]RasterBufferAndPrint [20:02:51]line Счет N : (1)2885764 [20:02:51]line ИНН: 02508201610067 [20:02:51]line Контрольно-Кассовый Чек [20:02:51]line ПРОДАЖА [20:02:51]line ТРК (МРК, ГНК) : 71 [20:02:51]line Товар: 2711129700 [20:02:51]line ГАЗ-К-3 [20:02:51]line 18.000 * 38.90 [20:02:51]line = 700.20 [20:02:51]line НДС 12% НСП 1% [20:02:51]line > о реализуемом товаре [20:02:51]line ОКРУГЛЕНИЕ: -0.20 [20:02:51]line ИТОГО: 700.00 [20:02:51]line Внесено: 700.00 [20:02:51]line СДАЧА: 0.00 [20:02:51]line НСП 1% : 6.20 [20:02:51]line НДС 12% : 74.36 [20:02:51]line Наличными: 700.00 [20:02:51]line Безнал.: 0.00 [20:02:51]line Место: АЗС № 85 "Партнер Нефть" [20:02:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:02:51]line СНО: Общий режим [20:02:51]line Чек 388 21.10.2024 20:02 [20:02:51]line Смена: 194 ФФД: 1.0 [20:02:51]line ЗНМ: 0300000167 [20:02:51]line РНМ: 0000000000156251 [20:02:51]line Версия ККМ: v1.0 [20:02:51]line ФМ: 0000000000963346 [20:02:51]line ФД: 69998 [20:02:51]line ФПД: 93261806835609 [20:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200251&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69998&fm=93261806835609&tin=02508201610067®Number=0000000000156251&sum=70000 [20:02:51]OFD Sender: Processing packet 69998 [packets to send 18, broken 17] [20:02:51]ProducePacketName [20:02:51]name=ofd_packets/00069998 [20:02:51]OFD Sender: To server: pG, [20:02:51]CommunicateWithHost lk.salyk.kg:30040 [20:02:51]ConnectInit lk.salyk.kg [20:02:51]written 0, free lines is 4095 [20:02:51]Connected sock=11 [20:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2A 2C 06 01 CC 4C 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 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 84 01 00 00 F4 03 04 00 6B B3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 11 01 00 35 04 06 00 54 D2 34 DE 17 99 FF 04 74 56 D2 94 78 93 [20:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 A7 47 00 44 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 39 36 33 33 34 36 10 04 04 00 6E 11 01 00 F4 03 04 00 0E 5D 16 67 B6 04 01 00 00 02 BA C5 37 05 E9 8C F4 [20:02:52]CommunicateWithHost err = 0 [20:02:52]CheckOFDResponse [20:02:52]1017 (14) - 77093643461234 [20:02:52]1041 (16) - 0000000000963346 [20:02:52]1040 (4) - 69998 [20:02:52]1012 (4) - 21.10.2024 13:54 [20:02:52]1206 (1) - 0 [20:02:52]OFD Sender: Remove packet 69998 [20:02:52]ProducePacketName [20:02:52]name=ofd_packets/00069998 [20:02:52]NVStorageDeleteData [20:02:52]Write to MH i2c: 01 00 00 3C 21 5D [20:02:52]Write i2c OK [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: 01 [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: 01 07 00 [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: 01 07 00 3C 21 00 00 00 00 00 FC 0C 6C [20:02:52]RasterBufferAndPrint [20:02:52]line [20:02:52]line [20:02:52]line [20:02:52]line [20:02:52]line [20:02:52]written 0, free lines is 3336 [20:02:52]MH_Cut [20:02:52]Write to MH i2c: D1 01 00 43 21 01 36 [20:02:52]Write i2c OK [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: D1 [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: D1 01 00 [20:02:52]MH_I2C_Read... [20:02:52]Read from MH i2c: D1 01 00 43 21 00 35 [20:02:52]Write to MH i2c: 01 00 00 44 21 65 [20:02:52]Write i2c OK [20:02:52]MH_I2C_Read... [20:02:52]OFD Sender: No OFD packet to send [20:02:53]*** Cut start [20:02:53]*** Partial cut [20:02:53]*** CUTSNS_PIN = 1 [20:02:53]*** CUTSNS_PIN = 0 [20:02:53]*** Brake cut motor [20:02:53]Read from MH i2c: 01 [20:02:53]MH_I2C_Read... [20:02:53]*** Stop cut motor [20:02:53]*** Cut end [20:02:53]Read from MH i2c: 01 07 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [20:02:53]process_action close_receipt done [20:02:53]requested_data is exist [20:02:53]produce_requested_data [20:02:53]requested_item fm.sn is exist - process it [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 11 00 00 [20:02:53]Write to MH i2c: E2 08 00 45 21 80 11 00 00 00 00 00 00 E0 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 17 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 17 00 45 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [20:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:53]wFMCommunicate OK [20:02:53]requested_item fd.num is exist - process it [20:02:53]SAM_PROTO_GetFieldsCounters [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 13 00 00 [20:02:53]Write to MH i2c: E2 08 00 46 21 80 13 00 00 00 00 00 00 E3 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 62 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 62 00 46 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [20:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:53]wFMCommunicate OK [20:02:53]SAM_PROTO_GetFieldsCounters done [20:02:53]requested_item shift.num is exist - process it [20:02:53]requested_item shift.opened is exist - process it [20:02:53]req_shift_opened [20:02:53]FM_GetShiftState [20:02:53]SAM_PROTO_GetShiftState [20:02:53]wFMCommunicate request_size=4 [20:02:53]MH_SAM_APDU [20:02:53]CAPDU: 80 13 01 00 [20:02:53]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:53]Read from MH i2c: E2 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 0E 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 11 [20:02:53]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:02:53]wFMCommunicate OK [20:02:53]SAM_PROTO_GetShiftState done [20:02:53]FM_GetShiftState done [20:02:53]req_shift_opened done [20:02:53]requested_item shift.open_date is exist - process it [20:02:53]req_shift_open_date [20:02:53]req_shift_open_date done [20:02:53]produce_requested_data done [20:02:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69998,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:02:53]process_action_free close_receipt [20:02:53]json_value_free [20:02:53]json_value_free done [20:02:53]process_json_proto returns [20:02:53]Send response to host [20:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69998,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:02:53]free response buf [20:02:53]execute_script done [20:02:53]execute_script returns [20:02:53]free content buf [20:02:53]Sock 9.Close socket [20:02:53]Sock 9.Thread stoped [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:34]accept exits with 7 [20:05:34]New connection [20:05:34]New thread 3067170148 created [20:05:34]Thread 3067026788 joined [20:05:34]Waiting for new connection... [20:05:34] Sock 7.Parse request [20:05:34]Sock 7.Check first char [20:05:34]Sock 7.First char is OK [20:05:34]request: POST /json_proto HTTP/1.0 [20:05:34]Method: POST [20:05:34]URL: /json_proto [20:05:34]Method is POST - this is cgi request [20:05:34]url: /json_proto [20:05:34]query_string will be loaded in cgi processing [20:05:34]execute_cgi json_proto POST (null) [20:05:34]execute_cgi path=json_proto method=POST [20:05:34]POST find Content-Length [20:05:34]Host: 172.17.50.3:8080 [20:05:34]Content-Length: 767 [20:05:34]Content-Type: application/json [20:05:34] [20:05:34]POST finish read [20:05:34]Found Content-Length = 767 [20:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:34]execute_script... [20:05: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)2885766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:34]POST & json_proto [20:05:34]process_json_proto [20:05:34]json parsed OK: [20:05:34]protocol is kg_v1.0 [20:05:34]action value=close_receipt [20:05:34]process_action close_receipt [20:05:34]cmd_close_receipt [20:05:34]MH_GetDate [20:05:34]Write to MH i2c: F0 00 00 48 21 58 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: F0 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: F0 09 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: F0 09 00 48 21 00 0F B4 16 67 6B 98 1E 66 28 [20:05:34]GetLastDocTimeStamp 1729540971 [20:05:34]current date 1729541135 [20:05:34]FM_GetShiftState [20:05:34]SAM_PROTO_GetShiftState [20:05:34]wFMCommunicate request_size=4 [20:05:34]MH_SAM_APDU [20:05:34]CAPDU: 80 13 01 00 [20:05:34]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:34]Read from MH i2c: E2 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0E 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [20:05:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:05:34]wFMCommunicate OK [20:05:34]SAM_PROTO_GetShiftState done [20:05:34]FM_GetShiftState done [20:05:34]opened in 1729469703 [20:05:34]opened+sec_in_day 1729556103 [20:05:34]quantity*price = 100050 [20:05:34]sum+1 = 100052 [20:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 389 21.10.2024 20:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69999 ФПД: 256303563879821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200535&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69999&fm=256303563879821&tin=02508201610067®Number=0000000000156251&sum=100051 [20:05:35]StoreToDocumentArchive [20:05:35]shift 194 fd 69999 [20:05:35]save to /storage/0194/doc_00069999 [20:05:35]save last doc name /storage/0194/doc_00069999 to /storage/kkm_last_doc_name [20:05:35]save OK [20:05:35]Clear old archive folders... [20:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:35]tlvbuf is 01163DB0 [20:05:35]SAM_PROTO_ClearQueue [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 09 00 00 [20:05:35]Write to MH i2c: E2 08 00 56 21 80 09 00 00 00 00 00 00 E9 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [20:05:35]RAPDU: 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_ClearQueue done [20:05:35]KKMCreateOFDPacket [20:05:35]OFDProtocolAddRootSTLVToBuf [20:05:35]FM_MakeSignedData [20:05:35]FM_MakeSignedData [20:05:35]SAM_PROTO_SignData [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 0D 01 02 [20:05:35]Write to MH i2c: E2 08 00 57 21 80 0D 01 02 00 00 00 00 F1 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [20:05:35]RAPDU: 90 00 [20:05:35]wFMCommunicate OK [20:05:35]wFMCommunicate request_size=255 [20:05:35]MH_SAM_APDU [20:05:35]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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 0F B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 11 01 00 35 04 06 00 E9 1B 52 E1 [20:05:35]Write to MH i2c: E2 02 01 58 21 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 0F B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 11 01 00 35 04 06 00 E9 1B 52 E1 00 00 16 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [20:05:35]RAPDU: 90 00 [20:05:35]wFMCommunicate OK [20:05:35]wFMCommunicate request_size=7 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 0D 02 02 02 35 8D [20:05:35]Write to MH i2c: E2 0A 00 59 21 80 0D 02 02 02 00 35 8D 00 00 BA [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [20:05:35]RAPDU: 90 00 [20:05:35]wFMCommunicate OK [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 0D 03 02 [20:05:35]Write to MH i2c: E2 08 00 5A 21 80 0D 03 02 00 00 00 00 F6 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0B 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0B 00 5A 21 00 6A 49 8F 47 73 54 0E FD 90 00 52 [20:05:35]RAPDU: 6A 49 8F 47 73 54 0E FD 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_SignData done [20:05:35]FM_MakeSignedData done [20:05:35]CreateOFDProtocolMessage [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 11 00 00 [20:05:35]Write to MH i2c: E2 08 00 5B 21 80 11 00 00 00 00 00 00 F6 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 5B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [20:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:05:35]wFMCommunicate OK [20:05:35]CreateOFDProtocolMessage done [20:05:35]OFDSenderStorePacket 69999 [20:05:35]StoreOFDPacket docnum=69999 [20:05:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9B E2 04 01 61 8D 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 0F B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 11 01 00 35 04 06 00 E9 1B 52 E1 35 8D 6A 49 8F 47 73 54 0E FD [20:05:35]CheckFolder [20:05:35]dirname=/storage/ofd_packets [20:05:35]CheckFolder done [20:05:35]ProducePacketName [20:05:35]name=ofd_packets/00069999 [20:05:35]NVStorageSaveData ofd_packets/00069999 [20:05:35]File name is /storage/ofd_packets/00069999 [20:05:35]Write 298 bytes [20:05:35]NVStorageSaveData done [20:05:35]OFDSenderStorePacket done [20:05:35]KKMCreateOFDPacket done [20:05:35]NVStorageSaveData kkm_last_timestamp [20:05:35]File name is /storage/kkm_last_timestamp [20:05:35]Write 4 bytes [20:05:35]NVStorageSaveData done [20:05:35]ExternCall_PrintAddStr [20:05:35]wPrintStart [20:05:35]Write to MH i2c: 01 00 00 5C 21 7D [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: 01 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: 01 07 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 FF 0F 92 [20:05:35]RasterBufferAndPrint [20:05:35]line Счет N : (1)2885766 [20:05:35]line ИНН: 02508201610067 [20:05:35]line Контрольно-Кассовый Чек [20:05:35]line ПРОДАЖА [20:05:35]line ТРК (МРК, ГНК) : 61 [20:05:35]line Товар: 2710194210 [20:05:35]line ДТ-К-5 [20:05:35]line 13.130 * 76.20 [20:05:35]line = 1000.51 [20:05:35]line НДС 12% НСП 1% [20:05:35]line > о реализуемом товаре [20:05:35]line ИТОГО: 1000.51 [20:05:35]line НСП 1% : 8.85 [20:05:35]line НДС 12% : 106.25 [20:05:35]line Наличными: 0.00 [20:05:35]line Безнал.: 1000.51 [20:05:35]line Место: АЗС № 85 "Партнер Нефть" [20:05:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:05:35]line СНО: Общий режим [20:05:35]line Чек 389 21.10.2024 20:05 [20:05:35]line Смена: 194 ФФД: 1.0 [20:05:35]line ЗНМ: 0300000167 [20:05:35]line РНМ: 0000000000156251 [20:05:35]line Версия ККМ: v1.0 [20:05:35]line Платежная система: Mbank [20:05:35]line ФМ: 0000000000963346 [20:05:35]line ФД: 69999 [20:05:35]line ФПД: 256303563879821 [20:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200535&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69999&fm=256303563879821&tin=02508201610067®Number=0000000000156251&sum=100051 [20:05:36]OFD Sender: Processing packet 69999 [packets to send 18, broken 17] [20:05:36]ProducePacketName [20:05:36]name=ofd_packets/00069999 [20:05:36]OFD Sender: To server: pG, [20:05:36]CommunicateWithHost lk.salyk.kg:30040 [20:05:36]ConnectInit lk.salyk.kg [20:05:36]written 0, free lines is 4095 [20:05:36]Connected sock=10 [20:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9B E2 04 01 61 8D 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 32 31 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 0F B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 11 01 00 35 04 06 00 E9 1B 52 E1 35 8D 6A 49 8F 47 73 54 0E FD [20:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7A F0 47 00 0C 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 11 01 00 F4 03 04 00 B2 5D 16 67 B6 04 01 00 00 7A 1B 57 CA 90 3D 60 72 [20:05:36]CommunicateWithHost err = 0 [20:05:36]CheckOFDResponse [20:05:36]1017 (14) - 77093643461234 [20:05:36]1041 (16) - 0000000000963346 [20:05:36]1040 (4) - 69999 [20:05:36]1012 (4) - 21.10.2024 13:57 [20:05:36]1206 (1) - 0 [20:05:36]OFD Sender: Remove packet 69999 [20:05:36]ProducePacketName [20:05:36]name=ofd_packets/00069999 [20:05:36]NVStorageDeleteData [20:05:36]Write to MH i2c: 01 00 00 85 21 A6 [20:05:36]Write i2c OK [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: 01 [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: 01 07 00 [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: 01 07 00 85 21 00 00 00 00 00 0F 0D C9 [20:05:36]RasterBufferAndPrint [20:05:36]line [20:05:36]line [20:05:36]line [20:05:36]line [20:05:36]line [20:05:36]written 0, free lines is 3350 [20:05:36]MH_Cut [20:05:36]Write to MH i2c: D1 01 00 8C 21 01 7F [20:05:36]Write i2c OK [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: D1 [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: D1 01 00 [20:05:36]MH_I2C_Read... [20:05:36]Read from MH i2c: D1 01 00 8C 21 00 7E [20:05:36]Write to MH i2c: 01 00 00 8D 21 AE [20:05:36]Write i2c OK [20:05:36]MH_I2C_Read... [20:05:36]OFD Sender: No OFD packet to send [20:05:37]*** Cut start [20:05:37]*** Partial cut [20:05:37]*** CUTSNS_PIN = 1 [20:05:37]*** CUTSNS_PIN = 0 [20:05:37]*** Brake cut motor [20:05:37]Read from MH i2c: 01 [20:05:37]MH_I2C_Read... [20:05:37]*** Stop cut motor [20:05:37]*** Cut end [20:05:37]Read from MH i2c: 01 07 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: 01 07 00 8D 21 00 00 00 00 00 FF 0F C3 [20:05:37]process_action close_receipt done [20:05:37]requested_data is exist [20:05:37]produce_requested_data [20:05:37]requested_item fm.sn is exist - process it [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 11 00 00 [20:05:37]Write to MH i2c: E2 08 00 8E 21 80 11 00 00 00 00 00 00 29 [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 8E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [20:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:05:37]wFMCommunicate OK [20:05:37]requested_item fd.num is exist - process it [20:05:37]SAM_PROTO_GetFieldsCounters [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 00 00 [20:05:37]Write to MH i2c: E2 08 00 8F 21 80 13 00 00 00 00 00 00 2C [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 8F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [20:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetFieldsCounters done [20:05:37]requested_item shift.num is exist - process it [20:05:37]requested_item shift.opened is exist - process it [20:05:37]req_shift_opened [20:05:37]FM_GetShiftState [20:05:37]SAM_PROTO_GetShiftState [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 01 00 [20:05:37]Write to MH i2c: E2 08 00 90 21 80 13 01 00 00 00 00 00 2E [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0E 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0E 00 90 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5A [20:05:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:05:38]wFMCommunicate OK [20:05:38]SAM_PROTO_GetShiftState done [20:05:38]FM_GetShiftState done [20:05:38]req_shift_opened done [20:05:38]requested_item shift.open_date is exist - process it [20:05:38]req_shift_open_date [20:05:38]req_shift_open_date done [20:05:38]produce_requested_data done [20:05:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69999,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:05:38]process_action_free close_receipt [20:05:38]json_value_free [20:05:38]json_value_free done [20:05:38]process_json_proto returns [20:05:38]Send response to host [20:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69999,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:05:38]free response buf [20:05:38]execute_script done [20:05:38]execute_script returns [20:05:38]free content buf [20:05:38]Sock 7.Close socket [20:05:38]Sock 7.Thread stoped [20:05:41]OFD Sender: No OFD packet to send [20:05:43]int [20:05:43]Write to MH i2c: 01 00 00 91 21 B2 [20:05:43]*** FLAG_PRN_PAP1 set [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 91 21 00 01 00 00 00 FF 0F C8 [20:05:43]state=0 [20:05:43]No paper [20:05:43]int [20:05:43]Write to MH i2c: 01 00 00 92 21 B3 [20:05:43]*** FLAG_PRN_PAP2 set [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 92 21 00 03 00 00 00 FF 0F CB [20:05:43]state=0 [20:05:43]No paper [20:05:43]Cover opened [20:05:43]int [20:05:43]Write to MH i2c: 01 00 00 93 21 B4 [20:05:43]*** FLAG_PRN_PAP2 reset [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 93 21 00 01 00 00 00 FF 0F CA [20:05:43]state=3 [20:05:43]No paper [20:05:43]Cover closed [20:05:43]int [20:05:43]Write to MH i2c: 01 00 00 94 21 B5 [20:05:43]*** FLAG_PRN_PAP2 set [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 94 21 00 03 00 00 00 FF 0F CD [20:05:43]state=0 [20:05:43]No paper [20:05:43]Cover opened [20:05:46]OFD Sender: No OFD packet to send [20:05:48]int [20:05:48]Write to MH i2c: 01 00 00 95 21 B6 [20:05:48]*** FLAG_PRN_PAP2 reset [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 95 21 00 01 00 00 00 FF 0F CC [20:05:48]state=3 [20:05:48]No paper [20:05:48]Cover closed [20:05:48]int [20:05:48]Write to MH i2c: 01 00 00 96 21 B7 [20:05:48]*** FLAG_PRN_PAP2 set [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 96 21 00 03 00 00 00 FF 0F CF [20:05:48]state=0 [20:05:48]No paper [20:05:48]Cover opened [20:05:51]OFD Sender: No OFD packet to send [20:05:53]Write to MH i2c: 01 00 00 97 21 B8 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: 01 07 00 97 21 00 03 00 00 00 FF 0F D0 [20:05:53]state=3 [20:05:53]No paper [20:05:53]Cover opened [20:05:56]OFD Sender: No OFD packet to send [20:05:58]Write to MH i2c: 01 00 00 98 21 B9 [20:05:58]Write i2c OK [20:05:58]MH_I2C_Read... [20:05:58]Read from MH i2c: 01 [20:05:58]MH_I2C_Read... [20:05:58]Read from MH i2c: 01 07 00 [20:05:58]MH_I2C_Read... [20:05:58]Read from MH i2c: 01 07 00 98 21 00 03 00 00 00 FF 0F D1 [20:05:58]state=3 [20:05:58]No paper [20:05:58]Cover opened [20:06:01]int [20:06:01]Write to MH i2c: 01 00 00 99 21 BA [20:06:01]*** FLAG_PRN_PAP2 reset [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 99 21 00 01 00 00 00 FF 0F D0 [20:06:01]state=3 [20:06:01]No paper [20:06:01]Cover closed [20:06:01]int [20:06:01]Write to MH i2c: 01 00 00 9A 21 BB [20:06:01]*** FLAG_PRN_PAP1 reset [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 FF 0F D0 [20:06:01]state=0 [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:20]accept exits with 9 [20:07:20]New connection [20:07:20]New thread 3067026788 created [20:07:20]Thread 3067170148 joined [20:07:20]Waiting for new connection... [20:07:20] Sock 9.Parse request [20:07:20]Sock 9.Check first char [20:07:20]Sock 9.First char is OK [20:07:20]request: POST /json_proto HTTP/1.0 [20:07:20]Method: POST [20:07:20]URL: /json_proto [20:07:20]Method is POST - this is cgi request [20:07:20]url: /json_proto [20:07:20]query_string will be loaded in cgi processing [20:07:20]execute_cgi json_proto POST (null) [20:07:20]execute_cgi path=json_proto method=POST [20:07:20]POST find Content-Length [20:07:20]Host: 172.17.50.3:8080 [20:07:20]Content-Length: 678 [20:07:20]Content-Type: application/json [20:07:20] [20:07:20]POST finish read [20:07:20]Found Content-Length = 678 [20:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885768", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:20]execute_script... [20:07: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)2885768", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:20]POST & json_proto [20:07:20]process_json_proto [20:07:20]json parsed OK: [20:07:20]protocol is kg_v1.0 [20:07:20]action value=close_receipt [20:07:20]process_action close_receipt [20:07:20]cmd_close_receipt [20:07:20]MH_GetDate [20:07:20]Write to MH i2c: F0 00 00 9B 21 AB [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: F0 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: F0 09 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: F0 09 00 9B 21 00 7A B4 16 67 6B 98 1E 66 E6 [20:07:20]GetLastDocTimeStamp 1729541135 [20:07:20]current date 1729541242 [20:07:20]FM_GetShiftState [20:07:20]SAM_PROTO_GetShiftState [20:07:20]wFMCommunicate request_size=4 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 13 01 00 [20:07:20]Write to MH i2c: E2 08 00 9C 21 80 13 01 00 00 00 00 00 3A [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 0E 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 0E 00 9C 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 66 [20:07:20]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:07:20]wFMCommunicate OK [20:07:20]SAM_PROTO_GetShiftState done [20:07:20]FM_GetShiftState done [20:07:20]opened in 1729469703 [20:07:20]opened+sec_in_day 1729556103 [20:07:20]quantity*price = 50041 [20:07:20]sum+1 = 50042 [20:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 390 21.10.2024 20:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70000 ФПД: 27132028316327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200722&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70000&fm=27132028316327&tin=02508201610067®Number=0000000000156251&sum=50000 [20:07:21]StoreToDocumentArchive [20:07:21]shift 194 fd 70000 [20:07:21]save to /storage/0194/doc_00070000 [20:07:21]save last doc name /storage/0194/doc_00070000 to /storage/kkm_last_doc_name [20:07:21]save OK [20:07:21]Clear old archive folders... [20:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:21]tlvbuf is 01161900 [20:07:21]SAM_PROTO_ClearQueue [20:07:21]wFMCommunicate request_size=4 [20:07:21]MH_SAM_APDU [20:07:21]CAPDU: 80 09 00 00 [20:07:21]Write to MH i2c: E2 08 00 A9 21 80 09 00 00 00 00 00 00 3C [20:07:21]Write i2c OK [20:07:21]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [20:07:22]RAPDU: 90 00 [20:07:22]wFMCommunicate OK [20:07:22]SAM_PROTO_ClearQueue done [20:07:22]KKMCreateOFDPacket [20:07:22]OFDProtocolAddRootSTLVToBuf [20:07:22]FM_MakeSignedData [20:07:22]FM_MakeSignedData [20:07:22]SAM_PROTO_SignData [20:07:22]wFMCommunicate request_size=4 [20:07:22]MH_SAM_APDU [20:07:22]CAPDU: 80 0D 01 02 [20:07:22]Write to MH i2c: E2 08 00 AA 21 80 0D 01 02 00 00 00 00 44 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [20:07:22]RAPDU: 90 00 [20:07:22]wFMCommunicate OK [20:07:22]wFMCommunicate request_size=255 [20:07:22]MH_SAM_APDU [20:07:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7A B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 11 01 00 35 04 06 00 18 [20:07:22]Write to MH i2c: E2 02 01 AB 21 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7A B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 11 01 00 35 04 06 00 18 00 00 5B [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [20:07:22]RAPDU: 90 00 [20:07:22]wFMCommunicate OK [20:07:22]wFMCommunicate request_size=10 [20:07:22]MH_SAM_APDU [20:07:22]CAPDU: 80 0D 02 02 05 AD 2A E8 EA A7 [20:07:22]Write to MH i2c: E2 0D 00 AC 21 80 0D 02 02 05 00 AD 2A E8 EA A7 00 00 A1 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [20:07:22]RAPDU: 90 00 [20:07:22]wFMCommunicate OK [20:07:22]wFMCommunicate request_size=4 [20:07:22]MH_SAM_APDU [20:07:22]CAPDU: 80 0D 03 02 [20:07:22]Write to MH i2c: E2 08 00 AD 21 80 0D 03 02 00 00 00 00 49 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 0B 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 0B 00 AD 21 00 52 80 61 FA 73 D1 8F BC 90 00 06 [20:07:22]RAPDU: 52 80 61 FA 73 D1 8F BC 90 00 [20:07:22]wFMCommunicate OK [20:07:22]SAM_PROTO_SignData done [20:07:22]FM_MakeSignedData done [20:07:22]CreateOFDProtocolMessage [20:07:22]wFMCommunicate request_size=4 [20:07:22]MH_SAM_APDU [20:07:22]CAPDU: 80 11 00 00 [20:07:22]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:22]Read from MH i2c: E2 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 17 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: E2 17 00 AE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [20:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:22]wFMCommunicate OK [20:07:22]CreateOFDProtocolMessage done [20:07:22]OFDSenderStorePacket 70000 [20:07:22]StoreOFDPacket docnum=70000 [20:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 37 48 07 01 DA 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7A B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 11 01 00 35 04 06 00 18 AD 2A E8 EA A7 52 80 61 FA 73 D1 8F BC [20:07:22]CheckFolder [20:07:22]dirname=/storage/ofd_packets [20:07:22]CheckFolder done [20:07:22]ProducePacketName [20:07:22]name=ofd_packets/00070000 [20:07:22]NVStorageSaveData ofd_packets/00070000 [20:07:22]File name is /storage/ofd_packets/00070000 [20:07:22]Write 301 bytes [20:07:22]NVStorageSaveData done [20:07:22]OFDSenderStorePacket done [20:07:22]KKMCreateOFDPacket done [20:07:22]NVStorageSaveData kkm_last_timestamp [20:07:22]File name is /storage/kkm_last_timestamp [20:07:22]Write 4 bytes [20:07:22]NVStorageSaveData done [20:07:22]ExternCall_PrintAddStr [20:07:22]wPrintStart [20:07:22]Write to MH i2c: 01 00 00 AF 21 D0 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 AF 21 00 00 00 00 00 FF 0F E5 [20:07:22]RasterBufferAndPrint [20:07:22]line Счет N : (1)2885768 [20:07:22]line ИНН: 02508201610067 [20:07:22]line Контрольно-Кассовый Чек [20:07:22]line ПРОДАЖА [20:07:22]line ТРК (МРК, ГНК) : 42 [20:07:22]line Товар: 2710124130 [20:07:22]line Аи-92-К-5 [20:07:22]line 7.480 * 66.90 [20:07:22]line = 500.41 [20:07:22]line НДС 12% НСП 1% [20:07:22]line > о реализуемом товаре [20:07:22]line ОКРУГЛЕНИЕ: -0.41 [20:07:22]line ИТОГО: 500.00 [20:07:22]line Внесено: 500.00 [20:07:22]line СДАЧА: 0.00 [20:07:22]line НСП 1% : 4.43 [20:07:22]line НДС 12% : 53.14 [20:07:22]line Наличными: 500.00 [20:07:22]line Безнал.: 0.00 [20:07:22]line Место: АЗС № 85 "Партнер Нефть" [20:07:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:07:22]line СНО: Общий режим [20:07:22]line Чек 390 21.10.2024 20:07 [20:07:22]line Смена: 194 ФФД: 1.0 [20:07:22]line ЗНМ: 0300000167 [20:07:22]line РНМ: 0000000000156251 [20:07:22]line Версия ККМ: v1.0 [20:07:22]line ФМ: 0000000000963346 [20:07:22]line ФД: 70000 [20:07:22]line ФПД: 27132028316327 [20:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200722&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70000&fm=27132028316327&tin=02508201610067®Number=0000000000156251&sum=50000 [20:07:22]OFD Sender: Processing packet 70000 [packets to send 18, broken 17] [20:07:22]ProducePacketName [20:07:22]name=ofd_packets/00070000 [20:07:22]OFD Sender: To server: pG, [20:07:22]CommunicateWithHost lk.salyk.kg:30040 [20:07:22]ConnectInit lk.salyk.kg [20:07:22]written 0, free lines is 4095 [20:07:22]Connected sock=10 [20:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 37 48 07 01 DA 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7A B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 11 01 00 35 04 06 00 18 AD 2A E8 EA A7 52 80 61 FA 73 D1 8F BC [20:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 18 94 47 00 E1 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 11 01 00 F4 03 04 00 1D 5E 16 67 B6 04 01 00 00 1E 6F 4C 6A 88 6F F0 B0 [20:07:23]CommunicateWithHost err = 0 [20:07:23]CheckOFDResponse [20:07:23]1017 (14) - 77093643461234 [20:07:23]1041 (16) - 0000000000963346 [20:07:23]1040 (4) - 70000 [20:07:23]1012 (4) - 21.10.2024 13:58 [20:07:23]1206 (1) - 0 [20:07:23]OFD Sender: Remove packet 70000 [20:07:23]ProducePacketName [20:07:23]name=ofd_packets/00070000 [20:07:23]NVStorageDeleteData [20:07:23]Write to MH i2c: 01 00 00 DA 21 FB [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: 01 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: 01 07 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 E4 0C F2 [20:07:23]RasterBufferAndPrint [20:07:23]line [20:07:23]line [20:07:23]line [20:07:23]line [20:07:23]line [20:07:23]written 0, free lines is 3306 [20:07:23]MH_Cut [20:07:23]Write to MH i2c: D1 01 00 E1 21 01 D4 [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: D1 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: D1 01 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: D1 01 00 E1 21 00 D3 [20:07:23]Write to MH i2c: 01 00 00 E2 21 03 [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]OFD Sender: No OFD packet to send [20:07:23]*** Cut start [20:07:23]*** Partial cut [20:07:23]*** CUTSNS_PIN = 1 [20:07:24]*** CUTSNS_PIN = 0 [20:07:24]*** Brake cut motor [20:07:24]Read from MH i2c: 01 [20:07:24]MH_I2C_Read... [20:07:24]*** Stop cut motor [20:07:24]*** Cut end [20:07:24]Read from MH i2c: 01 07 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: 01 07 00 E2 21 00 00 00 00 00 FF 0F 18 [20:07:24]process_action close_receipt done [20:07:24]requested_data is exist [20:07:24]produce_requested_data [20:07:24]requested_item fm.sn is exist - process it [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 11 00 00 [20:07:24]Write to MH i2c: E2 08 00 E3 21 80 11 00 00 00 00 00 00 7E [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 17 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 17 00 E3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [20:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:24]wFMCommunicate OK [20:07:24]requested_item fd.num is exist - process it [20:07:24]SAM_PROTO_GetFieldsCounters [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 13 00 00 [20:07:24]Write to MH i2c: E2 08 00 E4 21 80 13 00 00 00 00 00 00 81 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 62 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 62 00 E4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [20:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:24]wFMCommunicate OK [20:07:24]SAM_PROTO_GetFieldsCounters done [20:07:24]requested_item shift.num is exist - process it [20:07:24]requested_item shift.opened is exist - process it [20:07:24]req_shift_opened [20:07:24]FM_GetShiftState [20:07:24]SAM_PROTO_GetShiftState [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 13 01 00 [20:07:24]Write to MH i2c: E2 08 00 E5 21 80 13 01 00 00 00 00 00 83 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 0E 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 0E 00 E5 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AF [20:07:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:07:24]wFMCommunicate OK [20:07:24]SAM_PROTO_GetShiftState done [20:07:24]FM_GetShiftState done [20:07:24]req_shift_opened done [20:07:24]requested_item shift.open_date is exist - process it [20:07:24]req_shift_open_date [20:07:24]req_shift_open_date done [20:07:24]produce_requested_data done [20:07:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70000,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:07:24]process_action_free close_receipt [20:07:24]json_value_free [20:07:24]json_value_free done [20:07:24]process_json_proto returns [20:07:24]Send response to host [20:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70000,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:07:24]free response buf [20:07:24]execute_script done [20:07:24]execute_script returns [20:07:24]free content buf [20:07:24]Sock 9.Close socket [20:07:24]Sock 9.Thread stoped [20:07:28]OFD Sender: No OFD packet to send [20:07:31]accept exits with 7 [20:07:31]New connection [20:07:31]New thread 3067170148 created [20:07:31]Thread 3067026788 joined [20:07:31]Waiting for new connection... [20:07:31] Sock 7.Parse request [20:07:31]Sock 7.Check first char [20:07:31]Sock 7.First char is OK [20:07:31]request: POST /json_proto HTTP/1.0 [20:07:31]Method: POST [20:07:31]URL: /json_proto [20:07:31]Method is POST - this is cgi request [20:07:31]url: /json_proto [20:07:31]query_string will be loaded in cgi processing [20:07:31]execute_cgi json_proto POST (null) [20:07:31]execute_cgi path=json_proto method=POST [20:07:31]POST find Content-Length [20:07:31]Host: 172.17.50.3:8080 [20:07:31]Content-Length: 804 [20:07:31]Content-Type: application/json [20:07:31] [20:07:31]POST finish read [20:07:31]Found Content-Length = 804 [20:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5145463", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:31]execute_script... [20:07: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)2885767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5145463", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:31]POST & json_proto [20:07:31]process_json_proto [20:07:31]json parsed OK: [20:07:31]protocol is kg_v1.0 [20:07:31]action value=close_receipt [20:07:31]process_action close_receipt [20:07:31]cmd_close_receipt [20:07:31]MH_GetDate [20:07:31]Write to MH i2c: F0 00 00 E6 21 F6 [20:07:31]Write i2c OK [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: F0 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: F0 09 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: F0 09 00 E6 21 00 84 B4 16 67 6B 98 1E 66 3B [20:07:31]GetLastDocTimeStamp 1729541242 [20:07:31]current date 1729541252 [20:07:31]FM_GetShiftState [20:07:31]SAM_PROTO_GetShiftState [20:07:31]wFMCommunicate request_size=4 [20:07:31]MH_SAM_APDU [20:07:31]CAPDU: 80 13 01 00 [20:07:31]Write to MH i2c: E2 08 00 E7 21 80 13 01 00 00 00 00 00 85 [20:07:31]Write i2c OK [20:07:31]MH_I2C_Read... [20:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:31]Read from MH i2c: E2 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 0E 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 0E 00 E7 21 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B1 [20:07:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:07:31]wFMCommunicate OK [20:07:31]SAM_PROTO_GetShiftState done [20:07:31]FM_GetShiftState done [20:07:31]opened in 1729469703 [20:07:31]opened+sec_in_day 1729556103 [20:07:31]quantity*price = 0 [20:07:31]sum+1 = 1 [20:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 391 21.10.2024 20:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 5145463 ФМ: 0000000000963346 ФД: 70001 ФПД: 194114065455233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70001&fm=194114065455233&tin=02508201610067®Number=0000000000156251&sum=0 [20:07:32]StoreToDocumentArchive [20:07:32]shift 194 fd 70001 [20:07:32]save to /storage/0194/doc_00070001 [20:07:32]save last doc name /storage/0194/doc_00070001 to /storage/kkm_last_doc_name [20:07:32]save OK [20:07:32]Clear old archive folders... [20:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:07:32]tlvbuf is 011122A0 [20:07:32]SAM_PROTO_ClearQueue [20:07:32]wFMCommunicate request_size=4 [20:07:32]MH_SAM_APDU [20:07:32]CAPDU: 80 09 00 00 [20:07:32]Write to MH i2c: E2 08 00 F4 21 80 09 00 00 00 00 00 00 87 [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:32]Read from MH i2c: E2 03 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 F4 21 00 90 00 89 [20:07:32]RAPDU: 90 00 [20:07:32]wFMCommunicate OK [20:07:32]SAM_PROTO_ClearQueue done [20:07:32]KKMCreateOFDPacket [20:07:32]OFDProtocolAddRootSTLVToBuf [20:07:32]FM_MakeSignedData [20:07:32]FM_MakeSignedData [20:07:32]SAM_PROTO_SignData [20:07:32]wFMCommunicate request_size=4 [20:07:32]MH_SAM_APDU [20:07:32]CAPDU: 80 0D 01 02 [20:07:32]Write to MH i2c: E2 08 00 F5 21 80 0D 01 02 00 00 00 00 8F [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [20:07:32]RAPDU: 90 00 [20:07:32]wFMCommunicate OK [20:07:32]wFMCommunicate request_size=255 [20:07:32]MH_SAM_APDU [20:07:32]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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 84 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 11 01 00 35 04 06 00 B0 8B [20:07:32]Write to MH i2c: E2 02 01 F6 21 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 84 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 11 01 00 35 04 06 00 B0 8B 00 00 6C [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [20:07:32]RAPDU: 90 00 [20:07:32]wFMCommunicate OK [20:07:32]wFMCommunicate request_size=9 [20:07:32]MH_SAM_APDU [20:07:32]CAPDU: 80 0D 02 02 04 B3 EA D8 81 [20:07:32]Write to MH i2c: E2 0C 00 F7 21 80 0D 02 02 04 00 B3 EA D8 81 00 00 90 [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [20:07:32]RAPDU: 90 00 [20:07:32]wFMCommunicate OK [20:07:32]wFMCommunicate request_size=4 [20:07:32]MH_SAM_APDU [20:07:32]CAPDU: 80 0D 03 02 [20:07:32]Write to MH i2c: E2 08 00 F8 21 80 0D 03 02 00 00 00 00 94 [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 0B 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 0B 00 F8 21 00 F9 93 0B BE 23 BC D3 30 90 00 CC [20:07:32]RAPDU: F9 93 0B BE 23 BC D3 30 90 00 [20:07:32]wFMCommunicate OK [20:07:32]SAM_PROTO_SignData done [20:07:32]FM_MakeSignedData done [20:07:32]CreateOFDProtocolMessage [20:07:32]wFMCommunicate request_size=4 [20:07:32]MH_SAM_APDU [20:07:32]CAPDU: 80 11 00 00 [20:07:32]Write to MH i2c: E2 08 00 F9 21 80 11 00 00 00 00 00 00 94 [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:32]Read from MH i2c: E2 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 17 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: E2 17 00 F9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [20:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:32]wFMCommunicate OK [20:07:32]CreateOFDProtocolMessage done [20:07:32]OFDSenderStorePacket 70001 [20:07:32]StoreOFDPacket docnum=70001 [20:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 82 2E 06 01 14 47 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 84 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 11 01 00 35 04 06 00 B0 8B B3 EA D8 81 F9 93 0B BE 23 BC D3 30 [20:07:32]CheckFolder [20:07:32]dirname=/storage/ofd_packets [20:07:32]CheckFolder done [20:07:32]ProducePacketName [20:07:32]name=ofd_packets/00070001 [20:07:32]NVStorageSaveData ofd_packets/00070001 [20:07:32]File name is /storage/ofd_packets/00070001 [20:07:32]Write 300 bytes [20:07:32]NVStorageSaveData done [20:07:32]OFDSenderStorePacket done [20:07:32]KKMCreateOFDPacket done [20:07:32]NVStorageSaveData kkm_last_timestamp [20:07:32]File name is /storage/kkm_last_timestamp [20:07:32]Write 4 bytes [20:07:32]NVStorageSaveData done [20:07:32]OFD Sender: Processing packet 70001 [packets to send 18, broken 17] [20:07:32]ProducePacketName [20:07:32]name=ofd_packets/00070001 [20:07:32]OFD Sender: To server: pG, [20:07:32]CommunicateWithHost lk.salyk.kg:30040 [20:07:32]ConnectInit lk.salyk.kg [20:07:32]ExternCall_PrintAddStr [20:07:32]wPrintStart [20:07:32]Write to MH i2c: 01 00 00 FA 21 1B [20:07:32]Write i2c OK [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: 01 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: 01 07 00 [20:07:32]MH_I2C_Read... [20:07:32]Read from MH i2c: 01 07 00 FA 21 00 00 00 00 00 FF 0F 30 [20:07:32]RasterBufferAndPrint [20:07:32]line Счет N : (1)2885767 [20:07:32]line ИНН: 02508201610067 [20:07:32]line Контрольно-Кассовый Чек [20:07:32]line ПРОДАЖА [20:07:32]line ТРК (МРК, ГНК) : 71 [20:07:32]line Товар: 2711129700 [20:07:32]line ГАЗ-К-3 [20:07:32]line 20.000 * 0.00 [20:07:32]line = 0.00 [20:07:32]line НДС 12% НСП 1% [20:07:32]line > о реализуемом товаре [20:07:32]line ИТОГО: 0.00 [20:07:32]line НСП 1% : 0.00 [20:07:32]line НДС 12% : 0.00 [20:07:32]line Наличными: 0.00 [20:07:32]line Безнал.: 0.00 [20:07:32]line Место: АЗС № 85 "Партнер Нефть" [20:07:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:07:32]line СНО: Общий режим [20:07:32]line Чек 391 21.10.2024 20:07 [20:07:32]line Смена: 194 ФФД: 1.0 [20:07:32]line ЗНМ: 0300000167 [20:07:32]line РНМ: 0000000000156251 [20:07:32]line Версия ККМ: v1.0 [20:07:32]line Талоны: Топливные Талоны [20:07:32]line 5145463 [20:07:32]line ФМ: 0000000000963346 [20:07:32]line ФД: 70001 [20:07:32]line ФПД: 194114065455233 [20:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70001&fm=194114065455233&tin=02508201610067®Number=0000000000156251&sum=0 [20:07:33]Connected sock=11 [20:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 82 2E 06 written 0, free lines is 4095 [20:07:33]01 14 47 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 84 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 11 01 00 35 04 06 00 B0 8B B3 EA D8 81 F9 93 0B BE 23 BC D3 30 [20:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F F4 47 00 3D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 11 01 00 F4 03 04 00 27 5E 16 67 B6 04 01 00 00 A7 8F 2C 79 5B A7 CB 05 [20:07:33]CommunicateWithHost err = 0 [20:07:33]CheckOFDResponse [20:07:33]1017 (14) - 77093643461234 [20:07:33]1041 (16) - 0000000000963346 [20:07:33]1040 (4) - 70001 [20:07:33]1012 (4) - 21.10.2024 13:59 [20:07:33]1206 (1) - 0 [20:07:33]OFD Sender: Remove packet 70001 [20:07:33]ProducePacketName [20:07:33]name=ofd_packets/00070001 [20:07:33]NVStorageDeleteData [20:07:33]Write to MH i2c: 01 00 00 24 22 46 [20:07:33]Write i2c OK [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 07 00 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: 01 07 00 24 22 00 00 00 00 00 E6 0C 3F [20:07:33]RasterBufferAndPrint [20:07:33]line [20:07:33]line [20:07:33]line [20:07:33]line [20:07:33]line [20:07:33]written 0, free lines is 3312 [20:07:33]MH_Cut [20:07:33]Write to MH i2c: D1 01 00 2B 22 01 1F [20:07:33]Write i2c OK [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: D1 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: D1 01 00 [20:07:33]MH_I2C_Read... [20:07:33]Read from MH i2c: D1 01 00 2B 22 00 1E [20:07:33]Write to MH i2c: 01 00 00 2C 22 4E [20:07:33]Write i2c OK [20:07:33]MH_I2C_Read... [20:07:34]OFD Sender: No OFD packet to send [20:07:34]*** Cut start [20:07:34]*** Partial cut [20:07:34]*** CUTSNS_PIN = 1 [20:07:34]*** CUTSNS_PIN = 0 [20:07:34]*** Brake cut motor [20:07:35]Read from MH i2c: 01 [20:07:35]MH_I2C_Read... [20:07:35]*** Stop cut motor [20:07:35]*** Cut end [20:07:35]Read from MH i2c: 01 07 00 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: 01 07 00 2C 22 00 00 00 00 00 FF 0F 63 [20:07:35]process_action close_receipt done [20:07:35]requested_data is exist [20:07:35]produce_requested_data [20:07:35]requested_item fm.sn is exist - process it [20:07:35]wFMCommunicate request_size=4 [20:07:35]MH_SAM_APDU [20:07:35]CAPDU: 80 11 00 00 [20:07:35]Write to MH i2c: E2 08 00 2D 22 80 11 00 00 00 00 00 00 C9 [20:07:35]Write i2c OK [20:07:35]MH_I2C_Read... [20:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:35]Read from MH i2c: E2 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 17 00 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 17 00 2D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [20:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:07:35]wFMCommunicate OK [20:07:35]requested_item fd.num is exist - process it [20:07:35]SAM_PROTO_GetFieldsCounters [20:07:35]wFMCommunicate request_size=4 [20:07:35]MH_SAM_APDU [20:07:35]CAPDU: 80 13 00 00 [20:07:35]Write to MH i2c: E2 08 00 2E 22 80 13 00 00 00 00 00 00 CC [20:07:35]Write i2c OK [20:07:35]MH_I2C_Read... [20:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:35]Read from MH i2c: E2 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 62 00 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 62 00 2E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [20:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:35]wFMCommunicate OK [20:07:35]SAM_PROTO_GetFieldsCounters done [20:07:35]requested_item shift.num is exist - process it [20:07:35]requested_item shift.opened is exist - process it [20:07:35]req_shift_opened [20:07:35]FM_GetShiftState [20:07:35]SAM_PROTO_GetShiftState [20:07:35]wFMCommunicate request_size=4 [20:07:35]MH_SAM_APDU [20:07:35]CAPDU: 80 13 01 00 [20:07:35]Write to MH i2c: E2 08 00 2F 22 80 13 01 00 00 00 00 00 CE [20:07:35]Write i2c OK [20:07:35]MH_I2C_Read... [20:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:35]Read from MH i2c: E2 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 0E 00 [20:07:35]MH_I2C_Read... [20:07:35]Read from MH i2c: E2 0E 00 2F 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FA [20:07:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:07:35]wFMCommunicate OK [20:07:35]SAM_PROTO_GetShiftState done [20:07:35]FM_GetShiftState done [20:07:35]req_shift_opened done [20:07:35]requested_item shift.open_date is exist - process it [20:07:35]req_shift_open_date [20:07:35]req_shift_open_date done [20:07:35]produce_requested_data done [20:07:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70001,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:07:35]process_action_free close_receipt [20:07:35]json_value_free [20:07:35]json_value_free done [20:07:35]process_json_proto returns [20:07:35]Send response to host [20:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70001,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:07:35]free response buf [20:07:35]execute_script done [20:07:35]execute_script returns [20:07:35]free content buf [20:07:35]Sock 7.Close socket [20:07:35]Sock 7.Thread stoped [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:33]accept exits with 9 [20:08:33]New connection [20:08:33]New thread 3067026788 created [20:08:33]Thread 3067170148 joined [20:08:33]Waiting for new connection... [20:08:33] Sock 9.Parse request [20:08:33]Sock 9.Check first char [20:08:33]Sock 9.First char is OK [20:08:33]request: POST /json_proto HTTP/1.0 [20:08:33]Method: POST [20:08:33]URL: /json_proto [20:08:33]Method is POST - this is cgi request [20:08:33]url: /json_proto [20:08:33]query_string will be loaded in cgi processing [20:08:33]execute_cgi json_proto POST (null) [20:08:33]execute_cgi path=json_proto method=POST [20:08:33]POST find Content-Length [20:08:33]Host: 172.17.50.3:8080 [20:08:33]Content-Length: 681 [20:08:33]Content-Type: application/json [20:08:33] [20:08:33]POST finish read [20:08:33]Found Content-Length = 681 [20:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.450, "sum" : 212.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 212.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:33]execute_script... [20:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.450, "sum" : 212.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 212.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:33]POST & json_proto [20:08:33]process_json_proto [20:08:33]json parsed OK: [20:08:33]protocol is kg_v1.0 [20:08:33]action value=close_receipt [20:08:33]process_action close_receipt [20:08:33]cmd_close_receipt [20:08:33]MH_GetDate [20:08:33]Write to MH i2c: F0 00 00 30 22 41 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 09 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 09 00 30 22 00 C2 B4 16 67 6B 98 1E 66 C4 [20:08:33]GetLastDocTimeStamp 1729541252 [20:08:33]current date 1729541314 [20:08:33]FM_GetShiftState [20:08:33]SAM_PROTO_GetShiftState [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 13 01 00 [20:08:33]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FC [20:08:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:08:33]wFMCommunicate OK [20:08:33]SAM_PROTO_GetShiftState done [20:08:33]FM_GetShiftState done [20:08:33]opened in 1729469703 [20:08:33]opened+sec_in_day 1729556103 [20:08:33]quantity*price = 21200 [20:08:33]sum+1 = 21202 [20:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 212.00 Внесено: 212.00 СДАЧА: 0.00 НСП 1% : 1.88 НДС 12% : 22.51 Наличными: 212.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 392 21.10.2024 20:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70002 ФПД: 61486917189884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70002&fm=61486917189884&tin=02508201610067®Number=0000000000156251&sum=21200 [20:08:34]StoreToDocumentArchive [20:08:34]shift 194 fd 70002 [20:08:34]save to /storage/0194/doc_00070002 [20:08:34]save last doc name /storage/0194/doc_00070002 to /storage/kkm_last_doc_name [20:08:34]save OK [20:08:34]Clear old archive folders... [20:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:08:34]tlvbuf is 011AD610 [20:08:34]SAM_PROTO_ClearQueue [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 09 00 00 [20:08:34]Write to MH i2c: E2 08 00 3E 22 80 09 00 00 00 00 00 00 D2 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]SAM_PROTO_ClearQueue done [20:08:34]KKMCreateOFDPacket [20:08:34]OFDProtocolAddRootSTLVToBuf [20:08:34]FM_MakeSignedData [20:08:34]FM_MakeSignedData [20:08:34]SAM_PROTO_SignData [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 01 02 [20:08:34]Write to MH i2c: E2 08 00 3F 22 80 0D 01 02 00 00 00 00 DA [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=255 [20:08:34]MH_SAM_APDU [20:08:34]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 33 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C2 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 11 01 00 35 04 06 00 37 EC [20:08:34]Write to MH i2c: E2 02 01 40 22 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 33 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C2 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 11 01 00 35 04 06 00 37 EC 00 00 07 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=9 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 02 02 04 09 DB 80 FC [20:08:34]Write to MH i2c: E2 0C 00 41 22 80 0D 02 02 04 00 09 DB 80 FC 00 00 45 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 03 02 [20:08:34]Write to MH i2c: E2 08 00 42 22 80 0D 03 02 00 00 00 00 DF [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 0B 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 0B 00 42 22 00 7F 18 1C 3A 7F 63 8B 96 90 00 D0 [20:08:34]RAPDU: 7F 18 1C 3A 7F 63 8B 96 90 00 [20:08:34]wFMCommunicate OK [20:08:34]SAM_PROTO_SignData done [20:08:34]FM_MakeSignedData done [20:08:34]CreateOFDProtocolMessage [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 11 00 00 [20:08:34]Write to MH i2c: E2 08 00 43 22 80 11 00 00 00 00 00 00 DF [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 17 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 17 00 43 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [20:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:08:34]wFMCommunicate OK [20:08:34]CreateOFDProtocolMessage done [20:08:34]OFDSenderStorePacket 70002 [20:08:34]StoreOFDPacket docnum=70002 [20:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5D 6B 06 01 C6 8B 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 33 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C2 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 11 01 00 35 04 06 00 37 EC 09 DB 80 FC 7F 18 1C 3A 7F 63 8B 96 [20:08:34]CheckFolder [20:08:34]dirname=/storage/ofd_packets [20:08:34]CheckFolder done [20:08:34]ProducePacketName [20:08:34]name=ofd_packets/00070002 [20:08:34]NVStorageSaveData ofd_packets/00070002 [20:08:34]File name is /storage/ofd_packets/00070002 [20:08:34]Write 300 bytes [20:08:34]NVStorageSaveData done [20:08:34]OFDSenderStorePacket done [20:08:34]KKMCreateOFDPacket done [20:08:34]NVStorageSaveData kkm_last_timestamp [20:08:34]File name is /storage/kkm_last_timestamp [20:08:34]Write 4 bytes [20:08:34]NVStorageSaveData done [20:08:34]ExternCall_PrintAddStr [20:08:34]wPrintStart [20:08:34]Write to MH i2c: 01 00 00 44 22 66 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: 01 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: 01 07 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: 01 07 00 44 22 00 00 00 00 00 FF 0F 7B [20:08:34]RasterBufferAndPrint [20:08:34]line Счет N : (1)2885769 [20:08:34]line ИНН: 02508201610067 [20:08:34]line Контрольно-Кассовый Чек [20:08:34]line ПРОДАЖА [20:08:34]line ТРК (МРК, ГНК) : 71 [20:08:34]line Товар: 2711129700 [20:08:34]line ГАЗ-К-3 [20:08:34]line 5.450 * 38.90 [20:08:34]line = 212.01 [20:08:34]line НДС 12% НСП 1% [20:08:34]line > о реализуемом товаре [20:08:34]line ОКРУГЛЕНИЕ: -0.01 [20:08:34]line ИТОГО: 212.00 [20:08:34]line Внесено: 212.00 [20:08:34]line СДАЧА: 0.00 [20:08:34]line НСП 1% : 1.88 [20:08:34]line НДС 12% : 22.51 [20:08:34]line Наличными: 212.00 [20:08:34]line Безнал.: 0.00 [20:08:34]line Место: АЗС № 85 "Партнер Нефть" [20:08:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:08:34]line СНО: Общий режим [20:08:34]line Чек 392 21.10.2024 20:08 [20:08:34]line Смена: 194 ФФД: 1.0 [20:08:34]line ЗНМ: 0300000167 [20:08:34]line РНМ: 0000000000156251 [20:08:34]line Версия ККМ: v1.0 [20:08:34]line ФМ: 0000000000963346 [20:08:34]line ФД: 70002 [20:08:34]line ФПД: 61486917189884 [20:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70002&fm=61486917189884&tin=02508201610067®Number=0000000000156251&sum=21200 [20:08:35]OFD Sender: Processing packet 70002 [packets to send 18, broken 17] [20:08:35]ProducePacketName [20:08:35]name=ofd_packets/00070002 [20:08:35]OFD Sender: To server: pG, [20:08:35]CommunicateWithHost lk.salyk.kg:30040 [20:08:35]ConnectInit lk.salyk.kg [20:08:35]written 0, free lines is 4095 [20:08:35]Connected sock=10 [20:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5D 6B 06 01 C6 8B 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 33 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D1 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C2 B4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 11 01 00 35 04 06 00 37 EC 09 DB 80 FC 7F 18 1C 3A 7F 63 8B 96 [20:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1D 92 47 00 A3 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 11 01 00 F4 03 04 00 65 5E 16 67 B6 04 01 00 00 8B 7C EC BA DE DE A3 3C [20:08:35]CommunicateWithHost err = 0 [20:08:35]CheckOFDResponse [20:08:35]1017 (14) - 77093643461234 [20:08:35]1041 (16) - 0000000000963346 [20:08:35]1040 (4) - 70002 [20:08:35]1012 (4) - 21.10.2024 14:00 [20:08:35]1206 (1) - 0 [20:08:35]OFD Sender: Remove packet 70002 [20:08:35]ProducePacketName [20:08:35]name=ofd_packets/00070002 [20:08:35]NVStorageDeleteData [20:08:35]Write to MH i2c: 01 00 00 6F 22 91 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 6F 22 00 00 00 00 00 D7 0C 7B [20:08:35]RasterBufferAndPrint [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]written 0, free lines is 3294 [20:08:35]MH_Cut [20:08:35]Write to MH i2c: D1 01 00 76 22 01 6A [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 01 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 01 00 76 22 00 69 [20:08:35]Write to MH i2c: 01 00 00 77 22 99 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:36]OFD Sender: No OFD packet to send [20:08:36]*** Cut start [20:08:36]*** Partial cut [20:08:36]*** CUTSNS_PIN = 1 [20:08:36]*** CUTSNS_PIN = 0 [20:08:36]*** Brake cut motor [20:08:37]Read from MH i2c: 01 [20:08:37]MH_I2C_Read... [20:08:37]*** Stop cut motor [20:08:37]*** Cut end [20:08:37]Read from MH i2c: 01 07 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: 01 07 00 77 22 00 00 00 00 00 FF 0F AE [20:08:37]process_action close_receipt done [20:08:37]requested_data is exist [20:08:37]produce_requested_data [20:08:37]requested_item fm.sn is exist - process it [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 11 00 00 [20:08:37]Write to MH i2c: E2 08 00 78 22 80 11 00 00 00 00 00 00 14 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 17 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 17 00 78 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [20:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:08:37]wFMCommunicate OK [20:08:37]requested_item fd.num is exist - process it [20:08:37]SAM_PROTO_GetFieldsCounters [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 13 00 00 [20:08:37]Write to MH i2c: E2 08 00 79 22 80 13 00 00 00 00 00 00 17 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 62 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 62 00 79 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [20:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:37]wFMCommunicate OK [20:08:37]SAM_PROTO_GetFieldsCounters done [20:08:37]requested_item shift.num is exist - process it [20:08:37]requested_item shift.opened is exist - process it [20:08:37]req_shift_opened [20:08:37]FM_GetShiftState [20:08:37]SAM_PROTO_GetShiftState [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 13 01 00 [20:08:37]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 0E 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 45 [20:08:37]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:08:37]wFMCommunicate OK [20:08:37]SAM_PROTO_GetShiftState done [20:08:37]FM_GetShiftState done [20:08:37]req_shift_opened done [20:08:37]requested_item shift.open_date is exist - process it [20:08:37]req_shift_open_date [20:08:37]req_shift_open_date done [20:08:37]produce_requested_data done [20:08:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70002,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:08:37]process_action_free close_receipt [20:08:37]json_value_free [20:08:37]json_value_free done [20:08:37]process_json_proto returns [20:08:37]Send response to host [20:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70002,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:08:37]free response buf [20:08:37]execute_script done [20:08:37]execute_script returns [20:08:37]free content buf [20:08:37]Sock 9.Close socket [20:08:37]Sock 9.Thread stoped [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:46:18]ConnectInit Can't connect to host [20:46:22]ConnectInit Can't take IP for lk.salyk.kg [20:46:22]CommunicateWithHost connect error [20:46:22]CommunicateWithHost err = -1 [20:46:22]OFD Sender: Server communicate error [20:46:27]OFD Sender: Processing packet 70003 [packets to send 22, broken 17] [20:46:27]ProducePacketName [20:46:27]name=ofd_packets/00070003 [20:46:27]OFD Sender: To server: pG, [20:46:27]CommunicateWithHost lk.salyk.kg:30040 [20:46:27]ConnectInit lk.salyk.kg [20:46:27]Connected sock=7 [20:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8F A9 04 01 83 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 32 31 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 89 01 00 00 F4 03 04 00 4A B5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 11 01 00 35 04 06 00 19 00 1F 26 E0 77 93 52 60 47 A3 D8 F9 DA [20:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 48 47 00 F7 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 11 01 00 F4 03 04 00 45 67 16 67 B6 04 01 00 00 9C C2 58 DC 88 92 13 41 [20:46:27]CommunicateWithHost err = 0 [20:46:27]CheckOFDResponse [20:46:27]1017 (14) - 77093643461234 [20:46:27]1041 (16) - 0000000000963346 [20:46:27]1040 (4) - 70003 [20:46:27]1012 (4) - 21.10.2024 14:37 [20:46:27]1206 (1) - 0 [20:46:27]OFD Sender: Remove packet 70003 [20:46:27]ProducePacketName [20:46:27]name=ofd_packets/00070003 [20:46:27]NVStorageDeleteData [20:46:28]OFD Sender: Processing packet 70004 [packets to send 21, broken 17] [20:46:28]ProducePacketName [20:46:28]name=ofd_packets/00070004 [20:46:28]OFD Sender: To server: pG, [20:46:28]CommunicateWithHost lk.salyk.kg:30040 [20:46:28]ConnectInit lk.salyk.kg [20:46:28]Connected sock=7 [20:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5A 3B 07 01 3F 00 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 B9 B7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 11 01 00 35 04 06 00 FA 48 06 B1 C0 87 E5 22 6E 6A AF 24 FE 60 [20:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 33 E9 47 00 00 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 11 01 00 F4 03 04 00 46 67 16 67 B6 04 01 00 00 83 75 4A 90 58 5D 29 21 [20:46:28]CommunicateWithHost err = 0 [20:46:28]CheckOFDResponse [20:46:28]1017 (14) - 77093643461234 [20:46:28]1041 (16) - 0000000000963346 [20:46:28]1040 (4) - 70004 [20:46:28]1012 (4) - 21.10.2024 14:37 [20:46:28]1206 (1) - 0 [20:46:28]OFD Sender: Remove packet 70004 [20:46:28]ProducePacketName [20:46:28]name=ofd_packets/00070004 [20:46:28]NVStorageDeleteData [20:46:28]OFD Sender: Processing packet 70005 [packets to send 20, broken 17] [20:46:28]ProducePacketName [20:46:28]name=ofd_packets/00070005 [20:46:28]OFD Sender: To server: pG, [20:46:28]CommunicateWithHost lk.salyk.kg:30040 [20:46:28]ConnectInit lk.salyk.kg [20:46:29]Connected sock=9 [20:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 41 6F 0D 01 FE 8F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DA 1B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 04 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 E1 BA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 11 01 00 35 04 06 00 DB 94 58 B7 64 D0 6A 06 D4 80 53 54 9B DD [20:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 56 F2 47 00 D5 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 11 01 00 F4 03 04 00 47 67 16 67 B6 04 01 00 00 A1 53 EB 61 97 2F 2C 27 [20:46:29]CommunicateWithHost err = 0 [20:46:29]CheckOFDResponse [20:46:29]1017 (14) - 77093643461234 [20:46:29]1041 (16) - 0000000000963346 [20:46:29]1040 (4) - 70005 [20:46:29]1012 (4) - 21.10.2024 14:37 [20:46:29]1206 (1) - 0 [20:46:29]OFD Sender: Remove packet 70005 [20:46:29]ProducePacketName [20:46:29]name=ofd_packets/00070005 [20:46:29]NVStorageDeleteData [20:46:29]OFD Sender: Processing packet 70006 [packets to send 19, broken 17] [20:46:29]ProducePacketName [20:46:29]name=ofd_packets/00070006 [20:46:29]OFD Sender: To server: pG, [20:46:29]CommunicateWithHost lk.salyk.kg:30040 [20:46:29]ConnectInit lk.salyk.kg [20:46:30]Connected sock=7 [20:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 40 2B 07 01 D2 26 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 31 BB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 11 01 00 35 04 06 00 9E 80 66 BE E9 A6 2A 0A 6E FB 08 F1 37 2A [20:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 18 D0 47 00 1D 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 11 01 00 F4 03 04 00 48 67 16 67 B6 04 01 00 00 63 30 2A 22 A0 02 14 AF [20:46:30]CommunicateWithHost err = 0 [20:46:30]CheckOFDResponse [20:46:30]1017 (14) - 77093643461234 [20:46:30]1041 (16) - 0000000000963346 [20:46:30]1040 (4) - 70006 [20:46:30]1012 (4) - 21.10.2024 14:38 [20:46:30]1206 (1) - 0 [20:46:30]OFD Sender: Remove packet 70006 [20:46:30]ProducePacketName [20:46:30]name=ofd_packets/00070006 [20:46:30]NVStorageDeleteData [20:46:30]OFD Sender: Processing packet 70007 [packets to send 18, broken 17] [20:46:30]ProducePacketName [20:46:30]name=ofd_packets/00070007 [20:46:30]OFD Sender: To server: pG, [20:46:30]CommunicateWithHost lk.salyk.kg:30040 [20:46:30]ConnectInit lk.salyk.kg [20:46:31]Connected sock=7 [20:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 B8 07 01 58 E9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 CA BB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 11 01 00 35 04 06 00 24 00 17 3C 30 41 7B EB 19 88 96 FF 32 6E [20:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE CF 47 00 31 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 11 01 00 F4 03 04 00 49 67 16 67 B6 04 01 00 00 BF 9E 27 89 8E F6 B2 A6 [20:46:31]CommunicateWithHost err = 0 [20:46:31]CheckOFDResponse [20:46:31]1017 (14) - 77093643461234 [20:46:31]1041 (16) - 0000000000963346 [20:46:31]1040 (4) - 70007 [20:46:31]1012 (4) - 21.10.2024 14:38 [20:46:31]1206 (1) - 0 [20:46:31]OFD Sender: Remove packet 70007 [20:46:31]ProducePacketName [20:46:31]name=ofd_packets/00070007 [20:46:31]NVStorageDeleteData [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:15]ConnectInit Can't connect to host [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:41]accept exits with 11 [20:51:41]New connection [20:51:41]New thread 3067026788 created [20:51:41]Thread 3067170148 joined [20:51:41]Waiting for new connection... [20:51:41] Sock 11.Parse request [20:51:41]Sock 11.Check first char [20:51:41]Sock 11.First char is OK [20:51:41]request: POST /json_proto HTTP/1.0 [20:51:41]Method: POST [20:51:41]URL: /json_proto [20:51:41]Method is POST - this is cgi request [20:51:41]url: /json_proto [20:51:41]query_string will be loaded in cgi processing [20:51:41]execute_cgi json_proto POST (null) [20:51:41]execute_cgi path=json_proto method=POST [20:51:41]POST find Content-Length [20:51:41]Host: 172.17.50.3:8080 [20:51:41]Content-Length: 770 [20:51:41]Content-Type: application/json [20:51:41] [20:51:41]POST finish read [20:51:41]Found Content-Length = 770 [20:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:41]execute_script... [20:51: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)2885775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:41]POST & json_proto [20:51:41]process_json_proto [20:51:41]json parsed OK: [20:51:41]protocol is kg_v1.0 [20:51:41]action value=close_receipt [20:51:41]process_action close_receipt [20:51:41]cmd_close_receipt [20:51:41]MH_GetDate [20:51:41]Write to MH i2c: F0 00 00 F2 23 04 [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: F0 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: F0 09 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: F0 09 00 F2 23 00 DF BE 16 67 6B 98 1E 66 AE [20:51:41]GetLastDocTimeStamp 1729543114 [20:51:41]current date 1729543903 [20:51:41]FM_GetShiftState [20:51:41]SAM_PROTO_GetShiftState [20:51:41]wFMCommunicate request_size=4 [20:51:41]MH_SAM_APDU [20:51:41]CAPDU: 80 13 01 00 [20:51:41]Write to MH i2c: E2 08 00 F3 23 80 13 01 00 00 00 00 00 93 [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:41]Read from MH i2c: E2 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 0E 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: E2 0E 00 F3 23 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [20:51:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:51:41]wFMCommunicate OK [20:51:41]SAM_PROTO_GetShiftState done [20:51:41]FM_GetShiftState done [20:51:41]opened in 1729469703 [20:51:41]opened+sec_in_day 1729556103 [20:51:41]quantity*price = 100015 [20:51:41]sum+1 = 100017 [20:51:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 398 21.10.2024 20:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70008 ФПД: 161785694147629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70008&fm=161785694147629&tin=02508201610067®Number=0000000000156251&sum=100016 [20:51:42]StoreToDocumentArchive [20:51:42]shift 194 fd 70008 [20:51:42]save to /storage/0194/doc_00070008 [20:51:42]save last doc name /storage/0194/doc_00070008 to /storage/kkm_last_doc_name [20:51:42]save OK [20:51:42]Clear old archive folders... [20:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:42]tlvbuf is 011D14B0 [20:51:42]SAM_PROTO_ClearQueue [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 09 00 00 [20:51:42]Write to MH i2c: E2 08 00 00 24 80 09 00 00 00 00 00 00 96 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:42]Read from MH i2c: E2 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [20:51:42]RAPDU: 90 00 [20:51:42]wFMCommunicate OK [20:51:42]SAM_PROTO_ClearQueue done [20:51:42]KKMCreateOFDPacket [20:51:42]OFDProtocolAddRootSTLVToBuf [20:51:42]FM_MakeSignedData [20:51:42]FM_MakeSignedData [20:51:42]SAM_PROTO_SignData [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 0D 01 02 [20:51:42]Write to MH i2c: E2 08 00 01 24 80 0D 01 02 00 00 00 00 9E [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:42]Read from MH i2c: E2 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [20:51:42]RAPDU: 90 00 [20:51:42]wFMCommunicate OK [20:51:42]wFMCommunicate request_size=255 [20:51:42]MH_SAM_APDU [20:51: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 DF BE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 11 01 00 35 04 06 00 93 [20:51:42]Write to MH i2c: E2 02 01 02 24 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 DF BE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 11 01 00 35 04 06 00 93 00 00 C9 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:42]Read from MH i2c: E2 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [20:51:42]RAPDU: 90 00 [20:51:42]wFMCommunicate OK [20:51:42]wFMCommunicate request_size=10 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 0D 02 02 05 24 AA D4 54 2D [20:51:42]Write to MH i2c: E2 0D 00 03 24 80 0D 02 02 05 00 24 AA D4 54 2D 00 00 CE [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 03 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [20:51:43]RAPDU: 90 00 [20:51:43]wFMCommunicate OK [20:51:43]wFMCommunicate request_size=4 [20:51:43]MH_SAM_APDU [20:51:43]CAPDU: 80 0D 03 02 [20:51:43]Write to MH i2c: E2 08 00 04 24 80 0D 03 02 00 00 00 00 A3 [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0B 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0B 00 04 24 00 2C 47 A8 4E 94 A4 68 57 90 00 04 [20:51:43]RAPDU: 2C 47 A8 4E 94 A4 68 57 90 00 [20:51:43]wFMCommunicate OK [20:51:43]SAM_PROTO_SignData done [20:51:43]FM_MakeSignedData done [20:51:43]CreateOFDProtocolMessage [20:51:43]wFMCommunicate request_size=4 [20:51:43]MH_SAM_APDU [20:51:43]CAPDU: 80 11 00 00 [20:51:43]Write to MH i2c: E2 08 00 05 24 80 11 00 00 00 00 00 00 A3 [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 17 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 17 00 05 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [20:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:51:43]wFMCommunicate OK [20:51:43]CreateOFDProtocolMessage done [20:51:43]OFDSenderStorePacket 70008 [20:51:43]StoreOFDPacket docnum=70008 [20:51:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 66 07 01 B3 DD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 DF BE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 11 01 00 35 04 06 00 93 24 AA D4 54 2D 2C 47 A8 4E 94 A4 68 57 [20:51:43]CheckFolder [20:51:43]dirname=/storage/ofd_packets [20:51:43]CheckFolder done [20:51:43]ProducePacketName [20:51:43]name=ofd_packets/00070008 [20:51:43]NVStorageSaveData ofd_packets/00070008 [20:51:43]File name is /storage/ofd_packets/00070008 [20:51:43]Write 301 bytes [20:51:43]NVStorageSaveData done [20:51:43]OFDSenderStorePacket done [20:51:43]KKMCreateOFDPacket done [20:51:43]NVStorageSaveData kkm_last_timestamp [20:51:43]File name is /storage/kkm_last_timestamp [20:51:43]Write 4 bytes [20:51:43]NVStorageSaveData done [20:51:43]ExternCall_PrintAddStr [20:51:43]wPrintStart [20:51:43]Write to MH i2c: 01 00 00 06 24 2A [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 07 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 FF 0F 3F [20:51:43]RasterBufferAndPrint [20:51:43]line Счет N : (1)2885775 [20:51:43]line ИНН: 02508201610067 [20:51:43]line Контрольно-Кассовый Чек [20:51:43]line ПРОДАЖА [20:51:43]line ТРК (МРК, ГНК) : 12 [20:51:43]line Товар: 2710124130 [20:51:43]line Аи-92-К-5 [20:51:43]line 14.950 * 66.90 [20:51:43]line = 1000.16 [20:51:43]line НДС 12% НСП 1% [20:51:43]line > о реализуемом товаре [20:51:43]line ИТОГО: 1000.16 [20:51:43]line НСП 1% : 8.85 [20:51:43]line НДС 12% : 106.21 [20:51:43]line Наличными: 0.00 [20:51:43]line Безнал.: 1000.16 [20:51:43]line Место: АЗС № 85 "Партнер Нефть" [20:51:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:51:43]line СНО: Общий режим [20:51:43]line Чек 398 21.10.2024 20:51 [20:51:43]line Смена: 194 ФФД: 1.0 [20:51:43]line ЗНМ: 0300000167 [20:51:43]line РНМ: 0000000000156251 [20:51:43]line Версия ККМ: v1.0 [20:51:43]line Платежная система: Mbank [20:51:43]line ФМ: 0000000000963346 [20:51:43]line ФД: 70008 [20:51:43]line ФПД: 161785694147629 [20:51:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205143&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70008&fm=161785694147629&tin=02508201610067®Number=0000000000156251&sum=100016 [20:51:43]OFD Sender: Processing packet 70008 [packets to send 18, broken 17] [20:51:43]ProducePacketName [20:51:43]name=ofd_packets/00070008 [20:51:43]OFD Sender: To server: pG, [20:51:43]CommunicateWithHost lk.salyk.kg:30040 [20:51:43]ConnectInit lk.salyk.kg [20:51:43]written 0, free lines is 4095 [20:51:43]Connected sock=9 [20:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 66 07 01 B3 DD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 DF BE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 11 01 00 35 04 06 00 93 24 AA D4 54 2D 2C 47 A8 4E 94 A4 68 57 [20:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 19 47 47 00 C1 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 11 01 00 F4 03 04 00 81 68 16 67 B6 04 01 00 00 CA 74 38 F1 B4 C3 D1 4C [20:51:43]CommunicateWithHost err = 0 [20:51:43]CheckOFDResponse [20:51:43]1017 (14) - 77093643461234 [20:51:43]1041 (16) - 0000000000963346 [20:51:43]1040 (4) - 70008 [20:51:43]1012 (4) - 21.10.2024 14:43 [20:51:43]1206 (1) - 0 [20:51:43]OFD Sender: Remove packet 70008 [20:51:43]ProducePacketName [20:51:43]name=ofd_packets/00070008 [20:51:43]NVStorageDeleteData [20:51:43]Write to MH i2c: 01 00 00 2F 24 53 [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 07 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: 01 07 00 2F 24 00 00 00 00 00 19 0D 80 [20:51:43]RasterBufferAndPrint [20:51:43]line [20:51:43]line [20:51:43]line [20:51:43]line [20:51:43]line [20:51:43]written 0, free lines is 3359 [20:51:43]MH_Cut [20:51:43]Write to MH i2c: D1 01 00 36 24 01 2C [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: D1 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: D1 01 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: D1 01 00 36 24 00 2B [20:51:43]Write to MH i2c: 01 00 00 37 24 5B [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:44]OFD Sender: No OFD packet to send [20:51:44]*** Cut start [20:51:44]*** Partial cut [20:51:44]*** CUTSNS_PIN = 1 [20:51:44]*** CUTSNS_PIN = 0 [20:51:44]*** Brake cut motor [20:51:45]Read from MH i2c: 01 [20:51:45]MH_I2C_Read... [20:51:45]*** Stop cut motor [20:51:45]*** Cut end [20:51:45]Read from MH i2c: 01 07 00 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: 01 07 00 37 24 00 00 00 00 00 FF 0F 70 [20:51:45]process_action close_receipt done [20:51:45]requested_data is exist [20:51:45]produce_requested_data [20:51:45]requested_item fm.sn is exist - process it [20:51:45]wFMCommunicate request_size=4 [20:51:45]MH_SAM_APDU [20:51:45]CAPDU: 80 11 00 00 [20:51:45]Write to MH i2c: E2 08 00 38 24 80 11 00 00 00 00 00 00 D6 [20:51:45]Write i2c OK [20:51:45]MH_I2C_Read... [20:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:45]Read from MH i2c: E2 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 17 00 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 17 00 38 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [20:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:51:45]wFMCommunicate OK [20:51:45]requested_item fd.num is exist - process it [20:51:45]SAM_PROTO_GetFieldsCounters [20:51:45]wFMCommunicate request_size=4 [20:51:45]MH_SAM_APDU [20:51:45]CAPDU: 80 13 00 00 [20:51:45]Write to MH i2c: E2 08 00 39 24 80 13 00 00 00 00 00 00 D9 [20:51:45]Write i2c OK [20:51:45]MH_I2C_Read... [20:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:45]Read from MH i2c: E2 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 62 00 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 62 00 39 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [20:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:45]wFMCommunicate OK [20:51:45]SAM_PROTO_GetFieldsCounters done [20:51:45]requested_item shift.num is exist - process it [20:51:45]requested_item shift.opened is exist - process it [20:51:45]req_shift_opened [20:51:45]FM_GetShiftState [20:51:45]SAM_PROTO_GetShiftState [20:51:45]wFMCommunicate request_size=4 [20:51:45]MH_SAM_APDU [20:51:45]CAPDU: 80 13 01 00 [20:51:45]Write to MH i2c: E2 08 00 3A 24 80 13 01 00 00 00 00 00 DB [20:51:45]Write i2c OK [20:51:45]MH_I2C_Read... [20:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:45]Read from MH i2c: E2 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 0E 00 [20:51:45]MH_I2C_Read... [20:51:45]Read from MH i2c: E2 0E 00 3A 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 07 [20:51:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:51:45]wFMCommunicate OK [20:51:45]SAM_PROTO_GetShiftState done [20:51:45]FM_GetShiftState done [20:51:45]req_shift_opened done [20:51:45]requested_item shift.open_date is exist - process it [20:51:45]req_shift_open_date [20:51:45]req_shift_open_date done [20:51:45]produce_requested_data done [20:51:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70008,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:51:45]process_action_free close_receipt [20:51:45]json_value_free [20:51:45]json_value_free done [20:51:45]process_json_proto returns [20:51:45]Send response to host [20:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70008,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:51:45]free response buf [20:51:45]execute_script done [20:51:45]execute_script returns [20:51:45]free content buf [20:51:45]Sock 11.Close socket [20:51:45]Sock 11.Thread stoped [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:30]accept exits with 7 [20:53:30]New connection [20:53:30]New thread 3067170148 created [20:53:30]Thread 3067026788 joined [20:53:30]Waiting for new connection... [20:53:30] Sock 7.Parse request [20:53:30]Sock 7.Check first char [20:53:30]Sock 7.First char is OK [20:53:30]request: POST /json_proto HTTP/1.0 [20:53:30]Method: POST [20:53:30]URL: /json_proto [20:53:30]Method is POST - this is cgi request [20:53:30]url: /json_proto [20:53:30]query_string will be loaded in cgi processing [20:53:30]execute_cgi json_proto POST (null) [20:53:30]execute_cgi path=json_proto method=POST [20:53:30]POST find Content-Length [20:53:30]Host: 172.17.50.3:8080 [20:53:30]Content-Length: 689 [20:53:30]Content-Type: application/json [20:53:30] [20:53:30]POST finish read [20:53:30]Found Content-Length = 689 [20:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [20:53:30]execute_script... [20:53: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)2885776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "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" ] } } [20:53:30]POST & json_proto [20:53:30]process_json_proto [20:53:30]json parsed OK: [20:53:30]protocol is kg_v1.0 [20:53:30]action value=close_receipt [20:53:30]process_action close_receipt [20:53:30]cmd_close_receipt [20:53:30]MH_GetDate [20:53:30]Write to MH i2c: F0 00 00 3B 24 4E [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: F0 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: F0 09 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: F0 09 00 3B 24 00 4C BF 16 67 6B 98 1E 66 66 [20:53:30]GetLastDocTimeStamp 1729543903 [20:53:30]current date 1729544012 [20:53:30]FM_GetShiftState [20:53:30]SAM_PROTO_GetShiftState [20:53:30]wFMCommunicate request_size=4 [20:53:30]MH_SAM_APDU [20:53:30]CAPDU: 80 13 01 00 [20:53:30]Write to MH i2c: E2 08 00 3C 24 80 13 01 00 00 00 00 00 DD [20:53:30]Write i2c OK [20:53:30]MH_I2C_Read... [20:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:30]Read from MH i2c: E2 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 0E 00 [20:53:30]MH_I2C_Read... [20:53:30]Read from MH i2c: E2 0E 00 3C 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 09 [20:53:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:53:30]wFMCommunicate OK [20:53:30]SAM_PROTO_GetShiftState done [20:53:30]FM_GetShiftState done [20:53:30]opened in 1729469703 [20:53:30]opened+sec_in_day 1729556103 [20:53:30]quantity*price = 200025 [20:53:30]sum+1 = 200026 [20:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 399 21.10.2024 20:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70009 ФПД: 219592404644533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205332&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70009&fm=219592404644533&tin=02508201610067®Number=0000000000156251&sum=200000 [20:53:31]StoreToDocumentArchive [20:53:31]shift 194 fd 70009 [20:53:31]save to /storage/0194/doc_00070009 [20:53:31]save last doc name /storage/0194/doc_00070009 to /storage/kkm_last_doc_name [20:53:31]save OK [20:53:31]Clear old archive folders... [20:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:53:31]tlvbuf is 011234D0 [20:53:31]SAM_PROTO_ClearQueue [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 09 00 00 [20:53:31]Write to MH i2c: E2 08 00 49 24 80 09 00 00 00 00 00 00 DF [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:31]Read from MH i2c: E2 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [20:53:31]RAPDU: 90 00 [20:53:31]wFMCommunicate OK [20:53:31]SAM_PROTO_ClearQueue done [20:53:31]KKMCreateOFDPacket [20:53:31]OFDProtocolAddRootSTLVToBuf [20:53:31]FM_MakeSignedData [20:53:31]FM_MakeSignedData [20:53:31]SAM_PROTO_SignData [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 0D 01 02 [20:53:31]Write to MH i2c: E2 08 00 4A 24 80 0D 01 02 00 00 00 00 E7 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:31]Read from MH i2c: E2 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [20:53:31]RAPDU: 90 00 [20:53:31]wFMCommunicate OK [20:53:31]wFMCommunicate request_size=255 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 4C BF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 11 01 [20:53:31]Write to MH i2c: E2 02 01 4B 24 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 4C BF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 11 01 00 00 E2 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:31]Read from MH i2c: E2 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [20:53:31]RAPDU: 90 00 [20:53:31]wFMCommunicate OK [20:53:31]wFMCommunicate request_size=16 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C7 B7 D7 46 32 B5 [20:53:31]Write to MH i2c: E2 13 00 4C 24 80 0D 02 02 0B 00 00 35 04 06 00 C7 B7 D7 46 32 B5 00 00 C1 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:31]Read from MH i2c: E2 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [20:53:31]RAPDU: 90 00 [20:53:31]wFMCommunicate OK [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 0D 03 02 [20:53:31]Write to MH i2c: E2 08 00 4D 24 80 0D 03 02 00 00 00 00 EC [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0B 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0B 00 4D 24 00 EA 4A 05 85 CD 38 F3 FF 90 00 A2 [20:53:32]RAPDU: EA 4A 05 85 CD 38 F3 FF 90 00 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_SignData done [20:53:32]FM_MakeSignedData done [20:53:32]CreateOFDProtocolMessage [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 11 00 00 [20:53:32]Write to MH i2c: E2 08 00 4E 24 80 11 00 00 00 00 00 00 EC [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 4E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [20:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:53:32]wFMCommunicate OK [20:53:32]CreateOFDProtocolMessage done [20:53:32]OFDSenderStorePacket 70009 [20:53:32]StoreOFDPacket docnum=70009 [20:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6E 8A 0D 01 6A 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 4C BF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 11 01 00 35 04 06 00 C7 B7 D7 46 32 B5 EA 4A 05 85 CD 38 F3 FF [20:53:32]CheckFolder [20:53:32]dirname=/storage/ofd_packets [20:53:32]CheckFolder done [20:53:32]ProducePacketName [20:53:32]name=ofd_packets/00070009 [20:53:32]NVStorageSaveData ofd_packets/00070009 [20:53:32]File name is /storage/ofd_packets/00070009 [20:53:32]Write 307 bytes [20:53:32]NVStorageSaveData done [20:53:32]OFDSenderStorePacket done [20:53:32]KKMCreateOFDPacket done [20:53:32]NVStorageSaveData kkm_last_timestamp [20:53:32]File name is /storage/kkm_last_timestamp [20:53:32]Write 4 bytes [20:53:32]NVStorageSaveData done [20:53:32]ExternCall_PrintAddStr [20:53:32]wPrintStart [20:53:32]Write to MH i2c: 01 00 00 4F 24 73 [20:53:32]OFD Sender: Processing packet 70009 [packets to send 18, broken 17] [20:53:32]ProducePacketName [20:53:32]name=ofd_packets/00070009 [20:53:32]OFD Sender: To server: pG, [20:53:32]CommunicateWithHost lk.salyk.kg:30040 [20:53:32]ConnectInit lk.salyk.kg [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 07 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 07 00 4F 24 00 00 00 00 00 FF 0F 88 [20:53:32]RasterBufferAndPrint [20:53:32]line Счет N : (1)2885776 [20:53:32]line ИНН: 02508201610067 [20:53:32]line Контрольно-Кассовый Чек [20:53:32]line ПРОДАЖА [20:53:32]line ТРК (МРК, ГНК) : 31 [20:53:32]line Товар: 2710194240 [20:53:32]line D-ENERGY Дт-К-2 [20:53:32]line 25.910 * 77.20 [20:53:32]line = 2000.25 [20:53:32]line НДС 12% НСП 1% [20:53:32]line > о реализуемом товаре [20:53:32]line ОКРУГЛЕНИЕ: -0.25 [20:53:32]line ИТОГО: 2000.00 [20:53:32]line Внесено: 2000.00 [20:53:32]line СДАЧА: 0.00 [20:53:32]line НСП 1% : 17.70 [20:53:32]line НДС 12% : 212.42 [20:53:32]line Наличными: 2000.00 [20:53:32]line Безнал.: 0.00 [20:53:32]line Место: АЗС № 85 "Партнер Нефть" [20:53:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:53:32]line СНО: Общий режим [20:53:32]line Чек 399 21.10.2024 20:53 [20:53:32]line Смена: 194 ФФД: 1.0 [20:53:32]line ЗНМ: 0300000167 [20:53:32]line РНМ: 0000000000156251 [20:53:32]line Версия ККМ: v1.0 [20:53:32]line ФМ: 0000000000963346 [20:53:32]line ФД: 70009 [20:53:32]line ФПД: 219592404644533 [20:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205332&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70009&fm=219592404644533&tin=02508201610067®Number=0000000000156251&sum=200000 [20:53:32]Connected sock=10 [20:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6E 8A 0D 01 6A 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 4C BF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 11 01 00 35 04 06 00 C7 B7 D7 46 32 B5 EA 4A 05 85 CD 38 F3 FF [20:53:32]written 0, free lines is 4095 [20:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 66 47 00 AF B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 11 01 00 F4 03 04 00 EE 68 16 67 B6 04 01 00 00 0A 34 33 55 E6 64 CE EB [20:53:32]CommunicateWithHost err = 0 [20:53:32]CheckOFDResponse [20:53:32]1017 (14) - 77093643461234 [20:53:32]1041 (16) - 0000000000963346 [20:53:32]1040 (4) - 70009 [20:53:32]1012 (4) - 21.10.2024 14:45 [20:53:32]1206 (1) - 0 [20:53:32]OFD Sender: Remove packet 70009 [20:53:32]ProducePacketName [20:53:32]name=ofd_packets/00070009 [20:53:32]NVStorageDeleteData [20:53:32]Write to MH i2c: 01 00 00 7A 24 9E [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 07 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 EA 0C 9B [20:53:32]RasterBufferAndPrint [20:53:32]line [20:53:32]line [20:53:32]line [20:53:32]line [20:53:32]line [20:53:32]written 0, free lines is 3312 [20:53:32]MH_Cut [20:53:32]Write to MH i2c: D1 01 00 81 24 01 77 [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: D1 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: D1 01 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: D1 01 00 81 24 00 76 [20:53:32]Write to MH i2c: 01 00 00 82 24 A6 [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:33]OFD Sender: No OFD packet to send [20:53:33]*** Cut start [20:53:33]*** Partial cut [20:53:33]*** CUTSNS_PIN = 1 [20:53:33]*** CUTSNS_PIN = 0 [20:53:33]*** Brake cut motor [20:53:34]Read from MH i2c: 01 [20:53:34]MH_I2C_Read... [20:53:34]*** Stop cut motor [20:53:34]*** Cut end [20:53:34]Read from MH i2c: 01 07 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 82 24 00 00 00 00 00 FF 0F BB [20:53:34]process_action close_receipt done [20:53:34]requested_data is exist [20:53:34]produce_requested_data [20:53:34]requested_item fm.sn is exist - process it [20:53:34]wFMCommunicate request_size=4 [20:53:34]MH_SAM_APDU [20:53:34]CAPDU: 80 11 00 00 [20:53:34]Write to MH i2c: E2 08 00 83 24 80 11 00 00 00 00 00 00 21 [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:34]Read from MH i2c: E2 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 17 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 17 00 83 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [20:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:53:34]wFMCommunicate OK [20:53:34]requested_item fd.num is exist - process it [20:53:34]SAM_PROTO_GetFieldsCounters [20:53:34]wFMCommunicate request_size=4 [20:53:34]MH_SAM_APDU [20:53:34]CAPDU: 80 13 00 00 [20:53:34]Write to MH i2c: E2 08 00 84 24 80 13 00 00 00 00 00 00 24 [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:34]Read from MH i2c: E2 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 62 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 62 00 84 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [20:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:34]wFMCommunicate OK [20:53:34]SAM_PROTO_GetFieldsCounters done [20:53:34]requested_item shift.num is exist - process it [20:53:34]requested_item shift.opened is exist - process it [20:53:34]req_shift_opened [20:53:34]FM_GetShiftState [20:53:34]SAM_PROTO_GetShiftState [20:53:34]wFMCommunicate request_size=4 [20:53:34]MH_SAM_APDU [20:53:34]CAPDU: 80 13 01 00 [20:53:34]Write to MH i2c: E2 08 00 85 24 80 13 01 00 00 00 00 00 26 [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:34]Read from MH i2c: E2 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 0E 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: E2 0E 00 85 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 52 [20:53:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:53:34]wFMCommunicate OK [20:53:34]SAM_PROTO_GetShiftState done [20:53:34]FM_GetShiftState done [20:53:34]req_shift_opened done [20:53:34]requested_item shift.open_date is exist - process it [20:53:34]req_shift_open_date [20:53:34]req_shift_open_date done [20:53:34]produce_requested_data done [20:53:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70009,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:53:34]process_action_free close_receipt [20:53:34]json_value_free [20:53:34]json_value_free done [20:53:34]process_json_proto returns [20:53:34]Send response to host [20:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70009,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:53:34]free response buf [20:53:34]execute_script done [20:53:34]execute_script returns [20:53:34]free content buf [20:53:34]Sock 7.Close socket [20:53:34]Sock 7.Thread stoped [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:13]accept exits with 9 [20:57:13]New connection [20:57:13]New thread 3067026788 created [20:57:13]Thread 3067170148 joined [20:57:13]Waiting for new connection... [20:57:13] Sock 9.Parse request [20:57:13]Sock 9.Check first char [20:57:13]Sock 9.First char is OK [20:57:13]request: POST /json_proto HTTP/1.0 [20:57:13]Method: POST [20:57:13]URL: /json_proto [20:57:13]Method is POST - this is cgi request [20:57:13]url: /json_proto [20:57:13]query_string will be loaded in cgi processing [20:57:13]execute_cgi json_proto POST (null) [20:57:13]execute_cgi path=json_proto method=POST [20:57:13]POST find Content-Length [20:57:13]Host: 172.17.50.3:8080 [20:57:13]Content-Length: 770 [20:57:13]Content-Type: application/json [20:57:13] [20:57:13]POST finish read [20:57:13]Found Content-Length = 770 [20:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:13]execute_script... [20:57: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)2885778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:13]POST & json_proto [20:57:13]process_json_proto [20:57:13]json parsed OK: [20:57:13]protocol is kg_v1.0 [20:57:13]action value=close_receipt [20:57:13]process_action close_receipt [20:57:13]cmd_close_receipt [20:57:13]MH_GetDate [20:57:13]Write to MH i2c: F0 00 00 86 24 99 [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 86 24 00 2B C0 16 67 6B 98 1E 66 91 [20:57:13]GetLastDocTimeStamp 1729544012 [20:57:13]current date 1729544235 [20:57:13]FM_GetShiftState [20:57:13]SAM_PROTO_GetShiftState [20:57:13]wFMCommunicate request_size=4 [20:57:13]MH_SAM_APDU [20:57:13]CAPDU: 80 13 01 00 [20:57:13]Write to MH i2c: E2 08 00 87 24 80 13 01 00 00 00 00 00 28 [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:13]Read from MH i2c: E2 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 87 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 54 [20:57:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:57:13]wFMCommunicate OK [20:57:13]SAM_PROTO_GetShiftState done [20:57:13]FM_GetShiftState done [20:57:13]opened in 1729469703 [20:57:13]opened+sec_in_day 1729556103 [20:57:13]quantity*price = 110038 [20:57:13]sum+1 = 110040 [20:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.39 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 0.00 Безнал.: 1100.39 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 400 21.10.2024 20:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70010 ФПД: 48580253209517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70010&fm=48580253209517&tin=02508201610067®Number=0000000000156251&sum=110039 [20:57:14]StoreToDocumentArchive [20:57:14]shift 194 fd 70010 [20:57:14]save to /storage/0194/doc_00070010 [20:57:14]save last doc name /storage/0194/doc_00070010 to /storage/kkm_last_doc_name [20:57:14]save OK [20:57:14]Clear old archive folders... [20:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:14]tlvbuf is B6DDD460 [20:57:14]SAM_PROTO_ClearQueue [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 09 00 00 [20:57:14]Write to MH i2c: E2 08 00 94 24 80 09 00 00 00 00 00 00 2A [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_ClearQueue done [20:57:14]KKMCreateOFDPacket [20:57:14]OFDProtocolAddRootSTLVToBuf [20:57:14]FM_MakeSignedData [20:57:14]FM_MakeSignedData [20:57:14]SAM_PROTO_SignData [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 01 02 [20:57:14]Write to MH i2c: E2 08 00 95 24 80 0D 01 02 00 00 00 00 32 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=255 [20:57:14]MH_SAM_APDU [20:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 2B C0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 11 01 00 35 04 06 00 2C [20:57:14]Write to MH i2c: E2 02 01 96 24 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 2B C0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 11 01 00 35 04 06 00 2C 00 00 1F [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 96 24 00 90 00 2E [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]wFMCommunicate request_size=10 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 0D 02 02 05 2E F8 BC 53 AD [20:57:15]Write to MH i2c: E2 0D 00 97 24 80 0D 02 02 05 00 2E F8 BC 53 AD 00 00 21 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 97 24 00 90 00 2F [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 0D 03 02 [20:57:15]Write to MH i2c: E2 08 00 98 24 80 0D 03 02 00 00 00 00 37 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 0B 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 0B 00 98 24 00 B6 79 73 0C 71 95 62 1A 90 00 68 [20:57:15]RAPDU: B6 79 73 0C 71 95 62 1A 90 00 [20:57:15]wFMCommunicate OK [20:57:15]SAM_PROTO_SignData done [20:57:15]FM_MakeSignedData done [20:57:15]CreateOFDProtocolMessage [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 11 00 00 [20:57:15]Write to MH i2c: E2 08 00 99 24 80 11 00 00 00 00 00 00 37 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 17 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 17 00 99 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 89 [20:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:15]wFMCommunicate OK [20:57:15]CreateOFDProtocolMessage done [20:57:15]OFDSenderStorePacket 70010 [20:57:15]StoreOFDPacket docnum=70010 [20:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 E8 07 01 56 32 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 2B C0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 11 01 00 35 04 06 00 2C 2E F8 BC 53 AD B6 79 73 0C 71 95 62 1A [20:57:15]CheckFolder [20:57:15]dirname=/storage/ofd_packets [20:57:15]CheckFolder done [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00070010 [20:57:15]NVStorageSaveData ofd_packets/00070010 [20:57:15]File name is /storage/ofd_packets/00070010 [20:57:15]Write 301 bytes [20:57:15]NVStorageSaveData done [20:57:15]OFDSenderStorePacket done [20:57:15]KKMCreateOFDPacket done [20:57:15]NVStorageSaveData kkm_last_timestamp [20:57:15]File name is /storage/kkm_last_timestamp [20:57:15]Write 4 bytes [20:57:15]NVStorageSaveData done [20:57:15]ExternCall_PrintAddStr [20:57:15]wPrintStart [20:57:15]Write to MH i2c: 01 00 00 9A 24 BE [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 9A 24 00 00 00 00 00 FF 0F D3 [20:57:15]RasterBufferAndPrint [20:57:15]line Счет N : (1)2885778 [20:57:15]line ИНН: 02508201610067 [20:57:15]line Контрольно-Кассовый Чек [20:57:15]line ПРОДАЖА [20:57:15]line ТРК (МРК, ГНК) : 13 [20:57:15]line Товар: 2710124500 [20:57:15]line Аи-95-К-5 [20:57:15]line 14.830 * 74.20 [20:57:15]line = 1100.39 [20:57:15]line НДС 12% НСП 1% [20:57:15]line > о реализуемом товаре [20:57:15]line ИТОГО: 1100.39 [20:57:15]line НСП 1% : 9.74 [20:57:15]line НДС 12% : 116.86 [20:57:15]line Наличными: 0.00 [20:57:15]line Безнал.: 1100.39 [20:57:15]line Место: АЗС № 85 "Партнер Нефть" [20:57:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:57:15]line СНО: Общий режим [20:57:15]line Чек 400 21.10.2024 20:57 [20:57:15]line Смена: 194 ФФД: 1.0 [20:57:15]line ЗНМ: 0300000167 [20:57:15]line РНМ: 0000000000156251 [20:57:15]line Версия ККМ: v1.0 [20:57:15]line Платежная система: Mbank [20:57:15]line ФМ: 0000000000963346 [20:57:15]line ФД: 70010 [20:57:15]line ФПД: 48580253209517 [20:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70010&fm=48580253209517&tin=02508201610067®Number=0000000000156251&sum=110039 [20:57:15]OFD Sender: Processing packet 70010 [packets to send 18, broken 17] [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00070010 [20:57:15]OFD Sender: To server: pG, [20:57:15]CommunicateWithHost lk.salyk.kg:30040 [20:57:15]ConnectInit lk.salyk.kg [20:57:15]written 0, free lines is 4095 [20:57:15]Connected sock=10 [20:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 E8 07 01 56 32 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 2B C0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 11 01 00 35 04 06 00 2C 2E F8 BC 53 AD B6 79 73 0C 71 95 62 1A [20:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 F3 47 00 C7 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 39 36 33 33 34 36 10 04 04 00 7A 11 01 00 F4 03 04 00 CE 69 16 67 B6 04 01 00 00 E0 89 AB C3 C4 B1 FD AB [20:57:15]CommunicateWithHost err = 0 [20:57:15]CheckOFDResponse [20:57:15]1017 (14) - 77093643461234 [20:57:15]1041 (16) - 0000000000963346 [20:57:15]1040 (4) - 70010 [20:57:15]1012 (4) - 21.10.2024 14:48 [20:57:15]1206 (1) - 0 [20:57:15]OFD Sender: Remove packet 70010 [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00070010 [20:57:15]NVStorageDeleteData [20:57:16]Write to MH i2c: 01 00 00 C3 24 E7 [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 07 00 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 16 0D 11 [20:57:16]RasterBufferAndPrint [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]written 0, free lines is 3358 [20:57:16]MH_Cut [20:57:16]Write to MH i2c: D1 01 00 CA 24 01 C0 [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 01 00 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 01 00 CA 24 00 BF [20:57:16]Write to MH i2c: 01 00 00 CB 24 EF [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:16]OFD Sender: No OFD packet to send [20:57:16]*** Cut start [20:57:16]*** Partial cut [20:57:16]*** CUTSNS_PIN = 1 [20:57:16]*** CUTSNS_PIN = 0 [20:57:17]*** Brake cut motor [20:57:17]Read from MH i2c: 01 [20:57:17]MH_I2C_Read... [20:57:17]*** Stop cut motor [20:57:17]*** Cut end [20:57:17]Read from MH i2c: 01 07 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [20:57:17]process_action close_receipt done [20:57:17]requested_data is exist [20:57:17]produce_requested_data [20:57:17]requested_item fm.sn is exist - process it [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 11 00 00 [20:57:17]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [20:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:17]wFMCommunicate OK [20:57:17]requested_item fd.num is exist - process it [20:57:17]SAM_PROTO_GetFieldsCounters [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 00 00 [20:57:17]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [20:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetFieldsCounters done [20:57:17]requested_item shift.num is exist - process it [20:57:17]requested_item shift.opened is exist - process it [20:57:17]req_shift_opened [20:57:17]FM_GetShiftState [20:57:17]SAM_PROTO_GetShiftState [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 01 00 [20:57:17]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9B [20:57:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetShiftState done [20:57:17]FM_GetShiftState done [20:57:17]req_shift_opened done [20:57:17]requested_item shift.open_date is exist - process it [20:57:17]req_shift_open_date [20:57:17]req_shift_open_date done [20:57:17]produce_requested_data done [20:57:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70010,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [20:57:17]process_action_free close_receipt [20:57:17]json_value_free [20:57:17]json_value_free done [20:57:17]process_json_proto returns [20:57:17]Send response to host [20:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70010,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [20:57:17]free response buf [20:57:17]execute_script done [20:57:17]execute_script returns [20:57:17]free content buf [20:57:17]Sock 9.Close socket [20:57:17]Sock 9.Thread stoped [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]accept exits with 7 [21:00:46]New connection [21:00:46]New thread 3067170148 created [21:00:46]Thread 3067026788 joined [21:00:46]Waiting for new connection... [21:00:46] Sock 7.Parse request [21:00:46]Sock 7.Check first char [21:00:46]Sock 7.First char is OK [21:00:46]request: POST /json_proto HTTP/1.0 [21:00:46]Method: POST [21:00:46]URL: /json_proto [21:00:46]Method is POST - this is cgi request [21:00:46]url: /json_proto [21:00:46]query_string will be loaded in cgi processing [21:00:46]execute_cgi json_proto POST (null) [21:00:46]execute_cgi path=json_proto method=POST [21:00:46]POST find Content-Length [21:00:46]Host: 172.17.50.3:8080 [21:00:46]Content-Length: 678 [21:00:46]Content-Type: application/json [21:00:46] [21:00:46]POST finish read [21:00:46]Found Content-Length = 678 [21:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [21:00:46]execute_script... [21:00: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)2885779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [21:00:46]POST & json_proto [21:00:46]process_json_proto [21:00:46]json parsed OK: [21:00:46]protocol is kg_v1.0 [21:00:46]action value=close_receipt [21:00:46]process_action close_receipt [21:00:46]cmd_close_receipt [21:00:46]MH_GetDate [21:00:46]Write to MH i2c: F0 00 00 CF 24 E2 [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: F0 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: F0 09 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: F0 09 00 CF 24 00 00 C1 16 67 6B 98 1E 66 B0 [21:00:46]GetLastDocTimeStamp 1729544235 [21:00:46]current date 1729544448 [21:00:46]FM_GetShiftState [21:00:46]SAM_PROTO_GetShiftState [21:00:46]wFMCommunicate request_size=4 [21:00:46]MH_SAM_APDU [21:00:46]CAPDU: 80 13 01 00 [21:00:46]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:46]Read from MH i2c: E2 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: E2 0E 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9D [21:00:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:00:46]wFMCommunicate OK [21:00:46]SAM_PROTO_GetShiftState done [21:00:46]FM_GetShiftState done [21:00:46]opened in 1729469703 [21:00:46]opened+sec_in_day 1729556103 [21:00:46]quantity*price = 40068 [21:00:46]sum+1 = 40069 [21:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 401 21.10.2024 21:00 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70011 ФПД: 169682659986124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70011&fm=169682659986124&tin=02508201610067®Number=0000000000156251&sum=40000 [21:00:47]StoreToDocumentArchive [21:00:47]shift 194 fd 70011 [21:00:47]save to /storage/0194/doc_00070011 [21:00:47]save last doc name /storage/0194/doc_00070011 to /storage/kkm_last_doc_name [21:00:47]save OK [21:00:47]Clear old archive folders... [21:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:47]tlvbuf is B6F8A0A0 [21:00:47]SAM_PROTO_ClearQueue [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 09 00 00 [21:00:47]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]SAM_PROTO_ClearQueue done [21:00:47]KKMCreateOFDPacket [21:00:47]OFDProtocolAddRootSTLVToBuf [21:00:47]FM_MakeSignedData [21:00:47]FM_MakeSignedData [21:00:47]SAM_PROTO_SignData [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 01 02 [21:00:47]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=255 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 91 01 00 00 F4 03 04 00 00 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 11 01 00 35 04 06 00 9A [21:00:47]Write to MH i2c: E2 02 01 DF 24 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 91 01 00 00 F4 03 04 00 00 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 11 01 00 35 04 06 00 9A 00 00 6C [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=10 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 02 02 05 53 52 AC 4A CC [21:00:47]Write to MH i2c: E2 0D 00 E0 24 80 0D 02 02 05 00 53 52 AC 4A CC 00 00 EF [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 03 02 [21:00:47]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 0B 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 0B 00 E1 24 00 3B 41 F4 36 2A 26 53 6E 90 00 38 [21:00:47]RAPDU: 3B 41 F4 36 2A 26 53 6E 90 00 [21:00:47]wFMCommunicate OK [21:00:47]SAM_PROTO_SignData done [21:00:47]FM_MakeSignedData done [21:00:47]CreateOFDProtocolMessage [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 11 00 00 [21:00:47]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 17 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [21:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:00:47]wFMCommunicate OK [21:00:47]CreateOFDProtocolMessage done [21:00:47]OFDSenderStorePacket 70011 [21:00:47]StoreOFDPacket docnum=70011 [21:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 0A 07 01 34 37 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 91 01 00 00 F4 03 04 00 00 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 11 01 00 35 04 06 00 9A 53 52 AC 4A CC 3B 41 F4 36 2A 26 53 6E [21:00:47]CheckFolder [21:00:47]dirname=/storage/ofd_packets [21:00:47]CheckFolder done [21:00:47]ProducePacketName [21:00:47]name=ofd_packets/00070011 [21:00:47]NVStorageSaveData ofd_packets/00070011 [21:00:47]File name is /storage/ofd_packets/00070011 [21:00:47]Write 301 bytes [21:00:47]NVStorageSaveData done [21:00:47]OFDSenderStorePacket done [21:00:47]KKMCreateOFDPacket done [21:00:47]NVStorageSaveData kkm_last_timestamp [21:00:47]File name is /storage/kkm_last_timestamp [21:00:47]Write 4 bytes [21:00:47]NVStorageSaveData done [21:00:47]ExternCall_PrintAddStr [21:00:47]wPrintStart [21:00:47]Write to MH i2c: 01 00 00 E3 24 07 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 07 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [21:00:47]RasterBufferAndPrint [21:00:47]line Счет N : (1)2885779 [21:00:47]line ИНН: 02508201610067 [21:00:47]line Контрольно-Кассовый Чек [21:00:47]line ПРОДАЖА [21:00:47]line ТРК (МРК, ГНК) : 13 [21:00:47]line Товар: 2710124500 [21:00:47]line Аи-95-К-5 [21:00:47]line 5.400 * 74.20 [21:00:47]line = 400.68 [21:00:47]line НДС 12% НСП 1% [21:00:47]line > о реализуемом товаре [21:00:47]line ОКРУГЛЕНИЕ: -0.68 [21:00:47]line ИТОГО: 400.00 [21:00:47]line Внесено: 400.00 [21:00:47]line СДАЧА: 0.00 [21:00:47]line НСП 1% : 3.55 [21:00:47]line НДС 12% : 42.55 [21:00:47]line Наличными: 400.00 [21:00:47]line Безнал.: 0.00 [21:00:47]line Место: АЗС № 85 "Партнер Нефть" [21:00:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:00:47]line СНО: Общий режим [21:00:47]line Чек 401 21.10.2024 21:00 [21:00:47]line Смена: 194 ФФД: 1.0 [21:00:47]line ЗНМ: 0300000167 [21:00:47]line РНМ: 0000000000156251 [21:00:47]line Версия ККМ: v1.0 [21:00:47]line ФМ: 0000000000963346 [21:00:47]line ФД: 70011 [21:00:47]line ФПД: 169682659986124 [21:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210048&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70011&fm=169682659986124&tin=02508201610067®Number=0000000000156251&sum=40000 [21:00:48]OFD Sender: Processing packet 70011 [packets to send 18, broken 17] [21:00:48]ProducePacketName [21:00:48]name=ofd_packets/00070011 [21:00:48]OFD Sender: To server: pG, [21:00:48]CommunicateWithHost lk.salyk.kg:30040 [21:00:48]ConnectInit lk.salyk.kg [21:00:48]written 0, free lines is 4095 [21:00:48]Connected sock=10 [21:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 0A 07 01 34 37 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 91 01 00 00 F4 03 04 00 00 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 11 01 00 35 04 06 00 9A 53 52 AC 4A CC 3B 41 F4 36 2A 26 53 6E [21:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F0 B6 47 00 C2 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 11 01 00 F4 03 04 00 A2 6A 16 67 B6 04 01 00 00 C7 B2 25 78 6F 6B C1 52 [21:00:48]CommunicateWithHost err = 0 [21:00:48]CheckOFDResponse [21:00:48]1017 (14) - 77093643461234 [21:00:48]1041 (16) - 0000000000963346 [21:00:48]1040 (4) - 70011 [21:00:48]1012 (4) - 21.10.2024 14:52 [21:00:48]1206 (1) - 0 [21:00:48]OFD Sender: Remove packet 70011 [21:00:48]ProducePacketName [21:00:48]name=ofd_packets/00070011 [21:00:48]NVStorageDeleteData [21:00:48]Write to MH i2c: 01 00 00 0E 25 33 [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 E6 0C 2C [21:00:48]RasterBufferAndPrint [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]written 0, free lines is 3309 [21:00:48]MH_Cut [21:00:48]Write to MH i2c: D1 01 00 15 25 01 0C [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 01 00 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 01 00 15 25 00 0B [21:00:48]Write to MH i2c: 01 00 00 16 25 3B [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:49]OFD Sender: No OFD packet to send [21:00:49]*** Cut start [21:00:49]*** Partial cut [21:00:49]*** CUTSNS_PIN = 1 [21:00:49]*** CUTSNS_PIN = 0 [21:00:49]*** Brake cut motor [21:00:50]Read from MH i2c: 01 [21:00:50]MH_I2C_Read... [21:00:50]*** Stop cut motor [21:00:50]*** Cut end [21:00:50]Read from MH i2c: 01 07 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [21:00:50]process_action close_receipt done [21:00:50]requested_data is exist [21:00:50]produce_requested_data [21:00:50]requested_item fm.sn is exist - process it [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 11 00 00 [21:00:50]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 17 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [21:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:00:50]wFMCommunicate OK [21:00:50]requested_item fd.num is exist - process it [21:00:50]SAM_PROTO_GetFieldsCounters [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 13 00 00 [21:00:50]Write to MH i2c: E2 08 00 18 25 80 13 00 00 00 00 00 00 B9 [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 62 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 62 00 18 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [21:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:50]wFMCommunicate OK [21:00:50]SAM_PROTO_GetFieldsCounters done [21:00:50]requested_item shift.num is exist - process it [21:00:50]requested_item shift.opened is exist - process it [21:00:50]req_shift_opened [21:00:50]FM_GetShiftState [21:00:50]SAM_PROTO_GetShiftState [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 13 01 00 [21:00:50]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 0E 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E7 [21:00:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:00:50]wFMCommunicate OK [21:00:50]SAM_PROTO_GetShiftState done [21:00:50]FM_GetShiftState done [21:00:50]req_shift_opened done [21:00:50]requested_item shift.open_date is exist - process it [21:00:50]req_shift_open_date [21:00:50]req_shift_open_date done [21:00:50]produce_requested_data done [21:00:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70011,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:00:50]process_action_free close_receipt [21:00:50]json_value_free [21:00:50]json_value_free done [21:00:50]process_json_proto returns [21:00:50]Send response to host [21:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70011,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:00:50]free response buf [21:00:50]execute_script done [21:00:50]execute_script returns [21:00:50]free content buf [21:00:50]Sock 7.Close socket [21:00:50]Sock 7.Thread stoped [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:00]accept exits with 9 [21:03:00]New connection [21:03:00]New thread 3067026788 created [21:03:00]Thread 3067170148 joined [21:03:00]Waiting for new connection... [21:03:00] Sock 9.Parse request [21:03:00]Sock 9.Check first char [21:03:00]Sock 9.First char is OK [21:03:00]request: POST /json_proto HTTP/1.0 [21:03:00]Method: POST [21:03:00]URL: /json_proto [21:03:00]Method is POST - this is cgi request [21:03:00]url: /json_proto [21:03:00]query_string will be loaded in cgi processing [21:03:00]execute_cgi json_proto POST (null) [21:03:00]execute_cgi path=json_proto method=POST [21:03:00]POST find Content-Length [21:03:00]Host: 172.17.50.3:8080 [21:03:00]Content-Length: 767 [21:03:00]Content-Type: application/json [21:03:00] [21:03:00]POST finish read [21:03:00]Found Content-Length = 767 [21:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:00]execute_script... [21:03: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)2885780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:00]POST & json_proto [21:03:00]process_json_proto [21:03:00]json parsed OK: [21:03:00]protocol is kg_v1.0 [21:03:00]action value=close_receipt [21:03:00]process_action close_receipt [21:03:00]cmd_close_receipt [21:03:00]MH_GetDate [21:03:00]Write to MH i2c: F0 00 00 1A 25 2E [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: F0 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: F0 09 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: F0 09 00 1A 25 00 86 C1 16 67 6B 98 1E 66 82 [21:03:00]GetLastDocTimeStamp 1729544448 [21:03:00]current date 1729544582 [21:03:00]FM_GetShiftState [21:03:00]SAM_PROTO_GetShiftState [21:03:00]wFMCommunicate request_size=4 [21:03:00]MH_SAM_APDU [21:03:00]CAPDU: 80 13 01 00 [21:03:00]Write to MH i2c: E2 08 00 1B 25 80 13 01 00 00 00 00 00 BD [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:00]Read from MH i2c: E2 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 0E 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 0E 00 1B 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E9 [21:03:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:03:00]wFMCommunicate OK [21:03:00]SAM_PROTO_GetShiftState done [21:03:00]FM_GetShiftState done [21:03:00]opened in 1729469703 [21:03:00]opened+sec_in_day 1729556103 [21:03:00]quantity*price = 50041 [21:03:00]sum+1 = 50042 [21:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 402 21.10.2024 21:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70012 ФПД: 180661529124695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70012&fm=180661529124695&tin=02508201610067®Number=0000000000156251&sum=50041 [21:03:01]StoreToDocumentArchive [21:03:01]shift 194 fd 70012 [21:03:01]save to /storage/0194/doc_00070012 [21:03:01]save last doc name /storage/0194/doc_00070012 to /storage/kkm_last_doc_name [21:03:01]save OK [21:03:01]Clear old archive folders... [21:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:01]tlvbuf is 011942B0 [21:03:01]SAM_PROTO_ClearQueue [21:03:01]wFMCommunicate request_size=4 [21:03:01]MH_SAM_APDU [21:03:01]CAPDU: 80 09 00 00 [21:03:01]Write to MH i2c: E2 08 00 28 25 80 09 00 00 00 00 00 00 BF [21:03:01]Write i2c OK [21:03:01]MH_I2C_Read... [21:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:01]Read from MH i2c: E2 [21:03:01]MH_I2C_Read... [21:03:01]Read from MH i2c: E2 03 00 [21:03:01]MH_I2C_Read... [21:03:01]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [21:03:01]RAPDU: 90 00 [21:03:01]wFMCommunicate OK [21:03:01]SAM_PROTO_ClearQueue done [21:03:01]KKMCreateOFDPacket [21:03:01]OFDProtocolAddRootSTLVToBuf [21:03:01]FM_MakeSignedData [21:03:01]FM_MakeSignedData [21:03:01]SAM_PROTO_SignData [21:03:01]wFMCommunicate request_size=4 [21:03:01]MH_SAM_APDU [21:03:01]CAPDU: 80 0D 01 02 [21:03:01]Write to MH i2c: E2 08 00 29 25 80 0D 01 02 00 00 00 00 C7 [21:03:01]Write i2c OK [21:03:01]MH_I2C_Read... [21:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:01]Read from MH i2c: E2 [21:03:01]MH_I2C_Read... [21:03:01]Read from MH i2c: E2 03 00 [21:03:01]MH_I2C_Read... [21:03:01]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [21:03:01]RAPDU: 90 00 [21:03:01]wFMCommunicate OK [21:03:01]wFMCommunicate request_size=255 [21:03:01]MH_SAM_APDU [21:03:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 86 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 11 01 00 35 04 06 00 A4 [21:03:01]Write to MH i2c: E2 02 01 2A 25 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 86 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 11 01 00 35 04 06 00 A4 00 00 ED [21:03:01]Write i2c OK [21:03:01]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:02]Read from MH i2c: E2 03 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [21:03:02]RAPDU: 90 00 [21:03:02]wFMCommunicate OK [21:03:02]wFMCommunicate request_size=10 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 0D 02 02 05 4F 8A 44 9F 57 [21:03:02]Write to MH i2c: E2 0D 00 2B 25 80 0D 02 02 05 00 4F 8A 44 9F 57 00 00 E7 [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 03 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [21:03:02]RAPDU: 90 00 [21:03:02]wFMCommunicate OK [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 0D 03 02 [21:03:02]Write to MH i2c: E2 08 00 2C 25 80 0D 03 02 00 00 00 00 CC [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0B 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0B 00 2C 25 00 C8 93 8F F1 57 B1 C9 01 90 00 7A [21:03:02]RAPDU: C8 93 8F F1 57 B1 C9 01 90 00 [21:03:02]wFMCommunicate OK [21:03:02]SAM_PROTO_SignData done [21:03:02]FM_MakeSignedData done [21:03:02]CreateOFDProtocolMessage [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 11 00 00 [21:03:02]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 17 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [21:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:03:02]wFMCommunicate OK [21:03:02]CreateOFDProtocolMessage done [21:03:02]OFDSenderStorePacket 70012 [21:03:02]StoreOFDPacket docnum=70012 [21:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 17 07 01 4E 52 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 86 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 11 01 00 35 04 06 00 A4 4F 8A 44 9F 57 C8 93 8F F1 57 B1 C9 01 [21:03:02]CheckFolder [21:03:02]dirname=/storage/ofd_packets [21:03:02]CheckFolder done [21:03:02]ProducePacketName [21:03:02]name=ofd_packets/00070012 [21:03:02]NVStorageSaveData ofd_packets/00070012 [21:03:02]File name is /storage/ofd_packets/00070012 [21:03:02]Write 301 bytes [21:03:02]NVStorageSaveData done [21:03:02]OFDSenderStorePacket done [21:03:02]KKMCreateOFDPacket done [21:03:02]NVStorageSaveData kkm_last_timestamp [21:03:02]File name is /storage/kkm_last_timestamp [21:03:02]Write 4 bytes [21:03:02]NVStorageSaveData done [21:03:02]ExternCall_PrintAddStr [21:03:02]wPrintStart [21:03:02]Write to MH i2c: 01 00 00 2E 25 53 [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: 01 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: 01 07 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [21:03:02]RasterBufferAndPrint [21:03:02]line Счет N : (1)2885780 [21:03:02]line ИНН: 02508201610067 [21:03:02]line Контрольно-Кассовый Чек [21:03:02]line ПРОДАЖА [21:03:02]line ТРК (МРК, ГНК) : 22 [21:03:02]line Товар: 2710124130 [21:03:02]line Аи-92-К-5 [21:03:02]line 7.480 * 66.90 [21:03:02]line = 500.41 [21:03:02]line НДС 12% НСП 1% [21:03:02]line > о реализуемом товаре [21:03:02]line ИТОГО: 500.41 [21:03:02]line НСП 1% : 4.43 [21:03:02]line НДС 12% : 53.14 [21:03:02]line Наличными: 0.00 [21:03:02]line Безнал.: 500.41 [21:03:02]line Место: АЗС № 85 "Партнер Нефть" [21:03:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:03:02]line СНО: Общий режим [21:03:02]line Чек 402 21.10.2024 21:03 [21:03:02]line Смена: 194 ФФД: 1.0 [21:03:02]line ЗНМ: 0300000167 [21:03:02]line РНМ: 0000000000156251 [21:03:02]line Версия ККМ: v1.0 [21:03:02]line Платежная система: Mbank [21:03:02]line ФМ: 0000000000963346 [21:03:02]line ФД: 70012 [21:03:02]line ФПД: 180661529124695 [21:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70012&fm=180661529124695&tin=02508201610067®Number=0000000000156251&sum=50041 [21:03:02]OFD Sender: Processing packet 70012 [packets to send 18, broken 17] [21:03:02]ProducePacketName [21:03:02]name=ofd_packets/00070012 [21:03:02]OFD Sender: To server: pG, [21:03:02]CommunicateWithHost lk.salyk.kg:30040 [21:03:02]ConnectInit lk.salyk.kg [21:03:02]written 0, free lines is 4095 [21:03:02]Connected sock=10 [21:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 17 07 01 4E 52 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 86 C1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 11 01 00 35 04 06 00 A4 4F 8A 44 9F 57 C8 93 8F F1 57 B1 C9 01 [21:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 62 90 47 00 3D FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 11 01 00 F4 03 04 00 29 6B 16 67 B6 04 01 00 00 E7 BA 00 BB 78 E3 2D 9E [21:03:03]CommunicateWithHost err = 0 [21:03:03]CheckOFDResponse [21:03:03]1017 (14) - 77093643461234 [21:03:03]1041 (16) - 0000000000963346 [21:03:03]1040 (4) - 70012 [21:03:03]1012 (4) - 21.10.2024 14:54 [21:03:03]1206 (1) - 0 [21:03:03]OFD Sender: Remove packet 70012 [21:03:03]ProducePacketName [21:03:03]name=ofd_packets/00070012 [21:03:03]NVStorageDeleteData [21:03:03]Write to MH i2c: 01 00 00 57 25 7C [21:03:03]Write i2c OK [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 07 00 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 07 00 57 25 00 00 00 00 00 0B 0D 9B [21:03:03]RasterBufferAndPrint [21:03:03]line [21:03:03]line [21:03:03]line [21:03:03]line [21:03:03]line [21:03:03]written 0, free lines is 3345 [21:03:03]MH_Cut [21:03:03]Write to MH i2c: D1 01 00 5E 25 01 55 [21:03:03]Write i2c OK [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: D1 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: D1 01 00 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: D1 01 00 5E 25 00 54 [21:03:03]Write to MH i2c: 01 00 00 5F 25 84 [21:03:03]Write i2c OK [21:03:03]MH_I2C_Read... [21:03:03]OFD Sender: No OFD packet to send [21:03:03]*** Cut start [21:03:03]*** Partial cut [21:03:03]*** CUTSNS_PIN = 1 [21:03:03]*** CUTSNS_PIN = 0 [21:03:04]*** Brake cut motor [21:03:04]Read from MH i2c: 01 [21:03:04]MH_I2C_Read... [21:03:04]*** Stop cut motor [21:03:04]*** Cut end [21:03:04]Read from MH i2c: 01 07 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: 01 07 00 5F 25 00 00 00 00 00 FF 0F 99 [21:03:04]process_action close_receipt done [21:03:04]requested_data is exist [21:03:04]produce_requested_data [21:03:04]requested_item fm.sn is exist - process it [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 11 00 00 [21:03:04]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 17 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [21:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:03:04]wFMCommunicate OK [21:03:04]requested_item fd.num is exist - process it [21:03:04]SAM_PROTO_GetFieldsCounters [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 13 00 00 [21:03:04]Write to MH i2c: E2 08 00 61 25 80 13 00 00 00 00 00 00 02 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 62 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 62 00 61 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [21:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:04]wFMCommunicate OK [21:03:04]SAM_PROTO_GetFieldsCounters done [21:03:04]requested_item shift.num is exist - process it [21:03:04]requested_item shift.opened is exist - process it [21:03:04]req_shift_opened [21:03:04]FM_GetShiftState [21:03:04]SAM_PROTO_GetShiftState [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 13 01 00 [21:03:04]Write to MH i2c: E2 08 00 62 25 80 13 01 00 00 00 00 00 04 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0E 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0E 00 62 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 30 [21:03:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:03:04]wFMCommunicate OK [21:03:04]SAM_PROTO_GetShiftState done [21:03:04]FM_GetShiftState done [21:03:04]req_shift_opened done [21:03:04]requested_item shift.open_date is exist - process it [21:03:04]req_shift_open_date [21:03:04]req_shift_open_date done [21:03:04]produce_requested_data done [21:03:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70012,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:03:04]process_action_free close_receipt [21:03:04]json_value_free [21:03:04]json_value_free done [21:03:04]process_json_proto returns [21:03:04]Send response to host [21:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70012,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:03:04]free response buf [21:03:04]execute_script done [21:03:04]execute_script returns [21:03:04]free content buf [21:03:04]Sock 9.Close socket [21:03:04]Sock 9.Thread stoped [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:41]accept exits with 7 [21:07:41]New connection [21:07:41]New thread 3067170148 created [21:07:41]Thread 3067026788 joined [21:07:41]Waiting for new connection... [21:07:41] Sock 7.Parse request [21:07:41]Sock 7.Check first char [21:07:41]Sock 7.First char is OK [21:07:41]request: POST /json_proto HTTP/1.0 [21:07:41]Method: POST [21:07:41]URL: /json_proto [21:07:41]Method is POST - this is cgi request [21:07:41]url: /json_proto [21:07:41]query_string will be loaded in cgi processing [21:07:41]execute_cgi json_proto POST (null) [21:07:41]execute_cgi path=json_proto method=POST [21:07:41]POST find Content-Length [21:07:41]Host: 172.17.50.3:8080 [21:07:41]Content-Length: 770 [21:07:41]Content-Type: application/json [21:07:41] [21:07:41]POST finish read [21:07:41]Found Content-Length = 770 [21:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:41]execute_script... [21:07: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)2885782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:41]POST & json_proto [21:07:41]process_json_proto [21:07:41]json parsed OK: [21:07:41]protocol is kg_v1.0 [21:07:41]action value=close_receipt [21:07:41]process_action close_receipt [21:07:41]cmd_close_receipt [21:07:41]MH_GetDate [21:07:41]Write to MH i2c: F0 00 00 63 25 77 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: F0 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: F0 09 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: F0 09 00 63 25 00 9F C2 16 67 6B 98 1E 66 E5 [21:07:41]GetLastDocTimeStamp 1729544582 [21:07:41]current date 1729544863 [21:07:41]FM_GetShiftState [21:07:41]SAM_PROTO_GetShiftState [21:07:41]wFMCommunicate request_size=4 [21:07:41]MH_SAM_APDU [21:07:41]CAPDU: 80 13 01 00 [21:07:41]Write to MH i2c: E2 08 00 64 25 80 13 01 00 00 00 00 00 06 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:41]Read from MH i2c: E2 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 0E 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 0E 00 64 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 32 [21:07:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:07:41]wFMCommunicate OK [21:07:41]SAM_PROTO_GetShiftState done [21:07:41]FM_GetShiftState done [21:07:41]opened in 1729469703 [21:07:41]opened+sec_in_day 1729556103 [21:07:41]quantity*price = 300064 [21:07:41]sum+1 = 300066 [21:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 403 21.10.2024 21:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70013 ФПД: 21642409748668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70013&fm=21642409748668&tin=02508201610067®Number=0000000000156251&sum=300065 [21:07:43]StoreToDocumentArchive [21:07:43]shift 194 fd 70013 [21:07:43]save to /storage/0194/doc_00070013 [21:07:43]save last doc name /storage/0194/doc_00070013 to /storage/kkm_last_doc_name [21:07:43]save OK [21:07:43]Clear old archive folders... [21:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:43]tlvbuf is B6F8A390 [21:07:43]SAM_PROTO_ClearQueue [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 09 00 00 [21:07:43]Write to MH i2c: E2 08 00 71 25 80 09 00 00 00 00 00 00 08 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 71 25 00 90 00 0A [21:07:43]RAPDU: 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_ClearQueue done [21:07:43]KKMCreateOFDPacket [21:07:43]OFDProtocolAddRootSTLVToBuf [21:07:43]FM_MakeSignedData [21:07:43]FM_MakeSignedData [21:07:43]SAM_PROTO_SignData [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 0D 01 02 [21:07:43]Write to MH i2c: E2 08 00 72 25 80 0D 01 02 00 00 00 00 10 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 72 25 00 90 00 0B [21:07:43]RAPDU: 90 00 [21:07:43]wFMCommunicate OK [21:07:43]wFMCommunicate request_size=255 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 9F C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 11 01 00 35 04 06 00 13 [21:07:43]Write to MH i2c: E2 02 01 73 25 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 9F C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 11 01 00 35 04 06 00 13 00 00 24 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [21:07:43]RAPDU: 90 00 [21:07:43]wFMCommunicate OK [21:07:43]wFMCommunicate request_size=10 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 0D 02 02 05 AF 04 25 28 BC [21:07:43]Write to MH i2c: E2 0D 00 74 25 80 0D 02 02 05 00 AF 04 25 28 BC 00 00 D9 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [21:07:43]RAPDU: 90 00 [21:07:43]wFMCommunicate OK [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 0D 03 02 [21:07:43]Write to MH i2c: E2 08 00 75 25 80 0D 03 02 00 00 00 00 15 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0B 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0B 00 75 25 00 64 94 8E DE 01 12 C8 6E 90 00 C3 [21:07:43]RAPDU: 64 94 8E DE 01 12 C8 6E 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_SignData done [21:07:43]FM_MakeSignedData done [21:07:43]CreateOFDProtocolMessage [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 11 00 00 [21:07:43]Write to MH i2c: E2 08 00 76 25 80 11 00 00 00 00 00 00 15 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 17 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 17 00 76 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [21:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:43]wFMCommunicate OK [21:07:43]CreateOFDProtocolMessage done [21:07:43]OFDSenderStorePacket 70013 [21:07:43]StoreOFDPacket docnum=70013 [21:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0A FE 07 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 9F C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 11 01 00 35 04 06 00 13 AF 04 25 28 BC 64 94 8E DE 01 12 C8 6E [21:07:43]CheckFolder [21:07:43]dirname=/storage/ofd_packets [21:07:43]CheckFolder done [21:07:43]ProducePacketName [21:07:43]name=ofd_packets/00070013 [21:07:43]NVStorageSaveData ofd_packets/00070013 [21:07:43]File name is /storage/ofd_packets/00070013 [21:07:43]Write 301 bytes [21:07:43]NVStorageSaveData done [21:07:43]OFDSenderStorePacket done [21:07:43]KKMCreateOFDPacket done [21:07:43]NVStorageSaveData kkm_last_timestamp [21:07:43]File name is /storage/kkm_last_timestamp [21:07:43]Write 4 bytes [21:07:43]NVStorageSaveData done [21:07:43]ExternCall_PrintAddStr [21:07:43]wPrintStart [21:07:43]Write to MH i2c: 01 00 00 77 25 9C [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 07 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 07 00 77 25 00 00 00 00 00 FF 0F B1 [21:07:43]RasterBufferAndPrint [21:07:43]line Счет N : (1)2885782 [21:07:43]line ИНН: 02508201610067 [21:07:43]line Контрольно-Кассовый Чек [21:07:43]line ПРОДАЖА [21:07:43]line ТРК (МРК, ГНК) : 23 [21:07:43]line Товар: 2710124500 [21:07:43]line Аи-95-К-5 [21:07:43]line 40.440 * 74.20 [21:07:43]line = 3000.65 [21:07:43]line НДС 12% НСП 1% [21:07:43]line > о реализуемом товаре [21:07:43]line ИТОГО: 3000.65 [21:07:43]line НСП 1% : 26.55 [21:07:43]line НДС 12% : 318.65 [21:07:43]line Наличными: 0.00 [21:07:43]line Безнал.: 3000.65 [21:07:43]line Место: АЗС № 85 "Партнер Нефть" [21:07:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:07:43]line СНО: Общий режим [21:07:43]line Чек 403 21.10.2024 21:07 [21:07:43]line Смена: 194 ФФД: 1.0 [21:07:43]line ЗНМ: 0300000167 [21:07:43]line РНМ: 0000000000156251 [21:07:43]line Версия ККМ: v1.0 [21:07:43]line Платежная система: Mbank [21:07:43]line ФМ: 0000000000963346 [21:07:43]line ФД: 70013 [21:07:43]line ФПД: 21642409748668 [21:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210743&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70013&fm=21642409748668&tin=02508201610067®Number=0000000000156251&sum=300065 [21:07:43]OFD Sender: Processing packet 70013 [packets to send 18, broken 17] [21:07:43]ProducePacketName [21:07:43]name=ofd_packets/00070013 [21:07:43]OFD Sender: To server: pG, [21:07:43]CommunicateWithHost lk.salyk.kg:30040 [21:07:43]ConnectInit lk.salyk.kg [21:07:43]written 0, free lines is 4095 [21:07:43]Connected sock=10 [21:07:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0A FE 07 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 9F C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 11 01 00 35 04 06 00 13 AF 04 25 28 BC 64 94 8E DE 01 12 C8 6E [21:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D7 1F 47 00 0C 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 39 36 33 33 34 36 10 04 04 00 7D 11 01 00 F4 03 04 00 42 6C 16 67 B6 04 01 00 00 F9 2E 2E F0 41 A2 67 04 [21:07:44]CommunicateWithHost err = 0 [21:07:44]CheckOFDResponse [21:07:44]1017 (14) - 77093643461234 [21:07:44]1041 (16) - 0000000000963346 [21:07:44]1040 (4) - 70013 [21:07:44]1012 (4) - 21.10.2024 14:59 [21:07:44]1206 (1) - 0 [21:07:44]OFD Sender: Remove packet 70013 [21:07:44]ProducePacketName [21:07:44]name=ofd_packets/00070013 [21:07:44]NVStorageDeleteData [21:07:44]Write to MH i2c: 01 00 00 A0 25 C5 [21:07:44]Write i2c OK [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: 01 [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: 01 07 00 [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: 01 07 00 A0 25 00 00 00 00 00 11 0D EA [21:07:44]RasterBufferAndPrint [21:07:44]line [21:07:44]line [21:07:44]line [21:07:44]line [21:07:44]line [21:07:44]written 0, free lines is 3351 [21:07:44]MH_Cut [21:07:44]Write to MH i2c: D1 01 00 A7 25 01 9E [21:07:44]Write i2c OK [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: D1 [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: D1 01 00 [21:07:44]MH_I2C_Read... [21:07:44]Read from MH i2c: D1 01 00 A7 25 00 9D [21:07:44]Write to MH i2c: 01 00 00 A8 25 CD [21:07:44]Write i2c OK [21:07:44]MH_I2C_Read... [21:07:44]OFD Sender: No OFD packet to send [21:07:45]*** Cut start [21:07:45]*** Partial cut [21:07:45]*** CUTSNS_PIN = 1 [21:07:45]*** CUTSNS_PIN = 0 [21:07:45]*** Brake cut motor [21:07:45]Read from MH i2c: 01 [21:07:45]MH_I2C_Read... [21:07:45]*** Stop cut motor [21:07:45]*** Cut end [21:07:45]Read from MH i2c: 01 07 00 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: 01 07 00 A8 25 00 00 00 00 00 FF 0F E2 [21:07:45]process_action close_receipt done [21:07:45]requested_data is exist [21:07:45]produce_requested_data [21:07:45]requested_item fm.sn is exist - process it [21:07:45]wFMCommunicate request_size=4 [21:07:45]MH_SAM_APDU [21:07:45]CAPDU: 80 11 00 00 [21:07:45]Write to MH i2c: E2 08 00 A9 25 80 11 00 00 00 00 00 00 48 [21:07:45]Write i2c OK [21:07:45]MH_I2C_Read... [21:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:45]Read from MH i2c: E2 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 17 00 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 17 00 A9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [21:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:45]wFMCommunicate OK [21:07:45]requested_item fd.num is exist - process it [21:07:45]SAM_PROTO_GetFieldsCounters [21:07:45]wFMCommunicate request_size=4 [21:07:45]MH_SAM_APDU [21:07:45]CAPDU: 80 13 00 00 [21:07:45]Write to MH i2c: E2 08 00 AA 25 80 13 00 00 00 00 00 00 4B [21:07:45]Write i2c OK [21:07:45]MH_I2C_Read... [21:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:45]Read from MH i2c: E2 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 62 00 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 62 00 AA 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [21:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:45]wFMCommunicate OK [21:07:45]SAM_PROTO_GetFieldsCounters done [21:07:45]requested_item shift.num is exist - process it [21:07:45]requested_item shift.opened is exist - process it [21:07:45]req_shift_opened [21:07:45]FM_GetShiftState [21:07:45]SAM_PROTO_GetShiftState [21:07:45]wFMCommunicate request_size=4 [21:07:45]MH_SAM_APDU [21:07:45]CAPDU: 80 13 01 00 [21:07:45]Write to MH i2c: E2 08 00 AB 25 80 13 01 00 00 00 00 00 4D [21:07:45]Write i2c OK [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 [21:07:45]MH_I2C_Read... [21:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:45]Read from MH i2c: E2 0E 00 [21:07:45]MH_I2C_Read... [21:07:45]Read from MH i2c: E2 0E 00 AB 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 79 [21:07:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:07:45]wFMCommunicate OK [21:07:45]SAM_PROTO_GetShiftState done [21:07:45]FM_GetShiftState done [21:07:45]req_shift_opened done [21:07:45]requested_item shift.open_date is exist - process it [21:07:45]req_shift_open_date [21:07:45]req_shift_open_date done [21:07:45]produce_requested_data done [21:07:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70013,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:07:45]process_action_free close_receipt [21:07:45]json_value_free [21:07:45]json_value_free done [21:07:45]process_json_proto returns [21:07:45]Send response to host [21:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70013,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:07:45]free response buf [21:07:45]execute_script done [21:07:45]execute_script returns [21:07:45]free content buf [21:07:45]Sock 7.Close socket [21:07:45]Sock 7.Thread stoped [21:07:46]accept exits with 9 [21:07:46]New connection [21:07:46]New thread 3067026788 created [21:07:46]Thread 3067170148 joined [21:07:46]Waiting for new connection... [21:07:46] Sock 9.Parse request [21:07:46]Sock 9.Check first char [21:07:46]Sock 9.First char is OK [21:07:46]request: POST /json_proto HTTP/1.0 [21:07:46]Method: POST [21:07:46]URL: /json_proto [21:07:46]Method is POST - this is cgi request [21:07:46]url: /json_proto [21:07:46]query_string will be loaded in cgi processing [21:07:46]execute_cgi json_proto POST (null) [21:07:46]execute_cgi path=json_proto method=POST [21:07:46]POST find Content-Length [21:07:46]Host: 172.17.50.3:8080 [21:07:46]Content-Length: 978 [21:07:46]Content-Type: application/json [21:07:46] [21:07:46]POST finish read [21:07:46]Found Content-Length = 978 [21:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:46]execute_script... [21:07: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)2885781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:46]POST & json_proto [21:07:46]process_json_proto [21:07:46]json parsed OK: [21:07:46]protocol is kg_v1.0 [21:07:46]action value=close_receipt [21:07:46]process_action close_receipt [21:07:46]cmd_close_receipt [21:07:46]MH_GetDate [21:07:46]Write to MH i2c: F0 00 00 AC 25 C0 [21:07:46]Write i2c OK [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 09 00 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 09 00 AC 25 00 A4 C2 16 67 6B 98 1E 66 33 [21:07:46]GetLastDocTimeStamp 1729544863 [21:07:46]current date 1729544868 [21:07:46]FM_GetShiftState [21:07:46]SAM_PROTO_GetShiftState [21:07:46]wFMCommunicate request_size=4 [21:07:46]MH_SAM_APDU [21:07:46]CAPDU: 80 13 01 00 [21:07:46]Write to MH i2c: E2 08 00 AD 25 80 13 01 00 00 00 00 00 4F [21:07:46]Write i2c OK [21:07:46]MH_I2C_Read... [21:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:46]Read from MH i2c: E2 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: E2 0E 00 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: E2 0E 00 AD 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7B [21:07:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:07:46]wFMCommunicate OK [21:07:46]SAM_PROTO_GetShiftState done [21:07:46]FM_GetShiftState done [21:07:46]opened in 1729469703 [21:07:46]opened+sec_in_day 1729556103 [21:07:46]quantity*price = 450072 [21:07:46]sum+1 = 450073 [21:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 5000.00 СДАЧА: 500.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 404 21.10.2024 21:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 59.85 сом ФМ: 0000000000963346 ФД: 70014 ФПД: 196675357295689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70014&fm=196675357295689&tin=02508201610067®Number=0000000000156251&sum=450000 [21:07:47]StoreToDocumentArchive [21:07:47]shift 194 fd 70014 [21:07:47]save to /storage/0194/doc_00070014 [21:07:47]save last doc name /storage/0194/doc_00070014 to /storage/kkm_last_doc_name [21:07:47]save OK [21:07:47]Clear old archive folders... [21:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:07:47]tlvbuf is 011BCAF0 [21:07:47]SAM_PROTO_ClearQueue [21:07:47]wFMCommunicate request_size=4 [21:07:47]MH_SAM_APDU [21:07:47]CAPDU: 80 09 00 00 [21:07:47]Write to MH i2c: E2 08 00 BA 25 80 09 00 00 00 00 00 00 51 [21:07:47]Write i2c OK [21:07:47]MH_I2C_Read... [21:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:47]Read from MH i2c: E2 [21:07:47]MH_I2C_Read... [21:07:47]Read from MH i2c: E2 03 00 [21:07:47]MH_I2C_Read... [21:07:47]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [21:07:47]RAPDU: 90 00 [21:07:47]wFMCommunicate OK [21:07:47]SAM_PROTO_ClearQueue done [21:07:47]KKMCreateOFDPacket [21:07:47]OFDProtocolAddRootSTLVToBuf [21:07:47]FM_MakeSignedData [21:07:47]FM_MakeSignedData [21:07:47]SAM_PROTO_SignData [21:07:47]wFMCommunicate request_size=4 [21:07:47]MH_SAM_APDU [21:07:47]CAPDU: 80 0D 01 02 [21:07:47]Write to MH i2c: E2 08 00 BB 25 80 0D 01 02 00 00 00 00 59 [21:07:47]Write i2c OK [21:07:47]MH_I2C_Read... [21:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:47]Read from MH i2c: E2 [21:07:47]MH_I2C_Read... [21:07:47]Read from MH i2c: E2 03 00 [21:07:47]MH_I2C_Read... [21:07:47]Read from MH i2c: E2 03 00 BB 25 00 90 00 54 [21:07:47]RAPDU: 90 00 [21:07:47]wFMCommunicate OK [21:07:47]wFMCommunicate request_size=255 [21:07:47]MH_SAM_APDU [21:07: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 A4 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 11 01 00 35 04 06 00 B2 E0 0C CE [21:07:47]Write to MH i2c: E2 02 01 BC 25 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 A4 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 11 01 00 35 04 06 00 B2 E0 0C CE 00 00 83 [21:07:47]Write i2c OK [21:07:47]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 BC 25 00 90 00 55 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]wFMCommunicate request_size=7 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 02 02 02 C4 49 [21:07:48]Write to MH i2c: E2 0A 00 BD 25 80 0D 02 02 02 00 C4 49 00 00 6D [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 BD 25 00 90 00 56 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 03 02 [21:07:48]Write to MH i2c: E2 08 00 BE 25 80 0D 03 02 00 00 00 00 5E [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 0B 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 0B 00 BE 25 00 E7 7E D1 52 CB 70 52 B1 90 00 25 [21:07:48]RAPDU: E7 7E D1 52 CB 70 52 B1 90 00 [21:07:48]wFMCommunicate OK [21:07:48]SAM_PROTO_SignData done [21:07:48]FM_MakeSignedData done [21:07:48]CreateOFDProtocolMessage [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 11 00 00 [21:07:48]Write to MH i2c: E2 08 00 BF 25 80 11 00 00 00 00 00 00 5E [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 17 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 17 00 BF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [21:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:48]wFMCommunicate OK [21:07:48]CreateOFDProtocolMessage done [21:07:48]OFDSenderStorePacket 70014 [21:07:48]StoreOFDPacket docnum=70014 [21:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 07 F6 04 01 E8 74 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 A4 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 11 01 00 35 04 06 00 B2 E0 0C CE C4 49 E7 7E D1 52 CB 70 52 B1 [21:07:48]CheckFolder [21:07:48]dirname=/storage/ofd_packets [21:07:48]CheckFolder done [21:07:48]ProducePacketName [21:07:48]name=ofd_packets/00070014 [21:07:48]NVStorageSaveData ofd_packets/00070014 [21:07:48]File name is /storage/ofd_packets/00070014 [21:07:48]Write 298 bytes [21:07:48]NVStorageSaveData done [21:07:48]OFDSenderStorePacket done [21:07:48]KKMCreateOFDPacket done [21:07:48]NVStorageSaveData kkm_last_timestamp [21:07:48]File name is /storage/kkm_last_timestamp [21:07:48]Write 4 bytes [21:07:48]NVStorageSaveData done [21:07:48]ExternCall_PrintAddStr [21:07:48]wPrintStart [21:07:48]Write to MH i2c: 01 00 00 C0 25 E5 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 C0 25 00 00 00 00 00 FF 0F FA [21:07:48]RasterBufferAndPrint [21:07:48]line Счет N : (1)2885781 [21:07:48]line ИНН: 02508201610067 [21:07:48]line Контрольно-Кассовый Чек [21:07:48]line ПРОДАЖА [21:07:48]line ТРК (МРК, ГНК) : 51 [21:07:48]line Товар: 2710194210 [21:07:48]line ДТ-К-5 [21:07:48]line 59.850 * 75.20 [21:07:48]line = 4500.72 [21:07:48]line НДС 12% НСП 1% [21:07:48]line > о реализуемом товаре [21:07:48]line ОКРУГЛЕНИЕ: -0.72 [21:07:48]line ИТОГО: 4500.00 [21:07:48]line Внесено: 5000.00 [21:07:48]line СДАЧА: 500.00 [21:07:48]line НСП 1% : 39.83 [21:07:48]line НДС 12% : 477.95 [21:07:48]line Наличными: 4500.00 [21:07:48]line Безнал.: 0.00 [21:07:48]line Место: АЗС № 85 "Партнер Нефть" [21:07:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:07:48]line СНО: Общий режим [21:07:48]line Чек 404 21.10.2024 21:07 [21:07:48]line Смена: 194 ФФД: 1.0 [21:07:48]line ЗНМ: 0300000167 [21:07:48]line РНМ: 0000000000156251 [21:07:48]line Версия ККМ: v1.0 [21:07:48]line [21:07:48]line Дисконтная программа [21:07:48]line ДТ [21:07:48]line номер 85 [21:07:48]line сэкономлено 59.85 сом [21:07:48]line ФМ: 0000000000963346 [21:07:48]line ФД: 70014 [21:07:48]line ФПД: 196675357295689 [21:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210748&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70014&fm=196675357295689&tin=02508201610067®Number=0000000000156251&sum=450000 [21:07:48]OFD Sender: Processing packet 70014 [packets to send 18, broken 17] [21:07:48]ProducePacketName [21:07:48]name=ofd_packets/00070014 [21:07:48]OFD Sender: To server: pG, [21:07:48]CommunicateWithHost lk.salyk.kg:30040 [21:07:48]ConnectInit lk.salyk.kg [21:07:48]written 0, free lines is 4095 [21:07:48]Connected sock=10 [21:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 07 F6 04 01 E8 74 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 A4 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 11 01 00 35 04 06 00 B2 E0 0C CE C4 49 E7 7E D1 52 CB 70 52 B1 [21:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AE 5C 47 00 19 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 11 01 00 F4 03 04 00 47 6C 16 67 B6 04 01 00 00 FE C4 ED 8C 9A 95 C7 B3 [21:07:49]CommunicateWithHost err = 0 [21:07:49]CheckOFDResponse [21:07:49]1017 (14) - 77093643461234 [21:07:49]1041 (16) - 0000000000963346 [21:07:49]1040 (4) - 70014 [21:07:49]1012 (4) - 21.10.2024 14:59 [21:07:49]1206 (1) - 0 [21:07:49]OFD Sender: Remove packet 70014 [21:07:49]ProducePacketName [21:07:49]name=ofd_packets/00070014 [21:07:49]NVStorageDeleteData [21:07:49]Write to MH i2c: 01 00 00 F0 25 15 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 07 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 07 00 F0 25 00 00 00 00 00 98 0C C0 [21:07:49]RasterBufferAndPrint [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]written 0, free lines is 3237 [21:07:49]MH_Cut [21:07:49]Write to MH i2c: D1 01 00 F7 25 01 EE [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 01 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 01 00 F7 25 00 ED [21:07:49]Write to MH i2c: 01 00 00 F8 25 1D [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]OFD Sender: No OFD packet to send [21:07:49]*** Cut start [21:07:49]*** Partial cut [21:07:49]*** CUTSNS_PIN = 1 [21:07:50]*** CUTSNS_PIN = 0 [21:07:50]*** Brake cut motor [21:07:50]Read from MH i2c: 01 [21:07:50]MH_I2C_Read... [21:07:50]*** Stop cut motor [21:07:50]*** Cut end [21:07:50]Read from MH i2c: 01 07 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 FF 0F 32 [21:07:50]process_action close_receipt done [21:07:50]requested_data is exist [21:07:50]produce_requested_data [21:07:50]requested_item fm.sn is exist - process it [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 11 00 00 [21:07:50]Write to MH i2c: E2 08 00 F9 25 80 11 00 00 00 00 00 00 98 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 17 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 17 00 F9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [21:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:07:50]wFMCommunicate OK [21:07:50]requested_item fd.num is exist - process it [21:07:50]SAM_PROTO_GetFieldsCounters [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 13 00 00 [21:07:50]Write to MH i2c: E2 08 00 FA 25 80 13 00 00 00 00 00 00 9B [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 62 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 62 00 FA 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:50]wFMCommunicate OK [21:07:50]SAM_PROTO_GetFieldsCounters done [21:07:50]requested_item shift.num is exist - process it [21:07:50]requested_item shift.opened is exist - process it [21:07:50]req_shift_opened [21:07:50]FM_GetShiftState [21:07:50]SAM_PROTO_GetShiftState [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 13 01 00 [21:07:50]Write to MH i2c: E2 08 00 FB 25 80 13 01 00 00 00 00 00 9D [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 0E 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 0E 00 FB 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C9 [21:07:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:07:50]wFMCommunicate OK [21:07:50]SAM_PROTO_GetShiftState done [21:07:50]FM_GetShiftState done [21:07:50]req_shift_opened done [21:07:50]requested_item shift.open_date is exist - process it [21:07:50]req_shift_open_date [21:07:50]req_shift_open_date done [21:07:50]produce_requested_data done [21:07:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70014,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:07:50]process_action_free close_receipt [21:07:50]json_value_free [21:07:50]json_value_free done [21:07:50]process_json_proto returns [21:07:50]Send response to host [21:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70014,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:07:50]free response buf [21:07:50]execute_script done [21:07:50]execute_script returns [21:07:50]free content buf [21:07:50]Sock 9.Close socket [21:07:50]Sock 9.Thread stoped [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:32]accept exits with 7 [21:08:32]New connection [21:08:32]New thread 3067170148 created [21:08:32]Thread 3067026788 joined [21:08:32]Waiting for new connection... [21:08:32] Sock 7.Parse request [21:08:32]Sock 7.Check first char [21:08:32]Sock 7.First char is OK [21:08:32]request: POST /json_proto HTTP/1.0 [21:08:32]Method: POST [21:08:32]URL: /json_proto [21:08:32]Method is POST - this is cgi request [21:08:32]url: /json_proto [21:08:32]query_string will be loaded in cgi processing [21:08:32]execute_cgi json_proto POST (null) [21:08:32]execute_cgi path=json_proto method=POST [21:08:32]POST find Content-Length [21:08:32]Host: 172.17.50.3:8080 [21:08:32]Content-Length: 689 [21:08:32]Content-Type: application/json [21:08:32] [21:08:32]POST finish read [21:08:32]Found Content-Length = 689 [21:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:08:32]execute_script... [21:08: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)2885783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:08:32]POST & json_proto [21:08:32]process_json_proto [21:08:32]json parsed OK: [21:08:32]protocol is kg_v1.0 [21:08:32]action value=close_receipt [21:08:32]process_action close_receipt [21:08:32]cmd_close_receipt [21:08:32]MH_GetDate [21:08:32]Write to MH i2c: F0 00 00 FC 25 10 [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 09 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: F0 09 00 FC 25 00 D1 C2 16 67 6B 98 1E 66 B0 [21:08:32]GetLastDocTimeStamp 1729544868 [21:08:32]current date 1729544913 [21:08:32]FM_GetShiftState [21:08:32]SAM_PROTO_GetShiftState [21:08:32]wFMCommunicate request_size=4 [21:08:32]MH_SAM_APDU [21:08:32]CAPDU: 80 13 01 00 [21:08:32]Write to MH i2c: E2 08 00 FD 25 80 13 01 00 00 00 00 00 9F [21:08:32]Write i2c OK [21:08:32]MH_I2C_Read... [21:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:32]Read from MH i2c: E2 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: E2 0E 00 [21:08:32]MH_I2C_Read... [21:08:32]Read from MH i2c: E2 0E 00 FD 25 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CB [21:08:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:08:32]wFMCommunicate OK [21:08:32]SAM_PROTO_GetShiftState done [21:08:32]FM_GetShiftState done [21:08:32]opened in 1729469703 [21:08:32]opened+sec_in_day 1729556103 [21:08:32]quantity*price = 100051 [21:08:32]sum+1 = 100052 [21:08: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 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 405 21.10.2024 21:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70015 ФПД: 270993213468800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70015&fm=270993213468800&tin=02508201610067®Number=0000000000156251&sum=100000 [21:08:33]StoreToDocumentArchive [21:08:33]shift 194 fd 70015 [21:08:33]save to /storage/0194/doc_00070015 [21:08:33]save last doc name /storage/0194/doc_00070015 to /storage/kkm_last_doc_name [21:08:33]save OK [21:08:33]Clear old archive folders... [21:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:08:33]tlvbuf is 0111FE70 [21:08:33]SAM_PROTO_ClearQueue [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 09 00 00 [21:08:33]Write to MH i2c: E2 08 00 0A 26 80 09 00 00 00 00 00 00 A2 [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]SAM_PROTO_ClearQueue done [21:08:33]KKMCreateOFDPacket [21:08:33]OFDProtocolAddRootSTLVToBuf [21:08:33]FM_MakeSignedData [21:08:33]FM_MakeSignedData [21:08:33]SAM_PROTO_SignData [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 0D 01 02 [21:08:33]Write to MH i2c: E2 08 00 0B 26 80 0D 01 02 00 00 00 00 AA [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 0B 26 00 90 00 A5 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]wFMCommunicate request_size=255 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 95 01 00 00 F4 03 04 00 D1 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 11 01 [21:08:33]Write to MH i2c: E2 02 01 0C 26 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 95 01 00 00 F4 03 04 00 D1 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 11 01 00 00 F5 [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 0C 26 00 90 00 A6 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]wFMCommunicate request_size=16 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F6 77 86 39 B0 80 [21:08:33]Write to MH i2c: E2 13 00 0D 26 80 0D 02 02 0B 00 00 35 04 06 00 F6 77 86 39 B0 80 00 00 5E [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 03 00 0D 26 00 90 00 A7 [21:08:33]RAPDU: 90 00 [21:08:33]wFMCommunicate OK [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 0D 03 02 [21:08:33]Write to MH i2c: E2 08 00 0E 26 80 0D 03 02 00 00 00 00 AF [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 0B 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 0B 00 0E 26 00 F4 0B 9D 20 04 0F E5 C1 90 00 25 [21:08:33]RAPDU: F4 0B 9D 20 04 0F E5 C1 90 00 [21:08:33]wFMCommunicate OK [21:08:33]SAM_PROTO_SignData done [21:08:33]FM_MakeSignedData done [21:08:33]CreateOFDProtocolMessage [21:08:33]wFMCommunicate request_size=4 [21:08:33]MH_SAM_APDU [21:08:33]CAPDU: 80 11 00 00 [21:08:33]Write to MH i2c: E2 08 00 0F 26 80 11 00 00 00 00 00 00 AF [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:33]Read from MH i2c: E2 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 17 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: E2 17 00 0F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [21:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:08:33]wFMCommunicate OK [21:08:33]CreateOFDProtocolMessage done [21:08:33]OFDSenderStorePacket 70015 [21:08:33]StoreOFDPacket docnum=70015 [21:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 1A 0D 01 74 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 95 01 00 00 F4 03 04 00 D1 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 11 01 00 35 04 06 00 F6 77 86 39 B0 80 F4 0B 9D 20 04 0F E5 C1 [21:08:33]CheckFolder [21:08:33]dirname=/storage/ofd_packets [21:08:33]CheckFolder done [21:08:33]ProducePacketName [21:08:33]name=ofd_packets/00070015 [21:08:33]NVStorageSaveData ofd_packets/00070015 [21:08:33]File name is /storage/ofd_packets/00070015 [21:08:33]Write 307 bytes [21:08:33]NVStorageSaveData done [21:08:33]OFDSenderStorePacket done [21:08:33]KKMCreateOFDPacket done [21:08:33]NVStorageSaveData kkm_last_timestamp [21:08:33]File name is /storage/kkm_last_timestamp [21:08:33]Write 4 bytes [21:08:33]NVStorageSaveData done [21:08:33]OFD Sender: Processing packet 70015 [packets to send 18, broken 17] [21:08:33]ProducePacketName [21:08:33]name=ofd_packets/00070015 [21:08:33]OFD Sender: To server: pG, [21:08:33]CommunicateWithHost lk.salyk.kg:30040 [21:08:33]ConnectInit lk.salyk.kg [21:08:33]ExternCall_PrintAddStr [21:08:33]wPrintStart [21:08:33]Write to MH i2c: 01 00 00 10 26 36 [21:08:33]Write i2c OK [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: 01 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: 01 07 00 [21:08:33]MH_I2C_Read... [21:08:33]Read from MH i2c: 01 07 00 10 26 00 00 00 00 00 FF 0F 4B [21:08:33]RasterBufferAndPrint [21:08:33]line Счет N : (1)2885783 [21:08:33]line ИНН: 02508201610067 [21:08:33]line Контрольно-Кассовый Чек [21:08:33]line ПРОДАЖА [21:08:33]line ТРК (МРК, ГНК) : 11 [21:08:33]line Товар: 2710194240 [21:08:33]line D-ENERGY Дт-К-2 [21:08:33]line 12.960 * 77.20 [21:08:33]line = 1000.51 [21:08:33]line НДС 12% НСП 1% [21:08:33]line > о реализуемом товаре [21:08:33]line ОКРУГЛЕНИЕ: -0.51 [21:08:33]line ИТОГО: 1000.00 [21:08:33]line Внесено: 1000.00 [21:08:33]line СДАЧА: 0.00 [21:08:33]line НСП 1% : 8.85 [21:08:33]line НДС 12% : 106.25 [21:08:33]line Наличными: 1000.00 [21:08:33]line Безнал.: 0.00 [21:08:33]line Место: АЗС № 85 "Партнер Нефть" [21:08:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:08:33]line СНО: Общий режим [21:08:33]line Чек 405 21.10.2024 21:08 [21:08:34]line Смена: 194 ФФД: 1.0 [21:08:34]line ЗНМ: 0300000167 [21:08:34]line РНМ: 0000000000156251 [21:08:34]line Версия ККМ: v1.0 [21:08:34]line ФМ: 0000000000963346 [21:08:34]line ФД: 70015 [21:08:34]line ФПД: 270993213468800 [21:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210833&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70015&fm=270993213468800&tin=02508201610067®Number=0000000000156251&sum=100000 [21:08:34]Connected sock=11 [21:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 26 1A 0D 01 74 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 95 01 00 00 F4 03 04 00 D1 C2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 11 01 00 35 04 06 00 F6 77 86 39 B0 80 F4 0B 9D 20 04 0F E5 C1 [21:08:34]written 0, free lines is 4095 [21:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DB F7 47 00 54 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 11 01 00 F4 03 04 00 74 6C 16 67 B6 04 01 00 00 E8 AC F0 3F 22 F6 B7 16 [21:08:34]CommunicateWithHost err = 0 [21:08:34]CheckOFDResponse [21:08:34]1017 (14) - 77093643461234 [21:08:34]1041 (16) - 0000000000963346 [21:08:34]1040 (4) - 70015 [21:08:34]1012 (4) - 21.10.2024 15:00 [21:08:34]1206 (1) - 0 [21:08:34]OFD Sender: Remove packet 70015 [21:08:34]ProducePacketName [21:08:34]name=ofd_packets/00070015 [21:08:34]NVStorageDeleteData [21:08:34]Write to MH i2c: 01 00 00 3B 26 61 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 3B 26 00 00 00 00 00 F4 0C 68 [21:08:34]RasterBufferAndPrint [21:08:34]line [21:08:34]line [21:08:34]line [21:08:34]line [21:08:34]line [21:08:34]written 0, free lines is 3322 [21:08:34]MH_Cut [21:08:34]Write to MH i2c: D1 01 00 42 26 01 3A [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: D1 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: D1 01 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: D1 01 00 42 26 00 39 [21:08:34]Write to MH i2c: 01 00 00 43 26 69 [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]OFD Sender: No OFD packet to send [21:08:35]*** Cut start [21:08:35]*** Partial cut [21:08:35]*** CUTSNS_PIN = 1 [21:08:35]*** CUTSNS_PIN = 0 [21:08:35]*** Brake cut motor [21:08:35]Read from MH i2c: 01 [21:08:35]MH_I2C_Read... [21:08:35]*** Stop cut motor [21:08:35]*** Cut end [21:08:35]Read from MH i2c: 01 07 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: 01 07 00 43 26 00 00 00 00 00 FF 0F 7E [21:08:35]process_action close_receipt done [21:08:35]requested_data is exist [21:08:35]produce_requested_data [21:08:35]requested_item fm.sn is exist - process it [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 11 00 00 [21:08:35]Write to MH i2c: E2 08 00 44 26 80 11 00 00 00 00 00 00 E4 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 [21:08:35]MH_I2C_Read... [21:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:35]Read from MH i2c: E2 17 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 17 00 44 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [21:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:08:35]wFMCommunicate OK [21:08:35]requested_item fd.num is exist - process it [21:08:35]SAM_PROTO_GetFieldsCounters [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 13 00 00 [21:08:35]Write to MH i2c: E2 08 00 45 26 80 13 00 00 00 00 00 00 E7 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 62 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 62 00 45 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [21:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:36]wFMCommunicate OK [21:08:36]SAM_PROTO_GetFieldsCounters done [21:08:36]requested_item shift.num is exist - process it [21:08:36]requested_item shift.opened is exist - process it [21:08:36]req_shift_opened [21:08:36]FM_GetShiftState [21:08:36]SAM_PROTO_GetShiftState [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 13 01 00 [21:08:36]Write to MH i2c: E2 08 00 46 26 80 13 01 00 00 00 00 00 E9 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 0E 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 0E 00 46 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [21:08:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:08:36]wFMCommunicate OK [21:08:36]SAM_PROTO_GetShiftState done [21:08:36]FM_GetShiftState done [21:08:36]req_shift_opened done [21:08:36]requested_item shift.open_date is exist - process it [21:08:36]req_shift_open_date [21:08:36]req_shift_open_date done [21:08:36]produce_requested_data done [21:08:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70015,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:08:36]process_action_free close_receipt [21:08:36]json_value_free [21:08:36]json_value_free done [21:08:36]process_json_proto returns [21:08:36]Send response to host [21:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70015,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:08:36]free response buf [21:08:36]execute_script done [21:08:36]execute_script returns [21:08:36]free content buf [21:08:36]Sock 7.Close socket [21:08:36]Sock 7.Thread stoped [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:36]accept exits with 9 [21:11:36]New connection [21:11:36]New thread 3067026788 created [21:11:36]Thread 3067170148 joined [21:11:36]Waiting for new connection... [21:11:36] Sock 9.Parse request [21:11:36]Sock 9.Check first char [21:11:36]Sock 9.First char is OK [21:11:36]request: POST /json_proto HTTP/1.0 [21:11:36]Method: POST [21:11:36]URL: /json_proto [21:11:36]Method is POST - this is cgi request [21:11:36]url: /json_proto [21:11:36]query_string will be loaded in cgi processing [21:11:36]execute_cgi json_proto POST (null) [21:11:36]execute_cgi path=json_proto method=POST [21:11:36]POST find Content-Length [21:11:36]Host: 172.17.50.3:8080 [21:11:36]Content-Length: 776 [21:11:36]Content-Type: application/json [21:11:36] [21:11:36]POST finish read [21:11:36]Found Content-Length = 776 [21:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:36]execute_script... [21:11: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)2885784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:36]POST & json_proto [21:11:36]process_json_proto [21:11:36]json parsed OK: [21:11:36]protocol is kg_v1.0 [21:11:36]action value=close_receipt [21:11:36]process_action close_receipt [21:11:36]cmd_close_receipt [21:11:36]MH_GetDate [21:11:36]Write to MH i2c: F0 00 00 47 26 5C [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: F0 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: F0 09 00 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: F0 09 00 47 26 00 8A C3 16 67 6B 98 1E 66 B6 [21:11:36]GetLastDocTimeStamp 1729544913 [21:11:36]current date 1729545098 [21:11:36]FM_GetShiftState [21:11:36]SAM_PROTO_GetShiftState [21:11:36]wFMCommunicate request_size=4 [21:11:36]MH_SAM_APDU [21:11:36]CAPDU: 80 13 01 00 [21:11:36]Write to MH i2c: E2 08 00 48 26 80 13 01 00 00 00 00 00 EB [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:36]Read from MH i2c: E2 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: E2 0E 00 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: E2 0E 00 48 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 17 [21:11:36]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:11:36]wFMCommunicate OK [21:11:36]SAM_PROTO_GetShiftState done [21:11:36]FM_GetShiftState done [21:11:36]opened in 1729469703 [21:11:36]opened+sec_in_day 1729556103 [21:11:36]quantity*price = 100051 [21:11:36]sum+1 = 100052 [21:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 406 21.10.2024 21:11 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70016 ФПД: 16785840251779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70016&fm=16785840251779&tin=02508201610067®Number=0000000000156251&sum=100051 [21:11:37]StoreToDocumentArchive [21:11:37]shift 194 fd 70016 [21:11:37]save to /storage/0194/doc_00070016 [21:11:37]save last doc name /storage/0194/doc_00070016 to /storage/kkm_last_doc_name [21:11:37]save OK [21:11:37]Clear old archive folders... [21:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:11:37]tlvbuf is 0111F8B0 [21:11:37]SAM_PROTO_ClearQueue [21:11:37]wFMCommunicate request_size=4 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 09 00 00 [21:11:37]Write to MH i2c: E2 08 00 55 26 80 09 00 00 00 00 00 00 ED [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]SAM_PROTO_ClearQueue done [21:11:37]KKMCreateOFDPacket [21:11:37]OFDProtocolAddRootSTLVToBuf [21:11:37]FM_MakeSignedData [21:11:37]FM_MakeSignedData [21:11:37]SAM_PROTO_SignData [21:11:37]wFMCommunicate request_size=4 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 0D 01 02 [21:11:37]Write to MH i2c: E2 08 00 56 26 80 0D 01 02 00 00 00 00 F5 [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 56 26 00 90 00 F0 [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]wFMCommunicate request_size=255 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 8A C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 11 01 [21:11:37]Write to MH i2c: E2 02 01 57 26 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 8A C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 11 01 00 00 62 [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 57 26 00 90 00 F1 [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]wFMCommunicate request_size=16 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0F 44 42 0B A3 83 [21:11:37]Write to MH i2c: E2 13 00 58 26 80 0D 02 02 0B 00 00 35 04 06 00 0F 44 42 0B A3 83 00 00 13 [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 58 26 00 90 00 F2 [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]wFMCommunicate request_size=4 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 0D 03 02 [21:11:37]Write to MH i2c: E2 08 00 59 26 80 0D 03 02 00 00 00 00 FA [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:38]Read from MH i2c: E2 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: E2 0B 00 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: E2 0B 00 59 26 00 2B 69 D5 49 B9 F9 75 87 90 00 5B [21:11:38]RAPDU: 2B 69 D5 49 B9 F9 75 87 90 00 [21:11:38]wFMCommunicate OK [21:11:38]SAM_PROTO_SignData done [21:11:38]FM_MakeSignedData done [21:11:38]CreateOFDProtocolMessage [21:11:38]wFMCommunicate request_size=4 [21:11:38]MH_SAM_APDU [21:11:38]CAPDU: 80 11 00 00 [21:11:38]Write to MH i2c: E2 08 00 5A 26 80 11 00 00 00 00 00 00 FA [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:38]Read from MH i2c: E2 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: E2 17 00 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: E2 17 00 5A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [21:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:11:38]wFMCommunicate OK [21:11:38]CreateOFDProtocolMessage done [21:11:38]OFDSenderStorePacket 70016 [21:11:38]StoreOFDPacket docnum=70016 [21:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3B AD 0D 01 24 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 8A C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 11 01 00 35 04 06 00 0F 44 42 0B A3 83 2B 69 D5 49 B9 F9 75 87 [21:11:38]CheckFolder [21:11:38]dirname=/storage/ofd_packets [21:11:38]CheckFolder done [21:11:38]ProducePacketName [21:11:38]name=ofd_packets/00070016 [21:11:38]NVStorageSaveData ofd_packets/00070016 [21:11:38]File name is /storage/ofd_packets/00070016 [21:11:38]Write 307 bytes [21:11:38]NVStorageSaveData done [21:11:38]OFDSenderStorePacket done [21:11:38]KKMCreateOFDPacket done [21:11:38]NVStorageSaveData kkm_last_timestamp [21:11:38]File name is /storage/kkm_last_timestamp [21:11:38]Write 4 bytes [21:11:38]NVStorageSaveData done [21:11:38]ExternCall_PrintAddStr [21:11:38]wPrintStart [21:11:38]Write to MH i2c: 01 00 00 5B 26 81 [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 07 00 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 FF 0F 96 [21:11:38]RasterBufferAndPrint [21:11:38]line Счет N : (1)2885784 [21:11:38]line ИНН: 02508201610067 [21:11:38]line Контрольно-Кассовый Чек [21:11:38]line ПРОДАЖА [21:11:38]line ТРК (МРК, ГНК) : 31 [21:11:38]line Товар: 2710194240 [21:11:38]line D-ENERGY Дт-К-2 [21:11:38]line 12.960 * 77.20 [21:11:38]line = 1000.51 [21:11:38]line НДС 12% НСП 1% [21:11:38]line > о реализуемом товаре [21:11:38]line ИТОГО: 1000.51 [21:11:38]line НСП 1% : 8.85 [21:11:38]line НДС 12% : 106.25 [21:11:38]line Наличными: 0.00 [21:11:38]line Безнал.: 1000.51 [21:11:38]line Место: АЗС № 85 "Партнер Нефть" [21:11:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:11:38]line СНО: Общий режим [21:11:38]line Чек 406 21.10.2024 21:11 [21:11:38]line Смена: 194 ФФД: 1.0 [21:11:38]line ЗНМ: 0300000167 [21:11:38]line РНМ: 0000000000156251 [21:11:38]line Версия ККМ: v1.0 [21:11:38]line Платежная система: Mbank [21:11:38]line ФМ: 0000000000963346 [21:11:38]line ФД: 70016 [21:11:38]line ФПД: 16785840251779 [21:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211138&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70016&fm=16785840251779&tin=02508201610067®Number=0000000000156251&sum=100051 [21:11:38]OFD Sender: Processing packet 70016 [packets to send 18, broken 17] [21:11:38]ProducePacketName [21:11:38]name=ofd_packets/00070016 [21:11:38]OFD Sender: To server: pG, [21:11:38]CommunicateWithHost lk.salyk.kg:30040 [21:11:38]ConnectInit lk.salyk.kg [21:11:38]written 0, free lines is 4095 [21:11:38]Connected sock=10 [21:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3B AD 0D 01 24 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 8A C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 11 01 00 35 04 06 00 0F 44 42 0B A3 83 2B 69 D5 49 B9 F9 75 87 [21:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2C 78 47 00 D3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 11 01 00 F4 03 04 00 2C 6D 16 67 B6 04 01 00 00 77 E8 38 3B 67 07 0B 88 [21:11:38]CommunicateWithHost err = 0 [21:11:38]CheckOFDResponse [21:11:38]1017 (14) - 77093643461234 [21:11:38]1041 (16) - 0000000000963346 [21:11:38]1040 (4) - 70016 [21:11:38]1012 (4) - 21.10.2024 15:03 [21:11:38]1206 (1) - 0 [21:11:38]OFD Sender: Remove packet 70016 [21:11:38]ProducePacketName [21:11:38]name=ofd_packets/00070016 [21:11:38]NVStorageDeleteData [21:11:38]Write to MH i2c: 01 00 00 84 26 AA [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 07 00 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: 01 07 00 84 26 00 00 00 00 00 0B 0D C9 [21:11:38]RasterBufferAndPrint [21:11:38]line [21:11:38]line [21:11:38]line [21:11:38]line [21:11:38]line [21:11:38]written 0, free lines is 3345 [21:11:38]MH_Cut [21:11:38]Write to MH i2c: D1 01 00 8B 26 01 83 [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: D1 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: D1 01 00 [21:11:38]MH_I2C_Read... [21:11:38]Read from MH i2c: D1 01 00 8B 26 00 82 [21:11:38]Write to MH i2c: 01 00 00 8C 26 B2 [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:39]OFD Sender: No OFD packet to send [21:11:39]*** Cut start [21:11:39]*** Partial cut [21:11:39]*** CUTSNS_PIN = 1 [21:11:39]*** CUTSNS_PIN = 0 [21:11:39]*** Brake cut motor [21:11:40]Read from MH i2c: 01 [21:11:40]MH_I2C_Read... [21:11:40]*** Stop cut motor [21:11:40]*** Cut end [21:11:40]Read from MH i2c: 01 07 00 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: 01 07 00 8C 26 00 00 00 00 00 FF 0F C7 [21:11:40]process_action close_receipt done [21:11:40]requested_data is exist [21:11:40]produce_requested_data [21:11:40]requested_item fm.sn is exist - process it [21:11:40]wFMCommunicate request_size=4 [21:11:40]MH_SAM_APDU [21:11:40]CAPDU: 80 11 00 00 [21:11:40]Write to MH i2c: E2 08 00 8D 26 80 11 00 00 00 00 00 00 2D [21:11:40]Write i2c OK [21:11:40]MH_I2C_Read... [21:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:40]Read from MH i2c: E2 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 17 00 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 17 00 8D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [21:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:11:40]wFMCommunicate OK [21:11:40]requested_item fd.num is exist - process it [21:11:40]SAM_PROTO_GetFieldsCounters [21:11:40]wFMCommunicate request_size=4 [21:11:40]MH_SAM_APDU [21:11:40]CAPDU: 80 13 00 00 [21:11:40]Write to MH i2c: E2 08 00 8E 26 80 13 00 00 00 00 00 00 30 [21:11:40]Write i2c OK [21:11:40]MH_I2C_Read... [21:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:40]Read from MH i2c: E2 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 62 00 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 62 00 8E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:40]wFMCommunicate OK [21:11:40]SAM_PROTO_GetFieldsCounters done [21:11:40]requested_item shift.num is exist - process it [21:11:40]requested_item shift.opened is exist - process it [21:11:40]req_shift_opened [21:11:40]FM_GetShiftState [21:11:40]SAM_PROTO_GetShiftState [21:11:40]wFMCommunicate request_size=4 [21:11:40]MH_SAM_APDU [21:11:40]CAPDU: 80 13 01 00 [21:11:40]Write to MH i2c: E2 08 00 8F 26 80 13 01 00 00 00 00 00 32 [21:11:40]Write i2c OK [21:11:40]MH_I2C_Read... [21:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:40]Read from MH i2c: E2 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 0E 00 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: E2 0E 00 8F 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [21:11:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:11:40]wFMCommunicate OK [21:11:40]SAM_PROTO_GetShiftState done [21:11:40]FM_GetShiftState done [21:11:40]req_shift_opened done [21:11:40]requested_item shift.open_date is exist - process it [21:11:40]req_shift_open_date [21:11:40]req_shift_open_date done [21:11:40]produce_requested_data done [21:11:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70016,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:11:40]process_action_free close_receipt [21:11:40]json_value_free [21:11:40]json_value_free done [21:11:40]process_json_proto returns [21:11:40]Send response to host [21:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70016,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:11:40]free response buf [21:11:40]execute_script done [21:11:40]execute_script returns [21:11:40]free content buf [21:11:40]Sock 9.Close socket [21:11:40]Sock 9.Thread stoped [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:26]accept exits with 7 [21:12:26]New connection [21:12:26]New thread 3067170148 created [21:12:26]Thread 3067026788 joined [21:12:26]Waiting for new connection... [21:12:26] Sock 7.Parse request [21:12:26]Sock 7.Check first char [21:12:26]Sock 7.First char is OK [21:12:26]request: POST /json_proto HTTP/1.0 [21:12:26]Method: POST [21:12:26]URL: /json_proto [21:12:26]Method is POST - this is cgi request [21:12:26]url: /json_proto [21:12:26]query_string will be loaded in cgi processing [21:12:26]execute_cgi json_proto POST (null) [21:12:26]execute_cgi path=json_proto method=POST [21:12:26]POST find Content-Length [21:12:26]Host: 172.17.50.3:8080 [21:12:26]Content-Length: 678 [21:12:26]Content-Type: application/json [21:12:26] [21:12:26]POST finish read [21:12:26]Found Content-Length = 678 [21:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:26]execute_script... [21:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:26]POST & json_proto [21:12:26]process_json_proto [21:12:26]json parsed OK: [21:12:26]protocol is kg_v1.0 [21:12:26]action value=close_receipt [21:12:26]process_action close_receipt [21:12:26]cmd_close_receipt [21:12:26]MH_GetDate [21:12:26]Write to MH i2c: F0 00 00 90 26 A5 [21:12:26]Write i2c OK [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 09 00 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 09 00 90 26 00 BC C3 16 67 6B 98 1E 66 31 [21:12:26]GetLastDocTimeStamp 1729545098 [21:12:26]current date 1729545148 [21:12:26]FM_GetShiftState [21:12:26]SAM_PROTO_GetShiftState [21:12:26]wFMCommunicate request_size=4 [21:12:26]MH_SAM_APDU [21:12:26]CAPDU: 80 13 01 00 [21:12:26]Write to MH i2c: E2 08 00 91 26 80 13 01 00 00 00 00 00 34 [21:12:26]Write i2c OK [21:12:26]MH_I2C_Read... [21:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:26]Read from MH i2c: E2 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: E2 0E 00 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: E2 0E 00 91 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [21:12:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:12:26]wFMCommunicate OK [21:12:26]SAM_PROTO_GetShiftState done [21:12:26]FM_GetShiftState done [21:12:26]opened in 1729469703 [21:12:26]opened+sec_in_day 1729556103 [21:12:26]quantity*price = 31041 [21:12:26]sum+1 = 31043 [21:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 407 21.10.2024 21:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70017 ФПД: 230577193774026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70017&fm=230577193774026&tin=02508201610067®Number=0000000000156251&sum=31000 [21:12:27]StoreToDocumentArchive [21:12:27]shift 194 fd 70017 [21:12:27]save to /storage/0194/doc_00070017 [21:12:27]save last doc name /storage/0194/doc_00070017 to /storage/kkm_last_doc_name [21:12:27]save OK [21:12:27]Clear old archive folders... [21:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:12:27]tlvbuf is 01189CA0 [21:12:27]SAM_PROTO_ClearQueue [21:12:27]wFMCommunicate request_size=4 [21:12:27]MH_SAM_APDU [21:12:27]CAPDU: 80 09 00 00 [21:12:27]Write to MH i2c: E2 08 00 9E 26 80 09 00 00 00 00 00 00 36 [21:12:27]Write i2c OK [21:12:27]MH_I2C_Read... [21:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:27]Read from MH i2c: E2 [21:12:27]MH_I2C_Read... [21:12:27]Read from MH i2c: E2 03 00 [21:12:27]MH_I2C_Read... [21:12:27]Read from MH i2c: E2 03 00 9E 26 00 90 00 38 [21:12:27]RAPDU: 90 00 [21:12:27]wFMCommunicate OK [21:12:27]SAM_PROTO_ClearQueue done [21:12:27]KKMCreateOFDPacket [21:12:27]OFDProtocolAddRootSTLVToBuf [21:12:27]FM_MakeSignedData [21:12:27]FM_MakeSignedData [21:12:27]SAM_PROTO_SignData [21:12:27]wFMCommunicate request_size=4 [21:12:27]MH_SAM_APDU [21:12:27]CAPDU: 80 0D 01 02 [21:12:27]Write to MH i2c: E2 08 00 9F 26 80 0D 01 02 00 00 00 00 3E [21:12:27]Write i2c OK [21:12:27]MH_I2C_Read... [21:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:27]Read from MH i2c: E2 [21:12:27]MH_I2C_Read... [21:12:27]Read from MH i2c: E2 03 00 [21:12:27]MH_I2C_Read... [21:12:27]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [21:12:27]RAPDU: 90 00 [21:12:27]wFMCommunicate OK [21:12:27]wFMCommunicate request_size=255 [21:12:27]MH_SAM_APDU [21:12: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 BC C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 11 01 00 35 04 06 00 D1 [21:12:27]Write to MH i2c: E2 02 01 A0 26 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 BC C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 11 01 00 35 04 06 00 D1 00 00 47 [21:12:27]Write i2c OK [21:12:27]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]wFMCommunicate request_size=10 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 02 02 05 B5 6F BA 6B CA [21:12:28]Write to MH i2c: E2 0D 00 A1 26 80 0D 02 02 05 00 B5 6F BA 6B CA 00 00 5E [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 A1 26 00 90 00 3B [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 03 02 [21:12:28]Write to MH i2c: E2 08 00 A2 26 80 0D 03 02 00 00 00 00 43 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0B 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0B 00 A2 26 00 0B 3A 4E FE 67 60 2B 4E 90 00 15 [21:12:28]RAPDU: 0B 3A 4E FE 67 60 2B 4E 90 00 [21:12:28]wFMCommunicate OK [21:12:28]SAM_PROTO_SignData done [21:12:28]FM_MakeSignedData done [21:12:28]CreateOFDProtocolMessage [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 11 00 00 [21:12:28]Write to MH i2c: E2 08 00 A3 26 80 11 00 00 00 00 00 00 43 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 17 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 17 00 A3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [21:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:12:28]wFMCommunicate OK [21:12:28]CreateOFDProtocolMessage done [21:12:28]OFDSenderStorePacket 70017 [21:12:28]StoreOFDPacket docnum=70017 [21:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 A3 07 01 A4 D8 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 BC C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 11 01 00 35 04 06 00 D1 B5 6F BA 6B CA 0B 3A 4E FE 67 60 2B 4E [21:12:28]CheckFolder [21:12:28]dirname=/storage/ofd_packets [21:12:28]CheckFolder done [21:12:28]ProducePacketName [21:12:28]name=ofd_packets/00070017 [21:12:28]NVStorageSaveData ofd_packets/00070017 [21:12:28]File name is /storage/ofd_packets/00070017 [21:12:28]Write 301 bytes [21:12:28]NVStorageSaveData done [21:12:28]OFDSenderStorePacket done [21:12:28]KKMCreateOFDPacket done [21:12:28]NVStorageSaveData kkm_last_timestamp [21:12:28]File name is /storage/kkm_last_timestamp [21:12:28]Write 4 bytes [21:12:28]NVStorageSaveData done [21:12:28]ExternCall_PrintAddStr [21:12:28]wPrintStart [21:12:28]Write to MH i2c: 01 00 00 A4 26 CA [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 07 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 07 00 A4 26 00 00 00 00 00 FF 0F DF [21:12:28]RasterBufferAndPrint [21:12:28]line Счет N : (1)2885785 [21:12:28]line ИНН: 02508201610067 [21:12:28]line Контрольно-Кассовый Чек [21:12:28]line ПРОДАЖА [21:12:28]line ТРК (МРК, ГНК) : 12 [21:12:28]line Товар: 2710124130 [21:12:28]line Аи-92-К-5 [21:12:28]line 4.640 * 66.90 [21:12:28]line = 310.42 [21:12:28]line НДС 12% НСП 1% [21:12:28]line > о реализуемом товаре [21:12:28]line ОКРУГЛЕНИЕ: -0.42 [21:12:28]line ИТОГО: 310.00 [21:12:28]line Внесено: 310.00 [21:12:28]line СДАЧА: 0.00 [21:12:28]line НСП 1% : 2.75 [21:12:28]line НДС 12% : 32.96 [21:12:28]line Наличными: 310.00 [21:12:28]line Безнал.: 0.00 [21:12:28]line Место: АЗС № 85 "Партнер Нефть" [21:12:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:12:28]line СНО: Общий режим [21:12:28]line Чек 407 21.10.2024 21:12 [21:12:28]line Смена: 194 ФФД: 1.0 [21:12:28]line ЗНМ: 0300000167 [21:12:28]line РНМ: 0000000000156251 [21:12:28]line Версия ККМ: v1.0 [21:12:28]line ФМ: 0000000000963346 [21:12:28]line ФД: 70017 [21:12:28]line ФПД: 230577193774026 [21:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70017&fm=230577193774026&tin=02508201610067®Number=0000000000156251&sum=31000 [21:12:28]OFD Sender: Processing packet 70017 [packets to send 18, broken 17] [21:12:28]ProducePacketName [21:12:28]name=ofd_packets/00070017 [21:12:28]OFD Sender: To server: pG, [21:12:28]CommunicateWithHost lk.salyk.kg:30040 [21:12:28]ConnectInit lk.salyk.kg [21:12:28]written 0, free lines is 4095 [21:12:28]Connected sock=10 [21:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 85 A3 07 01 A4 D8 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 BC C3 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 11 01 00 35 04 06 00 D1 B5 6F BA 6B CA 0B 3A 4E FE 67 60 2B 4E [21:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 37 C5 47 00 9A A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 11 01 00 F4 03 04 00 5F 6D 16 67 B6 04 01 00 00 34 BD 67 88 2A 7A D2 86 [21:12:29]CommunicateWithHost err = 0 [21:12:29]CheckOFDResponse [21:12:29]1017 (14) - 77093643461234 [21:12:29]1041 (16) - 0000000000963346 [21:12:29]1040 (4) - 70017 [21:12:29]1012 (4) - 21.10.2024 15:03 [21:12:29]1206 (1) - 0 [21:12:29]OFD Sender: Remove packet 70017 [21:12:29]ProducePacketName [21:12:29]name=ofd_packets/00070017 [21:12:29]NVStorageDeleteData [21:12:29]Write to MH i2c: 01 00 00 CF 26 F5 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 CF 26 00 00 00 00 00 EC 0C F4 [21:12:29]RasterBufferAndPrint [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]written 0, free lines is 3314 [21:12:29]MH_Cut [21:12:29]Write to MH i2c: D1 01 00 D6 26 01 CE [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 01 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 01 00 D6 26 00 CD [21:12:29]Write to MH i2c: 01 00 00 D7 26 FD [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]OFD Sender: No OFD packet to send [21:12:29]*** Cut start [21:12:29]*** Partial cut [21:12:29]*** CUTSNS_PIN = 1 [21:12:29]*** CUTSNS_PIN = 0 [21:12:30]*** Brake cut motor [21:12:30]Read from MH i2c: 01 [21:12:30]MH_I2C_Read... [21:12:30]*** Stop cut motor [21:12:30]*** Cut end [21:12:30]Read from MH i2c: 01 07 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: 01 07 00 D7 26 00 00 00 00 00 FF 0F 12 [21:12:30]process_action close_receipt done [21:12:30]requested_data is exist [21:12:30]produce_requested_data [21:12:30]requested_item fm.sn is exist - process it [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 11 00 00 [21:12:30]Write to MH i2c: E2 08 00 D8 26 80 11 00 00 00 00 00 00 78 [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 17 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 17 00 D8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [21:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:12:30]wFMCommunicate OK [21:12:30]requested_item fd.num is exist - process it [21:12:30]SAM_PROTO_GetFieldsCounters [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 13 00 00 [21:12:30]Write to MH i2c: E2 08 00 D9 26 80 13 00 00 00 00 00 00 7B [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 62 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 62 00 D9 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [21:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:30]wFMCommunicate OK [21:12:30]SAM_PROTO_GetFieldsCounters done [21:12:30]requested_item shift.num is exist - process it [21:12:30]requested_item shift.opened is exist - process it [21:12:30]req_shift_opened [21:12:30]FM_GetShiftState [21:12:30]SAM_PROTO_GetShiftState [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 13 01 00 [21:12:30]Write to MH i2c: E2 08 00 DA 26 80 13 01 00 00 00 00 00 7D [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 DA 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [21:12:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:12:30]wFMCommunicate OK [21:12:30]SAM_PROTO_GetShiftState done [21:12:30]FM_GetShiftState done [21:12:30]req_shift_opened done [21:12:30]requested_item shift.open_date is exist - process it [21:12:30]req_shift_open_date [21:12:30]req_shift_open_date done [21:12:30]produce_requested_data done [21:12:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70017,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:12:30]process_action_free close_receipt [21:12:30]json_value_free [21:12:30]json_value_free done [21:12:30]process_json_proto returns [21:12:30]Send response to host [21:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70017,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:12:30]free response buf [21:12:30]execute_script done [21:12:30]execute_script returns [21:12:30]free content buf [21:12:30]Sock 7.Close socket [21:12:30]Sock 7.Thread stoped [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:21]accept exits with 9 [21:19:21]New connection [21:19:21]New thread 3067026788 created [21:19:21]Thread 3067170148 joined [21:19:21]Waiting for new connection... [21:19:21] Sock 9.Parse request [21:19:21]Sock 9.Check first char [21:19:21]Sock 9.First char is OK [21:19:21]request: POST /json_proto HTTP/1.0 [21:19:21]Method: POST [21:19:21]URL: /json_proto [21:19:21]Method is POST - this is cgi request [21:19:21]url: /json_proto [21:19:21]query_string will be loaded in cgi processing [21:19:21]execute_cgi json_proto POST (null) [21:19:21]execute_cgi path=json_proto method=POST [21:19:21]POST find Content-Length [21:19:21]Host: 172.17.50.3:8080 [21:19:21]Content-Length: 768 [21:19:21]Content-Type: application/json [21:19:21] [21:19:21]POST finish read [21:19:21]Found Content-Length = 768 [21:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885786", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:21]execute_script... [21:19: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)2885786", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:21]POST & json_proto [21:19:21]process_json_proto [21:19:21]json parsed OK: [21:19:21]protocol is kg_v1.0 [21:19:21]action value=close_receipt [21:19:21]process_action close_receipt [21:19:21]cmd_close_receipt [21:19:21]MH_GetDate [21:19:21]Write to MH i2c: F0 00 00 DB 26 F0 [21:19:21]Write i2c OK [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: F0 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: F0 09 00 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: F0 09 00 DB 26 00 5B C5 16 67 6B 98 1E 66 1D [21:19:21]GetLastDocTimeStamp 1729545148 [21:19:21]current date 1729545563 [21:19:21]FM_GetShiftState [21:19:21]SAM_PROTO_GetShiftState [21:19:21]wFMCommunicate request_size=4 [21:19:21]MH_SAM_APDU [21:19:21]CAPDU: 80 13 01 00 [21:19:21]Write to MH i2c: E2 08 00 DC 26 80 13 01 00 00 00 00 00 7F [21:19:21]Write i2c OK [21:19:21]MH_I2C_Read... [21:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:21]Read from MH i2c: E2 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 0E 00 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 0E 00 DC 26 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [21:19:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:19:21]wFMCommunicate OK [21:19:21]SAM_PROTO_GetShiftState done [21:19:21]FM_GetShiftState done [21:19:21]opened in 1729469703 [21:19:21]opened+sec_in_day 1729556103 [21:19:21]quantity*price = 70044 [21:19:21]sum+1 = 70045 [21:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 408 21.10.2024 21:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70018 ФПД: 269145363502621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70018&fm=269145363502621&tin=02508201610067®Number=0000000000156251&sum=70044 [21:19:22]StoreToDocumentArchive [21:19:22]shift 194 fd 70018 [21:19:22]save to /storage/0194/doc_00070018 [21:19:22]save last doc name /storage/0194/doc_00070018 to /storage/kkm_last_doc_name [21:19:22]save OK [21:19:22]Clear old archive folders... [21:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:22]tlvbuf is 01134170 [21:19:22]SAM_PROTO_ClearQueue [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 09 00 00 [21:19:22]Write to MH i2c: E2 08 00 E9 26 80 09 00 00 00 00 00 00 81 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 03 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 03 00 E9 26 00 90 00 83 [21:19:22]RAPDU: 90 00 [21:19:22]wFMCommunicate OK [21:19:22]SAM_PROTO_ClearQueue done [21:19:22]KKMCreateOFDPacket [21:19:22]OFDProtocolAddRootSTLVToBuf [21:19:22]FM_MakeSignedData [21:19:22]FM_MakeSignedData [21:19:22]SAM_PROTO_SignData [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 0D 01 02 [21:19:22]Write to MH i2c: E2 08 00 EA 26 80 0D 01 02 00 00 00 00 89 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 03 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 03 00 EA 26 00 90 00 84 [21:19:22]RAPDU: 90 00 [21:19:22]wFMCommunicate OK [21:19:22]wFMCommunicate request_size=255 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 5B C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 11 01 00 35 04 06 00 F4 [21:19:22]Write to MH i2c: E2 02 01 EB 26 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 5B C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 11 01 00 35 04 06 00 F4 00 00 FA [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=10 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 02 02 05 C9 49 C8 D6 1D [21:19:23]Write to MH i2c: E2 0D 00 EC 26 80 0D 02 02 05 00 C9 49 C8 D6 1D 00 00 63 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 03 02 [21:19:23]Write to MH i2c: E2 08 00 ED 26 80 0D 03 02 00 00 00 00 8E [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 ED 26 00 4D 5E E3 80 4C A4 5D B6 90 00 A0 [21:19:23]RAPDU: 4D 5E E3 80 4C A4 5D B6 90 00 [21:19:23]wFMCommunicate OK [21:19:23]SAM_PROTO_SignData done [21:19:23]FM_MakeSignedData done [21:19:23]CreateOFDProtocolMessage [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 11 00 00 [21:19:23]Write to MH i2c: E2 08 00 EE 26 80 11 00 00 00 00 00 00 8E [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 17 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 17 00 EE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [21:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:19:23]wFMCommunicate OK [21:19:23]CreateOFDProtocolMessage done [21:19:23]OFDSenderStorePacket 70018 [21:19:23]StoreOFDPacket docnum=70018 [21:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 E1 07 01 A8 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 5B C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 11 01 00 35 04 06 00 F4 C9 49 C8 D6 1D 4D 5E E3 80 4C A4 5D B6 [21:19:23]CheckFolder [21:19:23]dirname=/storage/ofd_packets [21:19:23]CheckFolder done [21:19:23]ProducePacketName [21:19:23]name=ofd_packets/00070018 [21:19:23]NVStorageSaveData ofd_packets/00070018 [21:19:23]File name is /storage/ofd_packets/00070018 [21:19:23]Write 301 bytes [21:19:23]NVStorageSaveData done [21:19:23]OFDSenderStorePacket done [21:19:23]KKMCreateOFDPacket done [21:19:23]NVStorageSaveData kkm_last_timestamp [21:19:23]File name is /storage/kkm_last_timestamp [21:19:23]Write 4 bytes [21:19:23]NVStorageSaveData done [21:19:23]OFD Sender: Processing packet 70018 [packets to send 18, broken 17] [21:19:23]ProducePacketName [21:19:23]name=ofd_packets/00070018 [21:19:23]OFD Sender: To server: pG, [21:19:23]CommunicateWithHost lk.salyk.kg:30040 [21:19:23]ConnectInit lk.salyk.kg [21:19:23]ExternCall_PrintAddStr [21:19:23]wPrintStart [21:19:23]Write to MH i2c: 01 00 00 EF 26 15 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 EF 26 00 00 00 00 00 FF 0F 2A [21:19:23]RasterBufferAndPrint [21:19:23]line Счет N : (1)2885786 [21:19:23]line ИНН: 02508201610067 [21:19:23]line Контрольно-Кассовый Чек [21:19:23]line ПРОДАЖА [21:19:23]line ТРК (МРК, ГНК) : 42 [21:19:23]line Товар: 2710124130 [21:19:23]line Аи-92-К-5 [21:19:23]line 10.470 * 66.90 [21:19:23]line = 700.44 [21:19:23]line НДС 12% НСП 1% [21:19:23]line > о реализуемом товаре [21:19:23]line ИТОГО: 700.44 [21:19:23]line НСП 1% : 6.20 [21:19:23]line НДС 12% : 74.38 [21:19:23]line Наличными: 0.00 [21:19:23]line Безнал.: 700.44 [21:19:23]line Место: АЗС № 85 "Партнер Нефть" [21:19:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:19:23]line СНО: Общий режим [21:19:23]line Чек 408 21.10.2024 21:19 [21:19:23]line Смена: 194 ФФД: 1.0 [21:19:23]line ЗНМ: 0300000167 [21:19:23]line РНМ: 0000000000156251 [21:19:23]line Версия ККМ: v1.0 [21:19:23]line Платежная система: Mbank [21:19:23]line ФМ: 0000000000963346 [21:19:23]line ФД: 70018 [21:19:23]line ФПД: 269145363502621 [21:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70018&fm=269145363502621&tin=02508201610067®Number=0000000000156251&sum=70044 [21:19:23]Connected sock=11 [21:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 E1 07 01 A8 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 5B C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 11 01 00 35 04 06 00 F4 C9 49 C8 D6 1D 4D 5E E3 80 4C A4 5D B6 [21:19:23]written 0, free lines is 4095 [21:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8A A9 47 00 9A F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 11 01 00 F4 03 04 00 FE 6E 16 67 B6 04 01 00 00 EC 58 91 B1 B6 9C F7 2E [21:19:23]CommunicateWithHost err = 0 [21:19:23]CheckOFDResponse [21:19:23]1017 (14) - 77093643461234 [21:19:23]1041 (16) - 0000000000963346 [21:19:23]1040 (4) - 70018 [21:19:23]1012 (4) - 21.10.2024 15:10 [21:19:23]1206 (1) - 0 [21:19:23]OFD Sender: Remove packet 70018 [21:19:23]ProducePacketName [21:19:23]name=ofd_packets/00070018 [21:19:23]NVStorageDeleteData [21:19:24]Write to MH i2c: 01 00 00 18 27 3F [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 18 27 00 00 00 00 00 0C 0D 5F [21:19:24]RasterBufferAndPrint [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]written 0, free lines is 3349 [21:19:24]MH_Cut [21:19:24]Write to MH i2c: D1 01 00 1F 27 01 18 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 01 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 01 00 1F 27 00 17 [21:19:24]Write to MH i2c: 01 00 00 20 27 47 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]OFD Sender: No OFD packet to send [21:19:24]*** Cut start [21:19:24]*** Partial cut [21:19:24]*** CUTSNS_PIN = 1 [21:19:24]*** CUTSNS_PIN = 0 [21:19:25]*** Brake cut motor [21:19:25]Read from MH i2c: 01 [21:19:25]MH_I2C_Read... [21:19:25]*** Stop cut motor [21:19:25]*** Cut end [21:19:25]Read from MH i2c: 01 07 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: 01 07 00 20 27 00 00 00 00 00 FF 0F 5C [21:19:25]process_action close_receipt done [21:19:25]requested_data is exist [21:19:25]produce_requested_data [21:19:25]requested_item fm.sn is exist - process it [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 11 00 00 [21:19:25]Write to MH i2c: E2 08 00 21 27 80 11 00 00 00 00 00 00 C2 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 17 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 17 00 21 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [21:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:19:25]wFMCommunicate OK [21:19:25]requested_item fd.num is exist - process it [21:19:25]SAM_PROTO_GetFieldsCounters [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 13 00 00 [21:19:25]Write to MH i2c: E2 08 00 22 27 80 13 00 00 00 00 00 00 C5 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 62 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 62 00 22 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [21:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:25]wFMCommunicate OK [21:19:25]SAM_PROTO_GetFieldsCounters done [21:19:25]requested_item shift.num is exist - process it [21:19:25]requested_item shift.opened is exist - process it [21:19:25]req_shift_opened [21:19:25]FM_GetShiftState [21:19:25]SAM_PROTO_GetShiftState [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 13 01 00 [21:19:25]Write to MH i2c: E2 08 00 23 27 80 13 01 00 00 00 00 00 C7 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 0E 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 0E 00 23 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F3 [21:19:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:19:25]wFMCommunicate OK [21:19:25]SAM_PROTO_GetShiftState done [21:19:25]FM_GetShiftState done [21:19:25]req_shift_opened done [21:19:25]requested_item shift.open_date is exist - process it [21:19:25]req_shift_open_date [21:19:25]req_shift_open_date done [21:19:25]produce_requested_data done [21:19:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70018,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:19:25]process_action_free close_receipt [21:19:25]json_value_free [21:19:25]json_value_free done [21:19:25]process_json_proto returns [21:19:25]Send response to host [21:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70018,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:19:25]free response buf [21:19:25]execute_script done [21:19:25]execute_script returns [21:19:25]free content buf [21:19:25]Sock 9.Close socket [21:19:25]Sock 9.Thread stoped [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:17]wFMCommunicate OK [21:20:17]wFMCommunicate request_size=13 [21:20:17]MH_SAM_APDU [21:20:17]CAPDU: 80 15 02 00 08 F4 03 04 00 93 C5 16 67 [21:20:17]Write to MH i2c: E2 10 00 2E 27 80 15 02 00 08 00 F4 03 04 00 93 C5 16 67 00 00 B5 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [21:20:17]Read from MH i2c: E2 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 03 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [21:20:17]RAPDU: 90 00 [21:20:17]wFMCommunicate OK [21:20:17]wFMCommunicate request_size=25 [21:20:17]MH_SAM_APDU [21:20:17]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [21:20:17]Write to MH i2c: E2 1C 00 2F 27 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 33 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [21:20:18]RAPDU: 90 00 [21:20:18]wFMCommunicate OK [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 15 03 00 [21:20:18]Write to MH i2c: E2 08 00 30 27 80 15 03 00 00 00 00 00 D8 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 40 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 40 00 30 27 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 01 00 00 35 04 06 00 6E 1E 1B FA EA 78 90 00 C1 [21:20:18]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 01 00 00 35 04 06 00 6E 1E 1B FA EA 78 90 00 [21:20:18]wFMCommunicate OK [21:20:18]SAM_PROTO_ProcessDocument answer len = 59 [21:20:18]SAM_PROTO_ProcessDocument done [21:20:18]SetTLVBufToDocument [21:20:18]Processing tag 1209 (04B9) [21:20:18]Malloc new data [21:20:18]Processing tag 1041 (0411) [21:20:18]Processing tag 1040 (0410) [21:20:18]Malloc new data [21:20:18]Processing tag 1038 (040E) [21:20:18]Malloc new data [21:20:18]Processing tag 1042 (0412) [21:20:18]Malloc new data [21:20:18]Processing tag 1077 (0435) [21:20:18]Malloc new data [21:20:18]SetTLVBufToDocument err=0 [21:20:18]KKMLoadAndSignReceiptData store KKM data [21:20:18]KKMLoadAndSignReceiptData err=0 [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 11 00 00 [21:20:18]Write to MH i2c: E2 08 00 31 27 80 11 00 00 00 00 00 00 D2 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 31 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [21:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:20:18]wFMCommunicate OK [21:20:18]Счет N : (1)2885787 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 51 Товар: 2710194210 ДТ-К-5 6.570 * 76.20 = 500.63 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 409 21.10.2024 21:20 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70019 ФПД: 121075597503096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70019&fm=121075597503096&tin=02508201610067®Number=0000000000156251&sum=50000 [21:20:18]StoreToDocumentArchive [21:20:18]shift 194 fd 70019 [21:20:18]save to /storage/0194/doc_00070019 [21:20:18]save last doc name /storage/0194/doc_00070019 to /storage/kkm_last_doc_name [21:20:18]save OK [21:20:18]Clear old archive folders... [21:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:20:18]tlvbuf is B6F0FAD0 [21:20:18]SAM_PROTO_ClearQueue [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 09 00 00 [21:20:18]Write to MH i2c: E2 08 00 32 27 80 09 00 00 00 00 00 00 CB [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 32 27 00 90 00 CD [21:20:18]RAPDU: 90 00 [21:20:18]wFMCommunicate OK [21:20:18]SAM_PROTO_ClearQueue done [21:20:18]KKMCreateOFDPacket [21:20:18]OFDProtocolAddRootSTLVToBuf [21:20:18]FM_MakeSignedData [21:20:18]FM_MakeSignedData [21:20:18]SAM_PROTO_SignData [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 0D 01 02 [21:20:18]Write to MH i2c: E2 08 00 33 27 80 0D 01 02 00 00 00 00 D3 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 33 27 00 90 00 CE [21:20:18]RAPDU: 90 00 [21:20:18]wFMCommunicate OK [21:20:18]wFMCommunicate request_size=255 [21:20:18]MH_SAM_APDU [21:20:18]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 99 01 00 00 F4 03 04 00 93 C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 35 04 06 00 6E 1E 1B FA [21:20:18]Write to MH i2c: E2 02 01 34 27 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 99 01 00 00 F4 03 04 00 93 C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 35 04 06 00 6E 1E 1B FA 00 00 41 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 34 27 00 90 00 CF [21:20:18]RAPDU: 90 00 [21:20:18]wFMCommunicate OK [21:20:18]wFMCommunicate request_size=7 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 0D 02 02 02 EA 78 [21:20:18]Write to MH i2c: E2 0A 00 35 27 80 0D 02 02 02 00 EA 78 00 00 3C [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [21:20:18]RAPDU: 90 00 [21:20:18]wFMCommunicate OK [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 0D 03 02 [21:20:18]Write to MH i2c: E2 08 00 36 27 80 0D 03 02 00 00 00 00 D8 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 0B 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 0B 00 36 27 00 B4 1B DD 66 2A B8 FE BA 90 00 85 [21:20:18]RAPDU: B4 1B DD 66 2A B8 FE BA 90 00 [21:20:18]wFMCommunicate OK [21:20:18]SAM_PROTO_SignData done [21:20:18]FM_MakeSignedData done [21:20:18]CreateOFDProtocolMessage [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 11 00 00 [21:20:18]Write to MH i2c: E2 08 00 37 27 80 11 00 00 00 00 00 00 D8 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 37 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [21:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:20:18]wFMCommunicate OK [21:20:18]CreateOFDProtocolMessage done [21:20:18]OFDSenderStorePacket 70019 [21:20:18]StoreOFDPacket docnum=70019 [21:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 99 C1 04 01 B9 AD 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 99 01 00 00 F4 03 04 00 93 C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 35 04 06 00 6E 1E 1B FA EA 78 B4 1B DD 66 2A B8 FE BA [21:20:18]CheckFolder [21:20:18]dirname=/storage/ofd_packets [21:20:18]CheckFolder done [21:20:18]ProducePacketName [21:20:18]name=ofd_packets/00070019 [21:20:18]NVStorageSaveData ofd_packets/00070019 [21:20:18]File name is /storage/ofd_packets/00070019 [21:20:18]Write 298 bytes [21:20:18]NVStorageSaveData done [21:20:18]OFDSenderStorePacket done [21:20:18]KKMCreateOFDPacket done [21:20:18]NVStorageSaveData kkm_last_timestamp [21:20:18]File name is /storage/kkm_last_timestamp [21:20:18]Write 4 bytes [21:20:18]NVStorageSaveData done [21:20:18]ExternCall_PrintAddStr [21:20:18]wPrintStart [21:20:18]Write to MH i2c: 01 00 00 38 27 5F [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 07 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 07 00 38 27 00 00 00 00 00 FF 0F 74 [21:20:18]RasterBufferAndPrint [21:20:18]line Счет N : (1)2885787 [21:20:18]line ИНН: 02508201610067 [21:20:18]line Контрольно-Кассовый Чек [21:20:18]line ПРОДАЖА [21:20:18]line ТРК (МРК, ГНК) : 51 [21:20:18]line Товар: 2710194210 [21:20:18]line ДТ-К-5 [21:20:18]line 6.570 * 76.20 [21:20:18]line = 500.63 [21:20:18]line НДС 12% НСП 1% [21:20:18]line > о реализуемом товаре [21:20:18]line ОКРУГЛЕНИЕ: -0.63 [21:20:18]line ИТОГО: 500.00 [21:20:18]line Внесено: 500.00 [21:20:18]line СДАЧА: 0.00 [21:20:18]line НСП 1% : 4.43 [21:20:18]line НДС 12% : 53.16 [21:20:18]line Наличными: 500.00 [21:20:18]line Безнал.: 0.00 [21:20:18]line Место: АЗС № 85 "Партнер Нефть" [21:20:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:20:18]line СНО: Общий режим [21:20:18]line Чек 409 21.10.2024 21:20 [21:20:18]line Смена: 194 ФФД: 1.0 [21:20:18]line ЗНМ: 0300000167 [21:20:18]line РНМ: 0000000000156251 [21:20:18]line Версия ККМ: v1.0 [21:20:18]line ФМ: 0000000000963346 [21:20:18]line ФД: 70019 [21:20:19]line ФПД: 121075597503096 [21:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70019&fm=121075597503096&tin=02508201610067®Number=0000000000156251&sum=50000 [21:20:19]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:20:19]ProducePacketName [21:20:19]name=ofd_packets/00070019 [21:20:19]OFD Sender: To server: pG, [21:20:19]CommunicateWithHost lk.salyk.kg:30040 [21:20:19]ConnectInit lk.salyk.kg [21:20:19]written 0, free lines is 4095 [21:20:19]Write to MH i2c: 01 00 00 63 27 8A [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: 01 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: 01 07 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: 01 07 00 63 27 00 00 00 00 00 DF 0C 7C [21:20:19]RasterBufferAndPrint [21:20:19]line [21:20:19]line [21:20:19]line [21:20:19]line [21:20:19]line [21:20:19]written 0, free lines is 3301 [21:20:19]MH_Cut [21:20:19]Write to MH i2c: D1 01 00 6A 27 01 63 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: D1 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: D1 01 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: D1 01 00 6A 27 00 62 [21:20:19]Write to MH i2c: 01 00 00 6B 27 92 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:20]*** Cut start [21:20:20]*** Partial cut [21:20:20]*** CUTSNS_PIN = 1 [21:20:20]*** CUTSNS_PIN = 0 [21:20:20]*** Brake cut motor [21:20:20]Read from MH i2c: 01 [21:20:20]MH_I2C_Read... [21:20:20]*** Stop cut motor [21:20:20]*** Cut end [21:20:20]Read from MH i2c: 01 07 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: 01 07 00 6B 27 00 00 00 00 00 FF 0F A7 [21:20:20]process_action close_receipt done [21:20:20]requested_data is exist [21:20:20]produce_requested_data [21:20:20]requested_item fm.sn is exist - process it [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 11 00 00 [21:20:20]Write to MH i2c: E2 08 00 6C 27 80 11 00 00 00 00 00 00 0D [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:20]Read from MH i2c: E2 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 17 00 [21:20:20]MH_I2C_Read... [21:20:20]Read from MH i2c: E2 17 00 6C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [21:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:20:20]wFMCommunicate OK [21:20:20]requested_item fd.num is exist - process it [21:20:20]SAM_PROTO_GetFieldsCounters [21:20:20]wFMCommunicate request_size=4 [21:20:20]MH_SAM_APDU [21:20:20]CAPDU: 80 13 00 00 [21:20:20]Write to MH i2c: E2 08 00 6D 27 80 13 00 00 00 00 00 00 10 [21:20:20]Write i2c OK [21:20:20]MH_I2C_Read... [21:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:21]Read from MH i2c: E2 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: E2 62 00 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: E2 62 00 6D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:20:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:21]wFMCommunicate OK [21:20:21]SAM_PROTO_GetFieldsCounters done [21:20:21]requested_item shift.num is exist - process it [21:20:21]requested_item shift.opened is exist - process it [21:20:21]req_shift_opened [21:20:21]FM_GetShiftState [21:20:21]SAM_PROTO_GetShiftState [21:20:21]wFMCommunicate request_size=4 [21:20:21]MH_SAM_APDU [21:20:21]CAPDU: 80 13 01 00 [21:20:21]Write to MH i2c: E2 08 00 6E 27 80 13 01 00 00 00 00 00 12 [21:20:21]Write i2c OK [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: E2 [21:20:21]MH_I2C_Read... [21:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:21]Read from MH i2c: E2 0E 00 [21:20:21]MH_I2C_Read... [21:20:21]Read from MH i2c: E2 0E 00 6E 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3E [21:20:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:20:21]wFMCommunicate OK [21:20:21]SAM_PROTO_GetShiftState done [21:20:21]FM_GetShiftState done [21:20:21]req_shift_opened done [21:20:21]requested_item shift.open_date is exist - process it [21:20:21]req_shift_open_date [21:20:21]req_shift_open_date done [21:20:21]produce_requested_data done [21:20:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70019,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:20:21]process_action_free close_receipt [21:20:21]json_value_free [21:20:21]json_value_free done [21:20:21]process_json_proto returns [21:20:21]Send response to host [21:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70019,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:20:21]free response buf [21:20:21]execute_script done [21:20:21]execute_script returns [21:20:21]free content buf [21:20:21]Sock 10.Close socket [21:20:21]Sock 10.Thread stoped [21:20:24]ConnectInit Can't take IP for lk.salyk.kg [21:20:24]CommunicateWithHost connect error [21:20:24]CommunicateWithHost err = -1 [21:20:24]OFD Sender: Server communicate error [21:20:29]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:20:29]ProducePacketName [21:20:29]name=ofd_packets/00070019 [21:20:29]OFD Sender: To server: pG, [21:20:29]CommunicateWithHost lk.salyk.kg:30040 [21:20:29]ConnectInit lk.salyk.kg [21:20:34]ConnectInit Can't take IP for lk.salyk.kg [21:20:34]CommunicateWithHost connect error [21:20:34]CommunicateWithHost err = -1 [21:20:34]OFD Sender: Server communicate error [21:20:39]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:20:39]ProducePacketName [21:20:39]name=ofd_packets/00070019 [21:20:39]OFD Sender: To server: pG, [21:20:39]CommunicateWithHost lk.salyk.kg:30040 [21:20:39]ConnectInit lk.salyk.kg [21:20:44]ConnectInit Can't take IP for lk.salyk.kg [21:20:44]CommunicateWithHost connect error [21:20:44]CommunicateWithHost err = -1 [21:20:44]OFD Sender: Server communicate error [21:20:49]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:20:49]ProducePacketName [21:20:49]name=ofd_packets/00070019 [21:20:49]OFD Sender: To server: pG, [21:20:49]CommunicateWithHost lk.salyk.kg:30040 [21:20:49]ConnectInit lk.salyk.kg [21:20:54]ConnectInit Can't take IP for lk.salyk.kg [21:20:54]CommunicateWithHost connect error [21:20:54]CommunicateWithHost err = -1 [21:20:54]OFD Sender: Server communicate error [21:20:59]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:20:59]ProducePacketName [21:20:59]name=ofd_packets/00070019 [21:20:59]OFD Sender: To server: pG, [21:20:59]CommunicateWithHost lk.salyk.kg:30040 [21:20:59]ConnectInit lk.salyk.kg [21:21:04]ConnectInit Can't take IP for lk.salyk.kg [21:21:04]CommunicateWithHost connect error [21:21:04]CommunicateWithHost err = -1 [21:21:04]OFD Sender: Server communicate error [21:21:09]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:21:09]ProducePacketName [21:21:09]name=ofd_packets/00070019 [21:21:09]OFD Sender: To server: pG, [21:21:09]CommunicateWithHost lk.salyk.kg:30040 [21:21:09]ConnectInit lk.salyk.kg [21:21:14]ConnectInit Can't take IP for lk.salyk.kg [21:21:14]CommunicateWithHost connect error [21:21:14]CommunicateWithHost err = -1 [21:21:14]OFD Sender: Server communicate error [21:21:19]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:21:19]ProducePacketName [21:21:19]name=ofd_packets/00070019 [21:21:19]OFD Sender: To server: pG, [21:21:19]CommunicateWithHost lk.salyk.kg:30040 [21:21:19]ConnectInit lk.salyk.kg [21:21:24]ConnectInit Can't take IP for lk.salyk.kg [21:21:24]CommunicateWithHost connect error [21:21:24]CommunicateWithHost err = -1 [21:21:24]OFD Sender: Server communicate error [21:21:29]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:21:29]ProducePacketName [21:21:29]name=ofd_packets/00070019 [21:21:29]OFD Sender: To server: pG, [21:21:29]CommunicateWithHost lk.salyk.kg:30040 [21:21:29]ConnectInit lk.salyk.kg [21:21:34]ConnectInit Can't take IP for lk.salyk.kg [21:21:34]CommunicateWithHost connect error [21:21:34]CommunicateWithHost err = -1 [21:21:34]OFD Sender: Server communicate error [21:21:39]OFD Sender: Processing packet 70019 [packets to send 18, broken 17] [21:21:39]ProducePacketName [21:21:39]name=ofd_packets/00070019 [21:21:39]OFD Sender: To server: pG, [21:21:39]CommunicateWithHost lk.salyk.kg:30040 [21:21:39]ConnectInit lk.salyk.kg [21:21:39]Connected sock=7 [21:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 99 C1 04 01 B9 AD 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 99 01 00 00 F4 03 04 00 93 C5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 35 04 06 00 6E 1E 1B FA EA 78 B4 1B DD 66 2A B8 FE BA [21:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7F 44 47 00 C0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 11 01 00 F4 03 04 00 85 6F 16 67 B6 04 01 00 00 A6 5E 16 18 CE CC C2 5A [21:21:39]CommunicateWithHost err = 0 [21:21:39]CheckOFDResponse [21:21:39]1017 (14) - 77093643461234 [21:21:39]1041 (16) - 0000000000963346 [21:21:39]1040 (4) - 70019 [21:21:39]1012 (4) - 21.10.2024 15:13 [21:21:39]1206 (1) - 0 [21:21:39]OFD Sender: Remove packet 70019 [21:21:39]ProducePacketName [21:21:39]name=ofd_packets/00070019 [21:21:39]NVStorageDeleteData [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:36]ConnectInit Can't connect to host [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:10]accept exits with 9 [21:24:10]New connection [21:24:10]New thread 3067026788 created [21:24:10]Thread 3067170148 joined [21:24:10]Waiting for new connection... [21:24:10] Sock 9.Parse request [21:24:10]Sock 9.Check first char [21:24:10]Sock 9.First char is OK [21:24:10]request: POST /json_proto HTTP/1.0 [21:24:10]Method: POST [21:24:10]URL: /json_proto [21:24:10]Method is POST - this is cgi request [21:24:10]url: /json_proto [21:24:10]query_string will be loaded in cgi processing [21:24:10]execute_cgi json_proto POST (null) [21:24:10]execute_cgi path=json_proto method=POST [21:24:10]POST find Content-Length [21:24:10]Host: 172.17.50.3:8080 [21:24:10]Content-Length: 790 [21:24:10]Content-Type: application/json [21:24:10] [21:24:10]POST finish read [21:24:10]Found Content-Length = 790 [21:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53073", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:10]execute_script... [21:24: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)2885788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53073", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:10]POST & json_proto [21:24:10]process_json_proto [21:24:10]json parsed OK: [21:24:10]protocol is kg_v1.0 [21:24:10]action value=close_receipt [21:24:10]process_action close_receipt [21:24:10]cmd_close_receipt [21:24:10]MH_GetDate [21:24:10]Write to MH i2c: F0 00 00 6F 27 85 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 09 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 09 00 6F 27 00 7C C6 16 67 6B 98 1E 66 D4 [21:24:10]GetLastDocTimeStamp 1729545619 [21:24:10]current date 1729545852 [21:24:10]FM_GetShiftState [21:24:10]SAM_PROTO_GetShiftState [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 13 01 00 [21:24:10]Write to MH i2c: E2 08 00 70 27 80 13 01 00 00 00 00 00 14 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0E 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0E 00 70 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [21:24:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:24:10]wFMCommunicate OK [21:24:10]SAM_PROTO_GetShiftState done [21:24:10]FM_GetShiftState done [21:24:10]opened in 1729469703 [21:24:10]opened+sec_in_day 1729556103 [21:24:10]quantity*price = 0 [21:24:10]sum+1 = 1 [21:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 410 21.10.2024 21:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 53073 ФМ: 0000000000963346 ФД: 70020 ФПД: 243151967266281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70020&fm=243151967266281&tin=02508201610067®Number=0000000000156251&sum=0 [21:24:11]StoreToDocumentArchive [21:24:11]shift 194 fd 70020 [21:24:11]save to /storage/0194/doc_00070020 [21:24:11]save last doc name /storage/0194/doc_00070020 to /storage/kkm_last_doc_name [21:24:11]save OK [21:24:11]Clear old archive folders... [21:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:24:11]tlvbuf is 01163AB0 [21:24:11]SAM_PROTO_ClearQueue [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 09 00 00 [21:24:11]Write to MH i2c: E2 08 00 7D 27 80 09 00 00 00 00 00 00 16 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]SAM_PROTO_ClearQueue done [21:24:11]KKMCreateOFDPacket [21:24:11]OFDProtocolAddRootSTLVToBuf [21:24:11]FM_MakeSignedData [21:24:11]FM_MakeSignedData [21:24:11]SAM_PROTO_SignData [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 0D 01 02 [21:24:11]Write to MH i2c: E2 08 00 7E 27 80 0D 01 02 00 00 00 00 1E [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 7E 27 00 90 00 19 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]wFMCommunicate request_size=255 [21:24:11]MH_SAM_APDU [21:24:11]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7C C6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 11 01 00 35 04 06 00 DD 25 3A A2 [21:24:11]Write to MH i2c: E2 02 01 7F 27 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7C C6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 11 01 00 35 04 06 00 DD 25 3A A2 00 00 3C [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 03 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 03 00 7F 27 00 90 00 1A [21:24:12]RAPDU: 90 00 [21:24:12]wFMCommunicate OK [21:24:12]wFMCommunicate request_size=7 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 0D 02 02 02 A5 E9 [21:24:12]Write to MH i2c: E2 0A 00 80 27 80 0D 02 02 02 00 A5 E9 00 00 B3 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 03 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [21:24:12]RAPDU: 90 00 [21:24:12]wFMCommunicate OK [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 0D 03 02 [21:24:12]Write to MH i2c: E2 08 00 81 27 80 0D 03 02 00 00 00 00 23 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0B 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0B 00 81 27 00 6F 74 7E 1A 70 D9 F4 39 90 00 15 [21:24:12]RAPDU: 6F 74 7E 1A 70 D9 F4 39 90 00 [21:24:12]wFMCommunicate OK [21:24:12]SAM_PROTO_SignData done [21:24:12]FM_MakeSignedData done [21:24:12]CreateOFDProtocolMessage [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 11 00 00 [21:24:12]Write to MH i2c: E2 08 00 82 27 80 11 00 00 00 00 00 00 23 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 17 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 17 00 82 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [21:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:24:12]wFMCommunicate OK [21:24:12]CreateOFDProtocolMessage done [21:24:12]OFDSenderStorePacket 70020 [21:24:12]StoreOFDPacket docnum=70020 [21:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 10 04 01 27 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7C C6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 11 01 00 35 04 06 00 DD 25 3A A2 A5 E9 6F 74 7E 1A 70 D9 F4 39 [21:24:12]CheckFolder [21:24:12]dirname=/storage/ofd_packets [21:24:12]CheckFolder done [21:24:12]ProducePacketName [21:24:12]name=ofd_packets/00070020 [21:24:12]NVStorageSaveData ofd_packets/00070020 [21:24:12]File name is /storage/ofd_packets/00070020 [21:24:12]Write 298 bytes [21:24:12]NVStorageSaveData done [21:24:12]OFDSenderStorePacket done [21:24:12]KKMCreateOFDPacket done [21:24:12]NVStorageSaveData kkm_last_timestamp [21:24:12]File name is /storage/kkm_last_timestamp [21:24:12]Write 4 bytes [21:24:12]NVStorageSaveData done [21:24:12]ExternCall_PrintAddStr [21:24:12]wPrintStart [21:24:12]Write to MH i2c: 01 00 00 83 27 AA [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 07 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 07 00 83 27 00 00 00 00 00 FF 0F BF [21:24:12]RasterBufferAndPrint [21:24:12]line Счет N : (1)2885788 [21:24:12]line ИНН: 02508201610067 [21:24:12]line Контрольно-Кассовый Чек [21:24:12]line ПРОДАЖА [21:24:12]line ТРК (МРК, ГНК) : 61 [21:24:12]line Товар: 2710194210 [21:24:12]line ДТ-К-5 [21:24:12]line 10.000 * 0.00 [21:24:12]line = 0.00 [21:24:12]line НДС 12% НСП 1% [21:24:12]line > о реализуемом товаре [21:24:12]line ИТОГО: 0.00 [21:24:12]line НСП 1% : 0.00 [21:24:12]line НДС 12% : 0.00 [21:24:12]line Наличными: 0.00 [21:24:12]line Безнал.: 0.00 [21:24:12]line Место: АЗС № 85 "Партнер Нефть" [21:24:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:24:12]line СНО: Общий режим [21:24:12]line Чек 410 21.10.2024 21:24 [21:24:12]line Смена: 194 ФФД: 1.0 [21:24:12]line ЗНМ: 0300000167 [21:24:12]line РНМ: 0000000000156251 [21:24:12]line Версия ККМ: v1.0 [21:24:12]line Талоны: Топливная Карта [21:24:12]line 53073 [21:24:12]line ФМ: 0000000000963346 [21:24:12]line ФД: 70020 [21:24:12]line ФПД: 243151967266281 [21:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70020&fm=243151967266281&tin=02508201610067®Number=0000000000156251&sum=0 [21:24:12]OFD Sender: Processing packet 70020 [packets to send 18, broken 17] [21:24:12]ProducePacketName [21:24:12]name=ofd_packets/00070020 [21:24:12]OFD Sender: To server: pG, [21:24:12]CommunicateWithHost lk.salyk.kg:30040 [21:24:12]ConnectInit lk.salyk.kg [21:24:12]written 0, free lines is 4095 [21:24:12]Connected sock=10 [21:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB 10 04 01 27 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7C C6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 11 01 00 35 04 06 00 DD 25 3A A2 A5 E9 6F 74 7E 1A 70 D9 F4 39 [21:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 47 A1 47 00 64 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 11 01 00 F4 03 04 00 1F 70 16 67 B6 04 01 00 00 B2 F4 B1 5E 36 38 7F E4 [21:24:12]CommunicateWithHost err = 0 [21:24:12]CheckOFDResponse [21:24:12]1017 (14) - 77093643461234 [21:24:12]1041 (16) - 0000000000963346 [21:24:12]1040 (4) - 70020 [21:24:12]1012 (4) - 21.10.2024 15:15 [21:24:12]1206 (1) - 0 [21:24:12]OFD Sender: Remove packet 70020 [21:24:12]ProducePacketName [21:24:12]name=ofd_packets/00070020 [21:24:12]NVStorageDeleteData [21:24:13]Write to MH i2c: 01 00 00 AD 27 D4 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 07 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: 01 07 00 AD 27 00 00 00 00 00 EC 0C D3 [21:24:13]RasterBufferAndPrint [21:24:13]line [21:24:13]line [21:24:13]line [21:24:13]line [21:24:13]line [21:24:13]written 0, free lines is 3314 [21:24:13]MH_Cut [21:24:13]Write to MH i2c: D1 01 00 B4 27 01 AD [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: D1 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: D1 01 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: D1 01 00 B4 27 00 AC [21:24:13]Write to MH i2c: 01 00 00 B5 27 DC [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]OFD Sender: No OFD packet to send [21:24:13]*** Cut start [21:24:13]*** Partial cut [21:24:13]*** CUTSNS_PIN = 1 [21:24:13]*** CUTSNS_PIN = 0 [21:24:14]*** Brake cut motor [21:24:14]Read from MH i2c: 01 [21:24:14]MH_I2C_Read... [21:24:14]*** Stop cut motor [21:24:14]*** Cut end [21:24:14]Read from MH i2c: 01 07 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 B5 27 00 00 00 00 00 FF 0F F1 [21:24:14]process_action close_receipt done [21:24:14]requested_data is exist [21:24:14]produce_requested_data [21:24:14]requested_item fm.sn is exist - process it [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 11 00 00 [21:24:14]Write to MH i2c: E2 08 00 B6 27 80 11 00 00 00 00 00 00 57 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 B6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [21:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:24:14]wFMCommunicate OK [21:24:14]requested_item fd.num is exist - process it [21:24:14]SAM_PROTO_GetFieldsCounters [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 13 00 00 [21:24:14]Write to MH i2c: E2 08 00 B7 27 80 13 00 00 00 00 00 00 5A [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 62 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 62 00 B7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [21:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:14]wFMCommunicate OK [21:24:14]SAM_PROTO_GetFieldsCounters done [21:24:14]requested_item shift.num is exist - process it [21:24:14]requested_item shift.opened is exist - process it [21:24:14]req_shift_opened [21:24:14]FM_GetShiftState [21:24:14]SAM_PROTO_GetShiftState [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 13 01 00 [21:24:14]Write to MH i2c: E2 08 00 B8 27 80 13 01 00 00 00 00 00 5C [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0E 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0E 00 B8 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 88 [21:24:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:24:14]wFMCommunicate OK [21:24:14]SAM_PROTO_GetShiftState done [21:24:14]FM_GetShiftState done [21:24:14]req_shift_opened done [21:24:14]requested_item shift.open_date is exist - process it [21:24:14]req_shift_open_date [21:24:14]req_shift_open_date done [21:24:14]produce_requested_data done [21:24:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70020,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:24:14]process_action_free close_receipt [21:24:14]json_value_free [21:24:14]json_value_free done [21:24:14]process_json_proto returns [21:24:14]Send response to host [21:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70020,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:24:14]free response buf [21:24:14]execute_script done [21:24:14]execute_script returns [21:24:14]free content buf [21:24:14]Sock 9.Close socket [21:24:14]Sock 9.Thread stoped [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:41]accept exits with 7 [21:29:41]New connection [21:29:41]New thread 3067170148 created [21:29:41]Thread 3067026788 joined [21:29:41]Waiting for new connection... [21:29:41] Sock 7.Parse request [21:29:41]Sock 7.Check first char [21:29:41]Sock 7.First char is OK [21:29:41]request: POST /json_proto HTTP/1.0 [21:29:41]Method: POST [21:29:41]URL: /json_proto [21:29:41]Method is POST - this is cgi request [21:29:41]url: /json_proto [21:29:41]query_string will be loaded in cgi processing [21:29:41]execute_cgi json_proto POST (null) [21:29:41]execute_cgi path=json_proto method=POST [21:29:41]POST find Content-Length [21:29:41]Host: 172.17.50.3:8080 [21:29:41]Content-Length: 793 [21:29:41]Content-Type: application/json [21:29:41] [21:29:41]POST finish read [21:29:41]Found Content-Length = 793 [21:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885789", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:41]execute_script... [21:29: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)2885789", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:41]POST & json_proto [21:29:41]process_json_proto [21:29:41]json parsed OK: [21:29:41]protocol is kg_v1.0 [21:29:41]action value=close_receipt [21:29:41]process_action close_receipt [21:29:41]cmd_close_receipt [21:29:41]MH_GetDate [21:29:41]Write to MH i2c: F0 00 00 B9 27 CF [21:29:41]Write i2c OK [21:29:41]MH_I2C_Read... [21:29:41]Read from MH i2c: F0 [21:29:41]MH_I2C_Read... [21:29:41]Read from MH i2c: F0 09 00 [21:29:41]MH_I2C_Read... [21:29:41]Read from MH i2c: F0 09 00 B9 27 00 C7 C7 16 67 6B 98 1E 66 6A [21:29:41]GetLastDocTimeStamp 1729545852 [21:29:41]current date 1729546183 [21:29:41]FM_GetShiftState [21:29:41]SAM_PROTO_GetShiftState [21:29:41]wFMCommunicate request_size=4 [21:29:41]MH_SAM_APDU [21:29:41]CAPDU: 80 13 01 00 [21:29:41]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [21:29:41]Write i2c OK [21:29:41]MH_I2C_Read... [21:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:41]Read from MH i2c: E2 [21:29:41]MH_I2C_Read... [21:29:41]Read from MH i2c: E2 0E 00 [21:29:41]MH_I2C_Read... [21:29:41]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8A [21:29:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:29:41]wFMCommunicate OK [21:29:41]SAM_PROTO_GetShiftState done [21:29:41]FM_GetShiftState done [21:29:41]opened in 1729469703 [21:29:41]opened+sec_in_day 1729556103 [21:29:41]quantity*price = 0 [21:29:41]sum+1 = 1 [21:29:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 411 21.10.2024 21:29 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 03526 ФМ: 0000000000963346 ФД: 70021 ФПД: 173820064438721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70021&fm=173820064438721&tin=02508201610067®Number=0000000000156251&sum=0 [21:29:42]StoreToDocumentArchive [21:29:42]shift 194 fd 70021 [21:29:42]save to /storage/0194/doc_00070021 [21:29:42]save last doc name /storage/0194/doc_00070021 to /storage/kkm_last_doc_name [21:29:42]save OK [21:29:42]Clear old archive folders... [21:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:42]tlvbuf is 01189E70 [21:29:42]SAM_PROTO_ClearQueue [21:29:42]wFMCommunicate request_size=4 [21:29:42]MH_SAM_APDU [21:29:42]CAPDU: 80 09 00 00 [21:29:42]Write to MH i2c: E2 08 00 C7 27 80 09 00 00 00 00 00 00 60 [21:29:42]Write i2c OK [21:29:42]MH_I2C_Read... [21:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:42]Read from MH i2c: E2 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 03 00 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [21:29:42]RAPDU: 90 00 [21:29:42]wFMCommunicate OK [21:29:42]SAM_PROTO_ClearQueue done [21:29:42]KKMCreateOFDPacket [21:29:42]OFDProtocolAddRootSTLVToBuf [21:29:42]FM_MakeSignedData [21:29:42]FM_MakeSignedData [21:29:42]SAM_PROTO_SignData [21:29:42]wFMCommunicate request_size=4 [21:29:42]MH_SAM_APDU [21:29:42]CAPDU: 80 0D 01 02 [21:29:42]Write to MH i2c: E2 08 00 C8 27 80 0D 01 02 00 00 00 00 68 [21:29:42]Write i2c OK [21:29:42]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 C8 27 00 90 00 63 [21:29:43]RAPDU: 90 00 [21:29:43]wFMCommunicate OK [21:29:43]wFMCommunicate request_size=255 [21:29:43]MH_SAM_APDU [21:29:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 C7 C7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 11 01 00 35 04 06 00 9E [21:29:43]Write to MH i2c: E2 02 01 C9 27 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 C7 C7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 11 01 00 35 04 06 00 9E 00 00 78 [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [21:29:43]RAPDU: 90 00 [21:29:43]wFMCommunicate OK [21:29:43]wFMCommunicate request_size=10 [21:29:43]MH_SAM_APDU [21:29:43]CAPDU: 80 0D 02 02 05 16 A3 32 19 C1 [21:29:43]Write to MH i2c: E2 0D 00 CA 27 80 0D 02 02 05 00 16 A3 32 19 C1 00 00 3A [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [21:29:43]RAPDU: 90 00 [21:29:43]wFMCommunicate OK [21:29:43]wFMCommunicate request_size=4 [21:29:43]MH_SAM_APDU [21:29:43]CAPDU: 80 0D 03 02 [21:29:43]Write to MH i2c: E2 08 00 CB 27 80 0D 03 02 00 00 00 00 6D [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 0B 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 0B 00 CB 27 00 DF 9E 2C 93 55 F7 03 FA 90 00 F3 [21:29:43]RAPDU: DF 9E 2C 93 55 F7 03 FA 90 00 [21:29:43]wFMCommunicate OK [21:29:43]SAM_PROTO_SignData done [21:29:43]FM_MakeSignedData done [21:29:43]CreateOFDProtocolMessage [21:29:43]wFMCommunicate request_size=4 [21:29:43]MH_SAM_APDU [21:29:43]CAPDU: 80 11 00 00 [21:29:43]Write to MH i2c: E2 08 00 CC 27 80 11 00 00 00 00 00 00 6D [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 17 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 17 00 CC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [21:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:29:43]wFMCommunicate OK [21:29:43]CreateOFDProtocolMessage done [21:29:43]OFDSenderStorePacket 70021 [21:29:43]StoreOFDPacket docnum=70021 [21:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C CF 07 01 BE C8 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 C7 C7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 11 01 00 35 04 06 00 9E 16 A3 32 19 C1 DF 9E 2C 93 55 F7 03 FA [21:29:43]CheckFolder [21:29:43]dirname=/storage/ofd_packets [21:29:43]CheckFolder done [21:29:43]ProducePacketName [21:29:43]name=ofd_packets/00070021 [21:29:43]NVStorageSaveData ofd_packets/00070021 [21:29:43]File name is /storage/ofd_packets/00070021 [21:29:43]Write 301 bytes [21:29:43]NVStorageSaveData done [21:29:43]OFDSenderStorePacket done [21:29:43]KKMCreateOFDPacket done [21:29:43]NVStorageSaveData kkm_last_timestamp [21:29:43]File name is /storage/kkm_last_timestamp [21:29:43]Write 4 bytes [21:29:43]NVStorageSaveData done [21:29:43]ExternCall_PrintAddStr [21:29:43]wPrintStart [21:29:43]Write to MH i2c: 01 00 00 CD 27 F4 [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 07 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 07 00 CD 27 00 00 00 00 00 FF 0F 09 [21:29:43]RasterBufferAndPrint [21:29:43]line Счет N : (1)2885789 [21:29:43]line ИНН: 02508201610067 [21:29:43]line Контрольно-Кассовый Чек [21:29:43]line ПРОДАЖА [21:29:43]line ТРК (МРК, ГНК) : 42 [21:29:43]line Товар: 2710124130 [21:29:43]line Аи-92-К-5 [21:29:43]line 20.000 * 0.00 [21:29:43]line = 0.00 [21:29:43]line НДС 12% НСП 1% [21:29:43]line > о реализуемом товаре [21:29:43]line ИТОГО: 0.00 [21:29:43]line НСП 1% : 0.00 [21:29:43]line НДС 12% : 0.00 [21:29:43]line Наличными: 0.00 [21:29:43]line Безнал.: 0.00 [21:29:43]line Место: АЗС № 85 "Партнер Нефть" [21:29:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:29:43]line СНО: Общий режим [21:29:43]line Чек 411 21.10.2024 21:29 [21:29:43]line Смена: 194 ФФД: 1.0 [21:29:43]line ЗНМ: 0300000167 [21:29:43]line РНМ: 0000000000156251 [21:29:43]line Версия ККМ: v1.0 [21:29:43]line Талоны: Топливная Карта [21:29:43]line 03526 [21:29:43]line ФМ: 0000000000963346 [21:29:43]line ФД: 70021 [21:29:43]line ФПД: 173820064438721 [21:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212943&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70021&fm=173820064438721&tin=02508201610067®Number=0000000000156251&sum=0 [21:29:43]OFD Sender: Processing packet 70021 [packets to send 18, broken 17] [21:29:43]ProducePacketName [21:29:43]name=ofd_packets/00070021 [21:29:43]OFD Sender: To server: pG, [21:29:43]CommunicateWithHost lk.salyk.kg:30040 [21:29:43]ConnectInit lk.salyk.kg [21:29:43]written 0, free lines is 4095 [21:29:43]Connected sock=10 [21:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C CF 07 01 BE C8 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 C7 C7 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 11 01 00 35 04 06 00 9E 16 A3 32 19 C1 DF 9E 2C 93 55 F7 03 FA [21:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 AC 47 00 7F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 11 01 00 F4 03 04 00 6A 71 16 67 B6 04 01 00 00 61 8A B5 CE D8 6C 99 37 [21:29:44]CommunicateWithHost err = 0 [21:29:44]CheckOFDResponse [21:29:44]1017 (14) - 77093643461234 [21:29:44]1041 (16) - 0000000000963346 [21:29:44]1040 (4) - 70021 [21:29:44]1012 (4) - 21.10.2024 15:21 [21:29:44]1206 (1) - 0 [21:29:44]OFD Sender: Remove packet 70021 [21:29:44]ProducePacketName [21:29:44]name=ofd_packets/00070021 [21:29:44]NVStorageDeleteData [21:29:44]Write to MH i2c: 01 00 00 F7 27 1E [21:29:44]Write i2c OK [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: 01 [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: 01 07 00 [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: 01 07 00 F7 27 00 00 00 00 00 FF 0C 30 [21:29:44]RasterBufferAndPrint [21:29:44]line [21:29:44]line [21:29:44]line [21:29:44]line [21:29:44]line [21:29:44]written 0, free lines is 3333 [21:29:44]MH_Cut [21:29:44]Write to MH i2c: D1 01 00 FE 27 01 F7 [21:29:44]Write i2c OK [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: D1 [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: D1 01 00 [21:29:44]MH_I2C_Read... [21:29:44]Read from MH i2c: D1 01 00 FE 27 00 F6 [21:29:44]Write to MH i2c: 01 00 00 FF 27 26 [21:29:44]Write i2c OK [21:29:44]MH_I2C_Read... [21:29:44]OFD Sender: No OFD packet to send [21:29:44]*** Cut start [21:29:44]*** Partial cut [21:29:44]*** CUTSNS_PIN = 1 [21:29:44]*** CUTSNS_PIN = 0 [21:29:45]*** Brake cut motor [21:29:45]Read from MH i2c: 01 [21:29:45]MH_I2C_Read... [21:29:45]*** Stop cut motor [21:29:45]*** Cut end [21:29:45]Read from MH i2c: 01 07 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 FF 0F 3B [21:29:45]process_action close_receipt done [21:29:45]requested_data is exist [21:29:45]produce_requested_data [21:29:45]requested_item fm.sn is exist - process it [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 11 00 00 [21:29:45]Write to MH i2c: E2 08 00 00 28 80 11 00 00 00 00 00 00 A2 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 17 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 17 00 00 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [21:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:29:45]wFMCommunicate OK [21:29:45]requested_item fd.num is exist - process it [21:29:45]SAM_PROTO_GetFieldsCounters [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 13 00 00 [21:29:45]Write to MH i2c: E2 08 00 01 28 80 13 00 00 00 00 00 00 A5 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 62 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 62 00 01 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [21:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:45]wFMCommunicate OK [21:29:45]SAM_PROTO_GetFieldsCounters done [21:29:45]requested_item shift.num is exist - process it [21:29:45]requested_item shift.opened is exist - process it [21:29:45]req_shift_opened [21:29:45]FM_GetShiftState [21:29:45]SAM_PROTO_GetShiftState [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 13 01 00 [21:29:45]Write to MH i2c: E2 08 00 02 28 80 13 01 00 00 00 00 00 A7 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 0E 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 0E 00 02 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D3 [21:29:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:29:45]wFMCommunicate OK [21:29:45]SAM_PROTO_GetShiftState done [21:29:45]FM_GetShiftState done [21:29:45]req_shift_opened done [21:29:45]requested_item shift.open_date is exist - process it [21:29:45]req_shift_open_date [21:29:45]req_shift_open_date done [21:29:45]produce_requested_data done [21:29:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70021,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:29:45]process_action_free close_receipt [21:29:45]json_value_free [21:29:45]json_value_free done [21:29:45]process_json_proto returns [21:29:45]Send response to host [21:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70021,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:29:45]free response buf [21:29:45]execute_script done [21:29:45]execute_script returns [21:29:45]free content buf [21:29:45]Sock 7.Close socket [21:29:45]Sock 7.Thread stoped [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:03]accept exits with 9 [21:39:03]New connection [21:39:03]New thread 3067026788 created [21:39:03]Thread 3067170148 joined [21:39:03]Waiting for new connection... [21:39:03] Sock 9.Parse request [21:39:03]Sock 9.Check first char [21:39:03]Sock 9.First char is OK [21:39:03]request: POST /json_proto HTTP/1.0 [21:39:03]Method: POST [21:39:03]URL: /json_proto [21:39:03]Method is POST - this is cgi request [21:39:03]url: /json_proto [21:39:03]query_string will be loaded in cgi processing [21:39:03]execute_cgi json_proto POST (null) [21:39:03]execute_cgi path=json_proto method=POST [21:39:03]POST find Content-Length [21:39:03]Host: 172.17.50.3:8080 [21:39:03]Content-Length: 683 [21:39:03]Content-Type: application/json [21:39:03] [21:39:03]POST finish read [21:39:03]Found Content-Length = 683 [21:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885790", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:03]execute_script... [21:39: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)2885790", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:03]POST & json_proto [21:39:03]process_json_proto [21:39:03]json parsed OK: [21:39:03]protocol is kg_v1.0 [21:39:03]action value=close_receipt [21:39:03]process_action close_receipt [21:39:03]cmd_close_receipt [21:39:03]MH_GetDate [21:39:03]Write to MH i2c: F0 00 00 03 28 1A [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: F0 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: F0 09 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: F0 09 00 03 28 00 F9 C9 16 67 6B 98 1E 66 E9 [21:39:03]GetLastDocTimeStamp 1729546183 [21:39:03]current date 1729546745 [21:39:03]FM_GetShiftState [21:39:03]SAM_PROTO_GetShiftState [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 13 01 00 [21:39:03]Write to MH i2c: E2 08 00 04 28 80 13 01 00 00 00 00 00 A9 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 0E 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 0E 00 04 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D5 [21:39:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:39:03]wFMCommunicate OK [21:39:03]SAM_PROTO_GetShiftState done [21:39:03]FM_GetShiftState done [21:39:03]opened in 1729469703 [21:39:03]opened+sec_in_day 1729556103 [21:39:03]quantity*price = 100015 [21:39:03]sum+1 = 100017 [21:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 412 21.10.2024 21:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70022 ФПД: 68928545836126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70022&fm=68928545836126&tin=02508201610067®Number=0000000000156251&sum=100000 [21:39:04]StoreToDocumentArchive [21:39:04]shift 194 fd 70022 [21:39:04]save to /storage/0194/doc_00070022 [21:39:04]save last doc name /storage/0194/doc_00070022 to /storage/kkm_last_doc_name [21:39:04]save OK [21:39:04]Clear old archive folders... [21:39:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:04]tlvbuf is 011CD600 [21:39:04]SAM_PROTO_ClearQueue [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 09 00 00 [21:39:04]Write to MH i2c: E2 08 00 11 28 80 09 00 00 00 00 00 00 AB [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]SAM_PROTO_ClearQueue done [21:39:04]KKMCreateOFDPacket [21:39:04]OFDProtocolAddRootSTLVToBuf [21:39:04]FM_MakeSignedData [21:39:04]FM_MakeSignedData [21:39:04]SAM_PROTO_SignData [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 0D 01 02 [21:39:04]Write to MH i2c: E2 08 00 12 28 80 0D 01 02 00 00 00 00 B3 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]wFMCommunicate request_size=255 [21:39:04]MH_SAM_APDU [21:39: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 F9 C9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 11 01 00 35 04 06 00 3E [21:39:04]Write to MH i2c: E2 02 01 13 28 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 F9 C9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 11 01 00 35 04 06 00 3E 00 00 AA [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:05]OFD Sender: No OFD packet to send [21:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 03 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [21:39:05]RAPDU: 90 00 [21:39:05]wFMCommunicate OK [21:39:05]wFMCommunicate request_size=10 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 0D 02 02 05 B0 AD 7D 4C 5E [21:39:05]Write to MH i2c: E2 0D 00 14 28 80 0D 02 02 05 00 B0 AD 7D 4C 5E 00 00 44 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 03 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [21:39:05]RAPDU: 90 00 [21:39:05]wFMCommunicate OK [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 0D 03 02 [21:39:05]Write to MH i2c: E2 08 00 15 28 80 0D 03 02 00 00 00 00 B8 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0B 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0B 00 15 28 00 F4 A1 54 BD FA B2 DC B1 90 00 98 [21:39:05]RAPDU: F4 A1 54 BD FA B2 DC B1 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_SignData done [21:39:05]FM_MakeSignedData done [21:39:05]CreateOFDProtocolMessage [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 11 00 00 [21:39:05]Write to MH i2c: E2 08 00 16 28 80 11 00 00 00 00 00 00 B8 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 16 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [21:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:39:05]wFMCommunicate OK [21:39:05]CreateOFDProtocolMessage done [21:39:05]OFDSenderStorePacket 70022 [21:39:05]StoreOFDPacket docnum=70022 [21:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 4F 07 01 DB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 F9 C9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 11 01 00 35 04 06 00 3E B0 AD 7D 4C 5E F4 A1 54 BD FA B2 DC B1 [21:39:05]CheckFolder [21:39:05]dirname=/storage/ofd_packets [21:39:05]CheckFolder done [21:39:05]ProducePacketName [21:39:05]name=ofd_packets/00070022 [21:39:05]NVStorageSaveData ofd_packets/00070022 [21:39:05]File name is /storage/ofd_packets/00070022 [21:39:05]Write 301 bytes [21:39:05]NVStorageSaveData done [21:39:05]OFDSenderStorePacket done [21:39:05]KKMCreateOFDPacket done [21:39:05]NVStorageSaveData kkm_last_timestamp [21:39:05]File name is /storage/kkm_last_timestamp [21:39:05]Write 4 bytes [21:39:05]NVStorageSaveData done [21:39:05]ExternCall_PrintAddStr [21:39:05]wPrintStart [21:39:05]Write to MH i2c: 01 00 00 17 28 3F [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 17 28 00 00 00 00 00 FF 0F 54 [21:39:05]RasterBufferAndPrint [21:39:05]line Счет N : (1)2885790 [21:39:05]line ИНН: 02508201610067 [21:39:05]line Контрольно-Кассовый Чек [21:39:05]line ПРОДАЖА [21:39:05]line ТРК (МРК, ГНК) : 32 [21:39:05]line Товар: 2710124130 [21:39:05]line Аи-92-К-5 [21:39:05]line 14.950 * 66.90 [21:39:05]line = 1000.16 [21:39:05]line НДС 12% НСП 1% [21:39:05]line > о реализуемом товаре [21:39:05]line ОКРУГЛЕНИЕ: -0.16 [21:39:05]line ИТОГО: 1000.00 [21:39:05]line Внесено: 1000.00 [21:39:05]line СДАЧА: 0.00 [21:39:05]line НСП 1% : 8.85 [21:39:05]line НДС 12% : 106.21 [21:39:05]line Наличными: 1000.00 [21:39:05]line Безнал.: 0.00 [21:39:05]line Место: АЗС № 85 "Партнер Нефть" [21:39:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:39:05]line СНО: Общий режим [21:39:05]line Чек 412 21.10.2024 21:39 [21:39:05]line Смена: 194 ФФД: 1.0 [21:39:05]line ЗНМ: 0300000167 [21:39:05]line РНМ: 0000000000156251 [21:39:05]line Версия ККМ: v1.0 [21:39:05]line ФМ: 0000000000963346 [21:39:05]line ФД: 70022 [21:39:05]line ФПД: 68928545836126 [21:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213905&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70022&fm=68928545836126&tin=02508201610067®Number=0000000000156251&sum=100000 [21:39:05]OFD Sender: Processing packet 70022 [packets to send 18, broken 17] [21:39:05]ProducePacketName [21:39:05]name=ofd_packets/00070022 [21:39:05]OFD Sender: To server: pG, [21:39:05]CommunicateWithHost lk.salyk.kg:30040 [21:39:05]ConnectInit lk.salyk.kg [21:39:05]written 0, free lines is 4095 [21:39:05]Connected sock=10 [21:39:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 4F 07 01 DB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 F9 C9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 11 01 00 35 04 06 00 3E B0 AD 7D 4C 5E F4 A1 54 BD FA B2 DC B1 [21:39:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E B4 47 00 90 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 39 36 33 33 34 36 10 04 04 00 86 11 01 00 F4 03 04 00 9C 73 16 67 B6 04 01 00 00 33 81 12 E7 54 6D 33 A4 [21:39:05]CommunicateWithHost err = 0 [21:39:05]CheckOFDResponse [21:39:05]1017 (14) - 77093643461234 [21:39:05]1041 (16) - 0000000000963346 [21:39:05]1040 (4) - 70022 [21:39:05]1012 (4) - 21.10.2024 15:30 [21:39:05]1206 (1) - 0 [21:39:05]OFD Sender: Remove packet 70022 [21:39:05]ProducePacketName [21:39:05]name=ofd_packets/00070022 [21:39:05]NVStorageDeleteData [21:39:06]Write to MH i2c: 01 00 00 42 28 6A [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 07 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 07 00 42 28 00 00 00 00 00 E6 0C 63 [21:39:06]RasterBufferAndPrint [21:39:06]line [21:39:06]line [21:39:06]line [21:39:06]line [21:39:06]line [21:39:06]written 0, free lines is 3309 [21:39:06]MH_Cut [21:39:06]Write to MH i2c: D1 01 00 49 28 01 43 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: D1 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: D1 01 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: D1 01 00 49 28 00 42 [21:39:06]Write to MH i2c: 01 00 00 4A 28 72 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]OFD Sender: No OFD packet to send [21:39:06]*** Cut start [21:39:06]*** Partial cut [21:39:06]*** CUTSNS_PIN = 1 [21:39:06]*** CUTSNS_PIN = 0 [21:39:07]*** Brake cut motor [21:39:07]Read from MH i2c: 01 [21:39:07]MH_I2C_Read... [21:39:07]*** Stop cut motor [21:39:07]*** Cut end [21:39:07]Read from MH i2c: 01 07 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 FF 0F 87 [21:39:07]process_action close_receipt done [21:39:07]requested_data is exist [21:39:07]produce_requested_data [21:39:07]requested_item fm.sn is exist - process it [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 11 00 00 [21:39:07]Write to MH i2c: E2 08 00 4B 28 80 11 00 00 00 00 00 00 ED [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 17 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 17 00 4B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [21:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:39:07]wFMCommunicate OK [21:39:07]requested_item fd.num is exist - process it [21:39:07]SAM_PROTO_GetFieldsCounters [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 13 00 00 [21:39:07]Write to MH i2c: E2 08 00 4C 28 80 13 00 00 00 00 00 00 F0 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 62 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 62 00 4C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [21:39:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:07]wFMCommunicate OK [21:39:07]SAM_PROTO_GetFieldsCounters done [21:39:07]requested_item shift.num is exist - process it [21:39:07]requested_item shift.opened is exist - process it [21:39:07]req_shift_opened [21:39:07]FM_GetShiftState [21:39:07]SAM_PROTO_GetShiftState [21:39:07]wFMCommunicate request_size=4 [21:39:07]MH_SAM_APDU [21:39:07]CAPDU: 80 13 01 00 [21:39:07]Write to MH i2c: E2 08 00 4D 28 80 13 01 00 00 00 00 00 F2 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:07]Read from MH i2c: E2 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 0E 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: E2 0E 00 4D 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1E [21:39:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:39:07]wFMCommunicate OK [21:39:07]SAM_PROTO_GetShiftState done [21:39:07]FM_GetShiftState done [21:39:07]req_shift_opened done [21:39:07]requested_item shift.open_date is exist - process it [21:39:07]req_shift_open_date [21:39:07]req_shift_open_date done [21:39:07]produce_requested_data done [21:39:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70022,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:39:07]process_action_free close_receipt [21:39:07]json_value_free [21:39:07]json_value_free done [21:39:07]process_json_proto returns [21:39:07]Send response to host [21:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70022,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:39:07]free response buf [21:39:07]execute_script done [21:39:07]execute_script returns [21:39:07]free content buf [21:39:07]Sock 9.Close socket [21:39:07]Sock 9.Thread stoped [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]recv_with_timeout no data received [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:48]accept exits with 7 [21:53:48]New connection [21:53:48]New thread 3067170148 created [21:53:48]Thread 3067026788 joined [21:53:48]Waiting for new connection... [21:53:48] Sock 7.Parse request [21:53:48]Sock 7.Check first char [21:53:48]Sock 7.First char is OK [21:53:48]request: POST /json_proto HTTP/1.0 [21:53:48]Method: POST [21:53:48]URL: /json_proto [21:53:48]Method is POST - this is cgi request [21:53:48]url: /json_proto [21:53:48]query_string will be loaded in cgi processing [21:53:48]execute_cgi json_proto POST (null) [21:53:48]execute_cgi path=json_proto method=POST [21:53:48]POST find Content-Length [21:53:48]Host: 172.17.50.3:8080 [21:53:48]Content-Length: 683 [21:53:48]Content-Type: application/json [21:53:48] [21:53:48]POST finish read [21:53:48]Found Content-Length = 683 [21:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885791", "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" ] } } [21:53:48]execute_script... [21:53: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)2885791", "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" ] } } [21:53:48]POST & json_proto [21:53:48]process_json_proto [21:53:48]json parsed OK: [21:53:48]protocol is kg_v1.0 [21:53:48]action value=close_receipt [21:53:48]process_action close_receipt [21:53:48]cmd_close_receipt [21:53:48]MH_GetDate [21:53:48]Write to MH i2c: F0 00 00 4E 28 65 [21:53:48]Write i2c OK [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: F0 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: F0 09 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: F0 09 00 4E 28 00 6E CD 16 67 6B 98 1E 66 AD [21:53:48]GetLastDocTimeStamp 1729546745 [21:53:48]current date 1729547630 [21:53:48]FM_GetShiftState [21:53:48]SAM_PROTO_GetShiftState [21:53:48]wFMCommunicate request_size=4 [21:53:48]MH_SAM_APDU [21:53:48]CAPDU: 80 13 01 00 [21:53:48]Write to MH i2c: E2 08 00 4F 28 80 13 01 00 00 00 00 00 F4 [21:53:48]Write i2c OK [21:53:48]MH_I2C_Read... [21:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:48]Read from MH i2c: E2 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 0E 00 [21:53:48]MH_I2C_Read... [21:53:48]Read from MH i2c: E2 0E 00 4F 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 20 [21:53:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:53:48]wFMCommunicate OK [21:53:48]SAM_PROTO_GetShiftState done [21:53:48]FM_GetShiftState done [21:53:48]opened in 1729469703 [21:53:48]opened+sec_in_day 1729556103 [21:53:48]quantity*price = 150032 [21:53:48]sum+1 = 150033 [21:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 413 21.10.2024 21:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70023 ФПД: 260429964987528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70023&fm=260429964987528&tin=02508201610067®Number=0000000000156251&sum=150000 [21:53:49]StoreToDocumentArchive [21:53:49]shift 194 fd 70023 [21:53:49]save to /storage/0194/doc_00070023 [21:53:49]save last doc name /storage/0194/doc_00070023 to /storage/kkm_last_doc_name [21:53:49]save OK [21:53:49]Clear old archive folders... [21:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:49]tlvbuf is 010FF650 [21:53:49]SAM_PROTO_ClearQueue [21:53:49]wFMCommunicate request_size=4 [21:53:49]MH_SAM_APDU [21:53:49]CAPDU: 80 09 00 00 [21:53:49]Write to MH i2c: E2 08 00 5C 28 80 09 00 00 00 00 00 00 F6 [21:53:49]Write i2c OK [21:53:49]MH_I2C_Read... [21:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:49]Read from MH i2c: E2 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 03 00 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [21:53:49]RAPDU: 90 00 [21:53:49]wFMCommunicate OK [21:53:49]SAM_PROTO_ClearQueue done [21:53:49]KKMCreateOFDPacket [21:53:49]OFDProtocolAddRootSTLVToBuf [21:53:49]FM_MakeSignedData [21:53:49]FM_MakeSignedData [21:53:49]SAM_PROTO_SignData [21:53:49]wFMCommunicate request_size=4 [21:53:49]MH_SAM_APDU [21:53:49]CAPDU: 80 0D 01 02 [21:53:49]Write to MH i2c: E2 08 00 5D 28 80 0D 01 02 00 00 00 00 FE [21:53:49]Write i2c OK [21:53:49]MH_I2C_Read... [21:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:49]Read from MH i2c: E2 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 03 00 [21:53:49]MH_I2C_Read... [21:53:49]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [21:53:49]RAPDU: 90 00 [21:53:49]wFMCommunicate OK [21:53:49]wFMCommunicate request_size=255 [21:53:49]MH_SAM_APDU [21:53: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 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 9D 01 00 00 F4 03 04 00 6E CD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 11 01 00 35 04 06 00 EC [21:53:49]Write to MH i2c: E2 02 01 5E 28 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 9D 01 00 00 F4 03 04 00 6E CD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 11 01 00 35 04 06 00 EC 00 00 87 [21:53:49]Write i2c OK [21:53:49]MH_I2C_Read... [21:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:50]Read from MH i2c: E2 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 03 00 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [21:53:50]RAPDU: 90 00 [21:53:50]wFMCommunicate OK [21:53:50]wFMCommunicate request_size=10 [21:53:50]MH_SAM_APDU [21:53:50]CAPDU: 80 0D 02 02 05 DC 13 8D 4C 88 [21:53:50]Write to MH i2c: E2 0D 00 5F 28 80 0D 02 02 05 00 DC 13 8D 4C 88 00 00 5B [21:53:50]Write i2c OK [21:53:50]MH_I2C_Read... [21:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:50]Read from MH i2c: E2 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 03 00 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [21:53:50]RAPDU: 90 00 [21:53:50]wFMCommunicate OK [21:53:50]wFMCommunicate request_size=4 [21:53:50]MH_SAM_APDU [21:53:50]CAPDU: 80 0D 03 02 [21:53:50]Write to MH i2c: E2 08 00 60 28 80 0D 03 02 00 00 00 00 03 [21:53:50]Write i2c OK [21:53:50]MH_I2C_Read... [21:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:50]Read from MH i2c: E2 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 0B 00 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 0B 00 60 28 00 9F 18 8E F3 48 4A 71 90 90 00 CF [21:53:50]RAPDU: 9F 18 8E F3 48 4A 71 90 90 00 [21:53:50]wFMCommunicate OK [21:53:50]SAM_PROTO_SignData done [21:53:50]FM_MakeSignedData done [21:53:50]CreateOFDProtocolMessage [21:53:50]wFMCommunicate request_size=4 [21:53:50]MH_SAM_APDU [21:53:50]CAPDU: 80 11 00 00 [21:53:50]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [21:53:50]Write i2c OK [21:53:50]MH_I2C_Read... [21:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:50]Read from MH i2c: E2 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 17 00 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [21:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:53:50]wFMCommunicate OK [21:53:50]CreateOFDProtocolMessage done [21:53:50]OFDSenderStorePacket 70023 [21:53:50]StoreOFDPacket docnum=70023 [21:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3F AB 07 01 9A 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 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 9D 01 00 00 F4 03 04 00 6E CD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 11 01 00 35 04 06 00 EC DC 13 8D 4C 88 9F 18 8E F3 48 4A 71 90 [21:53:50]CheckFolder [21:53:50]dirname=/storage/ofd_packets [21:53:50]CheckFolder done [21:53:50]ProducePacketName [21:53:50]name=ofd_packets/00070023 [21:53:50]NVStorageSaveData ofd_packets/00070023 [21:53:50]File name is /storage/ofd_packets/00070023 [21:53:50]Write 301 bytes [21:53:50]NVStorageSaveData done [21:53:50]OFDSenderStorePacket done [21:53:50]KKMCreateOFDPacket done [21:53:50]NVStorageSaveData kkm_last_timestamp [21:53:50]File name is /storage/kkm_last_timestamp [21:53:50]Write 4 bytes [21:53:50]NVStorageSaveData done [21:53:50]ExternCall_PrintAddStr [21:53:50]wPrintStart [21:53:50]Write to MH i2c: 01 00 00 62 28 8A [21:53:50]Write i2c OK [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: 01 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: 01 07 00 [21:53:50]MH_I2C_Read... [21:53:50]Read from MH i2c: 01 07 00 62 28 00 00 00 00 00 FF 0F 9F [21:53:50]RasterBufferAndPrint [21:53:50]line Счет N : (1)2885791 [21:53:50]line ИНН: 02508201610067 [21:53:50]line Контрольно-Кассовый Чек [21:53:50]line ПРОДАЖА [21:53:50]line ТРК (МРК, ГНК) : 33 [21:53:50]line Товар: 2710124500 [21:53:50]line Аи-95-К-5 [21:53:50]line 20.220 * 74.20 [21:53:50]line = 1500.32 [21:53:50]line НДС 12% НСП 1% [21:53:50]line > о реализуемом товаре [21:53:50]line ОКРУГЛЕНИЕ: -0.32 [21:53:50]line ИТОГО: 1500.00 [21:53:50]line Внесено: 1500.00 [21:53:50]line СДАЧА: 0.00 [21:53:50]line НСП 1% : 13.28 [21:53:50]line НДС 12% : 159.33 [21:53:50]line Наличными: 1500.00 [21:53:50]line Безнал.: 0.00 [21:53:50]line Место: АЗС № 85 "Партнер Нефть" [21:53:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:53:50]line СНО: Общий режим [21:53:50]line Чек 413 21.10.2024 21:53 [21:53:50]line Смена: 194 ФФД: 1.0 [21:53:50]line ЗНМ: 0300000167 [21:53:50]line РНМ: 0000000000156251 [21:53:50]line Версия ККМ: v1.0 [21:53:50]line ФМ: 0000000000963346 [21:53:50]line ФД: 70023 [21:53:50]line ФПД: 260429964987528 [21:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70023&fm=260429964987528&tin=02508201610067®Number=0000000000156251&sum=150000 [21:53:50]OFD Sender: Processing packet 70023 [packets to send 18, broken 17] [21:53:50]ProducePacketName [21:53:50]name=ofd_packets/00070023 [21:53:50]OFD Sender: To server: pG, [21:53:50]CommunicateWithHost lk.salyk.kg:30040 [21:53:50]ConnectInit lk.salyk.kg [21:53:50]written 0, free lines is 4095 [21:53:50]Connected sock=10 [21:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3F AB 07 01 9A 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 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 9D 01 00 00 F4 03 04 00 6E CD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 11 01 00 35 04 06 00 EC DC 13 8D 4C 88 9F 18 8E F3 48 4A 71 90 [21:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 14 9D 47 00 12 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 11 01 00 F4 03 04 00 11 77 16 67 B6 04 01 00 00 17 B6 22 5A 36 53 80 3F [21:53:51]CommunicateWithHost err = 0 [21:53:51]CheckOFDResponse [21:53:51]1017 (14) - 77093643461234 [21:53:51]1041 (16) - 0000000000963346 [21:53:51]1040 (4) - 70023 [21:53:51]1012 (4) - 21.10.2024 15:45 [21:53:51]1206 (1) - 0 [21:53:51]OFD Sender: Remove packet 70023 [21:53:51]ProducePacketName [21:53:51]name=ofd_packets/00070023 [21:53:51]NVStorageDeleteData [21:53:51]Write to MH i2c: 01 00 00 8D 28 B5 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 07 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: 01 07 00 8D 28 00 00 00 00 00 F5 0C BD [21:53:51]RasterBufferAndPrint [21:53:51]line [21:53:51]line [21:53:51]line [21:53:51]line [21:53:51]line [21:53:51]written 0, free lines is 3323 [21:53:51]MH_Cut [21:53:51]Write to MH i2c: D1 01 00 94 28 01 8E [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: D1 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: D1 01 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: D1 01 00 94 28 00 8D [21:53:51]Write to MH i2c: 01 00 00 95 28 BD [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]OFD Sender: No OFD packet to send [21:53:51]*** Cut start [21:53:51]*** Partial cut [21:53:51]*** CUTSNS_PIN = 1 [21:53:51]*** CUTSNS_PIN = 0 [21:53:52]*** Brake cut motor [21:53:52]Read from MH i2c: 01 [21:53:52]MH_I2C_Read... [21:53:52]*** Stop cut motor [21:53:52]*** Cut end [21:53:52]Read from MH i2c: 01 07 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 FF 0F D2 [21:53:52]process_action close_receipt done [21:53:52]requested_data is exist [21:53:52]produce_requested_data [21:53:52]requested_item fm.sn is exist - process it [21:53:52]wFMCommunicate request_size=4 [21:53:52]MH_SAM_APDU [21:53:52]CAPDU: 80 11 00 00 [21:53:52]Write to MH i2c: E2 08 00 96 28 80 11 00 00 00 00 00 00 38 [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:52]Read from MH i2c: E2 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 17 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 17 00 96 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [21:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:53:52]wFMCommunicate OK [21:53:52]requested_item fd.num is exist - process it [21:53:52]SAM_PROTO_GetFieldsCounters [21:53:52]wFMCommunicate request_size=4 [21:53:52]MH_SAM_APDU [21:53:52]CAPDU: 80 13 00 00 [21:53:52]Write to MH i2c: E2 08 00 97 28 80 13 00 00 00 00 00 00 3B [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:52]Read from MH i2c: E2 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 62 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 62 00 97 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [21:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:52]wFMCommunicate OK [21:53:52]SAM_PROTO_GetFieldsCounters done [21:53:52]requested_item shift.num is exist - process it [21:53:52]requested_item shift.opened is exist - process it [21:53:52]req_shift_opened [21:53:52]FM_GetShiftState [21:53:52]SAM_PROTO_GetShiftState [21:53:52]wFMCommunicate request_size=4 [21:53:52]MH_SAM_APDU [21:53:52]CAPDU: 80 13 01 00 [21:53:52]Write to MH i2c: E2 08 00 98 28 80 13 01 00 00 00 00 00 3D [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:52]Read from MH i2c: E2 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 0E 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: E2 0E 00 98 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 69 [21:53:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:53:52]wFMCommunicate OK [21:53:52]SAM_PROTO_GetShiftState done [21:53:52]FM_GetShiftState done [21:53:52]req_shift_opened done [21:53:52]requested_item shift.open_date is exist - process it [21:53:52]req_shift_open_date [21:53:52]req_shift_open_date done [21:53:52]produce_requested_data done [21:53:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70023,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:53:52]process_action_free close_receipt [21:53:52]json_value_free [21:53:52]json_value_free done [21:53:52]process_json_proto returns [21:53:52]Send response to host [21:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70023,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:53:52]free response buf [21:53:52]execute_script done [21:53:52]execute_script returns [21:53:52]free content buf [21:53:52]Sock 7.Close socket [21:53:52]Sock 7.Thread stoped [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:30]accept exits with 9 [21:57:30]New connection [21:57:30]New thread 3067026788 created [21:57:30]Thread 3067170148 joined [21:57:30]Waiting for new connection... [21:57:30] Sock 9.Parse request [21:57:30]Sock 9.Check first char [21:57:30]Sock 9.First char is OK [21:57:30]request: POST /json_proto HTTP/1.0 [21:57:30]Method: POST [21:57:30]URL: /json_proto [21:57:30]Method is POST - this is cgi request [21:57:30]url: /json_proto [21:57:30]query_string will be loaded in cgi processing [21:57:30]execute_cgi json_proto POST (null) [21:57:30]execute_cgi path=json_proto method=POST [21:57:30]POST find Content-Length [21:57:30]Host: 172.17.50.3:8080 [21:57:30]Content-Length: 680 [21:57:30]Content-Type: application/json [21:57:30] [21:57:30]POST finish read [21:57:30]Found Content-Length = 680 [21:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.140, "sum" : 1001.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1001.00, "total" : 1001.00, "payments": [ { "type": 0, "sum" : 1001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:30]execute_script... [21:57: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)2885792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.140, "sum" : 1001.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1001.00, "total" : 1001.00, "payments": [ { "type": 0, "sum" : 1001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:30]POST & json_proto [21:57:30]process_json_proto [21:57:30]json parsed OK: [21:57:30]protocol is kg_v1.0 [21:57:30]action value=close_receipt [21:57:30]process_action close_receipt [21:57:30]cmd_close_receipt [21:57:30]MH_GetDate [21:57:30]Write to MH i2c: F0 00 00 99 28 B0 [21:57:30]Write i2c OK [21:57:30]MH_I2C_Read... [21:57:30]Read from MH i2c: F0 [21:57:30]MH_I2C_Read... [21:57:30]Read from MH i2c: F0 09 00 [21:57:30]MH_I2C_Read... [21:57:30]Read from MH i2c: F0 09 00 99 28 00 4C CE 16 67 6B 98 1E 66 D7 [21:57:30]GetLastDocTimeStamp 1729547630 [21:57:30]current date 1729547852 [21:57:30]FM_GetShiftState [21:57:30]SAM_PROTO_GetShiftState [21:57:30]wFMCommunicate request_size=4 [21:57:30]MH_SAM_APDU [21:57:30]CAPDU: 80 13 01 00 [21:57:30]Write to MH i2c: E2 08 00 9A 28 80 13 01 00 00 00 00 00 3F [21:57:30]Write i2c OK [21:57:30]MH_I2C_Read... [21:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:30]Read from MH i2c: E2 [21:57:30]MH_I2C_Read... [21:57:30]Read from MH i2c: E2 0E 00 [21:57:30]MH_I2C_Read... [21:57:30]Read from MH i2c: E2 0E 00 9A 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6B [21:57:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:57:30]wFMCommunicate OK [21:57:30]SAM_PROTO_GetShiftState done [21:57:30]FM_GetShiftState done [21:57:30]opened in 1729469703 [21:57:30]opened+sec_in_day 1729556103 [21:57:30]quantity*price = 100126 [21:57:30]sum+1 = 100128 [21:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1001.00 Внесено: 1001.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.33 Наличными: 1001.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 414 21.10.2024 21:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70024 ФПД: 107049659131952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70024&fm=107049659131952&tin=02508201610067®Number=0000000000156251&sum=100100 [21:57:32]StoreToDocumentArchive [21:57:32]shift 194 fd 70024 [21:57:32]save to /storage/0194/doc_00070024 [21:57:32]save last doc name /storage/0194/doc_00070024 to /storage/kkm_last_doc_name [21:57:32]save OK [21:57:32]Clear old archive folders... [21:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:57:32]tlvbuf is 0111D6D0 [21:57:32]SAM_PROTO_ClearQueue [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 09 00 00 [21:57:32]Write to MH i2c: E2 08 00 A7 28 80 09 00 00 00 00 00 00 41 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]SAM_PROTO_ClearQueue done [21:57:32]KKMCreateOFDPacket [21:57:32]OFDProtocolAddRootSTLVToBuf [21:57:32]FM_MakeSignedData [21:57:32]FM_MakeSignedData [21:57:32]SAM_PROTO_SignData [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 0D 01 02 [21:57:32]Write to MH i2c: E2 08 00 A8 28 80 0D 01 02 00 00 00 00 49 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]wFMCommunicate request_size=255 [21:57:32]MH_SAM_APDU [21:57:32]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1F 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 4C CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 11 01 00 35 04 06 00 61 5C 70 E7 [21:57:32]Write to MH i2c: E2 02 01 A9 28 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1F 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 4C CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 11 01 00 35 04 06 00 61 5C 70 E7 00 00 98 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]wFMCommunicate request_size=7 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 0D 02 02 02 E8 30 [21:57:32]Write to MH i2c: E2 0A 00 AA 28 80 0D 02 02 02 00 E8 30 00 00 68 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [21:57:32]RAPDU: 90 00 [21:57:32]wFMCommunicate OK [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 0D 03 02 [21:57:32]Write to MH i2c: E2 08 00 AB 28 80 0D 03 02 00 00 00 00 4E [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0B 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0B 00 AB 28 00 11 0C 2D D3 12 58 98 CF 90 00 3D [21:57:32]RAPDU: 11 0C 2D D3 12 58 98 CF 90 00 [21:57:32]wFMCommunicate OK [21:57:32]SAM_PROTO_SignData done [21:57:32]FM_MakeSignedData done [21:57:32]CreateOFDProtocolMessage [21:57:32]wFMCommunicate request_size=4 [21:57:32]MH_SAM_APDU [21:57:32]CAPDU: 80 11 00 00 [21:57:32]Write to MH i2c: E2 08 00 AC 28 80 11 00 00 00 00 00 00 4E [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 17 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 17 00 AC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [21:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:57:32]wFMCommunicate OK [21:57:32]CreateOFDProtocolMessage done [21:57:32]OFDSenderStorePacket 70024 [21:57:32]StoreOFDPacket docnum=70024 [21:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 59 04 01 8C C8 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1F 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 4C CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 11 01 00 35 04 06 00 61 5C 70 E7 E8 30 11 0C 2D D3 12 58 98 CF [21:57:32]CheckFolder [21:57:32]dirname=/storage/ofd_packets [21:57:32]CheckFolder done [21:57:32]ProducePacketName [21:57:32]name=ofd_packets/00070024 [21:57:32]NVStorageSaveData ofd_packets/00070024 [21:57:32]File name is /storage/ofd_packets/00070024 [21:57:32]Write 298 bytes [21:57:32]NVStorageSaveData done [21:57:32]OFDSenderStorePacket done [21:57:32]KKMCreateOFDPacket done [21:57:32]NVStorageSaveData kkm_last_timestamp [21:57:32]File name is /storage/kkm_last_timestamp [21:57:32]Write 4 bytes [21:57:32]NVStorageSaveData done [21:57:32]ExternCall_PrintAddStr [21:57:32]wPrintStart [21:57:32]Write to MH i2c: 01 00 00 AD 28 D5 [21:57:32]Write i2c OK [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: 01 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: 01 07 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: 01 07 00 AD 28 00 00 00 00 00 FF 0F EA [21:57:32]RasterBufferAndPrint [21:57:32]line Счет N : (1)2885792 [21:57:32]line ИНН: 02508201610067 [21:57:32]line Контрольно-Кассовый Чек [21:57:32]line ПРОДАЖА [21:57:32]line ТРК (МРК, ГНК) : 61 [21:57:32]line Товар: 2710194210 [21:57:32]line ДТ-К-5 [21:57:32]line 13.140 * 76.20 [21:57:32]line = 1001.27 [21:57:32]line НДС 12% НСП 1% [21:57:32]line > о реализуемом товаре [21:57:32]line ОКРУГЛЕНИЕ: -0.27 [21:57:32]line ИТОГО: 1001.00 [21:57:32]line Внесено: 1001.00 [21:57:32]line СДАЧА: 0.00 [21:57:32]line НСП 1% : 8.86 [21:57:32]line НДС 12% : 106.33 [21:57:32]line Наличными: 1001.00 [21:57:32]line Безнал.: 0.00 [21:57:32]line Место: АЗС № 85 "Партнер Нефть" [21:57:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:57:32]line СНО: Общий режим [21:57:32]line Чек 414 21.10.2024 21:57 [21:57:32]line Смена: 194 ФФД: 1.0 [21:57:32]line ЗНМ: 0300000167 [21:57:32]line РНМ: 0000000000156251 [21:57:32]line Версия ККМ: v1.0 [21:57:32]line ФМ: 0000000000963346 [21:57:32]line ФД: 70024 [21:57:32]line ФПД: 107049659131952 [21:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70024&fm=107049659131952&tin=02508201610067®Number=0000000000156251&sum=100100 [21:57:32]OFD Sender: Processing packet 70024 [packets to send 18, broken 17] [21:57:32]ProducePacketName [21:57:32]name=ofd_packets/00070024 [21:57:32]OFD Sender: To server: pG, [21:57:32]CommunicateWithHost lk.salyk.kg:30040 [21:57:32]ConnectInit lk.salyk.kg [21:57:32]written 0, free lines is 4095 [21:57:32]Connected sock=11 [21:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 59 04 01 8C C8 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1F 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 29 00 00 00 00 07 04 06 00 04 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 4C CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 11 01 00 35 04 06 00 61 5C 70 E7 E8 30 11 0C 2D D3 12 58 98 CF [21:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C9 8C 47 00 38 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 11 01 00 F4 03 04 00 EF 77 16 67 B6 04 01 00 00 26 91 85 67 1C 0B 5E E6 [21:57:33]CommunicateWithHost err = 0 [21:57:33]CheckOFDResponse [21:57:33]1017 (14) - 77093643461234 [21:57:33]1041 (16) - 0000000000963346 [21:57:33]1040 (4) - 70024 [21:57:33]1012 (4) - 21.10.2024 15:49 [21:57:33]1206 (1) - 0 [21:57:33]OFD Sender: Remove packet 70024 [21:57:33]ProducePacketName [21:57:33]name=ofd_packets/00070024 [21:57:33]NVStorageDeleteData [21:57:33]Write to MH i2c: 01 00 00 D8 28 00 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 D8 28 00 00 00 00 00 E4 0C F7 [21:57:33]RasterBufferAndPrint [21:57:33]line [21:57:33]line [21:57:33]line [21:57:33]line [21:57:33]line [21:57:33]written 0, free lines is 3306 [21:57:33]MH_Cut [21:57:33]Write to MH i2c: D1 01 00 DF 28 01 D9 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: D1 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: D1 01 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: D1 01 00 DF 28 00 D8 [21:57:33]Write to MH i2c: 01 00 00 E0 28 08 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]OFD Sender: No OFD packet to send [21:57:34]*** Cut start [21:57:34]*** Partial cut [21:57:34]*** CUTSNS_PIN = 1 [21:57:34]*** CUTSNS_PIN = 0 [21:57:34]*** Brake cut motor [21:57:34]Read from MH i2c: 01 [21:57:34]MH_I2C_Read... [21:57:34]*** Stop cut motor [21:57:34]*** Cut end [21:57:34]Read from MH i2c: 01 07 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 FF 0F 1D [21:57:34]process_action close_receipt done [21:57:34]requested_data is exist [21:57:34]produce_requested_data [21:57:34]requested_item fm.sn is exist - process it [21:57:34]wFMCommunicate request_size=4 [21:57:34]MH_SAM_APDU [21:57:34]CAPDU: 80 11 00 00 [21:57:34]Write to MH i2c: E2 08 00 E1 28 80 11 00 00 00 00 00 00 83 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:34]Read from MH i2c: E2 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 17 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 17 00 E1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [21:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:57:34]wFMCommunicate OK [21:57:34]requested_item fd.num is exist - process it [21:57:34]SAM_PROTO_GetFieldsCounters [21:57:34]wFMCommunicate request_size=4 [21:57:34]MH_SAM_APDU [21:57:34]CAPDU: 80 13 00 00 [21:57:34]Write to MH i2c: E2 08 00 E2 28 80 13 00 00 00 00 00 00 86 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:34]Read from MH i2c: E2 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 62 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 62 00 E2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [21:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:34]wFMCommunicate OK [21:57:34]SAM_PROTO_GetFieldsCounters done [21:57:34]requested_item shift.num is exist - process it [21:57:34]requested_item shift.opened is exist - process it [21:57:34]req_shift_opened [21:57:34]FM_GetShiftState [21:57:34]SAM_PROTO_GetShiftState [21:57:34]wFMCommunicate request_size=4 [21:57:34]MH_SAM_APDU [21:57:34]CAPDU: 80 13 01 00 [21:57:34]Write to MH i2c: E2 08 00 E3 28 80 13 01 00 00 00 00 00 88 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:34]Read from MH i2c: E2 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 0E 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: E2 0E 00 E3 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B4 [21:57:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:57:34]wFMCommunicate OK [21:57:34]SAM_PROTO_GetShiftState done [21:57:34]FM_GetShiftState done [21:57:34]req_shift_opened done [21:57:34]requested_item shift.open_date is exist - process it [21:57:34]req_shift_open_date [21:57:34]req_shift_open_date done [21:57:34]produce_requested_data done [21:57:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70024,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:57:34]process_action_free close_receipt [21:57:34]json_value_free [21:57:34]json_value_free done [21:57:34]process_json_proto returns [21:57:34]Send response to host [21:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70024,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:57:34]free response buf [21:57:34]execute_script done [21:57:34]execute_script returns [21:57:34]free content buf [21:57:34]Sock 9.Close socket [21:57:34]Sock 9.Thread stoped [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:45]accept exits with 7 [21:57:45]New connection [21:57:45]New thread 3067170148 created [21:57:45]Thread 3067026788 joined [21:57:45]Waiting for new connection... [21:57:45] Sock 7.Parse request [21:57:45]Sock 7.Check first char [21:57:45]Sock 7.First char is OK [21:57:45]request: POST /json_proto HTTP/1.0 [21:57:45]Method: POST [21:57:45]URL: /json_proto [21:57:45]Method is POST - this is cgi request [21:57:45]url: /json_proto [21:57:45]query_string will be loaded in cgi processing [21:57:45]execute_cgi json_proto POST (null) [21:57:45]execute_cgi path=json_proto method=POST [21:57:45]POST find Content-Length [21:57:45]Host: 172.17.50.3:8080 [21:57:45]Content-Length: 683 [21:57:45]Content-Type: application/json [21:57:45] [21:57:45]POST finish read [21:57:45]Found Content-Length = 683 [21:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885793", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:45]execute_script... [21:57: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)2885793", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:45]POST & json_proto [21:57:45]process_json_proto [21:57:45]json parsed OK: [21:57:45]protocol is kg_v1.0 [21:57:45]action value=close_receipt [21:57:45]process_action close_receipt [21:57:45]cmd_close_receipt [21:57:45]MH_GetDate [21:57:45]Write to MH i2c: F0 00 00 E4 28 FB [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: F0 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: F0 09 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: F0 09 00 E4 28 00 5B CE 16 67 6B 98 1E 66 31 [21:57:45]GetLastDocTimeStamp 1729547852 [21:57:45]current date 1729547867 [21:57:45]FM_GetShiftState [21:57:45]SAM_PROTO_GetShiftState [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 13 01 00 [21:57:45]Write to MH i2c: E2 08 00 E5 28 80 13 01 00 00 00 00 00 8A [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0E 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0E 00 E5 28 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B6 [21:57:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_GetShiftState done [21:57:45]FM_GetShiftState done [21:57:45]opened in 1729469703 [21:57:45]opened+sec_in_day 1729556103 [21:57:45]quantity*price = 100015 [21:57:45]sum+1 = 100017 [21:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 415 21.10.2024 21:57 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70025 ФПД: 213964656737952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70025&fm=213964656737952&tin=02508201610067®Number=0000000000156251&sum=100000 [21:57:46]StoreToDocumentArchive [21:57:46]shift 194 fd 70025 [21:57:46]save to /storage/0194/doc_00070025 [21:57:46]save last doc name /storage/0194/doc_00070025 to /storage/kkm_last_doc_name [21:57:46]save OK [21:57:46]Clear old archive folders... [21:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:46]tlvbuf is 0112D260 [21:57:46]SAM_PROTO_ClearQueue [21:57:46]wFMCommunicate request_size=4 [21:57:46]MH_SAM_APDU [21:57:46]CAPDU: 80 09 00 00 [21:57:46]Write to MH i2c: E2 08 00 F2 28 80 09 00 00 00 00 00 00 8C [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:46]Read from MH i2c: E2 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 03 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [21:57:46]RAPDU: 90 00 [21:57:46]wFMCommunicate OK [21:57:46]SAM_PROTO_ClearQueue done [21:57:46]KKMCreateOFDPacket [21:57:46]OFDProtocolAddRootSTLVToBuf [21:57:46]FM_MakeSignedData [21:57:46]FM_MakeSignedData [21:57:46]SAM_PROTO_SignData [21:57:46]wFMCommunicate request_size=4 [21:57:46]MH_SAM_APDU [21:57:46]CAPDU: 80 0D 01 02 [21:57:46]Write to MH i2c: E2 08 00 F3 28 80 0D 01 02 00 00 00 00 94 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [21:57:47]RAPDU: 90 00 [21:57:47]wFMCommunicate OK [21:57:47]wFMCommunicate request_size=255 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 5B CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 11 01 00 35 04 06 00 C2 [21:57:47]Write to MH i2c: E2 02 01 F4 28 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 5B CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 11 01 00 35 04 06 00 C2 00 00 7C [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [21:57:47]RAPDU: 90 00 [21:57:47]wFMCommunicate OK [21:57:47]wFMCommunicate request_size=10 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 0D 02 02 05 99 87 5B FE A0 [21:57:47]Write to MH i2c: E2 0D 00 F5 28 80 0D 02 02 05 00 99 87 5B FE A0 00 00 BA [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 F5 28 00 90 00 91 [21:57:47]RAPDU: 90 00 [21:57:47]wFMCommunicate OK [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 0D 03 02 [21:57:47]Write to MH i2c: E2 08 00 F6 28 80 0D 03 02 00 00 00 00 99 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 0B 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 0B 00 F6 28 00 1D 60 8F 6F F9 A9 AE 02 90 00 67 [21:57:47]RAPDU: 1D 60 8F 6F F9 A9 AE 02 90 00 [21:57:47]wFMCommunicate OK [21:57:47]SAM_PROTO_SignData done [21:57:47]FM_MakeSignedData done [21:57:47]CreateOFDProtocolMessage [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 11 00 00 [21:57:47]Write to MH i2c: E2 08 00 F7 28 80 11 00 00 00 00 00 00 99 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 F7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [21:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:57:47]wFMCommunicate OK [21:57:47]CreateOFDProtocolMessage done [21:57:47]OFDSenderStorePacket 70025 [21:57:47]StoreOFDPacket docnum=70025 [21:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E8 F1 07 01 ED 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 5B CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 11 01 00 35 04 06 00 C2 99 87 5B FE A0 1D 60 8F 6F F9 A9 AE 02 [21:57:47]CheckFolder [21:57:47]dirname=/storage/ofd_packets [21:57:47]CheckFolder done [21:57:47]ProducePacketName [21:57:47]name=ofd_packets/00070025 [21:57:47]NVStorageSaveData ofd_packets/00070025 [21:57:47]File name is /storage/ofd_packets/00070025 [21:57:47]Write 301 bytes [21:57:47]NVStorageSaveData done [21:57:47]OFDSenderStorePacket done [21:57:47]KKMCreateOFDPacket done [21:57:47]NVStorageSaveData kkm_last_timestamp [21:57:47]File name is /storage/kkm_last_timestamp [21:57:47]Write 4 bytes [21:57:47]NVStorageSaveData done [21:57:47]ExternCall_PrintAddStr [21:57:47]wPrintStart [21:57:47]Write to MH i2c: 01 00 00 F8 28 20 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: 01 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: 01 07 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: 01 07 00 F8 28 00 00 00 00 00 FF 0F 35 [21:57:47]RasterBufferAndPrint [21:57:47]line Счет N : (1)2885793 [21:57:47]line ИНН: 02508201610067 [21:57:47]line Контрольно-Кассовый Чек [21:57:47]line ПРОДАЖА [21:57:47]line ТРК (МРК, ГНК) : 42 [21:57:47]line Товар: 2710124130 [21:57:47]line Аи-92-К-5 [21:57:47]line 14.950 * 66.90 [21:57:47]line = 1000.16 [21:57:47]line НДС 12% НСП 1% [21:57:47]line > о реализуемом товаре [21:57:47]line ОКРУГЛЕНИЕ: -0.16 [21:57:47]line ИТОГО: 1000.00 [21:57:47]line Внесено: 1000.00 [21:57:47]line СДАЧА: 0.00 [21:57:47]line НСП 1% : 8.85 [21:57:47]line НДС 12% : 106.21 [21:57:47]line Наличными: 1000.00 [21:57:47]line Безнал.: 0.00 [21:57:47]line Место: АЗС № 85 "Партнер Нефть" [21:57:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:57:47]line СНО: Общий режим [21:57:47]line Чек 415 21.10.2024 21:57 [21:57:47]line Смена: 194 ФФД: 1.0 [21:57:47]line ЗНМ: 0300000167 [21:57:47]line РНМ: 0000000000156251 [21:57:47]line Версия ККМ: v1.0 [21:57:47]line ФМ: 0000000000963346 [21:57:47]line ФД: 70025 [21:57:47]line ФПД: 213964656737952 [21:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215747&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70025&fm=213964656737952&tin=02508201610067®Number=0000000000156251&sum=100000 [21:57:47]OFD Sender: Processing packet 70025 [packets to send 18, broken 17] [21:57:47]ProducePacketName [21:57:47]name=ofd_packets/00070025 [21:57:47]OFD Sender: To server: pG, [21:57:47]CommunicateWithHost lk.salyk.kg:30040 [21:57:47]ConnectInit lk.salyk.kg [21:57:47]written 0, free lines is 4095 [21:57:47]Connected sock=10 [21:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E8 F1 07 01 ED 21 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 5B CE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 11 01 00 35 04 06 00 C2 99 87 5B FE A0 1D 60 8F 6F F9 A9 AE 02 [21:57:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EA 4D 47 00 D6 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 11 01 00 F4 03 04 00 FE 77 16 67 B6 04 01 00 00 D5 38 58 AF 81 B4 A8 B3 [21:57:48]CommunicateWithHost err = 0 [21:57:48]CheckOFDResponse [21:57:48]1017 (14) - 77093643461234 [21:57:48]1041 (16) - 0000000000963346 [21:57:48]1040 (4) - 70025 [21:57:48]1012 (4) - 21.10.2024 15:49 [21:57:48]1206 (1) - 0 [21:57:48]OFD Sender: Remove packet 70025 [21:57:48]ProducePacketName [21:57:48]name=ofd_packets/00070025 [21:57:48]NVStorageDeleteData [21:57:48]Write to MH i2c: 01 00 00 23 29 4C [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 07 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 07 00 23 29 00 00 00 00 00 F8 0C 57 [21:57:48]RasterBufferAndPrint [21:57:48]line [21:57:48]line [21:57:48]line [21:57:48]line [21:57:48]line [21:57:48]written 0, free lines is 3330 [21:57:48]MH_Cut [21:57:48]Write to MH i2c: D1 01 00 2A 29 01 25 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: D1 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: D1 01 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: D1 01 00 2A 29 00 24 [21:57:48]Write to MH i2c: 01 00 00 2B 29 54 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]OFD Sender: No OFD packet to send [21:57:48]*** Cut start [21:57:48]*** Partial cut [21:57:48]*** CUTSNS_PIN = 1 [21:57:49]*** CUTSNS_PIN = 0 [21:57:49]*** Brake cut motor [21:57:49]Read from MH i2c: 01 [21:57:49]MH_I2C_Read... [21:57:49]*** Stop cut motor [21:57:49]*** Cut end [21:57:49]Read from MH i2c: 01 07 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: 01 07 00 2B 29 00 00 00 00 00 FF 0F 69 [21:57:49]process_action close_receipt done [21:57:49]requested_data is exist [21:57:49]produce_requested_data [21:57:49]requested_item fm.sn is exist - process it [21:57:49]wFMCommunicate request_size=4 [21:57:49]MH_SAM_APDU [21:57:49]CAPDU: 80 11 00 00 [21:57:49]Write to MH i2c: E2 08 00 2C 29 80 11 00 00 00 00 00 00 CF [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:49]Read from MH i2c: E2 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 17 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 17 00 2C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [21:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:57:49]wFMCommunicate OK [21:57:49]requested_item fd.num is exist - process it [21:57:49]SAM_PROTO_GetFieldsCounters [21:57:49]wFMCommunicate request_size=4 [21:57:49]MH_SAM_APDU [21:57:49]CAPDU: 80 13 00 00 [21:57:49]Write to MH i2c: E2 08 00 2D 29 80 13 00 00 00 00 00 00 D2 [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:49]Read from MH i2c: E2 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 62 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 62 00 2D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [21:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:49]wFMCommunicate OK [21:57:49]SAM_PROTO_GetFieldsCounters done [21:57:49]requested_item shift.num is exist - process it [21:57:49]requested_item shift.opened is exist - process it [21:57:49]req_shift_opened [21:57:49]FM_GetShiftState [21:57:49]SAM_PROTO_GetShiftState [21:57:49]wFMCommunicate request_size=4 [21:57:49]MH_SAM_APDU [21:57:49]CAPDU: 80 13 01 00 [21:57:49]Write to MH i2c: E2 08 00 2E 29 80 13 01 00 00 00 00 00 D4 [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:49]Read from MH i2c: E2 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 0E 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: E2 0E 00 2E 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 00 [21:57:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [21:57:49]wFMCommunicate OK [21:57:49]SAM_PROTO_GetShiftState done [21:57:49]FM_GetShiftState done [21:57:49]req_shift_opened done [21:57:49]requested_item shift.open_date is exist - process it [21:57:49]req_shift_open_date [21:57:49]req_shift_open_date done [21:57:49]produce_requested_data done [21:57:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70025,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [21:57:49]process_action_free close_receipt [21:57:49]json_value_free [21:57:49]json_value_free done [21:57:49]process_json_proto returns [21:57:49]Send response to host [21:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70025,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [21:57:49]free response buf [21:57:49]execute_script done [21:57:49]execute_script returns [21:57:49]free content buf [21:57:49]Sock 7.Close socket [21:57:49]Sock 7.Thread stoped [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:08]accept exits with 9 [22:01:08]New connection [22:01:08]New thread 3067026788 created [22:01:08]Thread 3067170148 joined [22:01:08]Waiting for new connection... [22:01:08] Sock 9.Parse request [22:01:08]Sock 9.Check first char [22:01:08]Sock 9.First char is OK [22:01:08]request: POST /json_proto HTTP/1.0 [22:01:08]Method: POST [22:01:08]URL: /json_proto [22:01:08]Method is POST - this is cgi request [22:01:08]url: /json_proto [22:01:08]query_string will be loaded in cgi processing [22:01:08]execute_cgi json_proto POST (null) [22:01:08]execute_cgi path=json_proto method=POST [22:01:08]POST find Content-Length [22:01:08]Host: 172.17.50.3:8080 [22:01:08]Content-Length: 678 [22:01:08]Content-Type: application/json [22:01:08] [22:01:08]POST finish read [22:01:08]Found Content-Length = 678 [22:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885794", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:08]execute_script... [22:01: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)2885794", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:08]POST & json_proto [22:01:08]process_json_proto [22:01:08]json parsed OK: [22:01:08]protocol is kg_v1.0 [22:01:08]action value=close_receipt [22:01:08]process_action close_receipt [22:01:08]cmd_close_receipt [22:01:08]MH_GetDate [22:01:08]Write to MH i2c: F0 00 00 2F 29 47 [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: F0 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: F0 09 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: F0 09 00 2F 29 00 26 CF 16 67 6B 98 1E 66 49 [22:01:08]GetLastDocTimeStamp 1729547867 [22:01:08]current date 1729548070 [22:01:08]FM_GetShiftState [22:01:08]SAM_PROTO_GetShiftState [22:01:08]wFMCommunicate request_size=4 [22:01:08]MH_SAM_APDU [22:01:08]CAPDU: 80 13 01 00 [22:01:08]Write to MH i2c: E2 08 00 30 29 80 13 01 00 00 00 00 00 D6 [22:01:08]Write i2c OK [22:01:08]MH_I2C_Read... [22:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:08]Read from MH i2c: E2 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: E2 0E 00 [22:01:08]MH_I2C_Read... [22:01:08]Read from MH i2c: E2 0E 00 30 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 02 [22:01:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:01:08]wFMCommunicate OK [22:01:08]SAM_PROTO_GetShiftState done [22:01:08]FM_GetShiftState done [22:01:08]opened in 1729469703 [22:01:08]opened+sec_in_day 1729556103 [22:01:08]quantity*price = 60009 [22:01:08]sum+1 = 60010 [22:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 416 21.10.2024 22:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70026 ФПД: 225484436427427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220110&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70026&fm=225484436427427&tin=02508201610067®Number=0000000000156251&sum=60000 [22:01:09]StoreToDocumentArchive [22:01:09]shift 194 fd 70026 [22:01:09]save to /storage/0194/doc_00070026 [22:01:09]save last doc name /storage/0194/doc_00070026 to /storage/kkm_last_doc_name [22:01:09]save OK [22:01:09]Clear old archive folders... [22:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:09]tlvbuf is 011239F0 [22:01:09]SAM_PROTO_ClearQueue [22:01:09]wFMCommunicate request_size=4 [22:01:09]MH_SAM_APDU [22:01:09]CAPDU: 80 09 00 00 [22:01:09]Write to MH i2c: E2 08 00 3D 29 80 09 00 00 00 00 00 00 D8 [22:01:09]Write i2c OK [22:01:09]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [22:01:10]RAPDU: 90 00 [22:01:10]wFMCommunicate OK [22:01:10]SAM_PROTO_ClearQueue done [22:01:10]KKMCreateOFDPacket [22:01:10]OFDProtocolAddRootSTLVToBuf [22:01:10]FM_MakeSignedData [22:01:10]FM_MakeSignedData [22:01:10]SAM_PROTO_SignData [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 0D 01 02 [22:01:10]Write to MH i2c: E2 08 00 3E 29 80 0D 01 02 00 00 00 00 E0 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [22:01:10]RAPDU: 90 00 [22:01:10]wFMCommunicate OK [22:01:10]wFMCommunicate request_size=255 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 26 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 11 01 00 35 04 06 00 CD [22:01:10]Write to MH i2c: E2 02 01 3F 29 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 26 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 11 01 00 35 04 06 00 CD 00 00 84 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [22:01:10]RAPDU: 90 00 [22:01:10]wFMCommunicate OK [22:01:10]wFMCommunicate request_size=10 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 0D 02 02 05 13 AF BC 52 A3 [22:01:10]Write to MH i2c: E2 0D 00 40 29 80 0D 02 02 05 00 13 AF BC 52 A3 00 00 60 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 03 00 40 29 00 90 00 DD [22:01:10]RAPDU: 90 00 [22:01:10]wFMCommunicate OK [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 0D 03 02 [22:01:10]Write to MH i2c: E2 08 00 41 29 80 0D 03 02 00 00 00 00 E5 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0B 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 0B 00 41 29 00 BF EF B3 07 77 87 82 DF 90 00 AD [22:01:10]RAPDU: BF EF B3 07 77 87 82 DF 90 00 [22:01:10]wFMCommunicate OK [22:01:10]SAM_PROTO_SignData done [22:01:10]FM_MakeSignedData done [22:01:10]CreateOFDProtocolMessage [22:01:10]wFMCommunicate request_size=4 [22:01:10]MH_SAM_APDU [22:01:10]CAPDU: 80 11 00 00 [22:01:10]Write to MH i2c: E2 08 00 42 29 80 11 00 00 00 00 00 00 E5 [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:10]Read from MH i2c: E2 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 17 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: E2 17 00 42 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [22:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:01:10]wFMCommunicate OK [22:01:10]CreateOFDProtocolMessage done [22:01:10]OFDSenderStorePacket 70026 [22:01:10]StoreOFDPacket docnum=70026 [22:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DE DF 07 01 B2 35 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 26 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 11 01 00 35 04 06 00 CD 13 AF BC 52 A3 BF EF B3 07 77 87 82 DF [22:01:10]CheckFolder [22:01:10]dirname=/storage/ofd_packets [22:01:10]CheckFolder done [22:01:10]ProducePacketName [22:01:10]name=ofd_packets/00070026 [22:01:10]NVStorageSaveData ofd_packets/00070026 [22:01:10]File name is /storage/ofd_packets/00070026 [22:01:10]Write 301 bytes [22:01:10]NVStorageSaveData done [22:01:10]OFDSenderStorePacket done [22:01:10]KKMCreateOFDPacket done [22:01:10]NVStorageSaveData kkm_last_timestamp [22:01:10]File name is /storage/kkm_last_timestamp [22:01:10]Write 4 bytes [22:01:10]NVStorageSaveData done [22:01:10]ExternCall_PrintAddStr [22:01:10]wPrintStart [22:01:10]Write to MH i2c: 01 00 00 43 29 6C [22:01:10]Write i2c OK [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: 01 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: 01 07 00 [22:01:10]MH_I2C_Read... [22:01:10]Read from MH i2c: 01 07 00 43 29 00 00 00 00 00 FF 0F 81 [22:01:10]RasterBufferAndPrint [22:01:10]line Счет N : (1)2885794 [22:01:10]line ИНН: 02508201610067 [22:01:10]line Контрольно-Кассовый Чек [22:01:10]line ПРОДАЖА [22:01:10]line ТРК (МРК, ГНК) : 42 [22:01:10]line Товар: 2710124130 [22:01:10]line Аи-92-К-5 [22:01:10]line 8.970 * 66.90 [22:01:10]line = 600.09 [22:01:10]line НДС 12% НСП 1% [22:01:10]line > о реализуемом товаре [22:01:10]line ОКРУГЛЕНИЕ: -0.09 [22:01:10]line ИТОГО: 600.00 [22:01:10]line Внесено: 600.00 [22:01:10]line СДАЧА: 0.00 [22:01:10]line НСП 1% : 5.31 [22:01:10]line НДС 12% : 63.73 [22:01:10]line Наличными: 600.00 [22:01:10]line Безнал.: 0.00 [22:01:10]line Место: АЗС № 85 "Партнер Нефть" [22:01:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:01:10]line СНО: Общий режим [22:01:10]line Чек 416 21.10.2024 22:01 [22:01:10]line Смена: 194 ФФД: 1.0 [22:01:10]line ЗНМ: 0300000167 [22:01:10]line РНМ: 0000000000156251 [22:01:10]line Версия ККМ: v1.0 [22:01:10]line ФМ: 0000000000963346 [22:01:10]line ФД: 70026 [22:01:10]line ФПД: 225484436427427 [22:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220110&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70026&fm=225484436427427&tin=02508201610067®Number=0000000000156251&sum=60000 [22:01:10]OFD Sender: Processing packet 70026 [packets to send 18, broken 17] [22:01:10]ProducePacketName [22:01:10]name=ofd_packets/00070026 [22:01:10]OFD Sender: To server: pG, [22:01:10]CommunicateWithHost lk.salyk.kg:30040 [22:01:10]ConnectInit lk.salyk.kg [22:01:10]written 0, free lines is 4095 [22:01:10]Connected sock=10 [22:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DE DF 07 01 B2 35 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 26 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 11 01 00 35 04 06 00 CD 13 AF BC 52 A3 BF EF B3 07 77 87 82 DF [22:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 24 47 00 4F 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 11 01 00 F4 03 04 00 C9 78 16 67 B6 04 01 00 00 62 16 BF 93 DD B8 94 F2 [22:01:11]CommunicateWithHost err = 0 [22:01:11]CheckOFDResponse [22:01:11]1017 (14) - 77093643461234 [22:01:11]1041 (16) - 0000000000963346 [22:01:11]1040 (4) - 70026 [22:01:11]1012 (4) - 21.10.2024 15:52 [22:01:11]1206 (1) - 0 [22:01:11]OFD Sender: Remove packet 70026 [22:01:11]ProducePacketName [22:01:11]name=ofd_packets/00070026 [22:01:11]NVStorageDeleteData [22:01:11]Write to MH i2c: 01 00 00 6E 29 97 [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: 01 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: 01 07 00 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: 01 07 00 6E 29 00 00 00 00 00 E4 0C 8E [22:01:11]RasterBufferAndPrint [22:01:11]line [22:01:11]line [22:01:11]line [22:01:11]line [22:01:11]line [22:01:11]written 0, free lines is 3306 [22:01:11]MH_Cut [22:01:11]Write to MH i2c: D1 01 00 75 29 01 70 [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: D1 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: D1 01 00 [22:01:11]MH_I2C_Read... [22:01:11]Read from MH i2c: D1 01 00 75 29 00 6F [22:01:11]Write to MH i2c: 01 00 00 76 29 9F [22:01:11]Write i2c OK [22:01:11]MH_I2C_Read... [22:01:11]OFD Sender: No OFD packet to send [22:01:11]*** Cut start [22:01:11]*** Partial cut [22:01:11]*** CUTSNS_PIN = 1 [22:01:12]*** CUTSNS_PIN = 0 [22:01:12]*** Brake cut motor [22:01:12]Read from MH i2c: 01 [22:01:12]MH_I2C_Read... [22:01:12]*** Stop cut motor [22:01:12]*** Cut end [22:01:12]Read from MH i2c: 01 07 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: 01 07 00 76 29 00 00 00 00 00 FF 0F B4 [22:01:12]process_action close_receipt done [22:01:12]requested_data is exist [22:01:12]produce_requested_data [22:01:12]requested_item fm.sn is exist - process it [22:01:12]wFMCommunicate request_size=4 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 11 00 00 [22:01:12]Write to MH i2c: E2 08 00 77 29 80 11 00 00 00 00 00 00 1A [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 17 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 17 00 77 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [22:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:01:12]wFMCommunicate OK [22:01:12]requested_item fd.num is exist - process it [22:01:12]SAM_PROTO_GetFieldsCounters [22:01:12]wFMCommunicate request_size=4 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 13 00 00 [22:01:12]Write to MH i2c: E2 08 00 78 29 80 13 00 00 00 00 00 00 1D [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 62 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 62 00 78 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [22:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:12]wFMCommunicate OK [22:01:12]SAM_PROTO_GetFieldsCounters done [22:01:12]requested_item shift.num is exist - process it [22:01:12]requested_item shift.opened is exist - process it [22:01:12]req_shift_opened [22:01:12]FM_GetShiftState [22:01:12]SAM_PROTO_GetShiftState [22:01:12]wFMCommunicate request_size=4 [22:01:12]MH_SAM_APDU [22:01:12]CAPDU: 80 13 01 00 [22:01:12]Write to MH i2c: E2 08 00 79 29 80 13 01 00 00 00 00 00 1F [22:01:12]Write i2c OK [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 [22:01:12]MH_I2C_Read... [22:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:12]Read from MH i2c: E2 0E 00 [22:01:12]MH_I2C_Read... [22:01:12]Read from MH i2c: E2 0E 00 79 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4B [22:01:12]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:01:12]wFMCommunicate OK [22:01:12]SAM_PROTO_GetShiftState done [22:01:12]FM_GetShiftState done [22:01:12]req_shift_opened done [22:01:12]requested_item shift.open_date is exist - process it [22:01:12]req_shift_open_date [22:01:12]req_shift_open_date done [22:01:12]produce_requested_data done [22:01:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70026,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:01:12]process_action_free close_receipt [22:01:12]json_value_free [22:01:12]json_value_free done [22:01:12]process_json_proto returns [22:01:12]Send response to host [22:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70026,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:01:12]free response buf [22:01:12]execute_script done [22:01:12]execute_script returns [22:01:12]free content buf [22:01:12]Sock 9.Close socket [22:01:12]Sock 9.Thread stoped [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:21]accept exits with 7 [22:03:21]New connection [22:03:21]New thread 3067170148 created [22:03:21]Thread 3067026788 joined [22:03:21]Waiting for new connection... [22:03:21] Sock 7.Parse request [22:03:21]Sock 7.Check first char [22:03:21]Sock 7.First char is OK [22:03:21]request: POST /json_proto HTTP/1.0 [22:03:21]Method: POST [22:03:21]URL: /json_proto [22:03:21]Method is POST - this is cgi request [22:03:21]url: /json_proto [22:03:21]query_string will be loaded in cgi processing [22:03:21]execute_cgi json_proto POST (null) [22:03:21]execute_cgi path=json_proto method=POST [22:03:21]POST find Content-Length [22:03:21]Host: 172.17.50.3:8080 [22:03:21]Content-Length: 683 [22:03:21]Content-Type: application/json [22:03:21] [22:03:21]POST finish read [22:03:21]Found Content-Length = 683 [22:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885795", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:21]execute_script... [22:03: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)2885795", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:21]POST & json_proto [22:03:21]process_json_proto [22:03:21]json parsed OK: [22:03:21]protocol is kg_v1.0 [22:03:21]action value=close_receipt [22:03:21]process_action close_receipt [22:03:21]cmd_close_receipt [22:03:21]MH_GetDate [22:03:21]Write to MH i2c: F0 00 00 7A 29 92 [22:03:21]Write i2c OK [22:03:21]MH_I2C_Read... [22:03:21]Read from MH i2c: F0 [22:03:21]MH_I2C_Read... [22:03:21]Read from MH i2c: F0 09 00 [22:03:21]MH_I2C_Read... [22:03:21]Read from MH i2c: F0 09 00 7A 29 00 AB CF 16 67 6B 98 1E 66 19 [22:03:21]GetLastDocTimeStamp 1729548070 [22:03:21]current date 1729548203 [22:03:21]FM_GetShiftState [22:03:21]SAM_PROTO_GetShiftState [22:03:21]wFMCommunicate request_size=4 [22:03:21]MH_SAM_APDU [22:03:21]CAPDU: 80 13 01 00 [22:03:21]Write to MH i2c: E2 08 00 7B 29 80 13 01 00 00 00 00 00 21 [22:03:21]Write i2c OK [22:03:21]MH_I2C_Read... [22:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:22]Read from MH i2c: E2 [22:03:22]MH_I2C_Read... [22:03:22]Read from MH i2c: E2 0E 00 [22:03:22]MH_I2C_Read... [22:03:22]Read from MH i2c: E2 0E 00 7B 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4D [22:03:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:03:22]wFMCommunicate OK [22:03:22]SAM_PROTO_GetShiftState done [22:03:22]FM_GetShiftState done [22:03:22]opened in 1729469703 [22:03:22]opened+sec_in_day 1729556103 [22:03:22]quantity*price = 100015 [22:03:22]sum+1 = 100017 [22:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 417 21.10.2024 22:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70027 ФПД: 254928461420328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70027&fm=254928461420328&tin=02508201610067®Number=0000000000156251&sum=100000 [22:03:23]StoreToDocumentArchive [22:03:23]shift 194 fd 70027 [22:03:23]save to /storage/0194/doc_00070027 [22:03:23]save last doc name /storage/0194/doc_00070027 to /storage/kkm_last_doc_name [22:03:23]save OK [22:03:23]Clear old archive folders... [22:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:23]tlvbuf is 01152FD0 [22:03:23]SAM_PROTO_ClearQueue [22:03:23]wFMCommunicate request_size=4 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 09 00 00 [22:03:23]Write to MH i2c: E2 08 00 88 29 80 09 00 00 00 00 00 00 23 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [22:03:23]RAPDU: 90 00 [22:03:23]wFMCommunicate OK [22:03:23]SAM_PROTO_ClearQueue done [22:03:23]KKMCreateOFDPacket [22:03:23]OFDProtocolAddRootSTLVToBuf [22:03:23]FM_MakeSignedData [22:03:23]FM_MakeSignedData [22:03:23]SAM_PROTO_SignData [22:03:23]wFMCommunicate request_size=4 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 0D 01 02 [22:03:23]Write to MH i2c: E2 08 00 89 29 80 0D 01 02 00 00 00 00 2B [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [22:03:23]RAPDU: 90 00 [22:03:23]wFMCommunicate OK [22:03:23]wFMCommunicate request_size=255 [22:03:23]MH_SAM_APDU [22:03:23]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 AC CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 11 01 00 35 04 06 00 E7 [22:03:23]Write to MH i2c: E2 02 01 8A 29 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 AC CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 11 01 00 35 04 06 00 E7 00 00 8E [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 8A 29 00 90 00 27 [22:03:23]RAPDU: 90 00 [22:03:23]wFMCommunicate OK [22:03:23]wFMCommunicate request_size=10 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 0D 02 02 05 DB 28 62 D7 28 [22:03:23]Write to MH i2c: E2 0D 00 8B 29 80 0D 02 02 05 00 DB 28 62 D7 28 00 00 9C [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 03 00 8B 29 00 90 00 28 [22:03:23]RAPDU: 90 00 [22:03:23]wFMCommunicate OK [22:03:23]wFMCommunicate request_size=4 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 0D 03 02 [22:03:23]Write to MH i2c: E2 08 00 8C 29 80 0D 03 02 00 00 00 00 30 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 0B 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 0B 00 8C 29 00 F3 97 C0 AB 3C D6 FF 58 90 00 8F [22:03:23]RAPDU: F3 97 C0 AB 3C D6 FF 58 90 00 [22:03:23]wFMCommunicate OK [22:03:23]SAM_PROTO_SignData done [22:03:23]FM_MakeSignedData done [22:03:23]CreateOFDProtocolMessage [22:03:23]wFMCommunicate request_size=4 [22:03:23]MH_SAM_APDU [22:03:23]CAPDU: 80 11 00 00 [22:03:23]Write to MH i2c: E2 08 00 8D 29 80 11 00 00 00 00 00 00 30 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:23]Read from MH i2c: E2 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 17 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: E2 17 00 8D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [22:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:03:23]wFMCommunicate OK [22:03:23]CreateOFDProtocolMessage done [22:03:23]OFDSenderStorePacket 70027 [22:03:23]StoreOFDPacket docnum=70027 [22:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB 1E 07 01 98 BB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 AC CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 11 01 00 35 04 06 00 E7 DB 28 62 D7 28 F3 97 C0 AB 3C D6 FF 58 [22:03:23]CheckFolder [22:03:23]dirname=/storage/ofd_packets [22:03:23]CheckFolder done [22:03:23]ProducePacketName [22:03:23]name=ofd_packets/00070027 [22:03:23]NVStorageSaveData ofd_packets/00070027 [22:03:23]File name is /storage/ofd_packets/00070027 [22:03:23]Write 301 bytes [22:03:23]NVStorageSaveData done [22:03:23]OFDSenderStorePacket done [22:03:23]KKMCreateOFDPacket done [22:03:23]NVStorageSaveData kkm_last_timestamp [22:03:23]File name is /storage/kkm_last_timestamp [22:03:23]Write 4 bytes [22:03:23]NVStorageSaveData done [22:03:23]ExternCall_PrintAddStr [22:03:23]wPrintStart [22:03:23]Write to MH i2c: 01 00 00 8E 29 B7 [22:03:23]Write i2c OK [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: 01 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: 01 07 00 [22:03:23]MH_I2C_Read... [22:03:23]Read from MH i2c: 01 07 00 8E 29 00 00 00 00 00 FF 0F CC [22:03:23]RasterBufferAndPrint [22:03:23]line Счет N : (1)2885795 [22:03:23]line ИНН: 02508201610067 [22:03:23]line Контрольно-Кассовый Чек [22:03:23]line ПРОДАЖА [22:03:23]line ТРК (МРК, ГНК) : 32 [22:03:23]line Товар: 2710124130 [22:03:23]line Аи-92-К-5 [22:03:23]line 14.950 * 66.90 [22:03:23]line = 1000.16 [22:03:23]line НДС 12% НСП 1% [22:03:23]line > о реализуемом товаре [22:03:23]line ОКРУГЛЕНИЕ: -0.16 [22:03:23]line ИТОГО: 1000.00 [22:03:23]line Внесено: 1000.00 [22:03:23]line СДАЧА: 0.00 [22:03:23]line НСП 1% : 8.85 [22:03:23]line НДС 12% : 106.21 [22:03:23]line Наличными: 1000.00 [22:03:23]line Безнал.: 0.00 [22:03:23]line Место: АЗС № 85 "Партнер Нефть" [22:03:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:03:23]line СНО: Общий режим [22:03:23]line Чек 417 21.10.2024 22:03 [22:03:23]line Смена: 194 ФФД: 1.0 [22:03:23]line ЗНМ: 0300000167 [22:03:23]line РНМ: 0000000000156251 [22:03:23]line Версия ККМ: v1.0 [22:03:23]line ФМ: 0000000000963346 [22:03:23]line ФД: 70027 [22:03:23]line ФПД: 254928461420328 [22:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70027&fm=254928461420328&tin=02508201610067®Number=0000000000156251&sum=100000 [22:03:23]OFD Sender: Processing packet 70027 [packets to send 18, broken 17] [22:03:23]ProducePacketName [22:03:23]name=ofd_packets/00070027 [22:03:23]OFD Sender: To server: pG, [22:03:23]CommunicateWithHost lk.salyk.kg:30040 [22:03:23]ConnectInit lk.salyk.kg [22:03:23]written 0, free lines is 4095 [22:03:24]Connected sock=10 [22:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB 1E 07 01 98 BB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 AC CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 11 01 00 35 04 06 00 E7 DB 28 62 D7 28 F3 97 C0 AB 3C D6 FF 58 [22:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF BB 47 00 73 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 11 01 00 F4 03 04 00 4E 79 16 67 B6 04 01 00 00 74 57 E8 08 F5 64 60 7F [22:03:24]CommunicateWithHost err = 0 [22:03:24]CheckOFDResponse [22:03:24]1017 (14) - 77093643461234 [22:03:24]1041 (16) - 0000000000963346 [22:03:24]1040 (4) - 70027 [22:03:24]1012 (4) - 21.10.2024 15:54 [22:03:24]1206 (1) - 0 [22:03:24]OFD Sender: Remove packet 70027 [22:03:24]ProducePacketName [22:03:24]name=ofd_packets/00070027 [22:03:24]NVStorageDeleteData [22:03:24]Write to MH i2c: 01 00 00 B9 29 E2 [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: 01 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: 01 07 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: 01 07 00 B9 29 00 00 00 00 00 E9 0C DE [22:03:24]RasterBufferAndPrint [22:03:24]line [22:03:24]line [22:03:24]line [22:03:24]line [22:03:24]line [22:03:24]written 0, free lines is 3311 [22:03:24]MH_Cut [22:03:24]Write to MH i2c: D1 01 00 C0 29 01 BB [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: D1 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: D1 01 00 [22:03:24]MH_I2C_Read... [22:03:24]Read from MH i2c: D1 01 00 C0 29 00 BA [22:03:24]Write to MH i2c: 01 00 00 C1 29 EA [22:03:24]Write i2c OK [22:03:24]MH_I2C_Read... [22:03:24]OFD Sender: No OFD packet to send [22:03:25]*** Cut start [22:03:25]*** Partial cut [22:03:25]*** CUTSNS_PIN = 1 [22:03:25]*** CUTSNS_PIN = 0 [22:03:25]*** Brake cut motor [22:03:25]Read from MH i2c: 01 [22:03:25]MH_I2C_Read... [22:03:25]*** Stop cut motor [22:03:25]*** Cut end [22:03:25]Read from MH i2c: 01 07 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 FF 0F FF [22:03:25]process_action close_receipt done [22:03:25]requested_data is exist [22:03:25]produce_requested_data [22:03:25]requested_item fm.sn is exist - process it [22:03:25]wFMCommunicate request_size=4 [22:03:25]MH_SAM_APDU [22:03:25]CAPDU: 80 11 00 00 [22:03:25]Write to MH i2c: E2 08 00 C2 29 80 11 00 00 00 00 00 00 65 [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:25]Read from MH i2c: E2 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 17 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 17 00 C2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B7 [22:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:03:25]wFMCommunicate OK [22:03:25]requested_item fd.num is exist - process it [22:03:25]SAM_PROTO_GetFieldsCounters [22:03:25]wFMCommunicate request_size=4 [22:03:25]MH_SAM_APDU [22:03:25]CAPDU: 80 13 00 00 [22:03:25]Write to MH i2c: E2 08 00 C3 29 80 13 00 00 00 00 00 00 68 [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:25]Read from MH i2c: E2 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 62 00 [22:03:25]MH_I2C_Read... [22:03:25]Read from MH i2c: E2 62 00 C3 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [22:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:25]wFMCommunicate OK [22:03:25]SAM_PROTO_GetFieldsCounters done [22:03:25]requested_item shift.num is exist - process it [22:03:25]requested_item shift.opened is exist - process it [22:03:25]req_shift_opened [22:03:25]FM_GetShiftState [22:03:25]SAM_PROTO_GetShiftState [22:03:25]wFMCommunicate request_size=4 [22:03:25]MH_SAM_APDU [22:03:25]CAPDU: 80 13 01 00 [22:03:25]Write to MH i2c: E2 08 00 C4 29 80 13 01 00 00 00 00 00 6A [22:03:25]Write i2c OK [22:03:25]MH_I2C_Read... [22:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:26]Read from MH i2c: E2 [22:03:26]MH_I2C_Read... [22:03:26]Read from MH i2c: E2 0E 00 [22:03:26]MH_I2C_Read... [22:03:26]Read from MH i2c: E2 0E 00 C4 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 96 [22:03:26]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:03:26]wFMCommunicate OK [22:03:26]SAM_PROTO_GetShiftState done [22:03:26]FM_GetShiftState done [22:03:26]req_shift_opened done [22:03:26]requested_item shift.open_date is exist - process it [22:03:26]req_shift_open_date [22:03:26]req_shift_open_date done [22:03:26]produce_requested_data done [22:03:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70027,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:03:26]process_action_free close_receipt [22:03:26]json_value_free [22:03:26]json_value_free done [22:03:26]process_json_proto returns [22:03:26]Send response to host [22:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70027,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:03:26]free response buf [22:03:26]execute_script done [22:03:26]execute_script returns [22:03:26]free content buf [22:03:26]Sock 7.Close socket [22:03:26]Sock 7.Thread stoped [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:35]accept exits with 9 [22:03:35]New connection [22:03:35]New thread 3067026788 created [22:03:35]Thread 3067170148 joined [22:03:35]Waiting for new connection... [22:03:35] Sock 9.Parse request [22:03:35]Sock 9.Check first char [22:03:35]Sock 9.First char is OK [22:03:35]request: POST /json_proto HTTP/1.0 [22:03:35]Method: POST [22:03:35]URL: /json_proto [22:03:35]Method is POST - this is cgi request [22:03:35]url: /json_proto [22:03:35]query_string will be loaded in cgi processing [22:03:35]execute_cgi json_proto POST (null) [22:03:35]execute_cgi path=json_proto method=POST [22:03:35]POST find Content-Length [22:03:35]Host: 172.17.50.3:8080 [22:03:35]Content-Length: 678 [22:03:35]Content-Type: application/json [22:03:35] [22:03:35]POST finish read [22:03:35]Found Content-Length = 678 [22:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:35]execute_script... [22:03: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)2885796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:35]POST & json_proto [22:03:35]process_json_proto [22:03:35]json parsed OK: [22:03:35]protocol is kg_v1.0 [22:03:35]action value=close_receipt [22:03:35]process_action close_receipt [22:03:35]cmd_close_receipt [22:03:35]MH_GetDate [22:03:35]Write to MH i2c: F0 00 00 C5 29 DD [22:03:35]Write i2c OK [22:03:35]MH_I2C_Read... [22:03:35]Read from MH i2c: F0 [22:03:35]MH_I2C_Read... [22:03:35]Read from MH i2c: F0 09 00 [22:03:35]MH_I2C_Read... [22:03:35]Read from MH i2c: F0 09 00 C5 29 00 B9 CF 16 67 6B 98 1E 66 72 [22:03:35]GetLastDocTimeStamp 1729548204 [22:03:35]current date 1729548217 [22:03:35]FM_GetShiftState [22:03:35]SAM_PROTO_GetShiftState [22:03:35]wFMCommunicate request_size=4 [22:03:35]MH_SAM_APDU [22:03:35]CAPDU: 80 13 01 00 [22:03:35]Write to MH i2c: E2 08 00 C6 29 80 13 01 00 00 00 00 00 6C [22:03:35]Write i2c OK [22:03:35]MH_I2C_Read... [22:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:35]Read from MH i2c: E2 [22:03:35]MH_I2C_Read... [22:03:35]Read from MH i2c: E2 0E 00 [22:03:35]MH_I2C_Read... [22:03:35]Read from MH i2c: E2 0E 00 C6 29 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 98 [22:03:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:03:35]wFMCommunicate OK [22:03:35]SAM_PROTO_GetShiftState done [22:03:35]FM_GetShiftState done [22:03:35]opened in 1729469703 [22:03:35]opened+sec_in_day 1729556103 [22:03:35]quantity*price = 25020 [22:03:35]sum+1 = 25022 [22:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 418 21.10.2024 22:03 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70028 ФПД: 104096523989202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70028&fm=104096523989202&tin=02508201610067®Number=0000000000156251&sum=25000 [22:03:36]StoreToDocumentArchive [22:03:36]shift 194 fd 70028 [22:03:36]save to /storage/0194/doc_00070028 [22:03:36]save last doc name /storage/0194/doc_00070028 to /storage/kkm_last_doc_name [22:03:36]save OK [22:03:36]Clear old archive folders... [22:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:36]tlvbuf is 01172510 [22:03:36]SAM_PROTO_ClearQueue [22:03:36]wFMCommunicate request_size=4 [22:03:36]MH_SAM_APDU [22:03:36]CAPDU: 80 09 00 00 [22:03:36]Write to MH i2c: E2 08 00 D3 29 80 09 00 00 00 00 00 00 6E [22:03:36]Write i2c OK [22:03:36]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [22:03:37]RAPDU: 90 00 [22:03:37]wFMCommunicate OK [22:03:37]SAM_PROTO_ClearQueue done [22:03:37]KKMCreateOFDPacket [22:03:37]OFDProtocolAddRootSTLVToBuf [22:03:37]FM_MakeSignedData [22:03:37]FM_MakeSignedData [22:03:37]SAM_PROTO_SignData [22:03:37]wFMCommunicate request_size=4 [22:03:37]MH_SAM_APDU [22:03:37]CAPDU: 80 0D 01 02 [22:03:37]Write to MH i2c: E2 08 00 D4 29 80 0D 01 02 00 00 00 00 76 [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 D4 29 00 90 00 71 [22:03:37]RAPDU: 90 00 [22:03:37]wFMCommunicate OK [22:03:37]wFMCommunicate request_size=255 [22:03:37]MH_SAM_APDU [22:03:37]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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 B9 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 11 01 00 35 04 06 00 5E [22:03:37]Write to MH i2c: E2 02 01 D5 29 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 B9 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 11 01 00 35 04 06 00 5E 00 00 3E [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 D5 29 00 90 00 72 [22:03:37]RAPDU: 90 00 [22:03:37]wFMCommunicate OK [22:03:37]wFMCommunicate request_size=10 [22:03:37]MH_SAM_APDU [22:03:37]CAPDU: 80 0D 02 02 05 AC DC 55 B0 D2 [22:03:37]Write to MH i2c: E2 0D 00 D6 29 80 0D 02 02 05 00 AC DC 55 B0 D2 00 00 E2 [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 03 00 D6 29 00 90 00 73 [22:03:37]RAPDU: 90 00 [22:03:37]wFMCommunicate OK [22:03:37]wFMCommunicate request_size=4 [22:03:37]MH_SAM_APDU [22:03:37]CAPDU: 80 0D 03 02 [22:03:37]Write to MH i2c: E2 08 00 D7 29 80 0D 03 02 00 00 00 00 7B [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 0B 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 0B 00 D7 29 00 21 2E C1 B9 E2 CC B4 B9 90 00 60 [22:03:37]RAPDU: 21 2E C1 B9 E2 CC B4 B9 90 00 [22:03:37]wFMCommunicate OK [22:03:37]SAM_PROTO_SignData done [22:03:37]FM_MakeSignedData done [22:03:37]CreateOFDProtocolMessage [22:03:37]wFMCommunicate request_size=4 [22:03:37]MH_SAM_APDU [22:03:37]CAPDU: 80 11 00 00 [22:03:37]Write to MH i2c: E2 08 00 D8 29 80 11 00 00 00 00 00 00 7B [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:37]Read from MH i2c: E2 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 17 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: E2 17 00 D8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [22:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:03:37]wFMCommunicate OK [22:03:37]CreateOFDProtocolMessage done [22:03:37]OFDSenderStorePacket 70028 [22:03:37]StoreOFDPacket docnum=70028 [22:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D6 27 07 01 44 59 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 B9 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 11 01 00 35 04 06 00 5E AC DC 55 B0 D2 21 2E C1 B9 E2 CC B4 B9 [22:03:37]CheckFolder [22:03:37]dirname=/storage/ofd_packets [22:03:37]CheckFolder done [22:03:37]ProducePacketName [22:03:37]name=ofd_packets/00070028 [22:03:37]NVStorageSaveData ofd_packets/00070028 [22:03:37]File name is /storage/ofd_packets/00070028 [22:03:37]Write 301 bytes [22:03:37]NVStorageSaveData done [22:03:37]OFDSenderStorePacket done [22:03:37]KKMCreateOFDPacket done [22:03:37]NVStorageSaveData kkm_last_timestamp [22:03:37]File name is /storage/kkm_last_timestamp [22:03:37]Write 4 bytes [22:03:37]NVStorageSaveData done [22:03:37]ExternCall_PrintAddStr [22:03:37]wPrintStart [22:03:37]Write to MH i2c: 01 00 00 D9 29 02 [22:03:37]Write i2c OK [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: 01 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: 01 07 00 [22:03:37]MH_I2C_Read... [22:03:37]Read from MH i2c: 01 07 00 D9 29 00 00 00 00 00 FF 0F 17 [22:03:37]RasterBufferAndPrint [22:03:37]line Счет N : (1)2885796 [22:03:37]line ИНН: 02508201610067 [22:03:37]line Контрольно-Кассовый Чек [22:03:37]line ПРОДАЖА [22:03:37]line ТРК (МРК, ГНК) : 22 [22:03:37]line Товар: 2710124130 [22:03:37]line Аи-92-К-5 [22:03:37]line 3.740 * 66.90 [22:03:37]line = 250.21 [22:03:37]line НДС 12% НСП 1% [22:03:37]line > о реализуемом товаре [22:03:37]line ОКРУГЛЕНИЕ: -0.21 [22:03:37]line ИТОГО: 250.00 [22:03:37]line Внесено: 250.00 [22:03:37]line СДАЧА: 0.00 [22:03:37]line НСП 1% : 2.21 [22:03:37]line НДС 12% : 26.57 [22:03:37]line Наличными: 250.00 [22:03:37]line Безнал.: 0.00 [22:03:37]line Место: АЗС № 85 "Партнер Нефть" [22:03:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:03:37]line СНО: Общий режим [22:03:37]line Чек 418 21.10.2024 22:03 [22:03:37]line Смена: 194 ФФД: 1.0 [22:03:37]line ЗНМ: 0300000167 [22:03:37]line РНМ: 0000000000156251 [22:03:37]line Версия ККМ: v1.0 [22:03:37]line ФМ: 0000000000963346 [22:03:37]line ФД: 70028 [22:03:37]line ФПД: 104096523989202 [22:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220337&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70028&fm=104096523989202&tin=02508201610067®Number=0000000000156251&sum=25000 [22:03:37]written 0, free lines is 4095 [22:03:37]OFD Sender: Processing packet 70028 [packets to send 18, broken 17] [22:03:37]ProducePacketName [22:03:37]name=ofd_packets/00070028 [22:03:37]OFD Sender: To server: pG, [22:03:37]CommunicateWithHost lk.salyk.kg:30040 [22:03:37]ConnectInit lk.salyk.kg [22:03:37]Connected sock=11 [22:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D6 27 07 01 44 59 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 B9 CF 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 11 01 00 35 04 06 00 5E AC DC 55 B0 D2 21 2E C1 B9 E2 CC B4 B9 [22:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 91 47 00 24 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 11 01 00 F4 03 04 00 5C 79 16 67 B6 04 01 00 00 DB A8 21 1D 98 C8 F9 91 [22:03:37]CommunicateWithHost err = 0 [22:03:37]CheckOFDResponse [22:03:37]1017 (14) - 77093643461234 [22:03:37]1041 (16) - 0000000000963346 [22:03:37]1040 (4) - 70028 [22:03:37]1012 (4) - 21.10.2024 15:55 [22:03:37]1206 (1) - 0 [22:03:37]OFD Sender: Remove packet 70028 [22:03:37]ProducePacketName [22:03:37]name=ofd_packets/00070028 [22:03:37]NVStorageDeleteData [22:03:38]Write to MH i2c: 01 00 00 04 2A 2E [22:03:38]Write i2c OK [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: 01 [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: 01 07 00 [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: 01 07 00 04 2A 00 00 00 00 00 03 0D 45 [22:03:38]RasterBufferAndPrint [22:03:38]line [22:03:38]line [22:03:38]line [22:03:38]line [22:03:38]line [22:03:38]written 0, free lines is 3337 [22:03:38]MH_Cut [22:03:38]Write to MH i2c: D1 01 00 0B 2A 01 07 [22:03:38]Write i2c OK [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: D1 [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: D1 01 00 [22:03:38]MH_I2C_Read... [22:03:38]Read from MH i2c: D1 01 00 0B 2A 00 06 [22:03:38]Write to MH i2c: 01 00 00 0C 2A 36 [22:03:38]Write i2c OK [22:03:38]MH_I2C_Read... [22:03:38]OFD Sender: No OFD packet to send [22:03:38]*** Cut start [22:03:38]*** Partial cut [22:03:38]*** CUTSNS_PIN = 1 [22:03:38]*** CUTSNS_PIN = 0 [22:03:38]*** Brake cut motor [22:03:39]Read from MH i2c: 01 [22:03:39]MH_I2C_Read... [22:03:39]*** Stop cut motor [22:03:39]*** Cut end [22:03:39]Read from MH i2c: 01 07 00 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: 01 07 00 0C 2A 00 00 00 00 00 FF 0F 4B [22:03:39]process_action close_receipt done [22:03:39]requested_data is exist [22:03:39]produce_requested_data [22:03:39]requested_item fm.sn is exist - process it [22:03:39]wFMCommunicate request_size=4 [22:03:39]MH_SAM_APDU [22:03:39]CAPDU: 80 11 00 00 [22:03:39]Write to MH i2c: E2 08 00 0D 2A 80 11 00 00 00 00 00 00 B1 [22:03:39]Write i2c OK [22:03:39]MH_I2C_Read... [22:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:39]Read from MH i2c: E2 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 17 00 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 17 00 0D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [22:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:03:39]wFMCommunicate OK [22:03:39]requested_item fd.num is exist - process it [22:03:39]SAM_PROTO_GetFieldsCounters [22:03:39]wFMCommunicate request_size=4 [22:03:39]MH_SAM_APDU [22:03:39]CAPDU: 80 13 00 00 [22:03:39]Write to MH i2c: E2 08 00 0E 2A 80 13 00 00 00 00 00 00 B4 [22:03:39]Write i2c OK [22:03:39]MH_I2C_Read... [22:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:39]Read from MH i2c: E2 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 62 00 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 62 00 0E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [22:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:39]wFMCommunicate OK [22:03:39]SAM_PROTO_GetFieldsCounters done [22:03:39]requested_item shift.num is exist - process it [22:03:39]requested_item shift.opened is exist - process it [22:03:39]req_shift_opened [22:03:39]FM_GetShiftState [22:03:39]SAM_PROTO_GetShiftState [22:03:39]wFMCommunicate request_size=4 [22:03:39]MH_SAM_APDU [22:03:39]CAPDU: 80 13 01 00 [22:03:39]Write to MH i2c: E2 08 00 0F 2A 80 13 01 00 00 00 00 00 B6 [22:03:39]Write i2c OK [22:03:39]MH_I2C_Read... [22:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:39]Read from MH i2c: E2 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 0E 00 [22:03:39]MH_I2C_Read... [22:03:39]Read from MH i2c: E2 0E 00 0F 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E2 [22:03:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:03:39]wFMCommunicate OK [22:03:39]SAM_PROTO_GetShiftState done [22:03:39]FM_GetShiftState done [22:03:39]req_shift_opened done [22:03:39]requested_item shift.open_date is exist - process it [22:03:39]req_shift_open_date [22:03:39]req_shift_open_date done [22:03:39]produce_requested_data done [22:03:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70028,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:03:39]process_action_free close_receipt [22:03:39]json_value_free [22:03:39]json_value_free done [22:03:39]process_json_proto returns [22:03:39]Send response to host [22:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70028,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:03:39]free response buf [22:03:39]execute_script done [22:03:39]execute_script returns [22:03:39]free content buf [22:03:39]Sock 9.Close socket [22:03:39]Sock 9.Thread stoped [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:30]accept exits with 7 [22:08:30]New connection [22:08:30]New thread 3067170148 created [22:08:30]Thread 3067026788 joined [22:08:30]Waiting for new connection... [22:08:30] Sock 7.Parse request [22:08:30]Sock 7.Check first char [22:08:30]Sock 7.First char is OK [22:08:30]request: POST /json_proto HTTP/1.0 [22:08:30]Method: POST [22:08:30]URL: /json_proto [22:08:30]Method is POST - this is cgi request [22:08:30]url: /json_proto [22:08:30]query_string will be loaded in cgi processing [22:08:30]execute_cgi json_proto POST (null) [22:08:30]execute_cgi path=json_proto method=POST [22:08:30]POST find Content-Length [22:08:30]Host: 172.17.50.3:8080 [22:08:30]Content-Length: 683 [22:08:30]Content-Type: application/json [22:08:30] [22:08:30]POST finish read [22:08:30]Found Content-Length = 683 [22:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885797", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:30]execute_script... [22:08: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)2885797", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:30]POST & json_proto [22:08:30]process_json_proto [22:08:30]json parsed OK: [22:08:30]protocol is kg_v1.0 [22:08:30]action value=close_receipt [22:08:30]process_action close_receipt [22:08:30]cmd_close_receipt [22:08:30]MH_GetDate [22:08:30]Write to MH i2c: F0 00 00 10 2A 29 [22:08:30]Write i2c OK [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 09 00 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 09 00 10 2A 00 E0 D0 16 67 6B 98 1E 66 E6 [22:08:30]GetLastDocTimeStamp 1729548217 [22:08:30]current date 1729548512 [22:08:30]FM_GetShiftState [22:08:30]SAM_PROTO_GetShiftState [22:08:30]wFMCommunicate request_size=4 [22:08:30]MH_SAM_APDU [22:08:30]CAPDU: 80 13 01 00 [22:08:30]Write to MH i2c: E2 08 00 11 2A 80 13 01 00 00 00 00 00 B8 [22:08:30]Write i2c OK [22:08:30]MH_I2C_Read... [22:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:30]Read from MH i2c: E2 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: E2 0E 00 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: E2 0E 00 11 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E4 [22:08:30]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:08:30]wFMCommunicate OK [22:08:30]SAM_PROTO_GetShiftState done [22:08:30]FM_GetShiftState done [22:08:30]opened in 1729469703 [22:08:30]opened+sec_in_day 1729556103 [22:08:30]quantity*price = 100015 [22:08:30]sum+1 = 100017 [22:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 419 21.10.2024 22:08 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70029 ФПД: 120986731580803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70029&fm=120986731580803&tin=02508201610067®Number=0000000000156251&sum=100000 [22:08:31]StoreToDocumentArchive [22:08:31]shift 194 fd 70029 [22:08:31]save to /storage/0194/doc_00070029 [22:08:31]save last doc name /storage/0194/doc_00070029 to /storage/kkm_last_doc_name [22:08:31]save OK [22:08:31]Clear old archive folders... [22:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:31]tlvbuf is 011619F0 [22:08:31]SAM_PROTO_ClearQueue [22:08:31]wFMCommunicate request_size=4 [22:08:31]MH_SAM_APDU [22:08:31]CAPDU: 80 09 00 00 [22:08:31]Write to MH i2c: E2 08 00 1E 2A 80 09 00 00 00 00 00 00 BA [22:08:31]Write i2c OK [22:08:31]MH_I2C_Read... [22:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:31]Read from MH i2c: E2 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [22:08:31]RAPDU: 90 00 [22:08:31]wFMCommunicate OK [22:08:31]SAM_PROTO_ClearQueue done [22:08:31]KKMCreateOFDPacket [22:08:31]OFDProtocolAddRootSTLVToBuf [22:08:31]FM_MakeSignedData [22:08:31]FM_MakeSignedData [22:08:31]SAM_PROTO_SignData [22:08:31]wFMCommunicate request_size=4 [22:08:31]MH_SAM_APDU [22:08:31]CAPDU: 80 0D 01 02 [22:08:31]Write to MH i2c: E2 08 00 1F 2A 80 0D 01 02 00 00 00 00 C2 [22:08:31]Write i2c OK [22:08:31]MH_I2C_Read... [22:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:31]Read from MH i2c: E2 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 1F 2A 00 90 00 BD [22:08:31]RAPDU: 90 00 [22:08:31]wFMCommunicate OK [22:08:31]wFMCommunicate request_size=255 [22:08:31]MH_SAM_APDU [22:08:31]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 E0 D0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 11 01 00 35 04 06 00 6E [22:08:31]Write to MH i2c: E2 02 01 20 2A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 E0 D0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 11 01 00 35 04 06 00 6E 00 00 E5 [22:08:31]Write i2c OK [22:08:31]MH_I2C_Read... [22:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:31]Read from MH i2c: E2 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 20 2A 00 90 00 BE [22:08:31]RAPDU: 90 00 [22:08:31]wFMCommunicate OK [22:08:31]wFMCommunicate request_size=10 [22:08:31]MH_SAM_APDU [22:08:31]CAPDU: 80 0D 02 02 05 09 6B 28 8D 83 [22:08:31]Write to MH i2c: E2 0D 00 21 2A 80 0D 02 02 05 00 09 6B 28 8D 83 00 00 7B [22:08:31]Write i2c OK [22:08:31]MH_I2C_Read... [22:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:31]Read from MH i2c: E2 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 21 2A 00 90 00 BF [22:08:31]RAPDU: 90 00 [22:08:31]wFMCommunicate OK [22:08:31]wFMCommunicate request_size=4 [22:08:31]MH_SAM_APDU [22:08:31]CAPDU: 80 0D 03 02 [22:08:31]Write to MH i2c: E2 08 00 22 2A 80 0D 03 02 00 00 00 00 C7 [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:32]Read from MH i2c: E2 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: E2 0B 00 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: E2 0B 00 22 2A 00 53 65 8E 1F C0 CC CB FA 90 00 7E [22:08:32]RAPDU: 53 65 8E 1F C0 CC CB FA 90 00 [22:08:32]wFMCommunicate OK [22:08:32]SAM_PROTO_SignData done [22:08:32]FM_MakeSignedData done [22:08:32]CreateOFDProtocolMessage [22:08:32]wFMCommunicate request_size=4 [22:08:32]MH_SAM_APDU [22:08:32]CAPDU: 80 11 00 00 [22:08:32]Write to MH i2c: E2 08 00 23 2A 80 11 00 00 00 00 00 00 C7 [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:32]Read from MH i2c: E2 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: E2 17 00 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: E2 17 00 23 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [22:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:08:32]wFMCommunicate OK [22:08:32]CreateOFDProtocolMessage done [22:08:32]OFDSenderStorePacket 70029 [22:08:32]StoreOFDPacket docnum=70029 [22:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 5C 07 01 8C 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 E0 D0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 11 01 00 35 04 06 00 6E 09 6B 28 8D 83 53 65 8E 1F C0 CC CB FA [22:08:32]CheckFolder [22:08:32]dirname=/storage/ofd_packets [22:08:32]CheckFolder done [22:08:32]ProducePacketName [22:08:32]name=ofd_packets/00070029 [22:08:32]NVStorageSaveData ofd_packets/00070029 [22:08:32]File name is /storage/ofd_packets/00070029 [22:08:32]Write 301 bytes [22:08:32]NVStorageSaveData done [22:08:32]OFDSenderStorePacket done [22:08:32]KKMCreateOFDPacket done [22:08:32]NVStorageSaveData kkm_last_timestamp [22:08:32]File name is /storage/kkm_last_timestamp [22:08:32]Write 4 bytes [22:08:32]NVStorageSaveData done [22:08:32]ExternCall_PrintAddStr [22:08:32]wPrintStart [22:08:32]Write to MH i2c: 01 00 00 24 2A 4E [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 07 00 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 07 00 24 2A 00 00 00 00 00 FF 0F 63 [22:08:32]RasterBufferAndPrint [22:08:32]line Счет N : (1)2885797 [22:08:32]line ИНН: 02508201610067 [22:08:32]line Контрольно-Кассовый Чек [22:08:32]line ПРОДАЖА [22:08:32]line ТРК (МРК, ГНК) : 42 [22:08:32]line Товар: 2710124130 [22:08:32]line Аи-92-К-5 [22:08:32]line 14.950 * 66.90 [22:08:32]line = 1000.16 [22:08:32]line НДС 12% НСП 1% [22:08:32]line > о реализуемом товаре [22:08:32]line ОКРУГЛЕНИЕ: -0.16 [22:08:32]line ИТОГО: 1000.00 [22:08:32]line Внесено: 1000.00 [22:08:32]line СДАЧА: 0.00 [22:08:32]line НСП 1% : 8.85 [22:08:32]line НДС 12% : 106.21 [22:08:32]line Наличными: 1000.00 [22:08:32]line Безнал.: 0.00 [22:08:32]line Место: АЗС № 85 "Партнер Нефть" [22:08:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:08:32]line СНО: Общий режим [22:08:32]line Чек 419 21.10.2024 22:08 [22:08:32]line Смена: 194 ФФД: 1.0 [22:08:32]line ЗНМ: 0300000167 [22:08:32]line РНМ: 0000000000156251 [22:08:32]line Версия ККМ: v1.0 [22:08:32]line ФМ: 0000000000963346 [22:08:32]line ФД: 70029 [22:08:32]line ФПД: 120986731580803 [22:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70029&fm=120986731580803&tin=02508201610067®Number=0000000000156251&sum=100000 [22:08:32]OFD Sender: Processing packet 70029 [packets to send 18, broken 17] [22:08:32]ProducePacketName [22:08:32]name=ofd_packets/00070029 [22:08:32]OFD Sender: To server: pG, [22:08:32]CommunicateWithHost lk.salyk.kg:30040 [22:08:32]ConnectInit lk.salyk.kg [22:08:32]written 0, free lines is 4095 [22:08:32]Connected sock=10 [22:08:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F1 5C 07 01 8C 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 E0 D0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 11 01 00 35 04 06 00 6E 09 6B 28 8D 83 53 65 8E 1F C0 CC CB FA [22:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 41 47 00 42 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 11 01 00 F4 03 04 00 83 7A 16 67 B6 04 01 00 00 53 1D 12 CE 66 D1 00 59 [22:08:32]CommunicateWithHost err = 0 [22:08:32]CheckOFDResponse [22:08:32]1017 (14) - 77093643461234 [22:08:32]1041 (16) - 0000000000963346 [22:08:32]1040 (4) - 70029 [22:08:32]1012 (4) - 21.10.2024 16:00 [22:08:32]1206 (1) - 0 [22:08:32]OFD Sender: Remove packet 70029 [22:08:32]ProducePacketName [22:08:32]name=ofd_packets/00070029 [22:08:32]NVStorageDeleteData [22:08:32]Write to MH i2c: 01 00 00 4F 2A 79 [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 07 00 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: 01 07 00 4F 2A 00 00 00 00 00 F3 0C 7F [22:08:32]RasterBufferAndPrint [22:08:32]line [22:08:32]line [22:08:32]line [22:08:32]line [22:08:32]line [22:08:32]written 0, free lines is 3321 [22:08:32]MH_Cut [22:08:32]Write to MH i2c: D1 01 00 56 2A 01 52 [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: D1 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: D1 01 00 [22:08:32]MH_I2C_Read... [22:08:32]Read from MH i2c: D1 01 00 56 2A 00 51 [22:08:32]Write to MH i2c: 01 00 00 57 2A 81 [22:08:32]Write i2c OK [22:08:32]MH_I2C_Read... [22:08:33]OFD Sender: No OFD packet to send [22:08:33]*** Cut start [22:08:33]*** Partial cut [22:08:33]*** CUTSNS_PIN = 1 [22:08:33]*** CUTSNS_PIN = 0 [22:08:33]*** Brake cut motor [22:08:34]Read from MH i2c: 01 [22:08:34]MH_I2C_Read... [22:08:34]*** Stop cut motor [22:08:34]*** Cut end [22:08:34]Read from MH i2c: 01 07 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: 01 07 00 57 2A 00 00 00 00 00 FF 0F 96 [22:08:34]process_action close_receipt done [22:08:34]requested_data is exist [22:08:34]produce_requested_data [22:08:34]requested_item fm.sn is exist - process it [22:08:34]wFMCommunicate request_size=4 [22:08:34]MH_SAM_APDU [22:08:34]CAPDU: 80 11 00 00 [22:08:34]Write to MH i2c: E2 08 00 58 2A 80 11 00 00 00 00 00 00 FC [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:34]Read from MH i2c: E2 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 17 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 17 00 58 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [22:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:08:34]wFMCommunicate OK [22:08:34]requested_item fd.num is exist - process it [22:08:34]SAM_PROTO_GetFieldsCounters [22:08:34]wFMCommunicate request_size=4 [22:08:34]MH_SAM_APDU [22:08:34]CAPDU: 80 13 00 00 [22:08:34]Write to MH i2c: E2 08 00 59 2A 80 13 00 00 00 00 00 00 FF [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:34]Read from MH i2c: E2 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 62 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 62 00 59 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:08:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:34]wFMCommunicate OK [22:08:34]SAM_PROTO_GetFieldsCounters done [22:08:34]requested_item shift.num is exist - process it [22:08:34]requested_item shift.opened is exist - process it [22:08:34]req_shift_opened [22:08:34]FM_GetShiftState [22:08:34]SAM_PROTO_GetShiftState [22:08:34]wFMCommunicate request_size=4 [22:08:34]MH_SAM_APDU [22:08:34]CAPDU: 80 13 01 00 [22:08:34]Write to MH i2c: E2 08 00 5A 2A 80 13 01 00 00 00 00 00 01 [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:34]Read from MH i2c: E2 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 5A 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2D [22:08:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:08:34]wFMCommunicate OK [22:08:34]SAM_PROTO_GetShiftState done [22:08:34]FM_GetShiftState done [22:08:34]req_shift_opened done [22:08:34]requested_item shift.open_date is exist - process it [22:08:34]req_shift_open_date [22:08:34]req_shift_open_date done [22:08:34]produce_requested_data done [22:08:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70029,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:08:34]process_action_free close_receipt [22:08:34]json_value_free [22:08:34]json_value_free done [22:08:34]process_json_proto returns [22:08:34]Send response to host [22:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70029,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:08:34]free response buf [22:08:34]execute_script done [22:08:34]execute_script returns [22:08:34]free content buf [22:08:34]Sock 7.Close socket [22:08:34]Sock 7.Thread stoped [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:25]accept exits with 9 [22:12:25]New connection [22:12:25]New thread 3067026788 created [22:12:25]Thread 3067170148 joined [22:12:25]Waiting for new connection... [22:12:25] Sock 9.Parse request [22:12:25]Sock 9.Check first char [22:12:25]Sock 9.First char is OK [22:12:25]request: POST /json_proto HTTP/1.0 [22:12:25]Method: POST [22:12:25]URL: /json_proto [22:12:25]Method is POST - this is cgi request [22:12:25]url: /json_proto [22:12:25]query_string will be loaded in cgi processing [22:12:25]execute_cgi json_proto POST (null) [22:12:25]execute_cgi path=json_proto method=POST [22:12:25]POST find Content-Length [22:12:25]Host: 172.17.50.3:8080 [22:12:25]Content-Length: 679 [22:12:25]Content-Type: application/json [22:12:25] [22:12:25]POST finish read [22:12:25]Found Content-Length = 679 [22:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [22:12:25]execute_script... [22:12: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)2885799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [22:12:25]POST & json_proto [22:12:25]process_json_proto [22:12:25]json parsed OK: [22:12:25]protocol is kg_v1.0 [22:12:25]action value=close_receipt [22:12:25]process_action close_receipt [22:12:25]cmd_close_receipt [22:12:25]MH_GetDate [22:12:25]Write to MH i2c: F0 00 00 5B 2A 74 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: F0 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: F0 09 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: F0 09 00 5B 2A 00 CB D1 16 67 6B 98 1E 66 1D [22:12:25]GetLastDocTimeStamp 1729548512 [22:12:25]current date 1729548747 [22:12:25]FM_GetShiftState [22:12:25]SAM_PROTO_GetShiftState [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 13 01 00 [22:12:25]Write to MH i2c: E2 08 00 5C 2A 80 13 01 00 00 00 00 00 03 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 0E 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 0E 00 5C 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 2F [22:12:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:12:25]wFMCommunicate OK [22:12:25]SAM_PROTO_GetShiftState done [22:12:25]FM_GetShiftState done [22:12:25]opened in 1729469703 [22:12:25]opened+sec_in_day 1729556103 [22:12:25]quantity*price = 80061 [22:12:25]sum+1 = 80063 [22:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 420 21.10.2024 22:12 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70030 ФПД: 196037385903544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70030&fm=196037385903544&tin=02508201610067®Number=0000000000156251&sum=80000 [22:12:26]StoreToDocumentArchive [22:12:26]shift 194 fd 70030 [22:12:26]save to /storage/0194/doc_00070030 [22:12:26]save last doc name /storage/0194/doc_00070030 to /storage/kkm_last_doc_name [22:12:26]save OK [22:12:26]Clear old archive folders... [22:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:26]tlvbuf is 01172510 [22:12:26]SAM_PROTO_ClearQueue [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 09 00 00 [22:12:26]Write to MH i2c: E2 08 00 69 2A 80 09 00 00 00 00 00 00 05 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 69 2A 00 90 00 07 [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]SAM_PROTO_ClearQueue done [22:12:26]KKMCreateOFDPacket [22:12:26]OFDProtocolAddRootSTLVToBuf [22:12:26]FM_MakeSignedData [22:12:26]FM_MakeSignedData [22:12:26]SAM_PROTO_SignData [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 0D 01 02 [22:12:26]Write to MH i2c: E2 08 00 6A 2A 80 0D 01 02 00 00 00 00 0D [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 6A 2A 00 90 00 08 [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]wFMCommunicate request_size=255 [22:12:26]MH_SAM_APDU [22:12:26]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 A4 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 11 01 00 35 04 06 00 B2 [22:12:26]Write to MH i2c: E2 02 01 6B 2A 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 A4 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 11 01 00 35 04 06 00 B2 00 00 D5 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 6B 2A 00 90 00 09 [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]wFMCommunicate request_size=10 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 0D 02 02 05 4B 82 BF DD B8 [22:12:26]Write to MH i2c: E2 0D 00 6C 2A 80 0D 02 02 05 00 4B 82 BF DD B8 00 00 3B [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 6C 2A 00 90 00 0A [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 0D 03 02 [22:12:26]Write to MH i2c: E2 08 00 6D 2A 80 0D 03 02 00 00 00 00 12 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0B 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0B 00 6D 2A 00 34 40 D1 85 A9 8B D5 7C 90 00 62 [22:12:26]RAPDU: 34 40 D1 85 A9 8B D5 7C 90 00 [22:12:26]wFMCommunicate OK [22:12:26]SAM_PROTO_SignData done [22:12:26]FM_MakeSignedData done [22:12:26]CreateOFDProtocolMessage [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 11 00 00 [22:12:26]Write to MH i2c: E2 08 00 6E 2A 80 11 00 00 00 00 00 00 12 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 6E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [22:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:12:26]wFMCommunicate OK [22:12:26]CreateOFDProtocolMessage done [22:12:26]OFDSenderStorePacket 70030 [22:12:26]StoreOFDPacket docnum=70030 [22:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 35 25 07 01 87 18 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 A4 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 11 01 00 35 04 06 00 B2 4B 82 BF DD B8 34 40 D1 85 A9 8B D5 7C [22:12:26]CheckFolder [22:12:26]dirname=/storage/ofd_packets [22:12:26]CheckFolder done [22:12:26]ProducePacketName [22:12:26]name=ofd_packets/00070030 [22:12:26]NVStorageSaveData ofd_packets/00070030 [22:12:26]File name is /storage/ofd_packets/00070030 [22:12:26]Write 301 bytes [22:12:26]NVStorageSaveData done [22:12:26]OFDSenderStorePacket done [22:12:26]KKMCreateOFDPacket done [22:12:26]NVStorageSaveData kkm_last_timestamp [22:12:26]File name is /storage/kkm_last_timestamp [22:12:26]Write 4 bytes [22:12:26]NVStorageSaveData done [22:12:26]ExternCall_PrintAddStr [22:12:26]wPrintStart [22:12:26]Write to MH i2c: 01 00 00 6F 2A 99 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 6F 2A 00 00 00 00 00 FF 0F AE [22:12:26]RasterBufferAndPrint [22:12:26]line Счет N : (1)2885799 [22:12:26]line ИНН: 02508201610067 [22:12:26]line Контрольно-Кассовый Чек [22:12:26]line ПРОДАЖА [22:12:26]line ТРК (МРК, ГНК) : 13 [22:12:26]line Товар: 2710124500 [22:12:26]line Аи-95-К-5 [22:12:26]line 10.790 * 74.20 [22:12:26]line = 800.62 [22:12:26]line НДС 12% НСП 1% [22:12:26]line > о реализуемом товаре [22:12:26]line ОКРУГЛЕНИЕ: -0.62 [22:12:26]line ИТОГО: 800.00 [22:12:26]line Внесено: 800.00 [22:12:26]line СДАЧА: 0.00 [22:12:26]line НСП 1% : 7.08 [22:12:26]line НДС 12% : 85.02 [22:12:26]line Наличными: 800.00 [22:12:26]line Безнал.: 0.00 [22:12:26]line Место: АЗС № 85 "Партнер Нефть" [22:12:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:12:26]line СНО: Общий режим [22:12:26]line Чек 420 21.10.2024 22:12 [22:12:26]line Смена: 194 ФФД: 1.0 [22:12:26]line ЗНМ: 0300000167 [22:12:26]line РНМ: 0000000000156251 [22:12:26]line Версия ККМ: v1.0 [22:12:26]line ФМ: 0000000000963346 [22:12:26]line ФД: 70030 [22:12:26]line ФПД: 196037385903544 [22:12:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70030&fm=196037385903544&tin=02508201610067®Number=0000000000156251&sum=80000 [22:12:27]OFD Sender: Processing packet 70030 [packets to send 18, broken 17] [22:12:27]ProducePacketName [22:12:27]name=ofd_packets/00070030 [22:12:27]OFD Sender: To server: pG, [22:12:27]CommunicateWithHost lk.salyk.kg:30040 [22:12:27]ConnectInit lk.salyk.kg [22:12:27]written 0, free lines is 4095 [22:12:27]Connected sock=10 [22:12:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 35 25 07 01 87 18 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 A4 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 11 01 00 35 04 06 00 B2 4B 82 BF DD B8 34 40 D1 85 A9 8B D5 7C [22:12:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 D9 47 00 EB 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 11 01 00 F4 03 04 00 6D 7B 16 67 B6 04 01 00 00 AA 87 D0 F3 DA CB 4F CC [22:12:27]CommunicateWithHost err = 0 [22:12:27]CheckOFDResponse [22:12:27]1017 (14) - 77093643461234 [22:12:27]1041 (16) - 0000000000963346 [22:12:27]1040 (4) - 70030 [22:12:27]1012 (4) - 21.10.2024 16:03 [22:12:27]1206 (1) - 0 [22:12:27]OFD Sender: Remove packet 70030 [22:12:27]ProducePacketName [22:12:27]name=ofd_packets/00070030 [22:12:27]NVStorageDeleteData [22:12:27]Write to MH i2c: 01 00 00 9A 2A C4 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 07 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 E6 0C BD [22:12:27]RasterBufferAndPrint [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]written 0, free lines is 3309 [22:12:27]MH_Cut [22:12:27]Write to MH i2c: D1 01 00 A1 2A 01 9D [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 01 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 01 00 A1 2A 00 9C [22:12:27]Write to MH i2c: 01 00 00 A2 2A CC [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]OFD Sender: No OFD packet to send [22:12:28]*** Cut start [22:12:28]*** Partial cut [22:12:28]*** CUTSNS_PIN = 1 [22:12:28]*** CUTSNS_PIN = 0 [22:12:28]*** Brake cut motor [22:12:28]Read from MH i2c: 01 [22:12:28]MH_I2C_Read... [22:12:28]*** Stop cut motor [22:12:28]*** Cut end [22:12:28]Read from MH i2c: 01 07 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 A2 2A 00 00 00 00 00 FF 0F E1 [22:12:28]process_action close_receipt done [22:12:28]requested_data is exist [22:12:28]produce_requested_data [22:12:28]requested_item fm.sn is exist - process it [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 11 00 00 [22:12:28]Write to MH i2c: E2 08 00 A3 2A 80 11 00 00 00 00 00 00 47 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 A3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [22:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:12:28]wFMCommunicate OK [22:12:28]requested_item fd.num is exist - process it [22:12:28]SAM_PROTO_GetFieldsCounters [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 13 00 00 [22:12:28]Write to MH i2c: E2 08 00 A4 2A 80 13 00 00 00 00 00 00 4A [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 62 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 62 00 A4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [22:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_GetFieldsCounters done [22:12:29]requested_item shift.num is exist - process it [22:12:29]requested_item shift.opened is exist - process it [22:12:29]req_shift_opened [22:12:29]FM_GetShiftState [22:12:29]SAM_PROTO_GetShiftState [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 13 01 00 [22:12:29]Write to MH i2c: E2 08 00 A5 2A 80 13 01 00 00 00 00 00 4C [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 A5 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 78 [22:12:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_GetShiftState done [22:12:29]FM_GetShiftState done [22:12:29]req_shift_opened done [22:12:29]requested_item shift.open_date is exist - process it [22:12:29]req_shift_open_date [22:12:29]req_shift_open_date done [22:12:29]produce_requested_data done [22:12:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70030,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:12:29]process_action_free close_receipt [22:12:29]json_value_free [22:12:29]json_value_free done [22:12:29]process_json_proto returns [22:12:29]Send response to host [22:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70030,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:12:29]free response buf [22:12:29]execute_script done [22:12:29]execute_script returns [22:12:29]free content buf [22:12:29]Sock 9.Close socket [22:12:29]Sock 9.Thread stoped [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:38]accept exits with 7 [22:13:38]New connection [22:13:38]New thread 3067170148 created [22:13:38]Thread 3067026788 joined [22:13:38]Waiting for new connection... [22:13:38] Sock 7.Parse request [22:13:38]Sock 7.Check first char [22:13:38]Sock 7.First char is OK [22:13:38]request: POST /json_proto HTTP/1.0 [22:13:38]Method: POST [22:13:38]URL: /json_proto [22:13:38]Method is POST - this is cgi request [22:13:38]url: /json_proto [22:13:38]query_string will be loaded in cgi processing [22:13:38]execute_cgi json_proto POST (null) [22:13:38]execute_cgi path=json_proto method=POST [22:13:38]POST find Content-Length [22:13:38]Host: 172.17.50.3:8080 [22:13:38]Content-Length: 686 [22:13:38]Content-Type: application/json [22:13:38] [22:13:38]POST finish read [22:13:38]Found Content-Length = 686 [22:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.720, "sum" : 1506.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1506.00, "total" : 1506.00, "payments": [ { "type": 0, "sum" : 1506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:38]execute_script... [22:13:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.720, "sum" : 1506.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1506.00, "total" : 1506.00, "payments": [ { "type": 0, "sum" : 1506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:38]POST & json_proto [22:13:38]process_json_proto [22:13:38]json parsed OK: [22:13:38]protocol is kg_v1.0 [22:13:38]action value=close_receipt [22:13:38]process_action close_receipt [22:13:38]cmd_close_receipt [22:13:38]MH_GetDate [22:13:38]Write to MH i2c: F0 00 00 A6 2A BF [22:13:38]Write i2c OK [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 09 00 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: F0 09 00 A6 2A 00 14 D2 16 67 6B 98 1E 66 B2 [22:13:38]GetLastDocTimeStamp 1729548747 [22:13:38]current date 1729548820 [22:13:38]FM_GetShiftState [22:13:38]SAM_PROTO_GetShiftState [22:13:38]wFMCommunicate request_size=4 [22:13:38]MH_SAM_APDU [22:13:38]CAPDU: 80 13 01 00 [22:13:38]Write to MH i2c: E2 08 00 A7 2A 80 13 01 00 00 00 00 00 4E [22:13:38]Write i2c OK [22:13:38]MH_I2C_Read... [22:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:38]Read from MH i2c: E2 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: E2 0E 00 [22:13:38]MH_I2C_Read... [22:13:38]Read from MH i2c: E2 0E 00 A7 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7A [22:13:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:13:38]wFMCommunicate OK [22:13:38]SAM_PROTO_GetShiftState done [22:13:38]FM_GetShiftState done [22:13:38]opened in 1729469703 [22:13:38]opened+sec_in_day 1729556103 [22:13:38]quantity*price = 150620 [22:13:38]sum+1 = 150622 [22:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1506.00 Внесено: 1506.00 СДАЧА: 0.00 НСП 1% : 13.33 НДС 12% : 159.95 Наличными: 1506.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 421 21.10.2024 22:13 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70031 ФПД: 246588715706288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70031&fm=246588715706288&tin=02508201610067®Number=0000000000156251&sum=150600 [22:13:39]StoreToDocumentArchive [22:13:39]shift 194 fd 70031 [22:13:39]save to /storage/0194/doc_00070031 [22:13:39]save last doc name /storage/0194/doc_00070031 to /storage/kkm_last_doc_name [22:13:39]save OK [22:13:39]Clear old archive folders... [22:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:13:39]tlvbuf is 01153260 [22:13:39]SAM_PROTO_ClearQueue [22:13:39]wFMCommunicate request_size=4 [22:13:39]MH_SAM_APDU [22:13:39]CAPDU: 80 09 00 00 [22:13:39]Write to MH i2c: E2 08 00 B4 2A 80 09 00 00 00 00 00 00 50 [22:13:39]Write i2c OK [22:13:39]MH_I2C_Read... [22:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:39]Read from MH i2c: E2 [22:13:39]MH_I2C_Read... [22:13:39]Read from MH i2c: E2 03 00 [22:13:39]MH_I2C_Read... [22:13:39]Read from MH i2c: E2 03 00 B4 2A 00 90 00 52 [22:13:39]RAPDU: 90 00 [22:13:39]wFMCommunicate OK [22:13:39]SAM_PROTO_ClearQueue done [22:13:39]KKMCreateOFDPacket [22:13:39]OFDProtocolAddRootSTLVToBuf [22:13:39]FM_MakeSignedData [22:13:39]FM_MakeSignedData [22:13:39]SAM_PROTO_SignData [22:13:39]wFMCommunicate request_size=4 [22:13:39]MH_SAM_APDU [22:13:39]CAPDU: 80 0D 01 02 [22:13:39]Write to MH i2c: E2 08 00 B5 2A 80 0D 01 02 00 00 00 00 58 [22:13:39]Write i2c OK [22:13:39]MH_I2C_Read... [22:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:39]Read from MH i2c: E2 [22:13:39]MH_I2C_Read... [22:13:39]Read from MH i2c: E2 03 00 [22:13:39]MH_I2C_Read... [22:13:39]Read from MH i2c: E2 03 00 B5 2A 00 90 00 53 [22:13:39]RAPDU: 90 00 [22:13:39]wFMCommunicate OK [22:13:39]wFMCommunicate request_size=255 [22:13:39]MH_SAM_APDU [22:13:39]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 33 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5D 4C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3E 00 00 00 00 07 04 06 00 48 4C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 14 D2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 11 01 00 35 04 06 00 E0 45 [22:13:39]Write to MH i2c: E2 02 01 B6 2A 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 33 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5D 4C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3E 00 00 00 00 07 04 06 00 48 4C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 14 D2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 11 01 00 35 04 06 00 E0 45 00 00 7D [22:13:39]Write i2c OK [22:13:39]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 B6 2A 00 90 00 54 [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]wFMCommunicate request_size=9 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 0D 02 02 04 68 CE 27 B0 [22:13:40]Write to MH i2c: E2 0C 00 B7 2A 80 0D 02 02 04 00 68 CE 27 B0 00 00 70 [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 03 00 B7 2A 00 90 00 55 [22:13:40]RAPDU: 90 00 [22:13:40]wFMCommunicate OK [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 0D 03 02 [22:13:40]Write to MH i2c: E2 08 00 B8 2A 80 0D 03 02 00 00 00 00 5D [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 0B 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 0B 00 B8 2A 00 A8 4D CC E5 C3 A9 5E F0 90 00 BE [22:13:40]RAPDU: A8 4D CC E5 C3 A9 5E F0 90 00 [22:13:40]wFMCommunicate OK [22:13:40]SAM_PROTO_SignData done [22:13:40]FM_MakeSignedData done [22:13:40]CreateOFDProtocolMessage [22:13:40]wFMCommunicate request_size=4 [22:13:40]MH_SAM_APDU [22:13:40]CAPDU: 80 11 00 00 [22:13:40]Write to MH i2c: E2 08 00 B9 2A 80 11 00 00 00 00 00 00 5D [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:40]Read from MH i2c: E2 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 17 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: E2 17 00 B9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [22:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:13:40]wFMCommunicate OK [22:13:40]CreateOFDProtocolMessage done [22:13:40]OFDSenderStorePacket 70031 [22:13:40]StoreOFDPacket docnum=70031 [22:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A3 74 06 01 C6 4D 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 33 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5D 4C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3E 00 00 00 00 07 04 06 00 48 4C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 14 D2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 11 01 00 35 04 06 00 E0 45 68 CE 27 B0 A8 4D CC E5 C3 A9 5E F0 [22:13:40]CheckFolder [22:13:40]dirname=/storage/ofd_packets [22:13:40]CheckFolder done [22:13:40]ProducePacketName [22:13:40]name=ofd_packets/00070031 [22:13:40]NVStorageSaveData ofd_packets/00070031 [22:13:40]File name is /storage/ofd_packets/00070031 [22:13:40]Write 300 bytes [22:13:40]NVStorageSaveData done [22:13:40]OFDSenderStorePacket done [22:13:40]KKMCreateOFDPacket done [22:13:40]NVStorageSaveData kkm_last_timestamp [22:13:40]File name is /storage/kkm_last_timestamp [22:13:40]Write 4 bytes [22:13:40]NVStorageSaveData done [22:13:40]ExternCall_PrintAddStr [22:13:40]wPrintStart [22:13:40]Write to MH i2c: 01 00 00 BA 2A E4 [22:13:40]Write i2c OK [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 07 00 [22:13:40]MH_I2C_Read... [22:13:40]Read from MH i2c: 01 07 00 BA 2A 00 00 00 00 00 FF 0F F9 [22:13:40]RasterBufferAndPrint [22:13:40]line Счет N : (1)2885798 [22:13:40]line ИНН: 02508201610067 [22:13:40]line Контрольно-Кассовый Чек [22:13:40]line ПРОДАЖА [22:13:40]line ТРК (МРК, ГНК) : 71 [22:13:40]line Товар: 2711129700 [22:13:40]line ГАЗ-К-3 [22:13:40]line 38.720 * 38.90 [22:13:40]line = 1506.21 [22:13:40]line НДС 12% НСП 1% [22:13:40]line > о реализуемом товаре [22:13:40]line ОКРУГЛЕНИЕ: -0.21 [22:13:40]line ИТОГО: 1506.00 [22:13:40]line Внесено: 1506.00 [22:13:40]line СДАЧА: 0.00 [22:13:40]line НСП 1% : 13.33 [22:13:40]line НДС 12% : 159.95 [22:13:40]line Наличными: 1506.00 [22:13:40]line Безнал.: 0.00 [22:13:40]line Место: АЗС № 85 "Партнер Нефть" [22:13:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:13:40]line СНО: Общий режим [22:13:40]line Чек 421 21.10.2024 22:13 [22:13:40]line Смена: 194 ФФД: 1.0 [22:13:40]line ЗНМ: 0300000167 [22:13:40]line РНМ: 0000000000156251 [22:13:40]line Версия ККМ: v1.0 [22:13:40]line ФМ: 0000000000963346 [22:13:40]line ФД: 70031 [22:13:40]line ФПД: 246588715706288 [22:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70031&fm=246588715706288&tin=02508201610067®Number=0000000000156251&sum=150600 [22:13:40]OFD Sender: Processing packet 70031 [packets to send 18, broken 17] [22:13:40]ProducePacketName [22:13:40]name=ofd_packets/00070031 [22:13:40]OFD Sender: To server: pG, [22:13:40]CommunicateWithHost lk.salyk.kg:30040 [22:13:40]ConnectInit lk.salyk.kg [22:13:40]written 0, free lines is 4095 [22:13:40]Connected sock=11 [22:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A3 74 06 01 C6 4D 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 33 FF 03 08 00 03 40 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5D 4C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3E 00 00 00 00 07 04 06 00 48 4C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 14 D2 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 11 01 00 35 04 06 00 E0 45 68 CE 27 B0 A8 4D CC E5 C3 A9 5E F0 [22:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BE 15 47 00 3F 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 39 36 33 33 34 36 10 04 04 00 8F 11 01 00 F4 03 04 00 B7 7B 16 67 B6 04 01 00 00 7D F1 D0 3D 8B C2 DF 8D [22:13:40]CommunicateWithHost err = 0 [22:13:40]CheckOFDResponse [22:13:40]1017 (14) - 77093643461234 [22:13:40]1041 (16) - 0000000000963346 [22:13:40]1040 (4) - 70031 [22:13:40]1012 (4) - 21.10.2024 16:05 [22:13:40]1206 (1) - 0 [22:13:40]OFD Sender: Remove packet 70031 [22:13:40]ProducePacketName [22:13:40]name=ofd_packets/00070031 [22:13:40]NVStorageDeleteData [22:13:41]Write to MH i2c: 01 00 00 E5 2A 0F [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 07 00 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 E4 0C 06 [22:13:41]RasterBufferAndPrint [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]line [22:13:41]written 0, free lines is 3306 [22:13:41]MH_Cut [22:13:41]Write to MH i2c: D1 01 00 EC 2A 01 E8 [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 01 00 [22:13:41]MH_I2C_Read... [22:13:41]Read from MH i2c: D1 01 00 EC 2A 00 E7 [22:13:41]Write to MH i2c: 01 00 00 ED 2A 17 [22:13:41]Write i2c OK [22:13:41]MH_I2C_Read... [22:13:41]OFD Sender: No OFD packet to send [22:13:41]*** Cut start [22:13:41]*** Partial cut [22:13:41]*** CUTSNS_PIN = 1 [22:13:41]*** CUTSNS_PIN = 0 [22:13:42]*** Brake cut motor [22:13:42]Read from MH i2c: 01 [22:13:42]MH_I2C_Read... [22:13:42]*** Stop cut motor [22:13:42]*** Cut end [22:13:42]Read from MH i2c: 01 07 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: 01 07 00 ED 2A 00 00 00 00 00 FF 0F 2C [22:13:42]process_action close_receipt done [22:13:42]requested_data is exist [22:13:42]produce_requested_data [22:13:42]requested_item fm.sn is exist - process it [22:13:42]wFMCommunicate request_size=4 [22:13:42]MH_SAM_APDU [22:13:42]CAPDU: 80 11 00 00 [22:13:42]Write to MH i2c: E2 08 00 EE 2A 80 11 00 00 00 00 00 00 92 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:42]Read from MH i2c: E2 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 17 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 17 00 EE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [22:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:13:42]wFMCommunicate OK [22:13:42]requested_item fd.num is exist - process it [22:13:42]SAM_PROTO_GetFieldsCounters [22:13:42]wFMCommunicate request_size=4 [22:13:42]MH_SAM_APDU [22:13:42]CAPDU: 80 13 00 00 [22:13:42]Write to MH i2c: E2 08 00 EF 2A 80 13 00 00 00 00 00 00 95 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:42]Read from MH i2c: E2 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 62 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 62 00 EF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [22:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:42]wFMCommunicate OK [22:13:42]SAM_PROTO_GetFieldsCounters done [22:13:42]requested_item shift.num is exist - process it [22:13:42]requested_item shift.opened is exist - process it [22:13:42]req_shift_opened [22:13:42]FM_GetShiftState [22:13:42]SAM_PROTO_GetShiftState [22:13:42]wFMCommunicate request_size=4 [22:13:42]MH_SAM_APDU [22:13:42]CAPDU: 80 13 01 00 [22:13:42]Write to MH i2c: E2 08 00 F0 2A 80 13 01 00 00 00 00 00 97 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:42]Read from MH i2c: E2 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 F0 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C3 [22:13:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:13:42]wFMCommunicate OK [22:13:42]SAM_PROTO_GetShiftState done [22:13:42]FM_GetShiftState done [22:13:42]req_shift_opened done [22:13:42]requested_item shift.open_date is exist - process it [22:13:42]req_shift_open_date [22:13:42]req_shift_open_date done [22:13:42]produce_requested_data done [22:13:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70031,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:13:42]process_action_free close_receipt [22:13:42]json_value_free [22:13:42]json_value_free done [22:13:42]process_json_proto returns [22:13:42]Send response to host [22:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70031,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:13:42]free response buf [22:13:42]execute_script done [22:13:42]execute_script returns [22:13:42]free content buf [22:13:42]Sock 7.Close socket [22:13:42]Sock 7.Thread stoped [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:11]accept exits with 9 [22:26:11]New connection [22:26:11]New thread 3067026788 created [22:26:11]Thread 3067170148 joined [22:26:11]Waiting for new connection... [22:26:11] Sock 9.Parse request [22:26:11]Sock 9.Check first char [22:26:11]Sock 9.First char is OK [22:26:11]request: POST /json_proto HTTP/1.0 [22:26:11]Method: POST [22:26:11]URL: /json_proto [22:26:11]Method is POST - this is cgi request [22:26:11]url: /json_proto [22:26:11]query_string will be loaded in cgi processing [22:26:11]execute_cgi json_proto POST (null) [22:26:11]execute_cgi path=json_proto method=POST [22:26:11]POST find Content-Length [22:26:11]Host: 172.17.50.3:8080 [22:26:11]Content-Length: 770 [22:26:11]Content-Type: application/json [22:26:11] [22:26:11]POST finish read [22:26:11]Found Content-Length = 770 [22:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885800", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:11]execute_script... [22:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885800", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:11]POST & json_proto [22:26:11]process_json_proto [22:26:11]json parsed OK: [22:26:11]protocol is kg_v1.0 [22:26:11]action value=close_receipt [22:26:11]process_action close_receipt [22:26:11]cmd_close_receipt [22:26:11]MH_GetDate [22:26:11]Write to MH i2c: F0 00 00 F1 2A 0A [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: F0 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: F0 09 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: F0 09 00 F1 2A 00 05 D5 16 67 6B 98 1E 66 F1 [22:26:11]GetLastDocTimeStamp 1729548820 [22:26:11]current date 1729549573 [22:26:11]FM_GetShiftState [22:26:11]SAM_PROTO_GetShiftState [22:26:11]wFMCommunicate request_size=4 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 13 01 00 [22:26:11]Write to MH i2c: E2 08 00 F2 2A 80 13 01 00 00 00 00 00 99 [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 0E 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 0E 00 F2 2A 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C5 [22:26:11]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:26:11]wFMCommunicate OK [22:26:11]SAM_PROTO_GetShiftState done [22:26:11]FM_GetShiftState done [22:26:11]opened in 1729469703 [22:26:11]opened+sec_in_day 1729556103 [22:26:11]quantity*price = 100015 [22:26:11]sum+1 = 100017 [22:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 422 21.10.2024 22:26 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70032 ФПД: 56554776484240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70032&fm=56554776484240&tin=02508201610067®Number=0000000000156251&sum=100016 [22:26:12]StoreToDocumentArchive [22:26:12]shift 194 fd 70032 [22:26:12]save to /storage/0194/doc_00070032 [22:26:12]save last doc name /storage/0194/doc_00070032 to /storage/kkm_last_doc_name [22:26:12]save OK [22:26:12]Clear old archive folders... [22:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:12]tlvbuf is 011D7870 [22:26:12]SAM_PROTO_ClearQueue [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 09 00 00 [22:26:12]Write to MH i2c: E2 08 00 FF 2A 80 09 00 00 00 00 00 00 9B [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 FF 2A 00 90 00 9D [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_ClearQueue done [22:26:12]KKMCreateOFDPacket [22:26:12]OFDProtocolAddRootSTLVToBuf [22:26:12]FM_MakeSignedData [22:26:12]FM_MakeSignedData [22:26:12]SAM_PROTO_SignData [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 01 02 [22:26:12]Write to MH i2c: E2 08 00 00 2B 80 0D 01 02 00 00 00 00 A4 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 00 2B 00 90 00 9F [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=255 [22:26:12]MH_SAM_APDU [22:26: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 05 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 11 01 00 35 04 06 00 33 [22:26:12]Write to MH i2c: E2 02 01 01 2B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 05 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 11 01 00 35 04 06 00 33 00 00 DC [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 01 2B 00 90 00 A0 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=10 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 02 02 05 6F AF 5C D9 90 [22:26:12]Write to MH i2c: E2 0D 00 02 2B 80 0D 02 02 05 00 6F AF 5C D9 90 00 00 94 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 02 2B 00 90 00 A1 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 03 02 [22:26:12]Write to MH i2c: E2 08 00 03 2B 80 0D 03 02 00 00 00 00 A9 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 03 2B 00 61 52 82 97 B0 1D 50 16 90 00 A9 [22:26:12]RAPDU: 61 52 82 97 B0 1D 50 16 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_SignData done [22:26:12]FM_MakeSignedData done [22:26:12]CreateOFDProtocolMessage [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 11 00 00 [22:26:12]Write to MH i2c: E2 08 00 04 2B 80 11 00 00 00 00 00 00 A9 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 04 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [22:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:26:13]wFMCommunicate OK [22:26:13]CreateOFDProtocolMessage done [22:26:13]OFDSenderStorePacket 70032 [22:26:13]StoreOFDPacket docnum=70032 [22:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 3D 07 01 8E 22 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 05 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 11 01 00 35 04 06 00 33 6F AF 5C D9 90 61 52 82 97 B0 1D 50 16 [22:26:13]CheckFolder [22:26:13]dirname=/storage/ofd_packets [22:26:13]CheckFolder done [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00070032 [22:26:13]NVStorageSaveData ofd_packets/00070032 [22:26:13]File name is /storage/ofd_packets/00070032 [22:26:13]Write 301 bytes [22:26:13]NVStorageSaveData done [22:26:13]OFDSenderStorePacket done [22:26:13]KKMCreateOFDPacket done [22:26:13]NVStorageSaveData kkm_last_timestamp [22:26:13]File name is /storage/kkm_last_timestamp [22:26:13]Write 4 bytes [22:26:13]NVStorageSaveData done [22:26:13]ExternCall_PrintAddStr [22:26:13]wPrintStart [22:26:13]Write to MH i2c: 01 00 00 05 2B 30 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 05 2B 00 00 00 00 00 FF 0F 45 [22:26:13]RasterBufferAndPrint [22:26:13]line Счет N : (1)2885800 [22:26:13]line ИНН: 02508201610067 [22:26:13]line Контрольно-Кассовый Чек [22:26:13]line ПРОДАЖА [22:26:13]line ТРК (МРК, ГНК) : 42 [22:26:13]line Товар: 2710124130 [22:26:13]line Аи-92-К-5 [22:26:13]line 14.950 * 66.90 [22:26:13]line = 1000.16 [22:26:13]line НДС 12% НСП 1% [22:26:13]line > о реализуемом товаре [22:26:13]line ИТОГО: 1000.16 [22:26:13]line НСП 1% : 8.85 [22:26:13]line НДС 12% : 106.21 [22:26:13]line Наличными: 0.00 [22:26:13]line Безнал.: 1000.16 [22:26:13]line Место: АЗС № 85 "Партнер Нефть" [22:26:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:26:13]line СНО: Общий режим [22:26:13]line Чек 422 21.10.2024 22:26 [22:26:13]line Смена: 194 ФФД: 1.0 [22:26:13]line ЗНМ: 0300000167 [22:26:13]line РНМ: 0000000000156251 [22:26:13]line Версия ККМ: v1.0 [22:26:13]line Платежная система: Mbank [22:26:13]line ФМ: 0000000000963346 [22:26:13]line ФД: 70032 [22:26:13]line ФПД: 56554776484240 [22:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70032&fm=56554776484240&tin=02508201610067®Number=0000000000156251&sum=100016 [22:26:13]OFD Sender: Processing packet 70032 [packets to send 18, broken 17] [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00070032 [22:26:13]OFD Sender: To server: pG, [22:26:13]CommunicateWithHost lk.salyk.kg:30040 [22:26:13]ConnectInit lk.salyk.kg [22:26:13]written 0, free lines is 4095 [22:26:13]Connected sock=10 [22:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 3D 07 01 8E 22 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 05 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 11 01 00 35 04 06 00 33 6F AF 5C D9 90 61 52 82 97 B0 1D 50 16 [22:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 35 5D 47 00 4B 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 39 36 33 33 34 36 10 04 04 00 90 11 01 00 F4 03 04 00 A8 7E 16 67 B6 04 01 00 00 61 21 1C 3F BB 30 DF 50 [22:26:13]CommunicateWithHost err = 0 [22:26:13]CheckOFDResponse [22:26:13]1017 (14) - 77093643461234 [22:26:13]1041 (16) - 0000000000963346 [22:26:13]1040 (4) - 70032 [22:26:13]1012 (4) - 21.10.2024 16:17 [22:26:13]1206 (1) - 0 [22:26:13]OFD Sender: Remove packet 70032 [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00070032 [22:26:13]NVStorageDeleteData [22:26:13]Write to MH i2c: 01 00 00 2E 2B 59 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 2E 2B 00 00 00 00 00 14 0D 81 [22:26:13]RasterBufferAndPrint [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]written 0, free lines is 3354 [22:26:13]MH_Cut [22:26:13]Write to MH i2c: D1 01 00 35 2B 01 32 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 35 2B 00 31 [22:26:13]Write to MH i2c: 01 00 00 36 2B 61 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:14]OFD Sender: No OFD packet to send [22:26:14]*** Cut start [22:26:14]*** Partial cut [22:26:14]*** CUTSNS_PIN = 1 [22:26:14]*** CUTSNS_PIN = 0 [22:26:14]*** Brake cut motor [22:26:15]Read from MH i2c: 01 [22:26:15]MH_I2C_Read... [22:26:15]*** Stop cut motor [22:26:15]*** Cut end [22:26:15]Read from MH i2c: 01 07 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: 01 07 00 36 2B 00 00 00 00 00 FF 0F 76 [22:26:15]process_action close_receipt done [22:26:15]requested_data is exist [22:26:15]produce_requested_data [22:26:15]requested_item fm.sn is exist - process it [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 11 00 00 [22:26:15]Write to MH i2c: E2 08 00 37 2B 80 11 00 00 00 00 00 00 DC [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 37 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [22:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:26:15]wFMCommunicate OK [22:26:15]requested_item fd.num is exist - process it [22:26:15]SAM_PROTO_GetFieldsCounters [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 00 00 [22:26:15]Write to MH i2c: E2 08 00 38 2B 80 13 00 00 00 00 00 00 DF [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 38 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [22:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetFieldsCounters done [22:26:15]requested_item shift.num is exist - process it [22:26:15]requested_item shift.opened is exist - process it [22:26:15]req_shift_opened [22:26:15]FM_GetShiftState [22:26:15]SAM_PROTO_GetShiftState [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 01 00 [22:26:15]Write to MH i2c: E2 08 00 39 2B 80 13 01 00 00 00 00 00 E1 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 39 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0D [22:26:15]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetShiftState done [22:26:15]FM_GetShiftState done [22:26:15]req_shift_opened done [22:26:15]requested_item shift.open_date is exist - process it [22:26:15]req_shift_open_date [22:26:15]req_shift_open_date done [22:26:15]produce_requested_data done [22:26:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70032,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:26:15]process_action_free close_receipt [22:26:15]json_value_free [22:26:15]json_value_free done [22:26:15]process_json_proto returns [22:26:15]Send response to host [22:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70032,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:26:15]free response buf [22:26:15]execute_script done [22:26:15]execute_script returns [22:26:15]free content buf [22:26:15]Sock 9.Close socket [22:26:15]Sock 9.Thread stoped [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:54]accept exits with 7 [22:26:54]New connection [22:26:54]New thread 3067170148 created [22:26:54]Thread 3067026788 joined [22:26:54]Waiting for new connection... [22:26:54] Sock 7.Parse request [22:26:54]Sock 7.Check first char [22:26:54]Sock 7.First char is OK [22:26:54]request: POST /json_proto HTTP/1.0 [22:26:54]Method: POST [22:26:54]URL: /json_proto [22:26:54]Method is POST - this is cgi request [22:26:54]url: /json_proto [22:26:54]query_string will be loaded in cgi processing [22:26:54]execute_cgi json_proto POST (null) [22:26:54]execute_cgi path=json_proto method=POST [22:26:54]POST find Content-Length [22:26:54]Host: 172.17.50.3:8080 [22:26:54]Content-Length: 683 [22:26:54]Content-Type: application/json [22:26:54] [22:26:54]POST finish read [22:26:54]Found Content-Length = 683 [22:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885801", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:54]execute_script... [22:26: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)2885801", "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" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:54]POST & json_proto [22:26:54]process_json_proto [22:26:54]json parsed OK: [22:26:54]protocol is kg_v1.0 [22:26:54]action value=close_receipt [22:26:54]process_action close_receipt [22:26:54]cmd_close_receipt [22:26:54]MH_GetDate [22:26:54]Write to MH i2c: F0 00 00 3A 2B 54 [22:26:54]Write i2c OK [22:26:54]MH_I2C_Read... [22:26:54]Read from MH i2c: F0 [22:26:54]MH_I2C_Read... [22:26:54]Read from MH i2c: F0 09 00 [22:26:54]MH_I2C_Read... [22:26:54]Read from MH i2c: F0 09 00 3A 2B 00 30 D5 16 67 6B 98 1E 66 66 [22:26:54]GetLastDocTimeStamp 1729549573 [22:26:54]current date 1729549616 [22:26:54]FM_GetShiftState [22:26:54]SAM_PROTO_GetShiftState [22:26:54]wFMCommunicate request_size=4 [22:26:54]MH_SAM_APDU [22:26:54]CAPDU: 80 13 01 00 [22:26:54]Write to MH i2c: E2 08 00 3B 2B 80 13 01 00 00 00 00 00 E3 [22:26:54]Write i2c OK [22:26:54]MH_I2C_Read... [22:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:54]Read from MH i2c: E2 [22:26:54]MH_I2C_Read... [22:26:54]Read from MH i2c: E2 0E 00 [22:26:54]MH_I2C_Read... [22:26:54]Read from MH i2c: E2 0E 00 3B 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0F [22:26:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:26:54]wFMCommunicate OK [22:26:54]SAM_PROTO_GetShiftState done [22:26:54]FM_GetShiftState done [22:26:54]opened in 1729469703 [22:26:54]opened+sec_in_day 1729556103 [22:26:54]quantity*price = 100015 [22:26:54]sum+1 = 100017 [22:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 423 21.10.2024 22:26 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70033 ФПД: 5782788657048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70033&fm=5782788657048&tin=02508201610067®Number=0000000000156251&sum=100000 [22:26:55]StoreToDocumentArchive [22:26:55]shift 194 fd 70033 [22:26:55]save to /storage/0194/doc_00070033 [22:26:55]save last doc name /storage/0194/doc_00070033 to /storage/kkm_last_doc_name [22:26:55]save OK [22:26:55]Clear old archive folders... [22:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:55]tlvbuf is B6F0F3A0 [22:26:55]SAM_PROTO_ClearQueue [22:26:55]wFMCommunicate request_size=4 [22:26:55]MH_SAM_APDU [22:26:55]CAPDU: 80 09 00 00 [22:26:55]Write to MH i2c: E2 08 00 48 2B 80 09 00 00 00 00 00 00 E5 [22:26:55]Write i2c OK [22:26:55]MH_I2C_Read... [22:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:55]Read from MH i2c: E2 [22:26:55]MH_I2C_Read... [22:26:55]Read from MH i2c: E2 03 00 [22:26:55]MH_I2C_Read... [22:26:55]Read from MH i2c: E2 03 00 48 2B 00 90 00 E7 [22:26:55]RAPDU: 90 00 [22:26:55]wFMCommunicate OK [22:26:55]SAM_PROTO_ClearQueue done [22:26:55]KKMCreateOFDPacket [22:26:55]OFDProtocolAddRootSTLVToBuf [22:26:55]FM_MakeSignedData [22:26:55]FM_MakeSignedData [22:26:55]SAM_PROTO_SignData [22:26:55]wFMCommunicate request_size=4 [22:26:55]MH_SAM_APDU [22:26:55]CAPDU: 80 0D 01 02 [22:26:55]Write to MH i2c: E2 08 00 49 2B 80 0D 01 02 00 00 00 00 ED [22:26:55]Write i2c OK [22:26:55]MH_I2C_Read... [22:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:55]Read from MH i2c: E2 [22:26:55]MH_I2C_Read... [22:26:55]Read from MH i2c: E2 03 00 [22:26:55]MH_I2C_Read... [22:26:55]Read from MH i2c: E2 03 00 49 2B 00 90 00 E8 [22:26:55]RAPDU: 90 00 [22:26:55]wFMCommunicate OK [22:26:55]wFMCommunicate request_size=255 [22:26:55]MH_SAM_APDU [22:26:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 30 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 11 01 00 35 04 06 00 05 [22:26:55]Write to MH i2c: E2 02 01 4A 2B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 30 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 11 01 00 35 04 06 00 05 00 00 04 [22:26:55]Write i2c OK [22:26:55]MH_I2C_Read... [22:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:56]Read from MH i2c: E2 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 03 00 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 03 00 4A 2B 00 90 00 E9 [22:26:56]RAPDU: 90 00 [22:26:56]wFMCommunicate OK [22:26:56]wFMCommunicate request_size=10 [22:26:56]MH_SAM_APDU [22:26:56]CAPDU: 80 0D 02 02 05 42 69 10 4F 98 [22:26:56]Write to MH i2c: E2 0D 00 4B 2B 80 0D 02 02 05 00 42 69 10 4F 98 00 00 9C [22:26:56]Write i2c OK [22:26:56]MH_I2C_Read... [22:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:56]Read from MH i2c: E2 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 03 00 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 03 00 4B 2B 00 90 00 EA [22:26:56]RAPDU: 90 00 [22:26:56]wFMCommunicate OK [22:26:56]wFMCommunicate request_size=4 [22:26:56]MH_SAM_APDU [22:26:56]CAPDU: 80 0D 03 02 [22:26:56]Write to MH i2c: E2 08 00 4C 2B 80 0D 03 02 00 00 00 00 F2 [22:26:56]Write i2c OK [22:26:56]MH_I2C_Read... [22:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:56]Read from MH i2c: E2 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 0B 00 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 0B 00 4C 2B 00 08 BB 7A 47 6A 3B A4 2F 90 00 EF [22:26:56]RAPDU: 08 BB 7A 47 6A 3B A4 2F 90 00 [22:26:56]wFMCommunicate OK [22:26:56]SAM_PROTO_SignData done [22:26:56]FM_MakeSignedData done [22:26:56]CreateOFDProtocolMessage [22:26:56]wFMCommunicate request_size=4 [22:26:56]MH_SAM_APDU [22:26:56]CAPDU: 80 11 00 00 [22:26:56]Write to MH i2c: E2 08 00 4D 2B 80 11 00 00 00 00 00 00 F2 [22:26:56]Write i2c OK [22:26:56]MH_I2C_Read... [22:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:56]Read from MH i2c: E2 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 17 00 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: E2 17 00 4D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 44 [22:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:26:56]wFMCommunicate OK [22:26:56]CreateOFDProtocolMessage done [22:26:56]OFDSenderStorePacket 70033 [22:26:56]StoreOFDPacket docnum=70033 [22:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 96 1A 07 01 3F 42 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 30 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 11 01 00 35 04 06 00 05 42 69 10 4F 98 08 BB 7A 47 6A 3B A4 2F [22:26:56]CheckFolder [22:26:56]dirname=/storage/ofd_packets [22:26:56]CheckFolder done [22:26:56]ProducePacketName [22:26:56]name=ofd_packets/00070033 [22:26:56]NVStorageSaveData ofd_packets/00070033 [22:26:56]File name is /storage/ofd_packets/00070033 [22:26:56]Write 301 bytes [22:26:56]NVStorageSaveData done [22:26:56]OFDSenderStorePacket done [22:26:56]KKMCreateOFDPacket done [22:26:56]NVStorageSaveData kkm_last_timestamp [22:26:56]File name is /storage/kkm_last_timestamp [22:26:56]Write 4 bytes [22:26:56]NVStorageSaveData done [22:26:56]ExternCall_PrintAddStr [22:26:56]wPrintStart [22:26:56]Write to MH i2c: 01 00 00 4E 2B 79 [22:26:56]Write i2c OK [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: 01 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: 01 07 00 [22:26:56]MH_I2C_Read... [22:26:56]Read from MH i2c: 01 07 00 4E 2B 00 00 00 00 00 FF 0F 8E [22:26:56]RasterBufferAndPrint [22:26:56]line Счет N : (1)2885801 [22:26:56]line ИНН: 02508201610067 [22:26:56]line Контрольно-Кассовый Чек [22:26:56]line ПРОДАЖА [22:26:56]line ТРК (МРК, ГНК) : 42 [22:26:56]line Товар: 2710124130 [22:26:56]line Аи-92-К-5 [22:26:56]line 14.950 * 66.90 [22:26:56]line = 1000.16 [22:26:56]line НДС 12% НСП 1% [22:26:56]line > о реализуемом товаре [22:26:56]line ОКРУГЛЕНИЕ: -0.16 [22:26:56]line ИТОГО: 1000.00 [22:26:56]line Внесено: 1000.00 [22:26:56]line СДАЧА: 0.00 [22:26:56]line НСП 1% : 8.85 [22:26:56]line НДС 12% : 106.21 [22:26:56]line Наличными: 1000.00 [22:26:56]line Безнал.: 0.00 [22:26:56]line Место: АЗС № 85 "Партнер Нефть" [22:26:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:26:56]line СНО: Общий режим [22:26:56]line Чек 423 21.10.2024 22:26 [22:26:56]line Смена: 194 ФФД: 1.0 [22:26:56]line ЗНМ: 0300000167 [22:26:56]line РНМ: 0000000000156251 [22:26:56]line Версия ККМ: v1.0 [22:26:56]line ФМ: 0000000000963346 [22:26:56]line ФД: 70033 [22:26:56]line ФПД: 5782788657048 [22:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70033&fm=5782788657048&tin=02508201610067®Number=0000000000156251&sum=100000 [22:26:56]OFD Sender: Processing packet 70033 [packets to send 18, broken 17] [22:26:56]ProducePacketName [22:26:56]name=ofd_packets/00070033 [22:26:56]OFD Sender: To server: pG, [22:26:56]CommunicateWithHost lk.salyk.kg:30040 [22:26:56]ConnectInit lk.salyk.kg [22:26:56]written 0, free lines is 4095 [22:26:56]Connected sock=9 [22:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 96 1A 07 01 3F 42 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 30 D5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 11 01 00 35 04 06 00 05 42 69 10 4F 98 08 BB 7A 47 6A 3B A4 2F [22:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7B B6 47 00 17 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 11 01 00 F4 03 04 00 D3 7E 16 67 B6 04 01 00 00 B2 FA 31 71 0B E0 24 08 [22:26:56]CommunicateWithHost err = 0 [22:26:56]CheckOFDResponse [22:26:56]1017 (14) - 77093643461234 [22:26:56]1041 (16) - 0000000000963346 [22:26:56]1040 (4) - 70033 [22:26:56]1012 (4) - 21.10.2024 16:18 [22:26:56]1206 (1) - 0 [22:26:56]OFD Sender: Remove packet 70033 [22:26:56]ProducePacketName [22:26:56]name=ofd_packets/00070033 [22:26:56]NVStorageDeleteData [22:26:57]Write to MH i2c: 01 00 00 79 2B A4 [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: 01 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: 01 07 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 F3 0C AA [22:26:57]RasterBufferAndPrint [22:26:57]line [22:26:57]line [22:26:57]line [22:26:57]line [22:26:57]line [22:26:57]written 0, free lines is 3326 [22:26:57]MH_Cut [22:26:57]Write to MH i2c: D1 01 00 80 2B 01 7D [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: D1 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: D1 01 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: D1 01 00 80 2B 00 7C [22:26:57]Write to MH i2c: 01 00 00 81 2B AC [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]OFD Sender: No OFD packet to send [22:26:57]*** Cut start [22:26:57]*** Partial cut [22:26:57]*** CUTSNS_PIN = 1 [22:26:57]*** CUTSNS_PIN = 0 [22:26:58]*** Brake cut motor [22:26:58]Read from MH i2c: 01 [22:26:58]MH_I2C_Read... [22:26:58]*** Stop cut motor [22:26:58]*** Cut end [22:26:58]Read from MH i2c: 01 07 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: 01 07 00 81 2B 00 00 00 00 00 FF 0F C1 [22:26:58]process_action close_receipt done [22:26:58]requested_data is exist [22:26:58]produce_requested_data [22:26:58]requested_item fm.sn is exist - process it [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 11 00 00 [22:26:58]Write to MH i2c: E2 08 00 82 2B 80 11 00 00 00 00 00 00 27 [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 17 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 17 00 82 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [22:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:26:58]wFMCommunicate OK [22:26:58]requested_item fd.num is exist - process it [22:26:58]SAM_PROTO_GetFieldsCounters [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 13 00 00 [22:26:58]Write to MH i2c: E2 08 00 83 2B 80 13 00 00 00 00 00 00 2A [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 62 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 62 00 83 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [22:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:58]wFMCommunicate OK [22:26:58]SAM_PROTO_GetFieldsCounters done [22:26:58]requested_item shift.num is exist - process it [22:26:58]requested_item shift.opened is exist - process it [22:26:58]req_shift_opened [22:26:58]FM_GetShiftState [22:26:58]SAM_PROTO_GetShiftState [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 13 01 00 [22:26:58]Write to MH i2c: E2 08 00 84 2B 80 13 01 00 00 00 00 00 2C [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 0E 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 0E 00 84 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 58 [22:26:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:26:58]wFMCommunicate OK [22:26:58]SAM_PROTO_GetShiftState done [22:26:58]FM_GetShiftState done [22:26:58]req_shift_opened done [22:26:58]requested_item shift.open_date is exist - process it [22:26:58]req_shift_open_date [22:26:58]req_shift_open_date done [22:26:58]produce_requested_data done [22:26:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70033,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:26:58]process_action_free close_receipt [22:26:58]json_value_free [22:26:58]json_value_free done [22:26:58]process_json_proto returns [22:26:58]Send response to host [22:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70033,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:26:58]free response buf [22:26:58]execute_script done [22:26:58]execute_script returns [22:26:58]free content buf [22:26:58]Sock 7.Close socket [22:26:58]Sock 7.Thread stoped [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:00]accept exits with 10 [22:44:00]New connection [22:44:00]New thread 3067026788 created [22:44:00]Thread 3067170148 joined [22:44:00]Waiting for new connection... [22:44:00] Sock 10.Parse request [22:44:00]Sock 10.Check first char [22:44:00]Sock 10.First char is OK [22:44:00]request: POST /json_proto HTTP/1.0 [22:44:00]Method: POST [22:44:00]URL: /json_proto [22:44:00]Method is POST - this is cgi request [22:44:00]url: /json_proto [22:44:00]query_string will be loaded in cgi processing [22:44:00]execute_cgi json_proto POST (null) [22:44:00]execute_cgi path=json_proto method=POST [22:44:00]POST find Content-Length [22:44:00]Host: 172.17.50.3:8080 [22:44:00]Content-Length: 683 [22:44:00]Content-Type: application/json [22:44:00] [22:44:00]POST finish read [22:44:00]Found Content-Length = 683 [22:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885802", "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" ] } } [22:44:00]execute_script... [22:44: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)2885802", "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" ] } } [22:44:00]POST & json_proto [22:44:00]process_json_proto [22:44:00]json parsed OK: [22:44:00]protocol is kg_v1.0 [22:44:00]action value=close_receipt [22:44:00]process_action close_receipt [22:44:00]cmd_close_receipt [22:44:00]MH_GetDate [22:44:00]Write to MH i2c: F0 00 00 85 2B 9F [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: F0 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: F0 09 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: F0 09 00 85 2B 00 32 D9 16 67 6B 98 1E 66 B7 [22:44:00]GetLastDocTimeStamp 1729549616 [22:44:00]current date 1729550642 [22:44:00]FM_GetShiftState [22:44:00]SAM_PROTO_GetShiftState [22:44:00]wFMCommunicate request_size=4 [22:44:00]MH_SAM_APDU [22:44:00]CAPDU: 80 13 01 00 [22:44:00]Write to MH i2c: E2 08 00 86 2B 80 13 01 00 00 00 00 00 2E [22:44:00]Write i2c OK [22:44:00]MH_I2C_Read... [22:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:00]Read from MH i2c: E2 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 0E 00 [22:44:00]MH_I2C_Read... [22:44:00]Read from MH i2c: E2 0E 00 86 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5A [22:44:00]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:44:00]wFMCommunicate OK [22:44:00]SAM_PROTO_GetShiftState done [22:44:00]FM_GetShiftState done [22:44:00]opened in 1729469703 [22:44:00]opened+sec_in_day 1729556103 [22:44:00]quantity*price = 100021 [22:44:00]sum+1 = 100023 [22:44:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 424 21.10.2024 22:44 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70034 ФПД: 147495699335663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224402&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70034&fm=147495699335663&tin=02508201610067®Number=0000000000156251&sum=100000 [22:44:01]StoreToDocumentArchive [22:44:01]shift 194 fd 70034 [22:44:01]save to /storage/0194/doc_00070034 [22:44:01]save last doc name /storage/0194/doc_00070034 to /storage/kkm_last_doc_name [22:44:01]save OK [22:44:01]Clear old archive folders... [22:44:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:01]tlvbuf is 011018C0 [22:44:01]SAM_PROTO_ClearQueue [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 09 00 00 [22:44:01]Write to MH i2c: E2 08 00 93 2B 80 09 00 00 00 00 00 00 30 [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:01]Read from MH i2c: E2 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 03 00 [22:44:01]MH_I2C_Read... [22:44:01]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [22:44:01]RAPDU: 90 00 [22:44:01]wFMCommunicate OK [22:44:01]SAM_PROTO_ClearQueue done [22:44:01]KKMCreateOFDPacket [22:44:01]OFDProtocolAddRootSTLVToBuf [22:44:01]FM_MakeSignedData [22:44:01]FM_MakeSignedData [22:44:01]SAM_PROTO_SignData [22:44:01]wFMCommunicate request_size=4 [22:44:01]MH_SAM_APDU [22:44:01]CAPDU: 80 0D 01 02 [22:44:01]Write to MH i2c: E2 08 00 94 2B 80 0D 01 02 00 00 00 00 38 [22:44:01]Write i2c OK [22:44:01]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [22:44:02]RAPDU: 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=255 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A8 01 00 00 F4 03 04 00 32 D9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 11 01 00 35 04 06 00 86 [22:44:02]Write to MH i2c: E2 02 01 95 2B 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 A8 01 00 00 F4 03 04 00 32 D9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 11 01 00 35 04 06 00 86 00 00 FB [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 95 2B 00 90 00 34 [22:44:02]RAPDU: 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=10 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 0D 02 02 05 25 84 C3 C9 EF [22:44:02]Write to MH i2c: E2 0D 00 96 2B 80 0D 02 02 05 00 25 84 C3 C9 EF 00 00 69 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 03 00 96 2B 00 90 00 35 [22:44:02]RAPDU: 90 00 [22:44:02]wFMCommunicate OK [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 0D 03 02 [22:44:02]Write to MH i2c: E2 08 00 97 2B 80 0D 03 02 00 00 00 00 3D [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 0B 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 0B 00 97 2B 00 AA C6 3F 43 41 16 C8 B2 90 00 01 [22:44:02]RAPDU: AA C6 3F 43 41 16 C8 B2 90 00 [22:44:02]wFMCommunicate OK [22:44:02]SAM_PROTO_SignData done [22:44:02]FM_MakeSignedData done [22:44:02]CreateOFDProtocolMessage [22:44:02]wFMCommunicate request_size=4 [22:44:02]MH_SAM_APDU [22:44:02]CAPDU: 80 11 00 00 [22:44:02]Write to MH i2c: E2 08 00 98 2B 80 11 00 00 00 00 00 00 3D [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:02]Read from MH i2c: E2 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 17 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: E2 17 00 98 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [22:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:44:02]wFMCommunicate OK [22:44:02]CreateOFDProtocolMessage done [22:44:02]OFDSenderStorePacket 70034 [22:44:02]StoreOFDPacket docnum=70034 [22:44:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B 91 07 01 0B 1D 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 A8 01 00 00 F4 03 04 00 32 D9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 11 01 00 35 04 06 00 86 25 84 C3 C9 EF AA C6 3F 43 41 16 C8 B2 [22:44:02]CheckFolder [22:44:02]dirname=/storage/ofd_packets [22:44:02]CheckFolder done [22:44:02]ProducePacketName [22:44:02]name=ofd_packets/00070034 [22:44:02]NVStorageSaveData ofd_packets/00070034 [22:44:02]File name is /storage/ofd_packets/00070034 [22:44:02]Write 301 bytes [22:44:02]NVStorageSaveData done [22:44:02]OFDSenderStorePacket done [22:44:02]KKMCreateOFDPacket done [22:44:02]NVStorageSaveData kkm_last_timestamp [22:44:02]File name is /storage/kkm_last_timestamp [22:44:02]Write 4 bytes [22:44:02]NVStorageSaveData done [22:44:02]ExternCall_PrintAddStr [22:44:02]wPrintStart [22:44:02]Write to MH i2c: 01 00 00 99 2B C4 [22:44:02]Write i2c OK [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: 01 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: 01 07 00 [22:44:02]MH_I2C_Read... [22:44:02]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [22:44:02]RasterBufferAndPrint [22:44:02]line Счет N : (1)2885802 [22:44:02]line ИНН: 02508201610067 [22:44:02]line Контрольно-Кассовый Чек [22:44:02]line ПРОДАЖА [22:44:02]line ТРК (МРК, ГНК) : 33 [22:44:02]line Товар: 2710124500 [22:44:02]line Аи-95-К-5 [22:44:02]line 13.480 * 74.20 [22:44:02]line = 1000.22 [22:44:02]line НДС 12% НСП 1% [22:44:02]line > о реализуемом товаре [22:44:02]line ОКРУГЛЕНИЕ: -0.22 [22:44:02]line ИТОГО: 1000.00 [22:44:02]line Внесено: 1000.00 [22:44:02]line СДАЧА: 0.00 [22:44:02]line НСП 1% : 8.85 [22:44:02]line НДС 12% : 106.22 [22:44:02]line Наличными: 1000.00 [22:44:02]line Безнал.: 0.00 [22:44:02]line Место: АЗС № 85 "Партнер Нефть" [22:44:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:44:02]line СНО: Общий режим [22:44:02]line Чек 424 21.10.2024 22:44 [22:44:02]line Смена: 194 ФФД: 1.0 [22:44:02]line ЗНМ: 0300000167 [22:44:02]line РНМ: 0000000000156251 [22:44:02]line Версия ККМ: v1.0 [22:44:02]line ФМ: 0000000000963346 [22:44:02]line ФД: 70034 [22:44:02]line ФПД: 147495699335663 [22:44:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224402&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70034&fm=147495699335663&tin=02508201610067®Number=0000000000156251&sum=100000 [22:44:02]OFD Sender: Processing packet 70034 [packets to send 18, broken 17] [22:44:02]ProducePacketName [22:44:02]name=ofd_packets/00070034 [22:44:02]OFD Sender: To server: pG, [22:44:02]CommunicateWithHost lk.salyk.kg:30040 [22:44:02]ConnectInit lk.salyk.kg [22:44:02]written 0, free lines is 4095 [22:44:02]Connected sock=9 [22:44:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2B 91 07 01 0B 1D 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 A8 01 00 00 F4 03 04 00 32 D9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 11 01 00 35 04 06 00 86 25 84 C3 C9 EF AA C6 3F 43 41 16 C8 B2 [22:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E6 14 47 00 B2 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 11 01 00 F4 03 04 00 D5 82 16 67 B6 04 01 00 00 90 49 BD 30 3B 51 1B 20 [22:44:03]CommunicateWithHost err = 0 [22:44:03]CheckOFDResponse [22:44:03]1017 (14) - 77093643461234 [22:44:03]1041 (16) - 0000000000963346 [22:44:03]1040 (4) - 70034 [22:44:03]1012 (4) - 21.10.2024 16:35 [22:44:03]1206 (1) - 0 [22:44:03]OFD Sender: Remove packet 70034 [22:44:03]ProducePacketName [22:44:03]name=ofd_packets/00070034 [22:44:03]NVStorageDeleteData [22:44:03]Write to MH i2c: 01 00 00 C4 2B EF [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: 01 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: 01 07 00 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 F4 0C F6 [22:44:03]RasterBufferAndPrint [22:44:03]line [22:44:03]line [22:44:03]line [22:44:03]line [22:44:03]line [22:44:03]written 0, free lines is 3322 [22:44:03]MH_Cut [22:44:03]Write to MH i2c: D1 01 00 CB 2B 01 C8 [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: D1 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: D1 01 00 [22:44:03]MH_I2C_Read... [22:44:03]Read from MH i2c: D1 01 00 CB 2B 00 C7 [22:44:03]Write to MH i2c: 01 00 00 CC 2B F7 [22:44:03]Write i2c OK [22:44:03]MH_I2C_Read... [22:44:03]OFD Sender: No OFD packet to send [22:44:03]*** Cut start [22:44:03]*** Partial cut [22:44:03]*** CUTSNS_PIN = 1 [22:44:03]*** CUTSNS_PIN = 0 [22:44:04]*** Brake cut motor [22:44:04]Read from MH i2c: 01 [22:44:04]MH_I2C_Read... [22:44:04]*** Stop cut motor [22:44:04]*** Cut end [22:44:04]Read from MH i2c: 01 07 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: 01 07 00 CC 2B 00 00 00 00 00 FF 0F 0C [22:44:04]process_action close_receipt done [22:44:04]requested_data is exist [22:44:04]produce_requested_data [22:44:04]requested_item fm.sn is exist - process it [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 11 00 00 [22:44:04]Write to MH i2c: E2 08 00 CD 2B 80 11 00 00 00 00 00 00 72 [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 17 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 17 00 CD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [22:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:44:04]wFMCommunicate OK [22:44:04]requested_item fd.num is exist - process it [22:44:04]SAM_PROTO_GetFieldsCounters [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 13 00 00 [22:44:04]Write to MH i2c: E2 08 00 CE 2B 80 13 00 00 00 00 00 00 75 [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 62 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 62 00 CE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [22:44:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:04]wFMCommunicate OK [22:44:04]SAM_PROTO_GetFieldsCounters done [22:44:04]requested_item shift.num is exist - process it [22:44:04]requested_item shift.opened is exist - process it [22:44:04]req_shift_opened [22:44:04]FM_GetShiftState [22:44:04]SAM_PROTO_GetShiftState [22:44:04]wFMCommunicate request_size=4 [22:44:04]MH_SAM_APDU [22:44:04]CAPDU: 80 13 01 00 [22:44:04]Write to MH i2c: E2 08 00 CF 2B 80 13 01 00 00 00 00 00 77 [22:44:04]Write i2c OK [22:44:04]MH_I2C_Read... [22:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:04]Read from MH i2c: E2 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 0E 00 [22:44:04]MH_I2C_Read... [22:44:04]Read from MH i2c: E2 0E 00 CF 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A3 [22:44:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:44:04]wFMCommunicate OK [22:44:04]SAM_PROTO_GetShiftState done [22:44:04]FM_GetShiftState done [22:44:04]req_shift_opened done [22:44:04]requested_item shift.open_date is exist - process it [22:44:04]req_shift_open_date [22:44:04]req_shift_open_date done [22:44:04]produce_requested_data done [22:44:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70034,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:44:04]process_action_free close_receipt [22:44:04]json_value_free [22:44:04]json_value_free done [22:44:04]process_json_proto returns [22:44:04]Send response to host [22:44:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70034,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:44:04]free response buf [22:44:04]execute_script done [22:44:04]execute_script returns [22:44:04]free content buf [22:44:04]Sock 10.Close socket [22:44:04]Sock 10.Thread stoped [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]accept exits with 7 [22:49:18]New connection [22:49:18]New thread 3067170148 created [22:49:18]Thread 3067026788 joined [22:49:18]Waiting for new connection... [22:49:18] Sock 7.Parse request [22:49:18]Sock 7.Check first char [22:49:18]Sock 7.First char is OK [22:49:18]request: POST /json_proto HTTP/1.0 [22:49:18]Method: POST [22:49:18]URL: /json_proto [22:49:18]Method is POST - this is cgi request [22:49:18]url: /json_proto [22:49:18]query_string will be loaded in cgi processing [22:49:18]execute_cgi json_proto POST (null) [22:49:18]execute_cgi path=json_proto method=POST [22:49:18]POST find Content-Length [22:49:18]Host: 172.17.50.3:8080 [22:49:18]Content-Length: 768 [22:49:18]Content-Type: application/json [22:49:18] [22:49:18]POST finish read [22:49:18]Found Content-Length = 768 [22:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:18]execute_script... [22:49: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)2885803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:18]POST & json_proto [22:49:18]process_json_proto [22:49:18]json parsed OK: [22:49:18]protocol is kg_v1.0 [22:49:18]action value=close_receipt [22:49:18]process_action close_receipt [22:49:18]cmd_close_receipt [22:49:18]MH_GetDate [22:49:18]Write to MH i2c: F0 00 00 D0 2B EA [22:49:18]Write i2c OK [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: F0 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: F0 09 00 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: F0 09 00 D0 2B 00 71 DA 16 67 6B 98 1E 66 42 [22:49:18]GetLastDocTimeStamp 1729550642 [22:49:18]current date 1729550961 [22:49:18]FM_GetShiftState [22:49:18]SAM_PROTO_GetShiftState [22:49:18]wFMCommunicate request_size=4 [22:49:18]MH_SAM_APDU [22:49:18]CAPDU: 80 13 01 00 [22:49:18]Write to MH i2c: E2 08 00 D1 2B 80 13 01 00 00 00 00 00 79 [22:49:18]Write i2c OK [22:49:18]MH_I2C_Read... [22:49:18]OFD Sender: No OFD packet to send [22:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:18]Read from MH i2c: E2 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: E2 0E 00 [22:49:18]MH_I2C_Read... [22:49:18]Read from MH i2c: E2 0E 00 D1 2B 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A5 [22:49:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:49:18]wFMCommunicate OK [22:49:18]SAM_PROTO_GetShiftState done [22:49:18]FM_GetShiftState done [22:49:18]opened in 1729469703 [22:49:18]opened+sec_in_day 1729556103 [22:49:18]quantity*price = 900074 [22:49:18]sum+1 = 900075 [22:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 425 21.10.2024 22:49 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70035 ФПД: 266412662980176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70035&fm=266412662980176&tin=02508201610067®Number=0000000000156251&sum=900074 [22:49:20]StoreToDocumentArchive [22:49:20]shift 194 fd 70035 [22:49:20]save to /storage/0194/doc_00070035 [22:49:20]save last doc name /storage/0194/doc_00070035 to /storage/kkm_last_doc_name [22:49:20]save OK [22:49:20]Clear old archive folders... [22:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:49:20]tlvbuf is B6F0F350 [22:49:20]SAM_PROTO_ClearQueue [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 09 00 00 [22:49:20]Write to MH i2c: E2 08 00 DE 2B 80 09 00 00 00 00 00 00 7B [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 DE 2B 00 90 00 7D [22:49:20]RAPDU: 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_ClearQueue done [22:49:20]KKMCreateOFDPacket [22:49:20]OFDProtocolAddRootSTLVToBuf [22:49:20]FM_MakeSignedData [22:49:20]FM_MakeSignedData [22:49:20]SAM_PROTO_SignData [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 0D 01 02 [22:49:20]Write to MH i2c: E2 08 00 DF 2B 80 0D 01 02 00 00 00 00 83 [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [22:49:20]RAPDU: 90 00 [22:49:20]wFMCommunicate OK [22:49:20]wFMCommunicate request_size=255 [22:49:20]MH_SAM_APDU [22:49:20]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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 71 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 11 01 00 35 04 06 00 F2 4D 08 23 [22:49:20]Write to MH i2c: E2 02 01 E0 2B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 71 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 11 01 00 35 04 06 00 F2 4D 08 23 00 00 5B [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [22:49:20]RAPDU: 90 00 [22:49:20]wFMCommunicate OK [22:49:20]wFMCommunicate request_size=7 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 0D 02 02 02 FE 50 [22:49:20]Write to MH i2c: E2 0A 00 E1 2B 80 0D 02 02 02 00 FE 50 00 00 D8 [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 03 00 E1 2B 00 90 00 80 [22:49:20]RAPDU: 90 00 [22:49:20]wFMCommunicate OK [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 0D 03 02 [22:49:20]Write to MH i2c: E2 08 00 E2 2B 80 0D 03 02 00 00 00 00 88 [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0B 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 0B 00 E2 2B 00 9A C1 3E 11 B4 49 65 80 90 00 15 [22:49:20]RAPDU: 9A C1 3E 11 B4 49 65 80 90 00 [22:49:20]wFMCommunicate OK [22:49:20]SAM_PROTO_SignData done [22:49:20]FM_MakeSignedData done [22:49:20]CreateOFDProtocolMessage [22:49:20]wFMCommunicate request_size=4 [22:49:20]MH_SAM_APDU [22:49:20]CAPDU: 80 11 00 00 [22:49:20]Write to MH i2c: E2 08 00 E3 2B 80 11 00 00 00 00 00 00 88 [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:20]Read from MH i2c: E2 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 17 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: E2 17 00 E3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [22:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:49:20]wFMCommunicate OK [22:49:20]CreateOFDProtocolMessage done [22:49:20]OFDSenderStorePacket 70035 [22:49:20]StoreOFDPacket docnum=70035 [22:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DD 08 04 01 E9 CA 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 71 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 11 01 00 35 04 06 00 F2 4D 08 23 FE 50 9A C1 3E 11 B4 49 65 80 [22:49:20]CheckFolder [22:49:20]dirname=/storage/ofd_packets [22:49:20]CheckFolder done [22:49:20]ProducePacketName [22:49:20]name=ofd_packets/00070035 [22:49:20]NVStorageSaveData ofd_packets/00070035 [22:49:20]File name is /storage/ofd_packets/00070035 [22:49:20]Write 298 bytes [22:49:20]NVStorageSaveData done [22:49:20]OFDSenderStorePacket done [22:49:20]KKMCreateOFDPacket done [22:49:20]NVStorageSaveData kkm_last_timestamp [22:49:20]File name is /storage/kkm_last_timestamp [22:49:20]Write 4 bytes [22:49:20]NVStorageSaveData done [22:49:20]ExternCall_PrintAddStr [22:49:20]wPrintStart [22:49:20]Write to MH i2c: 01 00 00 E4 2B 0F [22:49:20]Write i2c OK [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: 01 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: 01 07 00 [22:49:20]MH_I2C_Read... [22:49:20]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [22:49:20]RasterBufferAndPrint [22:49:20]line Счет N : (1)2885803 [22:49:20]line ИНН: 02508201610067 [22:49:20]line Контрольно-Кассовый Чек [22:49:20]line ПРОДАЖА [22:49:20]line ТРК (МРК, ГНК) : 61 [22:49:20]line Товар: 2710194210 [22:49:20]line ДТ-К-5 [22:49:20]line 118.120 * 76.20 [22:49:20]line = 9000.74 [22:49:20]line НДС 12% НСП 1% [22:49:20]line > о реализуемом товаре [22:49:20]line ИТОГО: 9000.74 [22:49:20]line НСП 1% : 79.65 [22:49:20]line НДС 12% : 955.83 [22:49:20]line Наличными: 0.00 [22:49:20]line Безнал.: 9000.74 [22:49:20]line Место: АЗС № 85 "Партнер Нефть" [22:49:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:49:20]line СНО: Общий режим [22:49:20]line Чек 425 21.10.2024 22:49 [22:49:20]line Смена: 194 ФФД: 1.0 [22:49:20]line ЗНМ: 0300000167 [22:49:20]line РНМ: 0000000000156251 [22:49:20]line Версия ККМ: v1.0 [22:49:20]line Платежная система: Mbank [22:49:20]line ФМ: 0000000000963346 [22:49:20]line ФД: 70035 [22:49:20]line ФПД: 266412662980176 [22:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70035&fm=266412662980176&tin=02508201610067®Number=0000000000156251&sum=900074 [22:49:20]OFD Sender: Processing packet 70035 [packets to send 18, broken 17] [22:49:20]ProducePacketName [22:49:20]name=ofd_packets/00070035 [22:49:20]OFD Sender: To server: pG, [22:49:20]CommunicateWithHost lk.salyk.kg:30040 [22:49:20]ConnectInit lk.salyk.kg [22:49:20]written 0, free lines is 4095 [22:49:20]Connected sock=9 [22:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 DD 08 04 01 E9 CA 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 71 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 11 01 00 35 04 06 00 F2 4D 08 23 FE 50 9A C1 3E 11 B4 49 65 80 [22:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5C 85 47 00 68 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 11 01 00 F4 03 04 00 13 84 16 67 B6 04 01 00 00 51 6E 6C E9 C3 D1 E9 7D [22:49:21]CommunicateWithHost err = 0 [22:49:21]CheckOFDResponse [22:49:21]1017 (14) - 77093643461234 [22:49:21]1041 (16) - 0000000000963346 [22:49:21]1040 (4) - 70035 [22:49:21]1012 (4) - 21.10.2024 16:40 [22:49:21]1206 (1) - 0 [22:49:21]OFD Sender: Remove packet 70035 [22:49:21]ProducePacketName [22:49:21]name=ofd_packets/00070035 [22:49:21]NVStorageDeleteData [22:49:21]Write to MH i2c: 01 00 00 0D 2C 39 [22:49:21]Write i2c OK [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: 01 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: 01 07 00 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: 01 07 00 0D 2C 00 00 00 00 00 0C 0D 59 [22:49:21]RasterBufferAndPrint [22:49:21]line [22:49:21]line [22:49:21]line [22:49:21]line [22:49:21]line [22:49:21]written 0, free lines is 3349 [22:49:21]MH_Cut [22:49:21]Write to MH i2c: D1 01 00 14 2C 01 12 [22:49:21]Write i2c OK [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: D1 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: D1 01 00 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: D1 01 00 14 2C 00 11 [22:49:21]Write to MH i2c: 01 00 00 15 2C 41 [22:49:21]Write i2c OK [22:49:21]MH_I2C_Read... [22:49:21]OFD Sender: No OFD packet to send [22:49:22]*** Cut start [22:49:22]*** Partial cut [22:49:22]*** CUTSNS_PIN = 1 [22:49:22]*** CUTSNS_PIN = 0 [22:49:22]*** Brake cut motor [22:49:22]Read from MH i2c: 01 [22:49:22]MH_I2C_Read... [22:49:22]*** Stop cut motor [22:49:22]*** Cut end [22:49:22]Read from MH i2c: 01 07 00 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: 01 07 00 15 2C 00 00 00 00 00 FF 0F 56 [22:49:22]process_action close_receipt done [22:49:22]requested_data is exist [22:49:22]produce_requested_data [22:49:22]requested_item fm.sn is exist - process it [22:49:22]wFMCommunicate request_size=4 [22:49:22]MH_SAM_APDU [22:49:22]CAPDU: 80 11 00 00 [22:49:22]Write to MH i2c: E2 08 00 16 2C 80 11 00 00 00 00 00 00 BC [22:49:22]Write i2c OK [22:49:22]MH_I2C_Read... [22:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:22]Read from MH i2c: E2 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 17 00 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 17 00 16 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [22:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:49:22]wFMCommunicate OK [22:49:22]requested_item fd.num is exist - process it [22:49:22]SAM_PROTO_GetFieldsCounters [22:49:22]wFMCommunicate request_size=4 [22:49:22]MH_SAM_APDU [22:49:22]CAPDU: 80 13 00 00 [22:49:22]Write to MH i2c: E2 08 00 17 2C 80 13 00 00 00 00 00 00 BF [22:49:22]Write i2c OK [22:49:22]MH_I2C_Read... [22:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:22]Read from MH i2c: E2 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 62 00 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 62 00 17 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:22]wFMCommunicate OK [22:49:22]SAM_PROTO_GetFieldsCounters done [22:49:22]requested_item shift.num is exist - process it [22:49:22]requested_item shift.opened is exist - process it [22:49:22]req_shift_opened [22:49:22]FM_GetShiftState [22:49:22]SAM_PROTO_GetShiftState [22:49:22]wFMCommunicate request_size=4 [22:49:22]MH_SAM_APDU [22:49:22]CAPDU: 80 13 01 00 [22:49:22]Write to MH i2c: E2 08 00 18 2C 80 13 01 00 00 00 00 00 C1 [22:49:22]Write i2c OK [22:49:22]MH_I2C_Read... [22:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:22]Read from MH i2c: E2 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 0E 00 [22:49:22]MH_I2C_Read... [22:49:22]Read from MH i2c: E2 0E 00 18 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 ED [22:49:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:49:22]wFMCommunicate OK [22:49:22]SAM_PROTO_GetShiftState done [22:49:22]FM_GetShiftState done [22:49:22]req_shift_opened done [22:49:22]requested_item shift.open_date is exist - process it [22:49:22]req_shift_open_date [22:49:22]req_shift_open_date done [22:49:22]produce_requested_data done [22:49:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70035,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:49:22]process_action_free close_receipt [22:49:22]json_value_free [22:49:22]json_value_free done [22:49:22]process_json_proto returns [22:49:22]Send response to host [22:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70035,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:49:22]free response buf [22:49:22]execute_script done [22:49:22]execute_script returns [22:49:22]free content buf [22:49:22]Sock 7.Close socket [22:49:22]Sock 7.Thread stoped [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:17]accept exits with 10 [22:51:17]New connection [22:51:17]New thread 3067026788 created [22:51:17]Thread 3067170148 joined [22:51:17]Waiting for new connection... [22:51:17] Sock 10.Parse request [22:51:17]Sock 10.Check first char [22:51:17]Sock 10.First char is OK [22:51:17]request: POST /json_proto HTTP/1.0 [22:51:17]Method: POST [22:51:17]URL: /json_proto [22:51:17]Method is POST - this is cgi request [22:51:17]url: /json_proto [22:51:17]query_string will be loaded in cgi processing [22:51:17]execute_cgi json_proto POST (null) [22:51:17]execute_cgi path=json_proto method=POST [22:51:17]POST find Content-Length [22:51:17]Host: 172.17.50.3:8080 [22:51:17]Content-Length: 675 [22:51:17]Content-Type: application/json [22:51:17] [22:51:17]POST finish read [22:51:17]Found Content-Length = 675 [22:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [22:51:17]execute_script... [22:51:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [22:51:17]POST & json_proto [22:51:17]process_json_proto [22:51:17]json parsed OK: [22:51:17]protocol is kg_v1.0 [22:51:17]action value=close_receipt [22:51:17]process_action close_receipt [22:51:17]cmd_close_receipt [22:51:17]MH_GetDate [22:51:17]Write to MH i2c: F0 00 00 19 2C 34 [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: F0 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: F0 09 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: F0 09 00 19 2C 00 E8 DA 16 67 6B 98 1E 66 03 [22:51:17]GetLastDocTimeStamp 1729550961 [22:51:17]current date 1729551080 [22:51:17]FM_GetShiftState [22:51:17]SAM_PROTO_GetShiftState [22:51:17]wFMCommunicate request_size=4 [22:51:17]MH_SAM_APDU [22:51:17]CAPDU: 80 13 01 00 [22:51:17]Write to MH i2c: E2 08 00 1A 2C 80 13 01 00 00 00 00 00 C3 [22:51:17]Write i2c OK [22:51:17]MH_I2C_Read... [22:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:17]Read from MH i2c: E2 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 0E 00 [22:51:17]MH_I2C_Read... [22:51:17]Read from MH i2c: E2 0E 00 1A 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EF [22:51:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:51:17]wFMCommunicate OK [22:51:17]SAM_PROTO_GetShiftState done [22:51:17]FM_GetShiftState done [22:51:17]opened in 1729469703 [22:51:17]opened+sec_in_day 1729556103 [22:51:17]quantity*price = 50063 [22:51:17]sum+1 = 50064 [22:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 426 21.10.2024 22:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70036 ФПД: 220415697642804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70036&fm=220415697642804&tin=02508201610067®Number=0000000000156251&sum=50000 [22:51:19]StoreToDocumentArchive [22:51:19]shift 194 fd 70036 [22:51:19]save to /storage/0194/doc_00070036 [22:51:19]save last doc name /storage/0194/doc_00070036 to /storage/kkm_last_doc_name [22:51:19]save OK [22:51:19]Clear old archive folders... [22:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:51:19]tlvbuf is B6F0F3F0 [22:51:19]SAM_PROTO_ClearQueue [22:51:19]wFMCommunicate request_size=4 [22:51:19]MH_SAM_APDU [22:51:19]CAPDU: 80 09 00 00 [22:51:19]Write to MH i2c: E2 08 00 27 2C 80 09 00 00 00 00 00 00 C5 [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 27 2C 00 90 00 C7 [22:51:19]RAPDU: 90 00 [22:51:19]wFMCommunicate OK [22:51:19]SAM_PROTO_ClearQueue done [22:51:19]KKMCreateOFDPacket [22:51:19]OFDProtocolAddRootSTLVToBuf [22:51:19]FM_MakeSignedData [22:51:19]FM_MakeSignedData [22:51:19]SAM_PROTO_SignData [22:51:19]wFMCommunicate request_size=4 [22:51:19]MH_SAM_APDU [22:51:19]CAPDU: 80 0D 01 02 [22:51:19]Write to MH i2c: E2 08 00 28 2C 80 0D 01 02 00 00 00 00 CD [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 28 2C 00 90 00 C8 [22:51:19]RAPDU: 90 00 [22:51:19]wFMCommunicate OK [22:51:19]wFMCommunicate request_size=255 [22:51:19]MH_SAM_APDU [22:51:19]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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 AA 01 00 00 F4 03 04 00 E8 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 11 01 00 35 04 06 00 C8 77 87 5C [22:51:19]Write to MH i2c: E2 02 01 29 2C 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 AA 01 00 00 F4 03 04 00 E8 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 11 01 00 35 04 06 00 C8 77 87 5C 00 00 48 [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 29 2C 00 90 00 C9 [22:51:19]RAPDU: 90 00 [22:51:19]wFMCommunicate OK [22:51:19]wFMCommunicate request_size=7 [22:51:19]MH_SAM_APDU [22:51:19]CAPDU: 80 0D 02 02 02 65 34 [22:51:19]Write to MH i2c: E2 0A 00 2A 2C 80 0D 02 02 02 00 65 34 00 00 6D [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 03 00 2A 2C 00 90 00 CA [22:51:19]RAPDU: 90 00 [22:51:19]wFMCommunicate OK [22:51:19]wFMCommunicate request_size=4 [22:51:19]MH_SAM_APDU [22:51:19]CAPDU: 80 0D 03 02 [22:51:19]Write to MH i2c: E2 08 00 2B 2C 80 0D 03 02 00 00 00 00 D2 [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 0B 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 0B 00 2B 2C 00 48 23 EA F4 B8 AE 4D 11 90 00 E0 [22:51:19]RAPDU: 48 23 EA F4 B8 AE 4D 11 90 00 [22:51:19]wFMCommunicate OK [22:51:19]SAM_PROTO_SignData done [22:51:19]FM_MakeSignedData done [22:51:19]CreateOFDProtocolMessage [22:51:19]wFMCommunicate request_size=4 [22:51:19]MH_SAM_APDU [22:51:19]CAPDU: 80 11 00 00 [22:51:19]Write to MH i2c: E2 08 00 2C 2C 80 11 00 00 00 00 00 00 D2 [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:19]Read from MH i2c: E2 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 17 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: E2 17 00 2C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [22:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:51:19]wFMCommunicate OK [22:51:19]CreateOFDProtocolMessage done [22:51:19]OFDSenderStorePacket 70036 [22:51:19]StoreOFDPacket docnum=70036 [22:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 81 1C 04 01 5E 1A 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 AA 01 00 00 F4 03 04 00 E8 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 11 01 00 35 04 06 00 C8 77 87 5C 65 34 48 23 EA F4 B8 AE 4D 11 [22:51:19]CheckFolder [22:51:19]dirname=/storage/ofd_packets [22:51:19]CheckFolder done [22:51:19]ProducePacketName [22:51:19]name=ofd_packets/00070036 [22:51:19]NVStorageSaveData ofd_packets/00070036 [22:51:19]File name is /storage/ofd_packets/00070036 [22:51:19]Write 298 bytes [22:51:19]NVStorageSaveData done [22:51:19]OFDSenderStorePacket done [22:51:19]KKMCreateOFDPacket done [22:51:19]NVStorageSaveData kkm_last_timestamp [22:51:19]File name is /storage/kkm_last_timestamp [22:51:19]Write 4 bytes [22:51:19]NVStorageSaveData done [22:51:19]ExternCall_PrintAddStr [22:51:19]wPrintStart [22:51:19]Write to MH i2c: 01 00 00 2D 2C 59 [22:51:19]Write i2c OK [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: 01 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: 01 07 00 [22:51:19]MH_I2C_Read... [22:51:19]Read from MH i2c: 01 07 00 2D 2C 00 00 00 00 00 FF 0F 6E [22:51:19]RasterBufferAndPrint [22:51:19]line Счет N : (1)2885805 [22:51:19]line ИНН: 02508201610067 [22:51:19]line Контрольно-Кассовый Чек [22:51:19]line ПРОДАЖА [22:51:19]line ТРК (МРК, ГНК) : 51 [22:51:19]line Товар: 2710194210 [22:51:19]line ДТ-К-5 [22:51:19]line 6.570 * 76.20 [22:51:19]line = 500.63 [22:51:19]line НДС 12% НСП 1% [22:51:19]line > о реализуемом товаре [22:51:19]line ОКРУГЛЕНИЕ: -0.63 [22:51:19]line ИТОГО: 500.00 [22:51:19]line Внесено: 500.00 [22:51:19]line СДАЧА: 0.00 [22:51:19]line НСП 1% : 4.43 [22:51:19]line НДС 12% : 53.16 [22:51:19]line Наличными: 500.00 [22:51:19]line Безнал.: 0.00 [22:51:19]line Место: АЗС № 85 "Партнер Нефть" [22:51:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:51:19]line СНО: Общий режим [22:51:19]line Чек 426 21.10.2024 22:51 [22:51:19]line Смена: 194 ФФД: 1.0 [22:51:19]line ЗНМ: 0300000167 [22:51:19]line РНМ: 0000000000156251 [22:51:19]line Версия ККМ: v1.0 [22:51:19]line ФМ: 0000000000963346 [22:51:19]line ФД: 70036 [22:51:19]line ФПД: 220415697642804 [22:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225120&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70036&fm=220415697642804&tin=02508201610067®Number=0000000000156251&sum=50000 [22:51:19]OFD Sender: Processing packet 70036 [packets to send 18, broken 17] [22:51:19]ProducePacketName [22:51:19]name=ofd_packets/00070036 [22:51:19]OFD Sender: To server: pG, [22:51:19]CommunicateWithHost lk.salyk.kg:30040 [22:51:19]ConnectInit lk.salyk.kg [22:51:19]written 0, free lines is 4095 [22:51:20]Connected sock=9 [22:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 81 1C 04 01 5E 1A 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 32 31 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 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C4 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 AA 01 00 00 F4 03 04 00 E8 DA 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 11 01 00 35 04 06 00 C8 77 87 5C 65 34 48 23 EA F4 B8 AE 4D 11 [22:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 77 BF 47 00 A2 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 11 01 00 F4 03 04 00 8A 84 16 67 B6 04 01 00 00 75 6E 7C CF 9B 9E F3 0A [22:51:20]CommunicateWithHost err = 0 [22:51:20]CheckOFDResponse [22:51:20]1017 (14) - 77093643461234 [22:51:20]1041 (16) - 0000000000963346 [22:51:20]1040 (4) - 70036 [22:51:20]1012 (4) - 21.10.2024 16:42 [22:51:20]1206 (1) - 0 [22:51:20]OFD Sender: Remove packet 70036 [22:51:20]ProducePacketName [22:51:20]name=ofd_packets/00070036 [22:51:20]NVStorageDeleteData [22:51:20]Write to MH i2c: 01 00 00 58 2C 84 [22:51:20]Write i2c OK [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: 01 [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: 01 07 00 [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: 01 07 00 58 2C 00 00 00 00 00 D9 0C 70 [22:51:20]RasterBufferAndPrint [22:51:20]line [22:51:20]line [22:51:20]line [22:51:20]line [22:51:20]line [22:51:20]written 0, free lines is 3297 [22:51:20]MH_Cut [22:51:20]Write to MH i2c: D1 01 00 5F 2C 01 5D [22:51:20]Write i2c OK [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: D1 [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: D1 01 00 [22:51:20]MH_I2C_Read... [22:51:20]Read from MH i2c: D1 01 00 5F 2C 00 5C [22:51:20]Write to MH i2c: 01 00 00 60 2C 8C [22:51:20]Write i2c OK [22:51:20]MH_I2C_Read... [22:51:20]OFD Sender: No OFD packet to send [22:51:21]*** Cut start [22:51:21]*** Partial cut [22:51:21]*** CUTSNS_PIN = 1 [22:51:21]*** CUTSNS_PIN = 0 [22:51:21]*** Brake cut motor [22:51:21]Read from MH i2c: 01 [22:51:21]MH_I2C_Read... [22:51:21]*** Stop cut motor [22:51:21]*** Cut end [22:51:21]Read from MH i2c: 01 07 00 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: 01 07 00 60 2C 00 00 00 00 00 FF 0F A1 [22:51:21]process_action close_receipt done [22:51:21]requested_data is exist [22:51:21]produce_requested_data [22:51:21]requested_item fm.sn is exist - process it [22:51:21]wFMCommunicate request_size=4 [22:51:21]MH_SAM_APDU [22:51:21]CAPDU: 80 11 00 00 [22:51:21]Write to MH i2c: E2 08 00 61 2C 80 11 00 00 00 00 00 00 07 [22:51:21]Write i2c OK [22:51:21]MH_I2C_Read... [22:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:21]Read from MH i2c: E2 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 17 00 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 17 00 61 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [22:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:51:21]wFMCommunicate OK [22:51:21]requested_item fd.num is exist - process it [22:51:21]SAM_PROTO_GetFieldsCounters [22:51:21]wFMCommunicate request_size=4 [22:51:21]MH_SAM_APDU [22:51:21]CAPDU: 80 13 00 00 [22:51:21]Write to MH i2c: E2 08 00 62 2C 80 13 00 00 00 00 00 00 0A [22:51:21]Write i2c OK [22:51:21]MH_I2C_Read... [22:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:21]Read from MH i2c: E2 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 62 00 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 62 00 62 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:21]wFMCommunicate OK [22:51:21]SAM_PROTO_GetFieldsCounters done [22:51:21]requested_item shift.num is exist - process it [22:51:21]requested_item shift.opened is exist - process it [22:51:21]req_shift_opened [22:51:21]FM_GetShiftState [22:51:21]SAM_PROTO_GetShiftState [22:51:21]wFMCommunicate request_size=4 [22:51:21]MH_SAM_APDU [22:51:21]CAPDU: 80 13 01 00 [22:51:21]Write to MH i2c: E2 08 00 63 2C 80 13 01 00 00 00 00 00 0C [22:51:21]Write i2c OK [22:51:21]MH_I2C_Read... [22:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:21]Read from MH i2c: E2 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 0E 00 [22:51:21]MH_I2C_Read... [22:51:21]Read from MH i2c: E2 0E 00 63 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 38 [22:51:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:51:21]wFMCommunicate OK [22:51:21]SAM_PROTO_GetShiftState done [22:51:21]FM_GetShiftState done [22:51:21]req_shift_opened done [22:51:21]requested_item shift.open_date is exist - process it [22:51:21]req_shift_open_date [22:51:21]req_shift_open_date done [22:51:21]produce_requested_data done [22:51:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70036,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:51:21]process_action_free close_receipt [22:51:21]json_value_free [22:51:21]json_value_free done [22:51:21]process_json_proto returns [22:51:21]Send response to host [22:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70036,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:51:21]free response buf [22:51:21]execute_script done [22:51:21]execute_script returns [22:51:21]free content buf [22:51:21]Sock 10.Close socket [22:51:21]Sock 10.Thread stoped [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:03]accept exits with 7 [22:52:03]New connection [22:52:03]New thread 3067170148 created [22:52:03]Thread 3067026788 joined [22:52:03]Waiting for new connection... [22:52:03] Sock 7.Parse request [22:52:03]Sock 7.Check first char [22:52:03]Sock 7.First char is OK [22:52:03]request: POST /json_proto HTTP/1.0 [22:52:03]Method: POST [22:52:03]URL: /json_proto [22:52:03]Method is POST - this is cgi request [22:52:03]url: /json_proto [22:52:03]query_string will be loaded in cgi processing [22:52:03]execute_cgi json_proto POST (null) [22:52:03]execute_cgi path=json_proto method=POST [22:52:03]POST find Content-Length [22:52:03]Host: 172.17.50.3:8080 [22:52:03]Content-Length: 767 [22:52:03]Content-Type: application/json [22:52:03] [22:52:03]POST finish read [22:52:03]Found Content-Length = 767 [22:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:03]execute_script... [22: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)2885804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:03]POST & json_proto [22:52:03]process_json_proto [22:52:03]json parsed OK: [22:52:03]protocol is kg_v1.0 [22:52:03]action value=close_receipt [22:52:03]process_action close_receipt [22:52:03]cmd_close_receipt [22:52:03]MH_GetDate [22:52:03]Write to MH i2c: F0 00 00 64 2C 7F [22:52:03]Write i2c OK [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 09 00 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 09 00 64 2C 00 15 DB 16 67 6B 98 1E 66 7C [22:52:03]GetLastDocTimeStamp 1729551080 [22:52:03]current date 1729551125 [22:52:03]FM_GetShiftState [22:52:03]SAM_PROTO_GetShiftState [22:52:03]wFMCommunicate request_size=4 [22:52:03]MH_SAM_APDU [22:52:03]CAPDU: 80 13 01 00 [22:52:03]Write to MH i2c: E2 08 00 65 2C 80 13 01 00 00 00 00 00 0E [22:52:03]Write i2c OK [22:52:03]MH_I2C_Read... [22:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:03]Read from MH i2c: E2 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: E2 0E 00 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: E2 0E 00 65 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 3A [22:52:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:52:03]wFMCommunicate OK [22:52:03]SAM_PROTO_GetShiftState done [22:52:03]FM_GetShiftState done [22:52:03]opened in 1729469703 [22:52:03]opened+sec_in_day 1729556103 [22:52:03]quantity*price = 300075 [22:52:03]sum+1 = 300077 [22:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 427 21.10.2024 22:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70037 ФПД: 59040768019316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70037&fm=59040768019316&tin=02508201610067®Number=0000000000156251&sum=300076 [22:52:04]StoreToDocumentArchive [22:52:04]shift 194 fd 70037 [22:52:04]save to /storage/0194/doc_00070037 [22:52:04]save last doc name /storage/0194/doc_00070037 to /storage/kkm_last_doc_name [22:52:04]save OK [22:52:04]Clear old archive folders... [22:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:52:04]tlvbuf is 01172510 [22:52:04]SAM_PROTO_ClearQueue [22:52:04]wFMCommunicate request_size=4 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 09 00 00 [22:52:04]Write to MH i2c: E2 08 00 72 2C 80 09 00 00 00 00 00 00 10 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 72 2C 00 90 00 12 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]SAM_PROTO_ClearQueue done [22:52:04]KKMCreateOFDPacket [22:52:04]OFDProtocolAddRootSTLVToBuf [22:52:04]FM_MakeSignedData [22:52:04]FM_MakeSignedData [22:52:04]SAM_PROTO_SignData [22:52:04]wFMCommunicate request_size=4 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 0D 01 02 [22:52:04]Write to MH i2c: E2 08 00 73 2C 80 0D 01 02 00 00 00 00 18 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 73 2C 00 90 00 13 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]wFMCommunicate request_size=255 [22:52:04]MH_SAM_APDU [22:52: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 32 31 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 2C 94 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 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 15 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 11 01 00 35 04 06 00 35 B2 80 01 [22:52:04]Write to MH i2c: E2 02 01 74 2C 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 32 31 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 2C 94 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 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 15 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 11 01 00 35 04 06 00 35 B2 80 01 00 00 52 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:05]Read from MH i2c: E2 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 03 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 03 00 74 2C 00 90 00 14 [22:52:05]RAPDU: 90 00 [22:52:05]wFMCommunicate OK [22:52:05]wFMCommunicate request_size=7 [22:52:05]MH_SAM_APDU [22:52:05]CAPDU: 80 0D 02 02 02 4B 74 [22:52:05]Write to MH i2c: E2 0A 00 75 2C 80 0D 02 02 02 00 4B 74 00 00 DE [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:05]Read from MH i2c: E2 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 03 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 03 00 75 2C 00 90 00 15 [22:52:05]RAPDU: 90 00 [22:52:05]wFMCommunicate OK [22:52:05]wFMCommunicate request_size=4 [22:52:05]MH_SAM_APDU [22:52:05]CAPDU: 80 0D 03 02 [22:52:05]Write to MH i2c: E2 08 00 76 2C 80 0D 03 02 00 00 00 00 1D [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:05]Read from MH i2c: E2 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 0B 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 0B 00 76 2C 00 77 5D B0 C4 7C B7 8C 5E 90 00 83 [22:52:05]RAPDU: 77 5D B0 C4 7C B7 8C 5E 90 00 [22:52:05]wFMCommunicate OK [22:52:05]SAM_PROTO_SignData done [22:52:05]FM_MakeSignedData done [22:52:05]CreateOFDProtocolMessage [22:52:05]wFMCommunicate request_size=4 [22:52:05]MH_SAM_APDU [22:52:05]CAPDU: 80 11 00 00 [22:52:05]Write to MH i2c: E2 08 00 77 2C 80 11 00 00 00 00 00 00 1D [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:05]Read from MH i2c: E2 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 17 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 17 00 77 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [22:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:52:05]wFMCommunicate OK [22:52:05]CreateOFDProtocolMessage done [22:52:05]OFDSenderStorePacket 70037 [22:52:05]StoreOFDPacket docnum=70037 [22:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 44 6B 04 01 FC FB 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 32 31 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 2C 94 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 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 15 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 11 01 00 35 04 06 00 35 B2 80 01 4B 74 77 5D B0 C4 7C B7 8C 5E [22:52:05]CheckFolder [22:52:05]dirname=/storage/ofd_packets [22:52:05]CheckFolder done [22:52:05]ProducePacketName [22:52:05]name=ofd_packets/00070037 [22:52:05]NVStorageSaveData ofd_packets/00070037 [22:52:05]File name is /storage/ofd_packets/00070037 [22:52:05]Write 298 bytes [22:52:05]NVStorageSaveData done [22:52:05]OFDSenderStorePacket done [22:52:05]KKMCreateOFDPacket done [22:52:05]NVStorageSaveData kkm_last_timestamp [22:52:05]File name is /storage/kkm_last_timestamp [22:52:05]Write 4 bytes [22:52:05]NVStorageSaveData done [22:52:05]OFD Sender: Processing packet 70037 [packets to send 18, broken 17] [22:52:05]ProducePacketName [22:52:05]name=ofd_packets/00070037 [22:52:05]OFD Sender: To server: pG, [22:52:05]CommunicateWithHost lk.salyk.kg:30040 [22:52:05]ConnectInit lk.salyk.kg [22:52:05]ExternCall_PrintAddStr [22:52:05]wPrintStart [22:52:05]Write to MH i2c: 01 00 00 78 2C A4 [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 78 2C 00 00 00 00 00 FF 0F B9 [22:52:05]RasterBufferAndPrint [22:52:05]line Счет N : (1)2885804 [22:52:05]line ИНН: 02508201610067 [22:52:05]line Контрольно-Кассовый Чек [22:52:05]line ПРОДАЖА [22:52:05]line ТРК (МРК, ГНК) : 61 [22:52:05]line Товар: 2710194210 [22:52:05]line ДТ-К-5 [22:52:05]line 39.380 * 76.20 [22:52:05]line = 3000.76 [22:52:05]line НДС 12% НСП 1% [22:52:05]line > о реализуемом товаре [22:52:05]line ИТОГО: 3000.76 [22:52:05]line НСП 1% : 26.55 [22:52:05]line НДС 12% : 318.66 [22:52:05]line Наличными: 0.00 [22:52:05]line Безнал.: 3000.76 [22:52:05]line Место: АЗС № 85 "Партнер Нефть" [22:52:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:52:05]line СНО: Общий режим [22:52:05]line Чек 427 21.10.2024 22:52 [22:52:05]line Смена: 194 ФФД: 1.0 [22:52:05]line ЗНМ: 0300000167 [22:52:05]line РНМ: 0000000000156251 [22:52:05]line Версия ККМ: v1.0 [22:52:05]line Платежная система: Mbank [22:52:05]line ФМ: 0000000000963346 [22:52:05]line ФД: 70037 [22:52:05]line ФПД: 59040768019316 [22:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70037&fm=59040768019316&tin=02508201610067®Number=0000000000156251&sum=300076 [22:52:05]Connected sock=11 [22:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 44 6B 04 01 FC FB 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 32 31 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 2C 94 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 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 15 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 11 01 00 35 04 06 00 35 B2 80 01 4B 74 77 5D B0 C4 7C B7 8C 5E [22:52:05]written 0, free lines is 4095 [22:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4B 2A 47 00 56 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 11 01 00 F4 03 04 00 B8 84 16 67 B6 04 01 00 00 BB F1 0D F8 4A 53 FF 1D [22:52:05]CommunicateWithHost err = 0 [22:52:05]CheckOFDResponse [22:52:05]1017 (14) - 77093643461234 [22:52:05]1041 (16) - 0000000000963346 [22:52:05]1040 (4) - 70037 [22:52:05]1012 (4) - 21.10.2024 16:43 [22:52:05]1206 (1) - 0 [22:52:05]OFD Sender: Remove packet 70037 [22:52:05]ProducePacketName [22:52:05]name=ofd_packets/00070037 [22:52:05]NVStorageDeleteData [22:52:06]Write to MH i2c: 01 00 00 A1 2C CD [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: 01 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: 01 07 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: 01 07 00 A1 2C 00 00 00 00 00 0F 0D F0 [22:52:06]RasterBufferAndPrint [22:52:06]line [22:52:06]line [22:52:06]line [22:52:06]line [22:52:06]line [22:52:06]written 0, free lines is 3349 [22:52:06]MH_Cut [22:52:06]Write to MH i2c: D1 01 00 A8 2C 01 A6 [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: D1 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: D1 01 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: D1 01 00 A8 2C 00 A5 [22:52:06]Write to MH i2c: 01 00 00 A9 2C D5 [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]OFD Sender: No OFD packet to send [22:52:06]*** Cut start [22:52:06]*** Partial cut [22:52:06]*** CUTSNS_PIN = 1 [22:52:06]*** CUTSNS_PIN = 0 [22:52:06]*** Brake cut motor [22:52:07]Read from MH i2c: 01 [22:52:07]MH_I2C_Read... [22:52:07]*** Stop cut motor [22:52:07]*** Cut end [22:52:07]Read from MH i2c: 01 07 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: 01 07 00 A9 2C 00 00 00 00 00 FF 0F EA [22:52:07]process_action close_receipt done [22:52:07]requested_data is exist [22:52:07]produce_requested_data [22:52:07]requested_item fm.sn is exist - process it [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 11 00 00 [22:52:07]Write to MH i2c: E2 08 00 AA 2C 80 11 00 00 00 00 00 00 50 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 17 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 17 00 AA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [22:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:52:07]wFMCommunicate OK [22:52:07]requested_item fd.num is exist - process it [22:52:07]SAM_PROTO_GetFieldsCounters [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 13 00 00 [22:52:07]Write to MH i2c: E2 08 00 AB 2C 80 13 00 00 00 00 00 00 53 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 62 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 62 00 AB 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_GetFieldsCounters done [22:52:07]requested_item shift.num is exist - process it [22:52:07]requested_item shift.opened is exist - process it [22:52:07]req_shift_opened [22:52:07]FM_GetShiftState [22:52:07]SAM_PROTO_GetShiftState [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 13 01 00 [22:52:07]Write to MH i2c: E2 08 00 AC 2C 80 13 01 00 00 00 00 00 55 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 0E 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 0E 00 AC 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 81 [22:52:07]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_GetShiftState done [22:52:07]FM_GetShiftState done [22:52:07]req_shift_opened done [22:52:07]requested_item shift.open_date is exist - process it [22:52:07]req_shift_open_date [22:52:07]req_shift_open_date done [22:52:07]produce_requested_data done [22:52:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70037,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:52:07]process_action_free close_receipt [22:52:07]json_value_free [22:52:07]json_value_free done [22:52:07]process_json_proto returns [22:52:07]Send response to host [22:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70037,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:52:07]free response buf [22:52:07]execute_script done [22:52:07]execute_script returns [22:52:07]free content buf [22:52:07]Sock 7.Close socket [22:52:07]Sock 7.Thread stoped [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:05]accept exits with 9 [22:53:05]New connection [22:53:05]New thread 3067026788 created [22:53:05]Thread 3067170148 joined [22:53:05]Waiting for new connection... [22:53:05] Sock 9.Parse request [22:53:05]Sock 9.Check first char [22:53:05]Sock 9.First char is OK [22:53:05]request: POST /json_proto HTTP/1.0 [22:53:05]Method: POST [22:53:05]URL: /json_proto [22:53:05]Method is POST - this is cgi request [22:53:05]url: /json_proto [22:53:05]query_string will be loaded in cgi processing [22:53:05]execute_cgi json_proto POST (null) [22:53:05]execute_cgi path=json_proto method=POST [22:53:05]POST find Content-Length [22:53:05]Host: 172.17.50.3:8080 [22:53:05]Content-Length: 649 [22:53:05]Content-Type: application/json [22:53:05] [22:53:05]POST finish read [22:53:05]Found Content-Length = 649 [22:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 40.000, "sum" : 3088.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3088.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:05]execute_script... [22:53: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)2885806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 40.000, "sum" : 3088.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3088.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:05]POST & json_proto [22:53:05]process_json_proto [22:53:05]json parsed OK: [22:53:05]protocol is kg_v1.0 [22:53:05]action value=close_receipt [22:53:05]process_action close_receipt [22:53:05]cmd_close_receipt [22:53:05]MH_GetDate [22:53:05]Write to MH i2c: F0 00 00 AD 2C C8 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: F0 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: F0 09 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: F0 09 00 AD 2C 00 53 DB 16 67 6B 98 1E 66 03 [22:53:05]GetLastDocTimeStamp 1729551125 [22:53:05]current date 1729551187 [22:53:05]FM_GetShiftState [22:53:05]SAM_PROTO_GetShiftState [22:53:05]wFMCommunicate request_size=4 [22:53:05]MH_SAM_APDU [22:53:05]CAPDU: 80 13 01 00 [22:53:05]Write to MH i2c: E2 08 00 AE 2C 80 13 01 00 00 00 00 00 57 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:05]Read from MH i2c: E2 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 0E 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: E2 0E 00 AE 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 83 [22:53:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:53:05]wFMCommunicate OK [22:53:05]SAM_PROTO_GetShiftState done [22:53:05]FM_GetShiftState done [22:53:05]opened in 1729469703 [22:53:05]opened+sec_in_day 1729556103 [22:53:05]quantity*price = 308800 [22:53:05]sum+1 = 308801 [22:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3088.00 НСП 1% : 27.33 НДС 12% : 327.93 Наличными: 3088.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 428 21.10.2024 22:53 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70038 ФПД: 218958964914589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225307&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70038&fm=218958964914589&tin=02508201610067®Number=0000000000156251&sum=308800 [22:53:06]StoreToDocumentArchive [22:53:06]shift 194 fd 70038 [22:53:06]save to /storage/0194/doc_00070038 [22:53:06]save last doc name /storage/0194/doc_00070038 to /storage/kkm_last_doc_name [22:53:06]save OK [22:53:06]Clear old archive folders... [22:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:53:06]tlvbuf is 0116BB10 [22:53:06]SAM_PROTO_ClearQueue [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 09 00 00 [22:53:06]Write to MH i2c: E2 08 00 BB 2C 80 09 00 00 00 00 00 00 59 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 BB 2C 00 90 00 5B [22:53:06]RAPDU: 90 00 [22:53:06]wFMCommunicate OK [22:53:06]SAM_PROTO_ClearQueue done [22:53:06]KKMCreateOFDPacket [22:53:06]OFDProtocolAddRootSTLVToBuf [22:53:06]FM_MakeSignedData [22:53:06]FM_MakeSignedData [22:53:06]SAM_PROTO_SignData [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 0D 01 02 [22:53:06]Write to MH i2c: E2 08 00 BC 2C 80 0D 01 02 00 00 00 00 61 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 03 00 BC 2C 00 90 00 5C [22:53:06]RAPDU: 90 00 [22:53:06]wFMCommunicate OK [22:53:06]wFMCommunicate request_size=255 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 80 00 00 00 00 07 04 06 00 40 B6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 53 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 11 01 [22:53:06]Write to MH i2c: E2 02 01 BD 2C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 80 00 00 00 00 07 04 06 00 40 B6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 53 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 11 01 00 00 F3 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 03 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 03 00 BD 2C 00 90 00 5D [22:53:07]RAPDU: 90 00 [22:53:07]wFMCommunicate OK [22:53:07]wFMCommunicate request_size=16 [22:53:07]MH_SAM_APDU [22:53:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C7 24 5B 52 F9 9D [22:53:07]Write to MH i2c: E2 13 00 BE 2C 80 0D 02 02 0B 00 00 35 04 06 00 C7 24 5B 52 F9 9D 00 00 E7 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 03 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 03 00 BE 2C 00 90 00 5E [22:53:07]RAPDU: 90 00 [22:53:07]wFMCommunicate OK [22:53:07]wFMCommunicate request_size=4 [22:53:07]MH_SAM_APDU [22:53:07]CAPDU: 80 0D 03 02 [22:53:07]Write to MH i2c: E2 08 00 BF 2C 80 0D 03 02 00 00 00 00 66 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0B 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0B 00 BF 2C 00 AA 50 3E 07 58 C7 33 AA 90 00 A2 [22:53:07]RAPDU: AA 50 3E 07 58 C7 33 AA 90 00 [22:53:07]wFMCommunicate OK [22:53:07]SAM_PROTO_SignData done [22:53:07]FM_MakeSignedData done [22:53:07]CreateOFDProtocolMessage [22:53:07]wFMCommunicate request_size=4 [22:53:07]MH_SAM_APDU [22:53:07]CAPDU: 80 11 00 00 [22:53:07]Write to MH i2c: E2 08 00 C0 2C 80 11 00 00 00 00 00 00 66 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 17 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 17 00 C0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [22:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:53:07]wFMCommunicate OK [22:53:07]CreateOFDProtocolMessage done [22:53:07]OFDSenderStorePacket 70038 [22:53:07]StoreOFDPacket docnum=70038 [22:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5F 77 0D 01 B6 FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 80 00 00 00 00 07 04 06 00 40 B6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 53 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 11 01 00 35 04 06 00 C7 24 5B 52 F9 9D AA 50 3E 07 58 C7 33 AA [22:53:07]CheckFolder [22:53:07]dirname=/storage/ofd_packets [22:53:07]CheckFolder done [22:53:07]ProducePacketName [22:53:07]name=ofd_packets/00070038 [22:53:07]NVStorageSaveData ofd_packets/00070038 [22:53:07]File name is /storage/ofd_packets/00070038 [22:53:07]Write 307 bytes [22:53:07]NVStorageSaveData done [22:53:07]OFDSenderStorePacket done [22:53:07]KKMCreateOFDPacket done [22:53:07]NVStorageSaveData kkm_last_timestamp [22:53:07]File name is /storage/kkm_last_timestamp [22:53:07]Write 4 bytes [22:53:07]NVStorageSaveData done [22:53:07]ExternCall_PrintAddStr [22:53:07]wPrintStart [22:53:07]Write to MH i2c: 01 00 00 C1 2C ED [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 C1 2C 00 00 00 00 00 FF 0F 02 [22:53:07]RasterBufferAndPrint [22:53:07]line Счет N : (1)2885806 [22:53:07]line ИНН: 02508201610067 [22:53:07]line Контрольно-Кассовый Чек [22:53:07]line ПРОДАЖА [22:53:07]line ТРК (МРК, ГНК) : 41 [22:53:07]line Товар: 2710194240 [22:53:07]line D-ENERGY Дт-К-2 [22:53:07]line 40.000 * 77.20 [22:53:07]line = 3088.00 [22:53:07]line НДС 12% НСП 1% [22:53:07]line > о реализуемом товаре [22:53:07]line ИТОГО: 3088.00 [22:53:07]line НСП 1% : 27.33 [22:53:07]line НДС 12% : 327.93 [22:53:07]line Наличными: 3088.00 [22:53:07]line Безнал.: 0.00 [22:53:07]line Место: АЗС № 85 "Партнер Нефть" [22:53:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:53:07]line СНО: Общий режим [22:53:07]line Чек 428 21.10.2024 22:53 [22:53:07]line Смена: 194 ФФД: 1.0 [22:53:07]line ЗНМ: 0300000167 [22:53:07]line РНМ: 0000000000156251 [22:53:07]line Версия ККМ: v1.0 [22:53:07]line ФМ: 0000000000963346 [22:53:07]line ФД: 70038 [22:53:07]line ФПД: 218958964914589 [22:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225307&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70038&fm=218958964914589&tin=02508201610067®Number=0000000000156251&sum=308800 [22:53:07]OFD Sender: Processing packet 70038 [packets to send 18, broken 17] [22:53:07]ProducePacketName [22:53:07]name=ofd_packets/00070038 [22:53:07]OFD Sender: To server: pG, [22:53:07]CommunicateWithHost lk.salyk.kg:30040 [22:53:07]ConnectInit lk.salyk.kg [22:53:07]written 0, free lines is 4095 [22:53:07]Connected sock=10 [22:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5F 77 0D 01 B6 FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 B6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 80 00 00 00 00 07 04 06 00 40 B6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 53 DB 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 11 01 00 35 04 06 00 C7 24 5B 52 F9 9D AA 50 3E 07 58 C7 33 AA [22:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 27 62 47 00 F8 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 39 36 33 33 34 36 10 04 04 00 96 11 01 00 F4 03 04 00 F6 84 16 67 B6 04 01 00 00 93 C9 87 D8 80 28 4E 7F [22:53:07]CommunicateWithHost err = 0 [22:53:07]CheckOFDResponse [22:53:07]1017 (14) - 77093643461234 [22:53:07]1041 (16) - 0000000000963346 [22:53:07]1040 (4) - 70038 [22:53:07]1012 (4) - 21.10.2024 16:44 [22:53:07]1206 (1) - 0 [22:53:07]OFD Sender: Remove packet 70038 [22:53:07]ProducePacketName [22:53:07]name=ofd_packets/00070038 [22:53:07]NVStorageDeleteData [22:53:07]Write to MH i2c: 01 00 00 E9 2C 15 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: 01 07 00 E9 2C 00 00 00 00 00 39 0D 62 [22:53:07]RasterBufferAndPrint [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]line [22:53:07]written 0, free lines is 3391 [22:53:07]MH_Cut [22:53:07]Write to MH i2c: D1 01 00 F0 2C 01 EE [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 01 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: D1 01 00 F0 2C 00 ED [22:53:07]Write to MH i2c: 01 00 00 F1 2C 1D [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:08]OFD Sender: No OFD packet to send [22:53:08]*** Cut start [22:53:08]*** Partial cut [22:53:08]*** CUTSNS_PIN = 1 [22:53:08]*** CUTSNS_PIN = 0 [22:53:08]*** Brake cut motor [22:53:09]Read from MH i2c: 01 [22:53:09]MH_I2C_Read... [22:53:09]*** Stop cut motor [22:53:09]*** Cut end [22:53:09]Read from MH i2c: 01 07 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [22:53:09]process_action close_receipt done [22:53:09]requested_data is exist [22:53:09]produce_requested_data [22:53:09]requested_item fm.sn is exist - process it [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 11 00 00 [22:53:09]Write to MH i2c: E2 08 00 F2 2C 80 11 00 00 00 00 00 00 98 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 F2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [22:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:53:09]wFMCommunicate OK [22:53:09]requested_item fd.num is exist - process it [22:53:09]SAM_PROTO_GetFieldsCounters [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 13 00 00 [22:53:09]Write to MH i2c: E2 08 00 F3 2C 80 13 00 00 00 00 00 00 9B [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 62 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 62 00 F3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_GetFieldsCounters done [22:53:09]requested_item shift.num is exist - process it [22:53:09]requested_item shift.opened is exist - process it [22:53:09]req_shift_opened [22:53:09]FM_GetShiftState [22:53:09]SAM_PROTO_GetShiftState [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 13 01 00 [22:53:09]Write to MH i2c: E2 08 00 F4 2C 80 13 01 00 00 00 00 00 9D [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0E 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0E 00 F4 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C9 [22:53:09]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_GetShiftState done [22:53:09]FM_GetShiftState done [22:53:09]req_shift_opened done [22:53:09]requested_item shift.open_date is exist - process it [22:53:09]req_shift_open_date [22:53:09]req_shift_open_date done [22:53:09]produce_requested_data done [22:53:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70038,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [22:53:09]process_action_free close_receipt [22:53:09]json_value_free [22:53:09]json_value_free done [22:53:09]process_json_proto returns [22:53:09]Send response to host [22:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70038,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [22:53:09]free response buf [22:53:09]execute_script done [22:53:09]execute_script returns [22:53:09]free content buf [22:53:09]Sock 9.Close socket [22:53:09]Sock 9.Thread stoped [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:21]accept exits with 7 [23:04:21]New connection [23:04:21]New thread 3067170148 created [23:04:21]Thread 3067026788 joined [23:04:21]Waiting for new connection... [23:04:21] Sock 7.Parse request [23:04:21]Sock 7.Check first char [23:04:21]Sock 7.First char is OK [23:04:21]request: POST /json_proto HTTP/1.0 [23:04:21]Method: POST [23:04:21]URL: /json_proto [23:04:21]Method is POST - this is cgi request [23:04:21]url: /json_proto [23:04:21]query_string will be loaded in cgi processing [23:04:21]execute_cgi json_proto POST (null) [23:04:21]execute_cgi path=json_proto method=POST [23:04:21]POST find Content-Length [23:04:21]Host: 172.17.50.3:8080 [23:04:21]Content-Length: 689 [23:04:21]Content-Type: application/json [23:04:21] [23:04:21]POST finish read [23:04:21]Found Content-Length = 689 [23:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [23:04:21]execute_script... [23:04:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [23:04:21]POST & json_proto [23:04:21]process_json_proto [23:04:21]json parsed OK: [23:04:21]protocol is kg_v1.0 [23:04:21]action value=close_receipt [23:04:21]process_action close_receipt [23:04:21]cmd_close_receipt [23:04:21]MH_GetDate [23:04:21]Write to MH i2c: F0 00 00 F5 2C 10 [23:04:21]Write i2c OK [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: F0 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: F0 09 00 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: F0 09 00 F5 2C 00 F7 DD 16 67 6B 98 1E 66 F1 [23:04:21]GetLastDocTimeStamp 1729551187 [23:04:21]current date 1729551863 [23:04:21]FM_GetShiftState [23:04:21]SAM_PROTO_GetShiftState [23:04:21]wFMCommunicate request_size=4 [23:04:21]MH_SAM_APDU [23:04:21]CAPDU: 80 13 01 00 [23:04:21]Write to MH i2c: E2 08 00 F6 2C 80 13 01 00 00 00 00 00 9F [23:04:21]Write i2c OK [23:04:21]MH_I2C_Read... [23:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:21]Read from MH i2c: E2 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 0E 00 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 0E 00 F6 2C 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CB [23:04:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:04:21]wFMCommunicate OK [23:04:21]SAM_PROTO_GetShiftState done [23:04:21]FM_GetShiftState done [23:04:21]opened in 1729469703 [23:04:21]opened+sec_in_day 1729556103 [23:04:21]quantity*price = 150076 [23:04:21]sum+1 = 150078 [23:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 429 21.10.2024 23:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70039 ФПД: 223083113157563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70039&fm=223083113157563&tin=02508201610067®Number=0000000000156251&sum=150000 [23:04:22]StoreToDocumentArchive [23:04:22]shift 194 fd 70039 [23:04:22]save to /storage/0194/doc_00070039 [23:04:22]save last doc name /storage/0194/doc_00070039 to /storage/kkm_last_doc_name [23:04:22]save OK [23:04:22]Clear old archive folders... [23:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:04:22]tlvbuf is 011F7130 [23:04:22]SAM_PROTO_ClearQueue [23:04:22]wFMCommunicate request_size=4 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 09 00 00 [23:04:22]Write to MH i2c: E2 08 00 03 2D 80 09 00 00 00 00 00 00 A2 [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [23:04:22]RAPDU: 90 00 [23:04:22]wFMCommunicate OK [23:04:22]SAM_PROTO_ClearQueue done [23:04:22]KKMCreateOFDPacket [23:04:22]OFDProtocolAddRootSTLVToBuf [23:04:22]FM_MakeSignedData [23:04:22]FM_MakeSignedData [23:04:22]SAM_PROTO_SignData [23:04:22]wFMCommunicate request_size=4 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 0D 01 02 [23:04:22]Write to MH i2c: E2 08 00 04 2D 80 0D 01 02 00 00 00 00 AA [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [23:04:22]RAPDU: 90 00 [23:04:22]wFMCommunicate OK [23:04:22]wFMCommunicate request_size=255 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 AD 01 00 00 F4 03 04 00 F7 DD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 11 01 [23:04:22]Write to MH i2c: E2 02 01 05 2D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 AD 01 00 00 F4 03 04 00 F7 DD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 11 01 00 00 B8 [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 05 2D 00 90 00 A6 [23:04:22]RAPDU: 90 00 [23:04:22]wFMCommunicate OK [23:04:22]wFMCommunicate request_size=16 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CA E4 95 B7 13 BB [23:04:22]Write to MH i2c: E2 13 00 06 2D 80 0D 02 02 0B 00 00 35 04 06 00 CA E4 95 B7 13 BB 00 00 CA [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 03 00 06 2D 00 90 00 A7 [23:04:22]RAPDU: 90 00 [23:04:22]wFMCommunicate OK [23:04:22]wFMCommunicate request_size=4 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 0D 03 02 [23:04:22]Write to MH i2c: E2 08 00 07 2D 80 0D 03 02 00 00 00 00 AF [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 0B 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 0B 00 07 2D 00 F4 59 3D 04 7B 63 C2 16 90 00 F4 [23:04:22]RAPDU: F4 59 3D 04 7B 63 C2 16 90 00 [23:04:22]wFMCommunicate OK [23:04:22]SAM_PROTO_SignData done [23:04:22]FM_MakeSignedData done [23:04:22]CreateOFDProtocolMessage [23:04:22]wFMCommunicate request_size=4 [23:04:22]MH_SAM_APDU [23:04:22]CAPDU: 80 11 00 00 [23:04:22]Write to MH i2c: E2 08 00 08 2D 80 11 00 00 00 00 00 00 AF [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:22]Read from MH i2c: E2 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 17 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 17 00 08 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [23:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:04:22]wFMCommunicate OK [23:04:22]CreateOFDProtocolMessage done [23:04:22]OFDSenderStorePacket 70039 [23:04:22]StoreOFDPacket docnum=70039 [23:04:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 16 F4 0D 01 4C 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 AD 01 00 00 F4 03 04 00 F7 DD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 11 01 00 35 04 06 00 CA E4 95 B7 13 BB F4 59 3D 04 7B 63 C2 16 [23:04:22]CheckFolder [23:04:22]dirname=/storage/ofd_packets [23:04:22]CheckFolder done [23:04:22]ProducePacketName [23:04:22]name=ofd_packets/00070039 [23:04:22]NVStorageSaveData ofd_packets/00070039 [23:04:22]File name is /storage/ofd_packets/00070039 [23:04:22]Write 307 bytes [23:04:22]NVStorageSaveData done [23:04:22]OFDSenderStorePacket done [23:04:22]KKMCreateOFDPacket done [23:04:22]NVStorageSaveData kkm_last_timestamp [23:04:22]File name is /storage/kkm_last_timestamp [23:04:22]Write 4 bytes [23:04:22]NVStorageSaveData done [23:04:22]ExternCall_PrintAddStr [23:04:22]wPrintStart [23:04:22]Write to MH i2c: 01 00 00 09 2D 36 [23:04:22]Write i2c OK [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: 01 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: 01 07 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 FF 0F 4B [23:04:22]RasterBufferAndPrint [23:04:22]line Счет N : (1)2885807 [23:04:22]line ИНН: 02508201610067 [23:04:22]line Контрольно-Кассовый Чек [23:04:22]line ПРОДАЖА [23:04:22]line ТРК (МРК, ГНК) : 21 [23:04:22]line Товар: 2710194240 [23:04:22]line D-ENERGY Дт-К-2 [23:04:22]line 19.440 * 77.20 [23:04:22]line = 1500.77 [23:04:22]line НДС 12% НСП 1% [23:04:22]line > о реализуемом товаре [23:04:22]line ОКРУГЛЕНИЕ: -0.77 [23:04:22]line ИТОГО: 1500.00 [23:04:22]line Внесено: 1500.00 [23:04:22]line СДАЧА: 0.00 [23:04:22]line НСП 1% : 13.28 [23:04:22]line НДС 12% : 159.37 [23:04:22]line Наличными: 1500.00 [23:04:22]line Безнал.: 0.00 [23:04:22]line Место: АЗС № 85 "Партнер Нефть" [23:04:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:04:22]line СНО: Общий режим [23:04:22]line Чек 429 21.10.2024 23:04 [23:04:23]line Смена: 194 ФФД: 1.0 [23:04:23]line ЗНМ: 0300000167 [23:04:23]line РНМ: 0000000000156251 [23:04:23]line Версия ККМ: v1.0 [23:04:23]line ФМ: 0000000000963346 [23:04:23]line ФД: 70039 [23:04:23]line ФПД: 223083113157563 [23:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230423&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70039&fm=223083113157563&tin=02508201610067®Number=0000000000156251&sum=150000 [23:04:23]OFD Sender: Processing packet 70039 [packets to send 18, broken 17] [23:04:23]ProducePacketName [23:04:23]name=ofd_packets/00070039 [23:04:23]OFD Sender: To server: pG, [23:04:23]CommunicateWithHost lk.salyk.kg:30040 [23:04:23]ConnectInit lk.salyk.kg [23:04:23]written 0, free lines is 4095 [23:04:23]Connected sock=10 [23:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 16 F4 0D 01 4C 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 AD 01 00 00 F4 03 04 00 F7 DD 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 11 01 00 35 04 06 00 CA E4 95 B7 13 BB F4 59 3D 04 7B 63 C2 16 [23:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 E8 47 00 60 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 11 01 00 F4 03 04 00 99 87 16 67 B6 04 01 00 00 05 09 E1 28 02 8F 6A F4 [23:04:23]CommunicateWithHost err = 0 [23:04:23]CheckOFDResponse [23:04:23]1017 (14) - 77093643461234 [23:04:23]1041 (16) - 0000000000963346 [23:04:23]1040 (4) - 70039 [23:04:23]1012 (4) - 21.10.2024 16:55 [23:04:23]1206 (1) - 0 [23:04:23]OFD Sender: Remove packet 70039 [23:04:23]ProducePacketName [23:04:23]name=ofd_packets/00070039 [23:04:23]NVStorageDeleteData [23:04:23]Write to MH i2c: 01 00 00 34 2D 61 [23:04:23]Write i2c OK [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: 01 [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: 01 07 00 [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: 01 07 00 34 2D 00 00 00 00 00 F6 0C 6A [23:04:23]RasterBufferAndPrint [23:04:23]line [23:04:23]line [23:04:23]line [23:04:23]line [23:04:23]line [23:04:23]written 0, free lines is 3324 [23:04:23]MH_Cut [23:04:23]Write to MH i2c: D1 01 00 3B 2D 01 3A [23:04:23]Write i2c OK [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: D1 [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: D1 01 00 [23:04:23]MH_I2C_Read... [23:04:23]Read from MH i2c: D1 01 00 3B 2D 00 39 [23:04:23]Write to MH i2c: 01 00 00 3C 2D 69 [23:04:23]Write i2c OK [23:04:23]MH_I2C_Read... [23:04:23]OFD Sender: No OFD packet to send [23:04:24]*** Cut start [23:04:24]*** Partial cut [23:04:24]*** CUTSNS_PIN = 1 [23:04:24]*** CUTSNS_PIN = 0 [23:04:24]*** Brake cut motor [23:04:24]Read from MH i2c: 01 [23:04:24]MH_I2C_Read... [23:04:24]*** Stop cut motor [23:04:24]*** Cut end [23:04:24]Read from MH i2c: 01 07 00 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [23:04:24]process_action close_receipt done [23:04:24]requested_data is exist [23:04:24]produce_requested_data [23:04:24]requested_item fm.sn is exist - process it [23:04:24]wFMCommunicate request_size=4 [23:04:24]MH_SAM_APDU [23:04:24]CAPDU: 80 11 00 00 [23:04:24]Write to MH i2c: E2 08 00 3D 2D 80 11 00 00 00 00 00 00 E4 [23:04:24]Write i2c OK [23:04:24]MH_I2C_Read... [23:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:24]Read from MH i2c: E2 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: E2 17 00 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: E2 17 00 3D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [23:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:04:24]wFMCommunicate OK [23:04:24]requested_item fd.num is exist - process it [23:04:24]SAM_PROTO_GetFieldsCounters [23:04:24]wFMCommunicate request_size=4 [23:04:24]MH_SAM_APDU [23:04:24]CAPDU: 80 13 00 00 [23:04:24]Write to MH i2c: E2 08 00 3E 2D 80 13 00 00 00 00 00 00 E7 [23:04:24]Write i2c OK [23:04:24]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 62 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 62 00 3E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:25]wFMCommunicate OK [23:04:25]SAM_PROTO_GetFieldsCounters done [23:04:25]requested_item shift.num is exist - process it [23:04:25]requested_item shift.opened is exist - process it [23:04:25]req_shift_opened [23:04:25]FM_GetShiftState [23:04:25]SAM_PROTO_GetShiftState [23:04:25]wFMCommunicate request_size=4 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 13 01 00 [23:04:25]Write to MH i2c: E2 08 00 3F 2D 80 13 01 00 00 00 00 00 E9 [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 0E 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 0E 00 3F 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [23:04:25]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:04:25]wFMCommunicate OK [23:04:25]SAM_PROTO_GetShiftState done [23:04:25]FM_GetShiftState done [23:04:25]req_shift_opened done [23:04:25]requested_item shift.open_date is exist - process it [23:04:25]req_shift_open_date [23:04:25]req_shift_open_date done [23:04:25]produce_requested_data done [23:04:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70039,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:04:25]process_action_free close_receipt [23:04:25]json_value_free [23:04:25]json_value_free done [23:04:25]process_json_proto returns [23:04:25]Send response to host [23:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70039,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:04:25]free response buf [23:04:25]execute_script done [23:04:25]execute_script returns [23:04:25]free content buf [23:04:25]Sock 7.Close socket [23:04:25]Sock 7.Thread stoped [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:34]accept exits with 9 [23:04:34]New connection [23:04:34]New thread 3067026788 created [23:04:34]Thread 3067170148 joined [23:04:34]Waiting for new connection... [23:04:34] Sock 9.Parse request [23:04:34]Sock 9.Check first char [23:04:34]Sock 9.First char is OK [23:04:34]request: POST /json_proto HTTP/1.0 [23:04:34]Method: POST [23:04:34]URL: /json_proto [23:04:34]Method is POST - this is cgi request [23:04:34]url: /json_proto [23:04:34]query_string will be loaded in cgi processing [23:04:34]execute_cgi json_proto POST (null) [23:04:34]execute_cgi path=json_proto method=POST [23:04:34]POST find Content-Length [23:04:34]Host: 172.17.50.3:8080 [23:04:34]Content-Length: 679 [23:04:34]Content-Type: application/json [23:04:34] [23:04:34]POST finish read [23:04:34]Found Content-Length = 679 [23:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885809", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:34]execute_script... [23:04: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)2885809", "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" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:34]POST & json_proto [23:04:34]process_json_proto [23:04:34]json parsed OK: [23:04:34]protocol is kg_v1.0 [23:04:34]action value=close_receipt [23:04:34]process_action close_receipt [23:04:34]cmd_close_receipt [23:04:34]MH_GetDate [23:04:34]Write to MH i2c: F0 00 00 40 2D 5C [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: F0 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: F0 09 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: F0 09 00 40 2D 00 04 DE 16 67 6B 98 1E 66 4B [23:04:34]GetLastDocTimeStamp 1729551863 [23:04:34]current date 1729551876 [23:04:34]FM_GetShiftState [23:04:34]SAM_PROTO_GetShiftState [23:04:34]wFMCommunicate request_size=4 [23:04:34]MH_SAM_APDU [23:04:34]CAPDU: 80 13 01 00 [23:04:34]Write to MH i2c: E2 08 00 41 2D 80 13 01 00 00 00 00 00 EB [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:34]Read from MH i2c: E2 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 0E 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 0E 00 41 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 17 [23:04:34]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:04:34]wFMCommunicate OK [23:04:34]SAM_PROTO_GetShiftState done [23:04:34]FM_GetShiftState done [23:04:34]opened in 1729469703 [23:04:34]opened+sec_in_day 1729556103 [23:04:34]quantity*price = 70044 [23:04:34]sum+1 = 70045 [23:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 430 21.10.2024 23:04 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70040 ФПД: 190124881232471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70040&fm=190124881232471&tin=02508201610067®Number=0000000000156251&sum=70000 [23:04:35]StoreToDocumentArchive [23:04:35]shift 194 fd 70040 [23:04:35]save to /storage/0194/doc_00070040 [23:04:35]save last doc name /storage/0194/doc_00070040 to /storage/kkm_last_doc_name [23:04:35]save OK [23:04:35]Clear old archive folders... [23:04:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:35]tlvbuf is 01172F40 [23:04:35]SAM_PROTO_ClearQueue [23:04:35]wFMCommunicate request_size=4 [23:04:35]MH_SAM_APDU [23:04:35]CAPDU: 80 09 00 00 [23:04:35]Write to MH i2c: E2 08 00 4E 2D 80 09 00 00 00 00 00 00 ED [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [23:04:35]RAPDU: 90 00 [23:04:35]wFMCommunicate OK [23:04:35]SAM_PROTO_ClearQueue done [23:04:35]KKMCreateOFDPacket [23:04:35]OFDProtocolAddRootSTLVToBuf [23:04:35]FM_MakeSignedData [23:04:35]FM_MakeSignedData [23:04:35]SAM_PROTO_SignData [23:04:35]wFMCommunicate request_size=4 [23:04:35]MH_SAM_APDU [23:04:35]CAPDU: 80 0D 01 02 [23:04:35]Write to MH i2c: E2 08 00 4F 2D 80 0D 01 02 00 00 00 00 F5 [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [23:04:35]RAPDU: 90 00 [23:04:35]wFMCommunicate OK [23:04:35]wFMCommunicate request_size=255 [23:04:35]MH_SAM_APDU [23:04:35]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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 11 01 00 35 04 06 00 AC [23:04:35]Write to MH i2c: E2 02 01 50 2D 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 11 01 00 35 04 06 00 AC 00 00 B4 [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 50 2D 00 90 00 F1 [23:04:35]RAPDU: 90 00 [23:04:35]wFMCommunicate OK [23:04:35]wFMCommunicate request_size=10 [23:04:35]MH_SAM_APDU [23:04:35]CAPDU: 80 0D 02 02 05 EA E6 02 42 57 [23:04:35]Write to MH i2c: E2 0D 00 51 2D 80 0D 02 02 05 00 EA E6 02 42 57 00 00 6D [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 03 00 51 2D 00 90 00 F2 [23:04:35]RAPDU: 90 00 [23:04:35]wFMCommunicate OK [23:04:35]wFMCommunicate request_size=4 [23:04:35]MH_SAM_APDU [23:04:35]CAPDU: 80 0D 03 02 [23:04:35]Write to MH i2c: E2 08 00 52 2D 80 0D 03 02 00 00 00 00 FA [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 0B 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 0B 00 52 2D 00 55 36 43 3B 6D E6 70 D0 90 00 97 [23:04:35]RAPDU: 55 36 43 3B 6D E6 70 D0 90 00 [23:04:35]wFMCommunicate OK [23:04:35]SAM_PROTO_SignData done [23:04:35]FM_MakeSignedData done [23:04:35]CreateOFDProtocolMessage [23:04:35]wFMCommunicate request_size=4 [23:04:35]MH_SAM_APDU [23:04:35]CAPDU: 80 11 00 00 [23:04:35]Write to MH i2c: E2 08 00 53 2D 80 11 00 00 00 00 00 00 FA [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:35]Read from MH i2c: E2 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 17 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: E2 17 00 53 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [23:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:04:35]wFMCommunicate OK [23:04:35]CreateOFDProtocolMessage done [23:04:35]OFDSenderStorePacket 70040 [23:04:35]StoreOFDPacket docnum=70040 [23:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 A5 07 01 53 97 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 11 01 00 35 04 06 00 AC EA E6 02 42 57 55 36 43 3B 6D E6 70 D0 [23:04:35]CheckFolder [23:04:35]dirname=/storage/ofd_packets [23:04:35]CheckFolder done [23:04:35]ProducePacketName [23:04:35]name=ofd_packets/00070040 [23:04:35]NVStorageSaveData ofd_packets/00070040 [23:04:35]File name is /storage/ofd_packets/00070040 [23:04:35]Write 301 bytes [23:04:35]NVStorageSaveData done [23:04:35]OFDSenderStorePacket done [23:04:35]KKMCreateOFDPacket done [23:04:35]NVStorageSaveData kkm_last_timestamp [23:04:35]File name is /storage/kkm_last_timestamp [23:04:35]Write 4 bytes [23:04:35]NVStorageSaveData done [23:04:35]ExternCall_PrintAddStr [23:04:35]wPrintStart [23:04:35]Write to MH i2c: 01 00 00 54 2D 81 [23:04:35]Write i2c OK [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: 01 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: 01 07 00 [23:04:35]MH_I2C_Read... [23:04:35]Read from MH i2c: 01 07 00 54 2D 00 00 00 00 00 FF 0F 96 [23:04:35]RasterBufferAndPrint [23:04:35]line Счет N : (1)2885809 [23:04:35]line ИНН: 02508201610067 [23:04:35]line Контрольно-Кассовый Чек [23:04:35]line ПРОДАЖА [23:04:35]line ТРК (МРК, ГНК) : 32 [23:04:35]line Товар: 2710124130 [23:04:35]line Аи-92-К-5 [23:04:35]line 10.470 * 66.90 [23:04:35]line = 700.44 [23:04:35]line НДС 12% НСП 1% [23:04:35]line > о реализуемом товаре [23:04:35]line ОКРУГЛЕНИЕ: -0.44 [23:04:35]line ИТОГО: 700.00 [23:04:35]line Внесено: 700.00 [23:04:35]line СДАЧА: 0.00 [23:04:35]line НСП 1% : 6.20 [23:04:35]line НДС 12% : 74.38 [23:04:35]line Наличными: 700.00 [23:04:35]line Безнал.: 0.00 [23:04:35]line Место: АЗС № 85 "Партнер Нефть" [23:04:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:04:35]line СНО: Общий режим [23:04:35]line Чек 430 21.10.2024 23:04 [23:04:35]line Смена: 194 ФФД: 1.0 [23:04:35]line ЗНМ: 0300000167 [23:04:35]line РНМ: 0000000000156251 [23:04:35]line Версия ККМ: v1.0 [23:04:35]line ФМ: 0000000000963346 [23:04:35]line ФД: 70040 [23:04:35]line ФПД: 190124881232471 [23:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70040&fm=190124881232471&tin=02508201610067®Number=0000000000156251&sum=70000 [23:04:36]OFD Sender: Processing packet 70040 [packets to send 18, broken 17] [23:04:36]ProducePacketName [23:04:36]name=ofd_packets/00070040 [23:04:36]OFD Sender: To server: pG, [23:04:36]CommunicateWithHost lk.salyk.kg:30040 [23:04:36]ConnectInit lk.salyk.kg [23:04:36]written 0, free lines is 4095 [23:04:36]Connected sock=10 [23:04:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 A5 07 01 53 97 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 11 01 00 35 04 06 00 AC EA E6 02 42 57 55 36 43 3B 6D E6 70 D0 [23:04:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FC 76 47 00 86 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 39 36 33 33 34 36 10 04 04 00 98 11 01 00 F4 03 04 00 A6 87 16 67 B6 04 01 00 00 3B 3F 30 6A D4 7C F5 D5 [23:04:36]CommunicateWithHost err = 0 [23:04:36]CheckOFDResponse [23:04:36]1017 (14) - 77093643461234 [23:04:36]1041 (16) - 0000000000963346 [23:04:36]1040 (4) - 70040 [23:04:36]1012 (4) - 21.10.2024 16:56 [23:04:36]1206 (1) - 0 [23:04:36]OFD Sender: Remove packet 70040 [23:04:36]ProducePacketName [23:04:36]name=ofd_packets/00070040 [23:04:36]NVStorageDeleteData [23:04:36]Write to MH i2c: 01 00 00 7F 2D AC [23:04:36]Write i2c OK [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: 01 [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: 01 07 00 [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 FE 0C BD [23:04:36]RasterBufferAndPrint [23:04:36]line [23:04:36]line [23:04:36]line [23:04:36]line [23:04:36]line [23:04:36]written 0, free lines is 3335 [23:04:36]MH_Cut [23:04:36]Write to MH i2c: D1 01 00 86 2D 01 85 [23:04:36]Write i2c OK [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: D1 [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: D1 01 00 [23:04:36]MH_I2C_Read... [23:04:36]Read from MH i2c: D1 01 00 86 2D 00 84 [23:04:36]Write to MH i2c: 01 00 00 87 2D B4 [23:04:36]Write i2c OK [23:04:36]MH_I2C_Read... [23:04:37]OFD Sender: No OFD packet to send [23:04:37]*** Cut start [23:04:37]*** Partial cut [23:04:37]*** CUTSNS_PIN = 1 [23:04:37]*** CUTSNS_PIN = 0 [23:04:37]*** Brake cut motor [23:04:37]Read from MH i2c: 01 [23:04:37]MH_I2C_Read... [23:04:37]*** Stop cut motor [23:04:37]*** Cut end [23:04:37]Read from MH i2c: 01 07 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 FF 0F C9 [23:04:37]process_action close_receipt done [23:04:37]requested_data is exist [23:04:37]produce_requested_data [23:04:37]requested_item fm.sn is exist - process it [23:04:37]wFMCommunicate request_size=4 [23:04:37]MH_SAM_APDU [23:04:37]CAPDU: 80 11 00 00 [23:04:37]Write to MH i2c: E2 08 00 88 2D 80 11 00 00 00 00 00 00 2F [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 17 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 17 00 88 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [23:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:04:38]wFMCommunicate OK [23:04:38]requested_item fd.num is exist - process it [23:04:38]SAM_PROTO_GetFieldsCounters [23:04:38]wFMCommunicate request_size=4 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 13 00 00 [23:04:38]Write to MH i2c: E2 08 00 89 2D 80 13 00 00 00 00 00 00 32 [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 62 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 62 00 89 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:04:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:38]wFMCommunicate OK [23:04:38]SAM_PROTO_GetFieldsCounters done [23:04:38]requested_item shift.num is exist - process it [23:04:38]requested_item shift.opened is exist - process it [23:04:38]req_shift_opened [23:04:38]FM_GetShiftState [23:04:38]SAM_PROTO_GetShiftState [23:04:38]wFMCommunicate request_size=4 [23:04:38]MH_SAM_APDU [23:04:38]CAPDU: 80 13 01 00 [23:04:38]Write to MH i2c: E2 08 00 8A 2D 80 13 01 00 00 00 00 00 34 [23:04:38]Write i2c OK [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 [23:04:38]MH_I2C_Read... [23:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:38]Read from MH i2c: E2 0E 00 [23:04:38]MH_I2C_Read... [23:04:38]Read from MH i2c: E2 0E 00 8A 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [23:04:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:04:38]wFMCommunicate OK [23:04:38]SAM_PROTO_GetShiftState done [23:04:38]FM_GetShiftState done [23:04:38]req_shift_opened done [23:04:38]requested_item shift.open_date is exist - process it [23:04:38]req_shift_open_date [23:04:38]req_shift_open_date done [23:04:38]produce_requested_data done [23:04:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70040,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:04:38]process_action_free close_receipt [23:04:38]json_value_free [23:04:38]json_value_free done [23:04:38]process_json_proto returns [23:04:38]Send response to host [23:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70040,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:04:38]free response buf [23:04:38]execute_script done [23:04:38]execute_script returns [23:04:38]free content buf [23:04:38]Sock 9.Close socket [23:04:38]Sock 9.Thread stoped [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:28]accept exits with 7 [23:07:28]New connection [23:07:28]New thread 3067170148 created [23:07:28]Thread 3067026788 joined [23:07:28]Waiting for new connection... [23:07:28] Sock 7.Parse request [23:07:28]Sock 7.Check first char [23:07:28]Sock 7.First char is OK [23:07:28]request: POST /json_proto HTTP/1.0 [23:07:28]Method: POST [23:07:28]URL: /json_proto [23:07:28]Method is POST - this is cgi request [23:07:28]url: /json_proto [23:07:28]query_string will be loaded in cgi processing [23:07:28]execute_cgi json_proto POST (null) [23:07:28]execute_cgi path=json_proto method=POST [23:07:28]POST find Content-Length [23:07:28]Host: 172.17.50.3:8080 [23:07:28]Content-Length: 689 [23:07:28]Content-Type: application/json [23:07:28] [23:07:28]POST finish read [23:07:28]Found Content-Length = 689 [23:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.860, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:28]execute_script... [23:07:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.860, "sum" : 2999.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2999.00, "payments": [ { "type": 0, "sum" : 2999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:28]POST & json_proto [23:07:28]process_json_proto [23:07:28]json parsed OK: [23:07:28]protocol is kg_v1.0 [23:07:28]action value=close_receipt [23:07:28]process_action close_receipt [23:07:28]cmd_close_receipt [23:07:28]MH_GetDate [23:07:28]Write to MH i2c: F0 00 00 8B 2D A7 [23:07:28]Write i2c OK [23:07:28]MH_I2C_Read... [23:07:28]Read from MH i2c: F0 [23:07:28]MH_I2C_Read... [23:07:28]Read from MH i2c: F0 09 00 [23:07:28]MH_I2C_Read... [23:07:28]Read from MH i2c: F0 09 00 8B 2D 00 B2 DE 16 67 6B 98 1E 66 44 [23:07:28]GetLastDocTimeStamp 1729551876 [23:07:28]current date 1729552050 [23:07:28]FM_GetShiftState [23:07:28]SAM_PROTO_GetShiftState [23:07:28]wFMCommunicate request_size=4 [23:07:28]MH_SAM_APDU [23:07:28]CAPDU: 80 13 01 00 [23:07:28]Write to MH i2c: E2 08 00 8C 2D 80 13 01 00 00 00 00 00 36 [23:07:28]Write i2c OK [23:07:28]MH_I2C_Read... [23:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:28]Read from MH i2c: E2 [23:07:28]MH_I2C_Read... [23:07:28]Read from MH i2c: E2 0E 00 [23:07:28]MH_I2C_Read... [23:07:28]Read from MH i2c: E2 0E 00 8C 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 62 [23:07:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:07:28]wFMCommunicate OK [23:07:28]SAM_PROTO_GetShiftState done [23:07:28]FM_GetShiftState done [23:07:28]opened in 1729469703 [23:07:28]opened+sec_in_day 1729556103 [23:07:28]quantity*price = 299999 [23:07:28]sum+1 = 300000 [23:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2999.00 Внесено: 6000.00 СДАЧА: 3001.00 НСП 1% : 26.55 НДС 12% : 318.58 Наличными: 2999.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 431 21.10.2024 23:07 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70041 ФПД: 253175932542788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70041&fm=253175932542788&tin=02508201610067®Number=0000000000156251&sum=299900 [23:07:29]StoreToDocumentArchive [23:07:29]shift 194 fd 70041 [23:07:29]save to /storage/0194/doc_00070041 [23:07:29]save last doc name /storage/0194/doc_00070041 to /storage/kkm_last_doc_name [23:07:29]save OK [23:07:29]Clear old archive folders... [23:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:07:29]tlvbuf is 011A1A10 [23:07:29]SAM_PROTO_ClearQueue [23:07:29]wFMCommunicate request_size=4 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 09 00 00 [23:07:29]Write to MH i2c: E2 08 00 99 2D 80 09 00 00 00 00 00 00 38 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [23:07:29]RAPDU: 90 00 [23:07:29]wFMCommunicate OK [23:07:29]SAM_PROTO_ClearQueue done [23:07:29]KKMCreateOFDPacket [23:07:29]OFDProtocolAddRootSTLVToBuf [23:07:29]FM_MakeSignedData [23:07:29]FM_MakeSignedData [23:07:29]SAM_PROTO_SignData [23:07:29]wFMCommunicate request_size=4 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 0D 01 02 [23:07:29]Write to MH i2c: E2 08 00 9A 2D 80 0D 01 02 00 00 00 00 40 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [23:07:29]RAPDU: 90 00 [23:07:29]wFMCommunicate OK [23:07:29]wFMCommunicate request_size=255 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 CC 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 AF 01 00 00 F4 03 04 00 B2 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 11 01 [23:07:29]Write to MH i2c: E2 02 01 9B 2D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 CC 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 AF 01 00 00 F4 03 04 00 B2 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 11 01 00 00 76 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [23:07:29]RAPDU: 90 00 [23:07:29]wFMCommunicate OK [23:07:29]wFMCommunicate request_size=16 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 43 1D 86 5F 44 [23:07:29]Write to MH i2c: E2 13 00 9C 2D 80 0D 02 02 0B 00 00 35 04 06 00 E6 43 1D 86 5F 44 00 00 07 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 03 00 9C 2D 00 90 00 3D [23:07:29]RAPDU: 90 00 [23:07:29]wFMCommunicate OK [23:07:29]wFMCommunicate request_size=4 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 0D 03 02 [23:07:29]Write to MH i2c: E2 08 00 9D 2D 80 0D 03 02 00 00 00 00 45 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 0B 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 0B 00 9D 2D 00 C5 FE 70 73 55 97 25 45 90 00 42 [23:07:29]RAPDU: C5 FE 70 73 55 97 25 45 90 00 [23:07:29]wFMCommunicate OK [23:07:29]SAM_PROTO_SignData done [23:07:29]FM_MakeSignedData done [23:07:29]CreateOFDProtocolMessage [23:07:29]wFMCommunicate request_size=4 [23:07:29]MH_SAM_APDU [23:07:29]CAPDU: 80 11 00 00 [23:07:29]Write to MH i2c: E2 08 00 9E 2D 80 11 00 00 00 00 00 00 45 [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:29]Read from MH i2c: E2 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 17 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: E2 17 00 9E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 97 [23:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:07:29]wFMCommunicate OK [23:07:29]CreateOFDProtocolMessage done [23:07:29]OFDSenderStorePacket 70041 [23:07:29]StoreOFDPacket docnum=70041 [23:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C2 EC 0D 01 AA 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 CC 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 AF 01 00 00 F4 03 04 00 B2 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 11 01 00 35 04 06 00 E6 43 1D 86 5F 44 C5 FE 70 73 55 97 25 45 [23:07:29]CheckFolder [23:07:29]dirname=/storage/ofd_packets [23:07:29]CheckFolder done [23:07:29]ProducePacketName [23:07:29]name=ofd_packets/00070041 [23:07:29]NVStorageSaveData ofd_packets/00070041 [23:07:29]File name is /storage/ofd_packets/00070041 [23:07:29]Write 307 bytes [23:07:29]NVStorageSaveData done [23:07:29]OFDSenderStorePacket done [23:07:29]KKMCreateOFDPacket done [23:07:29]NVStorageSaveData kkm_last_timestamp [23:07:29]File name is /storage/kkm_last_timestamp [23:07:29]Write 4 bytes [23:07:29]NVStorageSaveData done [23:07:29]ExternCall_PrintAddStr [23:07:29]wPrintStart [23:07:29]Write to MH i2c: 01 00 00 9F 2D CC [23:07:29]Write i2c OK [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: 01 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: 01 07 00 [23:07:29]MH_I2C_Read... [23:07:29]Read from MH i2c: 01 07 00 9F 2D 00 00 00 00 00 FF 0F E1 [23:07:29]RasterBufferAndPrint [23:07:29]line Счет N : (1)2885808 [23:07:29]line ИНН: 02508201610067 [23:07:29]line Контрольно-Кассовый Чек [23:07:29]line ПРОДАЖА [23:07:29]line ТРК (МРК, ГНК) : 11 [23:07:29]line Товар: 2710194240 [23:07:29]line D-ENERGY Дт-К-2 [23:07:29]line 38.860 * 77.20 [23:07:29]line = 2999.99 [23:07:29]line НДС 12% НСП 1% [23:07:29]line > о реализуемом товаре [23:07:29]line ОКРУГЛЕНИЕ: -0.99 [23:07:29]line ИТОГО: 2999.00 [23:07:29]line Внесено: 6000.00 [23:07:29]line СДАЧА: 3001.00 [23:07:29]line НСП 1% : 26.55 [23:07:29]line НДС 12% : 318.58 [23:07:29]line Наличными: 2999.00 [23:07:29]line Безнал.: 0.00 [23:07:29]line Место: АЗС № 85 "Партнер Нефть" [23:07:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:07:29]line СНО: Общий режим [23:07:29]line Чек 431 21.10.2024 23:07 [23:07:29]line Смена: 194 ФФД: 1.0 [23:07:29]line ЗНМ: 0300000167 [23:07:29]line РНМ: 0000000000156251 [23:07:29]line Версия ККМ: v1.0 [23:07:29]line ФМ: 0000000000963346 [23:07:29]line ФД: 70041 [23:07:29]line ФПД: 253175932542788 [23:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230730&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70041&fm=253175932542788&tin=02508201610067®Number=0000000000156251&sum=299900 [23:07:30]OFD Sender: Processing packet 70041 [packets to send 18, broken 17] [23:07:30]ProducePacketName [23:07:30]name=ofd_packets/00070041 [23:07:30]OFD Sender: To server: pG, [23:07:30]CommunicateWithHost lk.salyk.kg:30040 [23:07:30]ConnectInit lk.salyk.kg [23:07:30]written 0, free lines is 4095 [23:07:30]Connected sock=10 [23:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C2 EC 0D 01 AA 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 CC 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 72 7C 00 00 00 00 07 04 06 00 7C 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 AF 01 00 00 F4 03 04 00 B2 DE 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 11 01 00 35 04 06 00 E6 43 1D 86 5F 44 C5 FE 70 73 55 97 25 45 [23:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 8A 47 00 A0 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 11 01 00 F4 03 04 00 54 88 16 67 B6 04 01 00 00 B3 48 42 0C 7C 21 41 ED [23:07:30]CommunicateWithHost err = 0 [23:07:30]CheckOFDResponse [23:07:30]1017 (14) - 77093643461234 [23:07:30]1041 (16) - 0000000000963346 [23:07:30]1040 (4) - 70041 [23:07:30]1012 (4) - 21.10.2024 16:59 [23:07:30]1206 (1) - 0 [23:07:30]OFD Sender: Remove packet 70041 [23:07:30]ProducePacketName [23:07:30]name=ofd_packets/00070041 [23:07:30]NVStorageDeleteData [23:07:30]Write to MH i2c: 01 00 00 CA 2D F7 [23:07:30]Write i2c OK [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: 01 [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: 01 07 00 [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: 01 07 00 CA 2D 00 00 00 00 00 FF 0C 09 [23:07:30]RasterBufferAndPrint [23:07:30]line [23:07:30]line [23:07:30]line [23:07:30]line [23:07:30]line [23:07:30]written 0, free lines is 3337 [23:07:30]MH_Cut [23:07:30]Write to MH i2c: D1 01 00 D1 2D 01 D0 [23:07:30]Write i2c OK [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: D1 [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: D1 01 00 [23:07:30]MH_I2C_Read... [23:07:30]Read from MH i2c: D1 01 00 D1 2D 00 CF [23:07:30]Write to MH i2c: 01 00 00 D2 2D FF [23:07:30]Write i2c OK [23:07:30]MH_I2C_Read... [23:07:30]OFD Sender: No OFD packet to send [23:07:31]*** Cut start [23:07:31]*** Partial cut [23:07:31]*** CUTSNS_PIN = 1 [23:07:31]*** CUTSNS_PIN = 0 [23:07:31]*** Brake cut motor [23:07:31]Read from MH i2c: 01 [23:07:31]MH_I2C_Read... [23:07:31]*** Stop cut motor [23:07:31]*** Cut end [23:07:31]Read from MH i2c: 01 07 00 [23:07:31]MH_I2C_Read... [23:07:31]Read from MH i2c: 01 07 00 D2 2D 00 00 00 00 00 FF 0F 14 [23:07:31]process_action close_receipt done [23:07:31]requested_data is exist [23:07:31]produce_requested_data [23:07:31]requested_item fm.sn is exist - process it [23:07:31]wFMCommunicate request_size=4 [23:07:31]MH_SAM_APDU [23:07:31]CAPDU: 80 11 00 00 [23:07:31]Write to MH i2c: E2 08 00 D3 2D 80 11 00 00 00 00 00 00 7A [23:07:31]Write i2c OK [23:07:31]MH_I2C_Read... [23:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:31]Read from MH i2c: E2 [23:07:31]MH_I2C_Read... [23:07:31]Read from MH i2c: E2 17 00 [23:07:31]MH_I2C_Read... [23:07:31]Read from MH i2c: E2 17 00 D3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [23:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:07:31]wFMCommunicate OK [23:07:31]requested_item fd.num is exist - process it [23:07:31]SAM_PROTO_GetFieldsCounters [23:07:31]wFMCommunicate request_size=4 [23:07:31]MH_SAM_APDU [23:07:31]CAPDU: 80 13 00 00 [23:07:31]Write to MH i2c: E2 08 00 D4 2D 80 13 00 00 00 00 00 00 7D [23:07:31]Write i2c OK [23:07:31]MH_I2C_Read... [23:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:32]Read from MH i2c: E2 [23:07:32]MH_I2C_Read... [23:07:32]Read from MH i2c: E2 62 00 [23:07:32]MH_I2C_Read... [23:07:32]Read from MH i2c: E2 62 00 D4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:32]wFMCommunicate OK [23:07:32]SAM_PROTO_GetFieldsCounters done [23:07:32]requested_item shift.num is exist - process it [23:07:32]requested_item shift.opened is exist - process it [23:07:32]req_shift_opened [23:07:32]FM_GetShiftState [23:07:32]SAM_PROTO_GetShiftState [23:07:32]wFMCommunicate request_size=4 [23:07:32]MH_SAM_APDU [23:07:32]CAPDU: 80 13 01 00 [23:07:32]Write to MH i2c: E2 08 00 D5 2D 80 13 01 00 00 00 00 00 7F [23:07:32]Write i2c OK [23:07:32]MH_I2C_Read... [23:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:32]Read from MH i2c: E2 [23:07:32]MH_I2C_Read... [23:07:32]Read from MH i2c: E2 0E 00 [23:07:32]MH_I2C_Read... [23:07:32]Read from MH i2c: E2 0E 00 D5 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [23:07:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:07:32]wFMCommunicate OK [23:07:32]SAM_PROTO_GetShiftState done [23:07:32]FM_GetShiftState done [23:07:32]req_shift_opened done [23:07:32]requested_item shift.open_date is exist - process it [23:07:32]req_shift_open_date [23:07:32]req_shift_open_date done [23:07:32]produce_requested_data done [23:07:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70041,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:07:32]process_action_free close_receipt [23:07:32]json_value_free [23:07:32]json_value_free done [23:07:32]process_json_proto returns [23:07:32]Send response to host [23:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70041,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:07:32]free response buf [23:07:32]execute_script done [23:07:32]execute_script returns [23:07:32]free content buf [23:07:32]Sock 7.Close socket [23:07:32]Sock 7.Thread stoped [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:13:58]accept exits with 9 [23:13:58]New connection [23:13:58]New thread 3067026788 created [23:13:58]Thread 3067170148 joined [23:13:58]Waiting for new connection... [23:13:58] Sock 9.Parse request [23:13:58]Sock 9.Check first char [23:13:58]Sock 9.First char is OK [23:13:58]request: POST /json_proto HTTP/1.0 [23:13:58]Method: POST [23:13:58]URL: /json_proto [23:13:58]Method is POST - this is cgi request [23:13:58]url: /json_proto [23:13:58]query_string will be loaded in cgi processing [23:13:58]execute_cgi json_proto POST (null) [23:13:58]execute_cgi path=json_proto method=POST [23:13:58]POST find Content-Length [23:13:58]Host: 172.17.50.3:8080 [23:13:58]Content-Length: 681 [23:13:58]Content-Type: application/json [23:13:58] [23:13:58]POST finish read [23:13:58]Found Content-Length = 681 [23:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.000, "sum" : 350.10, "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" ] } } [23:13:58]execute_script... [23:13: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)2885810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 9.000, "sum" : 350.10, "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" ] } } [23:13:58]POST & json_proto [23:13:58]process_json_proto [23:13:58]json parsed OK: [23:13:58]protocol is kg_v1.0 [23:13:58]action value=close_receipt [23:13:58]process_action close_receipt [23:13:58]cmd_close_receipt [23:13:58]MH_GetDate [23:13:58]Write to MH i2c: F0 00 00 D6 2D F2 [23:13:58]Write i2c OK [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 09 00 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 09 00 D6 2D 00 38 E0 16 67 6B 98 1E 66 17 [23:13:58]GetLastDocTimeStamp 1729552050 [23:13:58]current date 1729552440 [23:13:58]FM_GetShiftState [23:13:58]SAM_PROTO_GetShiftState [23:13:58]wFMCommunicate request_size=4 [23:13:58]MH_SAM_APDU [23:13:58]CAPDU: 80 13 01 00 [23:13:58]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [23:13:58]Write i2c OK [23:13:58]MH_I2C_Read... [23:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:58]Read from MH i2c: E2 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: E2 0E 00 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AD [23:13:58]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:13:58]wFMCommunicate OK [23:13:58]SAM_PROTO_GetShiftState done [23:13:58]FM_GetShiftState done [23:13:58]opened in 1729469703 [23:13:58]opened+sec_in_day 1729556103 [23:13:58]quantity*price = 35010 [23:13:58]sum+1 = 35011 [23:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.18 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 432 21.10.2024 23:14 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70042 ФПД: 166084931274133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70042&fm=166084931274133&tin=02508201610067®Number=0000000000156251&sum=35000 [23:13:59]StoreToDocumentArchive [23:13:59]shift 194 fd 70042 [23:13:59]save to /storage/0194/doc_00070042 [23:13:59]save last doc name /storage/0194/doc_00070042 to /storage/kkm_last_doc_name [23:13:59]save OK [23:13:59]Clear old archive folders... [23:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:13:59]tlvbuf is 01189920 [23:13:59]SAM_PROTO_ClearQueue [23:13:59]wFMCommunicate request_size=4 [23:13:59]MH_SAM_APDU [23:13:59]CAPDU: 80 09 00 00 [23:13:59]Write to MH i2c: E2 08 00 E4 2D 80 09 00 00 00 00 00 00 83 [23:13:59]Write i2c OK [23:13:59]MH_I2C_Read... [23:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:59]Read from MH i2c: E2 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 03 00 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [23:13:59]RAPDU: 90 00 [23:13:59]wFMCommunicate OK [23:13:59]SAM_PROTO_ClearQueue done [23:13:59]KKMCreateOFDPacket [23:13:59]OFDProtocolAddRootSTLVToBuf [23:13:59]FM_MakeSignedData [23:13:59]FM_MakeSignedData [23:13:59]SAM_PROTO_SignData [23:13:59]wFMCommunicate request_size=4 [23:13:59]MH_SAM_APDU [23:13:59]CAPDU: 80 0D 01 02 [23:13:59]Write to MH i2c: E2 08 00 E5 2D 80 0D 01 02 00 00 00 00 8B [23:13:59]Write i2c OK [23:13:59]MH_I2C_Read... [23:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:59]Read from MH i2c: E2 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 03 00 [23:13:59]MH_I2C_Read... [23:13:59]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [23:13:59]RAPDU: 90 00 [23:13:59]wFMCommunicate OK [23:13:59]wFMCommunicate request_size=255 [23:13:59]MH_SAM_APDU [23:13:59]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 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 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 86 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 B0 01 00 00 F4 03 04 00 38 E0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 11 01 00 35 04 06 00 97 0D [23:13:59]Write to MH i2c: E2 02 01 E6 2D 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 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 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 86 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 B0 01 00 00 F4 03 04 00 38 E0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 11 01 00 35 04 06 00 97 0D 00 00 B6 [23:13:59]Write i2c OK [23:13:59]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=9 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 02 02 04 A9 54 C5 95 [23:14:00]Write to MH i2c: E2 0C 00 E7 2D 80 0D 02 02 04 00 A9 54 C5 95 00 00 ED [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 03 02 [23:14:00]Write to MH i2c: E2 08 00 E8 2D 80 0D 03 02 00 00 00 00 90 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 0B 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 0B 00 E8 2D 00 4F 6E 4B E6 0F 87 64 7F 90 00 F8 [23:14:00]RAPDU: 4F 6E 4B E6 0F 87 64 7F 90 00 [23:14:00]wFMCommunicate OK [23:14:00]SAM_PROTO_SignData done [23:14:00]FM_MakeSignedData done [23:14:00]CreateOFDProtocolMessage [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 11 00 00 [23:14:00]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 17 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [23:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:14:00]wFMCommunicate OK [23:14:00]CreateOFDProtocolMessage done [23:14:00]OFDSenderStorePacket 70042 [23:14:00]StoreOFDPacket docnum=70042 [23:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AF 35 06 01 2A B8 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 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 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 86 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 B0 01 00 00 F4 03 04 00 38 E0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 11 01 00 35 04 06 00 97 0D A9 54 C5 95 4F 6E 4B E6 0F 87 64 7F [23:14:00]CheckFolder [23:14:00]dirname=/storage/ofd_packets [23:14:00]CheckFolder done [23:14:00]ProducePacketName [23:14:00]name=ofd_packets/00070042 [23:14:00]NVStorageSaveData ofd_packets/00070042 [23:14:00]File name is /storage/ofd_packets/00070042 [23:14:00]Write 300 bytes [23:14:00]NVStorageSaveData done [23:14:00]OFDSenderStorePacket done [23:14:00]KKMCreateOFDPacket done [23:14:00]NVStorageSaveData kkm_last_timestamp [23:14:00]File name is /storage/kkm_last_timestamp [23:14:00]Write 4 bytes [23:14:00]NVStorageSaveData done [23:14:00]ExternCall_PrintAddStr [23:14:00]wPrintStart [23:14:00]Write to MH i2c: 01 00 00 EA 2D 17 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 EA 2D 00 00 00 00 00 FF 0F 2C [23:14:00]RasterBufferAndPrint [23:14:00]line Счет N : (1)2885810 [23:14:00]line ИНН: 02508201610067 [23:14:00]line Контрольно-Кассовый Чек [23:14:00]line ПРОДАЖА [23:14:00]line ТРК (МРК, ГНК) : 71 [23:14:00]line Товар: 2711129700 [23:14:00]line ГАЗ-К-3 [23:14:00]line 9.000 * 38.90 [23:14:00]line = 350.10 [23:14:00]line НДС 12% НСП 1% [23:14:00]line > о реализуемом товаре [23:14:00]line ОКРУГЛЕНИЕ: -0.10 [23:14:00]line ИТОГО: 350.00 [23:14:00]line Внесено: 350.00 [23:14:00]line СДАЧА: 0.00 [23:14:00]line НСП 1% : 3.10 [23:14:00]line НДС 12% : 37.18 [23:14:00]line Наличными: 350.00 [23:14:00]line Безнал.: 0.00 [23:14:00]line Место: АЗС № 85 "Партнер Нефть" [23:14:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:14:00]line СНО: Общий режим [23:14:00]line Чек 432 21.10.2024 23:14 [23:14:00]line Смена: 194 ФФД: 1.0 [23:14:00]line ЗНМ: 0300000167 [23:14:00]line РНМ: 0000000000156251 [23:14:00]line Версия ККМ: v1.0 [23:14:00]line ФМ: 0000000000963346 [23:14:00]line ФД: 70042 [23:14:00]line ФПД: 166084931274133 [23:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231400&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70042&fm=166084931274133&tin=02508201610067®Number=0000000000156251&sum=35000 [23:14:00]OFD Sender: Processing packet 70042 [packets to send 18, broken 17] [23:14:00]ProducePacketName [23:14:00]name=ofd_packets/00070042 [23:14:00]OFD Sender: To server: pG, [23:14:00]CommunicateWithHost lk.salyk.kg:30040 [23:14:00]ConnectInit lk.salyk.kg [23:14:00]written 0, free lines is 4095 [23:14:00]Connected sock=10 [23:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AF 35 06 01 2A B8 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 33 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C2 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 86 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 B0 01 00 00 F4 03 04 00 38 E0 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 11 01 00 35 04 06 00 97 0D A9 54 C5 95 4F 6E 4B E6 0F 87 64 7F [23:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FF 94 47 00 18 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 39 36 33 33 34 36 10 04 04 00 9A 11 01 00 F4 03 04 00 DB 89 16 67 B6 04 01 00 00 D7 A1 0A 81 9D B8 D1 28 [23:14:00]CommunicateWithHost err = 0 [23:14:00]CheckOFDResponse [23:14:00]1017 (14) - 77093643461234 [23:14:00]1041 (16) - 0000000000963346 [23:14:00]1040 (4) - 70042 [23:14:00]1012 (4) - 21.10.2024 17:05 [23:14:00]1206 (1) - 0 [23:14:00]OFD Sender: Remove packet 70042 [23:14:00]ProducePacketName [23:14:00]name=ofd_packets/00070042 [23:14:00]NVStorageDeleteData [23:14:00]Write to MH i2c: 01 00 00 15 2E 43 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 15 2E 00 00 00 00 00 F6 0C 4C [23:14:00]RasterBufferAndPrint [23:14:00]line [23:14:00]line [23:14:00]line [23:14:00]line [23:14:00]line [23:14:00]written 0, free lines is 3328 [23:14:01]MH_Cut [23:14:01]Write to MH i2c: D1 01 00 1C 2E 01 1C [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 01 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 01 00 1C 2E 00 1B [23:14:01]Write to MH i2c: 01 00 00 1D 2E 4B [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]OFD Sender: No OFD packet to send [23:14:01]*** Cut start [23:14:01]*** Partial cut [23:14:01]*** CUTSNS_PIN = 1 [23:14:01]*** CUTSNS_PIN = 0 [23:14:01]*** Brake cut motor [23:14:02]Read from MH i2c: 01 [23:14:02]MH_I2C_Read... [23:14:02]*** Stop cut motor [23:14:02]*** Cut end [23:14:02]Read from MH i2c: 01 07 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: 01 07 00 1D 2E 00 00 00 00 00 FF 0F 60 [23:14:02]process_action close_receipt done [23:14:02]requested_data is exist [23:14:02]produce_requested_data [23:14:02]requested_item fm.sn is exist - process it [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 11 00 00 [23:14:02]Write to MH i2c: E2 08 00 1E 2E 80 11 00 00 00 00 00 00 C6 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 17 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 17 00 1E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [23:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:14:02]wFMCommunicate OK [23:14:02]requested_item fd.num is exist - process it [23:14:02]SAM_PROTO_GetFieldsCounters [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 13 00 00 [23:14:02]Write to MH i2c: E2 08 00 1F 2E 80 13 00 00 00 00 00 00 C9 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 62 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 62 00 1F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [23:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:02]wFMCommunicate OK [23:14:02]SAM_PROTO_GetFieldsCounters done [23:14:02]requested_item shift.num is exist - process it [23:14:02]requested_item shift.opened is exist - process it [23:14:02]req_shift_opened [23:14:02]FM_GetShiftState [23:14:02]SAM_PROTO_GetShiftState [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 13 01 00 [23:14:02]Write to MH i2c: E2 08 00 20 2E 80 13 01 00 00 00 00 00 CB [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 20 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [23:14:02]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:14:02]wFMCommunicate OK [23:14:02]SAM_PROTO_GetShiftState done [23:14:02]FM_GetShiftState done [23:14:02]req_shift_opened done [23:14:02]requested_item shift.open_date is exist - process it [23:14:02]req_shift_open_date [23:14:02]req_shift_open_date done [23:14:02]produce_requested_data done [23:14:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70042,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:14:02]process_action_free close_receipt [23:14:02]json_value_free [23:14:02]json_value_free done [23:14:02]process_json_proto returns [23:14:02]Send response to host [23:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70042,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:14:02]free response buf [23:14:02]execute_script done [23:14:02]execute_script returns [23:14:02]free content buf [23:14:02]Sock 9.Close socket [23:14:02]Sock 9.Thread stoped [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:42]accept exits with 7 [23:17:42]New connection [23:17:42]New thread 3067170148 created [23:17:42] Sock 7.Parse request [23:17:42]Thread 3067026788 joined [23:17:42]Sock 7.Check first char [23:17:42]Waiting for new connection... [23:17:42]Sock 7.First char is OK [23:17:42]request: POST /json_proto HTTP/1.0 [23:17:42]Method: POST [23:17:42]URL: /json_proto [23:17:42]Method is POST - this is cgi request [23:17:42]url: /json_proto [23:17:42]query_string will be loaded in cgi processing [23:17:42]execute_cgi json_proto POST (null) [23:17:42]execute_cgi path=json_proto method=POST [23:17:42]POST find Content-Length [23:17:42]Host: 172.17.50.3:8080 [23:17:42]Content-Length: 767 [23:17:42]Content-Type: application/json [23:17:42] [23:17:42]POST finish read [23:17:42]Found Content-Length = 767 [23:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885811", "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" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 240.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:42]execute_script... [23:17:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885811", "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" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 240.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:42]POST & json_proto [23:17:42]process_json_proto [23:17:42]json parsed OK: [23:17:42]protocol is kg_v1.0 [23:17:42]action value=close_receipt [23:17:42]process_action close_receipt [23:17:42]cmd_close_receipt [23:17:42]MH_GetDate [23:17:42]Write to MH i2c: F0 00 00 21 2E 3E [23:17:42]Write i2c OK [23:17:42]MH_I2C_Read... [23:17:42]Read from MH i2c: F0 [23:17:42]MH_I2C_Read... [23:17:42]Read from MH i2c: F0 09 00 [23:17:42]MH_I2C_Read... [23:17:42]Read from MH i2c: F0 09 00 21 2E 00 18 E1 16 67 6B 98 1E 66 44 [23:17:42]GetLastDocTimeStamp 1729552440 [23:17:42]current date 1729552664 [23:17:42]FM_GetShiftState [23:17:42]SAM_PROTO_GetShiftState [23:17:42]wFMCommunicate request_size=4 [23:17:42]MH_SAM_APDU [23:17:42]CAPDU: 80 13 01 00 [23:17:42]Write to MH i2c: E2 08 00 22 2E 80 13 01 00 00 00 00 00 CD [23:17:42]Write i2c OK [23:17:42]MH_I2C_Read... [23:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:42]Read from MH i2c: E2 [23:17:42]MH_I2C_Read... [23:17:42]Read from MH i2c: E2 0E 00 [23:17:42]MH_I2C_Read... [23:17:42]Read from MH i2c: E2 0E 00 22 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F9 [23:17:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:17:42]wFMCommunicate OK [23:17:42]SAM_PROTO_GetShiftState done [23:17:42]FM_GetShiftState done [23:17:42]opened in 1729469703 [23:17:42]opened+sec_in_day 1729556103 [23:17:42]quantity*price = 24017 [23:17:42]sum+1 = 24018 [23:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.17 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 0.00 Безнал.: 240.17 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 433 21.10.2024 23:17 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70043 ФПД: 182589400258260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70043&fm=182589400258260&tin=02508201610067®Number=0000000000156251&sum=24017 [23:17:43]StoreToDocumentArchive [23:17:43]shift 194 fd 70043 [23:17:43]save to /storage/0194/doc_00070043 [23:17:43]save last doc name /storage/0194/doc_00070043 to /storage/kkm_last_doc_name [23:17:43]save OK [23:17:43]Clear old archive folders... [23:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:43]tlvbuf is 011278B0 [23:17:43]SAM_PROTO_ClearQueue [23:17:43]wFMCommunicate request_size=4 [23:17:43]MH_SAM_APDU [23:17:43]CAPDU: 80 09 00 00 [23:17:43]Write to MH i2c: E2 08 00 2F 2E 80 09 00 00 00 00 00 00 CF [23:17:43]Write i2c OK [23:17:43]MH_I2C_Read... [23:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:43]Read from MH i2c: E2 [23:17:43]MH_I2C_Read... [23:17:43]Read from MH i2c: E2 03 00 [23:17:43]MH_I2C_Read... [23:17:43]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [23:17:43]RAPDU: 90 00 [23:17:43]wFMCommunicate OK [23:17:43]SAM_PROTO_ClearQueue done [23:17:43]KKMCreateOFDPacket [23:17:43]OFDProtocolAddRootSTLVToBuf [23:17:43]FM_MakeSignedData [23:17:43]FM_MakeSignedData [23:17:43]SAM_PROTO_SignData [23:17:43]wFMCommunicate request_size=4 [23:17:43]MH_SAM_APDU [23:17:43]CAPDU: 80 0D 01 02 [23:17:43]Write to MH i2c: E2 08 00 30 2E 80 0D 01 02 00 00 00 00 D7 [23:17:43]Write i2c OK [23:17:43]MH_I2C_Read... [23:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:43]Read from MH i2c: E2 [23:17:43]MH_I2C_Read... [23:17:43]Read from MH i2c: E2 03 00 [23:17:43]MH_I2C_Read... [23:17:43]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [23:17:43]RAPDU: 90 00 [23:17:43]wFMCommunicate OK [23:17:43]wFMCommunicate request_size=255 [23:17:43]MH_SAM_APDU [23:17:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 18 E1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 11 01 00 35 04 06 00 A6 [23:17:43]Write to MH i2c: E2 02 01 31 2E 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 18 E1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 11 01 00 35 04 06 00 A6 00 00 C5 [23:17:43]Write i2c OK [23:17:43]MH_I2C_Read... [23:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:44]Read from MH i2c: E2 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 03 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 03 00 31 2E 00 90 00 D3 [23:17:44]RAPDU: 90 00 [23:17:44]wFMCommunicate OK [23:17:44]wFMCommunicate request_size=10 [23:17:44]MH_SAM_APDU [23:17:44]CAPDU: 80 0D 02 02 05 10 68 57 96 D4 [23:17:44]Write to MH i2c: E2 0D 00 32 2E 80 0D 02 02 05 00 10 68 57 96 D4 00 00 1D [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:44]Read from MH i2c: E2 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 03 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 03 00 32 2E 00 90 00 D4 [23:17:44]RAPDU: 90 00 [23:17:44]wFMCommunicate OK [23:17:44]wFMCommunicate request_size=4 [23:17:44]MH_SAM_APDU [23:17:44]CAPDU: 80 0D 03 02 [23:17:44]Write to MH i2c: E2 08 00 33 2E 80 0D 03 02 00 00 00 00 DC [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:44]Read from MH i2c: E2 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 0B 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 0B 00 33 2E 00 7A 52 E0 CD 4E 12 E5 C9 90 00 64 [23:17:44]RAPDU: 7A 52 E0 CD 4E 12 E5 C9 90 00 [23:17:44]wFMCommunicate OK [23:17:44]SAM_PROTO_SignData done [23:17:44]FM_MakeSignedData done [23:17:44]CreateOFDProtocolMessage [23:17:44]wFMCommunicate request_size=4 [23:17:44]MH_SAM_APDU [23:17:44]CAPDU: 80 11 00 00 [23:17:44]Write to MH i2c: E2 08 00 34 2E 80 11 00 00 00 00 00 00 DC [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:44]Read from MH i2c: E2 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 17 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: E2 17 00 34 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [23:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:17:44]wFMCommunicate OK [23:17:44]CreateOFDProtocolMessage done [23:17:44]OFDSenderStorePacket 70043 [23:17:44]StoreOFDPacket docnum=70043 [23:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 7F 07 01 59 37 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 18 E1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 11 01 00 35 04 06 00 A6 10 68 57 96 D4 7A 52 E0 CD 4E 12 E5 C9 [23:17:44]CheckFolder [23:17:44]dirname=/storage/ofd_packets [23:17:44]CheckFolder done [23:17:44]ProducePacketName [23:17:44]name=ofd_packets/00070043 [23:17:44]NVStorageSaveData ofd_packets/00070043 [23:17:44]File name is /storage/ofd_packets/00070043 [23:17:44]Write 301 bytes [23:17:44]NVStorageSaveData done [23:17:44]OFDSenderStorePacket done [23:17:44]KKMCreateOFDPacket done [23:17:44]NVStorageSaveData kkm_last_timestamp [23:17:44]File name is /storage/kkm_last_timestamp [23:17:44]Write 4 bytes [23:17:44]NVStorageSaveData done [23:17:44]ExternCall_PrintAddStr [23:17:44]wPrintStart [23:17:44]Write to MH i2c: 01 00 00 35 2E 63 [23:17:44]Write i2c OK [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: 01 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: 01 07 00 [23:17:44]MH_I2C_Read... [23:17:44]Read from MH i2c: 01 07 00 35 2E 00 00 00 00 00 FF 0F 78 [23:17:44]RasterBufferAndPrint [23:17:44]line Счет N : (1)2885811 [23:17:44]line ИНН: 02508201610067 [23:17:44]line Контрольно-Кассовый Чек [23:17:44]line ПРОДАЖА [23:17:44]line ТРК (МРК, ГНК) : 42 [23:17:44]line Товар: 2710124130 [23:17:44]line Аи-92-К-5 [23:17:44]line 3.590 * 66.90 [23:17:44]line = 240.17 [23:17:44]line НДС 12% НСП 1% [23:17:44]line > о реализуемом товаре [23:17:44]line ИТОГО: 240.17 [23:17:44]line НСП 1% : 2.12 [23:17:44]line НДС 12% : 25.50 [23:17:44]line Наличными: 0.00 [23:17:44]line Безнал.: 240.17 [23:17:44]line Место: АЗС № 85 "Партнер Нефть" [23:17:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:17:44]line СНО: Общий режим [23:17:44]line Чек 433 21.10.2024 23:17 [23:17:44]line Смена: 194 ФФД: 1.0 [23:17:44]line ЗНМ: 0300000167 [23:17:44]line РНМ: 0000000000156251 [23:17:44]line Версия ККМ: v1.0 [23:17:44]line Платежная система: Mbank [23:17:44]line ФМ: 0000000000963346 [23:17:44]line ФД: 70043 [23:17:44]line ФПД: 182589400258260 [23:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70043&fm=182589400258260&tin=02508201610067®Number=0000000000156251&sum=24017 [23:17:44]OFD Sender: Processing packet 70043 [packets to send 18, broken 17] [23:17:44]ProducePacketName [23:17:44]name=ofd_packets/00070043 [23:17:44]OFD Sender: To server: pG, [23:17:44]CommunicateWithHost lk.salyk.kg:30040 [23:17:44]ConnectInit lk.salyk.kg [23:17:44]written 0, free lines is 4095 [23:17:44]Connected sock=10 [23:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 7F 07 01 59 37 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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 18 E1 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 11 01 00 35 04 06 00 A6 10 68 57 96 D4 7A 52 E0 CD 4E 12 E5 C9 [23:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 2C 47 00 F0 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 11 01 00 F4 03 04 00 BB 8A 16 67 B6 04 01 00 00 F9 C7 17 D9 D9 66 B9 91 [23:17:44]CommunicateWithHost err = 0 [23:17:44]CheckOFDResponse [23:17:44]1017 (14) - 77093643461234 [23:17:44]1041 (16) - 0000000000963346 [23:17:44]1040 (4) - 70043 [23:17:44]1012 (4) - 21.10.2024 17:09 [23:17:44]1206 (1) - 0 [23:17:44]OFD Sender: Remove packet 70043 [23:17:44]ProducePacketName [23:17:44]name=ofd_packets/00070043 [23:17:44]NVStorageDeleteData [23:17:45]Write to MH i2c: 01 00 00 5E 2E 8C [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 07 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: 01 07 00 5E 2E 00 00 00 00 00 14 0D B4 [23:17:45]RasterBufferAndPrint [23:17:45]line [23:17:45]line [23:17:45]line [23:17:45]line [23:17:45]line [23:17:45]written 0, free lines is 3354 [23:17:45]MH_Cut [23:17:45]Write to MH i2c: D1 01 00 65 2E 01 65 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: D1 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: D1 01 00 [23:17:45]MH_I2C_Read... [23:17:45]Read from MH i2c: D1 01 00 65 2E 00 64 [23:17:45]Write to MH i2c: 01 00 00 66 2E 94 [23:17:45]Write i2c OK [23:17:45]MH_I2C_Read... [23:17:45]OFD Sender: No OFD packet to send [23:17:45]*** Cut start [23:17:45]*** Partial cut [23:17:45]*** CUTSNS_PIN = 1 [23:17:45]*** CUTSNS_PIN = 0 [23:17:45]*** Brake cut motor [23:17:46]Read from MH i2c: 01 [23:17:46]MH_I2C_Read... [23:17:46]*** Stop cut motor [23:17:46]*** Cut end [23:17:46]Read from MH i2c: 01 07 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: 01 07 00 66 2E 00 00 00 00 00 FF 0F A9 [23:17:46]process_action close_receipt done [23:17:46]requested_data is exist [23:17:46]produce_requested_data [23:17:46]requested_item fm.sn is exist - process it [23:17:46]wFMCommunicate request_size=4 [23:17:46]MH_SAM_APDU [23:17:46]CAPDU: 80 11 00 00 [23:17:46]Write to MH i2c: E2 08 00 67 2E 80 11 00 00 00 00 00 00 0F [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:46]Read from MH i2c: E2 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 17 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 17 00 67 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [23:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:17:46]wFMCommunicate OK [23:17:46]requested_item fd.num is exist - process it [23:17:46]SAM_PROTO_GetFieldsCounters [23:17:46]wFMCommunicate request_size=4 [23:17:46]MH_SAM_APDU [23:17:46]CAPDU: 80 13 00 00 [23:17:46]Write to MH i2c: E2 08 00 68 2E 80 13 00 00 00 00 00 00 12 [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:46]Read from MH i2c: E2 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 62 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 62 00 68 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [23:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:46]wFMCommunicate OK [23:17:46]SAM_PROTO_GetFieldsCounters done [23:17:46]requested_item shift.num is exist - process it [23:17:46]requested_item shift.opened is exist - process it [23:17:46]req_shift_opened [23:17:46]FM_GetShiftState [23:17:46]SAM_PROTO_GetShiftState [23:17:46]wFMCommunicate request_size=4 [23:17:46]MH_SAM_APDU [23:17:46]CAPDU: 80 13 01 00 [23:17:46]Write to MH i2c: E2 08 00 69 2E 80 13 01 00 00 00 00 00 14 [23:17:46]Write i2c OK [23:17:46]MH_I2C_Read... [23:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:46]Read from MH i2c: E2 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 0E 00 [23:17:46]MH_I2C_Read... [23:17:46]Read from MH i2c: E2 0E 00 69 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [23:17:46]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:17:46]wFMCommunicate OK [23:17:46]SAM_PROTO_GetShiftState done [23:17:46]FM_GetShiftState done [23:17:46]req_shift_opened done [23:17:46]requested_item shift.open_date is exist - process it [23:17:46]req_shift_open_date [23:17:46]req_shift_open_date done [23:17:46]produce_requested_data done [23:17:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70043,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:17:46]process_action_free close_receipt [23:17:46]json_value_free [23:17:46]json_value_free done [23:17:46]process_json_proto returns [23:17:46]Send response to host [23:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70043,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:17:46]free response buf [23:17:46]execute_script done [23:17:46]execute_script returns [23:17:46]free content buf [23:17:46]Sock 7.Close socket [23:17:46]Sock 7.Thread stoped [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:33:59]accept exits with 9 [23:33:59]New connection [23:33:59]New thread 3067026788 created [23:33:59]Thread 3067170148 joined [23:33:59]Waiting for new connection... [23:33:59] Sock 9.Parse request [23:33:59]Sock 9.Check first char [23:33:59]Sock 9.First char is OK [23:33:59]request: POST /json_proto HTTP/1.0 [23:33:59]Method: POST [23:33:59]URL: /json_proto [23:33:59]Method is POST - this is cgi request [23:33:59]url: /json_proto [23:33:59]query_string will be loaded in cgi processing [23:33:59]execute_cgi json_proto POST (null) [23:33:59]execute_cgi path=json_proto method=POST [23:33:59]POST find Content-Length [23:33:59]Host: 172.17.50.3:8080 [23:33:59]Content-Length: 773 [23:33:59]Content-Type: application/json [23:33:59] [23:33:59]POST finish read [23:33:59]Found Content-Length = 773 [23:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.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: Mbank", "payments": [ { "type": 1, "sum" : 1600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:59]execute_script... [23:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 41.140, "sum" : 1600.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: Mbank", "payments": [ { "type": 1, "sum" : 1600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:59]POST & json_proto [23:33:59]process_json_proto [23:33:59]json parsed OK: [23:33:59]protocol is kg_v1.0 [23:33:59]action value=close_receipt [23:33:59]process_action close_receipt [23:33:59]cmd_close_receipt [23:33:59]MH_GetDate [23:33:59]Write to MH i2c: F0 00 00 6A 2E 87 [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 09 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 09 00 6A 2E 00 E9 E4 16 67 6B 98 1E 66 61 [23:33:59]GetLastDocTimeStamp 1729552664 [23:33:59]current date 1729553641 [23:33:59]FM_GetShiftState [23:33:59]SAM_PROTO_GetShiftState [23:33:59]wFMCommunicate request_size=4 [23:33:59]MH_SAM_APDU [23:33:59]CAPDU: 80 13 01 00 [23:33:59]Write to MH i2c: E2 08 00 6B 2E 80 13 01 00 00 00 00 00 16 [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:59]Read from MH i2c: E2 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 6B 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [23:33:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:33:59]wFMCommunicate OK [23:33:59]SAM_PROTO_GetShiftState done [23:33:59]FM_GetShiftState done [23:33:59]opened in 1729469703 [23:33:59]opened+sec_in_day 1729556103 [23:33:59]quantity*price = 160034 [23:33:59]sum+1 = 160036 [23:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.35 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 0.00 Безнал.: 1600.35 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 434 21.10.2024 23:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70044 ФПД: 2788541496633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233401&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70044&fm=2788541496633&tin=02508201610067®Number=0000000000156251&sum=160035 [23:34:00]StoreToDocumentArchive [23:34:00]shift 194 fd 70044 [23:34:00]save to /storage/0194/doc_00070044 [23:34:00]save last doc name /storage/0194/doc_00070044 to /storage/kkm_last_doc_name [23:34:00]save OK [23:34:00]Clear old archive folders... [23:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:34:00]tlvbuf is 01133A80 [23:34:00]SAM_PROTO_ClearQueue [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 09 00 00 [23:34:00]Write to MH i2c: E2 08 00 78 2E 80 09 00 00 00 00 00 00 18 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]SAM_PROTO_ClearQueue done [23:34:00]KKMCreateOFDPacket [23:34:00]OFDProtocolAddRootSTLVToBuf [23:34:00]FM_MakeSignedData [23:34:00]FM_MakeSignedData [23:34:00]SAM_PROTO_SignData [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 01 02 [23:34:00]Write to MH i2c: E2 08 00 79 2E 80 0D 01 02 00 00 00 00 20 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=255 [23:34:00]MH_SAM_APDU [23:34:00]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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 E9 E4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 11 01 00 35 04 06 00 02 89 [23:34:00]Write to MH i2c: E2 02 01 7A 2E 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 E9 E4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 11 01 00 35 04 06 00 02 89 00 00 53 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=9 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 02 02 04 42 06 7D 39 [23:34:00]Write to MH i2c: E2 0C 00 7B 2E 80 0D 02 02 04 00 42 06 7D 39 00 00 29 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 7B 2E 00 90 00 1D [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 03 02 [23:34:00]Write to MH i2c: E2 08 00 7C 2E 80 0D 03 02 00 00 00 00 25 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 0B 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 0B 00 7C 2E 00 BC 99 A2 5A E4 E7 50 10 90 00 A2 [23:34:00]RAPDU: BC 99 A2 5A E4 E7 50 10 90 00 [23:34:00]wFMCommunicate OK [23:34:00]SAM_PROTO_SignData done [23:34:00]FM_MakeSignedData done [23:34:00]CreateOFDProtocolMessage [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 11 00 00 [23:34:00]Write to MH i2c: E2 08 00 7D 2E 80 11 00 00 00 00 00 00 25 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 17 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 17 00 7D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [23:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:34:00]wFMCommunicate OK [23:34:00]CreateOFDProtocolMessage done [23:34:00]OFDSenderStorePacket 70044 [23:34:00]StoreOFDPacket docnum=70044 [23:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 09 2E 06 01 F8 2B 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 E9 E4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 11 01 00 35 04 06 00 02 89 42 06 7D 39 BC 99 A2 5A E4 E7 50 10 [23:34:00]CheckFolder [23:34:00]dirname=/storage/ofd_packets [23:34:00]CheckFolder done [23:34:00]ProducePacketName [23:34:00]name=ofd_packets/00070044 [23:34:00]NVStorageSaveData ofd_packets/00070044 [23:34:00]File name is /storage/ofd_packets/00070044 [23:34:00]Write 300 bytes [23:34:00]NVStorageSaveData done [23:34:00]OFDSenderStorePacket done [23:34:00]KKMCreateOFDPacket done [23:34:00]NVStorageSaveData kkm_last_timestamp [23:34:00]File name is /storage/kkm_last_timestamp [23:34:00]Write 4 bytes [23:34:00]NVStorageSaveData done [23:34:00]ExternCall_PrintAddStr [23:34:00]wPrintStart [23:34:00]Write to MH i2c: 01 00 00 7E 2E AC [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 07 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 07 00 7E 2E 00 00 00 00 00 FF 0F C1 [23:34:00]RasterBufferAndPrint [23:34:00]line Счет N : (1)2885812 [23:34:00]line ИНН: 02508201610067 [23:34:00]line Контрольно-Кассовый Чек [23:34:00]line ПРОДАЖА [23:34:00]line ТРК (МРК, ГНК) : 71 [23:34:00]line Товар: 2711129700 [23:34:00]line ГАЗ-К-3 [23:34:00]line 41.140 * 38.90 [23:34:00]line = 1600.35 [23:34:00]line НДС 12% НСП 1% [23:34:00]line > о реализуемом товаре [23:34:00]line ИТОГО: 1600.35 [23:34:00]line НСП 1% : 14.16 [23:34:00]line НДС 12% : 169.95 [23:34:00]line Наличными: 0.00 [23:34:00]line Безнал.: 1600.35 [23:34:00]line Место: АЗС № 85 "Партнер Нефть" [23:34:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:34:00]line СНО: Общий режим [23:34:00]line Чек 434 21.10.2024 23:34 [23:34:00]line Смена: 194 ФФД: 1.0 [23:34:00]line ЗНМ: 0300000167 [23:34:00]line РНМ: 0000000000156251 [23:34:00]line Версия ККМ: v1.0 [23:34:00]line Платежная система: Mbank [23:34:00]line ФМ: 0000000000963346 [23:34:00]line ФД: 70044 [23:34:00]line ФПД: 2788541496633 [23:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233401&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70044&fm=2788541496633&tin=02508201610067®Number=0000000000156251&sum=160035 [23:34:01]OFD Sender: Processing packet 70044 [packets to send 18, broken 17] [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00070044 [23:34:01]OFD Sender: To server: pG, [23:34:01]CommunicateWithHost lk.salyk.kg:30040 [23:34:01]ConnectInit lk.salyk.kg [23:34:01]written 0, free lines is 4095 [23:34:01]Connected sock=10 [23:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 09 2E 06 01 F8 2B 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 33 FF 03 08 00 03 B4 A0 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 E9 E4 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 11 01 00 35 04 06 00 02 89 42 06 7D 39 BC 99 A2 5A E4 E7 50 10 [23:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 15 47 00 BA DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 11 01 00 F4 03 04 00 8B 8E 16 67 B6 04 01 00 00 66 98 BD 25 0D 04 67 01 [23:34:01]CommunicateWithHost err = 0 [23:34:01]CheckOFDResponse [23:34:01]1017 (14) - 77093643461234 [23:34:01]1041 (16) - 0000000000963346 [23:34:01]1040 (4) - 70044 [23:34:01]1012 (4) - 21.10.2024 17:25 [23:34:01]1206 (1) - 0 [23:34:01]OFD Sender: Remove packet 70044 [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00070044 [23:34:01]NVStorageDeleteData [23:34:01]Write to MH i2c: 01 00 00 A7 2E D5 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 0A 0D F3 [23:34:01]RasterBufferAndPrint [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]written 0, free lines is 3344 [23:34:01]MH_Cut [23:34:01]Write to MH i2c: D1 01 00 AE 2E 01 AE [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 01 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 01 00 AE 2E 00 AD [23:34:01]Write to MH i2c: 01 00 00 AF 2E DD [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]OFD Sender: No OFD packet to send [23:34:02]*** Cut start [23:34:02]*** Partial cut [23:34:02]*** CUTSNS_PIN = 1 [23:34:02]*** CUTSNS_PIN = 0 [23:34:02]*** Brake cut motor [23:34:02]Read from MH i2c: 01 [23:34:02]MH_I2C_Read... [23:34:02]*** Stop cut motor [23:34:02]*** Cut end [23:34:02]Read from MH i2c: 01 07 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 07 00 AF 2E 00 00 00 00 00 FF 0F F2 [23:34:02]process_action close_receipt done [23:34:02]requested_data is exist [23:34:02]produce_requested_data [23:34:02]requested_item fm.sn is exist - process it [23:34:02]wFMCommunicate request_size=4 [23:34:02]MH_SAM_APDU [23:34:02]CAPDU: 80 11 00 00 [23:34:02]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:02]Read from MH i2c: E2 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 17 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 17 00 B0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [23:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:34:02]wFMCommunicate OK [23:34:02]requested_item fd.num is exist - process it [23:34:02]SAM_PROTO_GetFieldsCounters [23:34:02]wFMCommunicate request_size=4 [23:34:02]MH_SAM_APDU [23:34:02]CAPDU: 80 13 00 00 [23:34:02]Write to MH i2c: E2 08 00 B1 2E 80 13 00 00 00 00 00 00 5B [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:03]Read from MH i2c: E2 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 62 00 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 62 00 B1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [23:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:03]wFMCommunicate OK [23:34:03]SAM_PROTO_GetFieldsCounters done [23:34:03]requested_item shift.num is exist - process it [23:34:03]requested_item shift.opened is exist - process it [23:34:03]req_shift_opened [23:34:03]FM_GetShiftState [23:34:03]SAM_PROTO_GetShiftState [23:34:03]wFMCommunicate request_size=4 [23:34:03]MH_SAM_APDU [23:34:03]CAPDU: 80 13 01 00 [23:34:03]Write to MH i2c: E2 08 00 B2 2E 80 13 01 00 00 00 00 00 5D [23:34:03]Write i2c OK [23:34:03]MH_I2C_Read... [23:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:03]Read from MH i2c: E2 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 0E 00 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 0E 00 B2 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 89 [23:34:03]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:34:03]wFMCommunicate OK [23:34:03]SAM_PROTO_GetShiftState done [23:34:03]FM_GetShiftState done [23:34:03]req_shift_opened done [23:34:03]requested_item shift.open_date is exist - process it [23:34:03]req_shift_open_date [23:34:03]req_shift_open_date done [23:34:03]produce_requested_data done [23:34:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70044,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:34:03]process_action_free close_receipt [23:34:03]json_value_free [23:34:03]json_value_free done [23:34:03]process_json_proto returns [23:34:03]Send response to host [23:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70044,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:34:03]free response buf [23:34:03]execute_script done [23:34:03]execute_script returns [23:34:03]free content buf [23:34:03]Sock 9.Close socket [23:34:03]Sock 9.Thread stoped [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:44]accept exits with 7 [23:34:44]New connection [23:34:44]New thread 3067170148 created [23:34:44]Thread 3067026788 joined [23:34:44]Waiting for new connection... [23:34:44] Sock 7.Parse request [23:34:44]Sock 7.Check first char [23:34:44]Sock 7.First char is OK [23:34:44]request: POST /json_proto HTTP/1.0 [23:34:44]Method: POST [23:34:44]URL: /json_proto [23:34:44]Method is POST - this is cgi request [23:34:44]url: /json_proto [23:34:44]query_string will be loaded in cgi processing [23:34:44]execute_cgi json_proto POST (null) [23:34:44]execute_cgi path=json_proto method=POST [23:34:44]POST find Content-Length [23:34:44]Host: 172.17.50.3:8080 [23:34:44]Content-Length: 755 [23:34:44]Content-Type: application/json [23:34:44] [23:34:44]POST finish read [23:34:44]Found Content-Length = 755 [23:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:44]execute_script... [23:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:44]POST & json_proto [23:34:44]process_json_proto [23:34:44]json parsed OK: [23:34:44]protocol is kg_v1.0 [23:34:44]action value=close_receipt [23:34:44]process_action close_receipt [23:34:44]cmd_close_receipt [23:34:44]MH_GetDate [23:34:44]Write to MH i2c: F0 00 00 B3 2E D0 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 09 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: F0 09 00 B3 2E 00 16 E5 16 67 6B 98 1E 66 D8 [23:34:44]GetLastDocTimeStamp 1729553641 [23:34:44]current date 1729553686 [23:34:44]FM_GetShiftState [23:34:44]SAM_PROTO_GetShiftState [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 13 01 00 [23:34:44]Write to MH i2c: E2 08 00 B4 2E 80 13 01 00 00 00 00 00 5F [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0E 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0E 00 B4 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [23:34:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:34:44]wFMCommunicate OK [23:34:44]SAM_PROTO_GetShiftState done [23:34:44]FM_GetShiftState done [23:34:44]opened in 1729469703 [23:34:44]opened+sec_in_day 1729556103 [23:34:44]quantity*price = 0 [23:34:44]sum+1 = 1 [23:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 435 21.10.2024 23:34 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021879 ФМ: 0000000000963346 ФД: 70045 ФПД: 44846746515381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233446&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70045&fm=44846746515381&tin=02508201610067®Number=0000000000156251&sum=0 [23:34:45]StoreToDocumentArchive [23:34:45]shift 194 fd 70045 [23:34:45]save to /storage/0194/doc_00070045 [23:34:45]save last doc name /storage/0194/doc_00070045 to /storage/kkm_last_doc_name [23:34:45]save OK [23:34:45]Clear old archive folders... [23:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:45]tlvbuf is 011D20C0 [23:34:45]SAM_PROTO_ClearQueue [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 09 00 00 [23:34:45]Write to MH i2c: E2 08 00 C1 2E 80 09 00 00 00 00 00 00 61 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]SAM_PROTO_ClearQueue done [23:34:45]KKMCreateOFDPacket [23:34:45]OFDProtocolAddRootSTLVToBuf [23:34:45]FM_MakeSignedData [23:34:45]FM_MakeSignedData [23:34:45]SAM_PROTO_SignData [23:34:45]wFMCommunicate request_size=4 [23:34:45]MH_SAM_APDU [23:34:45]CAPDU: 80 0D 01 02 [23:34:45]Write to MH i2c: E2 08 00 C2 2E 80 0D 01 02 00 00 00 00 69 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:45]Read from MH i2c: E2 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [23:34:45]RAPDU: 90 00 [23:34:45]wFMCommunicate OK [23:34:45]wFMCommunicate request_size=255 [23:34:45]MH_SAM_APDU [23:34:45]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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 16 E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 11 01 00 35 04 06 00 28 [23:34:45]Write to MH i2c: E2 02 01 C3 2E 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 16 E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 11 01 00 35 04 06 00 28 00 00 69 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [23:34:46]RAPDU: 90 00 [23:34:46]wFMCommunicate OK [23:34:46]wFMCommunicate request_size=10 [23:34:46]MH_SAM_APDU [23:34:46]CAPDU: 80 0D 02 02 05 C9 B2 65 37 B5 [23:34:46]Write to MH i2c: E2 0D 00 C4 2E 80 0D 02 02 05 00 C9 B2 65 37 B5 00 00 42 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [23:34:46]RAPDU: 90 00 [23:34:46]wFMCommunicate OK [23:34:46]wFMCommunicate request_size=4 [23:34:46]MH_SAM_APDU [23:34:46]CAPDU: 80 0D 03 02 [23:34:46]Write to MH i2c: E2 08 00 C5 2E 80 0D 03 02 00 00 00 00 6E [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 0B 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 0B 00 C5 2E 00 F5 44 23 69 4E 93 5E A0 90 00 13 [23:34:46]RAPDU: F5 44 23 69 4E 93 5E A0 90 00 [23:34:46]wFMCommunicate OK [23:34:46]SAM_PROTO_SignData done [23:34:46]FM_MakeSignedData done [23:34:46]CreateOFDProtocolMessage [23:34:46]wFMCommunicate request_size=4 [23:34:46]MH_SAM_APDU [23:34:46]CAPDU: 80 11 00 00 [23:34:46]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:46]Read from MH i2c: E2 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 17 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [23:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:34:46]wFMCommunicate OK [23:34:46]CreateOFDProtocolMessage done [23:34:46]OFDSenderStorePacket 70045 [23:34:46]StoreOFDPacket docnum=70045 [23:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F7 1E 07 01 0E 15 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 16 E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 11 01 00 35 04 06 00 28 C9 B2 65 37 B5 F5 44 23 69 4E 93 5E A0 [23:34:46]CheckFolder [23:34:46]dirname=/storage/ofd_packets [23:34:46]CheckFolder done [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00070045 [23:34:46]NVStorageSaveData ofd_packets/00070045 [23:34:46]File name is /storage/ofd_packets/00070045 [23:34:46]Write 301 bytes [23:34:46]NVStorageSaveData done [23:34:46]OFDSenderStorePacket done [23:34:46]KKMCreateOFDPacket done [23:34:46]NVStorageSaveData kkm_last_timestamp [23:34:46]File name is /storage/kkm_last_timestamp [23:34:46]Write 4 bytes [23:34:46]NVStorageSaveData done [23:34:46]ExternCall_PrintAddStr [23:34:46]wPrintStart [23:34:46]Write to MH i2c: 01 00 00 C7 2E F5 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 FF 0F 0A [23:34:46]RasterBufferAndPrint [23:34:46]line Счет N : (1)2885813 [23:34:46]line ИНН: 02508201610067 [23:34:46]line Контрольно-Кассовый Чек [23:34:46]line ПРОДАЖА [23:34:46]line ТРК (МРК, ГНК) : 12 [23:34:46]line Товар: 2710124130 [23:34:46]line Аи-92-К-5 [23:34:46]line 10.000 * 0.00 [23:34:46]line = 0.00 [23:34:46]line НДС 12% НСП 1% [23:34:46]line > о реализуемом товаре [23:34:46]line ИТОГО: 0.00 [23:34:46]line НСП 1% : 0.00 [23:34:46]line НДС 12% : 0.00 [23:34:46]line Наличными: 0.00 [23:34:46]line Безнал.: 0.00 [23:34:46]line Место: АЗС № 85 "Партнер Нефть" [23:34:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:34:46]line СНО: Общий режим [23:34:46]line Чек 435 21.10.2024 23:34 [23:34:46]line Смена: 194 ФФД: 1.0 [23:34:46]line ЗНМ: 0300000167 [23:34:46]line РНМ: 0000000000156251 [23:34:46]line Версия ККМ: v1.0 [23:34:46]line Талоны: ТК ГПНА Online [23:34:46]line 30021879 [23:34:46]line ФМ: 0000000000963346 [23:34:46]line ФД: 70045 [23:34:46]line ФПД: 44846746515381 [23:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233446&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70045&fm=44846746515381&tin=02508201610067®Number=0000000000156251&sum=0 [23:34:46]OFD Sender: Processing packet 70045 [packets to send 18, broken 17] [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00070045 [23:34:46]OFD Sender: To server: pG, [23:34:46]CommunicateWithHost lk.salyk.kg:30040 [23:34:46]ConnectInit lk.salyk.kg [23:34:46]written 0, free lines is 4095 [23:34:46]Connected sock=10 [23:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F7 1E 07 01 0E 15 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 16 E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 11 01 00 35 04 06 00 28 C9 B2 65 37 B5 F5 44 23 69 4E 93 5E A0 [23:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 5D 47 00 0E 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 11 01 00 F4 03 04 00 B9 8E 16 67 B6 04 01 00 00 F0 D6 71 B9 CB 82 6B 26 [23:34:46]CommunicateWithHost err = 0 [23:34:46]CheckOFDResponse [23:34:46]1017 (14) - 77093643461234 [23:34:46]1041 (16) - 0000000000963346 [23:34:46]1040 (4) - 70045 [23:34:46]1012 (4) - 21.10.2024 17:26 [23:34:46]1206 (1) - 0 [23:34:46]OFD Sender: Remove packet 70045 [23:34:46]ProducePacketName [23:34:46]name=ofd_packets/00070045 [23:34:46]NVStorageDeleteData [23:34:46]Write to MH i2c: 01 00 00 F1 2E 1F [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 EE 0C 20 [23:34:46]RasterBufferAndPrint [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]line [23:34:46]written 0, free lines is 3316 [23:34:46]MH_Cut [23:34:46]Write to MH i2c: D1 01 00 F8 2E 01 F8 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 01 00 [23:34:46]MH_I2C_Read... [23:34:46]Read from MH i2c: D1 01 00 F8 2E 00 F7 [23:34:46]Write to MH i2c: 01 00 00 F9 2E 27 [23:34:46]Write i2c OK [23:34:46]MH_I2C_Read... [23:34:47]OFD Sender: No OFD packet to send [23:34:47]*** Cut start [23:34:47]*** Partial cut [23:34:47]*** CUTSNS_PIN = 1 [23:34:47]*** CUTSNS_PIN = 0 [23:34:47]*** Brake cut motor [23:34:48]Read from MH i2c: 01 [23:34:48]MH_I2C_Read... [23:34:48]*** Stop cut motor [23:34:48]*** Cut end [23:34:48]Read from MH i2c: 01 07 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 FF 0F 3C [23:34:48]process_action close_receipt done [23:34:48]requested_data is exist [23:34:48]produce_requested_data [23:34:48]requested_item fm.sn is exist - process it [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 11 00 00 [23:34:48]Write to MH i2c: E2 08 00 FA 2E 80 11 00 00 00 00 00 00 A2 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 FA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [23:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:34:48]wFMCommunicate OK [23:34:48]requested_item fd.num is exist - process it [23:34:48]SAM_PROTO_GetFieldsCounters [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 00 00 [23:34:48]Write to MH i2c: E2 08 00 FB 2E 80 13 00 00 00 00 00 00 A5 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 FB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [23:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetFieldsCounters done [23:34:48]requested_item shift.num is exist - process it [23:34:48]requested_item shift.opened is exist - process it [23:34:48]req_shift_opened [23:34:48]FM_GetShiftState [23:34:48]SAM_PROTO_GetShiftState [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 01 00 [23:34:48]Write to MH i2c: E2 08 00 FC 2E 80 13 01 00 00 00 00 00 A7 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 FC 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D3 [23:34:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetShiftState done [23:34:48]FM_GetShiftState done [23:34:48]req_shift_opened done [23:34:48]requested_item shift.open_date is exist - process it [23:34:48]req_shift_open_date [23:34:48]req_shift_open_date done [23:34:48]produce_requested_data done [23:34:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70045,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:34:48]process_action_free close_receipt [23:34:48]json_value_free [23:34:48]json_value_free done [23:34:48]process_json_proto returns [23:34:48]Send response to host [23:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70045,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:34:48]free response buf [23:34:48]execute_script done [23:34:48]execute_script returns [23:34:48]free content buf [23:34:48]Sock 7.Close socket [23:34:48]Sock 7.Thread stoped [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:12]accept exits with 9 [23:37:12]New connection [23:37:12]New thread 3067026788 created [23:37:12]Thread 3067170148 joined [23:37:12]Waiting for new connection... [23:37:12] Sock 9.Parse request [23:37:12]Sock 9.Check first char [23:37:12]Sock 9.First char is OK [23:37:12]request: POST /json_proto HTTP/1.0 [23:37:12]Method: POST [23:37:12]URL: /json_proto [23:37:12]Method is POST - this is cgi request [23:37:12]url: /json_proto [23:37:12]query_string will be loaded in cgi processing [23:37:12]execute_cgi json_proto POST (null) [23:37:12]execute_cgi path=json_proto method=POST [23:37:12]POST find Content-Length [23:37:12]Host: 172.17.50.3:8080 [23:37:12]Content-Length: 683 [23:37:12]Content-Type: application/json [23:37:12] [23:37:12]POST finish read [23:37:12]Found Content-Length = 683 [23:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885814", "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" : 66.90, "quantity" : 57.970, "sum" : 3878.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3878.00, "payments": [ { "type": 0, "sum" : 3878.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:12]execute_script... [23:37: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)2885814", "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" : 66.90, "quantity" : 57.970, "sum" : 3878.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3878.00, "payments": [ { "type": 0, "sum" : 3878.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:12]POST & json_proto [23:37:12]process_json_proto [23:37:12]json parsed OK: [23:37:12]protocol is kg_v1.0 [23:37:12]action value=close_receipt [23:37:12]process_action close_receipt [23:37:12]cmd_close_receipt [23:37:12]MH_GetDate [23:37:12]Write to MH i2c: F0 00 00 FD 2E 1A [23:37:12]Write i2c OK [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: F0 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: F0 09 00 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: F0 09 00 FD 2E 00 AB E5 16 67 6B 98 1E 66 B7 [23:37:12]GetLastDocTimeStamp 1729553686 [23:37:12]current date 1729553835 [23:37:12]FM_GetShiftState [23:37:12]SAM_PROTO_GetShiftState [23:37:12]wFMCommunicate request_size=4 [23:37:12]MH_SAM_APDU [23:37:12]CAPDU: 80 13 01 00 [23:37:12]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [23:37:12]Write i2c OK [23:37:12]MH_I2C_Read... [23:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:13]Read from MH i2c: E2 [23:37:13]MH_I2C_Read... [23:37:13]Read from MH i2c: E2 0E 00 [23:37:13]MH_I2C_Read... [23:37:13]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D5 [23:37:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:37:13]wFMCommunicate OK [23:37:13]SAM_PROTO_GetShiftState done [23:37:13]FM_GetShiftState done [23:37:13]opened in 1729469703 [23:37:13]opened+sec_in_day 1729556103 [23:37:13]quantity*price = 387819 [23:37:13]sum+1 = 387820 [23:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 3878.00 Внесено: 5000.00 СДАЧА: 1122.00 НСП 1% : 34.32 НДС 12% : 411.84 Наличными: 3878.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 436 21.10.2024 23:37 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70046 ФПД: 225229028786306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70046&fm=225229028786306&tin=02508201610067®Number=0000000000156251&sum=387800 [23:37:14]StoreToDocumentArchive [23:37:14]shift 194 fd 70046 [23:37:14]save to /storage/0194/doc_00070046 [23:37:14]save last doc name /storage/0194/doc_00070046 to /storage/kkm_last_doc_name [23:37:14]save OK [23:37:14]Clear old archive folders... [23:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:14]tlvbuf is 011D1BE0 [23:37:14]SAM_PROTO_ClearQueue [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 09 00 00 [23:37:14]Write to MH i2c: E2 08 00 0B 2F 80 09 00 00 00 00 00 00 AC [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 0B 2F 00 90 00 AE [23:37:14]RAPDU: 90 00 [23:37:14]wFMCommunicate OK [23:37:14]SAM_PROTO_ClearQueue done [23:37:14]KKMCreateOFDPacket [23:37:14]OFDProtocolAddRootSTLVToBuf [23:37:14]FM_MakeSignedData [23:37:14]FM_MakeSignedData [23:37:14]SAM_PROTO_SignData [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 0D 01 02 [23:37:14]Write to MH i2c: E2 08 00 0C 2F 80 0D 01 02 00 00 00 00 B4 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 0C 2F 00 90 00 AF [23:37:14]RAPDU: 90 00 [23:37:14]wFMCommunicate OK [23:37:14]wFMCommunicate request_size=255 [23:37:14]MH_SAM_APDU [23:37: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 72 E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB EA 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EA 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 A0 00 00 00 00 07 04 06 00 D8 EA 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 AB E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 11 01 00 35 04 06 00 CC [23:37:14]Write to MH i2c: E2 02 01 0D 2F 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 E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB EA 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EA 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 A0 00 00 00 00 07 04 06 00 D8 EA 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 AB E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 11 01 00 35 04 06 00 CC 00 00 A5 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 0D 2F 00 90 00 B0 [23:37:14]RAPDU: 90 00 [23:37:14]wFMCommunicate OK [23:37:14]wFMCommunicate request_size=10 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 0D 02 02 05 D8 38 41 00 82 [23:37:14]Write to MH i2c: E2 0D 00 0E 2F 80 0D 02 02 05 00 D8 38 41 00 82 00 00 94 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 03 00 0E 2F 00 90 00 B1 [23:37:14]RAPDU: 90 00 [23:37:14]wFMCommunicate OK [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 0D 03 02 [23:37:14]Write to MH i2c: E2 08 00 0F 2F 80 0D 03 02 00 00 00 00 B9 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0B 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0B 00 0F 2F 00 9C 11 0E 9E E6 5F A6 2F 90 00 2D [23:37:14]RAPDU: 9C 11 0E 9E E6 5F A6 2F 90 00 [23:37:14]wFMCommunicate OK [23:37:14]SAM_PROTO_SignData done [23:37:14]FM_MakeSignedData done [23:37:14]CreateOFDProtocolMessage [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 11 00 00 [23:37:14]Write to MH i2c: E2 08 00 10 2F 80 11 00 00 00 00 00 00 B9 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 17 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 17 00 10 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [23:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:37:14]wFMCommunicate OK [23:37:14]CreateOFDProtocolMessage done [23:37:14]OFDSenderStorePacket 70046 [23:37:14]StoreOFDPacket docnum=70046 [23:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 7F 07 01 6C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB EA 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EA 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 A0 00 00 00 00 07 04 06 00 D8 EA 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 AB E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 11 01 00 35 04 06 00 CC D8 38 41 00 82 9C 11 0E 9E E6 5F A6 2F [23:37:14]CheckFolder [23:37:14]dirname=/storage/ofd_packets [23:37:14]CheckFolder done [23:37:14]ProducePacketName [23:37:14]name=ofd_packets/00070046 [23:37:14]NVStorageSaveData ofd_packets/00070046 [23:37:14]File name is /storage/ofd_packets/00070046 [23:37:14]Write 301 bytes [23:37:14]NVStorageSaveData done [23:37:14]OFDSenderStorePacket done [23:37:14]KKMCreateOFDPacket done [23:37:14]NVStorageSaveData kkm_last_timestamp [23:37:14]File name is /storage/kkm_last_timestamp [23:37:14]Write 4 bytes [23:37:14]NVStorageSaveData done [23:37:14]ExternCall_PrintAddStr [23:37:14]wPrintStart [23:37:14]Write to MH i2c: 01 00 00 11 2F 40 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: 01 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: 01 07 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: 01 07 00 11 2F 00 00 00 00 00 FF 0F 55 [23:37:14]RasterBufferAndPrint [23:37:14]line Счет N : (1)2885814 [23:37:14]line ИНН: 02508201610067 [23:37:14]line Контрольно-Кассовый Чек [23:37:14]line ПРОДАЖА [23:37:14]line ТРК (МРК, ГНК) : 42 [23:37:14]line Товар: 2710124130 [23:37:14]line Аи-92-К-5 [23:37:14]line 57.970 * 66.90 [23:37:14]line = 3878.19 [23:37:14]line НДС 12% НСП 1% [23:37:14]line > о реализуемом товаре [23:37:14]line ОКРУГЛЕНИЕ: -0.19 [23:37:14]line ИТОГО: 3878.00 [23:37:14]line Внесено: 5000.00 [23:37:14]line СДАЧА: 1122.00 [23:37:14]line НСП 1% : 34.32 [23:37:14]line НДС 12% : 411.84 [23:37:14]line Наличными: 3878.00 [23:37:14]line Безнал.: 0.00 [23:37:14]line Место: АЗС № 85 "Партнер Нефть" [23:37:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:37:14]line СНО: Общий режим [23:37:14]line Чек 436 21.10.2024 23:37 [23:37:14]line Смена: 194 ФФД: 1.0 [23:37:14]line ЗНМ: 0300000167 [23:37:14]line РНМ: 0000000000156251 [23:37:14]line Версия ККМ: v1.0 [23:37:14]line ФМ: 0000000000963346 [23:37:14]line ФД: 70046 [23:37:14]line ФПД: 225229028786306 [23:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70046&fm=225229028786306&tin=02508201610067®Number=0000000000156251&sum=387800 [23:37:14]OFD Sender: Processing packet 70046 [packets to send 18, broken 17] [23:37:14]ProducePacketName [23:37:14]name=ofd_packets/00070046 [23:37:14]OFD Sender: To server: pG, [23:37:14]CommunicateWithHost lk.salyk.kg:30040 [23:37:14]ConnectInit lk.salyk.kg [23:37:14]written 0, free lines is 4095 [23:37:15]Connected sock=10 [23:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 7F 07 01 6C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB EA 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 EA 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 A0 00 00 00 00 07 04 06 00 D8 EA 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 AB E5 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 11 01 00 35 04 06 00 CC D8 38 41 00 82 9C 11 0E 9E E6 5F A6 2F [23:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 05 47 00 10 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 11 01 00 F4 03 04 00 4D 8F 16 67 B6 04 01 00 00 5F C6 65 DA D9 F5 A5 FD [23:37:15]CommunicateWithHost err = 0 [23:37:15]CheckOFDResponse [23:37:15]1017 (14) - 77093643461234 [23:37:15]1041 (16) - 0000000000963346 [23:37:15]1040 (4) - 70046 [23:37:15]1012 (4) - 21.10.2024 17:28 [23:37:15]1206 (1) - 0 [23:37:15]OFD Sender: Remove packet 70046 [23:37:15]ProducePacketName [23:37:15]name=ofd_packets/00070046 [23:37:15]NVStorageDeleteData [23:37:15]Write to MH i2c: 01 00 00 3C 2F 6B [23:37:15]Write i2c OK [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: 01 [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: 01 07 00 [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 F5 0C 73 [23:37:15]RasterBufferAndPrint [23:37:15]line [23:37:15]line [23:37:15]line [23:37:15]line [23:37:15]line [23:37:15]written 0, free lines is 3324 [23:37:15]MH_Cut [23:37:15]Write to MH i2c: D1 01 00 43 2F 01 44 [23:37:15]Write i2c OK [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: D1 [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: D1 01 00 [23:37:15]MH_I2C_Read... [23:37:15]Read from MH i2c: D1 01 00 43 2F 00 43 [23:37:15]Write to MH i2c: 01 00 00 44 2F 73 [23:37:15]Write i2c OK [23:37:15]MH_I2C_Read... [23:37:15]OFD Sender: No OFD packet to send [23:37:16]*** Cut start [23:37:16]*** Partial cut [23:37:16]*** CUTSNS_PIN = 1 [23:37:16]*** CUTSNS_PIN = 0 [23:37:16]*** Brake cut motor [23:37:16]Read from MH i2c: 01 [23:37:16]MH_I2C_Read... [23:37:16]*** Stop cut motor [23:37:16]*** Cut end [23:37:16]Read from MH i2c: 01 07 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 07 00 44 2F 00 00 00 00 00 FF 0F 88 [23:37:16]process_action close_receipt done [23:37:16]requested_data is exist [23:37:16]produce_requested_data [23:37:16]requested_item fm.sn is exist - process it [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 11 00 00 [23:37:16]Write to MH i2c: E2 08 00 45 2F 80 11 00 00 00 00 00 00 EE [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 45 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [23:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:37:16]wFMCommunicate OK [23:37:16]requested_item fd.num is exist - process it [23:37:16]SAM_PROTO_GetFieldsCounters [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 13 00 00 [23:37:16]Write to MH i2c: E2 08 00 46 2F 80 13 00 00 00 00 00 00 F1 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 62 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 62 00 46 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [23:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:16]wFMCommunicate OK [23:37:16]SAM_PROTO_GetFieldsCounters done [23:37:16]requested_item shift.num is exist - process it [23:37:16]requested_item shift.opened is exist - process it [23:37:16]req_shift_opened [23:37:16]FM_GetShiftState [23:37:16]SAM_PROTO_GetShiftState [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 13 01 00 [23:37:16]Write to MH i2c: E2 08 00 47 2F 80 13 01 00 00 00 00 00 F3 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 0E 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 0E 00 47 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 1F [23:37:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:37:16]wFMCommunicate OK [23:37:16]SAM_PROTO_GetShiftState done [23:37:16]FM_GetShiftState done [23:37:16]req_shift_opened done [23:37:16]requested_item shift.open_date is exist - process it [23:37:16]req_shift_open_date [23:37:16]req_shift_open_date done [23:37:16]produce_requested_data done [23:37:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70046,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:37:16]process_action_free close_receipt [23:37:16]json_value_free [23:37:16]json_value_free done [23:37:16]process_json_proto returns [23:37:16]Send response to host [23:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70046,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:37:16]free response buf [23:37:16]execute_script done [23:37:16]execute_script returns [23:37:16]free content buf [23:37:16]Sock 9.Close socket [23:37:16]Sock 9.Thread stoped [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:50]accept exits with 7 [23:42:50]New connection [23:42:50]New thread 3067170148 created [23:42:50]Thread 3067026788 joined [23:42:50]Waiting for new connection... [23:42:50] Sock 7.Parse request [23:42:50]Sock 7.Check first char [23:42:50]Sock 7.First char is OK [23:42:50]request: POST /json_proto HTTP/1.0 [23:42:50]Method: POST [23:42:50]URL: /json_proto [23:42:50]Method is POST - this is cgi request [23:42:50]url: /json_proto [23:42:50]query_string will be loaded in cgi processing [23:42:50]execute_cgi json_proto POST (null) [23:42:50]execute_cgi path=json_proto method=POST [23:42:50]POST find Content-Length [23:42:50]Host: 172.17.50.3:8080 [23:42:50]Content-Length: 683 [23:42:50]Content-Type: application/json [23:42:50] [23:42:50]POST finish read [23:42:50]Found Content-Length = 683 [23:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.340, "sum" : 596.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:50]execute_script... [23:42: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)2885815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.340, "sum" : 596.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:50]POST & json_proto [23:42:50]process_json_proto [23:42:50]json parsed OK: [23:42:50]protocol is kg_v1.0 [23:42:50]action value=close_receipt [23:42:50]process_action close_receipt [23:42:50]cmd_close_receipt [23:42:50]MH_GetDate [23:42:50]Write to MH i2c: F0 00 00 48 2F 66 [23:42:50]Write i2c OK [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: F0 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: F0 09 00 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: F0 09 00 48 2F 00 FC E6 16 67 6B 98 1E 66 55 [23:42:50]GetLastDocTimeStamp 1729553835 [23:42:50]current date 1729554172 [23:42:50]FM_GetShiftState [23:42:50]SAM_PROTO_GetShiftState [23:42:50]wFMCommunicate request_size=4 [23:42:50]MH_SAM_APDU [23:42:50]CAPDU: 80 13 01 00 [23:42:50]Write to MH i2c: E2 08 00 49 2F 80 13 01 00 00 00 00 00 F5 [23:42:50]Write i2c OK [23:42:50]MH_I2C_Read... [23:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:50]Read from MH i2c: E2 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 0E 00 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 0E 00 49 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 21 [23:42:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:42:50]wFMCommunicate OK [23:42:50]SAM_PROTO_GetShiftState done [23:42:50]FM_GetShiftState done [23:42:50]opened in 1729469703 [23:42:50]opened+sec_in_day 1729556103 [23:42:50]quantity*price = 59672 [23:42:50]sum+1 = 59674 [23:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 596.00 Внесено: 1500.00 СДАЧА: 904.00 НСП 1% : 5.28 НДС 12% : 63.37 Наличными: 596.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 437 21.10.2024 23:42 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70047 ФПД: 140707187962107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70047&fm=140707187962107&tin=02508201610067®Number=0000000000156251&sum=59600 [23:42:51]StoreToDocumentArchive [23:42:51]shift 194 fd 70047 [23:42:51]save to /storage/0194/doc_00070047 [23:42:51]save last doc name /storage/0194/doc_00070047 to /storage/kkm_last_doc_name [23:42:51]save OK [23:42:51]Clear old archive folders... [23:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:42:51]tlvbuf is 01127670 [23:42:51]SAM_PROTO_ClearQueue [23:42:51]wFMCommunicate request_size=4 [23:42:51]MH_SAM_APDU [23:42:51]CAPDU: 80 09 00 00 [23:42:51]Write to MH i2c: E2 08 00 56 2F 80 09 00 00 00 00 00 00 F7 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 56 2F 00 90 00 F9 [23:42:51]RAPDU: 90 00 [23:42:51]wFMCommunicate OK [23:42:51]SAM_PROTO_ClearQueue done [23:42:51]KKMCreateOFDPacket [23:42:51]OFDProtocolAddRootSTLVToBuf [23:42:51]FM_MakeSignedData [23:42:51]FM_MakeSignedData [23:42:51]SAM_PROTO_SignData [23:42:51]wFMCommunicate request_size=4 [23:42:51]MH_SAM_APDU [23:42:51]CAPDU: 80 0D 01 02 [23:42:51]Write to MH i2c: E2 08 00 57 2F 80 0D 01 02 00 00 00 00 FF [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 57 2F 00 90 00 FA [23:42:51]RAPDU: 90 00 [23:42:51]wFMCommunicate OK [23:42:51]wFMCommunicate request_size=255 [23:42:51]MH_SAM_APDU [23:42:51]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 33 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 19 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 FC E6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 11 01 00 35 04 06 00 7F F8 [23:42:51]Write to MH i2c: E2 02 01 58 2F 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 33 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 19 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 FC E6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 11 01 00 35 04 06 00 7F F8 00 00 75 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [23:42:51]RAPDU: 90 00 [23:42:51]wFMCommunicate OK [23:42:51]wFMCommunicate request_size=9 [23:42:51]MH_SAM_APDU [23:42:51]CAPDU: 80 0D 02 02 04 F1 F4 B0 FB [23:42:51]Write to MH i2c: E2 0C 00 59 2F 80 0D 02 02 04 00 F1 F4 B0 FB 00 00 9A [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [23:42:51]RAPDU: 90 00 [23:42:51]wFMCommunicate OK [23:42:51]wFMCommunicate request_size=4 [23:42:51]MH_SAM_APDU [23:42:51]CAPDU: 80 0D 03 02 [23:42:51]Write to MH i2c: E2 08 00 5A 2F 80 0D 03 02 00 00 00 00 04 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 0B 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 0B 00 5A 2F 00 F5 48 CF AB 78 7B E1 98 90 00 28 [23:42:51]RAPDU: F5 48 CF AB 78 7B E1 98 90 00 [23:42:51]wFMCommunicate OK [23:42:51]SAM_PROTO_SignData done [23:42:51]FM_MakeSignedData done [23:42:51]CreateOFDProtocolMessage [23:42:51]wFMCommunicate request_size=4 [23:42:51]MH_SAM_APDU [23:42:51]CAPDU: 80 11 00 00 [23:42:51]Write to MH i2c: E2 08 00 5B 2F 80 11 00 00 00 00 00 00 04 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:51]Read from MH i2c: E2 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 17 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: E2 17 00 5B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [23:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:42:51]wFMCommunicate OK [23:42:51]CreateOFDProtocolMessage done [23:42:51]OFDSenderStorePacket 70047 [23:42:51]StoreOFDPacket docnum=70047 [23:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 84 AC 06 01 22 B8 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 33 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 19 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 FC E6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 11 01 00 35 04 06 00 7F F8 F1 F4 B0 FB F5 48 CF AB 78 7B E1 98 [23:42:51]CheckFolder [23:42:51]dirname=/storage/ofd_packets [23:42:51]CheckFolder done [23:42:51]ProducePacketName [23:42:51]name=ofd_packets/00070047 [23:42:51]NVStorageSaveData ofd_packets/00070047 [23:42:51]File name is /storage/ofd_packets/00070047 [23:42:51]Write 300 bytes [23:42:51]NVStorageSaveData done [23:42:51]OFDSenderStorePacket done [23:42:51]KKMCreateOFDPacket done [23:42:51]NVStorageSaveData kkm_last_timestamp [23:42:51]File name is /storage/kkm_last_timestamp [23:42:51]Write 4 bytes [23:42:51]NVStorageSaveData done [23:42:51]ExternCall_PrintAddStr [23:42:51]wPrintStart [23:42:51]Write to MH i2c: 01 00 00 5C 2F 8B [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 5C 2F 00 00 00 00 00 FF 0F A0 [23:42:51]RasterBufferAndPrint [23:42:51]line Счет N : (1)2885815 [23:42:51]line ИНН: 02508201610067 [23:42:51]line Контрольно-Кассовый Чек [23:42:51]line ПРОДАЖА [23:42:51]line ТРК (МРК, ГНК) : 71 [23:42:51]line Товар: 2711129700 [23:42:51]line ГАЗ-К-3 [23:42:51]line 15.340 * 38.90 [23:42:51]line = 596.73 [23:42:51]line НДС 12% НСП 1% [23:42:51]line > о реализуемом товаре [23:42:51]line ОКРУГЛЕНИЕ: -0.73 [23:42:51]line ИТОГО: 596.00 [23:42:51]line Внесено: 1500.00 [23:42:51]line СДАЧА: 904.00 [23:42:51]line НСП 1% : 5.28 [23:42:51]line НДС 12% : 63.37 [23:42:51]line Наличными: 596.00 [23:42:51]line Безнал.: 0.00 [23:42:51]line Место: АЗС № 85 "Партнер Нефть" [23:42:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:42:51]line СНО: Общий режим [23:42:51]line Чек 437 21.10.2024 23:42 [23:42:51]line Смена: 194 ФФД: 1.0 [23:42:51]line ЗНМ: 0300000167 [23:42:51]line РНМ: 0000000000156251 [23:42:51]line Версия ККМ: v1.0 [23:42:51]line ФМ: 0000000000963346 [23:42:51]line ФД: 70047 [23:42:51]line ФПД: 140707187962107 [23:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234252&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70047&fm=140707187962107&tin=02508201610067®Number=0000000000156251&sum=59600 [23:42:52]OFD Sender: Processing packet 70047 [packets to send 18, broken 17] [23:42:52]ProducePacketName [23:42:52]name=ofd_packets/00070047 [23:42:52]OFD Sender: To server: pG, [23:42:52]CommunicateWithHost lk.salyk.kg:30040 [23:42:52]ConnectInit lk.salyk.kg [23:42:52]written 0, free lines is 4095 [23:42:52]Connected sock=10 [23:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 84 AC 06 01 22 B8 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 33 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 19 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 18 00 00 00 00 07 04 06 00 D0 E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 FC E6 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 11 01 00 35 04 06 00 7F F8 F1 F4 B0 FB F5 48 CF AB 78 7B E1 98 [23:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 47 23 47 00 A5 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 11 01 00 F4 03 04 00 9F 90 16 67 B6 04 01 00 00 78 41 51 E8 7B D8 09 D0 [23:42:52]CommunicateWithHost err = 0 [23:42:52]CheckOFDResponse [23:42:52]1017 (14) - 77093643461234 [23:42:52]1041 (16) - 0000000000963346 [23:42:52]1040 (4) - 70047 [23:42:52]1012 (4) - 21.10.2024 17:34 [23:42:52]1206 (1) - 0 [23:42:52]OFD Sender: Remove packet 70047 [23:42:52]ProducePacketName [23:42:52]name=ofd_packets/00070047 [23:42:52]NVStorageDeleteData [23:42:52]Write to MH i2c: 01 00 00 87 2F B6 [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: 01 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: 01 07 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 E7 0C B0 [23:42:52]RasterBufferAndPrint [23:42:52]line [23:42:52]line [23:42:52]line [23:42:52]line [23:42:52]line [23:42:52]written 0, free lines is 3310 [23:42:52]MH_Cut [23:42:52]Write to MH i2c: D1 01 00 8E 2F 01 8F [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: D1 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: D1 01 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: D1 01 00 8E 2F 00 8E [23:42:52]Write to MH i2c: 01 00 00 8F 2F BE [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:53]OFD Sender: No OFD packet to send [23:42:53]*** Cut start [23:42:53]*** Partial cut [23:42:53]*** CUTSNS_PIN = 1 [23:42:53]*** CUTSNS_PIN = 0 [23:42:53]*** Brake cut motor [23:42:53]Read from MH i2c: 01 [23:42:53]MH_I2C_Read... [23:42:53]*** Stop cut motor [23:42:53]*** Cut end [23:42:53]Read from MH i2c: 01 07 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: 01 07 00 8F 2F 00 00 00 00 00 FF 0F D3 [23:42:54]process_action close_receipt done [23:42:54]requested_data is exist [23:42:54]produce_requested_data [23:42:54]requested_item fm.sn is exist - process it [23:42:54]wFMCommunicate request_size=4 [23:42:54]MH_SAM_APDU [23:42:54]CAPDU: 80 11 00 00 [23:42:54]Write to MH i2c: E2 08 00 90 2F 80 11 00 00 00 00 00 00 39 [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:54]Read from MH i2c: E2 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 17 00 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 17 00 90 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [23:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:42:54]wFMCommunicate OK [23:42:54]requested_item fd.num is exist - process it [23:42:54]SAM_PROTO_GetFieldsCounters [23:42:54]wFMCommunicate request_size=4 [23:42:54]MH_SAM_APDU [23:42:54]CAPDU: 80 13 00 00 [23:42:54]Write to MH i2c: E2 08 00 91 2F 80 13 00 00 00 00 00 00 3C [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:54]Read from MH i2c: E2 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 62 00 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 62 00 91 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [23:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:54]wFMCommunicate OK [23:42:54]SAM_PROTO_GetFieldsCounters done [23:42:54]requested_item shift.num is exist - process it [23:42:54]requested_item shift.opened is exist - process it [23:42:54]req_shift_opened [23:42:54]FM_GetShiftState [23:42:54]SAM_PROTO_GetShiftState [23:42:54]wFMCommunicate request_size=4 [23:42:54]MH_SAM_APDU [23:42:54]CAPDU: 80 13 01 00 [23:42:54]Write to MH i2c: E2 08 00 92 2F 80 13 01 00 00 00 00 00 3E [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:54]Read from MH i2c: E2 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 0E 00 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: E2 0E 00 92 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6A [23:42:54]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:42:54]wFMCommunicate OK [23:42:54]SAM_PROTO_GetShiftState done [23:42:54]FM_GetShiftState done [23:42:54]req_shift_opened done [23:42:54]requested_item shift.open_date is exist - process it [23:42:54]req_shift_open_date [23:42:54]req_shift_open_date done [23:42:54]produce_requested_data done [23:42:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70047,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:42:54]process_action_free close_receipt [23:42:54]json_value_free [23:42:54]json_value_free done [23:42:54]process_json_proto returns [23:42:54]Send response to host [23:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70047,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:42:54]free response buf [23:42:54]execute_script done [23:42:54]execute_script returns [23:42:54]free content buf [23:42:54]Sock 7.Close socket [23:42:54]Sock 7.Thread stoped [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:55]accept exits with 9 [23:47:55]New connection [23:47:55]New thread 3067026788 created [23:47:55]Thread 3067170148 joined [23:47:55]Waiting for new connection... [23:47:55] Sock 9.Parse request [23:47:55]Sock 9.Check first char [23:47:55]Sock 9.First char is OK [23:47:55]request: POST /json_proto HTTP/1.0 [23:47:55]Method: POST [23:47:55]URL: /json_proto [23:47:55]Method is POST - this is cgi request [23:47:55]url: /json_proto [23:47:55]query_string will be loaded in cgi processing [23:47:55]execute_cgi json_proto POST (null) [23:47:55]execute_cgi path=json_proto method=POST [23:47:55]POST find Content-Length [23:47:55]Host: 172.17.50.3:8080 [23:47:55]Content-Length: 686 [23:47:55]Content-Type: application/json [23:47:55] [23:47:55]POST finish read [23:47:55]Found Content-Length = 686 [23:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [23:47:55]execute_script... [23:47:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [23:47:55]POST & json_proto [23:47:55]process_json_proto [23:47:55]json parsed OK: [23:47:55]protocol is kg_v1.0 [23:47:55]action value=close_receipt [23:47:55]process_action close_receipt [23:47:55]cmd_close_receipt [23:47:55]MH_GetDate [23:47:55]Write to MH i2c: F0 00 00 93 2F B1 [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: F0 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: F0 09 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: F0 09 00 93 2F 00 2E E8 16 67 6B 98 1E 66 D4 [23:47:55]GetLastDocTimeStamp 1729554172 [23:47:55]current date 1729554478 [23:47:55]FM_GetShiftState [23:47:55]SAM_PROTO_GetShiftState [23:47:55]wFMCommunicate request_size=4 [23:47:55]MH_SAM_APDU [23:47:55]CAPDU: 80 13 01 00 [23:47:55]Write to MH i2c: E2 08 00 94 2F 80 13 01 00 00 00 00 00 40 [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 0E 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 0E 00 94 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6C [23:47:55]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:47:55]wFMCommunicate OK [23:47:55]SAM_PROTO_GetShiftState done [23:47:55]FM_GetShiftState done [23:47:55]opened in 1729469703 [23:47:55]opened+sec_in_day 1729556103 [23:47:55]quantity*price = 200023 [23:47:55]sum+1 = 200025 [23:47:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 438 21.10.2024 23:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70048 ФПД: 136237054911138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70048&fm=136237054911138&tin=02508201610067®Number=0000000000156251&sum=200000 [23:47:56]StoreToDocumentArchive [23:47:56]shift 194 fd 70048 [23:47:56]save to /storage/0194/doc_00070048 [23:47:56]save last doc name /storage/0194/doc_00070048 to /storage/kkm_last_doc_name [23:47:56]save OK [23:47:56]Clear old archive folders... [23:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:47:56]tlvbuf is 011A1790 [23:47:56]SAM_PROTO_ClearQueue [23:47:56]wFMCommunicate request_size=4 [23:47:56]MH_SAM_APDU [23:47:56]CAPDU: 80 09 00 00 [23:47:56]Write to MH i2c: E2 08 00 A1 2F 80 09 00 00 00 00 00 00 42 [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:56]Read from MH i2c: E2 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 03 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 03 00 A1 2F 00 90 00 44 [23:47:56]RAPDU: 90 00 [23:47:56]wFMCommunicate OK [23:47:56]SAM_PROTO_ClearQueue done [23:47:56]KKMCreateOFDPacket [23:47:56]OFDProtocolAddRootSTLVToBuf [23:47:56]FM_MakeSignedData [23:47:56]FM_MakeSignedData [23:47:56]SAM_PROTO_SignData [23:47:56]wFMCommunicate request_size=4 [23:47:56]MH_SAM_APDU [23:47:56]CAPDU: 80 0D 01 02 [23:47:56]Write to MH i2c: E2 08 00 A2 2F 80 0D 01 02 00 00 00 00 4A [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:56]Read from MH i2c: E2 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 03 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: E2 03 00 A2 2F 00 90 00 45 [23:47:56]RAPDU: 90 00 [23:47:56]wFMCommunicate OK [23:47:56]wFMCommunicate request_size=255 [23:47:56]MH_SAM_APDU [23:47:56]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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 B6 01 00 00 F4 03 04 00 2E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 11 01 00 35 04 06 00 7B E8 [23:47:56]Write to MH i2c: E2 02 01 A3 2F 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 B6 01 00 00 F4 03 04 00 2E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 11 01 00 35 04 06 00 7B E8 00 00 45 [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 03 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 03 00 A3 2F 00 90 00 46 [23:47:57]RAPDU: 90 00 [23:47:57]wFMCommunicate OK [23:47:57]wFMCommunicate request_size=9 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 0D 02 02 04 29 43 62 A2 [23:47:57]Write to MH i2c: E2 0C 00 A4 2F 80 0D 02 02 04 00 29 43 62 A2 00 00 C5 [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 03 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [23:47:57]RAPDU: 90 00 [23:47:57]wFMCommunicate OK [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 0D 03 02 [23:47:57]Write to MH i2c: E2 08 00 A5 2F 80 0D 03 02 00 00 00 00 4F [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0B 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0B 00 A5 2F 00 4F F1 B4 36 F9 39 0E 1F 90 00 D9 [23:47:57]RAPDU: 4F F1 B4 36 F9 39 0E 1F 90 00 [23:47:57]wFMCommunicate OK [23:47:57]SAM_PROTO_SignData done [23:47:57]FM_MakeSignedData done [23:47:57]CreateOFDProtocolMessage [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 11 00 00 [23:47:57]Write to MH i2c: E2 08 00 A6 2F 80 11 00 00 00 00 00 00 4F [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 17 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 17 00 A6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [23:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:47:57]wFMCommunicate OK [23:47:57]CreateOFDProtocolMessage done [23:47:57]OFDSenderStorePacket 70048 [23:47:57]StoreOFDPacket docnum=70048 [23:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 63 0A 06 01 99 24 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 B6 01 00 00 F4 03 04 00 2E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 11 01 00 35 04 06 00 7B E8 29 43 62 A2 4F F1 B4 36 F9 39 0E 1F [23:47:57]CheckFolder [23:47:57]dirname=/storage/ofd_packets [23:47:57]CheckFolder done [23:47:57]ProducePacketName [23:47:57]name=ofd_packets/00070048 [23:47:57]NVStorageSaveData ofd_packets/00070048 [23:47:57]File name is /storage/ofd_packets/00070048 [23:47:57]Write 300 bytes [23:47:57]NVStorageSaveData done [23:47:57]OFDSenderStorePacket done [23:47:57]KKMCreateOFDPacket done [23:47:57]NVStorageSaveData kkm_last_timestamp [23:47:57]File name is /storage/kkm_last_timestamp [23:47:57]Write 4 bytes [23:47:57]NVStorageSaveData done [23:47:57]ExternCall_PrintAddStr [23:47:57]wPrintStart [23:47:57]Write to MH i2c: 01 00 00 A7 2F D6 [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: 01 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: 01 07 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: 01 07 00 A7 2F 00 00 00 00 00 FF 0F EB [23:47:57]RasterBufferAndPrint [23:47:57]line Счет N : (1)2885816 [23:47:57]line ИНН: 02508201610067 [23:47:57]line Контрольно-Кассовый Чек [23:47:57]line ПРОДАЖА [23:47:57]line ТРК (МРК, ГНК) : 71 [23:47:57]line Товар: 2711129700 [23:47:57]line ГАЗ-К-3 [23:47:57]line 51.420 * 38.90 [23:47:57]line = 2000.24 [23:47:57]line НДС 12% НСП 1% [23:47:57]line > о реализуемом товаре [23:47:57]line ОКРУГЛЕНИЕ: -0.24 [23:47:57]line ИТОГО: 2000.00 [23:47:57]line Внесено: 2000.00 [23:47:57]line СДАЧА: 0.00 [23:47:57]line НСП 1% : 17.70 [23:47:57]line НДС 12% : 212.41 [23:47:57]line Наличными: 2000.00 [23:47:57]line Безнал.: 0.00 [23:47:57]line Место: АЗС № 85 "Партнер Нефть" [23:47:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:47:57]line СНО: Общий режим [23:47:57]line Чек 438 21.10.2024 23:47 [23:47:57]line Смена: 194 ФФД: 1.0 [23:47:57]line ЗНМ: 0300000167 [23:47:57]line РНМ: 0000000000156251 [23:47:57]line Версия ККМ: v1.0 [23:47:57]line ФМ: 0000000000963346 [23:47:57]line ФД: 70048 [23:47:57]line ФПД: 136237054911138 [23:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234758&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70048&fm=136237054911138&tin=02508201610067®Number=0000000000156251&sum=200000 [23:47:57]OFD Sender: Processing packet 70048 [packets to send 18, broken 17] [23:47:57]ProducePacketName [23:47:57]name=ofd_packets/00070048 [23:47:57]OFD Sender: To server: pG, [23:47:57]CommunicateWithHost lk.salyk.kg:30040 [23:47:57]ConnectInit lk.salyk.kg [23:47:57]written 0, free lines is 4095 [23:47:57]Connected sock=10 [23:47:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 63 0A 06 01 99 24 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 B6 01 00 00 F4 03 04 00 2E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 11 01 00 35 04 06 00 7B E8 29 43 62 A2 4F F1 B4 36 F9 39 0E 1F [23:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AE 00 47 00 B6 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 11 01 00 F4 03 04 00 D0 91 16 67 B6 04 01 00 00 85 CB E2 D6 47 FE C2 BF [23:47:58]CommunicateWithHost err = 0 [23:47:58]CheckOFDResponse [23:47:58]1017 (14) - 77093643461234 [23:47:58]1041 (16) - 0000000000963346 [23:47:58]1040 (4) - 70048 [23:47:58]1012 (4) - 21.10.2024 17:39 [23:47:58]1206 (1) - 0 [23:47:58]OFD Sender: Remove packet 70048 [23:47:58]ProducePacketName [23:47:58]name=ofd_packets/00070048 [23:47:58]NVStorageDeleteData [23:47:58]Write to MH i2c: 01 00 00 D2 2F 01 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: 01 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: 01 07 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 E7 0C FB [23:47:58]RasterBufferAndPrint [23:47:58]line [23:47:58]line [23:47:58]line [23:47:58]line [23:47:58]line [23:47:58]written 0, free lines is 3309 [23:47:58]MH_Cut [23:47:58]Write to MH i2c: D1 01 00 D9 2F 01 DA [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: D1 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: D1 01 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: D1 01 00 D9 2F 00 D9 [23:47:58]Write to MH i2c: 01 00 00 DA 2F 09 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]OFD Sender: No OFD packet to send [23:47:58]*** Cut start [23:47:58]*** Partial cut [23:47:58]*** CUTSNS_PIN = 1 [23:47:58]*** CUTSNS_PIN = 0 [23:47:59]*** Brake cut motor [23:47:59]Read from MH i2c: 01 [23:47:59]MH_I2C_Read... [23:47:59]*** Stop cut motor [23:47:59]*** Cut end [23:47:59]Read from MH i2c: 01 07 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 07 00 DA 2F 00 00 00 00 00 FF 0F 1E [23:47:59]process_action close_receipt done [23:47:59]requested_data is exist [23:47:59]produce_requested_data [23:47:59]requested_item fm.sn is exist - process it [23:47:59]wFMCommunicate request_size=4 [23:47:59]MH_SAM_APDU [23:47:59]CAPDU: 80 11 00 00 [23:47:59]Write to MH i2c: E2 08 00 DB 2F 80 11 00 00 00 00 00 00 84 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 17 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 17 00 DB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [23:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:47:59]wFMCommunicate OK [23:47:59]requested_item fd.num is exist - process it [23:47:59]SAM_PROTO_GetFieldsCounters [23:47:59]wFMCommunicate request_size=4 [23:47:59]MH_SAM_APDU [23:47:59]CAPDU: 80 13 00 00 [23:47:59]Write to MH i2c: E2 08 00 DC 2F 80 13 00 00 00 00 00 00 87 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 62 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 62 00 DC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:47:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:59]wFMCommunicate OK [23:47:59]SAM_PROTO_GetFieldsCounters done [23:47:59]requested_item shift.num is exist - process it [23:47:59]requested_item shift.opened is exist - process it [23:47:59]req_shift_opened [23:47:59]FM_GetShiftState [23:47:59]SAM_PROTO_GetShiftState [23:47:59]wFMCommunicate request_size=4 [23:47:59]MH_SAM_APDU [23:47:59]CAPDU: 80 13 01 00 [23:47:59]Write to MH i2c: E2 08 00 DD 2F 80 13 01 00 00 00 00 00 89 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 0E 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 0E 00 DD 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B5 [23:47:59]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:47:59]wFMCommunicate OK [23:47:59]SAM_PROTO_GetShiftState done [23:47:59]FM_GetShiftState done [23:47:59]req_shift_opened done [23:47:59]requested_item shift.open_date is exist - process it [23:47:59]req_shift_open_date [23:47:59]req_shift_open_date done [23:47:59]produce_requested_data done [23:47:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70048,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:47:59]process_action_free close_receipt [23:47:59]json_value_free [23:47:59]json_value_free done [23:47:59]process_json_proto returns [23:47:59]Send response to host [23:47:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70048,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:47:59]free response buf [23:47:59]execute_script done [23:47:59]execute_script returns [23:47:59]free content buf [23:47:59]Sock 9.Close socket [23:47:59]Sock 9.Thread stoped [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:44]accept exits with 7 [23:48:44]New connection [23:48:44]New thread 3067170148 created [23:48:44]Thread 3067026788 joined [23:48:44]Waiting for new connection... [23:48:44] Sock 7.Parse request [23:48:44]Sock 7.Check first char [23:48:44]Sock 7.First char is OK [23:48:44]request: POST /json_proto HTTP/1.0 [23:48:44]Method: POST [23:48:44]URL: /json_proto [23:48:44]Method is POST - this is cgi request [23:48:44]url: /json_proto [23:48:44]query_string will be loaded in cgi processing [23:48:44]execute_cgi json_proto POST (null) [23:48:44]execute_cgi path=json_proto method=POST [23:48:44]POST find Content-Length [23:48:44]Host: 172.17.50.3:8080 [23:48:44]Content-Length: 683 [23:48:44]Content-Type: application/json [23:48:44] [23:48:44]POST finish read [23:48:44]Found Content-Length = 683 [23:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:44]execute_script... [23:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:44]POST & json_proto [23:48:44]process_json_proto [23:48:44]json parsed OK: [23:48:44]protocol is kg_v1.0 [23:48:44]action value=close_receipt [23:48:44]process_action close_receipt [23:48:44]cmd_close_receipt [23:48:44]MH_GetDate [23:48:44]Write to MH i2c: F0 00 00 DE 2F FC [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: F0 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: F0 09 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: F0 09 00 DE 2F 00 5E E8 16 67 6B 98 1E 66 4F [23:48:44]GetLastDocTimeStamp 1729554478 [23:48:44]current date 1729554526 [23:48:44]FM_GetShiftState [23:48:44]SAM_PROTO_GetShiftState [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 13 01 00 [23:48:44]Write to MH i2c: E2 08 00 DF 2F 80 13 01 00 00 00 00 00 8B [23:48:44]Write i2c OK [23:48:44]MH_I2C_Read... [23:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:44]Read from MH i2c: E2 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 0E 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: E2 0E 00 DF 2F 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B7 [23:48:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:48:44]wFMCommunicate OK [23:48:44]SAM_PROTO_GetShiftState done [23:48:44]FM_GetShiftState done [23:48:44]opened in 1729469703 [23:48:44]opened+sec_in_day 1729556103 [23:48:44]quantity*price = 100015 [23:48:44]sum+1 = 100017 [23:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 439 21.10.2024 23:48 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70049 ФПД: 274653413879466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70049&fm=274653413879466&tin=02508201610067®Number=0000000000156251&sum=100000 [23:48:45]StoreToDocumentArchive [23:48:45]shift 194 fd 70049 [23:48:45]save to /storage/0194/doc_00070049 [23:48:45]save last doc name /storage/0194/doc_00070049 to /storage/kkm_last_doc_name [23:48:45]save OK [23:48:45]Clear old archive folders... [23:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:45]tlvbuf is 011618E0 [23:48:45]SAM_PROTO_ClearQueue [23:48:45]wFMCommunicate request_size=4 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 09 00 00 [23:48:45]Write to MH i2c: E2 08 00 EC 2F 80 09 00 00 00 00 00 00 8D [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 EC 2F 00 90 00 8F [23:48:45]RAPDU: 90 00 [23:48:45]wFMCommunicate OK [23:48:45]SAM_PROTO_ClearQueue done [23:48:45]KKMCreateOFDPacket [23:48:45]OFDProtocolAddRootSTLVToBuf [23:48:45]FM_MakeSignedData [23:48:45]FM_MakeSignedData [23:48:45]SAM_PROTO_SignData [23:48:45]wFMCommunicate request_size=4 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 0D 01 02 [23:48:45]Write to MH i2c: E2 08 00 ED 2F 80 0D 01 02 00 00 00 00 95 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 ED 2F 00 90 00 90 [23:48:45]RAPDU: 90 00 [23:48:45]wFMCommunicate OK [23:48:45]wFMCommunicate request_size=255 [23:48:45]MH_SAM_APDU [23:48:45]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 5E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 11 01 00 35 04 06 00 F9 [23:48:45]Write to MH i2c: E2 02 01 EE 2F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 5E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 11 01 00 35 04 06 00 F9 00 00 01 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [23:48:45]RAPDU: 90 00 [23:48:45]wFMCommunicate OK [23:48:45]wFMCommunicate request_size=10 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 0D 02 02 05 CB BB 2B AE AA [23:48:45]Write to MH i2c: E2 0D 00 EF 2F 80 0D 02 02 05 00 CB BB 2B AE AA 00 00 AB [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [23:48:45]RAPDU: 90 00 [23:48:45]wFMCommunicate OK [23:48:45]wFMCommunicate request_size=4 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 0D 03 02 [23:48:45]Write to MH i2c: E2 08 00 F0 2F 80 0D 03 02 00 00 00 00 9A [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:46]Read from MH i2c: E2 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 0B 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 0B 00 F0 2F 00 02 44 61 ED AB 43 05 3E 90 00 60 [23:48:46]RAPDU: 02 44 61 ED AB 43 05 3E 90 00 [23:48:46]wFMCommunicate OK [23:48:46]SAM_PROTO_SignData done [23:48:46]FM_MakeSignedData done [23:48:46]CreateOFDProtocolMessage [23:48:46]wFMCommunicate request_size=4 [23:48:46]MH_SAM_APDU [23:48:46]CAPDU: 80 11 00 00 [23:48:46]Write to MH i2c: E2 08 00 F1 2F 80 11 00 00 00 00 00 00 9A [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:46]Read from MH i2c: E2 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: E2 17 00 F1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [23:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:46]wFMCommunicate OK [23:48:46]CreateOFDProtocolMessage done [23:48:46]OFDSenderStorePacket 70049 [23:48:46]StoreOFDPacket docnum=70049 [23:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 68 9F 07 01 E7 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 5E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 11 01 00 35 04 06 00 F9 CB BB 2B AE AA 02 44 61 ED AB 43 05 3E [23:48:46]CheckFolder [23:48:46]dirname=/storage/ofd_packets [23:48:46]CheckFolder done [23:48:46]ProducePacketName [23:48:46]name=ofd_packets/00070049 [23:48:46]NVStorageSaveData ofd_packets/00070049 [23:48:46]File name is /storage/ofd_packets/00070049 [23:48:46]Write 301 bytes [23:48:46]NVStorageSaveData done [23:48:46]OFDSenderStorePacket done [23:48:46]KKMCreateOFDPacket done [23:48:46]NVStorageSaveData kkm_last_timestamp [23:48:46]File name is /storage/kkm_last_timestamp [23:48:46]Write 4 bytes [23:48:46]NVStorageSaveData done [23:48:46]ExternCall_PrintAddStr [23:48:46]wPrintStart [23:48:46]Write to MH i2c: 01 00 00 F2 2F 21 [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 07 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [23:48:46]RasterBufferAndPrint [23:48:46]line Счет N : (1)2885817 [23:48:46]line ИНН: 02508201610067 [23:48:46]line Контрольно-Кассовый Чек [23:48:46]line ПРОДАЖА [23:48:46]line ТРК (МРК, ГНК) : 12 [23:48:46]line Товар: 2710124130 [23:48:46]line Аи-92-К-5 [23:48:46]line 14.950 * 66.90 [23:48:46]line = 1000.16 [23:48:46]line НДС 12% НСП 1% [23:48:46]line > о реализуемом товаре [23:48:46]line ОКРУГЛЕНИЕ: -0.16 [23:48:46]line ИТОГО: 1000.00 [23:48:46]line Внесено: 1000.00 [23:48:46]line СДАЧА: 0.00 [23:48:46]line НСП 1% : 8.85 [23:48:46]line НДС 12% : 106.21 [23:48:46]line Наличными: 1000.00 [23:48:46]line Безнал.: 0.00 [23:48:46]line Место: АЗС № 85 "Партнер Нефть" [23:48:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:48:46]line СНО: Общий режим [23:48:46]line Чек 439 21.10.2024 23:48 [23:48:46]line Смена: 194 ФФД: 1.0 [23:48:46]line ЗНМ: 0300000167 [23:48:46]line РНМ: 0000000000156251 [23:48:46]line Версия ККМ: v1.0 [23:48:46]line ФМ: 0000000000963346 [23:48:46]line ФД: 70049 [23:48:46]line ФПД: 274653413879466 [23:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70049&fm=274653413879466&tin=02508201610067®Number=0000000000156251&sum=100000 [23:48:46]OFD Sender: Processing packet 70049 [packets to send 18, broken 17] [23:48:46]ProducePacketName [23:48:46]name=ofd_packets/00070049 [23:48:46]OFD Sender: To server: pG, [23:48:46]CommunicateWithHost lk.salyk.kg:30040 [23:48:46]ConnectInit lk.salyk.kg [23:48:46]written 0, free lines is 4095 [23:48:46]Connected sock=10 [23:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 68 9F 07 01 E7 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 5E E8 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 11 01 00 35 04 06 00 F9 CB BB 2B AE AA 02 44 61 ED AB 43 05 3E [23:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3C 3D 47 00 A8 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 11 01 00 F4 03 04 00 01 92 16 67 B6 04 01 00 00 32 D2 A4 EA F5 66 9D 1B [23:48:46]CommunicateWithHost err = 0 [23:48:46]CheckOFDResponse [23:48:46]1017 (14) - 77093643461234 [23:48:46]1041 (16) - 0000000000963346 [23:48:46]1040 (4) - 70049 [23:48:46]1012 (4) - 21.10.2024 17:40 [23:48:46]1206 (1) - 0 [23:48:46]OFD Sender: Remove packet 70049 [23:48:46]ProducePacketName [23:48:46]name=ofd_packets/00070049 [23:48:46]NVStorageDeleteData [23:48:46]Write to MH i2c: 01 00 00 1D 30 4D [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 07 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 FB 0C 5B [23:48:46]RasterBufferAndPrint [23:48:46]line [23:48:46]line [23:48:46]line [23:48:46]line [23:48:46]line [23:48:46]written 0, free lines is 3329 [23:48:46]MH_Cut [23:48:46]Write to MH i2c: D1 01 00 24 30 01 26 [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: D1 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: D1 01 00 [23:48:46]MH_I2C_Read... [23:48:46]Read from MH i2c: D1 01 00 24 30 00 25 [23:48:46]Write to MH i2c: 01 00 00 25 30 55 [23:48:46]Write i2c OK [23:48:46]MH_I2C_Read... [23:48:47]OFD Sender: No OFD packet to send [23:48:47]*** Cut start [23:48:47]*** Partial cut [23:48:47]*** CUTSNS_PIN = 1 [23:48:47]*** CUTSNS_PIN = 0 [23:48:47]*** Brake cut motor [23:48:48]Read from MH i2c: 01 [23:48:48]MH_I2C_Read... [23:48:48]*** Stop cut motor [23:48:48]*** Cut end [23:48:48]Read from MH i2c: 01 07 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: 01 07 00 25 30 00 00 00 00 00 FF 0F 6A [23:48:48]process_action close_receipt done [23:48:48]requested_data is exist [23:48:48]produce_requested_data [23:48:48]requested_item fm.sn is exist - process it [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 11 00 00 [23:48:48]Write to MH i2c: E2 08 00 26 30 80 11 00 00 00 00 00 00 D0 [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:48]Read from MH i2c: E2 17 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 17 00 26 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [23:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:48:48]wFMCommunicate OK [23:48:48]requested_item fd.num is exist - process it [23:48:48]SAM_PROTO_GetFieldsCounters [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 13 00 00 [23:48:48]Write to MH i2c: E2 08 00 27 30 80 13 00 00 00 00 00 00 D3 [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 62 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 62 00 27 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [23:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:48]wFMCommunicate OK [23:48:48]SAM_PROTO_GetFieldsCounters done [23:48:48]requested_item shift.num is exist - process it [23:48:48]requested_item shift.opened is exist - process it [23:48:48]req_shift_opened [23:48:48]FM_GetShiftState [23:48:48]SAM_PROTO_GetShiftState [23:48:48]wFMCommunicate request_size=4 [23:48:48]MH_SAM_APDU [23:48:48]CAPDU: 80 13 01 00 [23:48:48]Write to MH i2c: E2 08 00 28 30 80 13 01 00 00 00 00 00 D5 [23:48:48]Write i2c OK [23:48:48]MH_I2C_Read... [23:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:48]Read from MH i2c: E2 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 0E 00 [23:48:48]MH_I2C_Read... [23:48:48]Read from MH i2c: E2 0E 00 28 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 01 [23:48:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:48:48]wFMCommunicate OK [23:48:48]SAM_PROTO_GetShiftState done [23:48:48]FM_GetShiftState done [23:48:48]req_shift_opened done [23:48:48]requested_item shift.open_date is exist - process it [23:48:48]req_shift_open_date [23:48:48]req_shift_open_date done [23:48:48]produce_requested_data done [23:48:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70049,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:48:48]process_action_free close_receipt [23:48:48]json_value_free [23:48:48]json_value_free done [23:48:48]process_json_proto returns [23:48:48]Send response to host [23:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70049,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:48:48]free response buf [23:48:48]execute_script done [23:48:48]execute_script returns [23:48:48]free content buf [23:48:48]Sock 7.Close socket [23:48:48]Sock 7.Thread stoped [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:24]accept exits with 9 [23:52:24]New connection [23:52:24]New thread 3067026788 created [23:52:24]Thread 3067170148 joined [23:52:24]Waiting for new connection... [23:52:24] Sock 9.Parse request [23:52:24]Sock 9.Check first char [23:52:24]Sock 9.First char is OK [23:52:24]request: POST /json_proto HTTP/1.0 [23:52:24]Method: POST [23:52:24]URL: /json_proto [23:52:24]Method is POST - this is cgi request [23:52:24]url: /json_proto [23:52:24]query_string will be loaded in cgi processing [23:52:24]execute_cgi json_proto POST (null) [23:52:24]execute_cgi path=json_proto method=POST [23:52:24]POST find Content-Length [23:52:24]Host: 172.17.50.3:8080 [23:52:24]Content-Length: 686 [23:52:24]Content-Type: application/json [23:52:24] [23:52:24]POST finish read [23:52:24]Found Content-Length = 686 [23:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 64.210, "sum" : 2497.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2497.00, "payments": [ { "type": 0, "sum" : 2497.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:24]execute_script... [23:52: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)2885818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 64.210, "sum" : 2497.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2497.00, "payments": [ { "type": 0, "sum" : 2497.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:24]POST & json_proto [23:52:24]process_json_proto [23:52:24]json parsed OK: [23:52:24]protocol is kg_v1.0 [23:52:24]action value=close_receipt [23:52:24]process_action close_receipt [23:52:24]cmd_close_receipt [23:52:24]MH_GetDate [23:52:24]Write to MH i2c: F0 00 00 29 30 48 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 09 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 09 00 29 30 00 3B E9 16 67 6B 98 1E 66 79 [23:52:24]GetLastDocTimeStamp 1729554526 [23:52:24]current date 1729554747 [23:52:24]FM_GetShiftState [23:52:24]SAM_PROTO_GetShiftState [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 13 01 00 [23:52:24]Write to MH i2c: E2 08 00 2A 30 80 13 01 00 00 00 00 00 D7 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 0E 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 0E 00 2A 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 03 [23:52:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:52:24]wFMCommunicate OK [23:52:24]SAM_PROTO_GetShiftState done [23:52:24]FM_GetShiftState done [23:52:24]opened in 1729469703 [23:52:24]opened+sec_in_day 1729556103 [23:52:24]quantity*price = 249776 [23:52:24]sum+1 = 249778 [23:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 2497.00 Внесено: 4000.00 СДАЧА: 1503.00 НСП 1% : 22.10 НДС 12% : 265.25 Наличными: 2497.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 440 21.10.2024 23:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70050 ФПД: 95001106455548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70050&fm=95001106455548&tin=02508201610067®Number=0000000000156251&sum=249700 [23:52:25]StoreToDocumentArchive [23:52:25]shift 194 fd 70050 [23:52:25]save to /storage/0194/doc_00070050 [23:52:25]save last doc name /storage/0194/doc_00070050 to /storage/kkm_last_doc_name [23:52:25]save OK [23:52:25]Clear old archive folders... [23:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:52:25]tlvbuf is 011AD750 [23:52:25]SAM_PROTO_ClearQueue [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 09 00 00 [23:52:25]Write to MH i2c: E2 08 00 37 30 80 09 00 00 00 00 00 00 D9 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 37 30 00 90 00 DB [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]SAM_PROTO_ClearQueue done [23:52:25]KKMCreateOFDPacket [23:52:25]OFDProtocolAddRootSTLVToBuf [23:52:25]FM_MakeSignedData [23:52:25]FM_MakeSignedData [23:52:25]SAM_PROTO_SignData [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 0D 01 02 [23:52:25]Write to MH i2c: E2 08 00 38 30 80 0D 01 02 00 00 00 00 E1 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=255 [23:52:25]MH_SAM_APDU [23:52: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 33 FF 03 08 00 03 D2 FA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 67 00 00 00 00 07 04 06 00 64 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 3B E9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 11 01 00 35 04 06 00 56 67 [23:52:25]Write to MH i2c: E2 02 01 39 30 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 33 FF 03 08 00 03 D2 FA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 67 00 00 00 00 07 04 06 00 64 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 3B E9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 11 01 00 35 04 06 00 56 67 00 00 CA [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 03 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [23:52:26]RAPDU: 90 00 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=9 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 0D 02 02 04 2B 34 1B FC [23:52:26]Write to MH i2c: E2 0C 00 3A 30 80 0D 02 02 04 00 2B 34 1B FC 00 00 62 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 03 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [23:52:26]RAPDU: 90 00 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 0D 03 02 [23:52:26]Write to MH i2c: E2 08 00 3B 30 80 0D 03 02 00 00 00 00 E6 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 0B 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 0B 00 3B 30 00 64 90 D6 ED D2 26 2C 47 90 00 09 [23:52:26]RAPDU: 64 90 D6 ED D2 26 2C 47 90 00 [23:52:26]wFMCommunicate OK [23:52:26]SAM_PROTO_SignData done [23:52:26]FM_MakeSignedData done [23:52:26]CreateOFDProtocolMessage [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 11 00 00 [23:52:26]Write to MH i2c: E2 08 00 3C 30 80 11 00 00 00 00 00 00 E6 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 17 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 17 00 3C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [23:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:52:26]wFMCommunicate OK [23:52:26]CreateOFDProtocolMessage done [23:52:26]OFDSenderStorePacket 70050 [23:52:26]StoreOFDPacket docnum=70050 [23:52:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 92 79 06 01 23 DF 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 33 FF 03 08 00 03 D2 FA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 67 00 00 00 00 07 04 06 00 64 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 3B E9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 11 01 00 35 04 06 00 56 67 2B 34 1B FC 64 90 D6 ED D2 26 2C 47 [23:52:26]CheckFolder [23:52:26]dirname=/storage/ofd_packets [23:52:26]CheckFolder done [23:52:26]ProducePacketName [23:52:26]name=ofd_packets/00070050 [23:52:26]NVStorageSaveData ofd_packets/00070050 [23:52:26]File name is /storage/ofd_packets/00070050 [23:52:26]Write 300 bytes [23:52:26]NVStorageSaveData done [23:52:26]OFDSenderStorePacket done [23:52:26]KKMCreateOFDPacket done [23:52:26]NVStorageSaveData kkm_last_timestamp [23:52:26]File name is /storage/kkm_last_timestamp [23:52:26]Write 4 bytes [23:52:26]NVStorageSaveData done [23:52:26]ExternCall_PrintAddStr [23:52:26]wPrintStart [23:52:26]Write to MH i2c: 01 00 00 3D 30 6D [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 07 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 FF 0F 82 [23:52:26]RasterBufferAndPrint [23:52:26]line Счет N : (1)2885818 [23:52:26]line ИНН: 02508201610067 [23:52:26]line Контрольно-Кассовый Чек [23:52:26]line ПРОДАЖА [23:52:26]line ТРК (МРК, ГНК) : 71 [23:52:26]line Товар: 2711129700 [23:52:26]line ГАЗ-К-3 [23:52:26]line 64.210 * 38.90 [23:52:26]line = 2497.77 [23:52:26]line НДС 12% НСП 1% [23:52:26]line > о реализуемом товаре [23:52:26]line ОКРУГЛЕНИЕ: -0.77 [23:52:26]line ИТОГО: 2497.00 [23:52:26]line Внесено: 4000.00 [23:52:26]line СДАЧА: 1503.00 [23:52:26]line НСП 1% : 22.10 [23:52:26]line НДС 12% : 265.25 [23:52:26]line Наличными: 2497.00 [23:52:26]line Безнал.: 0.00 [23:52:26]line Место: АЗС № 85 "Партнер Нефть" [23:52:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:52:26]line СНО: Общий режим [23:52:26]line Чек 440 21.10.2024 23:52 [23:52:26]line Смена: 194 ФФД: 1.0 [23:52:26]line ЗНМ: 0300000167 [23:52:26]line РНМ: 0000000000156251 [23:52:26]line Версия ККМ: v1.0 [23:52:26]line ФМ: 0000000000963346 [23:52:26]line ФД: 70050 [23:52:26]line ФПД: 95001106455548 [23:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235227&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70050&fm=95001106455548&tin=02508201610067®Number=0000000000156251&sum=249700 [23:52:26]OFD Sender: Processing packet 70050 [packets to send 18, broken 17] [23:52:26]ProducePacketName [23:52:26]name=ofd_packets/00070050 [23:52:26]OFD Sender: To server: pG, [23:52:26]CommunicateWithHost lk.salyk.kg:30040 [23:52:26]ConnectInit lk.salyk.kg [23:52:26]written 0, free lines is 4095 [23:52:26]Connected sock=10 [23:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 92 79 06 01 23 DF 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 33 FF 03 08 00 03 D2 FA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B1 CF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 CF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 67 00 00 00 00 07 04 06 00 64 CF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 3B E9 16 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 11 01 00 35 04 06 00 56 67 2B 34 1B FC 64 90 D6 ED D2 26 2C 47 [23:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5A D0 47 00 88 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 39 36 33 33 34 36 10 04 04 00 A2 11 01 00 F4 03 04 00 DD 92 16 67 B6 04 01 00 00 89 31 24 BE 50 59 20 02 [23:52:27]CommunicateWithHost err = 0 [23:52:27]CheckOFDResponse [23:52:27]1017 (14) - 77093643461234 [23:52:27]1041 (16) - 0000000000963346 [23:52:27]1040 (4) - 70050 [23:52:27]1012 (4) - 21.10.2024 17:43 [23:52:27]1206 (1) - 0 [23:52:27]OFD Sender: Remove packet 70050 [23:52:27]ProducePacketName [23:52:27]name=ofd_packets/00070050 [23:52:27]NVStorageDeleteData [23:52:27]Write to MH i2c: 01 00 00 68 30 98 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: 01 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: 01 07 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 E9 0C 94 [23:52:27]RasterBufferAndPrint [23:52:27]line [23:52:27]line [23:52:27]line [23:52:27]line [23:52:27]line [23:52:27]written 0, free lines is 3311 [23:52:27]MH_Cut [23:52:27]Write to MH i2c: D1 01 00 6F 30 01 71 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: D1 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: D1 01 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: D1 01 00 6F 30 00 70 [23:52:27]Write to MH i2c: 01 00 00 70 30 A0 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]OFD Sender: No OFD packet to send [23:52:27]*** Cut start [23:52:27]*** Partial cut [23:52:27]*** CUTSNS_PIN = 1 [23:52:27]*** CUTSNS_PIN = 0 [23:52:28]*** Brake cut motor [23:52:28]Read from MH i2c: 01 [23:52:28]MH_I2C_Read... [23:52:28]*** Stop cut motor [23:52:28]*** Cut end [23:52:28]Read from MH i2c: 01 07 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 FF 0F B5 [23:52:28]process_action close_receipt done [23:52:28]requested_data is exist [23:52:28]produce_requested_data [23:52:28]requested_item fm.sn is exist - process it [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 11 00 00 [23:52:28]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 17 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [23:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:52:28]wFMCommunicate OK [23:52:28]requested_item fd.num is exist - process it [23:52:28]SAM_PROTO_GetFieldsCounters [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 13 00 00 [23:52:28]Write to MH i2c: E2 08 00 72 30 80 13 00 00 00 00 00 00 1E [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 62 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 62 00 72 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [23:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetFieldsCounters done [23:52:28]requested_item shift.num is exist - process it [23:52:28]requested_item shift.opened is exist - process it [23:52:28]req_shift_opened [23:52:28]FM_GetShiftState [23:52:28]SAM_PROTO_GetShiftState [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 13 01 00 [23:52:28]Write to MH i2c: E2 08 00 73 30 80 13 01 00 00 00 00 00 20 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 73 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4C [23:52:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetShiftState done [23:52:28]FM_GetShiftState done [23:52:28]req_shift_opened done [23:52:28]requested_item shift.open_date is exist - process it [23:52:28]req_shift_open_date [23:52:28]req_shift_open_date done [23:52:28]produce_requested_data done [23:52:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [23:52:28]process_action_free close_receipt [23:52:28]json_value_free [23:52:28]json_value_free done [23:52:28]process_json_proto returns [23:52:28]Send response to host [23:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [23:52:28]free response buf [23:52:28]execute_script done [23:52:28]execute_script returns [23:52:28]free content buf [23:52:28]Sock 9.Close socket [23:52:28]Sock 9.Thread stoped [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:31]accept exits with 7 [00:04:31]New connection [00:04:31]New thread 3067170148 created [00:04:31]Thread 3067026788 joined [00:04:31]Waiting for new connection... [00:04:31] Sock 7.Parse request [00:04:31]Sock 7.Check first char [00:04:31]Sock 7.First char is OK [00:04:31]request: POST /json_proto HTTP/1.0 [00:04:31]Method: POST [00:04:31]URL: /json_proto [00:04:31]Method is POST - this is cgi request [00:04:31]url: /json_proto [00:04:31]query_string will be loaded in cgi processing [00:04:31]execute_cgi json_proto POST (null) [00:04:31]execute_cgi path=json_proto method=POST [00:04:31]POST find Content-Length [00:04:31]Host: 172.17.50.3:8080 [00:04:31]Content-Length: 215 [00:04:31]Content-Type: application/json [00:04:31] [00:04:31]POST finish read [00:04:31]Found Content-Length = 215 [00:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]execute_script... [00:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:31]POST & json_proto [00:04:31]process_json_proto [00:04:31]json parsed OK: [00:04:31]protocol is kg_v1.0 [00:04:31]action value=get_value [00:04:31]process_action get_value [00:04:31]cmd_get_value [00:04:31]process_action get_value done [00:04:31]requested_data is exist [00:04:31]produce_requested_data [00:04:31]requested_item kkm.sn is exist - process it [00:04:31]requested_item kkm.ver is exist - process it [00:04:31]requested_item fm.sn is exist - process it [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 11 00 00 [00:04:31]Write to MH i2c: E2 08 00 74 30 80 11 00 00 00 00 00 00 1E [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 17 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 17 00 74 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [00:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:04:31]wFMCommunicate OK [00:04:31]requested_item fd.num is exist - process it [00:04:31]SAM_PROTO_GetFieldsCounters [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 13 00 00 [00:04:31]Write to MH i2c: E2 08 00 75 30 80 13 00 00 00 00 00 00 21 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 62 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 62 00 75 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetFieldsCounters done [00:04:31]requested_item shift.num is exist - process it [00:04:31]requested_item shift.opened is exist - process it [00:04:31]req_shift_opened [00:04:31]FM_GetShiftState [00:04:31]SAM_PROTO_GetShiftState [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 13 01 00 [00:04:31]Write to MH i2c: E2 08 00 76 30 80 13 01 00 00 00 00 00 23 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 0E 00 76 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 4F [00:04:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetShiftState done [00:04:31]FM_GetShiftState done [00:04:31]req_shift_opened done [00:04:31]requested_item shift.open_date is exist - process it [00:04:31]req_shift_open_date [00:04:31]req_shift_open_date done [00:04:31]produce_requested_data done [00:04:31]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:04:31]process_action_free get_value [00:04:31]json_value_free [00:04:31]json_value_free done [00:04:31]process_json_proto returns [00:04:31]Send response to host [00:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:04:31]free response buf [00:04:31]execute_script done [00:04:31]execute_script returns [00:04:31]free content buf [00:04:31]Sock 7.Close socket [00:04:31]Sock 7.Thread stoped [00:04:31]accept exits with 9 [00:04:31]New connection [00:04:31]New thread 3067026788 created [00:04:31]Thread 3067170148 joined [00:04:31]Waiting for new connection... [00:04:31] Sock 9.Parse request [00:04:31]Sock 9.Check first char [00:04:31]Sock 9.First char is OK [00:04:31]request: POST /json_proto HTTP/1.0 [00:04:31]Method: POST [00:04:31]URL: /json_proto [00:04:31]Method is POST - this is cgi request [00:04:31]url: /json_proto [00:04:31]query_string will be loaded in cgi processing [00:04:31]execute_cgi json_proto POST (null) [00:04:31]execute_cgi path=json_proto method=POST [00:04:31]POST find Content-Length [00:04:31]Host: 172.17.50.3:8080 [00:04:31]Content-Length: 331 [00:04:31]Content-Type: application/json [00:04:31] [00:04:31]POST finish read [00:04:31]Found Content-Length = 331 [00:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:31]execute_script... [00:04: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" ] } } [00:04:32]POST & json_proto [00:04:32]process_json_proto [00:04:32]json parsed OK: [00:04:32]protocol is kg_v1.0 [00:04:32]action value=get_value [00:04:32]process_action get_value [00:04:32]cmd_get_value [00:04:32]process_action get_value done [00:04:32]requested_data is exist [00:04:32]produce_requested_data [00:04:32]requested_item fm.sale.total is exist - process it [00:04:32]SAM_PROTO_GetFMData [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 13 03 00 [00:04:32]Write to MH i2c: E2 08 00 77 30 80 13 03 00 00 00 00 00 26 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 77 30 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 F2 [00:04:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 78 30 80 17 00 00 00 00 00 00 28 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 FD 00 78 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:04:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=4 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 17 00 00 [00:04:32]Write to MH i2c: E2 08 00 79 30 80 17 00 00 00 00 00 00 29 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 79 30 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:04:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 7A 30 80 17 00 00 00 00 00 00 2A [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]OFD Sender: No OFD packet to send [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 FD 00 7A 30 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:04:33]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 17 00 00 [00:04:33]Write to MH i2c: E2 08 00 7B 30 80 17 00 00 00 00 00 00 2B [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:04:33]Read from MH i2c: E2 E2 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 E2 00 7B 30 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:04:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:33]wFMCommunicate OK [00:04:33]SAM_PROTO_GetFMData done [00:04:33]requested_item fm.sale_refund.total is exist - process it [00:04:33]requested_item fm.buy.total is exist - process it [00:04:33]requested_item shift.sale.total is exist - process it [00:04:33]SAM_PROTO_GetShiftData [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 13 02 00 [00:04:33]Write to MH i2c: E2 08 00 7C 30 80 13 02 00 00 00 00 00 2A [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 7C 30 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 28 [00:04:34]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 17 00 00 [00:04:34]Write to MH i2c: E2 08 00 7D 30 80 17 00 00 00 00 00 00 2D [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 7D 30 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:04:34]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 17 00 00 [00:04:34]Write to MH i2c: E2 08 00 7E 30 80 17 00 00 00 00 00 00 2E [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 7E 30 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:04:34]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 17 00 00 [00:04:34]Write to MH i2c: E2 08 00 7F 30 80 17 00 00 00 00 00 00 2F [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 FD 00 7F 30 00 03 00 00 EF 03 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 90 00 B0 [00:04:34]RAPDU: 03 00 00 EF 03 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 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 80 30 80 17 00 00 00 00 00 00 30 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 D9 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 D9 00 80 30 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 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 0F [00:04:35]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:35]wFMCommunicate OK [00:04:35]SAM_PROTO_GetShiftData done [00:04:35]requested_item shift.sale.total_cash is exist - process it [00:04:35]requested_item shift.sale_refund.total is exist - process it [00:04:35]requested_item shift.sale_refund.total_cash is exist - process it [00:04:35]requested_item shift.buy.total is exist - process it [00:04:35]requested_item shift.buy.total_cash is exist - process it [00:04:35]produce_requested_data done [00:04:35]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:35]process_action_free get_value [00:04:35]json_value_free [00:04:35]json_value_free done [00:04:35]process_json_proto returns [00:04:35]Send response to host [00:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:35]free response buf [00:04:35]execute_script done [00:04:35]execute_script returns [00:04:35]free content buf [00:04:35]Sock 9.Close socket [00:04:35]Sock 9.Thread stoped [00:04:35]accept exits with 7 [00:04:35]New connection [00:04:35]New thread 3067170148 created [00:04:35]Thread 3067026788 joined [00:04:35]Waiting for new connection... [00:04:35] Sock 7.Parse request [00:04:35]Sock 7.Check first char [00:04:35]Sock 7.First char is OK [00:04:35]request: POST /json_proto HTTP/1.0 [00:04:35]Method: POST [00:04:35]URL: /json_proto [00:04:35]Method is POST - this is cgi request [00:04:35]url: /json_proto [00:04:35]query_string will be loaded in cgi processing [00:04:35]execute_cgi json_proto POST (null) [00:04:35]execute_cgi path=json_proto method=POST [00:04:35]POST find Content-Length [00:04:35]Host: 172.17.50.3:8080 [00:04:35]Content-Length: 331 [00:04:35]Content-Type: application/json [00:04:35] [00:04:35]POST finish read [00:04:35]Found Content-Length = 331 [00:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:35]execute_script... [00:04:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:35]POST & json_proto [00:04:35]process_json_proto [00:04:35]json parsed OK: [00:04:35]protocol is kg_v1.0 [00:04:35]action value=get_value [00:04:35]process_action get_value [00:04:35]cmd_get_value [00:04:35]process_action get_value done [00:04:35]requested_data is exist [00:04:35]produce_requested_data [00:04:35]requested_item fm.sale.total is exist - process it [00:04:35]SAM_PROTO_GetFMData [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 13 03 00 [00:04:35]Write to MH i2c: E2 08 00 81 30 80 13 03 00 00 00 00 00 30 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 FD 00 81 30 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 FC [00:04:35]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:04:35]wFMCommunicate OK [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 17 00 00 [00:04:35]Write to MH i2c: E2 08 00 82 30 80 17 00 00 00 00 00 00 32 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 82 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:04:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 83 30 80 17 00 00 00 00 00 00 33 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 83 30 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:04:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:36]wFMCommunicate OK [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 17 00 00 [00:04:36]Write to MH i2c: E2 08 00 84 30 80 17 00 00 00 00 00 00 34 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 FD 00 84 30 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:04:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 17 00 00 [00:04:37]Write to MH i2c: E2 08 00 85 30 80 17 00 00 00 00 00 00 35 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 E2 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 E2 00 85 30 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 13 [00:04:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_GetFMData done [00:04:37]requested_item fm.sale_refund.total is exist - process it [00:04:37]requested_item fm.buy.total is exist - process it [00:04:37]requested_item shift.sale.total is exist - process it [00:04:37]SAM_PROTO_GetShiftData [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 13 02 00 [00:04:37]Write to MH i2c: E2 08 00 86 30 80 13 02 00 00 00 00 00 34 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 86 30 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 32 [00:04:37]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 17 00 00 [00:04:37]Write to MH i2c: E2 08 00 87 30 80 17 00 00 00 00 00 00 37 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 87 30 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:04:38]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:04:38]00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 88 30 80 17 00 00 00 00 00 00 38 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 88 30 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:04:38]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 89 30 80 17 00 00 00 00 00 00 39 [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 89 30 00 03 00 00 EF 03 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 90 00 BA [00:04:39]RAPDU: 03 00 00 EF 03 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 90 00 [00:04:39]wFMCommunicate OK [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 17 00 00 [00:04:39]Write to MH i2c: E2 08 00 8A 30 80 17 00 00 00 00 00 00 3A [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 D9 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 D9 00 8A 30 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:04:39]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetShiftData done [00:04:39]requested_item shift.sale.total_cash is exist - process it [00:04:39]requested_item shift.sale_refund.total is exist - process it [00:04:39]requested_item shift.sale_refund.total_cash is exist - process it [00:04:39]requested_item shift.buy.total is exist - process it [00:04:39]requested_item shift.buy.total_cash is exist - process it [00:04:39]produce_requested_data done [00:04:39]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:39]process_action_free get_value [00:04:39]json_value_free [00:04:39]json_value_free done [00:04:39]process_json_proto returns [00:04:39]Send response to host [00:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:39]free response buf [00:04:39]execute_script done [00:04:39]execute_script returns [00:04:39]free content buf [00:04:39]Sock 7.Close socket [00:04:39]Sock 7.Thread stoped [00:04:39]accept exits with 9 [00:04:39]New connection [00:04:39]New thread 3067026788 created [00:04:39]Thread 3067170148 joined [00:04:39]Waiting for new connection... [00:04:39] Sock 9.Parse request [00:04:39]Sock 9.Check first char [00:04:39]Sock 9.First char is OK [00:04:39]request: POST /json_proto HTTP/1.0 [00:04:39]Method: POST [00:04:39]URL: /json_proto [00:04:39]Method is POST - this is cgi request [00:04:39]url: /json_proto [00:04:39]query_string will be loaded in cgi processing [00:04:39]execute_cgi json_proto POST (null) [00:04:39]execute_cgi path=json_proto method=POST [00:04:39]POST find Content-Length [00:04:39]Host: 172.17.50.3:8080 [00:04:39]Content-Length: 257 [00:04:39]Content-Type: application/json [00:04:39] [00:04:39]POST finish read [00:04:39]Found Content-Length = 257 [00:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:39]execute_script... [00:04:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:39]POST & json_proto [00:04:39]process_json_proto [00:04:39]json parsed OK: [00:04:39]protocol is kg_v1.0 [00:04:39]action value=x_report [00:04:39]process_action x_report [00:04:39]cmd_x_report [00:04:39]MH_GetDate [00:04:39]Write to MH i2c: F0 00 00 8B 30 AA [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 09 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 09 00 8B 30 00 1A EC 16 67 6B 98 1E 66 BD [00:04:39]GetLastDocTimeStamp 1729554747 [00:04:39]current date 1729555482 [00:04:39]FM_GetShiftState [00:04:39]SAM_PROTO_GetShiftState [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 13 01 00 [00:04:39]Write to MH i2c: E2 08 00 8C 30 80 13 01 00 00 00 00 00 39 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 0E 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 0E 00 8C 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 65 [00:04:39]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetShiftState done [00:04:39]FM_GetShiftState done [00:04:39]KKMCreateXReportDocument [00:04:39]Load OK [00:04:39]Malloc new data [00:04:39]MH_GetDate [00:04:39]Write to MH i2c: F0 00 00 8D 30 AC [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 09 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: F0 09 00 8D 30 00 1A EC 16 67 6B 98 1E 66 BF [00:04:39]Malloc new data [00:04:39]Malloc new data [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 11 00 00 [00:04:39]Write to MH i2c: E2 08 00 8E 30 80 11 00 00 00 00 00 00 38 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 17 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 17 00 8E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [00:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:04:39]wFMCommunicate OK [00:04:39]SAM_PROTO_GetFieldsCounters [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 13 00 00 [00:04:39]Write to MH i2c: E2 08 00 8F 30 80 13 00 00 00 00 00 00 3B [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 62 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 62 00 8F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [00:04:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:40]wFMCommunicate OK [00:04:40]SAM_PROTO_GetFieldsCounters done [00:04:40]Malloc new data [00:04:40]Malloc new data [00:04:40]Malloc new data [00:04:40]KKMCreateXReportDocument OK [00:04:40]KKMSetXReportData OK [00:04:40]KKMPrepareXReportFMData [00:04:40]SAM_PROTO_GetShiftData [00:04:40]wFMCommunicate request_size=4 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 13 02 00 [00:04:40]Write to MH i2c: E2 08 00 90 30 80 13 02 00 00 00 00 00 3E [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 FD 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 FD 00 90 30 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 3C [00:04:40]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:04:40]wFMCommunicate OK [00:04:40]wFMCommunicate request_size=4 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 17 00 00 [00:04:40]Write to MH i2c: E2 08 00 91 30 80 17 00 00 00 00 00 00 41 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 FD 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 FD 00 91 30 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:04:41]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 17 00 00 [00:04:41]Write to MH i2c: E2 08 00 92 30 80 17 00 00 00 00 00 00 42 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 FD 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 FD 00 92 30 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:04:41]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 17 00 00 [00:04:41]Write to MH i2c: E2 08 00 93 30 80 17 00 00 00 00 00 00 43 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 FD 00 [00:04:41]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 FD 00 93 30 00 03 00 00 EF 03 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 90 00 C4 [00:04:42]RAPDU: 03 00 00 EF 03 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 90 00 [00:04:42]wFMCommunicate OK [00:04:42]wFMCommunicate request_size=4 [00:04:42]MH_SAM_APDU [00:04:42]CAPDU: 80 17 00 00 [00:04:42]Write to MH i2c: E2 08 00 94 30 80 17 00 00 00 00 00 00 44 [00:04:42]Write i2c OK [00:04:42]MH_I2C_Read... [00:04:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:04:42]Read from MH i2c: E2 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 D9 00 [00:04:42]MH_I2C_Read... [00:04:42]Read from MH i2c: E2 D9 00 94 30 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [00:04:42]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:42]wFMCommunicate OK [00:04:42]SAM_PROTO_GetShiftData done [00:04:42]1194 (1208) - счетчики итогов смены [00:04:42] 1134 (4) - 440 - количество чеков со всеми признаками расчетов [00:04:42] 1129 (158) - счетчики операций «приход» [00:04:42] 1135 (4) - 436 - количество чеков по признаку расчетов [00:04:42] 1201 (4) - 510970.13 - общая итоговая сумма в чеках [00:04:42] 1136 (4) - 400172.00 - итоговая сумма в чеках наличными [00:04:42] 1138 (3) - 110798.13 - итоговая сумма в чеках безналичными [00:04:42] 1024 (123) - суммы налогов [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 0% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1006 (12) - суммы НДС [00:04:42] 1010 (1) - 12% - код ставки НДС [00:04:42] 1011 (3) - 54273.21 - сумма НДС по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (12) - суммы НСП [00:04:42] 1014 (1) - 1% - код ставки НСП [00:04:42] 1015 (3) - 4522.58 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 2% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 3% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 5% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1130 (152) - счетчики операций «возврат прихода» [00:04:42] 1135 (4) - 4 - количество чеков по признаку расчетов [00:04:42] 1201 (3) - 45050.00 - общая итоговая сумма в чеках [00:04:42] 1136 (3) - 45050.00 - итоговая сумма в чеках наличными [00:04:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:42] 1024 (122) - суммы налогов [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 0% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1006 (12) - суммы НДС [00:04:42] 1010 (1) - 12% - код ставки НДС [00:04:42] 1011 (3) - 4784.11 - сумма НДС по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (11) - суммы НСП [00:04:42] 1014 (1) - 1% - код ставки НСП [00:04:42] 1015 (2) - 398.68 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 2% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 3% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 5% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1131 (141) - счетчики операций «расход» [00:04:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:42] 1024 (117) - суммы налогов [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 0% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 12% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 2% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 3% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 5% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1132 (141) - счетчики операций «возврат расхода» [00:04:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:42] 1024 (117) - суммы налогов [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 0% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1006 (9) - суммы НДС [00:04:42] 1010 (1) - 12% - код ставки НДС [00:04:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 2% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 3% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 5% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 0,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1007 (9) - суммы НСП [00:04:42] 1014 (1) - 1,50% - код ставки НСП [00:04:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:42] 1133 (588) - - счетчики коррекции - не используются [00:04:42]SetTLVBufToDocument [00:04:42]Processing tag 1194 (04AA) [00:04:42]Load OK [00:04:42]SetTLVBufToDocument [00:04:42]Processing tag 1134 (046E) [00:04:42]Malloc new data [00:04:42]Processing tag 1129 (0469) [00:04:42]Load OK [00:04:42]SetTLVBufToDocument [00:04:42]Processing tag 1135 (046F) [00:04:42]Malloc new data [00:04:42]Processing tag 1201 (04B1) [00:04:42]Malloc new data [00:04:42]Processing tag 1136 (0470) [00:04:42]Malloc new data [00:04:42]Processing tag 1138 (0472) [00:04:42]Malloc new data [00:04:42]Processing tag 1024 (0400) [00:04:42]Load OK [00:04:42]SetTLVBufToDocument [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1130 (046A) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1135 (046F) [00:04:43]Malloc new data [00:04:43]Processing tag 1201 (04B1) [00:04:43]Malloc new data [00:04:43]Processing tag 1136 (0470) [00:04:43]Malloc new data [00:04:43]Processing tag 1138 (0472) [00:04:43]Malloc new data [00:04:43]Processing tag 1024 (0400) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1131 (046B) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1135 (046F) [00:04:43]Malloc new data [00:04:43]Processing tag 1201 (04B1) [00:04:43]Malloc new data [00:04:43]Processing tag 1136 (0470) [00:04:43]Malloc new data [00:04:43]Processing tag 1138 (0472) [00:04:43]Malloc new data [00:04:43]Processing tag 1024 (0400) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1132 (046C) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1135 (046F) [00:04:43]Malloc new data [00:04:43]Processing tag 1201 (04B1) [00:04:43]Malloc new data [00:04:43]Processing tag 1136 (0470) [00:04:43]Malloc new data [00:04:43]Processing tag 1138 (0472) [00:04:43]Malloc new data [00:04:43]Processing tag 1024 (0400) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1006 (03EE) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1010 (03F2) [00:04:43]Malloc new data [00:04:43]Processing tag 1011 (03F3) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1007 (03EF) [00:04:43]Load OK [00:04:43]SetTLVBufToDocument [00:04:43]Processing tag 1014 (03F6) [00:04:43]Malloc new data [00:04:43]Processing tag 1015 (03F7) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]OFD Sender: No OFD packet to send [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Processing tag 1133 (046D) [00:04:43]Malloc new data [00:04:43]SetTLVBufToDocument err=0 [00:04:43]SetTLVBufToDocument err=0 [00:04:43]Malloc new data [00:04:43]SAM_PROTO_GetFMData [00:04:43]wFMCommunicate request_size=4 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 13 03 00 [00:04:43]Write to MH i2c: E2 08 00 95 30 80 13 03 00 00 00 00 00 44 [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:44]Read from MH i2c: E2 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: E2 FD 00 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: E2 FD 00 95 30 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 10 [00:04:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:04:44]wFMCommunicate OK [00:04:44]wFMCommunicate request_size=4 [00:04:44]MH_SAM_APDU [00:04:44]CAPDU: 80 17 00 00 [00:04:44]Write to MH i2c: E2 08 00 96 30 80 17 00 00 00 00 00 00 46 [00:04:44]Write i2c OK [00:04:44]MH_I2C_Read... [00:04:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:44]Read from MH i2c: E2 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: E2 FD 00 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: E2 FD 00 96 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:04:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:45]wFMCommunicate OK [00:04:45]wFMCommunicate request_size=4 [00:04:45]MH_SAM_APDU [00:04:45]CAPDU: 80 17 00 00 [00:04:45]Write to MH i2c: E2 08 00 97 30 80 17 00 00 00 00 00 00 47 [00:04:45]Write i2c OK [00:04:45]MH_I2C_Read... [00:04:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:45]Read from MH i2c: E2 [00:04:45]MH_I2C_Read... [00:04:45]Read from MH i2c: E2 FD 00 [00:04:45]MH_I2C_Read... [00:04:45]Read from MH i2c: E2 FD 00 97 30 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:04:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:45]wFMCommunicate OK [00:04:45]wFMCommunicate request_size=4 [00:04:45]MH_SAM_APDU [00:04:45]CAPDU: 80 17 00 00 [00:04:45]Write to MH i2c: E2 08 00 98 30 80 17 00 00 00 00 00 00 48 [00:04:45]Write i2c OK [00:04:45]MH_I2C_Read... [00:04:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:45]Read from MH i2c: E2 [00:04:45]MH_I2C_Read... [00:04:45]Read from MH i2c: E2 FD 00 [00:04:45]MH_I2C_Read... [00:04:45]Read from MH i2c: E2 FD 00 98 30 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:04:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:46]wFMCommunicate OK [00:04:46]wFMCommunicate request_size=4 [00:04:46]MH_SAM_APDU [00:04:46]CAPDU: 80 17 00 00 [00:04:46]Write to MH i2c: E2 08 00 99 30 80 17 00 00 00 00 00 00 49 [00:04:46]Write i2c OK [00:04:46]MH_I2C_Read... [00:04:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:04:46]Read from MH i2c: E2 [00:04:46]MH_I2C_Read... [00:04:46]Read from MH i2c: E2 E2 00 [00:04:46]MH_I2C_Read... [00:04:46]Read from MH i2c: E2 E2 00 99 30 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [00:04:46]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:04:46]wFMCommunicate OK [00:04:46]SAM_PROTO_GetFMData done [00:04:46]FM_GetFMData:85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 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 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:47]oper:6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:47]total:65 58 3C E5 01 [00:04:47]Malloc new data [00:04:47]oper:6F 04 04 00 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 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 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:47]total:44 E8 D5 11 [00:04:47]Malloc new data [00:04:47]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:47]total: [00:04:47]Malloc new data [00:04:47]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:04:47]total: [00:04:47]Malloc new data [00:04:47]KKMPrepareXReportFMData err=0 [00:04:47]Х отчет ИНН: 02508201610067 Кассир: Ахмедова У. 22.10.2024 00:04 Смена: 10 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Всего чеков: 440 ИТОГИ ПРИХОД Чеков: 436 Общий итог: 510970.13 Итого наличными: 400172.00 Итого безнал.: 110798.13 НДС 0% : 0.00 НДС 12% : 54273.21 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4522.58 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 45050.00 Итого наличными: 45050.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 4784.11 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 398.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 355122.00 НС Приход: 81409045.49 НС Возвр.Прихода: 2992313.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963346 [00:04:47]StoreToDocumentArchive [00:04:47]MH_GetDate [00:04:47]Write to MH i2c: F0 00 00 9A 30 B9 [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: F0 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: F0 09 00 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: F0 09 00 9A 30 00 22 EC 16 67 6B 98 1E 66 D4 [00:04:47]shift 10 fd 1729555490 [00:04:47]Create dir for shift 0010 [00:04:47]save to /storage/0010/doc_1729555490 [00:04:47]save last doc name /storage/0010/doc_1729555490 to /storage/kkm_last_doc_name [00:04:47]save OK [00:04:47]Clear old archive folders... [00:04:47]NVStorageSaveData kkm_last_timestamp [00:04:47]File name is /storage/kkm_last_timestamp [00:04:47]Write 4 bytes [00:04:47]NVStorageSaveData done [00:04:47]ExternCall_PrintAddStr [00:04:47]wPrintStart [00:04:47]Write to MH i2c: 01 00 00 9B 30 CB [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: 01 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: 01 07 00 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: 01 07 00 9B 30 00 00 00 00 00 FF 0F E0 [00:04:47]RasterBufferAndPrint [00:04:47]line Х отчет [00:04:47]line ИНН: 02508201610067 [00:04:47]line Кассир: Ахмедова У. [00:04:47]line 22.10.2024 00:04 [00:04:47]line Смена: 10 [00:04:47]line РНМ: 0000000000156251 [00:04:47]line ЗНМ: 0300000167 [00:04:47]line СНО: Общий режим [00:04:47]line Всего чеков: 440 [00:04:47]line ИТОГИ ПРИХОД [00:04:47]line Чеков: 436 [00:04:47]line Общий итог: 510970.13 [00:04:47]line Итого наличными: 400172.00 [00:04:47]line Итого безнал.: 110798.13 [00:04:47]line НДС 0% : 0.00 [00:04:47]line НДС 12% : 54273.21 [00:04:47]line НСП 0% : 0.00 [00:04:47]line НСП 1,50% : 0.00 [00:04:47]line НСП 0,50% : 0.00 [00:04:47]line НСП 5% : 0.00 [00:04:47]line НСП 3% : 0.00 [00:04:47]line НСП 2% : 0.00 [00:04:47]line НСП 1% : 4522.58 [00:04:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:04:47]line Чеков: 4 [00:04:47]line Общий итог: 45050.00 [00:04:47]line Итого наличными: 45050.00 [00:04:47]line Итого безнал.: 0.00 [00:04:47]line НДС 0% : 0.00 [00:04:47]line НДС 12% : 4784.11 [00:04:47]line НСП 0% : 0.00 [00:04:47]line НСП 1,50% : 0.00 [00:04:47]line НСП 0,50% : 0.00 [00:04:47]line НСП 5% : 0.00 [00:04:47]line НСП 3% : 0.00 [00:04:47]line НСП 2% : 0.00 [00:04:47]line НСП 1% : 398.68 [00:04:47]line ИТОГИ РАСХОД [00:04:47]line Чеков: 0 [00:04:47]line Общий итог: 0.00 [00:04:47]line Итого наличными: 0.00 [00:04:47]line Итого безнал.: 0.00 [00:04:47]line НДС 0% : 0.00 [00:04:47]line НДС 12% : 0.00 [00:04:47]line НСП 0% : 0.00 [00:04:47]line НСП 1,50% : 0.00 [00:04:47]line НСП 0,50% : 0.00 [00:04:47]line НСП 5% : 0.00 [00:04:47]line НСП 3% : 0.00 [00:04:47]line НСП 2% : 0.00 [00:04:47]line НСП 1% : 0.00 [00:04:47]line ИТОГИ ВОЗВРАТ РАСХОДА [00:04:47]line Чеков: 0 [00:04:47]line Общий итог: 0.00 [00:04:47]line Итого наличными: 0.00 [00:04:47]line Итого безнал.: 0.00 [00:04:47]line НДС 0% : 0.00 [00:04:47]line НДС 12% : 0.00 [00:04:47]line НСП 0% : 0.00 [00:04:47]line НСП 1,50% : 0.00 [00:04:47]line НСП 0,50% : 0.00 [00:04:47]line НСП 5% : 0.00 [00:04:47]line НСП 3% : 0.00 [00:04:47]line НСП 2% : 0.00 [00:04:47]line НСП 1% : 0.00 [00:04:47]line Сумма внесений: 0.00 [00:04:47]line Сумма выплат: 0.00 [00:04:47]line Нал. в кассе: 355122.00 [00:04:47]line НС Приход: 81409045.49 [00:04:47]line НС Возвр.Прихода: 2992313.00 [00:04:47]line НС Расход: 0.00 [00:04:47]line НС Возвр.Расхода: 0.00 [00:04:47]line ФМ: 0000000000963346 [00:04:47]written 0, free lines is 4095 [00:04:48]Write to MH i2c: 01 00 00 E6 30 16 [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: 01 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: 01 07 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: 01 07 00 E6 30 00 00 00 00 00 FC 0A 23 [00:04:48]RasterBufferAndPrint [00:04:48]line [00:04:48]line [00:04:48]line [00:04:48]line [00:04:48]line [00:04:48]written 0, free lines is 2848 [00:04:48]MH_Cut [00:04:48]Write to MH i2c: D1 01 00 ED 30 01 EF [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: D1 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: D1 01 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: D1 01 00 ED 30 00 EE [00:04:48]Write to MH i2c: 01 00 00 EE 30 1E [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]OFD Sender: No OFD packet to send [00:04:49]*** Cut start [00:04:49]*** Partial cut [00:04:49]*** CUTSNS_PIN = 1 [00:04:49]*** CUTSNS_PIN = 0 [00:04:49]*** Brake cut motor [00:04:50]Read from MH i2c: 01 [00:04:50]MH_I2C_Read... [00:04:50]*** Stop cut motor [00:04:50]*** Cut end [00:04:50]Read from MH i2c: 01 07 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 FF 0F 33 [00:04:50]process_action x_report done [00:04:50]requested_data is exist [00:04:50]produce_requested_data [00:04:50]requested_item fd.num is exist - process it [00:04:50]SAM_PROTO_GetFieldsCounters [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 13 00 00 [00:04:50]Write to MH i2c: E2 08 00 EF 30 80 13 00 00 00 00 00 00 9B [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 62 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 62 00 EF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [00:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_GetFieldsCounters done [00:04:50]requested_item shift.num is exist - process it [00:04:50]requested_item shift.opened is exist - process it [00:04:50]req_shift_opened [00:04:50]FM_GetShiftState [00:04:50]SAM_PROTO_GetShiftState [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 13 01 00 [00:04:50]Write to MH i2c: E2 08 00 F0 30 80 13 01 00 00 00 00 00 9D [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0E 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0E 00 F0 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 C9 [00:04:50]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_GetShiftState done [00:04:50]FM_GetShiftState done [00:04:50]req_shift_opened done [00:04:50]requested_item shift.open_date is exist - process it [00:04:50]req_shift_open_date [00:04:50]req_shift_open_date done [00:04:50]produce_requested_data done [00:04:50]produce_requested_data return {"fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:04:50]process_action_free x_report [00:04:50]json_value_free [00:04:50]json_value_free done [00:04:50]process_json_proto returns [00:04:50]Send response to host [00:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:04:50]free response buf [00:04:50]execute_script done [00:04:50]execute_script returns [00:04:50]free content buf [00:04:50]Sock 9.Close socket [00:04:50]Sock 9.Thread stoped [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:16]accept exits with 7 [00:05:16]New connection [00:05:16]New thread 3067170148 created [00:05:16]Thread 3067026788 joined [00:05:16]Waiting for new connection... [00:05:16] Sock 7.Parse request [00:05:16]Sock 7.Check first char [00:05:16]Sock 7.First char is OK [00:05:16]request: POST /json_proto HTTP/1.0 [00:05:16]Method: POST [00:05:16]URL: /json_proto [00:05:16]Method is POST - this is cgi request [00:05:16]url: /json_proto [00:05:16]query_string will be loaded in cgi processing [00:05:16]execute_cgi json_proto POST (null) [00:05:16]execute_cgi path=json_proto method=POST [00:05:16]POST find Content-Length [00:05:16]Host: 172.17.50.3:8080 [00:05:16]Content-Length: 215 [00:05:16]Content-Type: application/json [00:05:16] [00:05:16]POST finish read [00:05:16]Found Content-Length = 215 [00:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:16]execute_script... [00:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:16]POST & json_proto [00:05:16]process_json_proto [00:05:16]json parsed OK: [00:05:16]protocol is kg_v1.0 [00:05:16]action value=get_value [00:05:16]process_action get_value [00:05:16]cmd_get_value [00:05:16]process_action get_value done [00:05:16]requested_data is exist [00:05:16]produce_requested_data [00:05:16]requested_item kkm.sn is exist - process it [00:05:16]requested_item kkm.ver is exist - process it [00:05:16]requested_item fm.sn is exist - process it [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 11 00 00 [00:05:16]Write to MH i2c: E2 08 00 F1 30 80 11 00 00 00 00 00 00 9B [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 17 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 17 00 F1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [00:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:05:16]wFMCommunicate OK [00:05:16]requested_item fd.num is exist - process it [00:05:16]SAM_PROTO_GetFieldsCounters [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 00 00 [00:05:16]Write to MH i2c: E2 08 00 F2 30 80 13 00 00 00 00 00 00 9E [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 62 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 62 00 F2 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [00:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetFieldsCounters done [00:05:16]requested_item shift.num is exist - process it [00:05:16]requested_item shift.opened is exist - process it [00:05:16]req_shift_opened [00:05:16]FM_GetShiftState [00:05:16]SAM_PROTO_GetShiftState [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 01 00 [00:05:16]Write to MH i2c: E2 08 00 F3 30 80 13 01 00 00 00 00 00 A0 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:16]Read from MH i2c: E2 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0E 00 [00:05:16]MH_I2C_Read... [00:05:16]Read from MH i2c: E2 0E 00 F3 30 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CC [00:05:16]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:05:16]wFMCommunicate OK [00:05:16]SAM_PROTO_GetShiftState done [00:05:16]FM_GetShiftState done [00:05:16]req_shift_opened done [00:05:16]requested_item shift.open_date is exist - process it [00:05:16]req_shift_open_date [00:05:16]req_shift_open_date done [00:05:16]produce_requested_data done [00:05:16]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:05:16]process_action_free get_value [00:05:16]json_value_free [00:05:16]json_value_free done [00:05:16]process_json_proto returns [00:05:16]Send response to host [00:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70050,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:05:16]free response buf [00:05:16]execute_script done [00:05:16]execute_script returns [00:05:16]free content buf [00:05:16]Sock 7.Close socket [00:05:16]Sock 7.Thread stoped [00:05:16]accept exits with 9 [00:05:16]New connection [00:05:16]New thread 3067026788 created [00:05:16]Thread 3067170148 joined [00:05:16]Waiting for new connection... [00:05:16] Sock 9.Parse request [00:05:16]Sock 9.Check first char [00:05:16]Sock 9.First char is OK [00:05:16]request: POST /json_proto HTTP/1.0 [00:05:16]Method: POST [00:05:16]URL: /json_proto [00:05:16]Method is POST - this is cgi request [00:05:16]url: /json_proto [00:05:16]query_string will be loaded in cgi processing [00:05:16]execute_cgi json_proto POST (null) [00:05:16]execute_cgi path=json_proto method=POST [00:05:16]POST find Content-Length [00:05:16]Host: 172.17.50.3:8080 [00:05:16]Content-Length: 331 [00:05:16]Content-Type: application/json [00:05:16] [00:05:16]POST finish read [00:05:16]Found Content-Length = 331 [00:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:16]execute_script... [00:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:16]POST & json_proto [00:05:16]process_json_proto [00:05:16]json parsed OK: [00:05:16]protocol is kg_v1.0 [00:05:16]action value=get_value [00:05:16]process_action get_value [00:05:16]cmd_get_value [00:05:16]process_action get_value done [00:05:16]requested_data is exist [00:05:16]produce_requested_data [00:05:16]requested_item fm.sale.total is exist - process it [00:05:16]SAM_PROTO_GetFMData [00:05:16]wFMCommunicate request_size=4 [00:05:16]MH_SAM_APDU [00:05:16]CAPDU: 80 13 03 00 [00:05:16]Write to MH i2c: E2 08 00 F4 30 80 13 03 00 00 00 00 00 A3 [00:05:16]Write i2c OK [00:05:16]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 F4 30 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 6F [00:05:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 F5 30 80 17 00 00 00 00 00 00 A5 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:17]Read from MH i2c: E2 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 [00:05:17]MH_I2C_Read... [00:05:17]Read from MH i2c: E2 FD 00 F5 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:05:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:17]wFMCommunicate OK [00:05:17]wFMCommunicate request_size=4 [00:05:17]MH_SAM_APDU [00:05:17]CAPDU: 80 17 00 00 [00:05:17]Write to MH i2c: E2 08 00 F6 30 80 17 00 00 00 00 00 00 A6 [00:05:17]Write i2c OK [00:05:17]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 F6 30 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:05:18]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 F7 30 80 17 00 00 00 00 00 00 A7 [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 FD 00 F7 30 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:05:18]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:18]wFMCommunicate OK [00:05:18]wFMCommunicate request_size=4 [00:05:18]MH_SAM_APDU [00:05:18]CAPDU: 80 17 00 00 [00:05:18]Write to MH i2c: E2 08 00 F8 30 80 17 00 00 00 00 00 00 A8 [00:05:18]Write i2c OK [00:05:18]MH_I2C_Read... [00:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:18]Read from MH i2c: E2 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 E2 00 [00:05:18]MH_I2C_Read... [00:05:18]Read from MH i2c: E2 E2 00 F8 30 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 86 [00:05:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:19]wFMCommunicate OK [00:05:19]SAM_PROTO_GetFMData done [00:05:19]requested_item fm.sale_refund.total is exist - process it [00:05:19]requested_item fm.buy.total is exist - process it [00:05:19]requested_item shift.sale.total is exist - process it [00:05:19]SAM_PROTO_GetShiftData [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 13 02 00 [00:05:19]Write to MH i2c: E2 08 00 F9 30 80 13 02 00 00 00 00 00 A7 [00:05:19]OFD Sender: No OFD packet to send [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 FD 00 F9 30 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 A5 [00:05:19]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:19]wFMCommunicate OK [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 17 00 00 [00:05:19]Write to MH i2c: E2 08 00 FA 30 80 17 00 00 00 00 00 00 AA [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 FA 30 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:05:20]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:20]wFMCommunicate OK [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 17 00 00 [00:05:20]Write to MH i2c: E2 08 00 FB 30 80 17 00 00 00 00 00 00 AB [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 FB 30 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:05:20]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:20]wFMCommunicate OK [00:05:20]wFMCommunicate request_size=4 [00:05:20]MH_SAM_APDU [00:05:20]CAPDU: 80 17 00 00 [00:05:20]Write to MH i2c: E2 08 00 FC 30 80 17 00 00 00 00 00 00 AC [00:05:20]Write i2c OK [00:05:20]MH_I2C_Read... [00:05:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:20]Read from MH i2c: E2 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 [00:05:20]MH_I2C_Read... [00:05:20]Read from MH i2c: E2 FD 00 FC 30 00 03 00 00 EF 03 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 90 00 2D [00:05:21]RAPDU: 03 00 00 EF 03 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 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 17 00 00 [00:05:21]Write to MH i2c: E2 08 00 FD 30 80 17 00 00 00 00 00 00 AD [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 D9 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 D9 00 FD 30 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 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 8C [00:05:21]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_GetShiftData done [00:05:21]requested_item shift.sale.total_cash is exist - process it [00:05:21]requested_item shift.sale_refund.total is exist - process it [00:05:21]requested_item shift.sale_refund.total_cash is exist - process it [00:05:21]requested_item shift.buy.total is exist - process it [00:05:21]requested_item shift.buy.total_cash is exist - process it [00:05:21]produce_requested_data done [00:05:21]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:21]process_action_free get_value [00:05:21]json_value_free [00:05:21]json_value_free done [00:05:21]process_json_proto returns [00:05:21]Send response to host [00:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:21]free response buf [00:05:21]execute_script done [00:05:21]execute_script returns [00:05:21]free content buf [00:05:21]Sock 9.Close socket [00:05:21]Sock 9.Thread stoped [00:05:21]accept exits with 7 [00:05:21]New connection [00:05:21]New thread 3067170148 created [00:05:21]Thread 3067026788 joined [00:05:21]Waiting for new connection... [00:05:21] Sock 7.Parse request [00:05:21]Sock 7.Check first char [00:05:21]Sock 7.First char is OK [00:05:21]request: POST /json_proto HTTP/1.0 [00:05:21]Method: POST [00:05:21]URL: /json_proto [00:05:21]Method is POST - this is cgi request [00:05:21]url: /json_proto [00:05:21]query_string will be loaded in cgi processing [00:05:21]execute_cgi json_proto POST (null) [00:05:21]execute_cgi path=json_proto method=POST [00:05:21]POST find Content-Length [00:05:21]Host: 172.17.50.3:8080 [00:05:21]Content-Length: 331 [00:05:21]Content-Type: application/json [00:05:21] [00:05:21]POST finish read [00:05:21]Found Content-Length = 331 [00:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:21]execute_script... [00:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:21]POST & json_proto [00:05:21]process_json_proto [00:05:21]json parsed OK: [00:05:21]protocol is kg_v1.0 [00:05:21]action value=get_value [00:05:21]process_action get_value [00:05:21]cmd_get_value [00:05:21]process_action get_value done [00:05:21]requested_data is exist [00:05:21]produce_requested_data [00:05:21]requested_item fm.sale.total is exist - process it [00:05:21]SAM_PROTO_GetFMData [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 03 00 [00:05:21]Write to MH i2c: E2 08 00 FE 30 80 13 03 00 00 00 00 00 AD [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 FE 30 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 79 [00:05:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 FF 30 80 17 00 00 00 00 00 00 AF [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 FF 30 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [00:05:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 00 31 80 17 00 00 00 00 00 00 B1 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 00 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [00:05:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 01 31 80 17 00 00 00 00 00 00 B2 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 01 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [00:05:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 02 31 80 17 00 00 00 00 00 00 B3 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 E2 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 E2 00 02 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:05:24]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 91 [00:05:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:24]wFMCommunicate OK [00:05:24]SAM_PROTO_GetFMData done [00:05:24]requested_item fm.sale_refund.total is exist - process it [00:05:24]requested_item fm.buy.total is exist - process it [00:05:24]requested_item shift.sale.total is exist - process it [00:05:24]SAM_PROTO_GetShiftData [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 13 02 00 [00:05:24]Write to MH i2c: E2 08 00 03 31 80 13 02 00 00 00 00 00 B2 [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 03 31 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B0 [00:05:25]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 17 00 00 [00:05:25]Write to MH i2c: E2 08 00 04 31 80 17 00 00 00 00 00 00 B5 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 04 31 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B6 [00:05:25]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 17 00 00 [00:05:25]Write to MH i2c: E2 08 00 05 31 80 17 00 00 00 00 00 00 B6 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 FD 00 05 31 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:05:26]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:26]wFMCommunicate OK [00:05:26]wFMCommunicate request_size=4 [00:05:26]MH_SAM_APDU [00:05:26]CAPDU: 80 17 00 00 [00:05:26]Write to MH i2c: E2 08 00 06 31 80 17 00 00 00 00 00 00 B7 [00:05:26]Write i2c OK [00:05:26]MH_I2C_Read... [00:05:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:26]Read from MH i2c: E2 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 FD 00 06 31 00 03 00 00 EF 03 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 90 00 38 [00:05:26]RAPDU: 03 00 00 EF 03 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 90 00 [00:05:26]wFMCommunicate OK [00:05:26]wFMCommunicate request_size=4 [00:05:26]MH_SAM_APDU [00:05:26]CAPDU: 80 17 00 00 [00:05:26]Write to MH i2c: E2 08 00 07 31 80 17 00 00 00 00 00 00 B8 [00:05:26]Write i2c OK [00:05:26]MH_I2C_Read... [00:05:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 D9 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 D9 00 07 31 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 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 97 [00:05:27]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetShiftData done [00:05:27]requested_item shift.sale.total_cash is exist - process it [00:05:27]requested_item shift.sale_refund.total is exist - process it [00:05:27]requested_item shift.sale_refund.total_cash is exist - process it [00:05:27]requested_item shift.buy.total is exist - process it [00:05:27]requested_item shift.buy.total_cash is exist - process it [00:05:27]produce_requested_data done [00:05:27]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:27]process_action_free get_value [00:05:27]json_value_free [00:05:27]json_value_free done [00:05:27]process_json_proto returns [00:05:27]Send response to host [00:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:27]free response buf [00:05:27]execute_script done [00:05:27]execute_script returns [00:05:27]free content buf [00:05:27]Sock 7.Close socket [00:05:27]Sock 7.Thread stoped [00:05:27]accept exits with 9 [00:05:27]New connection [00:05:27]New thread 3067026788 created [00:05:27]Thread 3067170148 joined [00:05:27]Waiting for new connection... [00:05:27] Sock 9.Parse request [00:05:27]Sock 9.Check first char [00:05:27]Sock 9.First char is OK [00:05:27]request: POST /json_proto HTTP/1.0 [00:05:27]Method: POST [00:05:27]URL: /json_proto [00:05:27]Method is POST - this is cgi request [00:05:27]url: /json_proto [00:05:27]query_string will be loaded in cgi processing [00:05:27]execute_cgi json_proto POST (null) [00:05:27]execute_cgi path=json_proto method=POST [00:05:27]POST find Content-Length [00:05:27]Host: 172.17.50.3:8080 [00:05:27]Content-Length: 260 [00:05:27]Content-Type: application/json [00:05:27] [00:05:27]POST finish read [00:05:27]Found Content-Length = 260 [00:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:27]execute_script... [00:05:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:27]POST & json_proto [00:05:27]process_json_proto [00:05:27]json parsed OK: [00:05:27]protocol is kg_v1.0 [00:05:27]action value=close_shift [00:05:27]process_action close_shift [00:05:27]cmd_close_shift [00:05:27]MH_GetDate [00:05:27]Write to MH i2c: F0 00 00 08 31 28 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 09 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 09 00 08 31 00 49 EC 16 67 6B 98 1E 66 6A [00:05:27]GetLastDocTimeStamp 1729555482 [00:05:27]current date 1729555529 [00:05:27]FM_GetShiftState [00:05:27]SAM_PROTO_GetShiftState [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 13 01 00 [00:05:27]Write to MH i2c: E2 08 00 09 31 80 13 01 00 00 00 00 00 B7 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0E 00 09 31 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E3 [00:05:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_GetShiftState done [00:05:27]FM_GetShiftState done [00:05:27]KKMCreateCloseShiftDocument [00:05:27]Load OK [00:05:27]Malloc new data [00:05:27]MH_GetDate [00:05:27]Write to MH i2c: F0 00 00 0A 31 2A [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 09 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: F0 09 00 0A 31 00 49 EC 16 67 6B 98 1E 66 6C [00:05:27]Malloc new data [00:05:27]Malloc new data [00:05:27]Malloc new data [00:05:27]Malloc new data [00:05:27]KKMCreateCloseShiftDocument OK [00:05:27]KKMSetCloseShiftData OK [00:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:05:27]tlvbuf is 012E9E90 [00:05:27]KKMLoadAndSignCloseShiftData [00:05:27]SAM_PROTO_ProcessDocument [00:05:27]wFMCommunicate request_size=9 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 01 00 04 05 00 47 00 [00:05:27]Write to MH i2c: E2 0C 00 0B 31 80 15 01 00 04 00 05 00 47 00 00 00 0F [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0B 31 00 90 00 B0 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=23 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:05:27]Write to MH i2c: E2 1A 00 0C 31 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 B2 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0C 31 00 90 00 B1 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=30 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 [00:05:27]Write to MH i2c: E2 21 00 0D 31 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 00 00 C1 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0D 31 00 90 00 B2 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=13 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 02 00 08 F4 03 04 00 49 EC 16 67 [00:05:27]Write to MH i2c: E2 10 00 0E 31 80 15 02 00 08 00 F4 03 04 00 49 EC 16 67 00 00 7C [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0E 31 00 90 00 B3 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=25 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:05:27]Write to MH i2c: E2 1C 00 0F 31 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 1D [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 0F 31 00 90 00 B4 [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 15 03 00 [00:05:27]Write to MH i2c: E2 08 00 10 31 80 15 03 00 00 00 00 00 C2 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 FD 00 10 31 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 90 00 EC [00:05:28]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 90 00 [00:05:28]wFMCommunicate OK [00:05:28]SAM_PROTO_ProcessDocument answer len = 1279 [00:05:28]SAM_PROTO_ProcessDocument remain to read = 1031 [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 17 00 00 [00:05:28]Write to MH i2c: E2 08 00 11 31 80 17 00 00 00 00 00 00 C2 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 11 31 00 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 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 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [00:05:29]RAPDU: BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 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 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:29]SAM_PROTO_ProcessDocument remain to read = 781 [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 17 00 00 [00:05:29]Write to MH i2c: E2 08 00 12 31 80 17 00 00 00 00 00 00 C3 [00:05:29]OFD Sender: No OFD packet to send [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 FD 00 12 31 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:05:30]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:30]wFMCommunicate OK [00:05:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:30]SAM_PROTO_ProcessDocument remain to read = 531 [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 13 31 80 17 00 00 00 00 00 00 C4 [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 13 31 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:05:30]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:30]wFMCommunicate OK [00:05:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:30]SAM_PROTO_ProcessDocument remain to read = 281 [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 14 31 80 17 00 00 00 00 00 00 C5 [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 14 31 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:05:31]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:31]wFMCommunicate OK [00:05:31]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:05:31]SAM_PROTO_ProcessDocument remain to read = 31 [00:05:31]wFMCommunicate request_size=4 [00:05:31]MH_SAM_APDU [00:05:31]CAPDU: 80 17 00 00 [00:05:31]Write to MH i2c: E2 08 00 15 31 80 17 00 00 00 00 00 00 C6 [00:05:31]Write i2c OK [00:05:31]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 22 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 22 00 15 31 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 61 08 B4 01 92 B2 90 00 72 [00:05:31]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 61 08 B4 01 92 B2 90 00 [00:05:31]wFMCommunicate OK [00:05:31]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:05:31]SAM_PROTO_ProcessDocument done [00:05:31]1209 (1) - 1.0 - номер версии ФФД [00:05:31]1041 (16) - 0000000000963346 - номер ФМ [00:05:31]1040 (4) - 70051 - номер ФД [00:05:31]1038 (4) - 194 - номер смены [00:05:31]1118 (4) - 440 - количество кассовых чеков за смену [00:05:31]1111 (4) - 442 - общее количество ФД за смену [00:05:31]1194 (1208) - счетчики итогов смены [00:05:31] 1134 (4) - 440 - количество чеков со всеми признаками расчетов [00:05:31] 1129 (158) - счетчики операций «приход» [00:05:31] 1135 (4) - 436 - количество чеков по признаку расчетов [00:05:31] 1201 (4) - 510970.13 - общая итоговая сумма в чеках [00:05:31] 1136 (4) - 400172.00 - итоговая сумма в чеках наличными [00:05:31] 1138 (3) - 110798.13 - итоговая сумма в чеках безналичными [00:05:31] 1024 (123) - суммы налогов [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 0% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1006 (12) - суммы НДС [00:05:31] 1010 (1) - 12% - код ставки НДС [00:05:31] 1011 (3) - 54273.21 - сумма НДС по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (12) - суммы НСП [00:05:31] 1014 (1) - 1% - код ставки НСП [00:05:31] 1015 (3) - 4522.58 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 2% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 3% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 5% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1130 (152) - счетчики операций «возврат прихода» [00:05:31] 1135 (4) - 4 - количество чеков по признаку расчетов [00:05:31] 1201 (3) - 45050.00 - общая итоговая сумма в чеках [00:05:31] 1136 (3) - 45050.00 - итоговая сумма в чеках наличными [00:05:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:31] 1024 (122) - суммы налогов [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 0% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1006 (12) - суммы НДС [00:05:31] 1010 (1) - 12% - код ставки НДС [00:05:31] 1011 (3) - 4784.11 - сумма НДС по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (11) - суммы НСП [00:05:31] 1014 (1) - 1% - код ставки НСП [00:05:31] 1015 (2) - 398.68 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 2% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 3% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 5% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1131 (141) - счетчики операций «расход» [00:05:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:31] 1024 (117) - суммы налогов [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 0% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 12% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 2% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 3% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 5% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1132 (141) - счетчики операций «возврат расхода» [00:05:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:05:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:05:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:05:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:05:31] 1024 (117) - суммы налогов [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 0% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1006 (9) - суммы НДС [00:05:31] 1010 (1) - 12% - код ставки НДС [00:05:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 2% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 3% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 5% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 0,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1007 (9) - суммы НСП [00:05:31] 1014 (1) - 1,50% - код ставки НСП [00:05:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:05:31] 1133 (588) - - счетчики коррекции - не используются [00:05:31]1077 (6) - 106690007634610 - ФПД [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1209 (04B9) [00:05:31]Malloc new data [00:05:31]Processing tag 1041 (0411) [00:05:31]Processing tag 1040 (0410) [00:05:31]Malloc new data [00:05:31]Processing tag 1038 (040E) [00:05:31]Malloc new data [00:05:31]Processing tag 1118 (045E) [00:05:31]Malloc new data [00:05:31]Processing tag 1111 (0457) [00:05:31]Malloc new data [00:05:31]Processing tag 1194 (04AA) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1134 (046E) [00:05:31]Malloc new data [00:05:31]Processing tag 1129 (0469) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1135 (046F) [00:05:31]Malloc new data [00:05:31]Processing tag 1201 (04B1) [00:05:31]Malloc new data [00:05:31]Processing tag 1136 (0470) [00:05:31]Malloc new data [00:05:31]Processing tag 1138 (0472) [00:05:31]Malloc new data [00:05:31]Processing tag 1024 (0400) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1006 (03EE) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1010 (03F2) [00:05:31]Malloc new data [00:05:31]Processing tag 1011 (03F3) [00:05:31]Malloc new data [00:05:31]SetTLVBufToDocument err=0 [00:05:31]Processing tag 1006 (03EE) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:31]Processing tag 1010 (03F2) [00:05:31]Malloc new data [00:05:31]Processing tag 1011 (03F3) [00:05:31]Malloc new data [00:05:31]SetTLVBufToDocument err=0 [00:05:31]Processing tag 1007 (03EF) [00:05:31]Load OK [00:05:31]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1130 (046A) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1135 (046F) [00:05:32]Malloc new data [00:05:32]Processing tag 1201 (04B1) [00:05:32]Malloc new data [00:05:32]Processing tag 1136 (0470) [00:05:32]Malloc new data [00:05:32]Processing tag 1138 (0472) [00:05:32]Malloc new data [00:05:32]Processing tag 1024 (0400) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1131 (046B) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1135 (046F) [00:05:32]Malloc new data [00:05:32]Processing tag 1201 (04B1) [00:05:32]Malloc new data [00:05:32]Processing tag 1136 (0470) [00:05:32]Malloc new data [00:05:32]Processing tag 1138 (0472) [00:05:32]Malloc new data [00:05:32]Processing tag 1024 (0400) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1132 (046C) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1135 (046F) [00:05:32]Malloc new data [00:05:32]Processing tag 1201 (04B1) [00:05:32]Malloc new data [00:05:32]Processing tag 1136 (0470) [00:05:32]Malloc new data [00:05:32]Processing tag 1138 (0472) [00:05:32]Malloc new data [00:05:32]Processing tag 1024 (0400) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1006 (03EE) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1010 (03F2) [00:05:32]Malloc new data [00:05:32]Processing tag 1011 (03F3) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1007 (03EF) [00:05:32]Load OK [00:05:32]SetTLVBufToDocument [00:05:32]Processing tag 1014 (03F6) [00:05:32]Malloc new data [00:05:32]Processing tag 1015 (03F7) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1133 (046D) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Processing tag 1077 (0435) [00:05:32]Malloc new data [00:05:32]SetTLVBufToDocument err=0 [00:05:32]Malloc new data [00:05:32]SAM_PROTO_GetFMData [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 03 00 [00:05:32]Write to MH i2c: E2 08 00 16 31 80 13 03 00 00 00 00 00 C6 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 16 31 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 92 [00:05:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:05:33]wFMCommunicate OK [00:05:33]wFMCommunicate request_size=4 [00:05:33]MH_SAM_APDU [00:05:33]CAPDU: 80 17 00 00 [00:05:33]Write to MH i2c: E2 08 00 17 31 80 17 00 00 00 00 00 00 C8 [00:05:33]Write i2c OK [00:05:33]MH_I2C_Read... [00:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 17 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [00:05:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:34]wFMCommunicate OK [00:05:34]wFMCommunicate request_size=4 [00:05:34]MH_SAM_APDU [00:05:34]CAPDU: 80 17 00 00 [00:05:34]Write to MH i2c: E2 08 00 18 31 80 17 00 00 00 00 00 00 C9 [00:05:34]Write i2c OK [00:05:34]MH_I2C_Read... [00:05:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:34]Read from MH i2c: E2 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 [00:05:34]MH_I2C_Read... [00:05:34]Read from MH i2c: E2 FD 00 18 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [00:05:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:05:34]00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:34]wFMCommunicate OK [00:05:34]wFMCommunicate request_size=4 [00:05:34]MH_SAM_APDU [00:05:34]CAPDU: 80 17 00 00 [00:05:34]Write to MH i2c: E2 08 00 19 31 80 17 00 00 00 00 00 00 CA [00:05:34]Write i2c OK [00:05:34]MH_I2C_Read... [00:05:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:35]Read from MH i2c: E2 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 FD 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 FD 00 19 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [00:05:35]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:35]wFMCommunicate OK [00:05:35]wFMCommunicate request_size=4 [00:05:35]MH_SAM_APDU [00:05:35]CAPDU: 80 17 00 00 [00:05:35]Write to MH i2c: E2 08 00 1A 31 80 17 00 00 00 00 00 00 CB [00:05:35]Write i2c OK [00:05:35]MH_I2C_Read... [00:05:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:35]Read from MH i2c: E2 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 E2 00 [00:05:35]MH_I2C_Read... [00:05:35]Read from MH i2c: E2 E2 00 1A 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A9 [00:05:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:36]wFMCommunicate OK [00:05:36]SAM_PROTO_GetFMData done [00:05:36]Malloc new data [00:05:36]Malloc new data [00:05:36]Malloc new data [00:05:36]Malloc new data [00:05:36]KKMLoadAndSignCloseShiftData err=0 [00:05:36]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ахмедова У. 22.10.2024 00:05 Смена: 194 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Чеков за смену: 440 ФД за смену: 442 Всего чеков: 440 ИТОГИ ПРИХОД Чеков: 436 Общий итог: 510970.13 Итого наличными: 400172.00 Итого безнал.: 110798.13 НДС 0% : 0.00 НДС 12% : 54273.21 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4522.58 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 45050.00 Итого наличными: 45050.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 4784.11 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 398.68 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 355122.00 НС Приход: 81409045.49 НС Возвр.Прихода: 2992313.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 70051 ФМ: 0000000000963346 ФПД: 106690007634610 [00:05:36]StoreToDocumentArchive [00:05:36]shift 194 fd 70051 [00:05:36]save to /storage/0194/doc_00070051 [00:05:36]save last doc name /storage/0194/doc_00070051 to /storage/kkm_last_doc_name [00:05:36]save OK [00:05:36]Clear old archive folders... [00:05:36]Remove dir /storage/0010 [00:05:36]opendir ok [00:05:36]file . [00:05:36]file .. [00:05:36]file doc_1729555490 [00:05:36]remove file /storage/0010/doc_1729555490 [00:05:36]remove dir /storage/0010 [00:05:36]NVStorageSaveData kkm_registers [00:05:36]File name is /storage/kkm_registers [00:05:36]Write 24 bytes [00:05:36]NVStorageSaveData done [00:05:36]NVStorageSaveData kkm_registers [00:05:36]File name is /storage/kkm_registers [00:05:36]Write 24 bytes [00:05:36]NVStorageSaveData done [00:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:05:36]tlvbuf is 0131E9E0 [00:05:36]SAM_PROTO_ClearQueue [00:05:36]wFMCommunicate request_size=4 [00:05:36]MH_SAM_APDU [00:05:36]CAPDU: 80 09 00 00 [00:05:36]Write to MH i2c: E2 08 00 1B 31 80 09 00 00 00 00 00 00 BE [00:05:36]Write i2c OK [00:05:36]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [00:05:36]RAPDU: 90 00 [00:05:36]wFMCommunicate OK [00:05:36]SAM_PROTO_ClearQueue done [00:05:36]KKMCreateOFDPacket [00:05:36]OFDProtocolAddRootSTLVToBuf [00:05:36]FM_MakeSignedData [00:05:36]FM_MakeSignedData [00:05:36]SAM_PROTO_SignData [00:05:36]wFMCommunicate request_size=4 [00:05:36]MH_SAM_APDU [00:05:36]CAPDU: 80 0D 01 02 [00:05:36]Write to MH i2c: E2 08 00 1C 31 80 0D 01 02 00 00 00 00 C6 [00:05:36]Write i2c OK [00:05:36]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 1C 31 00 90 00 C1 [00:05:36]RAPDU: 90 00 [00:05:36]wFMCommunicate OK [00:05:36]wFMCommunicate request_size=255 [00:05:36]MH_SAM_APDU [00:05:36]CAPDU: 80 0D 02 02 FA 05 00 6D 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 49 EC 16 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 DF 04 6E 04 04 00 B8 01 00 00 69 04 A5 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:05:36]Write to MH i2c: E2 02 01 1D 31 80 0D 02 02 FA 00 05 00 6D 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 49 EC 16 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 DF 04 6E 04 04 00 B8 01 00 00 69 04 A5 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 D1 [00:05:36]Write i2c OK [00:05:36]MH_I2C_Read... [00:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:36]Read from MH i2c: E2 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 [00:05:36]MH_I2C_Read... [00:05:36]Read from MH i2c: E2 03 00 1D 31 00 90 00 C2 [00:05:37]RAPDU: 90 00 [00:05:37]wFMCommunicate OK [00:05:37]wFMCommunicate request_size=255 [00:05:37]MH_SAM_APDU [00:05:37]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 4C 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B 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 [00:05:37]Write to MH i2c: E2 02 01 1E 31 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 4C 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B 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 00 00 A9 [00:05:37]Write i2c OK [00:05:37]MH_I2C_Read... [00:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:37]Read from MH i2c: E2 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 03 00 [00:05:37]MH_I2C_Read... [00:05:37]Read from MH i2c: E2 03 00 1E 31 00 90 00 C3 [00:05:37]RAPDU: 90 00 [00:05:37]wFMCommunicate OK [00:05:37]wFMCommunicate request_size=255 [00:05:37]MH_SAM_APDU [00:05:37]CAPDU: 80 0D 02 02 FA 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 [00:05:37]Write to MH i2c: E2 02 01 1F 31 80 0D 02 02 FA 00 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 00 00 82 [00:05:38]Write i2c OK [00:05:38]MH_I2C_Read... [00:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:38]Read from MH i2c: E2 [00:05:38]MH_I2C_Read... [00:05:38]Read from MH i2c: E2 03 00 [00:05:38]MH_I2C_Read... [00:05:38]Read from MH i2c: E2 03 00 1F 31 00 90 00 C4 [00:05:38]RAPDU: 90 00 [00:05:38]wFMCommunicate OK [00:05:38]wFMCommunicate request_size=255 [00:05:38]MH_SAM_APDU [00:05:38]CAPDU: 80 0D 02 02 FA 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 [00:05:38]Write to MH i2c: E2 02 01 20 31 80 0D 02 02 FA 00 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 00 00 A2 [00:05:38]Write i2c OK [00:05:38]MH_I2C_Read... [00:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:39]Read from MH i2c: E2 [00:05:39]MH_I2C_Read... [00:05:39]Read from MH i2c: E2 03 00 [00:05:39]MH_I2C_Read... [00:05:39]Read from MH i2c: E2 03 00 20 31 00 90 00 C5 [00:05:39]RAPDU: 90 00 [00:05:39]wFMCommunicate OK [00:05:39]wFMCommunicate request_size=255 [00:05:39]MH_SAM_APDU [00:05:39]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:05:39]Write to MH i2c: E2 02 01 21 31 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 5C [00:05:39]OFD Sender: No OFD packet to send [00:05:39]Write i2c OK [00:05:39]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 03 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 03 00 21 31 00 90 00 C6 [00:05:40]RAPDU: 90 00 [00:05:40]wFMCommunicate OK [00:05:40]wFMCommunicate request_size=148 [00:05:40]MH_SAM_APDU [00:05:40]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 61 08 B4 01 92 B2 [00:05:40]Write to MH i2c: E2 97 00 22 31 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 61 08 B4 01 92 B2 00 00 22 [00:05:40]Write i2c OK [00:05:40]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 03 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 03 00 22 31 00 90 00 C7 [00:05:40]RAPDU: 90 00 [00:05:40]wFMCommunicate OK [00:05:40]wFMCommunicate request_size=4 [00:05:40]MH_SAM_APDU [00:05:40]CAPDU: 80 0D 03 02 [00:05:40]Write to MH i2c: E2 08 00 23 31 80 0D 03 02 00 00 00 00 CF [00:05:40]Write i2c OK [00:05:40]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 0B 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 0B 00 23 31 00 92 D9 69 5E 77 6A F2 8C 90 00 61 [00:05:40]RAPDU: 92 D9 69 5E 77 6A F2 8C 90 00 [00:05:40]wFMCommunicate OK [00:05:40]SAM_PROTO_SignData done [00:05:40]FM_MakeSignedData done [00:05:40]CreateOFDProtocolMessage [00:05:40]wFMCommunicate request_size=4 [00:05:40]MH_SAM_APDU [00:05:40]CAPDU: 80 11 00 00 [00:05:40]Write to MH i2c: E2 08 00 24 31 80 11 00 00 00 00 00 00 CF [00:05:40]Write i2c OK [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 [00:05:40]MH_I2C_Read... [00:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:40]Read from MH i2c: E2 17 00 [00:05:40]MH_I2C_Read... [00:05:40]Read from MH i2c: E2 17 00 24 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [00:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:05:40]wFMCommunicate OK [00:05:40]CreateOFDProtocolMessage done [00:05:40]OFDSenderStorePacket 70051 [00:05:40]StoreOFDPacket docnum=70051 [00:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 81 05 00 00 1D EE 79 05 B4 D8 5A 05 01 00 05 00 6D 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 49 EC 16 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 DF 04 6E 04 04 00 B8 01 00 00 69 04 A5 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 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 A2 E6 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 4C 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B 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 A3 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 61 08 B4 01 92 B2 92 D9 69 5E 77 6A F2 8C [00:05:41]CheckFolder [00:05:41]dirname=/storage/ofd_packets [00:05:41]CheckFolder done [00:05:41]ProducePacketName [00:05:41]name=ofd_packets/00070051 [00:05:41]NVStorageSaveData ofd_packets/00070051 [00:05:41]File name is /storage/ofd_packets/00070051 [00:05:41]Write 1439 bytes [00:05:41]NVStorageSaveData done [00:05:41]OFDSenderStorePacket done [00:05:41]KKMCreateOFDPacket done [00:05:41]NVStorageSaveData kkm_last_timestamp [00:05:41]File name is /storage/kkm_last_timestamp [00:05:41]Write 4 bytes [00:05:41]NVStorageSaveData done [00:05:41]ExternCall_PrintAddStr [00:05:41]wPrintStart [00:05:41]Write to MH i2c: 01 00 00 25 31 56 [00:05:41]Write i2c OK [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: 01 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: 01 07 00 [00:05:41]MH_I2C_Read... [00:05:41]Read from MH i2c: 01 07 00 25 31 00 00 00 00 00 FF 0F 6B [00:05:41]RasterBufferAndPrint [00:05:41]line Отчет о закрытии смены [00:05:41]line ФФД: 1.0 [00:05:41]line ИНН: 02508201610067 [00:05:41]line Кассир: Ахмедова У. [00:05:41]line 22.10.2024 00:05 [00:05:41]line Смена: 194 [00:05:41]line РНМ: 0000000000156251 [00:05:41]line ЗНМ: 0300000167 [00:05:41]line СНО: Общий режим [00:05:41]line Чеков за смену: 440 [00:05:41]line ФД за смену: 442 [00:05:41]line Всего чеков: 440 [00:05:41]line ИТОГИ ПРИХОД [00:05:41]line Чеков: 436 [00:05:41]line Общий итог: 510970.13 [00:05:41]line Итого наличными: 400172.00 [00:05:41]line Итого безнал.: 110798.13 [00:05:41]line НДС 0% : 0.00 [00:05:41]line НДС 12% : 54273.21 [00:05:41]line НСП 0% : 0.00 [00:05:41]line НСП 1,50% : 0.00 [00:05:41]line НСП 0,50% : 0.00 [00:05:41]line НСП 5% : 0.00 [00:05:41]line НСП 3% : 0.00 [00:05:41]line НСП 2% : 0.00 [00:05:41]line НСП 1% : 4522.58 [00:05:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:05:41]line Чеков: 4 [00:05:41]line Общий итог: 45050.00 [00:05:41]line Итого наличными: 45050.00 [00:05:41]line Итого безнал.: 0.00 [00:05:41]line НДС 0% : 0.00 [00:05:41]OFD Sender: Processing packet 70051 [packets to send 18, broken 17] [00:05:41]ProducePacketName [00:05:41]name=ofd_packets/00070051 [00:05:41]OFD Sender: To server: pG, [00:05:41]CommunicateWithHost lk.salyk.kg:30040 [00:05:41]ConnectInit lk.salyk.kg [00:05:41]line НДС 12% : 4784.11 [00:05:41]line НСП 0% : 0.00 [00:05:41]line НСП 1,50% : 0.00 [00:05:41]line НСП 0,50% : 0.00 [00:05:41]line НСП 5% : 0.00 [00:05:41]line НСП 3% : 0.00 [00:05:41]line НСП 2% : 0.00 [00:05:41]line НСП 1% : 398.68 [00:05:41]line ИТОГИ РАСХОД [00:05:41]line Чеков: 0 [00:05:41]line Общий итог: 0.00 [00:05:41]line Итого наличными: 0.00 [00:05:41]line Итого безнал.: 0.00 [00:05:41]line НДС 0% : 0.00 [00:05:41]line НДС 12% : 0.00 [00:05:41]line НСП 0% : 0.00 [00:05:41]line НСП 1,50% : 0.00 [00:05:41]line НСП 0,50% : 0.00 [00:05:41]line НСП 5% : 0.00 [00:05:41]line НСП 3% : 0.00 [00:05:41]line НСП 2% : 0.00 [00:05:41]line НСП 1% : 0.00 [00:05:41]line ИТОГИ ВОЗВРАТ РАСХОДА [00:05:41]line Чеков: 0 [00:05:41]line Общий итог: 0.00 [00:05:41]line Итого наличными: 0.00 [00:05:41]line Итого безнал.: 0.00 [00:05:41]line НДС 0% : 0.00 [00:05:41]line НДС 12% : 0.00 [00:05:41]line НСП 0% : 0.00 [00:05:41]line НСП 1,50% : 0.00 [00:05:41]line НСП 0,50% : 0.00 [00:05:41]line НСП 5% : 0.00 [00:05:41]line НСП 3% : 0.00 [00:05:41]line НСП 2% : 0.00 [00:05:41]line НСП 1% : 0.00 [00:05:41]line Сумма внесений: 0.00 [00:05:41]line Сумма выплат: 0.00 [00:05:41]line Нал. в кассе: 355122.00 [00:05:41]line НС Приход: 81409045.49 [00:05:41]line НС Возвр.Прихода: 2992313.00 [00:05:41]line НС Расход: 0.00 [00:05:41]line НС Возвр.Расхода: 0.00 [00:05:41]line ФД: 70051 [00:05:41]line ФМ: 0000000000963346 [00:05:41]line ФПД: 106690007634610 [00:05:41]written 0, free lines is 4095 [00:05:41]Connected sock=10 [00:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 81 05 00 00 1D EE 79 05 B4 D8 5A 05 01 00 05 00 6D 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F4 03 04 00 49 EC 16 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 AA 04 DF 04 6E 04 04 00 B8 01 00 00 69 04 A5 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 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 A2 E6 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 4C 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B 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 Write to MH i2c: 03 01 01 00 00 00 00 75 F7 31 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 A6 F7 [00:05:42]03 Write i2c OK [00:05:42]01 MH_I2C_Read... [00:05:42]00 00 EF 03 Read from MH i2c: 0A 01 00 [00:05:42]F6 MH_I2C_Read... [00:05:42]03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 01 00 07 04 00 F7 [00:05:42]03 MH_I2C_Read... [00:05:42]01 00 00 EF 03 0A 00 F6 03 01 00 03 Read from MH i2c: F7 01 03 07 01 00 00 75 00 31 EF 00 03 00 0A 00 00 00 F6 00 03 42 01 0B 00 FA 02 [00:05:42]F7 RasterBufferAndPrint [00:05:42]03 line [00:05:42]01 00 00 EF 03 0A 00 F6 03 01 00 01 line [00:05:42]F7 line [00:05:42]03 line [00:05:42]01 line [00:05:42]00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D written 0, free lines is 3051 [00:05:42]00 6F 04 04 00 00 00 00 00 B1 04 00 MH_Cut [00:05:42]00 Write to MH i2c: 70 D1 04 01 00 00 00 7C 72 31 04 01 00 7F 00 [00:05:42]00 04 75 00 EE 03 09 00 F2 03 Write i2c OK [00:05:42]01 MH_I2C_Read... [00:05:42]00 Read from MH i2c: 00 D1 F3 [00:05:42]03 MH_I2C_Read... [00:05:42]00 Read from MH i2c: 00 D1 EE 01 03 00 09 [00:05:42]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 MH_I2C_Read... [00:05:42]00 Read from MH i2c: 05 D1 F7 01 03 00 00 7C 00 31 EF 00 03 7E 09 [00:05:42]00 Write to MH i2c: F6 03 01 00 06 F7 03 00 00 D0 04 8D 01 00 00 6F 00 04 7D 04 31 00 AE 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 [00:05:42]00 Write i2c OK [00:05:42]02 MH_I2C_Read... [00:05:42]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 61 08 B4 01 92 B2 92 D9 69 5E 77 6A F2 8C [00:05:43]*** Cut start [00:05:43]*** Partial cut [00:05:43]*** CUTSNS_PIN = 1 [00:05:43]*** CUTSNS_PIN = 0 [00:05:43]*** Brake cut motor [00:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E 22 47 00 19 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 11 01 00 F4 03 04 00 F9 95 16 67 B6 04 01 00 00 9F 03 C6 6C 6C 64 2C 3B [00:05:43]CommunicateWithHost err = 0 [00:05:43]CheckOFDResponse [00:05:43]1017 (14) - 77093643461234 [00:05:43]1041 (16) - 0000000000963346 [00:05:43]1040 (4) - 70051 [00:05:43]1012 (4) - 21.10.2024 17:57 [00:05:43]1206 (1) - 0 [00:05:43]OFD Sender: Remove packet 70051 [00:05:43]ProducePacketName [00:05:43]name=ofd_packets/00070051 [00:05:43]NVStorageDeleteData [00:05:43]Read from MH i2c: 01 [00:05:43]MH_I2C_Read... [00:05:43]*** Stop cut motor [00:05:43]*** Cut end [00:05:43]Read from MH i2c: 01 07 00 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: 01 07 00 7D 31 00 00 00 00 00 FF 0F C3 [00:05:43]process_action close_shift done [00:05:43]requested_data is exist [00:05:43]produce_requested_data [00:05:43]requested_item fd.num is exist - process it [00:05:43]SAM_PROTO_GetFieldsCounters [00:05:43]wFMCommunicate request_size=4 [00:05:43]MH_SAM_APDU [00:05:43]CAPDU: 80 13 00 00 [00:05:43]Write to MH i2c: E2 08 00 7E 31 80 13 00 00 00 00 00 00 2B [00:05:43]Write i2c OK [00:05:43]MH_I2C_Read... [00:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:43]Read from MH i2c: E2 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: E2 62 00 [00:05:43]MH_I2C_Read... [00:05:43]Read from MH i2c: E2 62 00 7E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [00:05:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:44]wFMCommunicate OK [00:05:44]SAM_PROTO_GetFieldsCounters done [00:05:44]requested_item shift.num is exist - process it [00:05:44]requested_item shift.opened is exist - process it [00:05:44]req_shift_opened [00:05:44]FM_GetShiftState [00:05:44]SAM_PROTO_GetShiftState [00:05:44]wFMCommunicate request_size=4 [00:05:44]MH_SAM_APDU [00:05:44]CAPDU: 80 13 01 00 [00:05:44]Write to MH i2c: E2 08 00 7F 31 80 13 01 00 00 00 00 00 2D [00:05:44]OFD Sender: No OFD packet to send [00:05:44]Write i2c OK [00:05:44]MH_I2C_Read... [00:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:44]Read from MH i2c: E2 [00:05:44]MH_I2C_Read... [00:05:44]Read from MH i2c: E2 0E 00 [00:05:44]MH_I2C_Read... [00:05:44]Read from MH i2c: E2 0E 00 7F 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 38 [00:05:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:44]wFMCommunicate OK [00:05:44]SAM_PROTO_GetShiftState done [00:05:44]FM_GetShiftState done [00:05:44]req_shift_opened done [00:05:44]requested_item shift.open_date is exist - process it [00:05:44]req_shift_open_date [00:05:44]FM_GetShiftState [00:05:44]SAM_PROTO_GetShiftState [00:05:44]wFMCommunicate request_size=4 [00:05:44]MH_SAM_APDU [00:05:44]CAPDU: 80 13 01 00 [00:05:44]Write to MH i2c: E2 08 00 80 31 80 13 01 00 00 00 00 00 2E [00:05:44]Write i2c OK [00:05:44]MH_I2C_Read... [00:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:44]Read from MH i2c: E2 [00:05:44]MH_I2C_Read... [00:05:44]Read from MH i2c: E2 0E 00 [00:05:44]MH_I2C_Read... [00:05:44]Read from MH i2c: E2 0E 00 80 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 39 [00:05:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:44]wFMCommunicate OK [00:05:44]SAM_PROTO_GetShiftState done [00:05:44]FM_GetShiftState done [00:05:44]req_shift_open_date done [00:05:44]produce_requested_data done [00:05:44]produce_requested_data return {"fd.num":70051,"shift.num":194,"shift.opened":0,"shift.open_date":0} [00:05:44]process_action_free close_shift [00:05:44]json_value_free [00:05:44]json_value_free done [00:05:44]process_json_proto returns [00:05:44]Send response to host [00:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70051,"shift.num":194,"shift.opened":0,"shift.open_date":0}}} [00:05:44]free response buf [00:05:44]execute_script done [00:05:44]execute_script returns [00:05:44]free content buf [00:05:44]Sock 9.Close socket [00:05:44]Sock 9.Thread stoped [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:26]accept exits with 7 [00:10:26]New connection [00:10:26]New thread 3067170148 created [00:10:26]Thread 3067026788 joined [00:10:26]Waiting for new connection... [00:10:26] Sock 7.Parse request [00:10:26]Sock 7.Check first char [00:10:26]Sock 7.First char is OK [00:10:26]request: POST /json_proto HTTP/1.0 [00:10:26]Method: POST [00:10:26]URL: /json_proto [00:10:26]Method is POST - this is cgi request [00:10:26]url: /json_proto [00:10:26]query_string will be loaded in cgi processing [00:10:26]execute_cgi json_proto POST (null) [00:10:26]execute_cgi path=json_proto method=POST [00:10:26]POST find Content-Length [00:10:26]Host: 172.17.50.3:8080 [00:10:26]Content-Length: 215 [00:10:26]Content-Type: application/json [00:10:26] [00:10:26]POST finish read [00:10:26]Found Content-Length = 215 [00:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:26]execute_script... [00:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:26]POST & json_proto [00:10:26]process_json_proto [00:10:26]json parsed OK: [00:10:26]protocol is kg_v1.0 [00:10:26]action value=get_value [00:10:26]process_action get_value [00:10:26]cmd_get_value [00:10:26]process_action get_value done [00:10:26]requested_data is exist [00:10:26]produce_requested_data [00:10:26]requested_item kkm.sn is exist - process it [00:10:26]requested_item kkm.ver is exist - process it [00:10:26]requested_item fm.sn is exist - process it [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 11 00 00 [00:10:26]Write to MH i2c: E2 08 00 81 31 80 11 00 00 00 00 00 00 2C [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 17 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 17 00 81 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [00:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:10:26]wFMCommunicate OK [00:10:26]requested_item fd.num is exist - process it [00:10:26]SAM_PROTO_GetFieldsCounters [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 00 00 [00:10:26]Write to MH i2c: E2 08 00 82 31 80 13 00 00 00 00 00 00 2F [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 62 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 62 00 82 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [00:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 11 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetFieldsCounters done [00:10:26]requested_item shift.num is exist - process it [00:10:26]requested_item shift.opened is exist - process it [00:10:26]req_shift_opened [00:10:26]FM_GetShiftState [00:10:26]SAM_PROTO_GetShiftState [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 01 00 [00:10:26]Write to MH i2c: E2 08 00 83 31 80 13 01 00 00 00 00 00 31 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 83 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3C [00:10:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftState done [00:10:26]FM_GetShiftState done [00:10:26]req_shift_opened done [00:10:26]requested_item shift.open_date is exist - process it [00:10:26]req_shift_open_date [00:10:26]FM_GetShiftState [00:10:26]SAM_PROTO_GetShiftState [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 01 00 [00:10:26]Write to MH i2c: E2 08 00 84 31 80 13 01 00 00 00 00 00 32 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:26]Read from MH i2c: E2 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 [00:10:26]MH_I2C_Read... [00:10:26]Read from MH i2c: E2 0E 00 84 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3D [00:10:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:26]wFMCommunicate OK [00:10:26]SAM_PROTO_GetShiftState done [00:10:26]FM_GetShiftState done [00:10:26]req_shift_open_date done [00:10:26]produce_requested_data done [00:10:26]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70051,"shift.num":194,"shift.opened":0,"shift.open_date":0} [00:10:26]process_action_free get_value [00:10:26]json_value_free [00:10:26]json_value_free done [00:10:26]process_json_proto returns [00:10:26]Send response to host [00:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":70051,"shift.num":194,"shift.opened":0,"shift.open_date":0}}} [00:10:26]free response buf [00:10:26]execute_script done [00:10:26]execute_script returns [00:10:26]free content buf [00:10:26]Sock 7.Close socket [00:10:26]Sock 7.Thread stoped [00:10:26]accept exits with 9 [00:10:26]New connection [00:10:26]New thread 3067026788 created [00:10:26]Thread 3067170148 joined [00:10:26]Waiting for new connection... [00:10:26] Sock 9.Parse request [00:10:26]Sock 9.Check first char [00:10:26]Sock 9.First char is OK [00:10:26]request: POST /json_proto HTTP/1.0 [00:10:26]Method: POST [00:10:26]URL: /json_proto [00:10:26]Method is POST - this is cgi request [00:10:26]url: /json_proto [00:10:26]query_string will be loaded in cgi processing [00:10:26]execute_cgi json_proto POST (null) [00:10:26]execute_cgi path=json_proto method=POST [00:10:26]POST find Content-Length [00:10:26]Host: 172.17.50.3:8080 [00:10:26]Content-Length: 331 [00:10:26]Content-Type: application/json [00:10:26] [00:10:26]POST finish read [00:10:26]Found Content-Length = 331 [00:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:26]execute_script... [00:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:26]POST & json_proto [00:10:26]process_json_proto [00:10:26]json parsed OK: [00:10:26]protocol is kg_v1.0 [00:10:26]action value=get_value [00:10:26]process_action get_value [00:10:26]cmd_get_value [00:10:26]process_action get_value done [00:10:26]requested_data is exist [00:10:26]produce_requested_data [00:10:26]requested_item fm.sale.total is exist - process it [00:10:26]SAM_PROTO_GetFMData [00:10:26]wFMCommunicate request_size=4 [00:10:26]MH_SAM_APDU [00:10:26]CAPDU: 80 13 03 00 [00:10:26]Write to MH i2c: E2 08 00 85 31 80 13 03 00 00 00 00 00 35 [00:10:26]Write i2c OK [00:10:26]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 85 31 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 01 [00:10:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:10:27]wFMCommunicate OK [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 17 00 00 [00:10:27]Write to MH i2c: E2 08 00 86 31 80 17 00 00 00 00 00 00 37 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 86 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:10:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:27]wFMCommunicate OK [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 17 00 00 [00:10:27]Write to MH i2c: E2 08 00 87 31 80 17 00 00 00 00 00 00 38 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 FD 00 87 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:10:27]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:27]wFMCommunicate OK [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 17 00 00 [00:10:27]Write to MH i2c: E2 08 00 88 31 80 17 00 00 00 00 00 00 39 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 88 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:10:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:28]wFMCommunicate OK [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 17 00 00 [00:10:28]Write to MH i2c: E2 08 00 89 31 80 17 00 00 00 00 00 00 3A [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 E2 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 E2 00 89 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [00:10:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:28]wFMCommunicate OK [00:10:28]SAM_PROTO_GetFMData done [00:10:28]requested_item fm.sale_refund.total is exist - process it [00:10:28]requested_item fm.buy.total is exist - process it [00:10:28]requested_item shift.sale.total is exist - process it [00:10:28]SAM_PROTO_GetShiftData [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 13 02 00 [00:10:28]Write to MH i2c: E2 08 00 8A 31 80 13 02 00 00 00 00 00 39 [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 8A 31 00 BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 37 [00:10:28]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 B8 01 00 00 69 04 9E 00 6F 04 04 00 B4 01 00 00 B1 04 04 00 B5 AD 0B 03 70 04 04 00 30 9D 62 02 72 04 03 00 85 10 A9 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 79 D0 52 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 E6 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 A8 BD 44 70 04 03 00 A8 BD 44 72 04 00 00 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 CB 4C 07 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:10:28]wFMCommunicate OK [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 17 00 00 [00:10:28]Write to MH i2c: E2 08 00 8B 31 80 17 00 00 00 00 00 00 3C [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 8B 31 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:10:29]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BC 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:29]wFMCommunicate OK [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 17 00 00 [00:10:29]Write to MH i2c: E2 08 00 8C 31 80 17 00 00 00 00 00 00 3D [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 8C 31 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:10:29]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:29]wFMCommunicate OK [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 17 00 00 [00:10:29]Write to MH i2c: E2 08 00 8D 31 80 17 00 00 00 00 00 00 3E [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:29]OFD Sender: No OFD packet to send [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 8D 31 00 03 00 00 EF 03 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 90 00 BF [00:10:29]RAPDU: 03 00 00 EF 03 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 90 00 [00:10:29]wFMCommunicate OK [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 17 00 00 [00:10:29]Write to MH i2c: E2 08 00 8E 31 80 17 00 00 00 00 00 00 3F [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 D9 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 D9 00 8E 31 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 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 1E [00:10:30]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_GetShiftData done [00:10:30]requested_item shift.sale.total_cash is exist - process it [00:10:30]requested_item shift.sale_refund.total is exist - process it [00:10:30]requested_item shift.sale_refund.total_cash is exist - process it [00:10:30]requested_item shift.buy.total is exist - process it [00:10:30]requested_item shift.buy.total_cash is exist - process it [00:10:30]produce_requested_data done [00:10:30]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:30]process_action_free get_value [00:10:30]json_value_free [00:10:30]json_value_free done [00:10:30]process_json_proto returns [00:10:30]Send response to host [00:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":510970.13,"shift.sale.total_cash":400172.00,"shift.sale_refund.total":45050.00,"shift.sale_refund.total_cash":45050.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:30]free response buf [00:10:30]execute_script done [00:10:30]execute_script returns [00:10:30]free content buf [00:10:30]Sock 9.Close socket [00:10:30]Sock 9.Thread stoped [00:10:30]accept exits with 7 [00:10:30]New connection [00:10:30]New thread 3067170148 created [00:10:30]Thread 3067026788 joined [00:10:30]Waiting for new connection... [00:10:30] Sock 7.Parse request [00:10:30]Sock 7.Check first char [00:10:30]Sock 7.First char is OK [00:10:30]request: POST /json_proto HTTP/1.0 [00:10:30]Method: POST [00:10:30]URL: /json_proto [00:10:30]Method is POST - this is cgi request [00:10:30]url: /json_proto [00:10:30]query_string will be loaded in cgi processing [00:10:30]execute_cgi json_proto POST (null) [00:10:30]execute_cgi path=json_proto method=POST [00:10:30]POST find Content-Length [00:10:30]Host: 172.17.50.3:8080 [00:10:30]Content-Length: 259 [00:10:30]Content-Type: application/json [00:10:30] [00:10:30]POST finish read [00:10:30]Found Content-Length = 259 [00:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:30]execute_script... [00:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:30]POST & json_proto [00:10:30]process_json_proto [00:10:30]json parsed OK: [00:10:30]protocol is kg_v1.0 [00:10:30]action value=open_shift [00:10:30]process_action open_shift [00:10:30]cmd_open_shift [00:10:30]MH_GetDate [00:10:30]Write to MH i2c: F0 00 00 8F 31 AF [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 09 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 09 00 8F 31 00 78 ED 16 67 6B 98 1E 66 21 [00:10:30]GetLastDocTimeStamp 1729555529 [00:10:30]current date 1729555832 [00:10:30]FM_GetShiftState [00:10:30]SAM_PROTO_GetShiftState [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 13 01 00 [00:10:30]Write to MH i2c: E2 08 00 90 31 80 13 01 00 00 00 00 00 3E [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 90 31 00 09 00 00 00 00 00 00 00 00 00 00 90 00 49 [00:10:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_GetShiftState done [00:10:30]FM_GetShiftState done [00:10:30]KKMCreateOpenShiftDocument [00:10:30]Load OK [00:10:30]Malloc new data [00:10:30]MH_GetDate [00:10:30]Write to MH i2c: F0 00 00 91 31 B1 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 09 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: F0 09 00 91 31 00 78 ED 16 67 6B 98 1E 66 23 [00:10:30]Malloc new data [00:10:30]KKMCreateOpenShiftDocument OK [00:10:30]KKMSetOpenShiftData OK [00:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=209 [00:10:30]tlvbuf is 0117C240 [00:10:30]KKMLoadAndSignOpenShiftData [00:10:30]SAM_PROTO_ProcessDocument [00:10:30]wFMCommunicate request_size=9 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 01 00 04 02 00 D1 00 [00:10:30]Write to MH i2c: E2 0C 00 92 31 80 15 01 00 04 00 02 00 D1 00 00 00 1D [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 92 31 00 90 00 37 [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=23 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:10:30]Write to MH i2c: E2 1A 00 93 31 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 39 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 93 31 00 90 00 38 [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=30 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 [00:10:30]Write to MH i2c: E2 21 00 94 31 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 00 00 48 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 94 31 00 90 00 39 [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=98 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 [00:10:30]Write to MH i2c: E2 65 00 95 31 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 00 00 5D [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 95 31 00 90 00 3A [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=50 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:10:30]Write to MH i2c: E2 35 00 96 31 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 C3 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 96 31 00 90 00 3B [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=13 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 08 F4 03 04 00 78 ED 16 67 [00:10:30]Write to MH i2c: E2 10 00 97 31 80 15 02 00 08 00 F4 03 04 00 78 ED 16 67 00 00 35 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 97 31 00 90 00 3C [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=25 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:10:30]Write to MH i2c: E2 1C 00 98 31 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 A6 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 03 00 98 31 00 90 00 3D [00:10:30]RAPDU: 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 15 03 00 [00:10:30]Write to MH i2c: E2 08 00 99 31 80 15 03 00 00 00 00 00 4B [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 38 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 38 00 99 31 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 11 01 00 0E 04 04 00 C3 00 00 00 35 04 06 00 F0 67 E5 59 0E 94 90 00 C6 [00:10:31]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 11 01 00 0E 04 04 00 C3 00 00 00 35 04 06 00 F0 67 E5 59 0E 94 90 00 [00:10:31]wFMCommunicate OK [00:10:31]SAM_PROTO_ProcessDocument answer len = 51 [00:10:31]SAM_PROTO_ProcessDocument done [00:10:31]SetTLVBufToDocument [00:10:31]Processing tag 1209 (04B9) [00:10:31]Malloc new data [00:10:31]Processing tag 1041 (0411) [00:10:31]Processing tag 1040 (0410) [00:10:31]Malloc new data [00:10:31]Processing tag 1038 (040E) [00:10:31]Malloc new data [00:10:31]Processing tag 1077 (0435) [00:10:31]Malloc new data [00:10:31]SetTLVBufToDocument err=0 [00:10:31]KKMLoadAndSignOpenShiftData store KKM data [00:10:31]KKMLoadAndSignOpenShiftData err=0 [00:10:31]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ахмедова У. Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 Место: АЗС № 85 "Партнер Нефть" 22.10.2024 00:10 Смена: 195 РНМ: 0000000000156251 ЗНМ: 0300000167 ФД: 70052 ФМ: 0000000000963346 ФПД: 264329020116628 [00:10:31]StoreToDocumentArchive [00:10:31]shift 195 fd 70052 [00:10:31]Create dir for shift 0195 [00:10:31]save to /storage/0195/doc_00070052 [00:10:31]save last doc name /storage/0195/doc_00070052 to /storage/kkm_last_doc_name [00:10:31]save OK [00:10:31]Clear old archive folders... [00:10:31]Remove dir /storage/0194 [00:10:31]opendir ok [00:10:31]file . [00:10:31]file .. [00:10:31]file doc_00069610 [00:10:31]remove file /storage/0194/doc_00069610 [00:10:31]file doc_00069611 [00:10:31]remove file /storage/0194/doc_00069611 [00:10:31]file doc_00069612 [00:10:31]remove file /storage/0194/doc_00069612 [00:10:31]file doc_00069613 [00:10:31]remove file /storage/0194/doc_00069613 [00:10:31]file doc_00069614 [00:10:31]remove file /storage/0194/doc_00069614 [00:10:31]file doc_00069615 [00:10:31]remove file /storage/0194/doc_00069615 [00:10:31]file doc_00069616 [00:10:31]remove file /storage/0194/doc_00069616 [00:10:31]file doc_00069617 [00:10:31]remove file /storage/0194/doc_00069617 [00:10:31]file doc_00069618 [00:10:31]remove file /storage/0194/doc_00069618 [00:10:31]file doc_00069619 [00:10:31]remove file /storage/0194/doc_00069619 [00:10:31]file doc_00069620 [00:10:31]remove file /storage/0194/doc_00069620 [00:10:31]file doc_00069621 [00:10:31]remove file /storage/0194/doc_00069621 [00:10:31]file doc_00069622 [00:10:31]remove file /storage/0194/doc_00069622 [00:10:31]file doc_00069623 [00:10:31]remove file /storage/0194/doc_00069623 [00:10:31]file doc_00069624 [00:10:31]remove file /storage/0194/doc_00069624 [00:10:31]file doc_00069625 [00:10:31]remove file /storage/0194/doc_00069625 [00:10:31]file doc_00069626 [00:10:31]remove file /storage/0194/doc_00069626 [00:10:31]file doc_00069627 [00:10:31]remove file /storage/0194/doc_00069627 [00:10:31]file doc_00069628 [00:10:31]remove file /storage/0194/doc_00069628 [00:10:31]file doc_00069629 [00:10:31]remove file /storage/0194/doc_00069629 [00:10:31]file doc_00069630 [00:10:31]remove file /storage/0194/doc_00069630 [00:10:31]file doc_00069631 [00:10:31]remove file /storage/0194/doc_00069631 [00:10:31]file doc_00069632 [00:10:31]remove file /storage/0194/doc_00069632 [00:10:31]file doc_00069633 [00:10:31]remove file /storage/0194/doc_00069633 [00:10:31]file doc_00069634 [00:10:31]remove file /storage/0194/doc_00069634 [00:10:31]file doc_00069635 [00:10:31]remove file /storage/0194/doc_00069635 [00:10:31]file doc_00069636 [00:10:31]remove file /storage/0194/doc_00069636 [00:10:31]file doc_00069637 [00:10:31]remove file /storage/0194/doc_00069637 [00:10:31]file doc_00069638 [00:10:31]remove file /storage/0194/doc_00069638 [00:10:31]file doc_00069639 [00:10:31]remove file /storage/0194/doc_00069639 [00:10:31]file doc_00069640 [00:10:31]remove file /storage/0194/doc_00069640 [00:10:31]file doc_00069641 [00:10:31]remove file /storage/0194/doc_00069641 [00:10:31]file doc_00069642 [00:10:31]remove file /storage/0194/doc_00069642 [00:10:31]file doc_00069643 [00:10:31]remove file /storage/0194/doc_00069643 [00:10:31]file doc_00069644 [00:10:31]remove file /storage/0194/doc_00069644 [00:10:31]file doc_00069645 [00:10:31]remove file /storage/0194/doc_00069645 [00:10:31]file doc_00069646 [00:10:31]remove file /storage/0194/doc_00069646 [00:10:31]file doc_00069647 [00:10:31]remove file /storage/0194/doc_00069647 [00:10:31]file doc_00069648 [00:10:31]remove file /storage/0194/doc_00069648 [00:10:31]file doc_00069649 [00:10:31]remove file /storage/0194/doc_00069649 [00:10:31]file doc_00069650 [00:10:31]remove file /storage/0194/doc_00069650 [00:10:31]file doc_00069651 [00:10:31]remove file /storage/0194/doc_00069651 [00:10:31]file doc_00069652 [00:10:31]remove file /storage/0194/doc_00069652 [00:10:31]file doc_00069653 [00:10:31]remove file /storage/0194/doc_00069653 [00:10:31]file doc_00069654 [00:10:31]remove file /storage/0194/doc_00069654 [00:10:31]file doc_00069655 [00:10:31]remove file /storage/0194/doc_00069655 [00:10:31]file doc_00069656 [00:10:31]remove file /storage/0194/doc_00069656 [00:10:31]file doc_00069657 [00:10:31]remove file /storage/0194/doc_00069657 [00:10:31]file doc_00069658 [00:10:31]remove file /storage/0194/doc_00069658 [00:10:31]file doc_00069659 [00:10:31]remove file /storage/0194/doc_00069659 [00:10:31]file doc_00069660 [00:10:31]remove file /storage/0194/doc_00069660 [00:10:31]file doc_00069661 [00:10:31]remove file /storage/0194/doc_00069661 [00:10:31]file doc_00069662 [00:10:31]remove file /storage/0194/doc_00069662 [00:10:31]file doc_00069663 [00:10:31]remove file /storage/0194/doc_00069663 [00:10:31]file doc_00069664 [00:10:31]remove file /storage/0194/doc_00069664 [00:10:31]file doc_00069665 [00:10:31]remove file /storage/0194/doc_00069665 [00:10:31]file doc_00069666 [00:10:31]remove file /storage/0194/doc_00069666 [00:10:31]file doc_00069667 [00:10:31]remove file /storage/0194/doc_00069667 [00:10:31]file doc_00069668 [00:10:31]remove file /storage/0194/doc_00069668 [00:10:31]file doc_00069669 [00:10:31]remove file /storage/0194/doc_00069669 [00:10:31]file doc_00069670 [00:10:31]remove file /storage/0194/doc_00069670 [00:10:31]file doc_00069671 [00:10:31]remove file /storage/0194/doc_00069671 [00:10:31]file doc_00069672 [00:10:31]remove file /storage/0194/doc_00069672 [00:10:31]file doc_00069673 [00:10:31]remove file /storage/0194/doc_00069673 [00:10:31]file doc_00069674 [00:10:31]remove file /storage/0194/doc_00069674 [00:10:31]file doc_00069675 [00:10:31]remove file /storage/0194/doc_00069675 [00:10:31]file doc_00069676 [00:10:31]remove file /storage/0194/doc_00069676 [00:10:31]file doc_00069677 [00:10:31]remove file /storage/0194/doc_00069677 [00:10:31]file doc_00069678 [00:10:31]remove file /storage/0194/doc_00069678 [00:10:31]file doc_00069679 [00:10:31]remove file /storage/0194/doc_00069679 [00:10:31]file doc_00069680 [00:10:31]remove file /storage/0194/doc_00069680 [00:10:31]file doc_00069681 [00:10:31]remove file /storage/0194/doc_00069681 [00:10:31]file doc_00069682 [00:10:31]remove file /storage/0194/doc_00069682 [00:10:31]file doc_00069683 [00:10:31]remove file /storage/0194/doc_00069683 [00:10:31]file doc_00069684 [00:10:31]remove file /storage/0194/doc_00069684 [00:10:31]file doc_00069685 [00:10:31]remove file /storage/0194/doc_00069685 [00:10:31]file doc_00069686 [00:10:31]remove file /storage/0194/doc_00069686 [00:10:31]file doc_00069687 [00:10:31]remove file /storage/0194/doc_00069687 [00:10:31]file doc_00069688 [00:10:31]remove file /storage/0194/doc_00069688 [00:10:31]file doc_00069689 [00:10:31]remove file /storage/0194/doc_00069689 [00:10:31]file doc_00069690 [00:10:31]remove file /storage/0194/doc_00069690 [00:10:31]file doc_00069691 [00:10:31]remove file /storage/0194/doc_00069691 [00:10:31]file doc_00069692 [00:10:31]remove file /storage/0194/doc_00069692 [00:10:31]file doc_00069693 [00:10:31]remove file /storage/0194/doc_00069693 [00:10:31]file doc_00069694 [00:10:31]remove file /storage/0194/doc_00069694 [00:10:31]file doc_00069695 [00:10:31]remove file /storage/0194/doc_00069695 [00:10:31]file doc_00069696 [00:10:31]remove file /storage/0194/doc_00069696 [00:10:31]file doc_00069697 [00:10:31]remove file /storage/0194/doc_00069697 [00:10:31]file doc_00069698 [00:10:31]remove file /storage/0194/doc_00069698 [00:10:31]file doc_00069699 [00:10:31]remove file /storage/0194/doc_00069699 [00:10:31]file doc_00069700 [00:10:31]remove file /storage/0194/doc_00069700 [00:10:31]file doc_00069701 [00:10:31]remove file /storage/0194/doc_00069701 [00:10:31]file doc_00069702 [00:10:31]remove file /storage/0194/doc_00069702 [00:10:31]file doc_00069703 [00:10:31]remove file /storage/0194/doc_00069703 [00:10:31]file doc_00069704 [00:10:31]remove file /storage/0194/doc_00069704 [00:10:31]file doc_00069705 [00:10:31]remove file /storage/0194/doc_00069705 [00:10:31]file doc_00069706 [00:10:31]remove file /storage/0194/doc_00069706 [00:10:31]file doc_00069707 [00:10:31]remove file /storage/0194/doc_00069707 [00:10:31]file doc_00069708 [00:10:31]remove file /storage/0194/doc_00069708 [00:10:31]file doc_00069709 [00:10:31]remove file /storage/0194/doc_00069709 [00:10:31]file doc_00069710 [00:10:31]remove file /storage/0194/doc_00069710 [00:10:31]file doc_00069711 [00:10:31]remove file /storage/0194/doc_00069711 [00:10:31]file doc_00069712 [00:10:31]remove file /storage/0194/doc_00069712 [00:10:31]file doc_00069713 [00:10:31]remove file /storage/0194/doc_00069713 [00:10:31]file doc_00069714 [00:10:31]remove file /storage/0194/doc_00069714 [00:10:31]file doc_00069715 [00:10:31]remove file /storage/0194/doc_00069715 [00:10:31]file doc_00069716 [00:10:31]remove file /storage/0194/doc_00069716 [00:10:31]file doc_00069717 [00:10:31]remove file /storage/0194/doc_00069717 [00:10:31]file doc_00069718 [00:10:31]remove file /storage/0194/doc_00069718 [00:10:31]file doc_00069719 [00:10:31]remove file /storage/0194/doc_00069719 [00:10:31]file doc_00069720 [00:10:31]remove file /storage/0194/doc_00069720 [00:10:31]file doc_00069721 [00:10:31]remove file /storage/0194/doc_00069721 [00:10:31]file doc_00069722 [00:10:31]remove file /storage/0194/doc_00069722 [00:10:31]file doc_00069723 [00:10:31]remove file /storage/0194/doc_00069723 [00:10:31]file doc_00069724 [00:10:31]remove file /storage/0194/doc_00069724 [00:10:31]file doc_00069725 [00:10:31]remove file /storage/0194/doc_00069725 [00:10:31]file doc_00069726 [00:10:31]remove file /storage/0194/doc_00069726 [00:10:31]file doc_00069727 [00:10:31]remove file /storage/0194/doc_00069727 [00:10:31]file doc_00069728 [00:10:31]remove file /storage/0194/doc_00069728 [00:10:31]file doc_00069729 [00:10:31]remove file /storage/0194/doc_00069729 [00:10:31]file doc_00069730 [00:10:31]remove file /storage/0194/doc_00069730 [00:10:31]file doc_00069731 [00:10:31]remove file /storage/0194/doc_00069731 [00:10:31]file doc_00069732 [00:10:31]remove file /storage/0194/doc_00069732 [00:10:31]file doc_00069733 [00:10:31]remove file /storage/0194/doc_00069733 [00:10:31]file doc_00069734 [00:10:31]remove file /storage/0194/doc_00069734 [00:10:31]file doc_00069735 [00:10:31]remove file /storage/0194/doc_00069735 [00:10:31]file doc_00069736 [00:10:31]remove file /storage/0194/doc_00069736 [00:10:31]file doc_00069737 [00:10:31]remove file /storage/0194/doc_00069737 [00:10:31]file doc_00069738 [00:10:31]remove file /storage/0194/doc_00069738 [00:10:31]file doc_00069739 [00:10:31]remove file /storage/0194/doc_00069739 [00:10:31]file doc_00069740 [00:10:31]remove file /storage/0194/doc_00069740 [00:10:31]file doc_00069741 [00:10:31]remove file /storage/0194/doc_00069741 [00:10:31]file doc_00069742 [00:10:31]remove file /storage/0194/doc_00069742 [00:10:31]file doc_00069743 [00:10:31]remove file /storage/0194/doc_00069743 [00:10:31]file doc_00069744 [00:10:31]remove file /storage/0194/doc_00069744 [00:10:31]file doc_00069745 [00:10:31]remove file /storage/0194/doc_00069745 [00:10:31]file doc_00069746 [00:10:31]remove file /storage/0194/doc_00069746 [00:10:31]file doc_00069747 [00:10:31]remove file /storage/0194/doc_00069747 [00:10:31]file doc_00069748 [00:10:31]remove file /storage/0194/doc_00069748 [00:10:31]file doc_00069749 [00:10:31]remove file /storage/0194/doc_00069749 [00:10:31]file doc_00069750 [00:10:31]remove file /storage/0194/doc_00069750 [00:10:31]file doc_00069751 [00:10:31]remove file /storage/0194/doc_00069751 [00:10:31]file doc_00069752 [00:10:31]remove file /storage/0194/doc_00069752 [00:10:31]file doc_00069753 [00:10:31]remove file /storage/0194/doc_00069753 [00:10:31]file doc_00069754 [00:10:31]remove file /storage/0194/doc_00069754 [00:10:31]file doc_00069755 [00:10:31]remove file /storage/0194/doc_00069755 [00:10:31]file doc_00069756 [00:10:31]remove file /storage/0194/doc_00069756 [00:10:31]file doc_00069757 [00:10:31]remove file /storage/0194/doc_00069757 [00:10:31]file doc_00069758 [00:10:31]remove file /storage/0194/doc_00069758 [00:10:31]file doc_00069759 [00:10:31]remove file /storage/0194/doc_00069759 [00:10:31]file doc_00069760 [00:10:31]remove file /storage/0194/doc_00069760 [00:10:31]file doc_00069761 [00:10:31]remove file /storage/0194/doc_00069761 [00:10:31]file doc_00069762 [00:10:31]remove file /storage/0194/doc_00069762 [00:10:31]file doc_00069763 [00:10:31]remove file /storage/0194/doc_00069763 [00:10:31]file doc_00069764 [00:10:31]remove file /storage/0194/doc_00069764 [00:10:31]file doc_00069765 [00:10:31]remove file /storage/0194/doc_00069765 [00:10:31]file doc_00069766 [00:10:31]remove file /storage/0194/doc_00069766 [00:10:31]file doc_00069767 [00:10:31]remove file /storage/0194/doc_00069767 [00:10:31]file doc_00069768 [00:10:31]remove file /storage/0194/doc_00069768 [00:10:31]file doc_00069769 [00:10:31]remove file /storage/0194/doc_00069769 [00:10:31]file doc_00069770 [00:10:31]remove file /storage/0194/doc_00069770 [00:10:31]file doc_00069771 [00:10:31]remove file /storage/0194/doc_00069771 [00:10:31]file doc_00069772 [00:10:31]remove file /storage/0194/doc_00069772 [00:10:31]file doc_00069773 [00:10:31]remove file /storage/0194/doc_00069773 [00:10:31]file doc_00069774 [00:10:31]remove file /storage/0194/doc_00069774 [00:10:31]file doc_00069775 [00:10:31]remove file /storage/0194/doc_00069775 [00:10:31]file doc_00069776 [00:10:31]remove file /storage/0194/doc_00069776 [00:10:31]file doc_00069777 [00:10:31]remove file /storage/0194/doc_00069777 [00:10:31]file doc_00069778 [00:10:31]remove file /storage/0194/doc_00069778 [00:10:31]file doc_00069779 [00:10:31]remove file /storage/0194/doc_00069779 [00:10:31]file doc_00069780 [00:10:31]remove file /storage/0194/doc_00069780 [00:10:31]file doc_00069781 [00:10:31]remove file /storage/0194/doc_00069781 [00:10:31]file doc_00069782 [00:10:31]remove file /storage/0194/doc_00069782 [00:10:31]file doc_00069783 [00:10:31]remove file /storage/0194/doc_00069783 [00:10:31]file doc_00069784 [00:10:31]remove file /storage/0194/doc_00069784 [00:10:31]file doc_00069785 [00:10:31]remove file /storage/0194/doc_00069785 [00:10:31]file doc_00069786 [00:10:31]remove file /storage/0194/doc_00069786 [00:10:31]file doc_00069787 [00:10:31]remove file /storage/0194/doc_00069787 [00:10:32]file doc_00069788 [00:10:32]remove file /storage/0194/doc_00069788 [00:10:32]file doc_00069789 [00:10:32]remove file /storage/0194/doc_00069789 [00:10:32]file doc_00069790 [00:10:32]remove file /storage/0194/doc_00069790 [00:10:32]file doc_00069791 [00:10:32]remove file /storage/0194/doc_00069791 [00:10:32]file doc_00069792 [00:10:32]remove file /storage/0194/doc_00069792 [00:10:32]file doc_00069793 [00:10:32]remove file /storage/0194/doc_00069793 [00:10:32]file doc_00069794 [00:10:32]remove file /storage/0194/doc_00069794 [00:10:32]file doc_00069795 [00:10:32]remove file /storage/0194/doc_00069795 [00:10:32]file doc_00069796 [00:10:32]remove file /storage/0194/doc_00069796 [00:10:32]file doc_00069797 [00:10:32]remove file /storage/0194/doc_00069797 [00:10:32]file doc_00069798 [00:10:32]remove file /storage/0194/doc_00069798 [00:10:32]file doc_00069799 [00:10:32]remove file /storage/0194/doc_00069799 [00:10:32]file doc_00069800 [00:10:32]remove file /storage/0194/doc_00069800 [00:10:32]file doc_00069801 [00:10:32]remove file /storage/0194/doc_00069801 [00:10:32]file doc_00069802 [00:10:32]remove file /storage/0194/doc_00069802 [00:10:32]file doc_00069803 [00:10:32]remove file /storage/0194/doc_00069803 [00:10:32]file doc_00069804 [00:10:32]remove file /storage/0194/doc_00069804 [00:10:32]file doc_00069805 [00:10:32]remove file /storage/0194/doc_00069805 [00:10:32]file doc_00069806 [00:10:32]remove file /storage/0194/doc_00069806 [00:10:32]file doc_00069807 [00:10:32]remove file /storage/0194/doc_00069807 [00:10:32]file doc_00069808 [00:10:32]remove file /storage/0194/doc_00069808 [00:10:32]file doc_00069809 [00:10:32]remove file /storage/0194/doc_00069809 [00:10:32]file doc_00069810 [00:10:32]remove file /storage/0194/doc_00069810 [00:10:32]file doc_00069811 [00:10:32]remove file /storage/0194/doc_00069811 [00:10:32]file doc_00069812 [00:10:32]remove file /storage/0194/doc_00069812 [00:10:32]file doc_00069813 [00:10:32]remove file /storage/0194/doc_00069813 [00:10:32]file doc_00069814 [00:10:32]remove file /storage/0194/doc_00069814 [00:10:32]file doc_00069815 [00:10:32]remove file /storage/0194/doc_00069815 [00:10:32]file doc_00069816 [00:10:32]remove file /storage/0194/doc_00069816 [00:10:32]file doc_00069817 [00:10:32]remove file /storage/0194/doc_00069817 [00:10:32]file doc_00069818 [00:10:32]remove file /storage/0194/doc_00069818 [00:10:32]file doc_00069819 [00:10:32]remove file /storage/0194/doc_00069819 [00:10:32]file doc_00069820 [00:10:32]remove file /storage/0194/doc_00069820 [00:10:32]file doc_00069821 [00:10:32]remove file /storage/0194/doc_00069821 [00:10:32]file doc_00069822 [00:10:32]remove file /storage/0194/doc_00069822 [00:10:32]file doc_00069823 [00:10:32]remove file /storage/0194/doc_00069823 [00:10:32]file doc_00069824 [00:10:32]remove file /storage/0194/doc_00069824 [00:10:32]file doc_00069825 [00:10:32]remove file /storage/0194/doc_00069825 [00:10:32]file doc_00069826 [00:10:32]remove file /storage/0194/doc_00069826 [00:10:32]file doc_00069827 [00:10:32]remove file /storage/0194/doc_00069827 [00:10:32]file doc_00069828 [00:10:32]remove file /storage/0194/doc_00069828 [00:10:32]file doc_00069829 [00:10:32]remove file /storage/0194/doc_00069829 [00:10:32]file doc_00069830 [00:10:32]remove file /storage/0194/doc_00069830 [00:10:32]file doc_00069831 [00:10:32]remove file /storage/0194/doc_00069831 [00:10:32]file doc_00069832 [00:10:32]remove file /storage/0194/doc_00069832 [00:10:32]file doc_00069833 [00:10:32]remove file /storage/0194/doc_00069833 [00:10:32]file doc_00069834 [00:10:32]remove file /storage/0194/doc_00069834 [00:10:32]file doc_00069835 [00:10:32]remove file /storage/0194/doc_00069835 [00:10:32]file doc_00069836 [00:10:32]remove file /storage/0194/doc_00069836 [00:10:32]file doc_00069837 [00:10:32]remove file /storage/0194/doc_00069837 [00:10:32]file doc_00069838 [00:10:32]remove file /storage/0194/doc_00069838 [00:10:32]file doc_00069839 [00:10:32]remove file /storage/0194/doc_00069839 [00:10:32]file doc_00069840 [00:10:32]remove file /storage/0194/doc_00069840 [00:10:32]file doc_00069841 [00:10:32]remove file /storage/0194/doc_00069841 [00:10:32]file doc_00069842 [00:10:32]remove file /storage/0194/doc_00069842 [00:10:32]file doc_00069843 [00:10:32]remove file /storage/0194/doc_00069843 [00:10:32]file doc_00069844 [00:10:32]remove file /storage/0194/doc_00069844 [00:10:32]file doc_00069845 [00:10:32]remove file /storage/0194/doc_00069845 [00:10:32]file doc_00069846 [00:10:32]remove file /storage/0194/doc_00069846 [00:10:32]file doc_00069847 [00:10:32]remove file /storage/0194/doc_00069847 [00:10:32]file doc_00069848 [00:10:32]remove file /storage/0194/doc_00069848 [00:10:32]file doc_00069849 [00:10:32]remove file /storage/0194/doc_00069849 [00:10:32]file doc_00069850 [00:10:32]remove file /storage/0194/doc_00069850 [00:10:32]file doc_00069851 [00:10:32]remove file /storage/0194/doc_00069851 [00:10:32]file doc_00069852 [00:10:32]remove file /storage/0194/doc_00069852 [00:10:32]file doc_00069853 [00:10:32]remove file /storage/0194/doc_00069853 [00:10:32]file doc_00069854 [00:10:32]remove file /storage/0194/doc_00069854 [00:10:32]file doc_00069855 [00:10:32]remove file /storage/0194/doc_00069855 [00:10:32]file doc_00069856 [00:10:32]remove file /storage/0194/doc_00069856 [00:10:32]file doc_00069857 [00:10:32]remove file /storage/0194/doc_00069857 [00:10:32]file doc_00069858 [00:10:32]remove file /storage/0194/doc_00069858 [00:10:32]file doc_00069859 [00:10:32]remove file /storage/0194/doc_00069859 [00:10:32]file doc_00069860 [00:10:32]remove file /storage/0194/doc_00069860 [00:10:32]file doc_00069861 [00:10:32]remove file /storage/0194/doc_00069861 [00:10:32]file doc_00069862 [00:10:32]remove file /storage/0194/doc_00069862 [00:10:32]file doc_00069863 [00:10:32]remove file /storage/0194/doc_00069863 [00:10:32]file doc_00069864 [00:10:32]remove file /storage/0194/doc_00069864 [00:10:32]file doc_00069865 [00:10:32]remove file /storage/0194/doc_00069865 [00:10:32]file doc_00069866 [00:10:32]remove file /storage/0194/doc_00069866 [00:10:32]file doc_00069867 [00:10:32]remove file /storage/0194/doc_00069867 [00:10:32]file doc_00069868 [00:10:32]remove file /storage/0194/doc_00069868 [00:10:32]file doc_00069869 [00:10:32]remove file /storage/0194/doc_00069869 [00:10:32]file doc_00069870 [00:10:32]remove file /storage/0194/doc_00069870 [00:10:32]file doc_00069871 [00:10:32]remove file /storage/0194/doc_00069871 [00:10:32]file doc_00069872 [00:10:32]remove file /storage/0194/doc_00069872 [00:10:32]file doc_00069873 [00:10:32]remove file /storage/0194/doc_00069873 [00:10:32]file doc_00069874 [00:10:32]remove file /storage/0194/doc_00069874 [00:10:32]file doc_00069875 [00:10:32]remove file /storage/0194/doc_00069875 [00:10:32]file doc_00069876 [00:10:32]remove file /storage/0194/doc_00069876 [00:10:32]file doc_00069877 [00:10:32]remove file /storage/0194/doc_00069877 [00:10:32]file doc_00069878 [00:10:32]remove file /storage/0194/doc_00069878 [00:10:32]file doc_00069879 [00:10:32]remove file /storage/0194/doc_00069879 [00:10:32]file doc_00069880 [00:10:32]remove file /storage/0194/doc_00069880 [00:10:32]file doc_00069881 [00:10:32]remove file /storage/0194/doc_00069881 [00:10:32]file doc_00069882 [00:10:32]remove file /storage/0194/doc_00069882 [00:10:32]file doc_00069883 [00:10:32]remove file /storage/0194/doc_00069883 [00:10:32]file doc_00069884 [00:10:32]remove file /storage/0194/doc_00069884 [00:10:32]file doc_00069885 [00:10:32]remove file /storage/0194/doc_00069885 [00:10:32]file doc_00069886 [00:10:32]remove file /storage/0194/doc_00069886 [00:10:32]file doc_00069887 [00:10:32]remove file /storage/0194/doc_00069887 [00:10:32]file doc_00069888 [00:10:32]remove file /storage/0194/doc_00069888 [00:10:32]file doc_00069889 [00:10:32]remove file /storage/0194/doc_00069889 [00:10:32]file doc_00069890 [00:10:32]remove file /storage/0194/doc_00069890 [00:10:32]file doc_00069891 [00:10:32]remove file /storage/0194/doc_00069891 [00:10:32]file doc_00069892 [00:10:32]remove file /storage/0194/doc_00069892 [00:10:32]file doc_00069893 [00:10:32]remove file /storage/0194/doc_00069893 [00:10:32]file doc_00069894 [00:10:32]remove file /storage/0194/doc_00069894 [00:10:32]file doc_00069895 [00:10:32]remove file /storage/0194/doc_00069895 [00:10:32]file doc_00069896 [00:10:32]remove file /storage/0194/doc_00069896 [00:10:32]file doc_00069897 [00:10:32]remove file /storage/0194/doc_00069897 [00:10:32]file doc_00069898 [00:10:32]remove file /storage/0194/doc_00069898 [00:10:32]file doc_00069899 [00:10:32]remove file /storage/0194/doc_00069899 [00:10:32]file doc_00069900 [00:10:32]remove file /storage/0194/doc_00069900 [00:10:32]file doc_00069901 [00:10:32]remove file /storage/0194/doc_00069901 [00:10:32]file doc_00069902 [00:10:32]remove file /storage/0194/doc_00069902 [00:10:32]file doc_00069903 [00:10:32]remove file /storage/0194/doc_00069903 [00:10:32]file doc_00069904 [00:10:32]remove file /storage/0194/doc_00069904 [00:10:32]file doc_00069905 [00:10:32]remove file /storage/0194/doc_00069905 [00:10:32]file doc_00069906 [00:10:32]remove file /storage/0194/doc_00069906 [00:10:32]file doc_00069907 [00:10:32]remove file /storage/0194/doc_00069907 [00:10:32]file doc_00069908 [00:10:32]remove file /storage/0194/doc_00069908 [00:10:32]file doc_00069909 [00:10:32]remove file /storage/0194/doc_00069909 [00:10:32]file doc_00069910 [00:10:32]remove file /storage/0194/doc_00069910 [00:10:32]file doc_00069911 [00:10:32]remove file /storage/0194/doc_00069911 [00:10:32]file doc_00069912 [00:10:32]remove file /storage/0194/doc_00069912 [00:10:32]file doc_00069913 [00:10:32]remove file /storage/0194/doc_00069913 [00:10:32]file doc_00069914 [00:10:32]remove file /storage/0194/doc_00069914 [00:10:32]file doc_00069915 [00:10:32]remove file /storage/0194/doc_00069915 [00:10:32]file doc_00069916 [00:10:32]remove file /storage/0194/doc_00069916 [00:10:32]file doc_00069917 [00:10:32]remove file /storage/0194/doc_00069917 [00:10:32]file doc_00069918 [00:10:32]remove file /storage/0194/doc_00069918 [00:10:32]file doc_00069919 [00:10:32]remove file /storage/0194/doc_00069919 [00:10:32]file doc_00069920 [00:10:32]remove file /storage/0194/doc_00069920 [00:10:32]file doc_00069921 [00:10:32]remove file /storage/0194/doc_00069921 [00:10:32]file doc_00069922 [00:10:32]remove file /storage/0194/doc_00069922 [00:10:32]file doc_00069923 [00:10:32]remove file /storage/0194/doc_00069923 [00:10:32]file doc_00069924 [00:10:32]remove file /storage/0194/doc_00069924 [00:10:32]file doc_00069925 [00:10:32]remove file /storage/0194/doc_00069925 [00:10:32]file doc_00069926 [00:10:32]remove file /storage/0194/doc_00069926 [00:10:32]file doc_00069927 [00:10:32]remove file /storage/0194/doc_00069927 [00:10:32]file doc_00069928 [00:10:32]remove file /storage/0194/doc_00069928 [00:10:32]file doc_00069929 [00:10:32]remove file /storage/0194/doc_00069929 [00:10:32]file doc_00069930 [00:10:32]remove file /storage/0194/doc_00069930 [00:10:32]file doc_00069931 [00:10:32]remove file /storage/0194/doc_00069931 [00:10:32]file doc_00069932 [00:10:32]remove file /storage/0194/doc_00069932 [00:10:32]file doc_00069933 [00:10:32]remove file /storage/0194/doc_00069933 [00:10:32]file doc_00069934 [00:10:32]remove file /storage/0194/doc_00069934 [00:10:32]file doc_00069935 [00:10:32]remove file /storage/0194/doc_00069935 [00:10:32]file doc_00069936 [00:10:32]remove file /storage/0194/doc_00069936 [00:10:32]file doc_00069937 [00:10:32]remove file /storage/0194/doc_00069937 [00:10:32]file doc_00069938 [00:10:32]remove file /storage/0194/doc_00069938 [00:10:32]file doc_00069939 [00:10:32]remove file /storage/0194/doc_00069939 [00:10:32]file doc_00069940 [00:10:32]remove file /storage/0194/doc_00069940 [00:10:32]file doc_00069941 [00:10:32]remove file /storage/0194/doc_00069941 [00:10:32]file doc_00069942 [00:10:32]remove file /storage/0194/doc_00069942 [00:10:32]file doc_00069943 [00:10:32]remove file /storage/0194/doc_00069943 [00:10:32]file doc_00069944 [00:10:32]remove file /storage/0194/doc_00069944 [00:10:32]file doc_00069945 [00:10:32]remove file /storage/0194/doc_00069945 [00:10:32]file doc_00069946 [00:10:32]remove file /storage/0194/doc_00069946 [00:10:32]file doc_00069947 [00:10:32]remove file /storage/0194/doc_00069947 [00:10:32]file doc_00069948 [00:10:32]remove file /storage/0194/doc_00069948 [00:10:32]file doc_00069949 [00:10:32]remove file /storage/0194/doc_00069949 [00:10:32]file doc_00069950 [00:10:32]remove file /storage/0194/doc_00069950 [00:10:32]file doc_00069951 [00:10:32]remove file /storage/0194/doc_00069951 [00:10:32]file doc_00069952 [00:10:32]remove file /storage/0194/doc_00069952 [00:10:32]file doc_00069953 [00:10:32]remove file /storage/0194/doc_00069953 [00:10:32]file doc_00069954 [00:10:32]remove file /storage/0194/doc_00069954 [00:10:32]file doc_00069955 [00:10:32]remove file /storage/0194/doc_00069955 [00:10:32]file doc_00069956 [00:10:32]remove file /storage/0194/doc_00069956 [00:10:32]file doc_00069957 [00:10:33]remove file /storage/0194/doc_00069957 [00:10:33]file doc_00069958 [00:10:33]remove file /storage/0194/doc_00069958 [00:10:33]file doc_00069959 [00:10:33]remove file /storage/0194/doc_00069959 [00:10:33]file doc_00069960 [00:10:33]remove file /storage/0194/doc_00069960 [00:10:33]file doc_00069961 [00:10:33]remove file /storage/0194/doc_00069961 [00:10:33]file doc_00069962 [00:10:33]remove file /storage/0194/doc_00069962 [00:10:33]file doc_00069963 [00:10:33]remove file /storage/0194/doc_00069963 [00:10:33]file doc_00069964 [00:10:33]remove file /storage/0194/doc_00069964 [00:10:33]file doc_00069965 [00:10:33]remove file /storage/0194/doc_00069965 [00:10:33]file doc_00069966 [00:10:33]remove file /storage/0194/doc_00069966 [00:10:33]file doc_00069967 [00:10:33]remove file /storage/0194/doc_00069967 [00:10:33]file doc_00069968 [00:10:33]remove file /storage/0194/doc_00069968 [00:10:33]file doc_00069969 [00:10:33]remove file /storage/0194/doc_00069969 [00:10:33]file doc_00069970 [00:10:33]remove file /storage/0194/doc_00069970 [00:10:33]file doc_00069971 [00:10:33]remove file /storage/0194/doc_00069971 [00:10:33]file doc_00069972 [00:10:33]remove file /storage/0194/doc_00069972 [00:10:33]file doc_00069973 [00:10:33]remove file /storage/0194/doc_00069973 [00:10:33]file doc_00069974 [00:10:33]remove file /storage/0194/doc_00069974 [00:10:33]file doc_00069975 [00:10:33]remove file /storage/0194/doc_00069975 [00:10:33]file doc_00069976 [00:10:33]remove file /storage/0194/doc_00069976 [00:10:33]file doc_00069977 [00:10:33]remove file /storage/0194/doc_00069977 [00:10:33]file doc_00069978 [00:10:33]remove file /storage/0194/doc_00069978 [00:10:33]file doc_00069979 [00:10:33]remove file /storage/0194/doc_00069979 [00:10:33]file doc_00069980 [00:10:33]remove file /storage/0194/doc_00069980 [00:10:33]file doc_00069981 [00:10:33]remove file /storage/0194/doc_00069981 [00:10:33]file doc_00069982 [00:10:33]remove file /storage/0194/doc_00069982 [00:10:33]file doc_00069983 [00:10:33]remove file /storage/0194/doc_00069983 [00:10:33]file doc_00069984 [00:10:33]remove file /storage/0194/doc_00069984 [00:10:33]file doc_00069985 [00:10:33]remove file /storage/0194/doc_00069985 [00:10:33]file doc_00069986 [00:10:33]remove file /storage/0194/doc_00069986 [00:10:33]file doc_00069987 [00:10:33]remove file /storage/0194/doc_00069987 [00:10:33]file doc_00069988 [00:10:33]remove file /storage/0194/doc_00069988 [00:10:33]file doc_00069989 [00:10:33]remove file /storage/0194/doc_00069989 [00:10:33]file doc_00069990 [00:10:33]remove file /storage/0194/doc_00069990 [00:10:33]file doc_00069991 [00:10:33]remove file /storage/0194/doc_00069991 [00:10:33]file doc_00069992 [00:10:33]remove file /storage/0194/doc_00069992 [00:10:33]file doc_00069993 [00:10:33]remove file /storage/0194/doc_00069993 [00:10:33]file doc_00069994 [00:10:33]remove file /storage/0194/doc_00069994 [00:10:33]file doc_00069995 [00:10:33]remove file /storage/0194/doc_00069995 [00:10:33]file doc_00069996 [00:10:33]remove file /storage/0194/doc_00069996 [00:10:33]file doc_00069997 [00:10:33]remove file /storage/0194/doc_00069997 [00:10:33]file doc_00069998 [00:10:33]remove file /storage/0194/doc_00069998 [00:10:33]file doc_00069999 [00:10:33]remove file /storage/0194/doc_00069999 [00:10:33]file doc_00070000 [00:10:33]remove file /storage/0194/doc_00070000 [00:10:33]file doc_00070001 [00:10:33]remove file /storage/0194/doc_00070001 [00:10:33]file doc_00070002 [00:10:33]remove file /storage/0194/doc_00070002 [00:10:33]file doc_00070003 [00:10:33]remove file /storage/0194/doc_00070003 [00:10:33]file doc_00070004 [00:10:33]remove file /storage/0194/doc_00070004 [00:10:33]file doc_00070005 [00:10:33]remove file /storage/0194/doc_00070005 [00:10:33]file doc_00070006 [00:10:33]remove file /storage/0194/doc_00070006 [00:10:33]file doc_00070007 [00:10:33]remove file /storage/0194/doc_00070007 [00:10:33]file doc_00070008 [00:10:33]remove file /storage/0194/doc_00070008 [00:10:33]file doc_00070009 [00:10:33]remove file /storage/0194/doc_00070009 [00:10:33]file doc_00070010 [00:10:33]remove file /storage/0194/doc_00070010 [00:10:33]file doc_00070011 [00:10:33]remove file /storage/0194/doc_00070011 [00:10:33]file doc_00070012 [00:10:33]remove file /storage/0194/doc_00070012 [00:10:33]file doc_00070013 [00:10:33]remove file /storage/0194/doc_00070013 [00:10:33]file doc_00070014 [00:10:33]remove file /storage/0194/doc_00070014 [00:10:33]file doc_00070015 [00:10:33]remove file /storage/0194/doc_00070015 [00:10:33]file doc_00070016 [00:10:33]remove file /storage/0194/doc_00070016 [00:10:33]file doc_00070017 [00:10:33]remove file /storage/0194/doc_00070017 [00:10:33]file doc_00070018 [00:10:33]remove file /storage/0194/doc_00070018 [00:10:33]file doc_00070019 [00:10:33]remove file /storage/0194/doc_00070019 [00:10:33]file doc_00070020 [00:10:33]remove file /storage/0194/doc_00070020 [00:10:33]file doc_00070021 [00:10:33]remove file /storage/0194/doc_00070021 [00:10:33]file doc_00070022 [00:10:33]remove file /storage/0194/doc_00070022 [00:10:33]file doc_00070023 [00:10:33]remove file /storage/0194/doc_00070023 [00:10:33]file doc_00070024 [00:10:33]remove file /storage/0194/doc_00070024 [00:10:33]file doc_00070025 [00:10:33]remove file /storage/0194/doc_00070025 [00:10:33]file doc_00070026 [00:10:33]remove file /storage/0194/doc_00070026 [00:10:33]file doc_00070027 [00:10:33]remove file /storage/0194/doc_00070027 [00:10:33]file doc_00070028 [00:10:33]remove file /storage/0194/doc_00070028 [00:10:33]file doc_00070029 [00:10:33]remove file /storage/0194/doc_00070029 [00:10:33]file doc_00070030 [00:10:33]remove file /storage/0194/doc_00070030 [00:10:33]file doc_00070031 [00:10:33]remove file /storage/0194/doc_00070031 [00:10:33]file doc_00070032 [00:10:33]remove file /storage/0194/doc_00070032 [00:10:33]file doc_00070033 [00:10:33]remove file /storage/0194/doc_00070033 [00:10:33]file doc_00070034 [00:10:33]remove file /storage/0194/doc_00070034 [00:10:33]file doc_00070035 [00:10:33]remove file /storage/0194/doc_00070035 [00:10:33]file doc_00070036 [00:10:33]remove file /storage/0194/doc_00070036 [00:10:33]file doc_00070037 [00:10:33]remove file /storage/0194/doc_00070037 [00:10:33]file doc_00070038 [00:10:33]remove file /storage/0194/doc_00070038 [00:10:33]file doc_00070039 [00:10:33]remove file /storage/0194/doc_00070039 [00:10:33]file doc_00070040 [00:10:33]remove file /storage/0194/doc_00070040 [00:10:33]file doc_00070041 [00:10:33]remove file /storage/0194/doc_00070041 [00:10:33]file doc_00070042 [00:10:33]remove file /storage/0194/doc_00070042 [00:10:33]file doc_00070043 [00:10:33]remove file /storage/0194/doc_00070043 [00:10:33]file doc_00070044 [00:10:33]remove file /storage/0194/doc_00070044 [00:10:33]file doc_00070045 [00:10:33]remove file /storage/0194/doc_00070045 [00:10:33]file doc_00070046 [00:10:33]remove file /storage/0194/doc_00070046 [00:10:33]file doc_00070047 [00:10:33]remove file /storage/0194/doc_00070047 [00:10:33]file doc_00070048 [00:10:33]remove file /storage/0194/doc_00070048 [00:10:33]file doc_00070049 [00:10:33]remove file /storage/0194/doc_00070049 [00:10:33]file doc_00070050 [00:10:33]remove file /storage/0194/doc_00070050 [00:10:33]file doc_00070051 [00:10:33]remove file /storage/0194/doc_00070051 [00:10:33]remove dir /storage/0194 [00:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=260 [00:10:33]tlvbuf is 0132F310 [00:10:33]SAM_PROTO_ClearQueue [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 09 00 00 [00:10:33]Write to MH i2c: E2 08 00 9A 31 80 09 00 00 00 00 00 00 3D [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 03 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [00:10:33]RAPDU: 90 00 [00:10:33]wFMCommunicate OK [00:10:33]SAM_PROTO_ClearQueue done [00:10:33]KKMCreateOFDPacket [00:10:33]OFDProtocolAddRootSTLVToBuf [00:10:33]FM_MakeSignedData [00:10:33]FM_MakeSignedData [00:10:33]SAM_PROTO_SignData [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 0D 01 02 [00:10:33]Write to MH i2c: E2 08 00 9B 31 80 0D 01 02 00 00 00 00 45 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 03 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [00:10:33]RAPDU: 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=255 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 0D 02 02 FA 02 00 04 01 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 ED 16 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [00:10:33]Write to MH i2c: E2 02 01 9C 31 80 0D 02 02 FA 00 02 00 04 01 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 ED 16 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 50 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=19 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 0D 02 02 0E 33 33 34 36 35 04 06 00 F0 67 E5 59 0E 94 [00:10:34]Write to MH i2c: E2 16 00 9D 31 80 0D 02 02 0E 00 33 33 34 36 35 04 06 00 F0 67 E5 59 0E 94 00 00 AA [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 0D 03 02 [00:10:34]Write to MH i2c: E2 08 00 9E 31 80 0D 03 02 00 00 00 00 4A [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 0B 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 0B 00 9E 31 00 8C 41 A3 A7 5B 73 6A 7C 90 00 16 [00:10:34]RAPDU: 8C 41 A3 A7 5B 73 6A 7C 90 00 [00:10:34]wFMCommunicate OK [00:10:34]SAM_PROTO_SignData done [00:10:34]FM_MakeSignedData done [00:10:34]CreateOFDProtocolMessage [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 11 00 00 [00:10:34]Write to MH i2c: E2 08 00 9F 31 80 11 00 00 00 00 00 00 4A [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 17 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 17 00 9F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [00:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:10:34]wFMCommunicate OK [00:10:34]CreateOFDProtocolMessage done [00:10:34]OFDSenderStorePacket 70052 [00:10:34]StoreOFDPacket docnum=70052 [00:10:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 18 01 00 00 75 33 10 01 4E 61 5A 02 01 00 02 00 04 01 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 ED 16 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 F0 67 E5 59 0E 94 8C 41 A3 A7 5B 73 6A 7C [00:10:34]CheckFolder [00:10:34]dirname=/storage/ofd_packets [00:10:34]CheckFolder done [00:10:34]ProducePacketName [00:10:34]name=ofd_packets/00070052 [00:10:34]NVStorageSaveData ofd_packets/00070052 [00:10:34]File name is /storage/ofd_packets/00070052 [00:10:34]Write 310 bytes [00:10:34]NVStorageSaveData done [00:10:34]OFDSenderStorePacket done [00:10:34]KKMCreateOFDPacket done [00:10:34]NVStorageSaveData kkm_last_timestamp [00:10:34]File name is /storage/kkm_last_timestamp [00:10:34]Write 4 bytes [00:10:34]NVStorageSaveData done [00:10:34]ExternCall_PrintAddStr [00:10:34]wPrintStart [00:10:34]Write to MH i2c: 01 00 00 A0 31 D1 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 07 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 07 00 A0 31 00 00 00 00 00 FF 0F E6 [00:10:34]RasterBufferAndPrint [00:10:34]line Отчет об открытии смены [00:10:34]line ФФД: 1.0 [00:10:34]line ИНН: 02508201610067 [00:10:34]line Кассир: Ахмедова У. [00:10:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:10:34]line Место: АЗС № 85 "Партнер Нефть" [00:10:34]line 22.10.2024 00:10 [00:10:34]line Смена: 195 [00:10:34]line РНМ: 0000000000156251 [00:10:34]line ЗНМ: 0300000167 [00:10:34]line ФД: 70052 [00:10:34]line ФМ: 0000000000963346 [00:10:34]line ФПД: 264329020116628 [00:10:34]written 0, free lines is 4095 [00:10:34]OFD Sender: Processing packet 70052 [packets to send 18, broken 17] [00:10:34]ProducePacketName [00:10:34]name=ofd_packets/00070052 [00:10:34]OFD Sender: To server: pG, [00:10:34]CommunicateWithHost lk.salyk.kg:30040 [00:10:34]ConnectInit lk.salyk.kg [00:10:34]Connected sock=10 [00:10:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 18 01 00 00 75 33 10 01 4E 61 5A 02 01 00 02 00 04 01 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 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 ED 16 67 0E 04 04 00 C3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 F0 67 E5 59 0E 94 8C 41 A3 A7 5B 73 6A 7C [00:10:34]Write to MH i2c: 01 00 00 B2 31 E3 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 07 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: 01 07 00 B2 31 00 00 00 00 00 A9 0E A1 [00:10:34]RasterBufferAndPrint [00:10:34]line [00:10:34]line [00:10:34]line [00:10:34]line [00:10:34]line [00:10:34]written 0, free lines is 3775 [00:10:34]MH_Cut [00:10:34]Write to MH i2c: D1 01 00 B9 31 01 BC [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: D1 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: D1 01 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: D1 01 00 B9 31 00 BB [00:10:34]Write to MH i2c: 01 00 00 BA 31 EB [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 60 91 47 00 8A 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 11 01 00 F4 03 04 00 1D 97 16 67 B6 04 01 00 00 3B D3 8E 8B 57 1A F6 5F [00:10:35]CommunicateWithHost err = 0 [00:10:35]CheckOFDResponse [00:10:35]1017 (14) - 77093643461234 [00:10:35]1041 (16) - 0000000000963346 [00:10:35]1040 (4) - 70052 [00:10:35]1012 (4) - 21.10.2024 18:02 [00:10:35]1206 (1) - 0 [00:10:35]OFD Sender: Remove packet 70052 [00:10:35]ProducePacketName [00:10:35]name=ofd_packets/00070052 [00:10:35]NVStorageDeleteData [00:10:35]*** Cut start [00:10:35]*** Partial cut [00:10:35]*** CUTSNS_PIN = 1 [00:10:35]*** CUTSNS_PIN = 0 [00:10:35]*** Brake cut motor [00:10:35]OFD Sender: No OFD packet to send [00:10:35]Read from MH i2c: 01 [00:10:35]MH_I2C_Read... [00:10:35]*** Stop cut motor [00:10:35]*** Cut end [00:10:35]Read from MH i2c: 01 07 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: 01 07 00 BA 31 00 00 00 00 00 FF 0F 00 [00:10:35]process_action open_shift done [00:10:35]requested_data is exist [00:10:35]produce_requested_data [00:10:35]requested_item fd.num is exist - process it [00:10:35]SAM_PROTO_GetFieldsCounters [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 13 00 00 [00:10:35]Write to MH i2c: E2 08 00 BB 31 80 13 00 00 00 00 00 00 68 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 62 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 62 00 BB 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [00:10:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_GetFieldsCounters done [00:10:36]requested_item shift.num is exist - process it [00:10:36]requested_item shift.opened is exist - process it [00:10:36]req_shift_opened [00:10:36]FM_GetShiftState [00:10:36]SAM_PROTO_GetShiftState [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 13 01 00 [00:10:36]Write to MH i2c: E2 08 00 BC 31 80 13 01 00 00 00 00 00 6A [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 0E 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 0E 00 BC 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 58 [00:10:36]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_GetShiftState done [00:10:36]FM_GetShiftState done [00:10:36]req_shift_opened done [00:10:36]requested_item shift.open_date is exist - process it [00:10:36]req_shift_open_date [00:10:36]req_shift_open_date done [00:10:36]produce_requested_data done [00:10:36]produce_requested_data return {"fd.num":70052,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:10:36]process_action_free open_shift [00:10:36]json_value_free [00:10:36]json_value_free done [00:10:36]process_json_proto returns [00:10:36]Send response to host [00:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70052,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:10:36]free response buf [00:10:36]execute_script done [00:10:36]execute_script returns [00:10:36]free content buf [00:10:36]Sock 7.Close socket [00:10:36]Sock 7.Thread stoped [00:10:36]accept exits with 9 [00:10:36]New connection [00:10:36]New thread 3067026788 created [00:10:36]Thread 3067170148 joined [00:10:36]Waiting for new connection... [00:10:36] Sock 9.Parse request [00:10:36]Sock 9.Check first char [00:10:36]Sock 9.First char is OK [00:10:36]request: POST /json_proto HTTP/1.0 [00:10:36]Method: POST [00:10:36]URL: /json_proto [00:10:36]Method is POST - this is cgi request [00:10:36]url: /json_proto [00:10:36]query_string will be loaded in cgi processing [00:10:36]execute_cgi json_proto POST (null) [00:10:36]execute_cgi path=json_proto method=POST [00:10:36]POST find Content-Length [00:10:36]Host: 172.17.50.3:8080 [00:10:36]Content-Length: 331 [00:10:36]Content-Type: application/json [00:10:36] [00:10:36]POST finish read [00:10:36]Found Content-Length = 331 [00:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:36]execute_script... [00:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:36]POST & json_proto [00:10:36]process_json_proto [00:10:36]json parsed OK: [00:10:36]protocol is kg_v1.0 [00:10:36]action value=get_value [00:10:36]process_action get_value [00:10:36]cmd_get_value [00:10:36]process_action get_value done [00:10:36]requested_data is exist [00:10:36]produce_requested_data [00:10:36]requested_item fm.sale.total is exist - process it [00:10:36]SAM_PROTO_GetFMData [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 13 03 00 [00:10:36]Write to MH i2c: E2 08 00 BD 31 80 13 03 00 00 00 00 00 6D [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 BD 31 00 C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 39 [00:10:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1E 10 01 00 69 04 A3 00 6F 04 04 00 DF 0C 01 00 B1 04 05 00 65 58 3C E5 01 70 04 05 00 44 2A 4F 5A 01 72 04 04 00 21 2E ED 8A 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 8F 42 8A 33 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 1F 76 4B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 03 00 00 B1 04 04 00 44 E8 D5 11 70 04 04 00 44 E8 D5 11 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 28 EB E4 01 EF 03 09 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 17 00 00 [00:10:36]Write to MH i2c: E2 08 00 BE 31 80 17 00 00 00 00 00 00 6F [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 BE 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:10:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B3 68 28 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 17 00 00 [00:10:37]Write to MH i2c: E2 08 00 BF 31 80 17 00 00 00 00 00 00 70 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 BF 31 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:10:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 17 00 00 [00:10:37]Write to MH i2c: E2 08 00 C0 31 80 17 00 00 00 00 00 00 71 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 C0 31 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:10:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:38]wFMCommunicate OK [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 17 00 00 [00:10:38]Write to MH i2c: E2 08 00 C1 31 80 17 00 00 00 00 00 00 72 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 E2 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 E2 00 C1 31 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [00:10:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:38]wFMCommunicate OK [00:10:38]SAM_PROTO_GetFMData done [00:10:38]requested_item fm.sale_refund.total is exist - process it [00:10:38]requested_item fm.buy.total is exist - process it [00:10:38]requested_item shift.sale.total is exist - process it [00:10:38]SAM_PROTO_GetShiftData [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 13 02 00 [00:10:38]Write to MH i2c: E2 08 00 C2 31 80 13 02 00 00 00 00 00 71 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 FD 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 FD 00 C2 31 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 E4 [00:10:39]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:10:39]wFMCommunicate OK [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 17 00 00 [00:10:39]Write to MH i2c: E2 08 00 C3 31 80 17 00 00 00 00 00 00 74 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:39]Read from MH i2c: E2 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 C3 31 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 7C [00:10:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:10:39]wFMCommunicate OK [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 17 00 00 [00:10:39]Write to MH i2c: E2 08 00 C4 31 80 17 00 00 00 00 00 00 75 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:39]Read from MH i2c: E2 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 C4 31 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 47 [00:10:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:10:40]wFMCommunicate OK [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 17 00 00 [00:10:40]Write to MH i2c: E2 08 00 C5 31 80 17 00 00 00 00 00 00 76 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 C5 31 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 E8 [00:10:40]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 OFD Sender: No OFD packet to send [00:10:40]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:10:40]wFMCommunicate OK [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 17 00 00 [00:10:40]Write to MH i2c: E2 08 00 C6 31 80 17 00 00 00 00 00 00 77 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 BD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 BD 00 C6 31 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [00:10:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:41]wFMCommunicate OK [00:10:41]SAM_PROTO_GetShiftData done [00:10:41]requested_item shift.sale.total_cash is exist - process it [00:10:41]requested_item shift.sale_refund.total is exist - process it [00:10:41]requested_item shift.sale_refund.total_cash is exist - process it [00:10:41]requested_item shift.buy.total is exist - process it [00:10:41]requested_item shift.buy.total_cash is exist - process it [00:10:41]produce_requested_data done [00:10:41]produce_requested_data return {"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:41]process_action_free get_value [00:10:41]json_value_free [00:10:41]json_value_free done [00:10:41]process_json_proto returns [00:10:41]Send response to host [00:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":81409045.49,"fm.sale_refund.total":2992313.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:41]free response buf [00:10:41]execute_script done [00:10:41]execute_script returns [00:10:41]free content buf [00:10:41]Sock 9.Close socket [00:10:41]Sock 9.Thread stoped [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:08]accept exits with 7 [00:12:08]New connection [00:12:08]New thread 3067170148 created [00:12:08]Thread 3067026788 joined [00:12:08]Waiting for new connection... [00:12:08] Sock 7.Parse request [00:12:08]Sock 7.Check first char [00:12:08]Sock 7.First char is OK [00:12:08]request: POST /json_proto HTTP/1.0 [00:12:08]Method: POST [00:12:08]URL: /json_proto [00:12:08]Method is POST - this is cgi request [00:12:08]url: /json_proto [00:12:08]query_string will be loaded in cgi processing [00:12:08]execute_cgi json_proto POST (null) [00:12:08]execute_cgi path=json_proto method=POST [00:12:08]POST find Content-Length [00:12:08]Host: 172.17.50.3:8080 [00:12:08]Content-Length: 678 [00:12:08]Content-Type: application/json [00:12:08] [00:12:08]POST finish read [00:12:08]Found Content-Length = 678 [00:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885819", "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" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [00:12:08]execute_script... [00:12: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)2885819", "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" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [00:12:08]POST & json_proto [00:12:08]process_json_proto [00:12:08]json parsed OK: [00:12:08]protocol is kg_v1.0 [00:12:08]action value=close_receipt [00:12:08]process_action close_receipt [00:12:08]cmd_close_receipt [00:12:08]MH_GetDate [00:12:08]Write to MH i2c: F0 00 00 C7 31 E7 [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: F0 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: F0 09 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: F0 09 00 C7 31 00 DB ED 16 67 6B 98 1E 66 BC [00:12:08]GetLastDocTimeStamp 1729555832 [00:12:08]current date 1729555931 [00:12:08]FM_GetShiftState [00:12:08]SAM_PROTO_GetShiftState [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 13 01 00 [00:12:08]Write to MH i2c: E2 08 00 C8 31 80 13 01 00 00 00 00 00 76 [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 0E 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 0E 00 C8 31 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 64 [00:12:08]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_GetShiftState done [00:12:08]FM_GetShiftState done [00:12:08]opened in 1729555832 [00:12:08]opened+sec_in_day 1729642232 [00:12:08]quantity*price = 35055 [00:12:08]sum+1 = 35057 [00:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 1 22.10.2024 00:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70053 ФПД: 265472647223410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70053&fm=265472647223410&tin=02508201610067®Number=0000000000156251&sum=35000 [00:12:09]StoreToDocumentArchive [00:12:09]shift 195 fd 70053 [00:12:09]save to /storage/0195/doc_00070053 [00:12:09]save last doc name /storage/0195/doc_00070053 to /storage/kkm_last_doc_name [00:12:09]save OK [00:12:09]Clear old archive folders... [00:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:09]tlvbuf is 011338E0 [00:12:09]SAM_PROTO_ClearQueue [00:12:09]wFMCommunicate request_size=4 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 09 00 00 [00:12:09]Write to MH i2c: E2 08 00 D5 31 80 09 00 00 00 00 00 00 78 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 03 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [00:12:09]RAPDU: 90 00 [00:12:09]wFMCommunicate OK [00:12:09]SAM_PROTO_ClearQueue done [00:12:09]KKMCreateOFDPacket [00:12:09]OFDProtocolAddRootSTLVToBuf [00:12:09]FM_MakeSignedData [00:12:09]FM_MakeSignedData [00:12:09]SAM_PROTO_SignData [00:12:09]wFMCommunicate request_size=4 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 0D 01 02 [00:12:09]Write to MH i2c: E2 08 00 D6 31 80 0D 01 02 00 00 00 00 80 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 03 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [00:12:09]RAPDU: 90 00 [00:12:09]wFMCommunicate OK [00:12:09]wFMCommunicate request_size=255 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 01 00 00 00 F4 03 04 00 DB ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 11 01 00 35 04 06 00 F1 [00:12:09]Write to MH i2c: E2 02 01 D7 31 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 01 00 00 00 F4 03 04 00 DB ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 11 01 00 35 04 06 00 F1 00 00 C5 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 03 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 03 00 D7 31 00 90 00 7C [00:12:10]RAPDU: 90 00 [00:12:10]wFMCommunicate OK [00:12:10]wFMCommunicate request_size=10 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 0D 02 02 05 72 2A D5 D8 72 [00:12:10]Write to MH i2c: E2 0D 00 D8 31 80 0D 02 02 05 00 72 2A D5 D8 72 00 00 48 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 03 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 03 00 D8 31 00 90 00 7D [00:12:10]RAPDU: 90 00 [00:12:10]wFMCommunicate OK [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 0D 03 02 [00:12:10]Write to MH i2c: E2 08 00 D9 31 80 0D 03 02 00 00 00 00 85 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 0B 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 0B 00 D9 31 00 62 B2 EE 06 49 A1 F3 46 90 00 B1 [00:12:10]RAPDU: 62 B2 EE 06 49 A1 F3 46 90 00 [00:12:10]wFMCommunicate OK [00:12:10]SAM_PROTO_SignData done [00:12:10]FM_MakeSignedData done [00:12:10]CreateOFDProtocolMessage [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 11 00 00 [00:12:10]Write to MH i2c: E2 08 00 DA 31 80 11 00 00 00 00 00 00 85 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 17 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 17 00 DA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [00:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:12:10]wFMCommunicate OK [00:12:10]CreateOFDProtocolMessage done [00:12:10]OFDSenderStorePacket 70053 [00:12:10]StoreOFDPacket docnum=70053 [00:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 31 07 01 85 A7 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 01 00 00 00 F4 03 04 00 DB ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 11 01 00 35 04 06 00 F1 72 2A D5 D8 72 62 B2 EE 06 49 A1 F3 46 [00:12:10]CheckFolder [00:12:10]dirname=/storage/ofd_packets [00:12:10]CheckFolder done [00:12:10]ProducePacketName [00:12:10]name=ofd_packets/00070053 [00:12:10]NVStorageSaveData ofd_packets/00070053 [00:12:10]File name is /storage/ofd_packets/00070053 [00:12:10]Write 301 bytes [00:12:10]NVStorageSaveData done [00:12:10]OFDSenderStorePacket done [00:12:10]KKMCreateOFDPacket done [00:12:10]NVStorageSaveData kkm_last_timestamp [00:12:10]File name is /storage/kkm_last_timestamp [00:12:10]Write 4 bytes [00:12:10]NVStorageSaveData done [00:12:10]ExternCall_PrintAddStr [00:12:10]wPrintStart [00:12:10]Write to MH i2c: 01 00 00 DB 31 0C [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: 01 [00:12:10]MH_I2C_Read... [00:12:10]OFD Sender: Processing packet 70053 [packets to send 18, broken 17] [00:12:10]ProducePacketName [00:12:10]name=ofd_packets/00070053 [00:12:10]OFD Sender: To server: pG, [00:12:10]CommunicateWithHost lk.salyk.kg:30040 [00:12:10]ConnectInit lk.salyk.kg [00:12:10]Read from MH i2c: 01 07 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: 01 07 00 DB 31 00 00 00 00 00 FF 0F 21 [00:12:10]RasterBufferAndPrint [00:12:10]line Счет N : (1)2885819 [00:12:10]line ИНН: 02508201610067 [00:12:10]line Контрольно-Кассовый Чек [00:12:10]line ПРОДАЖА [00:12:10]line ТРК (МРК, ГНК) : 42 [00:12:10]line Товар: 2710124130 [00:12:10]line Аи-92-К-5 [00:12:10]line 5.240 * 66.90 [00:12:10]line = 350.56 [00:12:10]line НДС 12% НСП 1% [00:12:10]line > о реализуемом товаре [00:12:10]line ОКРУГЛЕНИЕ: -0.56 [00:12:10]line ИТОГО: 350.00 [00:12:10]line Внесено: 350.00 [00:12:10]line СДАЧА: 0.00 [00:12:10]line НСП 1% : 3.10 [00:12:10]line НДС 12% : 37.23 [00:12:10]line Наличными: 350.00 [00:12:10]line Безнал.: 0.00 [00:12:10]line Место: АЗС № 85 "Партнер Нефть" [00:12:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:12:10]line СНО: Общий режим [00:12:10]line Чек 1 22.10.2024 00:12 [00:12:10]line Смена: 195 ФФД: 1.0 [00:12:10]line ЗНМ: 0300000167 [00:12:10]line РНМ: 0000000000156251 [00:12:10]line Версия ККМ: v1.0 [00:12:10]line ФМ: 0000000000963346 [00:12:10]line ФД: 70053 [00:12:10]line ФПД: 265472647223410 [00:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001211&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70053&fm=265472647223410&tin=02508201610067®Number=0000000000156251&sum=35000 [00:12:10]Connected sock=11 [00:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 31 07 01 85 A7 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 01 00 00 00 F4 03 04 00 DB ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 11 01 00 35 04 06 00 F1 72 2A D5 D8 72 62 B2 EE 06 49 A1 F3 46 [00:12:10]written 0, free lines is 4095 [00:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 2C 47 00 38 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 11 01 00 F4 03 04 00 7D 97 16 67 B6 04 01 00 00 90 34 7D B8 75 5E 4D CB [00:12:10]CommunicateWithHost err = 0 [00:12:10]CheckOFDResponse [00:12:10]1017 (14) - 77093643461234 [00:12:10]1041 (16) - 0000000000963346 [00:12:10]1040 (4) - 70053 [00:12:10]1012 (4) - 21.10.2024 18:03 [00:12:10]1206 (1) - 0 [00:12:10]OFD Sender: Remove packet 70053 [00:12:10]ProducePacketName [00:12:10]name=ofd_packets/00070053 [00:12:10]NVStorageDeleteData [00:12:11]Write to MH i2c: 01 00 00 06 32 38 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: 01 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: 01 07 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 E6 0C 31 [00:12:11]RasterBufferAndPrint [00:12:11]line [00:12:11]line [00:12:11]line [00:12:11]line [00:12:11]line [00:12:11]written 0, free lines is 3309 [00:12:11]MH_Cut [00:12:11]Write to MH i2c: D1 01 00 0D 32 01 11 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: D1 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: D1 01 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: D1 01 00 0D 32 00 10 [00:12:11]Write to MH i2c: 01 00 00 0E 32 40 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]OFD Sender: No OFD packet to send [00:12:11]*** Cut start [00:12:11]*** Partial cut [00:12:11]*** CUTSNS_PIN = 1 [00:12:11]*** CUTSNS_PIN = 0 [00:12:12]*** Brake cut motor [00:12:12]Read from MH i2c: 01 [00:12:12]MH_I2C_Read... [00:12:12]*** Stop cut motor [00:12:12]*** Cut end [00:12:12]Read from MH i2c: 01 07 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: 01 07 00 0E 32 00 00 00 00 00 FF 0F 55 [00:12:12]process_action close_receipt done [00:12:12]requested_data is exist [00:12:12]produce_requested_data [00:12:12]requested_item fm.sn is exist - process it [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 11 00 00 [00:12:12]Write to MH i2c: E2 08 00 0F 32 80 11 00 00 00 00 00 00 BB [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 17 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 17 00 0F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [00:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:12:12]wFMCommunicate OK [00:12:12]requested_item fd.num is exist - process it [00:12:12]SAM_PROTO_GetFieldsCounters [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 13 00 00 [00:12:12]Write to MH i2c: E2 08 00 10 32 80 13 00 00 00 00 00 00 BE [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 62 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 62 00 10 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [00:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:12]wFMCommunicate OK [00:12:12]SAM_PROTO_GetFieldsCounters done [00:12:12]requested_item shift.num is exist - process it [00:12:12]requested_item shift.opened is exist - process it [00:12:12]req_shift_opened [00:12:12]FM_GetShiftState [00:12:12]SAM_PROTO_GetShiftState [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 13 01 00 [00:12:12]Write to MH i2c: E2 08 00 11 32 80 13 01 00 00 00 00 00 C0 [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 0E 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 0E 00 11 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AE [00:12:12]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:12:12]wFMCommunicate OK [00:12:12]SAM_PROTO_GetShiftState done [00:12:12]FM_GetShiftState done [00:12:12]req_shift_opened done [00:12:12]requested_item shift.open_date is exist - process it [00:12:12]req_shift_open_date [00:12:12]req_shift_open_date done [00:12:12]produce_requested_data done [00:12:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70053,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:12:12]process_action_free close_receipt [00:12:12]json_value_free [00:12:12]json_value_free done [00:12:12]process_json_proto returns [00:12:12]Send response to host [00:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70053,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:12:12]free response buf [00:12:12]execute_script done [00:12:12]execute_script returns [00:12:12]free content buf [00:12:12]Sock 7.Close socket [00:12:12]Sock 7.Thread stoped [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:35]accept exits with 9 [00:12:35]New connection [00:12:35]New thread 3067026788 created [00:12:35]Thread 3067170148 joined [00:12:35]Waiting for new connection... [00:12:35] Sock 9.Parse request [00:12:35]Sock 9.Check first char [00:12:35]Sock 9.First char is OK [00:12:35]request: POST /json_proto HTTP/1.0 [00:12:35]Method: POST [00:12:35]URL: /json_proto [00:12:35]Method is POST - this is cgi request [00:12:35]url: /json_proto [00:12:35]query_string will be loaded in cgi processing [00:12:35]execute_cgi json_proto POST (null) [00:12:35]execute_cgi path=json_proto method=POST [00:12:35]POST find Content-Length [00:12:35]Host: 172.17.50.3:8080 [00:12:35]Content-Length: 683 [00:12:35]Content-Type: application/json [00:12:35] [00:12:35]POST finish read [00:12:35]Found Content-Length = 683 [00:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885820", "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" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:35]execute_script... [00:12: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)2885820", "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" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:35]POST & json_proto [00:12:35]process_json_proto [00:12:35]json parsed OK: [00:12:35]protocol is kg_v1.0 [00:12:35]action value=close_receipt [00:12:35]process_action close_receipt [00:12:35]cmd_close_receipt [00:12:35]MH_GetDate [00:12:35]Write to MH i2c: F0 00 00 12 32 33 [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: F0 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: F0 09 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: F0 09 00 12 32 00 F5 ED 16 67 6B 98 1E 66 22 [00:12:35]GetLastDocTimeStamp 1729555931 [00:12:35]current date 1729555957 [00:12:35]FM_GetShiftState [00:12:35]SAM_PROTO_GetShiftState [00:12:35]wFMCommunicate request_size=4 [00:12:35]MH_SAM_APDU [00:12:35]CAPDU: 80 13 01 00 [00:12:35]Write to MH i2c: E2 08 00 13 32 80 13 01 00 00 00 00 00 C2 [00:12:35]Write i2c OK [00:12:35]MH_I2C_Read... [00:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:35]Read from MH i2c: E2 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 0E 00 [00:12:35]MH_I2C_Read... [00:12:35]Read from MH i2c: E2 0E 00 13 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 B0 [00:12:35]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:12:35]wFMCommunicate OK [00:12:35]SAM_PROTO_GetShiftState done [00:12:35]FM_GetShiftState done [00:12:35]opened in 1729555832 [00:12:35]opened+sec_in_day 1729642232 [00:12:35]quantity*price = 120018 [00:12:35]sum+1 = 120020 [00:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 2 22.10.2024 00:12 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70054 ФПД: 7102182505517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001238&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70054&fm=7102182505517&tin=02508201610067®Number=0000000000156251&sum=120000 [00:12:36]StoreToDocumentArchive [00:12:36]shift 195 fd 70054 [00:12:36]save to /storage/0195/doc_00070054 [00:12:36]save last doc name /storage/0195/doc_00070054 to /storage/kkm_last_doc_name [00:12:36]save OK [00:12:36]Clear old archive folders... [00:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:36]tlvbuf is 01208970 [00:12:36]SAM_PROTO_ClearQueue [00:12:36]wFMCommunicate request_size=4 [00:12:36]MH_SAM_APDU [00:12:36]CAPDU: 80 09 00 00 [00:12:36]Write to MH i2c: E2 08 00 20 32 80 09 00 00 00 00 00 00 C4 [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:36]Read from MH i2c: E2 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 20 32 00 90 00 C6 [00:12:36]RAPDU: 90 00 [00:12:36]wFMCommunicate OK [00:12:36]SAM_PROTO_ClearQueue done [00:12:36]KKMCreateOFDPacket [00:12:36]OFDProtocolAddRootSTLVToBuf [00:12:36]FM_MakeSignedData [00:12:36]FM_MakeSignedData [00:12:36]SAM_PROTO_SignData [00:12:36]wFMCommunicate request_size=4 [00:12:36]MH_SAM_APDU [00:12:36]CAPDU: 80 0D 01 02 [00:12:36]Write to MH i2c: E2 08 00 21 32 80 0D 01 02 00 00 00 00 CC [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:36]Read from MH i2c: E2 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 21 32 00 90 00 C7 [00:12:36]RAPDU: 90 00 [00:12:36]wFMCommunicate OK [00:12:36]wFMCommunicate request_size=255 [00:12:36]MH_SAM_APDU [00:12: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F6 ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 11 01 00 35 04 06 00 06 [00:12:36]Write to MH i2c: E2 02 01 22 32 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F6 ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 11 01 00 35 04 06 00 06 00 00 3F [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:36]Read from MH i2c: E2 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 [00:12:36]MH_I2C_Read... [00:12:36]Read from MH i2c: E2 03 00 22 32 00 90 00 C8 [00:12:36]RAPDU: 90 00 [00:12:36]wFMCommunicate OK [00:12:36]wFMCommunicate request_size=10 [00:12:36]MH_SAM_APDU [00:12:36]CAPDU: 80 0D 02 02 05 75 9B 10 BC 2D [00:12:36]Write to MH i2c: E2 0D 00 23 32 80 0D 02 02 05 00 75 9B 10 BC 2D 00 00 E2 [00:12:36]Write i2c OK [00:12:36]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 03 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 03 00 23 32 00 90 00 C9 [00:12:37]RAPDU: 90 00 [00:12:37]wFMCommunicate OK [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 0D 03 02 [00:12:37]Write to MH i2c: E2 08 00 24 32 80 0D 03 02 00 00 00 00 D1 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0B 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 0B 00 24 32 00 73 C4 C7 07 A5 F3 CF 5B 90 00 99 [00:12:37]RAPDU: 73 C4 C7 07 A5 F3 CF 5B 90 00 [00:12:37]wFMCommunicate OK [00:12:37]SAM_PROTO_SignData done [00:12:37]FM_MakeSignedData done [00:12:37]CreateOFDProtocolMessage [00:12:37]wFMCommunicate request_size=4 [00:12:37]MH_SAM_APDU [00:12:37]CAPDU: 80 11 00 00 [00:12:37]Write to MH i2c: E2 08 00 25 32 80 11 00 00 00 00 00 00 D1 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:37]Read from MH i2c: E2 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 17 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: E2 17 00 25 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [00:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:12:37]wFMCommunicate OK [00:12:37]CreateOFDProtocolMessage done [00:12:37]OFDSenderStorePacket 70054 [00:12:37]StoreOFDPacket docnum=70054 [00:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 54 07 01 A8 85 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F6 ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 11 01 00 35 04 06 00 06 75 9B 10 BC 2D 73 C4 C7 07 A5 F3 CF 5B [00:12:37]CheckFolder [00:12:37]dirname=/storage/ofd_packets [00:12:37]CheckFolder done [00:12:37]ProducePacketName [00:12:37]name=ofd_packets/00070054 [00:12:37]NVStorageSaveData ofd_packets/00070054 [00:12:37]File name is /storage/ofd_packets/00070054 [00:12:37]Write 301 bytes [00:12:37]NVStorageSaveData done [00:12:37]OFDSenderStorePacket done [00:12:37]KKMCreateOFDPacket done [00:12:37]NVStorageSaveData kkm_last_timestamp [00:12:37]File name is /storage/kkm_last_timestamp [00:12:37]Write 4 bytes [00:12:37]NVStorageSaveData done [00:12:37]ExternCall_PrintAddStr [00:12:37]wPrintStart [00:12:37]Write to MH i2c: 01 00 00 26 32 58 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 26 32 00 00 00 00 00 FF 0F 6D [00:12:37]RasterBufferAndPrint [00:12:37]line Счет N : (1)2885820 [00:12:37]line ИНН: 02508201610067 [00:12:37]line Контрольно-Кассовый Чек [00:12:37]line ПРОДАЖА [00:12:37]line ТРК (МРК, ГНК) : 32 [00:12:37]line Товар: 2710124130 [00:12:37]line Аи-92-К-5 [00:12:37]line 17.940 * 66.90 [00:12:37]line = 1200.19 [00:12:37]line НДС 12% НСП 1% [00:12:37]line > о реализуемом товаре [00:12:37]line ОКРУГЛЕНИЕ: -0.19 [00:12:37]line ИТОГО: 1200.00 [00:12:37]line Внесено: 1200.00 [00:12:37]line СДАЧА: 0.00 [00:12:37]line НСП 1% : 10.62 [00:12:37]line НДС 12% : 127.45 [00:12:37]line Наличными: 1200.00 [00:12:37]line Безнал.: 0.00 [00:12:37]line Место: АЗС № 85 "Партнер Нефть" [00:12:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:12:37]line СНО: Общий режим [00:12:37]line Чек 2 22.10.2024 00:12 [00:12:37]line Смена: 195 ФФД: 1.0 [00:12:37]line ЗНМ: 0300000167 [00:12:37]line РНМ: 0000000000156251 [00:12:37]line Версия ККМ: v1.0 [00:12:37]line ФМ: 0000000000963346 [00:12:37]line ФД: 70054 [00:12:37]line ФПД: 7102182505517 [00:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001238&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70054&fm=7102182505517&tin=02508201610067®Number=0000000000156251&sum=120000 [00:12:37]OFD Sender: Processing packet 70054 [packets to send 18, broken 17] [00:12:37]ProducePacketName [00:12:37]name=ofd_packets/00070054 [00:12:37]OFD Sender: To server: pG, [00:12:37]CommunicateWithHost lk.salyk.kg:30040 [00:12:37]ConnectInit lk.salyk.kg [00:12:37]written 0, free lines is 4095 [00:12:37]Connected sock=10 [00:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 54 07 01 A8 85 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F6 ED 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 11 01 00 35 04 06 00 06 75 9B 10 BC 2D 73 C4 C7 07 A5 F3 CF 5B [00:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9A DF 47 00 79 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 11 01 00 F4 03 04 00 98 97 16 67 B6 04 01 00 00 D3 A9 6A 43 88 64 F6 25 [00:12:37]CommunicateWithHost err = 0 [00:12:37]CheckOFDResponse [00:12:37]1017 (14) - 77093643461234 [00:12:37]1041 (16) - 0000000000963346 [00:12:37]1040 (4) - 70054 [00:12:37]1012 (4) - 21.10.2024 18:04 [00:12:37]1206 (1) - 0 [00:12:37]OFD Sender: Remove packet 70054 [00:12:37]ProducePacketName [00:12:37]name=ofd_packets/00070054 [00:12:37]NVStorageDeleteData [00:12:37]Write to MH i2c: 01 00 00 51 32 83 [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: 01 07 00 51 32 00 00 00 00 00 DC 0C 72 [00:12:37]RasterBufferAndPrint [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]line [00:12:37]written 0, free lines is 3299 [00:12:37]MH_Cut [00:12:37]Write to MH i2c: D1 01 00 58 32 01 5C [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 [00:12:37]MH_I2C_Read... [00:12:37]Read from MH i2c: D1 01 00 58 32 00 5B [00:12:37]Write to MH i2c: 01 00 00 59 32 8B [00:12:37]Write i2c OK [00:12:37]MH_I2C_Read... [00:12:38]OFD Sender: No OFD packet to send [00:12:38]*** Cut start [00:12:38]*** Partial cut [00:12:38]*** CUTSNS_PIN = 1 [00:12:38]*** CUTSNS_PIN = 0 [00:12:38]*** Brake cut motor [00:12:39]Read from MH i2c: 01 [00:12:39]MH_I2C_Read... [00:12:39]*** Stop cut motor [00:12:39]*** Cut end [00:12:39]Read from MH i2c: 01 07 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 FF 0F A0 [00:12:39]process_action close_receipt done [00:12:39]requested_data is exist [00:12:39]produce_requested_data [00:12:39]requested_item fm.sn is exist - process it [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 11 00 00 [00:12:39]Write to MH i2c: E2 08 00 5A 32 80 11 00 00 00 00 00 00 06 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 17 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 17 00 5A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [00:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:12:39]wFMCommunicate OK [00:12:39]requested_item fd.num is exist - process it [00:12:39]SAM_PROTO_GetFieldsCounters [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 00 00 [00:12:39]Write to MH i2c: E2 08 00 5B 32 80 13 00 00 00 00 00 00 09 [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 62 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 62 00 5B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetFieldsCounters done [00:12:39]requested_item shift.num is exist - process it [00:12:39]requested_item shift.opened is exist - process it [00:12:39]req_shift_opened [00:12:39]FM_GetShiftState [00:12:39]SAM_PROTO_GetShiftState [00:12:39]wFMCommunicate request_size=4 [00:12:39]MH_SAM_APDU [00:12:39]CAPDU: 80 13 01 00 [00:12:39]Write to MH i2c: E2 08 00 5C 32 80 13 01 00 00 00 00 00 0B [00:12:39]Write i2c OK [00:12:39]MH_I2C_Read... [00:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:39]Read from MH i2c: E2 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 0E 00 [00:12:39]MH_I2C_Read... [00:12:39]Read from MH i2c: E2 0E 00 5C 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [00:12:39]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:12:39]wFMCommunicate OK [00:12:39]SAM_PROTO_GetShiftState done [00:12:39]FM_GetShiftState done [00:12:39]req_shift_opened done [00:12:39]requested_item shift.open_date is exist - process it [00:12:39]req_shift_open_date [00:12:39]req_shift_open_date done [00:12:39]produce_requested_data done [00:12:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70054,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:12:39]process_action_free close_receipt [00:12:39]json_value_free [00:12:39]json_value_free done [00:12:39]process_json_proto returns [00:12:39]Send response to host [00:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70054,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:12:39]free response buf [00:12:39]execute_script done [00:12:39]execute_script returns [00:12:39]free content buf [00:12:39]Sock 9.Close socket [00:12:39]Sock 9.Thread stoped [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:16:58]accept exits with 7 [00:16:58]New connection [00:16:58]New thread 3067170148 created [00:16:58]Thread 3067026788 joined [00:16:58]Waiting for new connection... [00:16:58] Sock 7.Parse request [00:16:58]Sock 7.Check first char [00:16:58]Sock 7.First char is OK [00:16:58]request: POST /json_proto HTTP/1.0 [00:16:58]Method: POST [00:16:58]URL: /json_proto [00:16:58]Method is POST - this is cgi request [00:16:58]url: /json_proto [00:16:58]query_string will be loaded in cgi processing [00:16:58]execute_cgi json_proto POST (null) [00:16:58]execute_cgi path=json_proto method=POST [00:16:58]POST find Content-Length [00:16:58]Host: 172.17.50.3:8080 [00:16:58]Content-Length: 689 [00:16:58]Content-Type: application/json [00:16:58] [00:16:58]POST finish read [00:16:58]Found Content-Length = 689 [00:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:58]execute_script... [00:16: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)2885821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:58]POST & json_proto [00:16:58]process_json_proto [00:16:58]json parsed OK: [00:16:58]protocol is kg_v1.0 [00:16:58]action value=close_receipt [00:16:58]process_action close_receipt [00:16:58]cmd_close_receipt [00:16:58]MH_GetDate [00:16:58]Write to MH i2c: F0 00 00 5D 32 7E [00:16:58]Write i2c OK [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: F0 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: F0 09 00 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: F0 09 00 5D 32 00 FD EE 16 67 6B 98 1E 66 76 [00:16:58]GetLastDocTimeStamp 1729555958 [00:16:58]current date 1729556221 [00:16:58]FM_GetShiftState [00:16:58]SAM_PROTO_GetShiftState [00:16:58]wFMCommunicate request_size=4 [00:16:58]MH_SAM_APDU [00:16:58]CAPDU: 80 13 01 00 [00:16:58]Write to MH i2c: E2 08 00 5E 32 80 13 01 00 00 00 00 00 0D [00:16:58]Write i2c OK [00:16:58]MH_I2C_Read... [00:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:58]Read from MH i2c: E2 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 0E 00 [00:16:58]MH_I2C_Read... [00:16:58]Read from MH i2c: E2 0E 00 5E 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [00:16:58]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:16:58]wFMCommunicate OK [00:16:58]SAM_PROTO_GetShiftState done [00:16:58]FM_GetShiftState done [00:16:58]opened in 1729555832 [00:16:58]opened+sec_in_day 1729642232 [00:16:58]quantity*price = 400050 [00:16:58]sum+1 = 400051 [00:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 3 22.10.2024 00:17 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70055 ФПД: 244055207384164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70055&fm=244055207384164&tin=02508201610067®Number=0000000000156251&sum=400000 [00:16:59]StoreToDocumentArchive [00:16:59]shift 195 fd 70055 [00:16:59]save to /storage/0195/doc_00070055 [00:16:59]save last doc name /storage/0195/doc_00070055 to /storage/kkm_last_doc_name [00:16:59]save OK [00:16:59]Clear old archive folders... [00:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:16:59]tlvbuf is 011616E0 [00:16:59]SAM_PROTO_ClearQueue [00:16:59]wFMCommunicate request_size=4 [00:16:59]MH_SAM_APDU [00:16:59]CAPDU: 80 09 00 00 [00:16:59]Write to MH i2c: E2 08 00 6B 32 80 09 00 00 00 00 00 00 0F [00:16:59]Write i2c OK [00:16:59]MH_I2C_Read... [00:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:59]Read from MH i2c: E2 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 03 00 [00:16:59]MH_I2C_Read... [00:16:59]Read from MH i2c: E2 03 00 6B 32 00 90 00 11 [00:16:59]RAPDU: 90 00 [00:16:59]wFMCommunicate OK [00:16:59]SAM_PROTO_ClearQueue done [00:16:59]KKMCreateOFDPacket [00:16:59]OFDProtocolAddRootSTLVToBuf [00:16:59]FM_MakeSignedData [00:16:59]FM_MakeSignedData [00:16:59]SAM_PROTO_SignData [00:16:59]wFMCommunicate request_size=4 [00:16:59]MH_SAM_APDU [00:16:59]CAPDU: 80 0D 01 02 [00:16:59]Write to MH i2c: E2 08 00 6C 32 80 0D 01 02 00 00 00 00 17 [00:16:59]Write i2c OK [00:16:59]MH_I2C_Read... [00:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:00]Read from MH i2c: E2 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 6C 32 00 90 00 12 [00:17:00]RAPDU: 90 00 [00:17:00]wFMCommunicate OK [00:17:00]wFMCommunicate request_size=255 [00:17:00]MH_SAM_APDU [00:17:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FD EE 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 11 01 [00:17:00]Write to MH i2c: E2 02 01 6D 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FD EE 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 11 01 00 00 75 [00:17:00]Write i2c OK [00:17:00]MH_I2C_Read... [00:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:00]Read from MH i2c: E2 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 6D 32 00 90 00 13 [00:17:00]RAPDU: 90 00 [00:17:00]wFMCommunicate OK [00:17:00]wFMCommunicate request_size=16 [00:17:00]MH_SAM_APDU [00:17:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD F7 87 F1 14 64 [00:17:00]Write to MH i2c: E2 13 00 6E 32 80 0D 02 02 0B 00 00 35 04 06 00 DD F7 87 F1 14 64 00 00 33 [00:17:00]Write i2c OK [00:17:00]MH_I2C_Read... [00:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:00]Read from MH i2c: E2 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 03 00 6E 32 00 90 00 14 [00:17:00]RAPDU: 90 00 [00:17:00]wFMCommunicate OK [00:17:00]wFMCommunicate request_size=4 [00:17:00]MH_SAM_APDU [00:17:00]CAPDU: 80 0D 03 02 [00:17:00]Write to MH i2c: E2 08 00 6F 32 80 0D 03 02 00 00 00 00 1C [00:17:00]Write i2c OK [00:17:00]MH_I2C_Read... [00:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:00]Read from MH i2c: E2 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 0B 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 0B 00 6F 32 00 98 DB 3A CE D1 C2 58 8A 90 00 0D [00:17:00]RAPDU: 98 DB 3A CE D1 C2 58 8A 90 00 [00:17:00]wFMCommunicate OK [00:17:00]SAM_PROTO_SignData done [00:17:00]FM_MakeSignedData done [00:17:00]CreateOFDProtocolMessage [00:17:00]wFMCommunicate request_size=4 [00:17:00]MH_SAM_APDU [00:17:00]CAPDU: 80 11 00 00 [00:17:00]Write to MH i2c: E2 08 00 70 32 80 11 00 00 00 00 00 00 1C [00:17:00]Write i2c OK [00:17:00]MH_I2C_Read... [00:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:00]Read from MH i2c: E2 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 17 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: E2 17 00 70 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [00:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:17:00]wFMCommunicate OK [00:17:00]CreateOFDProtocolMessage done [00:17:00]OFDSenderStorePacket 70055 [00:17:00]StoreOFDPacket docnum=70055 [00:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 94 F8 0D 01 C9 BB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FD EE 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 11 01 00 35 04 06 00 DD F7 87 F1 14 64 98 DB 3A CE D1 C2 58 8A [00:17:00]CheckFolder [00:17:00]dirname=/storage/ofd_packets [00:17:00]CheckFolder done [00:17:00]ProducePacketName [00:17:00]name=ofd_packets/00070055 [00:17:00]NVStorageSaveData ofd_packets/00070055 [00:17:00]File name is /storage/ofd_packets/00070055 [00:17:00]Write 307 bytes [00:17:00]NVStorageSaveData done [00:17:00]OFDSenderStorePacket done [00:17:00]KKMCreateOFDPacket done [00:17:00]NVStorageSaveData kkm_last_timestamp [00:17:00]File name is /storage/kkm_last_timestamp [00:17:00]Write 4 bytes [00:17:00]NVStorageSaveData done [00:17:00]ExternCall_PrintAddStr [00:17:00]wPrintStart [00:17:00]Write to MH i2c: 01 00 00 71 32 A3 [00:17:00]Write i2c OK [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: 01 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: 01 07 00 [00:17:00]MH_I2C_Read... [00:17:00]Read from MH i2c: 01 07 00 71 32 00 00 00 00 00 FF 0F B8 [00:17:00]RasterBufferAndPrint [00:17:00]line Счет N : (1)2885821 [00:17:00]line ИНН: 02508201610067 [00:17:00]line Контрольно-Кассовый Чек [00:17:00]line ПРОДАЖА [00:17:00]line ТРК (МРК, ГНК) : 21 [00:17:00]line Товар: 2710194240 [00:17:00]line D-ENERGY Дт-К-2 [00:17:00]line 51.820 * 77.20 [00:17:00]line = 4000.50 [00:17:00]line НДС 12% НСП 1% [00:17:00]line > о реализуемом товаре [00:17:00]line ОКРУГЛЕНИЕ: -0.50 [00:17:00]line ИТОГО: 4000.00 [00:17:00]line Внесено: 4000.00 [00:17:00]line СДАЧА: 0.00 [00:17:00]line НСП 1% : 35.40 [00:17:00]line НДС 12% : 424.83 [00:17:00]line Наличными: 4000.00 [00:17:00]line Безнал.: 0.00 [00:17:00]line Место: АЗС № 85 "Партнер Нефть" [00:17:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:17:00]line СНО: Общий режим [00:17:00]line Чек 3 22.10.2024 00:17 [00:17:00]line Смена: 195 ФФД: 1.0 [00:17:00]line ЗНМ: 0300000167 [00:17:00]line РНМ: 0000000000156251 [00:17:00]line Версия ККМ: v1.0 [00:17:00]line ФМ: 0000000000963346 [00:17:00]line ФД: 70055 [00:17:00]line ФПД: 244055207384164 [00:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001701&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70055&fm=244055207384164&tin=02508201610067®Number=0000000000156251&sum=400000 [00:17:00]OFD Sender: Processing packet 70055 [packets to send 18, broken 17] [00:17:00]ProducePacketName [00:17:00]name=ofd_packets/00070055 [00:17:00]OFD Sender: To server: pG, [00:17:00]CommunicateWithHost lk.salyk.kg:30040 [00:17:00]ConnectInit lk.salyk.kg [00:17:00]written 0, free lines is 4095 [00:17:00]Connected sock=10 [00:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 94 F8 0D 01 C9 BB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 FD EE 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 11 01 00 35 04 06 00 DD F7 87 F1 14 64 98 DB 3A CE D1 C2 58 8A [00:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8A 5F 47 00 8D 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 11 01 00 F4 03 04 00 9F 98 16 67 B6 04 01 00 00 49 FC D7 87 F4 B6 E6 B0 [00:17:01]CommunicateWithHost err = 0 [00:17:01]CheckOFDResponse [00:17:01]1017 (14) - 77093643461234 [00:17:01]1041 (16) - 0000000000963346 [00:17:01]1040 (4) - 70055 [00:17:01]1012 (4) - 21.10.2024 18:08 [00:17:01]1206 (1) - 0 [00:17:01]OFD Sender: Remove packet 70055 [00:17:01]ProducePacketName [00:17:01]name=ofd_packets/00070055 [00:17:01]NVStorageDeleteData [00:17:01]Write to MH i2c: 01 00 00 9C 32 CE [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: 01 07 00 9C 32 00 00 00 00 00 E4 0C C5 [00:17:01]RasterBufferAndPrint [00:17:01]line [00:17:01]line [00:17:01]line [00:17:01]line [00:17:01]line [00:17:01]written 0, free lines is 3306 [00:17:01]MH_Cut [00:17:01]Write to MH i2c: D1 01 00 A3 32 01 A7 [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: D1 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: D1 01 00 [00:17:01]MH_I2C_Read... [00:17:01]Read from MH i2c: D1 01 00 A3 32 00 A6 [00:17:01]Write to MH i2c: 01 00 00 A4 32 D6 [00:17:01]Write i2c OK [00:17:01]MH_I2C_Read... [00:17:01]OFD Sender: No OFD packet to send [00:17:01]*** Cut start [00:17:01]*** Partial cut [00:17:01]*** CUTSNS_PIN = 1 [00:17:01]*** CUTSNS_PIN = 0 [00:17:02]*** Brake cut motor [00:17:02]Read from MH i2c: 01 [00:17:02]MH_I2C_Read... [00:17:02]*** Stop cut motor [00:17:02]*** Cut end [00:17:02]Read from MH i2c: 01 07 00 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [00:17:02]process_action close_receipt done [00:17:02]requested_data is exist [00:17:02]produce_requested_data [00:17:02]requested_item fm.sn is exist - process it [00:17:02]wFMCommunicate request_size=4 [00:17:02]MH_SAM_APDU [00:17:02]CAPDU: 80 11 00 00 [00:17:02]Write to MH i2c: E2 08 00 A5 32 80 11 00 00 00 00 00 00 51 [00:17:02]Write i2c OK [00:17:02]MH_I2C_Read... [00:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:02]Read from MH i2c: E2 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 17 00 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 17 00 A5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [00:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:17:02]wFMCommunicate OK [00:17:02]requested_item fd.num is exist - process it [00:17:02]SAM_PROTO_GetFieldsCounters [00:17:02]wFMCommunicate request_size=4 [00:17:02]MH_SAM_APDU [00:17:02]CAPDU: 80 13 00 00 [00:17:02]Write to MH i2c: E2 08 00 A6 32 80 13 00 00 00 00 00 00 54 [00:17:02]Write i2c OK [00:17:02]MH_I2C_Read... [00:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:02]Read from MH i2c: E2 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 62 00 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 62 00 A6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [00:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:02]wFMCommunicate OK [00:17:02]SAM_PROTO_GetFieldsCounters done [00:17:02]requested_item shift.num is exist - process it [00:17:02]requested_item shift.opened is exist - process it [00:17:02]req_shift_opened [00:17:02]FM_GetShiftState [00:17:02]SAM_PROTO_GetShiftState [00:17:02]wFMCommunicate request_size=4 [00:17:02]MH_SAM_APDU [00:17:02]CAPDU: 80 13 01 00 [00:17:02]Write to MH i2c: E2 08 00 A7 32 80 13 01 00 00 00 00 00 56 [00:17:02]Write i2c OK [00:17:02]MH_I2C_Read... [00:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:02]Read from MH i2c: E2 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 0E 00 [00:17:02]MH_I2C_Read... [00:17:02]Read from MH i2c: E2 0E 00 A7 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [00:17:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:17:02]wFMCommunicate OK [00:17:02]SAM_PROTO_GetShiftState done [00:17:02]FM_GetShiftState done [00:17:02]req_shift_opened done [00:17:02]requested_item shift.open_date is exist - process it [00:17:02]req_shift_open_date [00:17:02]req_shift_open_date done [00:17:02]produce_requested_data done [00:17:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70055,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:17:02]process_action_free close_receipt [00:17:02]json_value_free [00:17:02]json_value_free done [00:17:02]process_json_proto returns [00:17:02]Send response to host [00:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70055,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:17:02]free response buf [00:17:02]execute_script done [00:17:02]execute_script returns [00:17:02]free content buf [00:17:02]Sock 7.Close socket [00:17:02]Sock 7.Thread stoped [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:13]accept exits with 9 [00:18:13]New connection [00:18:13]New thread 3067026788 created [00:18:13] Sock 9.Parse request [00:18:13]Thread 3067170148 joined [00:18:13]Sock 9.Check first char [00:18:13]Waiting for new connection... [00:18:13]Sock 9.First char is OK [00:18:13]request: POST /json_proto HTTP/1.0 [00:18:13]Method: POST [00:18:13]URL: /json_proto [00:18:13]Method is POST - this is cgi request [00:18:13]url: /json_proto [00:18:13]query_string will be loaded in cgi processing [00:18:13]execute_cgi json_proto POST (null) [00:18:13]execute_cgi path=json_proto method=POST [00:18:13]POST find Content-Length [00:18:13]Host: 172.17.50.3:8080 [00:18:13]Content-Length: 689 [00:18:13]Content-Type: application/json [00:18:13] [00:18:13]POST finish read [00:18:13]Found Content-Length = 689 [00:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.790, "sum" : 1604.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1604.00, "payments": [ { "type": 0, "sum" : 1604.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:13]execute_script... [00:18: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)2885822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.790, "sum" : 1604.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1604.00, "payments": [ { "type": 0, "sum" : 1604.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:13]POST & json_proto [00:18:13]process_json_proto [00:18:13]json parsed OK: [00:18:13]protocol is kg_v1.0 [00:18:13]action value=close_receipt [00:18:13]process_action close_receipt [00:18:13]cmd_close_receipt [00:18:13]MH_GetDate [00:18:13]Write to MH i2c: F0 00 00 A8 32 C9 [00:18:13]Write i2c OK [00:18:13]MH_I2C_Read... [00:18:13]Read from MH i2c: F0 [00:18:13]MH_I2C_Read... [00:18:13]Read from MH i2c: F0 09 00 [00:18:13]MH_I2C_Read... [00:18:13]Read from MH i2c: F0 09 00 A8 32 00 48 EF 16 67 6B 98 1E 66 0D [00:18:13]GetLastDocTimeStamp 1729556221 [00:18:13]current date 1729556296 [00:18:13]FM_GetShiftState [00:18:13]SAM_PROTO_GetShiftState [00:18:13]wFMCommunicate request_size=4 [00:18:13]MH_SAM_APDU [00:18:13]CAPDU: 80 13 01 00 [00:18:13]Write to MH i2c: E2 08 00 A9 32 80 13 01 00 00 00 00 00 58 [00:18:13]Write i2c OK [00:18:13]MH_I2C_Read... [00:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:13]Read from MH i2c: E2 [00:18:13]MH_I2C_Read... [00:18:13]Read from MH i2c: E2 0E 00 [00:18:13]MH_I2C_Read... [00:18:13]Read from MH i2c: E2 0E 00 A9 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 46 [00:18:13]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:18:13]wFMCommunicate OK [00:18:13]SAM_PROTO_GetShiftState done [00:18:13]FM_GetShiftState done [00:18:13]opened in 1729555832 [00:18:13]opened+sec_in_day 1729642232 [00:18:13]quantity*price = 160498 [00:18:13]sum+1 = 160500 [00:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1604.00 Внесено: 5000.00 СДАЧА: 3396.00 НСП 1% : 14.20 НДС 12% : 170.44 Наличными: 1604.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 4 22.10.2024 00:18 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70056 ФПД: 113776761282632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70056&fm=113776761282632&tin=02508201610067®Number=0000000000156251&sum=160400 [00:18:14]StoreToDocumentArchive [00:18:14]shift 195 fd 70056 [00:18:14]save to /storage/0195/doc_00070056 [00:18:14]save last doc name /storage/0195/doc_00070056 to /storage/kkm_last_doc_name [00:18:14]save OK [00:18:14]Clear old archive folders... [00:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:18:14]tlvbuf is 01123D90 [00:18:14]SAM_PROTO_ClearQueue [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 09 00 00 [00:18:14]Write to MH i2c: E2 08 00 B6 32 80 09 00 00 00 00 00 00 5A [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 03 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 03 00 B6 32 00 90 00 5C [00:18:14]RAPDU: 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_ClearQueue done [00:18:14]KKMCreateOFDPacket [00:18:14]OFDProtocolAddRootSTLVToBuf [00:18:14]FM_MakeSignedData [00:18:14]FM_MakeSignedData [00:18:14]SAM_PROTO_SignData [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 0D 01 02 [00:18:14]Write to MH i2c: E2 08 00 B7 32 80 0D 01 02 00 00 00 00 62 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 03 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 03 00 B7 32 00 90 00 5D [00:18:14]RAPDU: 90 00 [00:18:14]wFMCommunicate OK [00:18:14]wFMCommunicate request_size=255 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F3 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 72 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 42 00 00 00 00 07 04 06 00 90 72 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 48 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 11 01 [00:18:14]Write to MH i2c: E2 02 01 B8 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F3 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 72 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 42 00 00 00 00 07 04 06 00 90 72 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 48 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 11 01 00 00 AA [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 03 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 03 00 B8 32 00 90 00 5E [00:18:15]RAPDU: 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=16 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 67 7A B7 70 A0 48 [00:18:15]Write to MH i2c: E2 13 00 B9 32 80 0D 02 02 0B 00 00 35 04 06 00 67 7A B7 70 A0 48 00 00 AA [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 03 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [00:18:15]RAPDU: 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 0D 03 02 [00:18:15]Write to MH i2c: E2 08 00 BA 32 80 0D 03 02 00 00 00 00 67 [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 0B 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 0B 00 BA 32 00 99 77 F8 FB A8 FF CC 99 90 00 77 [00:18:15]RAPDU: 99 77 F8 FB A8 FF CC 99 90 00 [00:18:15]wFMCommunicate OK [00:18:15]SAM_PROTO_SignData done [00:18:15]FM_MakeSignedData done [00:18:15]CreateOFDProtocolMessage [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 11 00 00 [00:18:15]Write to MH i2c: E2 08 00 BB 32 80 11 00 00 00 00 00 00 67 [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 17 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 17 00 BB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [00:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:18:15]wFMCommunicate OK [00:18:15]CreateOFDProtocolMessage done [00:18:15]OFDSenderStorePacket 70056 [00:18:15]StoreOFDPacket docnum=70056 [00:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 29 FE 0D 01 7B EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F3 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 72 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 42 00 00 00 00 07 04 06 00 90 72 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 48 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 11 01 00 35 04 06 00 67 7A B7 70 A0 48 99 77 F8 FB A8 FF CC 99 [00:18:15]CheckFolder [00:18:15]dirname=/storage/ofd_packets [00:18:15]CheckFolder done [00:18:15]ProducePacketName [00:18:15]name=ofd_packets/00070056 [00:18:15]NVStorageSaveData ofd_packets/00070056 [00:18:15]File name is /storage/ofd_packets/00070056 [00:18:15]Write 307 bytes [00:18:15]NVStorageSaveData done [00:18:15]OFDSenderStorePacket done [00:18:15]KKMCreateOFDPacket done [00:18:15]NVStorageSaveData kkm_last_timestamp [00:18:15]File name is /storage/kkm_last_timestamp [00:18:15]Write 4 bytes [00:18:15]NVStorageSaveData done [00:18:15]ExternCall_PrintAddStr [00:18:15]wPrintStart [00:18:15]Write to MH i2c: 01 00 00 BC 32 EE [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: 01 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: 01 07 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 FF 0F 03 [00:18:15]RasterBufferAndPrint [00:18:15]line Счет N : (1)2885822 [00:18:15]line ИНН: 02508201610067 [00:18:15]line Контрольно-Кассовый Чек [00:18:15]line ПРОДАЖА [00:18:15]line ТРК (МРК, ГНК) : 31 [00:18:15]line Товар: 2710194240 [00:18:15]line D-ENERGY Дт-К-2 [00:18:15]line 20.790 * 77.20 [00:18:15]line = 1604.99 [00:18:15]line НДС 12% НСП 1% [00:18:15]line > о реализуемом товаре [00:18:15]line ОКРУГЛЕНИЕ: -0.99 [00:18:15]line ИТОГО: 1604.00 [00:18:15]line Внесено: 5000.00 [00:18:15]line СДАЧА: 3396.00 [00:18:15]line НСП 1% : 14.20 [00:18:15]line НДС 12% : 170.44 [00:18:15]line Наличными: 1604.00 [00:18:15]line Безнал.: 0.00 [00:18:15]line Место: АЗС № 85 "Партнер Нефть" [00:18:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:18:15]line СНО: Общий режим [00:18:15]line Чек 4 22.10.2024 00:18 [00:18:15]line Смена: 195 ФФД: 1.0 [00:18:15]line ЗНМ: 0300000167 [00:18:15]line РНМ: 0000000000156251 [00:18:15]line Версия ККМ: v1.0 [00:18:15]line ФМ: 0000000000963346 [00:18:15]line ФД: 70056 [00:18:15]line ФПД: 113776761282632 [00:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001816&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70056&fm=113776761282632&tin=02508201610067®Number=0000000000156251&sum=160400 [00:18:15]OFD Sender: Processing packet 70056 [packets to send 18, broken 17] [00:18:15]ProducePacketName [00:18:15]name=ofd_packets/00070056 [00:18:15]OFD Sender: To server: pG, [00:18:15]CommunicateWithHost lk.salyk.kg:30040 [00:18:15]ConnectInit lk.salyk.kg [00:18:15]written 0, free lines is 4095 [00:18:15]Connected sock=10 [00:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 29 FE 0D 01 7B EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F3 72 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 72 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 42 00 00 00 00 07 04 06 00 90 72 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 48 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 11 01 00 35 04 06 00 67 7A B7 70 A0 48 99 77 F8 FB A8 FF CC 99 [00:18:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DA F9 47 00 8B 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 11 01 00 F4 03 04 00 EA 98 16 67 B6 04 01 00 00 9E 4D 65 A3 29 EF 38 5E [00:18:16]CommunicateWithHost err = 0 [00:18:16]CheckOFDResponse [00:18:16]1017 (14) - 77093643461234 [00:18:16]1041 (16) - 0000000000963346 [00:18:16]1040 (4) - 70056 [00:18:16]1012 (4) - 21.10.2024 18:09 [00:18:16]1206 (1) - 0 [00:18:16]OFD Sender: Remove packet 70056 [00:18:16]ProducePacketName [00:18:16]name=ofd_packets/00070056 [00:18:16]NVStorageDeleteData [00:18:16]Write to MH i2c: 01 00 00 E7 32 19 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: 01 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: 01 07 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: 01 07 00 E7 32 00 00 00 00 00 EC 0C 18 [00:18:16]RasterBufferAndPrint [00:18:16]line [00:18:16]line [00:18:16]line [00:18:16]line [00:18:16]line [00:18:16]written 0, free lines is 3314 [00:18:16]MH_Cut [00:18:16]Write to MH i2c: D1 01 00 EE 32 01 F2 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: D1 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: D1 01 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: D1 01 00 EE 32 00 F1 [00:18:16]Write to MH i2c: 01 00 00 EF 32 21 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]OFD Sender: No OFD packet to send [00:18:16]*** Cut start [00:18:16]*** Partial cut [00:18:16]*** CUTSNS_PIN = 1 [00:18:16]*** CUTSNS_PIN = 0 [00:18:17]*** Brake cut motor [00:18:17]Read from MH i2c: 01 [00:18:17]MH_I2C_Read... [00:18:17]*** Stop cut motor [00:18:17]*** Cut end [00:18:17]Read from MH i2c: 01 07 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 FF 0F 36 [00:18:17]process_action close_receipt done [00:18:17]requested_data is exist [00:18:17]produce_requested_data [00:18:17]requested_item fm.sn is exist - process it [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 11 00 00 [00:18:17]Write to MH i2c: E2 08 00 F0 32 80 11 00 00 00 00 00 00 9C [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 17 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 17 00 F0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [00:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:18:17]wFMCommunicate OK [00:18:17]requested_item fd.num is exist - process it [00:18:17]SAM_PROTO_GetFieldsCounters [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 13 00 00 [00:18:17]Write to MH i2c: E2 08 00 F1 32 80 13 00 00 00 00 00 00 9F [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 62 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 62 00 F1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:17]wFMCommunicate OK [00:18:17]SAM_PROTO_GetFieldsCounters done [00:18:17]requested_item shift.num is exist - process it [00:18:17]requested_item shift.opened is exist - process it [00:18:17]req_shift_opened [00:18:17]FM_GetShiftState [00:18:17]SAM_PROTO_GetShiftState [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 13 01 00 [00:18:17]Write to MH i2c: E2 08 00 F2 32 80 13 01 00 00 00 00 00 A1 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 0E 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 0E 00 F2 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 8F [00:18:17]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:18:17]wFMCommunicate OK [00:18:17]SAM_PROTO_GetShiftState done [00:18:17]FM_GetShiftState done [00:18:17]req_shift_opened done [00:18:17]requested_item shift.open_date is exist - process it [00:18:17]req_shift_open_date [00:18:17]req_shift_open_date done [00:18:17]produce_requested_data done [00:18:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70056,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:18:17]process_action_free close_receipt [00:18:17]json_value_free [00:18:17]json_value_free done [00:18:17]process_json_proto returns [00:18:17]Send response to host [00:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70056,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:18:17]free response buf [00:18:17]execute_script done [00:18:17]execute_script returns [00:18:17]free content buf [00:18:17]Sock 9.Close socket [00:18:17]Sock 9.Thread stoped [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:45]accept exits with 7 [00:19:45]New connection [00:19:45]New thread 3067170148 created [00:19:45]Thread 3067026788 joined [00:19:45]Waiting for new connection... [00:19:45] Sock 7.Parse request [00:19:45]Sock 7.Check first char [00:19:45]Sock 7.First char is OK [00:19:45]request: POST /json_proto HTTP/1.0 [00:19:45]Method: POST [00:19:45]URL: /json_proto [00:19:45]Method is POST - this is cgi request [00:19:45]url: /json_proto [00:19:45]query_string will be loaded in cgi processing [00:19:45]execute_cgi json_proto POST (null) [00:19:45]execute_cgi path=json_proto method=POST [00:19:45]POST find Content-Length [00:19:45]Host: 172.17.50.3:8080 [00:19:45]Content-Length: 686 [00:19:45]Content-Type: application/json [00:19:45] [00:19:45]POST finish read [00:19:45]Found Content-Length = 686 [00:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [00:19:45]execute_script... [00:19: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)2885824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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" ] } } [00:19:45]POST & json_proto [00:19:45]process_json_proto [00:19:45]json parsed OK: [00:19:45]protocol is kg_v1.0 [00:19:45]action value=close_receipt [00:19:45]process_action close_receipt [00:19:45]cmd_close_receipt [00:19:45]MH_GetDate [00:19:45]Write to MH i2c: F0 00 00 F3 32 14 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 09 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 09 00 F3 32 00 A3 EF 16 67 6B 98 1E 66 B3 [00:19:45]GetLastDocTimeStamp 1729556296 [00:19:45]current date 1729556387 [00:19:45]FM_GetShiftState [00:19:45]SAM_PROTO_GetShiftState [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 13 01 00 [00:19:45]Write to MH i2c: E2 08 00 F4 32 80 13 01 00 00 00 00 00 A3 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 0E 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 0E 00 F4 32 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 91 [00:19:45]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:19:45]wFMCommunicate OK [00:19:45]SAM_PROTO_GetShiftState done [00:19:45]FM_GetShiftState done [00:19:45]opened in 1729555832 [00:19:45]opened+sec_in_day 1729642232 [00:19:45]quantity*price = 100011 [00:19:45]sum+1 = 100013 [00:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 5 22.10.2024 00:19 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70057 ФПД: 124500432580451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70057&fm=124500432580451&tin=02508201610067®Number=0000000000156251&sum=100000 [00:19:45]StoreToDocumentArchive [00:19:45]shift 195 fd 70057 [00:19:45]save to /storage/0195/doc_00070057 [00:19:45]save last doc name /storage/0195/doc_00070057 to /storage/kkm_last_doc_name [00:19:45]save OK [00:19:45]Clear old archive folders... [00:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:19:45]tlvbuf is 0114E8B0 [00:19:45]SAM_PROTO_ClearQueue [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 09 00 00 [00:19:45]Write to MH i2c: E2 08 00 01 33 80 09 00 00 00 00 00 00 A6 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 03 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 03 00 01 33 00 90 00 A8 [00:19:45]RAPDU: 90 00 [00:19:45]wFMCommunicate OK [00:19:45]SAM_PROTO_ClearQueue done [00:19:45]KKMCreateOFDPacket [00:19:45]OFDProtocolAddRootSTLVToBuf [00:19:45]FM_MakeSignedData [00:19:45]FM_MakeSignedData [00:19:45]SAM_PROTO_SignData [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 0D 01 02 [00:19:45]Write to MH i2c: E2 08 00 02 33 80 0D 01 02 00 00 00 00 AE [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 02 33 00 90 00 A9 [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=255 [00:19:46]MH_SAM_APDU [00:19:46]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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A3 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 11 01 00 35 04 06 00 71 3B [00:19:46]Write to MH i2c: E2 02 01 03 33 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A3 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 11 01 00 35 04 06 00 71 3B 00 00 50 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 03 33 00 90 00 AA [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=9 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 02 02 04 84 0E EF 63 [00:19:46]Write to MH i2c: E2 0C 00 04 33 80 0D 02 02 04 00 84 0E EF 63 00 00 9D [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 03 02 [00:19:46]Write to MH i2c: E2 08 00 05 33 80 0D 03 02 00 00 00 00 B3 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0B 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0B 00 05 33 00 D8 EC 28 18 AC D4 15 3B 90 00 88 [00:19:46]RAPDU: D8 EC 28 18 AC D4 15 3B 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_SignData done [00:19:46]FM_MakeSignedData done [00:19:46]CreateOFDProtocolMessage [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 11 00 00 [00:19:46]Write to MH i2c: E2 08 00 06 33 80 11 00 00 00 00 00 00 B3 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 06 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [00:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:46]wFMCommunicate OK [00:19:46]CreateOFDProtocolMessage done [00:19:46]OFDSenderStorePacket 70057 [00:19:46]StoreOFDPacket docnum=70057 [00:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C1 DA 06 01 1D 4D 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A3 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 11 01 00 35 04 06 00 71 3B 84 0E EF 63 D8 EC 28 18 AC D4 15 3B [00:19:46]CheckFolder [00:19:46]dirname=/storage/ofd_packets [00:19:46]CheckFolder done [00:19:46]ProducePacketName [00:19:46]name=ofd_packets/00070057 [00:19:46]NVStorageSaveData ofd_packets/00070057 [00:19:46]File name is /storage/ofd_packets/00070057 [00:19:46]Write 300 bytes [00:19:46]NVStorageSaveData done [00:19:46]OFDSenderStorePacket done [00:19:46]KKMCreateOFDPacket done [00:19:46]NVStorageSaveData kkm_last_timestamp [00:19:46]File name is /storage/kkm_last_timestamp [00:19:46]Write 4 bytes [00:19:46]NVStorageSaveData done [00:19:46]ExternCall_PrintAddStr [00:19:46]wPrintStart [00:19:46]Write to MH i2c: 01 00 00 07 33 3A [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 07 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 07 00 07 33 00 00 00 00 00 FF 0F 4F [00:19:46]RasterBufferAndPrint [00:19:46]line Счет N : (1)2885824 [00:19:46]line ИНН: 02508201610067 [00:19:46]line Контрольно-Кассовый Чек [00:19:46]line ПРОДАЖА [00:19:46]line ТРК (МРК, ГНК) : 71 [00:19:46]line Товар: 2711129700 [00:19:46]line ГАЗ-К-3 [00:19:46]line 25.710 * 38.90 [00:19:46]line = 1000.12 [00:19:46]line НДС 12% НСП 1% [00:19:46]line > о реализуемом товаре [00:19:46]line ОКРУГЛЕНИЕ: -0.12 [00:19:46]line ИТОГО: 1000.00 [00:19:46]line Внесено: 1000.00 [00:19:46]line СДАЧА: 0.00 [00:19:46]line НСП 1% : 8.85 [00:19:46]line НДС 12% : 106.21 [00:19:46]line Наличными: 1000.00 [00:19:46]line Безнал.: 0.00 [00:19:46]line Место: АЗС № 85 "Партнер Нефть" [00:19:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:19:46]line СНО: Общий режим [00:19:46]line Чек 5 22.10.2024 00:19 [00:19:46]line Смена: 195 ФФД: 1.0 [00:19:46]line ЗНМ: 0300000167 [00:19:46]line РНМ: 0000000000156251 [00:19:46]line Версия ККМ: v1.0 [00:19:46]line ФМ: 0000000000963346 [00:19:46]line ФД: 70057 [00:19:46]line ФПД: 124500432580451 [00:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70057&fm=124500432580451&tin=02508201610067®Number=0000000000156251&sum=100000 [00:19:46]OFD Sender: Processing packet 70057 [packets to send 18, broken 17] [00:19:46]ProducePacketName [00:19:46]name=ofd_packets/00070057 [00:19:46]OFD Sender: To server: pG, [00:19:46]CommunicateWithHost lk.salyk.kg:30040 [00:19:46]ConnectInit lk.salyk.kg [00:19:46]written 0, free lines is 4095 [00:19:46]Connected sock=10 [00:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C1 DA 06 01 1D 4D 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 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A3 EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 11 01 00 35 04 06 00 71 3B 84 0E EF 63 D8 EC 28 18 AC D4 15 3B [00:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 32 12 47 00 59 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 11 01 00 F4 03 04 00 45 99 16 67 B6 04 01 00 00 84 B0 19 F2 BF 4C 2D 25 [00:19:47]CommunicateWithHost err = 0 [00:19:47]CheckOFDResponse [00:19:47]1017 (14) - 77093643461234 [00:19:47]1041 (16) - 0000000000963346 [00:19:47]1040 (4) - 70057 [00:19:47]1012 (4) - 21.10.2024 18:11 [00:19:47]1206 (1) - 0 [00:19:47]OFD Sender: Remove packet 70057 [00:19:47]ProducePacketName [00:19:47]name=ofd_packets/00070057 [00:19:47]NVStorageDeleteData [00:19:47]Write to MH i2c: 01 00 00 32 33 65 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 07 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 07 00 32 33 00 00 00 00 00 ED 0C 65 [00:19:47]RasterBufferAndPrint [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]written 0, free lines is 3316 [00:19:47]MH_Cut [00:19:47]Write to MH i2c: D1 01 00 39 33 01 3E [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 01 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 01 00 39 33 00 3D [00:19:47]Write to MH i2c: 01 00 00 3A 33 6D [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]OFD Sender: No OFD packet to send [00:19:47]*** Cut start [00:19:47]*** Partial cut [00:19:47]*** CUTSNS_PIN = 1 [00:19:48]*** CUTSNS_PIN = 0 [00:19:48]*** Brake cut motor [00:19:48]Read from MH i2c: 01 [00:19:48]MH_I2C_Read... [00:19:48]*** Stop cut motor [00:19:48]*** Cut end [00:19:48]Read from MH i2c: 01 07 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 FF 0F 82 [00:19:48]process_action close_receipt done [00:19:48]requested_data is exist [00:19:48]produce_requested_data [00:19:48]requested_item fm.sn is exist - process it [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 11 00 00 [00:19:48]Write to MH i2c: E2 08 00 3B 33 80 11 00 00 00 00 00 00 E8 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 3B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [00:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:48]wFMCommunicate OK [00:19:48]requested_item fd.num is exist - process it [00:19:48]SAM_PROTO_GetFieldsCounters [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 13 00 00 [00:19:48]Write to MH i2c: E2 08 00 3C 33 80 13 00 00 00 00 00 00 EB [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 62 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 62 00 3C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:48]wFMCommunicate OK [00:19:48]SAM_PROTO_GetFieldsCounters done [00:19:48]requested_item shift.num is exist - process it [00:19:48]requested_item shift.opened is exist - process it [00:19:48]req_shift_opened [00:19:48]FM_GetShiftState [00:19:48]SAM_PROTO_GetShiftState [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 13 01 00 [00:19:48]Write to MH i2c: E2 08 00 3D 33 80 13 01 00 00 00 00 00 ED [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0E 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0E 00 3D 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DB [00:19:48]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:19:48]wFMCommunicate OK [00:19:48]SAM_PROTO_GetShiftState done [00:19:48]FM_GetShiftState done [00:19:48]req_shift_opened done [00:19:48]requested_item shift.open_date is exist - process it [00:19:48]req_shift_open_date [00:19:48]req_shift_open_date done [00:19:48]produce_requested_data done [00:19:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70057,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:19:48]process_action_free close_receipt [00:19:48]json_value_free [00:19:48]json_value_free done [00:19:48]process_json_proto returns [00:19:48]Send response to host [00:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70057,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:19:48]free response buf [00:19:48]execute_script done [00:19:48]execute_script returns [00:19:48]free content buf [00:19:48]Sock 7.Close socket [00:19:48]Sock 7.Thread stoped [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:14]accept exits with 9 [00:21:14]New connection [00:21:14]New thread 3067026788 created [00:21:14]Thread 3067170148 joined [00:21:14]Waiting for new connection... [00:21:14] Sock 9.Parse request [00:21:14]Sock 9.Check first char [00:21:14]Sock 9.First char is OK [00:21:14]request: POST /json_proto HTTP/1.0 [00:21:14]Method: POST [00:21:14]URL: /json_proto [00:21:14]Method is POST - this is cgi request [00:21:14]url: /json_proto [00:21:14]query_string will be loaded in cgi processing [00:21:14]execute_cgi json_proto POST (null) [00:21:14]execute_cgi path=json_proto method=POST [00:21:14]POST find Content-Length [00:21:14]Host: 172.17.50.3:8080 [00:21:14]Content-Length: 689 [00:21:14]Content-Type: application/json [00:21:14] [00:21:14]POST finish read [00:21:14]Found Content-Length = 689 [00:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:14]execute_script... [00:21: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)2885823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:14]POST & json_proto [00:21:14]process_json_proto [00:21:14]json parsed OK: [00:21:14]protocol is kg_v1.0 [00:21:14]action value=close_receipt [00:21:14]process_action close_receipt [00:21:14]cmd_close_receipt [00:21:14]MH_GetDate [00:21:14]Write to MH i2c: F0 00 00 3E 33 60 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: F0 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: F0 09 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: F0 09 00 3E 33 00 FD EF 16 67 6B 98 1E 66 59 [00:21:14]GetLastDocTimeStamp 1729556387 [00:21:14]current date 1729556477 [00:21:14]FM_GetShiftState [00:21:14]SAM_PROTO_GetShiftState [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 01 00 [00:21:14]Write to MH i2c: E2 08 00 3F 33 80 13 01 00 00 00 00 00 EF [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 3F 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 DD [00:21:14]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetShiftState done [00:21:14]FM_GetShiftState done [00:21:14]opened in 1729555832 [00:21:14]opened+sec_in_day 1729642232 [00:21:14]quantity*price = 400050 [00:21:14]sum+1 = 400051 [00:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 6 22.10.2024 00:21 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70058 ФПД: 60935421967428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70058&fm=60935421967428&tin=02508201610067®Number=0000000000156251&sum=400000 [00:21:15]StoreToDocumentArchive [00:21:15]shift 195 fd 70058 [00:21:15]save to /storage/0195/doc_00070058 [00:21:15]save last doc name /storage/0195/doc_00070058 to /storage/kkm_last_doc_name [00:21:15]save OK [00:21:15]Clear old archive folders... [00:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:21:15]tlvbuf is 011ADA00 [00:21:15]SAM_PROTO_ClearQueue [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 09 00 00 [00:21:15]Write to MH i2c: E2 08 00 4C 33 80 09 00 00 00 00 00 00 F1 [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 03 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 03 00 4C 33 00 90 00 F3 [00:21:15]RAPDU: 90 00 [00:21:15]wFMCommunicate OK [00:21:15]SAM_PROTO_ClearQueue done [00:21:15]KKMCreateOFDPacket [00:21:15]OFDProtocolAddRootSTLVToBuf [00:21:15]FM_MakeSignedData [00:21:15]FM_MakeSignedData [00:21:15]SAM_PROTO_SignData [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 0D 01 02 [00:21:15]Write to MH i2c: E2 08 00 4D 33 80 0D 01 02 00 00 00 00 F9 [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 03 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [00:21:15]RAPDU: 90 00 [00:21:15]wFMCommunicate OK [00:21:15]wFMCommunicate request_size=255 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 FD EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 11 01 [00:21:15]Write to MH i2c: E2 02 01 4E 33 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 FD EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 11 01 00 00 5E [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 03 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [00:21:16]RAPDU: 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=16 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 37 6B A2 2E 3C 44 [00:21:16]Write to MH i2c: E2 13 00 4F 33 80 0D 02 02 0B 00 00 35 04 06 00 37 6B A2 2E 3C 44 00 00 43 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 03 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [00:21:16]RAPDU: 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 0D 03 02 [00:21:16]Write to MH i2c: E2 08 00 50 33 80 0D 03 02 00 00 00 00 FE [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 0B 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 0B 00 50 33 00 60 87 E8 91 F2 26 22 CF 90 00 68 [00:21:16]RAPDU: 60 87 E8 91 F2 26 22 CF 90 00 [00:21:16]wFMCommunicate OK [00:21:16]SAM_PROTO_SignData done [00:21:16]FM_MakeSignedData done [00:21:16]CreateOFDProtocolMessage [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 11 00 00 [00:21:16]Write to MH i2c: E2 08 00 51 33 80 11 00 00 00 00 00 00 FE [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 17 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 17 00 51 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [00:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:16]wFMCommunicate OK [00:21:16]CreateOFDProtocolMessage done [00:21:16]OFDSenderStorePacket 70058 [00:21:16]StoreOFDPacket docnum=70058 [00:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CE 52 0D 01 1E 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 FD EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 11 01 00 35 04 06 00 37 6B A2 2E 3C 44 60 87 E8 91 F2 26 22 CF [00:21:16]CheckFolder [00:21:16]dirname=/storage/ofd_packets [00:21:16]CheckFolder done [00:21:16]ProducePacketName [00:21:16]name=ofd_packets/00070058 [00:21:16]NVStorageSaveData ofd_packets/00070058 [00:21:16]File name is /storage/ofd_packets/00070058 [00:21:16]Write 307 bytes [00:21:16]NVStorageSaveData done [00:21:16]OFDSenderStorePacket done [00:21:16]KKMCreateOFDPacket done [00:21:16]NVStorageSaveData kkm_last_timestamp [00:21:16]File name is /storage/kkm_last_timestamp [00:21:16]Write 4 bytes [00:21:16]NVStorageSaveData done [00:21:16]ExternCall_PrintAddStr [00:21:16]wPrintStart [00:21:16]Write to MH i2c: 01 00 00 52 33 85 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: 01 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: 01 07 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: 01 07 00 52 33 00 00 00 00 00 FF 0F 9A [00:21:16]RasterBufferAndPrint [00:21:16]line Счет N : (1)2885823 [00:21:16]line ИНН: 02508201610067 [00:21:16]line Контрольно-Кассовый Чек [00:21:16]line ПРОДАЖА [00:21:16]line ТРК (МРК, ГНК) : 11 [00:21:16]line Товар: 2710194240 [00:21:16]line D-ENERGY Дт-К-2 [00:21:16]line 51.820 * 77.20 [00:21:16]line = 4000.50 [00:21:16]line НДС 12% НСП 1% [00:21:16]line > о реализуемом товаре [00:21:16]line ОКРУГЛЕНИЕ: -0.50 [00:21:16]line ИТОГО: 4000.00 [00:21:16]line Внесено: 4000.00 [00:21:16]line СДАЧА: 0.00 [00:21:16]line НСП 1% : 35.40 [00:21:16]line НДС 12% : 424.83 [00:21:16]line Наличными: 4000.00 [00:21:16]line Безнал.: 0.00 [00:21:16]line Место: АЗС № 85 "Партнер Нефть" [00:21:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:21:16]line СНО: Общий режим [00:21:16]line Чек 6 22.10.2024 00:21 [00:21:16]line Смена: 195 ФФД: 1.0 [00:21:16]line ЗНМ: 0300000167 [00:21:16]line РНМ: 0000000000156251 [00:21:16]line Версия ККМ: v1.0 [00:21:16]line ФМ: 0000000000963346 [00:21:16]line ФД: 70058 [00:21:16]line ФПД: 60935421967428 [00:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70058&fm=60935421967428&tin=02508201610067®Number=0000000000156251&sum=400000 [00:21:16]OFD Sender: Processing packet 70058 [packets to send 18, broken 17] [00:21:16]ProducePacketName [00:21:16]name=ofd_packets/00070058 [00:21:16]OFD Sender: To server: pG, [00:21:16]CommunicateWithHost lk.salyk.kg:30040 [00:21:16]ConnectInit lk.salyk.kg [00:21:16]written 0, free lines is 4095 [00:21:16]Connected sock=10 [00:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CE 52 0D 01 1E 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 FD EF 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 11 01 00 35 04 06 00 37 6B A2 2E 3C 44 60 87 E8 91 F2 26 22 CF [00:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E1 37 47 00 63 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 11 01 00 F4 03 04 00 9F 99 16 67 B6 04 01 00 00 A3 D1 8F 2D 8E 8B 5A 7E [00:21:16]CommunicateWithHost err = 0 [00:21:16]CheckOFDResponse [00:21:16]1017 (14) - 77093643461234 [00:21:16]1041 (16) - 0000000000963346 [00:21:16]1040 (4) - 70058 [00:21:16]1012 (4) - 21.10.2024 18:12 [00:21:16]1206 (1) - 0 [00:21:16]OFD Sender: Remove packet 70058 [00:21:16]ProducePacketName [00:21:16]name=ofd_packets/00070058 [00:21:16]NVStorageDeleteData [00:21:17]Write to MH i2c: 01 00 00 7D 33 B0 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 07 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: 01 07 00 7D 33 00 00 00 00 00 00 0D C4 [00:21:17]RasterBufferAndPrint [00:21:17]line [00:21:17]line [00:21:17]line [00:21:17]line [00:21:17]line [00:21:17]written 0, free lines is 3337 [00:21:17]MH_Cut [00:21:17]Write to MH i2c: D1 01 00 84 33 01 89 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: D1 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: D1 01 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: D1 01 00 84 33 00 88 [00:21:17]Write to MH i2c: 01 00 00 85 33 B8 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]OFD Sender: No OFD packet to send [00:21:17]*** Cut start [00:21:17]*** Partial cut [00:21:17]*** CUTSNS_PIN = 1 [00:21:17]*** CUTSNS_PIN = 0 [00:21:17]*** Brake cut motor [00:21:18]Read from MH i2c: 01 [00:21:18]MH_I2C_Read... [00:21:18]*** Stop cut motor [00:21:18]*** Cut end [00:21:18]Read from MH i2c: 01 07 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: 01 07 00 85 33 00 00 00 00 00 FF 0F CD [00:21:18]process_action close_receipt done [00:21:18]requested_data is exist [00:21:18]produce_requested_data [00:21:18]requested_item fm.sn is exist - process it [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 11 00 00 [00:21:18]Write to MH i2c: E2 08 00 86 33 80 11 00 00 00 00 00 00 33 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 17 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 17 00 86 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [00:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:18]wFMCommunicate OK [00:21:18]requested_item fd.num is exist - process it [00:21:18]SAM_PROTO_GetFieldsCounters [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 13 00 00 [00:21:18]Write to MH i2c: E2 08 00 87 33 80 13 00 00 00 00 00 00 36 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 62 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 62 00 87 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [00:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:18]wFMCommunicate OK [00:21:18]SAM_PROTO_GetFieldsCounters done [00:21:18]requested_item shift.num is exist - process it [00:21:18]requested_item shift.opened is exist - process it [00:21:18]req_shift_opened [00:21:18]FM_GetShiftState [00:21:18]SAM_PROTO_GetShiftState [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 13 01 00 [00:21:18]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 0E 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 26 [00:21:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:18]wFMCommunicate OK [00:21:18]SAM_PROTO_GetShiftState done [00:21:18]FM_GetShiftState done [00:21:18]req_shift_opened done [00:21:18]requested_item shift.open_date is exist - process it [00:21:18]req_shift_open_date [00:21:18]req_shift_open_date done [00:21:18]produce_requested_data done [00:21:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70058,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:21:18]process_action_free close_receipt [00:21:18]json_value_free [00:21:18]json_value_free done [00:21:18]process_json_proto returns [00:21:18]Send response to host [00:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70058,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:21:18]free response buf [00:21:18]execute_script done [00:21:18]execute_script returns [00:21:18]free content buf [00:21:18]Sock 9.Close socket [00:21:18]Sock 9.Thread stoped [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:29]accept exits with 7 [00:21:29]New connection [00:21:29]New thread 3067170148 created [00:21:29]Thread 3067026788 joined [00:21:29]Waiting for new connection... [00:21:29] Sock 7.Parse request [00:21:29]Sock 7.Check first char [00:21:29]Sock 7.First char is OK [00:21:29]request: POST /json_proto HTTP/1.0 [00:21:29]Method: POST [00:21:29]URL: /json_proto [00:21:29]Method is POST - this is cgi request [00:21:29]url: /json_proto [00:21:29]query_string will be loaded in cgi processing [00:21:29]execute_cgi json_proto POST (null) [00:21:29]execute_cgi path=json_proto method=POST [00:21:29]POST find Content-Length [00:21:29]Host: 172.17.50.3:8080 [00:21:29]Content-Length: 681 [00:21:29]Content-Type: application/json [00:21:29] [00:21:29]POST finish read [00:21:29]Found Content-Length = 681 [00:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [00:21:29]execute_script... [00:21: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)2885825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [00:21:29]POST & json_proto [00:21:29]process_json_proto [00:21:29]json parsed OK: [00:21:29]protocol is kg_v1.0 [00:21:29]action value=close_receipt [00:21:29]process_action close_receipt [00:21:29]cmd_close_receipt [00:21:29]MH_GetDate [00:21:29]Write to MH i2c: F0 00 00 89 33 AB [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: F0 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: F0 09 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: F0 09 00 89 33 00 0B F0 16 67 6B 98 1E 66 B3 [00:21:29]GetLastDocTimeStamp 1729556477 [00:21:29]current date 1729556491 [00:21:29]FM_GetShiftState [00:21:29]SAM_PROTO_GetShiftState [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 01 00 [00:21:29]Write to MH i2c: E2 08 00 8A 33 80 13 01 00 00 00 00 00 3A [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 0E 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 0E 00 8A 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 28 [00:21:29]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:29]wFMCommunicate OK [00:21:29]SAM_PROTO_GetShiftState done [00:21:29]FM_GetShiftState done [00:21:29]opened in 1729555832 [00:21:29]opened+sec_in_day 1729642232 [00:21:29]quantity*price = 30030 [00:21:29]sum+1 = 30032 [00:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 7 22.10.2024 00:21 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70059 ФПД: 227479138792445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70059&fm=227479138792445&tin=02508201610067®Number=0000000000156251&sum=30000 [00:21:30]StoreToDocumentArchive [00:21:30]shift 195 fd 70059 [00:21:30]save to /storage/0195/doc_00070059 [00:21:30]save last doc name /storage/0195/doc_00070059 to /storage/kkm_last_doc_name [00:21:30]save OK [00:21:30]Clear old archive folders... [00:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:21:30]tlvbuf is 01163BD0 [00:21:30]SAM_PROTO_ClearQueue [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 09 00 00 [00:21:30]Write to MH i2c: E2 08 00 97 33 80 09 00 00 00 00 00 00 3C [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [00:21:30]RAPDU: 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_ClearQueue done [00:21:30]KKMCreateOFDPacket [00:21:30]OFDProtocolAddRootSTLVToBuf [00:21:30]FM_MakeSignedData [00:21:30]FM_MakeSignedData [00:21:30]SAM_PROTO_SignData [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 0D 01 02 [00:21:30]Write to MH i2c: E2 08 00 98 33 80 0D 01 02 00 00 00 00 44 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [00:21:30]RAPDU: 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=255 [00:21:30]MH_SAM_APDU [00:21:30]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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 07 00 00 00 F4 03 04 00 0B F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 11 01 00 35 04 06 00 CE E4 [00:21:30]Write to MH i2c: E2 02 01 99 33 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 07 00 00 00 F4 03 04 00 0B F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 11 01 00 35 04 06 00 CE E4 00 00 C8 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 99 33 00 90 00 40 [00:21:30]RAPDU: 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=9 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 0D 02 02 04 1D 42 F3 FD [00:21:30]Write to MH i2c: E2 0C 00 9A 33 80 0D 02 02 04 00 1D 42 F3 FD 00 00 9E [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 03 00 9A 33 00 90 00 41 [00:21:30]RAPDU: 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 0D 03 02 [00:21:30]Write to MH i2c: E2 08 00 9B 33 80 0D 03 02 00 00 00 00 49 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0B 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0B 00 9B 33 00 4F 9B DF 2A 57 13 D9 3E 90 00 BE [00:21:30]RAPDU: 4F 9B DF 2A 57 13 D9 3E 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_SignData done [00:21:30]FM_MakeSignedData done [00:21:30]CreateOFDProtocolMessage [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 11 00 00 [00:21:30]Write to MH i2c: E2 08 00 9C 33 80 11 00 00 00 00 00 00 49 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 17 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 17 00 9C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [00:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:30]wFMCommunicate OK [00:21:30]CreateOFDProtocolMessage done [00:21:30]OFDSenderStorePacket 70059 [00:21:30]StoreOFDPacket docnum=70059 [00:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2C 75 06 01 25 83 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 07 00 00 00 F4 03 04 00 0B F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 11 01 00 35 04 06 00 CE E4 1D 42 F3 FD 4F 9B DF 2A 57 13 D9 3E [00:21:30]CheckFolder [00:21:30]dirname=/storage/ofd_packets [00:21:30]CheckFolder done [00:21:30]ProducePacketName [00:21:30]name=ofd_packets/00070059 [00:21:30]NVStorageSaveData ofd_packets/00070059 [00:21:30]File name is /storage/ofd_packets/00070059 [00:21:30]Write 300 bytes [00:21:30]NVStorageSaveData done [00:21:30]OFDSenderStorePacket done [00:21:30]KKMCreateOFDPacket done [00:21:30]NVStorageSaveData kkm_last_timestamp [00:21:30]File name is /storage/kkm_last_timestamp [00:21:30]Write 4 bytes [00:21:30]NVStorageSaveData done [00:21:30]ExternCall_PrintAddStr [00:21:30]wPrintStart [00:21:30]Write to MH i2c: 01 00 00 9D 33 D0 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: 01 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: 01 07 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [00:21:30]RasterBufferAndPrint [00:21:30]line Счет N : (1)2885825 [00:21:30]line ИНН: 02508201610067 [00:21:30]line Контрольно-Кассовый Чек [00:21:30]line ПРОДАЖА [00:21:30]line ТРК (МРК, ГНК) : 71 [00:21:30]line Товар: 2711129700 [00:21:30]line ГАЗ-К-3 [00:21:30]line 7.720 * 38.90 [00:21:30]line = 300.31 [00:21:30]line НДС 12% НСП 1% [00:21:30]line > о реализуемом товаре [00:21:30]line ОКРУГЛЕНИЕ: -0.31 [00:21:30]line ИТОГО: 300.00 [00:21:30]line Внесено: 300.00 [00:21:30]line СДАЧА: 0.00 [00:21:30]line НСП 1% : 2.66 [00:21:30]line НДС 12% : 31.89 [00:21:30]line Наличными: 300.00 [00:21:30]line Безнал.: 0.00 [00:21:30]line Место: АЗС № 85 "Партнер Нефть" [00:21:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:21:30]line СНО: Общий режим [00:21:30]line Чек 7 22.10.2024 00:21 [00:21:30]line Смена: 195 ФФД: 1.0 [00:21:30]line ЗНМ: 0300000167 [00:21:30]line РНМ: 0000000000156251 [00:21:30]line Версия ККМ: v1.0 [00:21:30]line ФМ: 0000000000963346 [00:21:30]line ФД: 70059 [00:21:30]line ФПД: 227479138792445 [00:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70059&fm=227479138792445&tin=02508201610067®Number=0000000000156251&sum=30000 [00:21:31]written 0, free lines is 4095 [00:21:31]OFD Sender: Processing packet 70059 [packets to send 18, broken 17] [00:21:31]ProducePacketName [00:21:31]name=ofd_packets/00070059 [00:21:31]OFD Sender: To server: pG, [00:21:31]CommunicateWithHost lk.salyk.kg:30040 [00:21:31]ConnectInit lk.salyk.kg [00:21:31]Connected sock=9 [00:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2C 75 06 01 25 83 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 07 00 00 00 F4 03 04 00 0B F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 11 01 00 35 04 06 00 CE E4 1D 42 F3 FD 4F 9B DF 2A 57 13 D9 3E [00:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 01 ED 47 00 90 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 39 36 33 33 34 36 10 04 04 00 AB 11 01 00 F4 03 04 00 AE 99 16 67 B6 04 01 00 00 80 CA 2D E3 53 E0 BD 73 [00:21:31]CommunicateWithHost err = 0 [00:21:31]CheckOFDResponse [00:21:31]1017 (14) - 77093643461234 [00:21:31]1041 (16) - 0000000000963346 [00:21:31]1040 (4) - 70059 [00:21:31]1012 (4) - 21.10.2024 18:13 [00:21:31]1206 (1) - 0 [00:21:31]OFD Sender: Remove packet 70059 [00:21:31]ProducePacketName [00:21:31]name=ofd_packets/00070059 [00:21:31]NVStorageDeleteData [00:21:31]Write to MH i2c: 01 00 00 C8 33 FB [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: 01 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: 01 07 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: 01 07 00 C8 33 00 00 00 00 00 00 0D 0F [00:21:31]RasterBufferAndPrint [00:21:31]line [00:21:31]line [00:21:31]line [00:21:31]line [00:21:31]line [00:21:31]written 0, free lines is 3337 [00:21:31]MH_Cut [00:21:31]Write to MH i2c: D1 01 00 CF 33 01 D4 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: D1 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: D1 01 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: D1 01 00 CF 33 00 D3 [00:21:31]Write to MH i2c: 01 00 00 D0 33 03 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:32]OFD Sender: No OFD packet to send [00:21:32]*** Cut start [00:21:32]*** Partial cut [00:21:32]*** CUTSNS_PIN = 1 [00:21:32]*** CUTSNS_PIN = 0 [00:21:32]*** Brake cut motor [00:21:33]Read from MH i2c: 01 [00:21:33]MH_I2C_Read... [00:21:33]*** Stop cut motor [00:21:33]*** Cut end [00:21:33]Read from MH i2c: 01 07 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: 01 07 00 D0 33 00 00 00 00 00 FF 0F 18 [00:21:33]process_action close_receipt done [00:21:33]requested_data is exist [00:21:33]produce_requested_data [00:21:33]requested_item fm.sn is exist - process it [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 11 00 00 [00:21:33]Write to MH i2c: E2 08 00 D1 33 80 11 00 00 00 00 00 00 7E [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 17 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 17 00 D1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [00:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:33]wFMCommunicate OK [00:21:33]requested_item fd.num is exist - process it [00:21:33]SAM_PROTO_GetFieldsCounters [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 13 00 00 [00:21:33]Write to MH i2c: E2 08 00 D2 33 80 13 00 00 00 00 00 00 81 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 62 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 62 00 D2 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [00:21:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_GetFieldsCounters done [00:21:33]requested_item shift.num is exist - process it [00:21:33]requested_item shift.opened is exist - process it [00:21:33]req_shift_opened [00:21:33]FM_GetShiftState [00:21:33]SAM_PROTO_GetShiftState [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 13 01 00 [00:21:33]Write to MH i2c: E2 08 00 D3 33 80 13 01 00 00 00 00 00 83 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 0E 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 0E 00 D3 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 71 [00:21:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_GetShiftState done [00:21:33]FM_GetShiftState done [00:21:33]req_shift_opened done [00:21:33]requested_item shift.open_date is exist - process it [00:21:33]req_shift_open_date [00:21:33]req_shift_open_date done [00:21:33]produce_requested_data done [00:21:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70059,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:21:33]process_action_free close_receipt [00:21:33]json_value_free [00:21:33]json_value_free done [00:21:33]process_json_proto returns [00:21:33]Send response to host [00:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70059,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:21:33]free response buf [00:21:33]execute_script done [00:21:33]execute_script returns [00:21:33]free content buf [00:21:33]Sock 7.Close socket [00:21:33]Sock 7.Thread stoped [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:46]accept exits with 10 [00:21:46]New connection [00:21:46]New thread 3067026788 created [00:21:46]Thread 3067170148 joined [00:21:46]Waiting for new connection... [00:21:46] Sock 10.Parse request [00:21:46]Sock 10.Check first char [00:21:46]Sock 10.First char is OK [00:21:46]request: POST /json_proto HTTP/1.0 [00:21:46]Method: POST [00:21:46]URL: /json_proto [00:21:46]Method is POST - this is cgi request [00:21:46]url: /json_proto [00:21:46]query_string will be loaded in cgi processing [00:21:46]execute_cgi json_proto POST (null) [00:21:46]execute_cgi path=json_proto method=POST [00:21:46]POST find Content-Length [00:21:46]Host: 172.17.50.3:8080 [00:21:46]Content-Length: 678 [00:21:46]Content-Type: application/json [00:21:46] [00:21:46]POST finish read [00:21:46]Found Content-Length = 678 [00:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885826", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:46]execute_script... [00:21: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)2885826", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:46]POST & json_proto [00:21:46]process_json_proto [00:21:46]json parsed OK: [00:21:46]protocol is kg_v1.0 [00:21:46]action value=close_receipt [00:21:46]process_action close_receipt [00:21:46]cmd_close_receipt [00:21:46]MH_GetDate [00:21:46]Write to MH i2c: F0 00 00 D4 33 F6 [00:21:46]Write i2c OK [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: F0 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: F0 09 00 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: F0 09 00 D4 33 00 1C F0 16 67 6B 98 1E 66 0F [00:21:46]GetLastDocTimeStamp 1729556491 [00:21:46]current date 1729556508 [00:21:46]FM_GetShiftState [00:21:46]SAM_PROTO_GetShiftState [00:21:46]wFMCommunicate request_size=4 [00:21:46]MH_SAM_APDU [00:21:46]CAPDU: 80 13 01 00 [00:21:46]Write to MH i2c: E2 08 00 D5 33 80 13 01 00 00 00 00 00 85 [00:21:46]Write i2c OK [00:21:46]MH_I2C_Read... [00:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:46]Read from MH i2c: E2 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 0E 00 [00:21:46]MH_I2C_Read... [00:21:46]Read from MH i2c: E2 0E 00 D5 33 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 73 [00:21:46]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:46]wFMCommunicate OK [00:21:46]SAM_PROTO_GetShiftState done [00:21:46]FM_GetShiftState done [00:21:46]opened in 1729555832 [00:21:46]opened+sec_in_day 1729642232 [00:21:46]quantity*price = 50041 [00:21:46]sum+1 = 50042 [00:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 8 22.10.2024 00:21 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70060 ФПД: 152771866622921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002148&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70060&fm=152771866622921&tin=02508201610067®Number=0000000000156251&sum=50000 [00:21:47]StoreToDocumentArchive [00:21:47]shift 195 fd 70060 [00:21:47]save to /storage/0195/doc_00070060 [00:21:47]save last doc name /storage/0195/doc_00070060 to /storage/kkm_last_doc_name [00:21:47]save OK [00:21:47]Clear old archive folders... [00:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:21:47]tlvbuf is 011F9790 [00:21:47]SAM_PROTO_ClearQueue [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 09 00 00 [00:21:47]Write to MH i2c: E2 08 00 E2 33 80 09 00 00 00 00 00 00 87 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 E2 33 00 90 00 89 [00:21:47]RAPDU: 90 00 [00:21:47]wFMCommunicate OK [00:21:47]SAM_PROTO_ClearQueue done [00:21:47]KKMCreateOFDPacket [00:21:47]OFDProtocolAddRootSTLVToBuf [00:21:47]FM_MakeSignedData [00:21:47]FM_MakeSignedData [00:21:47]SAM_PROTO_SignData [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 0D 01 02 [00:21:47]Write to MH i2c: E2 08 00 E3 33 80 0D 01 02 00 00 00 00 8F [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 E3 33 00 90 00 8A [00:21:47]RAPDU: 90 00 [00:21:47]wFMCommunicate OK [00:21:47]wFMCommunicate request_size=255 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1C F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 11 01 00 35 04 06 00 8A [00:21:47]Write to MH i2c: E2 02 01 E4 33 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1C F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 11 01 00 35 04 06 00 8A 00 00 B4 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 E4 33 00 90 00 8B [00:21:47]RAPDU: 90 00 [00:21:47]wFMCommunicate OK [00:21:47]wFMCommunicate request_size=10 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 0D 02 02 05 F1 F8 D7 7B C9 [00:21:47]Write to MH i2c: E2 0D 00 E5 33 80 0D 02 02 05 00 F1 F8 D7 7B C9 00 00 A0 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 03 00 E5 33 00 90 00 8C [00:21:47]RAPDU: 90 00 [00:21:47]wFMCommunicate OK [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 0D 03 02 [00:21:47]Write to MH i2c: E2 08 00 E6 33 80 0D 03 02 00 00 00 00 94 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 0B 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 0B 00 E6 33 00 B4 3C E6 DE CC 11 1E D6 90 00 1A [00:21:47]RAPDU: B4 3C E6 DE CC 11 1E D6 90 00 [00:21:47]wFMCommunicate OK [00:21:47]SAM_PROTO_SignData done [00:21:47]FM_MakeSignedData done [00:21:47]CreateOFDProtocolMessage [00:21:47]wFMCommunicate request_size=4 [00:21:47]MH_SAM_APDU [00:21:47]CAPDU: 80 11 00 00 [00:21:47]Write to MH i2c: E2 08 00 E7 33 80 11 00 00 00 00 00 00 94 [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:47]Read from MH i2c: E2 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 17 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: E2 17 00 E7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [00:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:47]wFMCommunicate OK [00:21:47]CreateOFDProtocolMessage done [00:21:47]OFDSenderStorePacket 70060 [00:21:47]StoreOFDPacket docnum=70060 [00:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 12 07 01 2A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1C F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 11 01 00 35 04 06 00 8A F1 F8 D7 7B C9 B4 3C E6 DE CC 11 1E D6 [00:21:47]CheckFolder [00:21:47]dirname=/storage/ofd_packets [00:21:47]CheckFolder done [00:21:47]ProducePacketName [00:21:47]name=ofd_packets/00070060 [00:21:47]NVStorageSaveData ofd_packets/00070060 [00:21:47]File name is /storage/ofd_packets/00070060 [00:21:47]Write 301 bytes [00:21:47]NVStorageSaveData done [00:21:47]OFDSenderStorePacket done [00:21:47]KKMCreateOFDPacket done [00:21:47]NVStorageSaveData kkm_last_timestamp [00:21:47]File name is /storage/kkm_last_timestamp [00:21:47]Write 4 bytes [00:21:47]NVStorageSaveData done [00:21:47]OFD Sender: Processing packet 70060 [packets to send 18, broken 17] [00:21:47]ProducePacketName [00:21:47]name=ofd_packets/00070060 [00:21:47]OFD Sender: To server: pG, [00:21:47]CommunicateWithHost lk.salyk.kg:30040 [00:21:47]ConnectInit lk.salyk.kg [00:21:47]ExternCall_PrintAddStr [00:21:47]wPrintStart [00:21:47]Write to MH i2c: 01 00 00 E8 33 1B [00:21:47]Write i2c OK [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: 01 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: 01 07 00 [00:21:47]MH_I2C_Read... [00:21:47]Read from MH i2c: 01 07 00 E8 33 00 00 00 00 00 FF 0F 30 [00:21:47]RasterBufferAndPrint [00:21:47]line Счет N : (1)2885826 [00:21:47]line ИНН: 02508201610067 [00:21:47]line Контрольно-Кассовый Чек [00:21:47]line ПРОДАЖА [00:21:47]line ТРК (МРК, ГНК) : 42 [00:21:47]line Товар: 2710124130 [00:21:47]line Аи-92-К-5 [00:21:47]line 7.480 * 66.90 [00:21:47]line = 500.41 [00:21:47]line НДС 12% НСП 1% [00:21:47]line > о реализуемом товаре [00:21:47]line ОКРУГЛЕНИЕ: -0.41 [00:21:47]line ИТОГО: 500.00 [00:21:47]line Внесено: 500.00 [00:21:47]line СДАЧА: 0.00 [00:21:47]line НСП 1% : 4.43 [00:21:47]line НДС 12% : 53.14 [00:21:47]line Наличными: 500.00 [00:21:47]line Безнал.: 0.00 [00:21:47]line Место: АЗС № 85 "Партнер Нефть" [00:21:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:21:47]line СНО: Общий режим [00:21:47]line Чек 8 22.10.2024 00:21 [00:21:47]line Смена: 195 ФФД: 1.0 [00:21:47]line ЗНМ: 0300000167 [00:21:47]line РНМ: 0000000000156251 [00:21:47]line Версия ККМ: v1.0 [00:21:47]line ФМ: 0000000000963346 [00:21:47]line ФД: 70060 [00:21:47]line ФПД: 152771866622921 [00:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002148&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70060&fm=152771866622921&tin=02508201610067®Number=0000000000156251&sum=50000 [00:21:48]Connected sock=11 [00:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E0 12 07 01 2A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 1C F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 11 01 00 35 04 06 00 8A F1 F8 D7 7B C9 B4 3C E6 DE CC 11 1E D6 [00:21:48]written 0, free lines is 4095 [00:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 5B 47 00 DE F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 11 01 00 F4 03 04 00 BF 99 16 67 B6 04 01 00 00 FF 71 8F DE D9 C9 A8 B4 [00:21:48]CommunicateWithHost err = 0 [00:21:48]CheckOFDResponse [00:21:48]1017 (14) - 77093643461234 [00:21:48]1041 (16) - 0000000000963346 [00:21:48]1040 (4) - 70060 [00:21:48]1012 (4) - 21.10.2024 18:13 [00:21:48]1206 (1) - 0 [00:21:48]OFD Sender: Remove packet 70060 [00:21:48]ProducePacketName [00:21:48]name=ofd_packets/00070060 [00:21:48]NVStorageDeleteData [00:21:48]Write to MH i2c: 01 00 00 13 34 47 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: 01 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: 01 07 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 D8 0C 32 [00:21:48]RasterBufferAndPrint [00:21:48]line [00:21:48]line [00:21:48]line [00:21:48]line [00:21:48]line [00:21:48]written 0, free lines is 3295 [00:21:48]MH_Cut [00:21:48]Write to MH i2c: D1 01 00 1A 34 01 20 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: D1 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: D1 01 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: D1 01 00 1A 34 00 1F [00:21:48]Write to MH i2c: 01 00 00 1B 34 4F [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]OFD Sender: No OFD packet to send [00:21:49]*** Cut start [00:21:49]*** Partial cut [00:21:49]*** CUTSNS_PIN = 1 [00:21:49]*** CUTSNS_PIN = 0 [00:21:49]*** Brake cut motor [00:21:50]Read from MH i2c: 01 [00:21:50]MH_I2C_Read... [00:21:50]*** Stop cut motor [00:21:50]*** Cut end [00:21:50]Read from MH i2c: 01 07 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 1B 34 00 00 00 00 00 FF 0F 64 [00:21:50]process_action close_receipt done [00:21:50]requested_data is exist [00:21:50]produce_requested_data [00:21:50]requested_item fm.sn is exist - process it [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 11 00 00 [00:21:50]Write to MH i2c: E2 08 00 1C 34 80 11 00 00 00 00 00 00 CA [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 17 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 17 00 1C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [00:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:21:50]wFMCommunicate OK [00:21:50]requested_item fd.num is exist - process it [00:21:50]SAM_PROTO_GetFieldsCounters [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 13 00 00 [00:21:50]Write to MH i2c: E2 08 00 1D 34 80 13 00 00 00 00 00 00 CD [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 62 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 62 00 1D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [00:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:50]wFMCommunicate OK [00:21:50]SAM_PROTO_GetFieldsCounters done [00:21:50]requested_item shift.num is exist - process it [00:21:50]requested_item shift.opened is exist - process it [00:21:50]req_shift_opened [00:21:50]FM_GetShiftState [00:21:50]SAM_PROTO_GetShiftState [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 13 01 00 [00:21:50]Write to MH i2c: E2 08 00 1E 34 80 13 01 00 00 00 00 00 CF [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 0E 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 0E 00 1E 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BD [00:21:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:21:50]wFMCommunicate OK [00:21:50]SAM_PROTO_GetShiftState done [00:21:50]FM_GetShiftState done [00:21:50]req_shift_opened done [00:21:50]requested_item shift.open_date is exist - process it [00:21:50]req_shift_open_date [00:21:50]req_shift_open_date done [00:21:50]produce_requested_data done [00:21:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70060,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:21:50]process_action_free close_receipt [00:21:50]json_value_free [00:21:50]json_value_free done [00:21:50]process_json_proto returns [00:21:50]Send response to host [00:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70060,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:21:50]free response buf [00:21:50]execute_script done [00:21:50]execute_script returns [00:21:50]free content buf [00:21:50]Sock 10.Close socket [00:21:50]Sock 10.Thread stoped [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:30]accept exits with 7 [00:25:30]New connection [00:25:30]New thread 3067170148 created [00:25:30]Thread 3067026788 joined [00:25:30]Waiting for new connection... [00:25:30] Sock 7.Parse request [00:25:30]Sock 7.Check first char [00:25:30]Sock 7.First char is OK [00:25:30]request: POST /json_proto HTTP/1.0 [00:25:30]Method: POST [00:25:30]URL: /json_proto [00:25:30]Method is POST - this is cgi request [00:25:30]url: /json_proto [00:25:30]query_string will be loaded in cgi processing [00:25:30]execute_cgi json_proto POST (null) [00:25:30]execute_cgi path=json_proto method=POST [00:25:30]POST find Content-Length [00:25:30]Host: 172.17.50.3:8080 [00:25:30]Content-Length: 678 [00:25:30]Content-Type: application/json [00:25:30] [00:25:30]POST finish read [00:25:30]Found Content-Length = 678 [00:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885827", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:30]execute_script... [00:25: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)2885827", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:30]POST & json_proto [00:25:30]process_json_proto [00:25:30]json parsed OK: [00:25:30]protocol is kg_v1.0 [00:25:30]action value=close_receipt [00:25:30]process_action close_receipt [00:25:30]cmd_close_receipt [00:25:30]MH_GetDate [00:25:30]Write to MH i2c: F0 00 00 1F 34 42 [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: F0 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: F0 09 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: F0 09 00 1F 34 00 FC F0 16 67 6B 98 1E 66 3B [00:25:30]GetLastDocTimeStamp 1729556508 [00:25:30]current date 1729556732 [00:25:30]FM_GetShiftState [00:25:30]SAM_PROTO_GetShiftState [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 01 00 [00:25:30]Write to MH i2c: E2 08 00 20 34 80 13 01 00 00 00 00 00 D1 [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 20 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 BF [00:25:30]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetShiftState done [00:25:30]FM_GetShiftState done [00:25:30]opened in 1729555832 [00:25:30]opened+sec_in_day 1729642232 [00:25:30]quantity*price = 50041 [00:25:30]sum+1 = 50042 [00:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 9 22.10.2024 00:25 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70061 ФПД: 151275270899354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70061&fm=151275270899354&tin=02508201610067®Number=0000000000156251&sum=50000 [00:25:31]StoreToDocumentArchive [00:25:31]shift 195 fd 70061 [00:25:31]save to /storage/0195/doc_00070061 [00:25:31]save last doc name /storage/0195/doc_00070061 to /storage/kkm_last_doc_name [00:25:31]save OK [00:25:31]Clear old archive folders... [00:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:31]tlvbuf is 01178570 [00:25:31]SAM_PROTO_ClearQueue [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 09 00 00 [00:25:31]Write to MH i2c: E2 08 00 2D 34 80 09 00 00 00 00 00 00 D3 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 2D 34 00 90 00 D5 [00:25:31]RAPDU: 90 00 [00:25:31]wFMCommunicate OK [00:25:31]SAM_PROTO_ClearQueue done [00:25:31]KKMCreateOFDPacket [00:25:31]OFDProtocolAddRootSTLVToBuf [00:25:31]FM_MakeSignedData [00:25:31]FM_MakeSignedData [00:25:31]SAM_PROTO_SignData [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 0D 01 02 [00:25:31]Write to MH i2c: E2 08 00 2E 34 80 0D 01 02 00 00 00 00 DB [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 2E 34 00 90 00 D6 [00:25:31]RAPDU: 90 00 [00:25:31]wFMCommunicate OK [00:25:31]wFMCommunicate request_size=255 [00:25:31]MH_SAM_APDU [00:25:31]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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FC F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 11 01 00 35 04 06 00 89 [00:25:31]Write to MH i2c: E2 02 01 2F 34 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FC F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 11 01 00 35 04 06 00 89 00 00 E1 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 2F 34 00 90 00 D7 [00:25:31]RAPDU: 90 00 [00:25:31]wFMCommunicate OK [00:25:31]wFMCommunicate request_size=10 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 0D 02 02 05 95 84 C9 06 9A [00:25:31]Write to MH i2c: E2 0D 00 30 34 80 0D 02 02 05 00 95 84 C9 06 9A 00 00 6A [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 03 00 30 34 00 90 00 D8 [00:25:31]RAPDU: 90 00 [00:25:31]wFMCommunicate OK [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 0D 03 02 [00:25:31]Write to MH i2c: E2 08 00 31 34 80 0D 03 02 00 00 00 00 E0 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 0B 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 0B 00 31 34 00 17 2A C2 B3 C7 2A B7 FE 90 00 3D [00:25:31]RAPDU: 17 2A C2 B3 C7 2A B7 FE 90 00 [00:25:31]wFMCommunicate OK [00:25:31]SAM_PROTO_SignData done [00:25:31]FM_MakeSignedData done [00:25:31]CreateOFDProtocolMessage [00:25:31]wFMCommunicate request_size=4 [00:25:31]MH_SAM_APDU [00:25:31]CAPDU: 80 11 00 00 [00:25:31]Write to MH i2c: E2 08 00 32 34 80 11 00 00 00 00 00 00 E0 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 17 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 17 00 32 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [00:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:31]wFMCommunicate OK [00:25:31]CreateOFDProtocolMessage done [00:25:31]OFDSenderStorePacket 70061 [00:25:31]StoreOFDPacket docnum=70061 [00:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 2E 07 01 12 6C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FC F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 11 01 00 35 04 06 00 89 95 84 C9 06 9A 17 2A C2 B3 C7 2A B7 FE [00:25:31]CheckFolder [00:25:31]dirname=/storage/ofd_packets [00:25:31]CheckFolder done [00:25:31]ProducePacketName [00:25:31]name=ofd_packets/00070061 [00:25:31]NVStorageSaveData ofd_packets/00070061 [00:25:31]File name is /storage/ofd_packets/00070061 [00:25:31]Write 301 bytes [00:25:31]NVStorageSaveData done [00:25:31]OFDSenderStorePacket done [00:25:31]KKMCreateOFDPacket done [00:25:31]NVStorageSaveData kkm_last_timestamp [00:25:31]File name is /storage/kkm_last_timestamp [00:25:31]Write 4 bytes [00:25:31]NVStorageSaveData done [00:25:31]ExternCall_PrintAddStr [00:25:31]wPrintStart [00:25:31]Write to MH i2c: 01 00 00 33 34 67 [00:25:31]Write i2c OK [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: 01 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: 01 07 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: 01 07 00 33 34 00 00 00 00 00 FF 0F 7C [00:25:31]RasterBufferAndPrint [00:25:31]line Счет N : (1)2885827 [00:25:31]line ИНН: 02508201610067 [00:25:31]line Контрольно-Кассовый Чек [00:25:31]line ПРОДАЖА [00:25:31]line ТРК (МРК, ГНК) : 42 [00:25:31]line Товар: 2710124130 [00:25:31]line Аи-92-К-5 [00:25:31]line 7.480 * 66.90 [00:25:31]line = 500.41 [00:25:31]line НДС 12% НСП 1% [00:25:31]line > о реализуемом товаре [00:25:31]line ОКРУГЛЕНИЕ: -0.41 [00:25:31]line ИТОГО: 500.00 [00:25:31]line Внесено: 500.00 [00:25:31]line СДАЧА: 0.00 [00:25:31]line НСП 1% : 4.43 [00:25:31]line НДС 12% : 53.14 [00:25:31]line Наличными: 500.00 [00:25:31]line Безнал.: 0.00 [00:25:31]line Место: АЗС № 85 "Партнер Нефть" [00:25:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:25:31]line СНО: Общий режим [00:25:31]line Чек 9 22.10.2024 00:25 [00:25:31]line Смена: 195 ФФД: 1.0 [00:25:31]line ЗНМ: 0300000167 [00:25:31]line РНМ: 0000000000156251 [00:25:31]line Версия ККМ: v1.0 [00:25:31]line ФМ: 0000000000963346 [00:25:31]line ФД: 70061 [00:25:31]line ФПД: 151275270899354 [00:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70061&fm=151275270899354&tin=02508201610067®Number=0000000000156251&sum=50000 [00:25:32]OFD Sender: Processing packet 70061 [packets to send 18, broken 17] [00:25:32]ProducePacketName [00:25:32]name=ofd_packets/00070061 [00:25:32]OFD Sender: To server: pG, [00:25:32]CommunicateWithHost lk.salyk.kg:30040 [00:25:32]ConnectInit lk.salyk.kg [00:25:32]written 0, free lines is 4095 [00:25:32]Connected sock=10 [00:25:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 2E 07 01 12 6C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FC F0 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 11 01 00 35 04 06 00 89 95 84 C9 06 9A 17 2A C2 B3 C7 2A B7 FE [00:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 90 F4 47 00 6B 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 11 01 00 F4 03 04 00 9E 9A 16 67 B6 04 01 00 00 0F DC 58 D2 B1 70 45 BF [00:25:32]CommunicateWithHost err = 0 [00:25:32]CheckOFDResponse [00:25:32]1017 (14) - 77093643461234 [00:25:32]1041 (16) - 0000000000963346 [00:25:32]1040 (4) - 70061 [00:25:32]1012 (4) - 21.10.2024 18:17 [00:25:32]1206 (1) - 0 [00:25:32]OFD Sender: Remove packet 70061 [00:25:32]ProducePacketName [00:25:32]name=ofd_packets/00070061 [00:25:32]NVStorageDeleteData [00:25:32]Write to MH i2c: 01 00 00 5E 34 92 [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: 01 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: 01 07 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: 01 07 00 5E 34 00 00 00 00 00 E4 0C 89 [00:25:32]RasterBufferAndPrint [00:25:32]line [00:25:32]line [00:25:32]line [00:25:32]line [00:25:32]line [00:25:32]written 0, free lines is 3306 [00:25:32]MH_Cut [00:25:32]Write to MH i2c: D1 01 00 65 34 01 6B [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: D1 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: D1 01 00 [00:25:32]MH_I2C_Read... [00:25:32]Read from MH i2c: D1 01 00 65 34 00 6A [00:25:32]Write to MH i2c: 01 00 00 66 34 9A [00:25:32]Write i2c OK [00:25:32]MH_I2C_Read... [00:25:32]OFD Sender: No OFD packet to send [00:25:33]*** Cut start [00:25:33]*** Partial cut [00:25:33]*** CUTSNS_PIN = 1 [00:25:33]*** CUTSNS_PIN = 0 [00:25:33]*** Brake cut motor [00:25:33]Read from MH i2c: 01 [00:25:33]MH_I2C_Read... [00:25:33]*** Stop cut motor [00:25:33]*** Cut end [00:25:33]Read from MH i2c: 01 07 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: 01 07 00 66 34 00 00 00 00 00 FF 0F AF [00:25:33]process_action close_receipt done [00:25:33]requested_data is exist [00:25:33]produce_requested_data [00:25:33]requested_item fm.sn is exist - process it [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 11 00 00 [00:25:33]Write to MH i2c: E2 08 00 67 34 80 11 00 00 00 00 00 00 15 [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:33]Read from MH i2c: E2 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 17 00 [00:25:33]MH_I2C_Read... [00:25:33]Read from MH i2c: E2 17 00 67 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [00:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:33]wFMCommunicate OK [00:25:33]requested_item fd.num is exist - process it [00:25:33]SAM_PROTO_GetFieldsCounters [00:25:33]wFMCommunicate request_size=4 [00:25:33]MH_SAM_APDU [00:25:33]CAPDU: 80 13 00 00 [00:25:33]Write to MH i2c: E2 08 00 68 34 80 13 00 00 00 00 00 00 18 [00:25:33]Write i2c OK [00:25:33]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 62 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 62 00 68 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [00:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:34]wFMCommunicate OK [00:25:34]SAM_PROTO_GetFieldsCounters done [00:25:34]requested_item shift.num is exist - process it [00:25:34]requested_item shift.opened is exist - process it [00:25:34]req_shift_opened [00:25:34]FM_GetShiftState [00:25:34]SAM_PROTO_GetShiftState [00:25:34]wFMCommunicate request_size=4 [00:25:34]MH_SAM_APDU [00:25:34]CAPDU: 80 13 01 00 [00:25:34]Write to MH i2c: E2 08 00 69 34 80 13 01 00 00 00 00 00 1A [00:25:34]Write i2c OK [00:25:34]MH_I2C_Read... [00:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:34]Read from MH i2c: E2 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 0E 00 [00:25:34]MH_I2C_Read... [00:25:34]Read from MH i2c: E2 0E 00 69 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 08 [00:25:34]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:25:34]wFMCommunicate OK [00:25:34]SAM_PROTO_GetShiftState done [00:25:34]FM_GetShiftState done [00:25:34]req_shift_opened done [00:25:34]requested_item shift.open_date is exist - process it [00:25:34]req_shift_open_date [00:25:34]req_shift_open_date done [00:25:34]produce_requested_data done [00:25:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70061,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:25:34]process_action_free close_receipt [00:25:34]json_value_free [00:25:34]json_value_free done [00:25:34]process_json_proto returns [00:25:34]Send response to host [00:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70061,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:25:34]free response buf [00:25:34]execute_script done [00:25:34]execute_script returns [00:25:34]free content buf [00:25:34]Sock 7.Close socket [00:25:34]Sock 7.Thread stoped [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:33]accept exits with 9 [00:30:33]New connection [00:30:33]New thread 3067026788 created [00:30:33]Thread 3067170148 joined [00:30:33]Waiting for new connection... [00:30:33] Sock 9.Parse request [00:30:33]Sock 9.Check first char [00:30:33]Sock 9.First char is OK [00:30:33]request: POST /json_proto HTTP/1.0 [00:30:33]Method: POST [00:30:33]URL: /json_proto [00:30:33]Method is POST - this is cgi request [00:30:33]url: /json_proto [00:30:33]query_string will be loaded in cgi processing [00:30:33]execute_cgi json_proto POST (null) [00:30:33]execute_cgi path=json_proto method=POST [00:30:33]POST find Content-Length [00:30:33]Host: 172.17.50.3:8080 [00:30:33]Content-Length: 773 [00:30:33]Content-Type: application/json [00:30:33] [00:30:33]POST finish read [00:30:33]Found Content-Length = 773 [00:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:33]execute_script... [00:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:33]POST & json_proto [00:30:33]process_json_proto [00:30:33]json parsed OK: [00:30:33]protocol is kg_v1.0 [00:30:33]action value=close_receipt [00:30:33]process_action close_receipt [00:30:33]cmd_close_receipt [00:30:33]MH_GetDate [00:30:33]Write to MH i2c: F0 00 00 6A 34 8D [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: F0 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: F0 09 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: F0 09 00 6A 34 00 2C F2 16 67 6B 98 1E 66 B8 [00:30:33]GetLastDocTimeStamp 1729556732 [00:30:33]current date 1729557036 [00:30:33]FM_GetShiftState [00:30:33]SAM_PROTO_GetShiftState [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 01 00 [00:30:33]Write to MH i2c: E2 08 00 6B 34 80 13 01 00 00 00 00 00 1C [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 6B 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 0A [00:30:33]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetShiftState done [00:30:33]FM_GetShiftState done [00:30:33]opened in 1729555832 [00:30:33]opened+sec_in_day 1729642232 [00:30:33]quantity*price = 200023 [00:30:33]sum+1 = 200025 [00:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.24 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.24 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 10 22.10.2024 00:30 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70062 ФПД: 199016101559512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003036&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70062&fm=199016101559512&tin=02508201610067®Number=0000000000156251&sum=200024 [00:30:35]StoreToDocumentArchive [00:30:35]shift 195 fd 70062 [00:30:35]save to /storage/0195/doc_00070062 [00:30:35]save last doc name /storage/0195/doc_00070062 to /storage/kkm_last_doc_name [00:30:35]save OK [00:30:35]Clear old archive folders... [00:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:30:35]tlvbuf is 0112D3F0 [00:30:35]SAM_PROTO_ClearQueue [00:30:35]wFMCommunicate request_size=4 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 09 00 00 [00:30:35]Write to MH i2c: E2 08 00 78 34 80 09 00 00 00 00 00 00 1E [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [00:30:35]RAPDU: 90 00 [00:30:35]wFMCommunicate OK [00:30:35]SAM_PROTO_ClearQueue done [00:30:35]KKMCreateOFDPacket [00:30:35]OFDProtocolAddRootSTLVToBuf [00:30:35]FM_MakeSignedData [00:30:35]FM_MakeSignedData [00:30:35]SAM_PROTO_SignData [00:30:35]wFMCommunicate request_size=4 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 0D 01 02 [00:30:35]Write to MH i2c: E2 08 00 79 34 80 0D 01 02 00 00 00 00 26 [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [00:30:35]RAPDU: 90 00 [00:30:35]wFMCommunicate OK [00:30:35]wFMCommunicate request_size=255 [00:30:35]MH_SAM_APDU [00:30:35]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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2C F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 11 01 00 35 04 06 00 B5 01 [00:30:35]Write to MH i2c: E2 02 01 7A 34 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2C F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 11 01 00 35 04 06 00 B5 01 00 00 0E [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [00:30:35]RAPDU: 90 00 [00:30:35]wFMCommunicate OK [00:30:35]wFMCommunicate request_size=9 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 0D 02 02 04 0C 09 BC D8 [00:30:35]Write to MH i2c: E2 0C 00 7B 34 80 0D 02 02 04 00 0C 09 BC D8 00 00 DA [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 03 00 7B 34 00 90 00 23 [00:30:35]RAPDU: 90 00 [00:30:35]wFMCommunicate OK [00:30:35]wFMCommunicate request_size=4 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 0D 03 02 [00:30:35]Write to MH i2c: E2 08 00 7C 34 80 0D 03 02 00 00 00 00 2B [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 0B 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 0B 00 7C 34 00 0D FE 0C 09 8C 14 F9 FA 90 00 DF [00:30:35]RAPDU: 0D FE 0C 09 8C 14 F9 FA 90 00 [00:30:35]wFMCommunicate OK [00:30:35]SAM_PROTO_SignData done [00:30:35]FM_MakeSignedData done [00:30:35]CreateOFDProtocolMessage [00:30:35]wFMCommunicate request_size=4 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 11 00 00 [00:30:35]Write to MH i2c: E2 08 00 7D 34 80 11 00 00 00 00 00 00 2B [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 17 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 17 00 7D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [00:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:30:35]wFMCommunicate OK [00:30:35]CreateOFDProtocolMessage done [00:30:35]OFDSenderStorePacket 70062 [00:30:35]StoreOFDPacket docnum=70062 [00:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 66 AA 06 01 6C 03 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2C F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 11 01 00 35 04 06 00 B5 01 0C 09 BC D8 0D FE 0C 09 8C 14 F9 FA [00:30:35]CheckFolder [00:30:35]dirname=/storage/ofd_packets [00:30:35]CheckFolder done [00:30:35]ProducePacketName [00:30:35]name=ofd_packets/00070062 [00:30:35]NVStorageSaveData ofd_packets/00070062 [00:30:35]File name is /storage/ofd_packets/00070062 [00:30:35]Write 300 bytes [00:30:35]NVStorageSaveData done [00:30:35]OFDSenderStorePacket done [00:30:35]KKMCreateOFDPacket done [00:30:35]NVStorageSaveData kkm_last_timestamp [00:30:35]File name is /storage/kkm_last_timestamp [00:30:35]Write 4 bytes [00:30:35]NVStorageSaveData done [00:30:35]ExternCall_PrintAddStr [00:30:35]wPrintStart [00:30:35]Write to MH i2c: 01 00 00 7E 34 B2 [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: 01 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: 01 07 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: 01 07 00 7E 34 00 00 00 00 00 FF 0F C7 [00:30:35]RasterBufferAndPrint [00:30:35]line Счет N : (1)2885828 [00:30:35]line ИНН: 02508201610067 [00:30:35]line Контрольно-Кассовый Чек [00:30:35]line ПРОДАЖА [00:30:35]line ТРК (МРК, ГНК) : 71 [00:30:35]line Товар: 2711129700 [00:30:35]line ГАЗ-К-3 [00:30:35]line 51.420 * 38.90 [00:30:35]line = 2000.24 [00:30:35]line НДС 12% НСП 1% [00:30:35]line > о реализуемом товаре [00:30:35]line ИТОГО: 2000.24 [00:30:35]line НСП 1% : 17.70 [00:30:35]line НДС 12% : 212.41 [00:30:35]line Наличными: 0.00 [00:30:35]line Безнал.: 2000.24 [00:30:35]line Место: АЗС № 85 "Партнер Нефть" [00:30:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:30:35]line СНО: Общий режим [00:30:35]line Чек 10 22.10.2024 00:30 [00:30:35]line Смена: 195 ФФД: 1.0 [00:30:35]line ЗНМ: 0300000167 [00:30:35]line РНМ: 0000000000156251 [00:30:35]line Версия ККМ: v1.0 [00:30:35]line Платежная система: Mbank [00:30:35]line ФМ: 0000000000963346 [00:30:35]line ФД: 70062 [00:30:35]line ФПД: 199016101559512 [00:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003036&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70062&fm=199016101559512&tin=02508201610067®Number=0000000000156251&sum=200024 [00:30:35]OFD Sender: Processing packet 70062 [packets to send 18, broken 17] [00:30:35]ProducePacketName [00:30:35]name=ofd_packets/00070062 [00:30:35]OFD Sender: To server: pG, [00:30:35]CommunicateWithHost lk.salyk.kg:30040 [00:30:35]ConnectInit lk.salyk.kg [00:30:35]written 0, free lines is 4095 [00:30:36]Connected sock=10 [00:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 66 AA 06 01 6C 03 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2C F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 11 01 00 35 04 06 00 B5 01 0C 09 BC D8 0D FE 0C 09 8C 14 F9 FA [00:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A E0 47 00 62 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 11 01 00 F4 03 04 00 CE 9B 16 67 B6 04 01 00 00 F7 A6 30 AC 23 5A 50 F5 [00:30:36]CommunicateWithHost err = 0 [00:30:36]CheckOFDResponse [00:30:36]1017 (14) - 77093643461234 [00:30:36]1041 (16) - 0000000000963346 [00:30:36]1040 (4) - 70062 [00:30:36]1012 (4) - 21.10.2024 18:22 [00:30:36]1206 (1) - 0 [00:30:36]OFD Sender: Remove packet 70062 [00:30:36]ProducePacketName [00:30:36]name=ofd_packets/00070062 [00:30:36]NVStorageDeleteData [00:30:36]Write to MH i2c: 01 00 00 A7 34 DB [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: 01 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: 01 07 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 15 0D 04 [00:30:36]RasterBufferAndPrint [00:30:36]line [00:30:36]line [00:30:36]line [00:30:36]line [00:30:36]line [00:30:36]written 0, free lines is 3357 [00:30:36]MH_Cut [00:30:36]Write to MH i2c: D1 01 00 AE 34 01 B4 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: D1 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: D1 01 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: D1 01 00 AE 34 00 B3 [00:30:36]Write to MH i2c: 01 00 00 AF 34 E3 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]OFD Sender: No OFD packet to send [00:30:37]*** Cut start [00:30:37]*** Partial cut [00:30:37]*** CUTSNS_PIN = 1 [00:30:37]*** CUTSNS_PIN = 0 [00:30:37]*** Brake cut motor [00:30:37]Read from MH i2c: 01 [00:30:37]MH_I2C_Read... [00:30:37]*** Stop cut motor [00:30:37]*** Cut end [00:30:37]Read from MH i2c: 01 07 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [00:30:37]process_action close_receipt done [00:30:37]requested_data is exist [00:30:37]produce_requested_data [00:30:37]requested_item fm.sn is exist - process it [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 11 00 00 [00:30:37]Write to MH i2c: E2 08 00 B0 34 80 11 00 00 00 00 00 00 5E [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 17 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 17 00 B0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [00:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:30:37]wFMCommunicate OK [00:30:37]requested_item fd.num is exist - process it [00:30:37]SAM_PROTO_GetFieldsCounters [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 13 00 00 [00:30:37]Write to MH i2c: E2 08 00 B1 34 80 13 00 00 00 00 00 00 61 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 62 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 62 00 B1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [00:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]SAM_PROTO_GetFieldsCounters done [00:30:37]requested_item shift.num is exist - process it [00:30:37]requested_item shift.opened is exist - process it [00:30:37]req_shift_opened [00:30:37]FM_GetShiftState [00:30:37]SAM_PROTO_GetShiftState [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 13 01 00 [00:30:37]Write to MH i2c: E2 08 00 B2 34 80 13 01 00 00 00 00 00 63 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 0E 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 0E 00 B2 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 51 [00:30:37]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]SAM_PROTO_GetShiftState done [00:30:37]FM_GetShiftState done [00:30:37]req_shift_opened done [00:30:37]requested_item shift.open_date is exist - process it [00:30:37]req_shift_open_date [00:30:37]req_shift_open_date done [00:30:37]produce_requested_data done [00:30:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70062,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:30:37]process_action_free close_receipt [00:30:37]json_value_free [00:30:37]json_value_free done [00:30:37]process_json_proto returns [00:30:37]Send response to host [00:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70062,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:30:37]free response buf [00:30:37]execute_script done [00:30:37]execute_script returns [00:30:37]free content buf [00:30:37]Sock 9.Close socket [00:30:37]Sock 9.Thread stoped [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:02]accept exits with 7 [00:32:02]New connection [00:32:02]New thread 3067170148 created [00:32:02]Thread 3067026788 joined [00:32:02]Waiting for new connection... [00:32:02] Sock 7.Parse request [00:32:02]Sock 7.Check first char [00:32:02]Sock 7.First char is OK [00:32:02]request: POST /json_proto HTTP/1.0 [00:32:02]Method: POST [00:32:02]URL: /json_proto [00:32:02]Method is POST - this is cgi request [00:32:02]url: /json_proto [00:32:02]query_string will be loaded in cgi processing [00:32:02]execute_cgi json_proto POST (null) [00:32:02]execute_cgi path=json_proto method=POST [00:32:02]POST find Content-Length [00:32:02]Host: 172.17.50.3:8080 [00:32:02]Content-Length: 678 [00:32:02]Content-Type: application/json [00:32:02] [00:32:02]POST finish read [00:32:02]Found Content-Length = 678 [00:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885829", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:02]execute_script... [00:32: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)2885829", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:02]POST & json_proto [00:32:02]process_json_proto [00:32:02]json parsed OK: [00:32:02]protocol is kg_v1.0 [00:32:02]action value=close_receipt [00:32:02]process_action close_receipt [00:32:02]cmd_close_receipt [00:32:02]MH_GetDate [00:32:02]Write to MH i2c: F0 00 00 B3 34 D6 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: F0 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: F0 09 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: F0 09 00 B3 34 00 85 F2 16 67 6B 98 1E 66 5A [00:32:02]GetLastDocTimeStamp 1729557036 [00:32:02]current date 1729557125 [00:32:02]FM_GetShiftState [00:32:02]SAM_PROTO_GetShiftState [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 01 00 [00:32:02]Write to MH i2c: E2 08 00 B4 34 80 13 01 00 00 00 00 00 65 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 B4 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 53 [00:32:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetShiftState done [00:32:02]FM_GetShiftState done [00:32:02]opened in 1729555832 [00:32:02]opened+sec_in_day 1729642232 [00:32:02]quantity*price = 30038 [00:32:02]sum+1 = 30039 [00:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 11 22.10.2024 00:32 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70063 ФПД: 76461503504125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70063&fm=76461503504125&tin=02508201610067®Number=0000000000156251&sum=30000 [00:32:04]StoreToDocumentArchive [00:32:04]shift 195 fd 70063 [00:32:04]save to /storage/0195/doc_00070063 [00:32:04]save last doc name /storage/0195/doc_00070063 to /storage/kkm_last_doc_name [00:32:04]save OK [00:32:04]Clear old archive folders... [00:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:32:04]tlvbuf is 0114ED40 [00:32:04]SAM_PROTO_ClearQueue [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 09 00 00 [00:32:04]Write to MH i2c: E2 08 00 C1 34 80 09 00 00 00 00 00 00 67 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 C1 34 00 90 00 69 [00:32:04]RAPDU: 90 00 [00:32:04]wFMCommunicate OK [00:32:04]SAM_PROTO_ClearQueue done [00:32:04]KKMCreateOFDPacket [00:32:04]OFDProtocolAddRootSTLVToBuf [00:32:04]FM_MakeSignedData [00:32:04]FM_MakeSignedData [00:32:04]SAM_PROTO_SignData [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 0D 01 02 [00:32:04]Write to MH i2c: E2 08 00 C2 34 80 0D 01 02 00 00 00 00 6F [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [00:32:04]RAPDU: 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=255 [00:32:04]MH_SAM_APDU [00:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 85 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 11 01 00 35 04 06 00 45 [00:32:04]Write to MH i2c: E2 02 01 C3 34 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 85 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 11 01 00 35 04 06 00 45 00 00 B4 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [00:32:04]RAPDU: 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=10 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 0D 02 02 05 8A 94 C1 5E FD [00:32:04]Write to MH i2c: E2 0D 00 C4 34 80 0D 02 02 05 00 8A 94 C1 5E FD 00 00 B6 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 C4 34 00 90 00 6C [00:32:04]RAPDU: 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 0D 03 02 [00:32:04]Write to MH i2c: E2 08 00 C5 34 80 0D 03 02 00 00 00 00 74 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 0B 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 0B 00 C5 34 00 E5 DC 7D AE 57 C8 E8 5D 90 00 C5 [00:32:04]RAPDU: E5 DC 7D AE 57 C8 E8 5D 90 00 [00:32:04]wFMCommunicate OK [00:32:04]SAM_PROTO_SignData done [00:32:04]FM_MakeSignedData done [00:32:04]CreateOFDProtocolMessage [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 11 00 00 [00:32:04]Write to MH i2c: E2 08 00 C6 34 80 11 00 00 00 00 00 00 74 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 17 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 17 00 C6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [00:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:32:04]wFMCommunicate OK [00:32:04]CreateOFDProtocolMessage done [00:32:04]OFDSenderStorePacket 70063 [00:32:04]StoreOFDPacket docnum=70063 [00:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 EB 07 01 2A 60 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 85 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 11 01 00 35 04 06 00 45 8A 94 C1 5E FD E5 DC 7D AE 57 C8 E8 5D [00:32:04]CheckFolder [00:32:04]dirname=/storage/ofd_packets [00:32:04]CheckFolder done [00:32:04]ProducePacketName [00:32:04]name=ofd_packets/00070063 [00:32:04]NVStorageSaveData ofd_packets/00070063 [00:32:04]File name is /storage/ofd_packets/00070063 [00:32:04]Write 301 bytes [00:32:04]NVStorageSaveData done [00:32:04]OFDSenderStorePacket done [00:32:04]KKMCreateOFDPacket done [00:32:04]NVStorageSaveData kkm_last_timestamp [00:32:04]File name is /storage/kkm_last_timestamp [00:32:04]Write 4 bytes [00:32:04]NVStorageSaveData done [00:32:04]ExternCall_PrintAddStr [00:32:04]wPrintStart [00:32:04]Write to MH i2c: 01 00 00 C7 34 FB [00:32:04]OFD Sender: Processing packet 70063 [packets to send 18, broken 17] [00:32:04]ProducePacketName [00:32:04]name=ofd_packets/00070063 [00:32:04]OFD Sender: To server: pG, [00:32:04]CommunicateWithHost lk.salyk.kg:30040 [00:32:04]ConnectInit lk.salyk.kg [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: 01 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: 01 07 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: 01 07 00 C7 34 00 00 00 00 00 FF 0F 10 [00:32:04]RasterBufferAndPrint [00:32:04]line Счет N : (1)2885829 [00:32:04]line ИНН: 02508201610067 [00:32:04]line Контрольно-Кассовый Чек [00:32:04]line ПРОДАЖА [00:32:04]line ТРК (МРК, ГНК) : 32 [00:32:04]line Товар: 2710124130 [00:32:04]line Аи-92-К-5 [00:32:04]line 4.490 * 66.90 [00:32:04]line = 300.38 [00:32:04]line НДС 12% НСП 1% [00:32:04]line > о реализуемом товаре [00:32:04]line ОКРУГЛЕНИЕ: -0.38 [00:32:04]line ИТОГО: 300.00 [00:32:04]line Внесено: 300.00 [00:32:04]line СДАЧА: 0.00 [00:32:04]line НСП 1% : 2.66 [00:32:04]line НДС 12% : 31.90 [00:32:04]line Наличными: 300.00 [00:32:04]line Безнал.: 0.00 [00:32:04]line Место: АЗС № 85 "Партнер Нефть" [00:32:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:32:04]line СНО: Общий режим [00:32:04]line Чек 11 22.10.2024 00:32 [00:32:04]line Смена: 195 ФФД: 1.0 [00:32:04]line ЗНМ: 0300000167 [00:32:04]line РНМ: 0000000000156251 [00:32:04]line Версия ККМ: v1.0 [00:32:04]line ФМ: 0000000000963346 [00:32:04]line ФД: 70063 [00:32:04]line ФПД: 76461503504125 [00:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003205&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70063&fm=76461503504125&tin=02508201610067®Number=0000000000156251&sum=30000 [00:32:04]Connected sock=10 [00:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C7 EB 07 01 2A 60 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 85 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 11 01 00 35 04 06 00 45 8A 94 C1 5E FD E5 DC 7D AE 57 C8 E8 5D [00:32:05]written 0, free lines is 4095 [00:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2E 5E 47 00 97 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 39 36 33 33 34 36 10 04 04 00 AF 11 01 00 F4 03 04 00 27 9C 16 67 B6 04 01 00 00 19 F2 9A 6B 6F D3 1A 63 [00:32:05]CommunicateWithHost err = 0 [00:32:05]CheckOFDResponse [00:32:05]1017 (14) - 77093643461234 [00:32:05]1041 (16) - 0000000000963346 [00:32:05]1040 (4) - 70063 [00:32:05]1012 (4) - 21.10.2024 18:23 [00:32:05]1206 (1) - 0 [00:32:05]OFD Sender: Remove packet 70063 [00:32:05]ProducePacketName [00:32:05]name=ofd_packets/00070063 [00:32:05]NVStorageDeleteData [00:32:05]Write to MH i2c: 01 00 00 F2 34 26 [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: 01 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: 01 07 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: 01 07 00 F2 34 00 00 00 00 00 E4 0C 1D [00:32:05]RasterBufferAndPrint [00:32:05]line [00:32:05]line [00:32:05]line [00:32:05]line [00:32:05]line [00:32:05]written 0, free lines is 3306 [00:32:05]MH_Cut [00:32:05]Write to MH i2c: D1 01 00 F9 34 01 FF [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: D1 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: D1 01 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: D1 01 00 F9 34 00 FE [00:32:05]Write to MH i2c: 01 00 00 FA 34 2E [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]OFD Sender: No OFD packet to send [00:32:06]*** Cut start [00:32:06]*** Partial cut [00:32:06]*** CUTSNS_PIN = 1 [00:32:06]*** CUTSNS_PIN = 0 [00:32:06]*** Brake cut motor [00:32:06]Read from MH i2c: 01 [00:32:06]MH_I2C_Read... [00:32:06]*** Stop cut motor [00:32:06]*** Cut end [00:32:06]Read from MH i2c: 01 07 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: 01 07 00 FA 34 00 00 00 00 00 FF 0F 43 [00:32:06]process_action close_receipt done [00:32:06]requested_data is exist [00:32:06]produce_requested_data [00:32:06]requested_item fm.sn is exist - process it [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 11 00 00 [00:32:06]Write to MH i2c: E2 08 00 FB 34 80 11 00 00 00 00 00 00 A9 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 17 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 17 00 FB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [00:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:32:06]wFMCommunicate OK [00:32:06]requested_item fd.num is exist - process it [00:32:06]SAM_PROTO_GetFieldsCounters [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 00 00 [00:32:06]Write to MH i2c: E2 08 00 FC 34 80 13 00 00 00 00 00 00 AC [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 62 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 62 00 FC 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [00:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_GetFieldsCounters done [00:32:06]requested_item shift.num is exist - process it [00:32:06]requested_item shift.opened is exist - process it [00:32:06]req_shift_opened [00:32:06]FM_GetShiftState [00:32:06]SAM_PROTO_GetShiftState [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 01 00 [00:32:06]Write to MH i2c: E2 08 00 FD 34 80 13 01 00 00 00 00 00 AE [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:07]Read from MH i2c: E2 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 0E 00 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 0E 00 FD 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9C [00:32:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:32:07]wFMCommunicate OK [00:32:07]SAM_PROTO_GetShiftState done [00:32:07]FM_GetShiftState done [00:32:07]req_shift_opened done [00:32:07]requested_item shift.open_date is exist - process it [00:32:07]req_shift_open_date [00:32:07]req_shift_open_date done [00:32:07]produce_requested_data done [00:32:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70063,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:32:07]process_action_free close_receipt [00:32:07]json_value_free [00:32:07]json_value_free done [00:32:07]process_json_proto returns [00:32:07]Send response to host [00:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70063,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:32:07]free response buf [00:32:07]execute_script done [00:32:07]execute_script returns [00:32:07]free content buf [00:32:07]Sock 7.Close socket [00:32:07]Sock 7.Thread stoped [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:02]accept exits with 9 [00:33:02]New connection [00:33:02]New thread 3067026788 created [00:33:02]Thread 3067170148 joined [00:33:02]Waiting for new connection... [00:33:02] Sock 9.Parse request [00:33:02]Sock 9.Check first char [00:33:02]Sock 9.First char is OK [00:33:02]request: POST /json_proto HTTP/1.0 [00:33:02]Method: POST [00:33:02]URL: /json_proto [00:33:02]Method is POST - this is cgi request [00:33:02]url: /json_proto [00:33:02]query_string will be loaded in cgi processing [00:33:02]execute_cgi json_proto POST (null) [00:33:02]execute_cgi path=json_proto method=POST [00:33:02]POST find Content-Length [00:33:02]Host: 172.17.50.3:8080 [00:33:02]Content-Length: 681 [00:33:02]Content-Type: application/json [00:33:02] [00:33:02]POST finish read [00:33:02]Found Content-Length = 681 [00:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [00:33:02]execute_script... [00:33: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)2885830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "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" ] } } [00:33:02]POST & json_proto [00:33:02]process_json_proto [00:33:02]json parsed OK: [00:33:02]protocol is kg_v1.0 [00:33:02]action value=close_receipt [00:33:02]process_action close_receipt [00:33:02]cmd_close_receipt [00:33:02]MH_GetDate [00:33:02]Write to MH i2c: F0 00 00 FE 34 21 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: F0 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: F0 09 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: F0 09 00 FE 34 00 C1 F2 16 67 6B 98 1E 66 E1 [00:33:02]GetLastDocTimeStamp 1729557125 [00:33:02]current date 1729557185 [00:33:02]FM_GetShiftState [00:33:02]SAM_PROTO_GetShiftState [00:33:02]wFMCommunicate request_size=4 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 13 01 00 [00:33:02]Write to MH i2c: E2 08 00 FF 34 80 13 01 00 00 00 00 00 B0 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 0E 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 0E 00 FF 34 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 9E [00:33:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:33:02]wFMCommunicate OK [00:33:02]SAM_PROTO_GetShiftState done [00:33:02]FM_GetShiftState done [00:33:02]opened in 1729555832 [00:33:02]opened+sec_in_day 1729642232 [00:33:02]quantity*price = 30030 [00:33:02]sum+1 = 30032 [00:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 12 22.10.2024 00:33 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70064 ФПД: 8123992399789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70064&fm=8123992399789&tin=02508201610067®Number=0000000000156251&sum=30000 [00:33:03]StoreToDocumentArchive [00:33:03]shift 195 fd 70064 [00:33:03]save to /storage/0195/doc_00070064 [00:33:03]save last doc name /storage/0195/doc_00070064 to /storage/kkm_last_doc_name [00:33:03]save OK [00:33:03]Clear old archive folders... [00:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:33:03]tlvbuf is 01203250 [00:33:03]SAM_PROTO_ClearQueue [00:33:03]wFMCommunicate request_size=4 [00:33:03]MH_SAM_APDU [00:33:03]CAPDU: 80 09 00 00 [00:33:03]Write to MH i2c: E2 08 00 0C 35 80 09 00 00 00 00 00 00 B3 [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:03]Read from MH i2c: E2 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: E2 03 00 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [00:33:03]RAPDU: 90 00 [00:33:03]wFMCommunicate OK [00:33:03]SAM_PROTO_ClearQueue done [00:33:03]KKMCreateOFDPacket [00:33:03]OFDProtocolAddRootSTLVToBuf [00:33:03]FM_MakeSignedData [00:33:03]FM_MakeSignedData [00:33:03]SAM_PROTO_SignData [00:33:03]wFMCommunicate request_size=4 [00:33:03]MH_SAM_APDU [00:33:03]CAPDU: 80 0D 01 02 [00:33:03]Write to MH i2c: E2 08 00 0D 35 80 0D 01 02 00 00 00 00 BB [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [00:33:04]RAPDU: 90 00 [00:33:04]wFMCommunicate OK [00:33:04]wFMCommunicate request_size=255 [00:33:04]MH_SAM_APDU [00:33:04]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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 0C 00 00 00 F4 03 04 00 C1 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 11 01 00 35 04 06 00 07 63 [00:33:04]Write to MH i2c: E2 02 01 0E 35 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 0C 00 00 00 F4 03 04 00 C1 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 11 01 00 35 04 06 00 07 63 00 00 B9 [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [00:33:04]RAPDU: 90 00 [00:33:04]wFMCommunicate OK [00:33:04]wFMCommunicate request_size=9 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 0D 02 02 04 83 AE 5F AD [00:33:04]Write to MH i2c: E2 0C 00 0F 35 80 0D 02 02 04 00 83 AE 5F AD 00 00 03 [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 03 00 0F 35 00 90 00 B8 [00:33:04]RAPDU: 90 00 [00:33:04]wFMCommunicate OK [00:33:04]wFMCommunicate request_size=4 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 0D 03 02 [00:33:04]Write to MH i2c: E2 08 00 10 35 80 0D 03 02 00 00 00 00 C0 [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 0B 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 0B 00 10 35 00 65 77 F1 90 7E 3E F4 11 90 00 DF [00:33:04]RAPDU: 65 77 F1 90 7E 3E F4 11 90 00 [00:33:04]wFMCommunicate OK [00:33:04]SAM_PROTO_SignData done [00:33:04]FM_MakeSignedData done [00:33:04]CreateOFDProtocolMessage [00:33:04]wFMCommunicate request_size=4 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 11 00 00 [00:33:04]Write to MH i2c: E2 08 00 11 35 80 11 00 00 00 00 00 00 C0 [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 17 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 17 00 11 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [00:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:33:04]wFMCommunicate OK [00:33:04]CreateOFDProtocolMessage done [00:33:04]OFDSenderStorePacket 70064 [00:33:04]StoreOFDPacket docnum=70064 [00:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0E 5B 06 01 37 B1 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 0C 00 00 00 F4 03 04 00 C1 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 11 01 00 35 04 06 00 07 63 83 AE 5F AD 65 77 F1 90 7E 3E F4 11 [00:33:04]CheckFolder [00:33:04]dirname=/storage/ofd_packets [00:33:04]CheckFolder done [00:33:04]ProducePacketName [00:33:04]name=ofd_packets/00070064 [00:33:04]NVStorageSaveData ofd_packets/00070064 [00:33:04]File name is /storage/ofd_packets/00070064 [00:33:04]Write 300 bytes [00:33:04]NVStorageSaveData done [00:33:04]OFDSenderStorePacket done [00:33:04]KKMCreateOFDPacket done [00:33:04]NVStorageSaveData kkm_last_timestamp [00:33:04]File name is /storage/kkm_last_timestamp [00:33:04]Write 4 bytes [00:33:04]NVStorageSaveData done [00:33:04]ExternCall_PrintAddStr [00:33:04]wPrintStart [00:33:04]Write to MH i2c: 01 00 00 12 35 47 [00:33:04]OFD Sender: Processing packet 70064 [packets to send 18, broken 17] [00:33:04]ProducePacketName [00:33:04]name=ofd_packets/00070064 [00:33:04]OFD Sender: To server: pG, [00:33:04]CommunicateWithHost lk.salyk.kg:30040 [00:33:04]ConnectInit lk.salyk.kg [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: 01 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: 01 07 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: 01 07 00 12 35 00 00 00 00 00 FF 0F 5C [00:33:04]RasterBufferAndPrint [00:33:04]line Счет N : (1)2885830 [00:33:04]line ИНН: 02508201610067 [00:33:04]line Контрольно-Кассовый Чек [00:33:04]line ПРОДАЖА [00:33:04]line ТРК (МРК, ГНК) : 71 [00:33:04]line Товар: 2711129700 [00:33:04]line ГАЗ-К-3 [00:33:04]line 7.720 * 38.90 [00:33:04]line = 300.31 [00:33:04]line НДС 12% НСП 1% [00:33:04]line > о реализуемом товаре [00:33:04]line ОКРУГЛЕНИЕ: -0.31 [00:33:04]line ИТОГО: 300.00 [00:33:04]line Внесено: 300.00 [00:33:04]line СДАЧА: 0.00 [00:33:04]line НСП 1% : 2.66 [00:33:04]line НДС 12% : 31.89 [00:33:04]line Наличными: 300.00 [00:33:04]line Безнал.: 0.00 [00:33:04]line Место: АЗС № 85 "Партнер Нефть" [00:33:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:33:04]line СНО: Общий режим [00:33:04]line Чек 12 22.10.2024 00:33 [00:33:04]line Смена: 195 ФФД: 1.0 [00:33:04]line ЗНМ: 0300000167 [00:33:04]line РНМ: 0000000000156251 [00:33:04]line Версия ККМ: v1.0 [00:33:04]line ФМ: 0000000000963346 [00:33:04]line ФД: 70064 [00:33:04]line ФПД: 8123992399789 [00:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70064&fm=8123992399789&tin=02508201610067®Number=0000000000156251&sum=30000 [00:33:04]Connected sock=10 [00:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0E 5B 06 01 37 B1 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 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 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 75 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 0C 00 00 00 F4 03 04 00 C1 F2 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 11 01 00 35 04 06 00 07 63 83 AE 5F AD 65 77 F1 90 7E 3E F4 11 [00:33:04]written 0, free lines is 4095 [00:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C 17 47 00 24 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 11 01 00 F4 03 04 00 63 9C 16 67 B6 04 01 00 00 15 5E 85 69 BC C9 6B 56 [00:33:05]CommunicateWithHost err = 0 [00:33:05]CheckOFDResponse [00:33:05]1017 (14) - 77093643461234 [00:33:05]1041 (16) - 0000000000963346 [00:33:05]1040 (4) - 70064 [00:33:05]1012 (4) - 21.10.2024 18:24 [00:33:05]1206 (1) - 0 [00:33:05]OFD Sender: Remove packet 70064 [00:33:05]ProducePacketName [00:33:05]name=ofd_packets/00070064 [00:33:05]NVStorageDeleteData [00:33:05]Write to MH i2c: 01 00 00 3D 35 72 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: 01 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: 01 07 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: 01 07 00 3D 35 00 00 00 00 00 E4 0C 69 [00:33:05]RasterBufferAndPrint [00:33:05]line [00:33:05]line [00:33:05]line [00:33:05]line [00:33:05]line [00:33:05]written 0, free lines is 3306 [00:33:05]MH_Cut [00:33:05]Write to MH i2c: D1 01 00 44 35 01 4B [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: D1 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: D1 01 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: D1 01 00 44 35 00 4A [00:33:05]Write to MH i2c: 01 00 00 45 35 7A [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]OFD Sender: No OFD packet to send [00:33:05]*** Cut start [00:33:05]*** Partial cut [00:33:05]*** CUTSNS_PIN = 1 [00:33:06]*** CUTSNS_PIN = 0 [00:33:06]*** Brake cut motor [00:33:06]Read from MH i2c: 01 [00:33:06]MH_I2C_Read... [00:33:06]*** Stop cut motor [00:33:06]*** Cut end [00:33:06]Read from MH i2c: 01 07 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: 01 07 00 45 35 00 00 00 00 00 FF 0F 8F [00:33:06]process_action close_receipt done [00:33:06]requested_data is exist [00:33:06]produce_requested_data [00:33:06]requested_item fm.sn is exist - process it [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 11 00 00 [00:33:06]Write to MH i2c: E2 08 00 46 35 80 11 00 00 00 00 00 00 F5 [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:06]Read from MH i2c: E2 17 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 17 00 46 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [00:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:33:06]wFMCommunicate OK [00:33:06]requested_item fd.num is exist - process it [00:33:06]SAM_PROTO_GetFieldsCounters [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 13 00 00 [00:33:06]Write to MH i2c: E2 08 00 47 35 80 13 00 00 00 00 00 00 F8 [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 62 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 62 00 47 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [00:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:06]wFMCommunicate OK [00:33:06]SAM_PROTO_GetFieldsCounters done [00:33:06]requested_item shift.num is exist - process it [00:33:06]requested_item shift.opened is exist - process it [00:33:06]req_shift_opened [00:33:06]FM_GetShiftState [00:33:06]SAM_PROTO_GetShiftState [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 13 01 00 [00:33:06]Write to MH i2c: E2 08 00 48 35 80 13 01 00 00 00 00 00 FA [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 0E 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 0E 00 48 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 E8 [00:33:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:33:06]wFMCommunicate OK [00:33:06]SAM_PROTO_GetShiftState done [00:33:06]FM_GetShiftState done [00:33:06]req_shift_opened done [00:33:06]requested_item shift.open_date is exist - process it [00:33:06]req_shift_open_date [00:33:06]req_shift_open_date done [00:33:06]produce_requested_data done [00:33:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70064,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:33:06]process_action_free close_receipt [00:33:06]json_value_free [00:33:06]json_value_free done [00:33:06]process_json_proto returns [00:33:06]Send response to host [00:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70064,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:33:06]free response buf [00:33:06]execute_script done [00:33:06]execute_script returns [00:33:06]free content buf [00:33:06]Sock 9.Close socket [00:33:06]Sock 9.Thread stoped [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:50]accept exits with 7 [00:43:50]New connection [00:43:50]New thread 3067170148 created [00:43:50]Thread 3067026788 joined [00:43:50]Waiting for new connection... [00:43:50] Sock 7.Parse request [00:43:50]Sock 7.Check first char [00:43:50]Sock 7.First char is OK [00:43:50]request: POST /json_proto HTTP/1.0 [00:43:50]Method: POST [00:43:50]URL: /json_proto [00:43:50]Method is POST - this is cgi request [00:43:50]url: /json_proto [00:43:50]query_string will be loaded in cgi processing [00:43:50]execute_cgi json_proto POST (null) [00:43:50]execute_cgi path=json_proto method=POST [00:43:50]POST find Content-Length [00:43:50]Host: 172.17.50.3:8080 [00:43:50]Content-Length: 770 [00:43:50]Content-Type: application/json [00:43:50] [00:43:50]POST finish read [00:43:50]Found Content-Length = 770 [00:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885831", "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" : 44.780, "sum" : 3322.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3322.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:50]execute_script... [00:43: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)2885831", "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" : 44.780, "sum" : 3322.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3322.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:50]POST & json_proto [00:43:50]process_json_proto [00:43:50]json parsed OK: [00:43:50]protocol is kg_v1.0 [00:43:50]action value=close_receipt [00:43:50]process_action close_receipt [00:43:50]cmd_close_receipt [00:43:50]MH_GetDate [00:43:50]Write to MH i2c: F0 00 00 49 35 6D [00:43:50]Write i2c OK [00:43:50]MH_I2C_Read... [00:43:50]Read from MH i2c: F0 [00:43:50]MH_I2C_Read... [00:43:50]Read from MH i2c: F0 09 00 [00:43:50]MH_I2C_Read... [00:43:50]Read from MH i2c: F0 09 00 49 35 00 48 F5 16 67 6B 98 1E 66 B7 [00:43:50]GetLastDocTimeStamp 1729557185 [00:43:50]current date 1729557832 [00:43:50]FM_GetShiftState [00:43:50]SAM_PROTO_GetShiftState [00:43:50]wFMCommunicate request_size=4 [00:43:50]MH_SAM_APDU [00:43:50]CAPDU: 80 13 01 00 [00:43:50]Write to MH i2c: E2 08 00 4A 35 80 13 01 00 00 00 00 00 FC [00:43:50]Write i2c OK [00:43:50]MH_I2C_Read... [00:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:50]Read from MH i2c: E2 [00:43:50]MH_I2C_Read... [00:43:50]Read from MH i2c: E2 0E 00 [00:43:50]MH_I2C_Read... [00:43:50]Read from MH i2c: E2 0E 00 4A 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 EA [00:43:50]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:43:50]wFMCommunicate OK [00:43:50]SAM_PROTO_GetShiftState done [00:43:50]FM_GetShiftState done [00:43:50]opened in 1729555832 [00:43:50]opened+sec_in_day 1729642232 [00:43:50]quantity*price = 332267 [00:43:50]sum+1 = 332269 [00:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3322.68 НСП 1% : 29.40 НДС 12% : 352.85 Наличными: 0.00 Безнал.: 3322.68 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 13 22.10.2024 00:43 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 70065 ФПД: 210534947724231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70065&fm=210534947724231&tin=02508201610067®Number=0000000000156251&sum=332268 [00:43:51]StoreToDocumentArchive [00:43:51]shift 195 fd 70065 [00:43:51]save to /storage/0195/doc_00070065 [00:43:51]save last doc name /storage/0195/doc_00070065 to /storage/kkm_last_doc_name [00:43:51]save OK [00:43:51]Clear old archive folders... [00:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:51]tlvbuf is 011ADB00 [00:43:51]SAM_PROTO_ClearQueue [00:43:51]wFMCommunicate request_size=4 [00:43:51]MH_SAM_APDU [00:43:51]CAPDU: 80 09 00 00 [00:43:51]Write to MH i2c: E2 08 00 57 35 80 09 00 00 00 00 00 00 FE [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [00:43:51]RAPDU: 90 00 [00:43:51]wFMCommunicate OK [00:43:51]SAM_PROTO_ClearQueue done [00:43:51]KKMCreateOFDPacket [00:43:51]OFDProtocolAddRootSTLVToBuf [00:43:51]FM_MakeSignedData [00:43:51]FM_MakeSignedData [00:43:51]SAM_PROTO_SignData [00:43:51]wFMCommunicate request_size=4 [00:43:51]MH_SAM_APDU [00:43:51]CAPDU: 80 0D 01 02 [00:43:51]Write to MH i2c: E2 08 00 58 35 80 0D 01 02 00 00 00 00 06 [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [00:43:51]RAPDU: 90 00 [00:43:51]wFMCommunicate OK [00:43:51]wFMCommunicate request_size=255 [00:43:51]MH_SAM_APDU [00:43: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 EC AE 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 11 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 11 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 89 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 11 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 48 F5 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 11 01 00 35 04 06 00 BF [00:43:51]Write to MH i2c: E2 02 01 59 35 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 EC AE 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 11 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 11 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 89 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 11 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 48 F5 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 11 01 00 35 04 06 00 BF 00 00 B7 [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 59 35 00 90 00 02 [00:43:51]RAPDU: 90 00 [00:43:51]wFMCommunicate OK [00:43:51]wFMCommunicate request_size=10 [00:43:51]MH_SAM_APDU [00:43:51]CAPDU: 80 0D 02 02 05 7A FC C5 9B C7 [00:43:51]Write to MH i2c: E2 0D 00 5A 35 80 0D 02 02 05 00 7A FC C5 9B C7 00 00 B0 [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 03 00 5A 35 00 90 00 03 [00:43:51]RAPDU: 90 00 [00:43:51]wFMCommunicate OK [00:43:51]wFMCommunicate request_size=4 [00:43:51]MH_SAM_APDU [00:43:51]CAPDU: 80 0D 03 02 [00:43:51]Write to MH i2c: E2 08 00 5B 35 80 0D 03 02 00 00 00 00 0B [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 0B 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 0B 00 5B 35 00 37 FD 55 8F EE FF 08 22 90 00 3B [00:43:51]RAPDU: 37 FD 55 8F EE FF 08 22 90 00 [00:43:51]wFMCommunicate OK [00:43:51]SAM_PROTO_SignData done [00:43:51]FM_MakeSignedData done [00:43:51]CreateOFDProtocolMessage [00:43:51]wFMCommunicate request_size=4 [00:43:51]MH_SAM_APDU [00:43:51]CAPDU: 80 11 00 00 [00:43:51]Write to MH i2c: E2 08 00 5C 35 80 11 00 00 00 00 00 00 0B [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:51]Read from MH i2c: E2 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 17 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: E2 17 00 5C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [00:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:43:51]wFMCommunicate OK [00:43:51]CreateOFDProtocolMessage done [00:43:51]OFDSenderStorePacket 70065 [00:43:51]StoreOFDPacket docnum=70065 [00:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 09 07 01 00 05 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 EC AE 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 11 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 11 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 89 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 11 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 48 F5 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 11 01 00 35 04 06 00 BF 7A FC C5 9B C7 37 FD 55 8F EE FF 08 22 [00:43:51]CheckFolder [00:43:51]dirname=/storage/ofd_packets [00:43:51]CheckFolder done [00:43:51]ProducePacketName [00:43:51]name=ofd_packets/00070065 [00:43:51]NVStorageSaveData ofd_packets/00070065 [00:43:51]File name is /storage/ofd_packets/00070065 [00:43:51]Write 301 bytes [00:43:51]NVStorageSaveData done [00:43:51]OFDSenderStorePacket done [00:43:51]KKMCreateOFDPacket done [00:43:51]NVStorageSaveData kkm_last_timestamp [00:43:51]File name is /storage/kkm_last_timestamp [00:43:51]Write 4 bytes [00:43:51]NVStorageSaveData done [00:43:51]ExternCall_PrintAddStr [00:43:51]wPrintStart [00:43:51]Write to MH i2c: 01 00 00 5D 35 92 [00:43:51]Write i2c OK [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: 01 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: 01 07 00 [00:43:51]MH_I2C_Read... [00:43:51]Read from MH i2c: 01 07 00 5D 35 00 00 00 00 00 FF 0F A7 [00:43:51]RasterBufferAndPrint [00:43:51]line Счет N : (1)2885831 [00:43:51]line ИНН: 02508201610067 [00:43:51]line Контрольно-Кассовый Чек [00:43:51]line ПРОДАЖА [00:43:51]line ТРК (МРК, ГНК) : 33 [00:43:51]line Товар: 2710124500 [00:43:51]line Аи-95-К-5 [00:43:51]line 44.780 * 74.20 [00:43:51]line = 3322.68 [00:43:51]line НДС 12% НСП 1% [00:43:51]line > о реализуемом товаре [00:43:51]line ИТОГО: 3322.68 [00:43:51]line НСП 1% : 29.40 [00:43:51]line НДС 12% : 352.85 [00:43:51]line Наличными: 0.00 [00:43:51]line Безнал.: 3322.68 [00:43:51]line Место: АЗС № 85 "Партнер Нефть" [00:43:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:43:51]line СНО: Общий режим [00:43:51]line Чек 13 22.10.2024 00:43 [00:43:51]line Смена: 195 ФФД: 1.0 [00:43:51]line ЗНМ: 0300000167 [00:43:51]line РНМ: 0000000000156251 [00:43:51]line Версия ККМ: v1.0 [00:43:51]line Платежная система: Mbank [00:43:51]line ФМ: 0000000000963346 [00:43:51]line ФД: 70065 [00:43:51]line ФПД: 210534947724231 [00:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004352&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70065&fm=210534947724231&tin=02508201610067®Number=0000000000156251&sum=332268 [00:43:52]OFD Sender: Processing packet 70065 [packets to send 18, broken 17] [00:43:52]ProducePacketName [00:43:52]name=ofd_packets/00070065 [00:43:52]OFD Sender: To server: pG, [00:43:52]CommunicateWithHost lk.salyk.kg:30040 [00:43:52]ConnectInit lk.salyk.kg [00:43:52]written 0, free lines is 4095 [00:43:52]Connected sock=10 [00:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 09 07 01 00 05 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 EC AE 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EC 11 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 11 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 89 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 11 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 48 F5 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 11 01 00 35 04 06 00 BF 7A FC C5 9B C7 37 FD 55 8F EE FF 08 22 [00:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 71 FD 47 00 DD 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 11 01 00 F4 03 04 00 EB 9E 16 67 B6 04 01 00 00 F4 6C 8B FB 7B BA FA 6C [00:43:52]CommunicateWithHost err = 0 [00:43:52]CheckOFDResponse [00:43:52]1017 (14) - 77093643461234 [00:43:52]1041 (16) - 0000000000963346 [00:43:52]1040 (4) - 70065 [00:43:52]1012 (4) - 21.10.2024 18:35 [00:43:52]1206 (1) - 0 [00:43:52]OFD Sender: Remove packet 70065 [00:43:52]ProducePacketName [00:43:52]name=ofd_packets/00070065 [00:43:52]NVStorageDeleteData [00:43:52]Write to MH i2c: 01 00 00 86 35 BB [00:43:52]Write i2c OK [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: 01 [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: 01 07 00 [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: 01 07 00 86 35 00 00 00 00 00 18 0D E7 [00:43:52]RasterBufferAndPrint [00:43:52]line [00:43:52]line [00:43:52]line [00:43:52]line [00:43:52]line [00:43:52]written 0, free lines is 3358 [00:43:52]MH_Cut [00:43:52]Write to MH i2c: D1 01 00 8D 35 01 94 [00:43:52]Write i2c OK [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: D1 [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: D1 01 00 [00:43:52]MH_I2C_Read... [00:43:52]Read from MH i2c: D1 01 00 8D 35 00 93 [00:43:52]Write to MH i2c: 01 00 00 8E 35 C3 [00:43:52]Write i2c OK [00:43:52]MH_I2C_Read... [00:43:52]OFD Sender: No OFD packet to send [00:43:53]*** Cut start [00:43:53]*** Partial cut [00:43:53]*** CUTSNS_PIN = 1 [00:43:53]*** CUTSNS_PIN = 0 [00:43:53]*** Brake cut motor [00:43:53]Read from MH i2c: 01 [00:43:53]MH_I2C_Read... [00:43:53]*** Stop cut motor [00:43:53]*** Cut end [00:43:53]Read from MH i2c: 01 07 00 [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 FF 0F D8 [00:43:53]process_action close_receipt done [00:43:53]requested_data is exist [00:43:53]produce_requested_data [00:43:53]requested_item fm.sn is exist - process it [00:43:53]wFMCommunicate request_size=4 [00:43:53]MH_SAM_APDU [00:43:53]CAPDU: 80 11 00 00 [00:43:53]Write to MH i2c: E2 08 00 8F 35 80 11 00 00 00 00 00 00 3E [00:43:53]Write i2c OK [00:43:53]MH_I2C_Read... [00:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:54]Read from MH i2c: E2 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 17 00 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 17 00 8F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [00:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:43:54]wFMCommunicate OK [00:43:54]requested_item fd.num is exist - process it [00:43:54]SAM_PROTO_GetFieldsCounters [00:43:54]wFMCommunicate request_size=4 [00:43:54]MH_SAM_APDU [00:43:54]CAPDU: 80 13 00 00 [00:43:54]Write to MH i2c: E2 08 00 90 35 80 13 00 00 00 00 00 00 41 [00:43:54]Write i2c OK [00:43:54]MH_I2C_Read... [00:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:54]Read from MH i2c: E2 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 62 00 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 62 00 90 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [00:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:54]wFMCommunicate OK [00:43:54]SAM_PROTO_GetFieldsCounters done [00:43:54]requested_item shift.num is exist - process it [00:43:54]requested_item shift.opened is exist - process it [00:43:54]req_shift_opened [00:43:54]FM_GetShiftState [00:43:54]SAM_PROTO_GetShiftState [00:43:54]wFMCommunicate request_size=4 [00:43:54]MH_SAM_APDU [00:43:54]CAPDU: 80 13 01 00 [00:43:54]Write to MH i2c: E2 08 00 91 35 80 13 01 00 00 00 00 00 43 [00:43:54]Write i2c OK [00:43:54]MH_I2C_Read... [00:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:54]Read from MH i2c: E2 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 0E 00 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 0E 00 91 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 31 [00:43:54]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:43:54]wFMCommunicate OK [00:43:54]SAM_PROTO_GetShiftState done [00:43:54]FM_GetShiftState done [00:43:54]req_shift_opened done [00:43:54]requested_item shift.open_date is exist - process it [00:43:54]req_shift_open_date [00:43:54]req_shift_open_date done [00:43:54]produce_requested_data done [00:43:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70065,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:43:54]process_action_free close_receipt [00:43:54]json_value_free [00:43:54]json_value_free done [00:43:54]process_json_proto returns [00:43:54]Send response to host [00:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70065,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:43:54]free response buf [00:43:54]execute_script done [00:43:54]execute_script returns [00:43:54]free content buf [00:43:54]Sock 7.Close socket [00:43:54]Sock 7.Thread stoped [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:18]accept exits with 9 [00:49:18]New connection [00:49:18]New thread 3067026788 created [00:49:18]Thread 3067170148 joined [00:49:18]Waiting for new connection... [00:49:18] Sock 9.Parse request [00:49:18]Sock 9.Check first char [00:49:18]Sock 9.First char is OK [00:49:18]request: POST /json_proto HTTP/1.0 [00:49:18]Method: POST [00:49:18]URL: /json_proto [00:49:18]Method is POST - this is cgi request [00:49:18]url: /json_proto [00:49:18]query_string will be loaded in cgi processing [00:49:18]execute_cgi json_proto POST (null) [00:49:18]execute_cgi path=json_proto method=POST [00:49:18]POST find Content-Length [00:49:18]Host: 172.17.50.3:8080 [00:49:18]Content-Length: 683 [00:49:18]Content-Type: application/json [00:49:18] [00:49:18]POST finish read [00:49:18]Found Content-Length = 683 [00:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:18]execute_script... [00:49: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)2885832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:18]POST & json_proto [00:49:18]process_json_proto [00:49:18]json parsed OK: [00:49:18]protocol is kg_v1.0 [00:49:18]action value=close_receipt [00:49:18]process_action close_receipt [00:49:18]cmd_close_receipt [00:49:18]MH_GetDate [00:49:18]Write to MH i2c: F0 00 00 92 35 B6 [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 09 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 09 00 92 35 00 91 F6 16 67 6B 98 1E 66 4A [00:49:18]GetLastDocTimeStamp 1729557832 [00:49:18]current date 1729558161 [00:49:18]FM_GetShiftState [00:49:18]SAM_PROTO_GetShiftState [00:49:18]wFMCommunicate request_size=4 [00:49:18]MH_SAM_APDU [00:49:18]CAPDU: 80 13 01 00 [00:49:18]Write to MH i2c: E2 08 00 93 35 80 13 01 00 00 00 00 00 45 [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:18]Read from MH i2c: E2 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 0E 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: E2 0E 00 93 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 33 [00:49:18]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:49:18]wFMCommunicate OK [00:49:18]SAM_PROTO_GetShiftState done [00:49:18]FM_GetShiftState done [00:49:18]opened in 1729555832 [00:49:18]opened+sec_in_day 1729642232 [00:49:18]quantity*price = 100015 [00:49:18]sum+1 = 100017 [00:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 14 22.10.2024 00:49 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70066 ФПД: 267815034200934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70066&fm=267815034200934&tin=02508201610067®Number=0000000000156251&sum=100000 [00:49:19]StoreToDocumentArchive [00:49:19]shift 195 fd 70066 [00:49:19]save to /storage/0195/doc_00070066 [00:49:19]save last doc name /storage/0195/doc_00070066 to /storage/kkm_last_doc_name [00:49:19]save OK [00:49:19]Clear old archive folders... [00:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:49:19]tlvbuf is B6F0F990 [00:49:19]SAM_PROTO_ClearQueue [00:49:19]wFMCommunicate request_size=4 [00:49:19]MH_SAM_APDU [00:49:19]CAPDU: 80 09 00 00 [00:49:19]Write to MH i2c: E2 08 00 A0 35 80 09 00 00 00 00 00 00 47 [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 A0 35 00 90 00 49 [00:49:19]RAPDU: 90 00 [00:49:19]wFMCommunicate OK [00:49:19]SAM_PROTO_ClearQueue done [00:49:19]KKMCreateOFDPacket [00:49:19]OFDProtocolAddRootSTLVToBuf [00:49:19]FM_MakeSignedData [00:49:19]FM_MakeSignedData [00:49:19]SAM_PROTO_SignData [00:49:19]wFMCommunicate request_size=4 [00:49:19]MH_SAM_APDU [00:49:19]CAPDU: 80 0D 01 02 [00:49:19]Write to MH i2c: E2 08 00 A1 35 80 0D 01 02 00 00 00 00 4F [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [00:49:19]RAPDU: 90 00 [00:49:19]wFMCommunicate OK [00:49:19]wFMCommunicate request_size=255 [00:49:19]MH_SAM_APDU [00:49:19]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 91 F6 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 11 01 00 35 04 06 00 F3 [00:49:19]Write to MH i2c: E2 02 01 A2 35 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 91 F6 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 11 01 00 35 04 06 00 F3 00 00 5E [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [00:49:19]RAPDU: 90 00 [00:49:19]wFMCommunicate OK [00:49:19]wFMCommunicate request_size=10 [00:49:19]MH_SAM_APDU [00:49:19]CAPDU: 80 0D 02 02 05 93 8B FA A3 66 [00:49:19]Write to MH i2c: E2 0D 00 A3 35 80 0D 02 02 05 00 93 8B FA A3 66 00 00 7D [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 03 00 A3 35 00 90 00 4C [00:49:19]RAPDU: 90 00 [00:49:19]wFMCommunicate OK [00:49:19]wFMCommunicate request_size=4 [00:49:19]MH_SAM_APDU [00:49:19]CAPDU: 80 0D 03 02 [00:49:19]Write to MH i2c: E2 08 00 A4 35 80 0D 03 02 00 00 00 00 54 [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:19]Read from MH i2c: E2 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 0B 00 [00:49:19]MH_I2C_Read... [00:49:19]Read from MH i2c: E2 0B 00 A4 35 00 C9 01 D5 EC A3 FB EE D1 90 00 3D [00:49:19]RAPDU: C9 01 D5 EC A3 FB EE D1 90 00 [00:49:19]wFMCommunicate OK [00:49:19]SAM_PROTO_SignData done [00:49:19]FM_MakeSignedData done [00:49:19]CreateOFDProtocolMessage [00:49:19]wFMCommunicate request_size=4 [00:49:19]MH_SAM_APDU [00:49:19]CAPDU: 80 11 00 00 [00:49:19]Write to MH i2c: E2 08 00 A5 35 80 11 00 00 00 00 00 00 54 [00:49:19]Write i2c OK [00:49:19]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 17 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 17 00 A5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [00:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:49:20]wFMCommunicate OK [00:49:20]CreateOFDProtocolMessage done [00:49:20]OFDSenderStorePacket 70066 [00:49:20]StoreOFDPacket docnum=70066 [00:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 D0 07 01 DC 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 91 F6 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 11 01 00 35 04 06 00 F3 93 8B FA A3 66 C9 01 D5 EC A3 FB EE D1 [00:49:20]CheckFolder [00:49:20]dirname=/storage/ofd_packets [00:49:20]CheckFolder done [00:49:20]ProducePacketName [00:49:20]name=ofd_packets/00070066 [00:49:20]NVStorageSaveData ofd_packets/00070066 [00:49:20]File name is /storage/ofd_packets/00070066 [00:49:20]Write 301 bytes [00:49:20]NVStorageSaveData done [00:49:20]OFDSenderStorePacket done [00:49:20]KKMCreateOFDPacket done [00:49:20]NVStorageSaveData kkm_last_timestamp [00:49:20]File name is /storage/kkm_last_timestamp [00:49:20]Write 4 bytes [00:49:20]NVStorageSaveData done [00:49:20]ExternCall_PrintAddStr [00:49:20]wPrintStart [00:49:20]Write to MH i2c: 01 00 00 A6 35 DB [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 A6 35 00 00 00 00 00 FF 0F F0 [00:49:20]RasterBufferAndPrint [00:49:20]line Счет N : (1)2885832 [00:49:20]line ИНН: 02508201610067 [00:49:20]line Контрольно-Кассовый Чек [00:49:20]line ПРОДАЖА [00:49:20]line ТРК (МРК, ГНК) : 22 [00:49:20]line Товар: 2710124130 [00:49:20]line Аи-92-К-5 [00:49:20]line 14.950 * 66.90 [00:49:20]line = 1000.16 [00:49:20]line НДС 12% НСП 1% [00:49:20]line > о реализуемом товаре [00:49:20]line ОКРУГЛЕНИЕ: -0.16 [00:49:20]line ИТОГО: 1000.00 [00:49:20]line Внесено: 1000.00 [00:49:20]line СДАЧА: 0.00 [00:49:20]line НСП 1% : 8.85 [00:49:20]line НДС 12% : 106.21 [00:49:20]line Наличными: 1000.00 [00:49:20]line Безнал.: 0.00 [00:49:20]line Место: АЗС № 85 "Партнер Нефть" [00:49:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:49:20]line СНО: Общий режим [00:49:20]line Чек 14 22.10.2024 00:49 [00:49:20]line Смена: 195 ФФД: 1.0 [00:49:20]line ЗНМ: 0300000167 [00:49:20]line РНМ: 0000000000156251 [00:49:20]line Версия ККМ: v1.0 [00:49:20]line ФМ: 0000000000963346 [00:49:20]line ФД: 70066 [00:49:20]line ФПД: 267815034200934 [00:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70066&fm=267815034200934&tin=02508201610067®Number=0000000000156251&sum=100000 [00:49:20]OFD Sender: Processing packet 70066 [packets to send 18, broken 17] [00:49:20]ProducePacketName [00:49:20]name=ofd_packets/00070066 [00:49:20]OFD Sender: To server: pG, [00:49:20]CommunicateWithHost lk.salyk.kg:30040 [00:49:20]ConnectInit lk.salyk.kg [00:49:20]written 0, free lines is 4095 [00:49:20]Connected sock=10 [00:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 D0 07 01 DC 7B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 91 F6 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 11 01 00 35 04 06 00 F3 93 8B FA A3 66 C9 01 D5 EC A3 FB EE D1 [00:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B4 16 47 00 12 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 39 36 33 33 34 36 10 04 04 00 B2 11 01 00 F4 03 04 00 33 A0 16 67 B6 04 01 00 00 3E EE 63 96 4A 55 98 B1 [00:49:20]CommunicateWithHost err = 0 [00:49:20]CheckOFDResponse [00:49:20]1017 (14) - 77093643461234 [00:49:20]1041 (16) - 0000000000963346 [00:49:20]1040 (4) - 70066 [00:49:20]1012 (4) - 21.10.2024 18:40 [00:49:20]1206 (1) - 0 [00:49:20]OFD Sender: Remove packet 70066 [00:49:20]ProducePacketName [00:49:20]name=ofd_packets/00070066 [00:49:20]NVStorageDeleteData [00:49:20]Write to MH i2c: 01 00 00 D1 35 06 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 D1 35 00 00 00 00 00 F0 0C 09 [00:49:20]RasterBufferAndPrint [00:49:20]line [00:49:20]line [00:49:20]line [00:49:20]line [00:49:20]line [00:49:20]written 0, free lines is 3318 [00:49:20]MH_Cut [00:49:20]Write to MH i2c: D1 01 00 D8 35 01 DF [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: D1 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: D1 01 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: D1 01 00 D8 35 00 DE [00:49:20]Write to MH i2c: 01 00 00 D9 35 0E [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:21]OFD Sender: No OFD packet to send [00:49:21]*** Cut start [00:49:21]*** Partial cut [00:49:21]*** CUTSNS_PIN = 1 [00:49:21]*** CUTSNS_PIN = 0 [00:49:21]*** Brake cut motor [00:49:22]Read from MH i2c: 01 [00:49:22]MH_I2C_Read... [00:49:22]*** Stop cut motor [00:49:22]*** Cut end [00:49:22]Read from MH i2c: 01 07 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: 01 07 00 D9 35 00 00 00 00 00 FF 0F 23 [00:49:22]process_action close_receipt done [00:49:22]requested_data is exist [00:49:22]produce_requested_data [00:49:22]requested_item fm.sn is exist - process it [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 11 00 00 [00:49:22]Write to MH i2c: E2 08 00 DA 35 80 11 00 00 00 00 00 00 89 [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 17 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 17 00 DA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [00:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:49:22]wFMCommunicate OK [00:49:22]requested_item fd.num is exist - process it [00:49:22]SAM_PROTO_GetFieldsCounters [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 13 00 00 [00:49:22]Write to MH i2c: E2 08 00 DB 35 80 13 00 00 00 00 00 00 8C [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 62 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 62 00 DB 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [00:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:22]wFMCommunicate OK [00:49:22]SAM_PROTO_GetFieldsCounters done [00:49:22]requested_item shift.num is exist - process it [00:49:22]requested_item shift.opened is exist - process it [00:49:22]req_shift_opened [00:49:22]FM_GetShiftState [00:49:22]SAM_PROTO_GetShiftState [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 13 01 00 [00:49:22]Write to MH i2c: E2 08 00 DC 35 80 13 01 00 00 00 00 00 8E [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 0E 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 0E 00 DC 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7C [00:49:22]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [00:49:22]wFMCommunicate OK [00:49:22]SAM_PROTO_GetShiftState done [00:49:22]FM_GetShiftState done [00:49:22]req_shift_opened done [00:49:22]requested_item shift.open_date is exist - process it [00:49:22]req_shift_open_date [00:49:22]req_shift_open_date done [00:49:22]produce_requested_data done [00:49:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70066,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [00:49:22]process_action_free close_receipt [00:49:22]json_value_free [00:49:22]json_value_free done [00:49:22]process_json_proto returns [00:49:22]Send response to host [00:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70066,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [00:49:22]free response buf [00:49:22]execute_script done [00:49:22]execute_script returns [00:49:22]free content buf [00:49:22]Sock 9.Close socket [00:49:22]Sock 9.Thread stoped [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]accept exits with 7 [01:04:51]New connection [01:04:51]New thread 3067170148 created [01:04:51]Thread 3067026788 joined [01:04:51]Waiting for new connection... [01:04:51] Sock 7.Parse request [01:04:51]Sock 7.Check first char [01:04:51]Sock 7.First char is OK [01:04:51]request: POST /json_proto HTTP/1.0 [01:04:51]Method: POST [01:04:51]URL: /json_proto [01:04:51]Method is POST - this is cgi request [01:04:51]url: /json_proto [01:04:51]query_string will be loaded in cgi processing [01:04:51]execute_cgi json_proto POST (null) [01:04:51]execute_cgi path=json_proto method=POST [01:04:51]POST find Content-Length [01:04:51]Host: 172.17.50.3:8080 [01:04:51]Content-Length: 686 [01:04:51]Content-Type: application/json [01:04:51] [01:04:51]POST finish read [01:04:51]Found Content-Length = 686 [01:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [01:04:51]execute_script... [01:04: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)2885833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "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" ] } } [01:04:51]POST & json_proto [01:04:51]process_json_proto [01:04:51]json parsed OK: [01:04:51]protocol is kg_v1.0 [01:04:51]action value=close_receipt [01:04:51]process_action close_receipt [01:04:51]cmd_close_receipt [01:04:51]MH_GetDate [01:04:51]Write to MH i2c: F0 00 00 DD 35 01 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: F0 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: F0 09 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: F0 09 00 DD 35 00 36 FA 16 67 6B 98 1E 66 3E [01:04:51]GetLastDocTimeStamp 1729558161 [01:04:51]current date 1729559094 [01:04:51]FM_GetShiftState [01:04:51]SAM_PROTO_GetShiftState [01:04:51]wFMCommunicate request_size=4 [01:04:51]MH_SAM_APDU [01:04:51]CAPDU: 80 13 01 00 [01:04:51]Write to MH i2c: E2 08 00 DE 35 80 13 01 00 00 00 00 00 90 [01:04:51]Write i2c OK [01:04:51]MH_I2C_Read... [01:04:51]OFD Sender: No OFD packet to send [01:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:51]Read from MH i2c: E2 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 0E 00 [01:04:51]MH_I2C_Read... [01:04:51]Read from MH i2c: E2 0E 00 DE 35 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 7E [01:04:51]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:04:51]wFMCommunicate OK [01:04:51]SAM_PROTO_GetShiftState done [01:04:51]FM_GetShiftState done [01:04:51]opened in 1729555832 [01:04:51]opened+sec_in_day 1729642232 [01:04:51]quantity*price = 200023 [01:04:51]sum+1 = 200025 [01:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 15 22.10.2024 01:04 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70067 ФПД: 69589411519135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70067&fm=69589411519135&tin=02508201610067®Number=0000000000156251&sum=200000 [01:04:53]StoreToDocumentArchive [01:04:53]shift 195 fd 70067 [01:04:53]save to /storage/0195/doc_00070067 [01:04:53]save last doc name /storage/0195/doc_00070067 to /storage/kkm_last_doc_name [01:04:53]save OK [01:04:53]Clear old archive folders... [01:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:04:53]tlvbuf is 0120E7A0 [01:04:53]SAM_PROTO_ClearQueue [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 09 00 00 [01:04:53]Write to MH i2c: E2 08 00 EB 35 80 09 00 00 00 00 00 00 92 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 EB 35 00 90 00 94 [01:04:53]RAPDU: 90 00 [01:04:53]wFMCommunicate OK [01:04:53]SAM_PROTO_ClearQueue done [01:04:53]KKMCreateOFDPacket [01:04:53]OFDProtocolAddRootSTLVToBuf [01:04:53]FM_MakeSignedData [01:04:53]FM_MakeSignedData [01:04:53]SAM_PROTO_SignData [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 0D 01 02 [01:04:53]Write to MH i2c: E2 08 00 EC 35 80 0D 01 02 00 00 00 00 9A [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [01:04:53]RAPDU: 90 00 [01:04:53]wFMCommunicate OK [01:04:53]wFMCommunicate request_size=255 [01:04:53]MH_SAM_APDU [01:04:53]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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 0F 00 00 00 F4 03 04 00 36 FA 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 11 01 00 35 04 06 00 3F 4A [01:04:53]Write to MH i2c: E2 02 01 ED 35 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 0F 00 00 00 F4 03 04 00 36 FA 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 11 01 00 35 04 06 00 3F 4A 00 00 41 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 ED 35 00 90 00 96 [01:04:53]RAPDU: 90 00 [01:04:53]wFMCommunicate OK [01:04:53]wFMCommunicate request_size=9 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 0D 02 02 04 8C 27 5A 9F [01:04:53]Write to MH i2c: E2 0C 00 EE 35 80 0D 02 02 04 00 8C 27 5A 9F 00 00 51 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 03 00 EE 35 00 90 00 97 [01:04:53]RAPDU: 90 00 [01:04:53]wFMCommunicate OK [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 0D 03 02 [01:04:53]Write to MH i2c: E2 08 00 EF 35 80 0D 03 02 00 00 00 00 9F [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 0B 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 0B 00 EF 35 00 19 FB 52 27 DE CF F8 E8 90 00 BA [01:04:53]RAPDU: 19 FB 52 27 DE CF F8 E8 90 00 [01:04:53]wFMCommunicate OK [01:04:53]SAM_PROTO_SignData done [01:04:53]FM_MakeSignedData done [01:04:53]CreateOFDProtocolMessage [01:04:53]wFMCommunicate request_size=4 [01:04:53]MH_SAM_APDU [01:04:53]CAPDU: 80 11 00 00 [01:04:53]Write to MH i2c: E2 08 00 F0 35 80 11 00 00 00 00 00 00 9F [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:53]Read from MH i2c: E2 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 17 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: E2 17 00 F0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [01:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:04:53]wFMCommunicate OK [01:04:53]CreateOFDProtocolMessage done [01:04:53]OFDSenderStorePacket 70067 [01:04:53]StoreOFDPacket docnum=70067 [01:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 77 AF 06 01 CB FB 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 0F 00 00 00 F4 03 04 00 36 FA 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 11 01 00 35 04 06 00 3F 4A 8C 27 5A 9F 19 FB 52 27 DE CF F8 E8 [01:04:53]CheckFolder [01:04:53]dirname=/storage/ofd_packets [01:04:53]CheckFolder done [01:04:53]ProducePacketName [01:04:53]name=ofd_packets/00070067 [01:04:53]NVStorageSaveData ofd_packets/00070067 [01:04:53]File name is /storage/ofd_packets/00070067 [01:04:53]Write 300 bytes [01:04:53]NVStorageSaveData done [01:04:53]OFDSenderStorePacket done [01:04:53]KKMCreateOFDPacket done [01:04:53]NVStorageSaveData kkm_last_timestamp [01:04:53]File name is /storage/kkm_last_timestamp [01:04:53]Write 4 bytes [01:04:53]NVStorageSaveData done [01:04:53]ExternCall_PrintAddStr [01:04:53]wPrintStart [01:04:53]Write to MH i2c: 01 00 00 F1 35 26 [01:04:53]Write i2c OK [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: 01 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: 01 07 00 [01:04:53]MH_I2C_Read... [01:04:53]Read from MH i2c: 01 07 00 F1 35 00 00 00 00 00 FF 0F 3B [01:04:53]RasterBufferAndPrint [01:04:53]line Счет N : (1)2885833 [01:04:53]line ИНН: 02508201610067 [01:04:53]line Контрольно-Кассовый Чек [01:04:53]line ПРОДАЖА [01:04:53]line ТРК (МРК, ГНК) : 71 [01:04:53]line Товар: 2711129700 [01:04:53]line ГАЗ-К-3 [01:04:53]line 51.420 * 38.90 [01:04:53]line = 2000.24 [01:04:53]line НДС 12% НСП 1% [01:04:53]line > о реализуемом товаре [01:04:53]line ОКРУГЛЕНИЕ: -0.24 [01:04:53]line ИТОГО: 2000.00 [01:04:53]line Внесено: 2000.00 [01:04:53]line СДАЧА: 0.00 [01:04:53]line НСП 1% : 17.70 [01:04:53]line НДС 12% : 212.41 [01:04:53]line Наличными: 2000.00 [01:04:53]line Безнал.: 0.00 [01:04:53]line Место: АЗС № 85 "Партнер Нефть" [01:04:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:04:53]line СНО: Общий режим [01:04:53]line Чек 15 22.10.2024 01:04 [01:04:53]line Смена: 195 ФФД: 1.0 [01:04:53]line ЗНМ: 0300000167 [01:04:53]line РНМ: 0000000000156251 [01:04:53]line Версия ККМ: v1.0 [01:04:53]line ФМ: 0000000000963346 [01:04:53]line ФД: 70067 [01:04:53]line ФПД: 69589411519135 [01:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70067&fm=69589411519135&tin=02508201610067®Number=0000000000156251&sum=200000 [01:04:53]OFD Sender: Processing packet 70067 [packets to send 18, broken 17] [01:04:53]ProducePacketName [01:04:53]name=ofd_packets/00070067 [01:04:53]OFD Sender: To server: pG, [01:04:53]CommunicateWithHost lk.salyk.kg:30040 [01:04:53]ConnectInit lk.salyk.kg [01:04:53]written 0, free lines is 4095 [01:04:54]Connected sock=10 [01:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 77 AF 06 01 CB FB 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 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 0F 00 00 00 F4 03 04 00 36 FA 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 11 01 00 35 04 06 00 3F 4A 8C 27 5A 9F 19 FB 52 27 DE CF F8 E8 [01:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 ED E3 47 00 0A 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 11 01 00 F4 03 04 00 D8 A3 16 67 B6 04 01 00 00 19 1B 33 D7 66 AC 8D F7 [01:04:54]CommunicateWithHost err = 0 [01:04:54]CheckOFDResponse [01:04:54]1017 (14) - 77093643461234 [01:04:54]1041 (16) - 0000000000963346 [01:04:54]1040 (4) - 70067 [01:04:54]1012 (4) - 21.10.2024 18:56 [01:04:54]1206 (1) - 0 [01:04:54]OFD Sender: Remove packet 70067 [01:04:54]ProducePacketName [01:04:54]name=ofd_packets/00070067 [01:04:54]NVStorageDeleteData [01:04:54]Write to MH i2c: 01 00 00 1C 36 52 [01:04:54]Write i2c OK [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: 01 [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: 01 07 00 [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: 01 07 00 1C 36 00 00 00 00 00 ED 0C 52 [01:04:54]RasterBufferAndPrint [01:04:54]line [01:04:54]line [01:04:54]line [01:04:54]line [01:04:54]line [01:04:54]written 0, free lines is 3315 [01:04:54]MH_Cut [01:04:54]Write to MH i2c: D1 01 00 23 36 01 2B [01:04:54]Write i2c OK [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: D1 [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: D1 01 00 [01:04:54]MH_I2C_Read... [01:04:54]Read from MH i2c: D1 01 00 23 36 00 2A [01:04:54]Write to MH i2c: 01 00 00 24 36 5A [01:04:54]Write i2c OK [01:04:54]MH_I2C_Read... [01:04:54]OFD Sender: No OFD packet to send [01:04:55]*** Cut start [01:04:55]*** Partial cut [01:04:55]*** CUTSNS_PIN = 1 [01:04:55]*** CUTSNS_PIN = 0 [01:04:55]*** Brake cut motor [01:04:55]Read from MH i2c: 01 [01:04:55]MH_I2C_Read... [01:04:55]*** Stop cut motor [01:04:55]*** Cut end [01:04:55]Read from MH i2c: 01 07 00 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: 01 07 00 24 36 00 00 00 00 00 FF 0F 6F [01:04:55]process_action close_receipt done [01:04:55]requested_data is exist [01:04:55]produce_requested_data [01:04:55]requested_item fm.sn is exist - process it [01:04:55]wFMCommunicate request_size=4 [01:04:55]MH_SAM_APDU [01:04:55]CAPDU: 80 11 00 00 [01:04:55]Write to MH i2c: E2 08 00 25 36 80 11 00 00 00 00 00 00 D5 [01:04:55]Write i2c OK [01:04:55]MH_I2C_Read... [01:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:55]Read from MH i2c: E2 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 17 00 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 17 00 25 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [01:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:04:55]wFMCommunicate OK [01:04:55]requested_item fd.num is exist - process it [01:04:55]SAM_PROTO_GetFieldsCounters [01:04:55]wFMCommunicate request_size=4 [01:04:55]MH_SAM_APDU [01:04:55]CAPDU: 80 13 00 00 [01:04:55]Write to MH i2c: E2 08 00 26 36 80 13 00 00 00 00 00 00 D8 [01:04:55]Write i2c OK [01:04:55]MH_I2C_Read... [01:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:55]Read from MH i2c: E2 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 62 00 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 62 00 26 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [01:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:04:55]wFMCommunicate OK [01:04:55]SAM_PROTO_GetFieldsCounters done [01:04:55]requested_item shift.num is exist - process it [01:04:55]requested_item shift.opened is exist - process it [01:04:55]req_shift_opened [01:04:55]FM_GetShiftState [01:04:55]SAM_PROTO_GetShiftState [01:04:55]wFMCommunicate request_size=4 [01:04:55]MH_SAM_APDU [01:04:55]CAPDU: 80 13 01 00 [01:04:55]Write to MH i2c: E2 08 00 27 36 80 13 01 00 00 00 00 00 DA [01:04:55]Write i2c OK [01:04:55]MH_I2C_Read... [01:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:55]Read from MH i2c: E2 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 0E 00 [01:04:55]MH_I2C_Read... [01:04:55]Read from MH i2c: E2 0E 00 27 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 C8 [01:04:55]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:04:55]wFMCommunicate OK [01:04:55]SAM_PROTO_GetShiftState done [01:04:55]FM_GetShiftState done [01:04:55]req_shift_opened done [01:04:55]requested_item shift.open_date is exist - process it [01:04:55]req_shift_open_date [01:04:55]req_shift_open_date done [01:04:55]produce_requested_data done [01:04:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70067,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [01:04:55]process_action_free close_receipt [01:04:55]json_value_free [01:04:55]json_value_free done [01:04:55]process_json_proto returns [01:04:55]Send response to host [01:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70067,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [01:04:55]free response buf [01:04:55]execute_script done [01:04:55]execute_script returns [01:04:55]free content buf [01:04:55]Sock 7.Close socket [01:04:56]Sock 7.Thread stoped [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]accept exits with 9 [01:08:44]New connection [01:08:44]New thread 3067026788 created [01:08:44]Thread 3067170148 joined [01:08:44]Waiting for new connection... [01:08:44] Sock 9.Parse request [01:08:44]Sock 9.Check first char [01:08:44]Sock 9.First char is OK [01:08:44]request: POST /json_proto HTTP/1.0 [01:08:44]Method: POST [01:08:44]URL: /json_proto [01:08:44]Method is POST - this is cgi request [01:08:44]url: /json_proto [01:08:44]query_string will be loaded in cgi processing [01:08:44]execute_cgi json_proto POST (null) [01:08:44]execute_cgi path=json_proto method=POST [01:08:44]POST find Content-Length [01:08:44]Host: 172.17.50.3:8080 [01:08:44]Content-Length: 678 [01:08:44]Content-Type: application/json [01:08:44] [01:08:44]POST finish read [01:08:44]Found Content-Length = 678 [01:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:44]execute_script... [01:08:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:44]POST & json_proto [01:08:44]process_json_proto [01:08:44]json parsed OK: [01:08:44]protocol is kg_v1.0 [01:08:44]action value=close_receipt [01:08:44]process_action close_receipt [01:08:44]cmd_close_receipt [01:08:44]MH_GetDate [01:08:44]Write to MH i2c: F0 00 00 28 36 4D [01:08:44]Write i2c OK [01:08:44]MH_I2C_Read... [01:08:44]Read from MH i2c: F0 [01:08:44]MH_I2C_Read... [01:08:44]Read from MH i2c: F0 09 00 [01:08:44]MH_I2C_Read... [01:08:44]Read from MH i2c: F0 09 00 28 36 00 1E FB 16 67 6B 98 1E 66 73 [01:08:44]GetLastDocTimeStamp 1729559094 [01:08:44]current date 1729559326 [01:08:44]FM_GetShiftState [01:08:44]SAM_PROTO_GetShiftState [01:08:44]wFMCommunicate request_size=4 [01:08:44]MH_SAM_APDU [01:08:44]CAPDU: 80 13 01 00 [01:08:44]Write to MH i2c: E2 08 00 29 36 80 13 01 00 00 00 00 00 DC [01:08:44]Write i2c OK [01:08:44]MH_I2C_Read... [01:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:44]Read from MH i2c: E2 [01:08:44]MH_I2C_Read... [01:08:44]Read from MH i2c: E2 0E 00 [01:08:44]MH_I2C_Read... [01:08:44]Read from MH i2c: E2 0E 00 29 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 CA [01:08:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:08:44]wFMCommunicate OK [01:08:44]SAM_PROTO_GetShiftState done [01:08:44]FM_GetShiftState done [01:08:44]opened in 1729555832 [01:08:44]opened+sec_in_day 1729642232 [01:08:44]quantity*price = 50010 [01:08:44]sum+1 = 50012 [01:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 16 22.10.2024 01:08 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70068 ФПД: 4340517396928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70068&fm=4340517396928&tin=02508201610067®Number=0000000000156251&sum=50000 [01:08:45]StoreToDocumentArchive [01:08:45]shift 195 fd 70068 [01:08:45]save to /storage/0195/doc_00070068 [01:08:45]save last doc name /storage/0195/doc_00070068 to /storage/kkm_last_doc_name [01:08:45]save OK [01:08:45]Clear old archive folders... [01:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:45]tlvbuf is 01203220 [01:08:45]SAM_PROTO_ClearQueue [01:08:45]wFMCommunicate request_size=4 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 09 00 00 [01:08:45]Write to MH i2c: E2 08 00 36 36 80 09 00 00 00 00 00 00 DE [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 36 36 00 90 00 E0 [01:08:45]RAPDU: 90 00 [01:08:45]wFMCommunicate OK [01:08:45]SAM_PROTO_ClearQueue done [01:08:45]KKMCreateOFDPacket [01:08:45]OFDProtocolAddRootSTLVToBuf [01:08:45]FM_MakeSignedData [01:08:45]FM_MakeSignedData [01:08:45]SAM_PROTO_SignData [01:08:45]wFMCommunicate request_size=4 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 0D 01 02 [01:08:45]Write to MH i2c: E2 08 00 37 36 80 0D 01 02 00 00 00 00 E6 [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:45]Read from MH i2c: E2 03 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 37 36 00 90 00 E1 [01:08:45]RAPDU: 90 00 [01:08:45]wFMCommunicate OK [01:08:45]wFMCommunicate request_size=255 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1E FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 11 01 00 35 04 06 00 03 [01:08:45]Write to MH i2c: E2 02 01 38 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1E FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 11 01 00 35 04 06 00 03 00 00 79 [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:45]Read from MH i2c: E2 03 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 38 36 00 90 00 E2 [01:08:45]RAPDU: 90 00 [01:08:45]wFMCommunicate OK [01:08:45]wFMCommunicate request_size=10 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 0D 02 02 05 F2 9A FF 61 C0 [01:08:45]Write to MH i2c: E2 0D 00 39 36 80 0D 02 02 05 00 F2 9A FF 61 C0 00 00 9F [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [01:08:45]RAPDU: 90 00 [01:08:45]wFMCommunicate OK [01:08:45]wFMCommunicate request_size=4 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 0D 03 02 [01:08:45]Write to MH i2c: E2 08 00 3A 36 80 0D 03 02 00 00 00 00 EB [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 0B 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 0B 00 3A 36 00 8A 75 CE 35 F7 60 7E A2 90 00 65 [01:08:45]RAPDU: 8A 75 CE 35 F7 60 7E A2 90 00 [01:08:45]wFMCommunicate OK [01:08:45]SAM_PROTO_SignData done [01:08:45]FM_MakeSignedData done [01:08:45]CreateOFDProtocolMessage [01:08:45]wFMCommunicate request_size=4 [01:08:45]MH_SAM_APDU [01:08:45]CAPDU: 80 11 00 00 [01:08:45]Write to MH i2c: E2 08 00 3B 36 80 11 00 00 00 00 00 00 EB [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:45]Read from MH i2c: E2 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 17 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: E2 17 00 3B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [01:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:08:45]wFMCommunicate OK [01:08:45]CreateOFDProtocolMessage done [01:08:45]OFDSenderStorePacket 70068 [01:08:45]StoreOFDPacket docnum=70068 [01:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 18 07 01 D0 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1E FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 11 01 00 35 04 06 00 03 F2 9A FF 61 C0 8A 75 CE 35 F7 60 7E A2 [01:08:45]CheckFolder [01:08:45]dirname=/storage/ofd_packets [01:08:45]CheckFolder done [01:08:45]ProducePacketName [01:08:45]name=ofd_packets/00070068 [01:08:45]NVStorageSaveData ofd_packets/00070068 [01:08:45]File name is /storage/ofd_packets/00070068 [01:08:45]Write 301 bytes [01:08:45]NVStorageSaveData done [01:08:45]OFDSenderStorePacket done [01:08:45]KKMCreateOFDPacket done [01:08:45]NVStorageSaveData kkm_last_timestamp [01:08:45]File name is /storage/kkm_last_timestamp [01:08:45]Write 4 bytes [01:08:45]NVStorageSaveData done [01:08:45]ExternCall_PrintAddStr [01:08:45]wPrintStart [01:08:45]Write to MH i2c: 01 00 00 3C 36 72 [01:08:45]Write i2c OK [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: 01 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: 01 07 00 [01:08:45]MH_I2C_Read... [01:08:45]Read from MH i2c: 01 07 00 3C 36 00 00 00 00 00 FF 0F 87 [01:08:45]RasterBufferAndPrint [01:08:45]line Счет N : (1)2885834 [01:08:45]line ИНН: 02508201610067 [01:08:45]line Контрольно-Кассовый Чек [01:08:45]line ПРОДАЖА [01:08:45]line ТРК (МРК, ГНК) : 23 [01:08:45]line Товар: 2710124500 [01:08:45]line Аи-95-К-5 [01:08:45]line 6.740 * 74.20 [01:08:45]line = 500.11 [01:08:45]line НДС 12% НСП 1% [01:08:45]line > о реализуемом товаре [01:08:45]line ОКРУГЛЕНИЕ: -0.11 [01:08:45]line ИТОГО: 500.00 [01:08:45]line Внесено: 500.00 [01:08:45]line СДАЧА: 0.00 [01:08:45]line НСП 1% : 4.43 [01:08:45]line НДС 12% : 53.11 [01:08:45]line Наличными: 500.00 [01:08:45]line Безнал.: 0.00 [01:08:45]line Место: АЗС № 85 "Партнер Нефть" [01:08:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:08:45]line СНО: Общий режим [01:08:45]line Чек 16 22.10.2024 01:08 [01:08:45]line Смена: 195 ФФД: 1.0 [01:08:45]line ЗНМ: 0300000167 [01:08:45]line РНМ: 0000000000156251 [01:08:45]line Версия ККМ: v1.0 [01:08:45]line ФМ: 0000000000963346 [01:08:45]line ФД: 70068 [01:08:45]line ФПД: 4340517396928 [01:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70068&fm=4340517396928&tin=02508201610067®Number=0000000000156251&sum=50000 [01:08:45]written 0, free lines is 4095 [01:08:45]OFD Sender: Processing packet 70068 [packets to send 18, broken 17] [01:08:45]ProducePacketName [01:08:45]name=ofd_packets/00070068 [01:08:45]OFD Sender: To server: pG, [01:08:45]CommunicateWithHost lk.salyk.kg:30040 [01:08:45]ConnectInit lk.salyk.kg [01:08:45]Connected sock=7 [01:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 18 07 01 D0 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 1E FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 11 01 00 35 04 06 00 03 F2 9A FF 61 C0 8A 75 CE 35 F7 60 7E A2 [01:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2F 4B 47 00 A9 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 39 36 33 33 34 36 10 04 04 00 B4 11 01 00 F4 03 04 00 C0 A4 16 67 B6 04 01 00 00 0C 8D DA 97 23 AD 6E 0F [01:08:46]CommunicateWithHost err = 0 [01:08:46]CheckOFDResponse [01:08:46]1017 (14) - 77093643461234 [01:08:46]1041 (16) - 0000000000963346 [01:08:46]1040 (4) - 70068 [01:08:46]1012 (4) - 21.10.2024 19:00 [01:08:46]1206 (1) - 0 [01:08:46]OFD Sender: Remove packet 70068 [01:08:46]ProducePacketName [01:08:46]name=ofd_packets/00070068 [01:08:46]NVStorageDeleteData [01:08:46]Write to MH i2c: 01 00 00 67 36 9D [01:08:46]Write i2c OK [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: 01 [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: 01 07 00 [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: 01 07 00 67 36 00 00 00 00 00 F6 0C A6 [01:08:46]RasterBufferAndPrint [01:08:46]line [01:08:46]line [01:08:46]line [01:08:46]line [01:08:46]line [01:08:46]written 0, free lines is 3324 [01:08:46]MH_Cut [01:08:46]Write to MH i2c: D1 01 00 6E 36 01 76 [01:08:46]Write i2c OK [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: D1 [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: D1 01 00 [01:08:46]MH_I2C_Read... [01:08:46]Read from MH i2c: D1 01 00 6E 36 00 75 [01:08:46]Write to MH i2c: 01 00 00 6F 36 A5 [01:08:46]Write i2c OK [01:08:46]MH_I2C_Read... [01:08:46]OFD Sender: No OFD packet to send [01:08:46]*** Cut start [01:08:46]*** Partial cut [01:08:46]*** CUTSNS_PIN = 1 [01:08:47]*** CUTSNS_PIN = 0 [01:08:47]*** Brake cut motor [01:08:47]Read from MH i2c: 01 [01:08:47]MH_I2C_Read... [01:08:47]*** Stop cut motor [01:08:47]*** Cut end [01:08:47]Read from MH i2c: 01 07 00 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: 01 07 00 6F 36 00 00 00 00 00 FF 0F BA [01:08:47]process_action close_receipt done [01:08:47]requested_data is exist [01:08:47]produce_requested_data [01:08:47]requested_item fm.sn is exist - process it [01:08:47]wFMCommunicate request_size=4 [01:08:47]MH_SAM_APDU [01:08:47]CAPDU: 80 11 00 00 [01:08:47]Write to MH i2c: E2 08 00 70 36 80 11 00 00 00 00 00 00 20 [01:08:47]Write i2c OK [01:08:47]MH_I2C_Read... [01:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:47]Read from MH i2c: E2 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 17 00 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 17 00 70 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [01:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:08:47]wFMCommunicate OK [01:08:47]requested_item fd.num is exist - process it [01:08:47]SAM_PROTO_GetFieldsCounters [01:08:47]wFMCommunicate request_size=4 [01:08:47]MH_SAM_APDU [01:08:47]CAPDU: 80 13 00 00 [01:08:47]Write to MH i2c: E2 08 00 71 36 80 13 00 00 00 00 00 00 23 [01:08:47]Write i2c OK [01:08:47]MH_I2C_Read... [01:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:47]Read from MH i2c: E2 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 62 00 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 62 00 71 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [01:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:47]wFMCommunicate OK [01:08:47]SAM_PROTO_GetFieldsCounters done [01:08:47]requested_item shift.num is exist - process it [01:08:47]requested_item shift.opened is exist - process it [01:08:47]req_shift_opened [01:08:47]FM_GetShiftState [01:08:47]SAM_PROTO_GetShiftState [01:08:47]wFMCommunicate request_size=4 [01:08:47]MH_SAM_APDU [01:08:47]CAPDU: 80 13 01 00 [01:08:47]Write to MH i2c: E2 08 00 72 36 80 13 01 00 00 00 00 00 25 [01:08:47]Write i2c OK [01:08:47]MH_I2C_Read... [01:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:47]Read from MH i2c: E2 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 0E 00 [01:08:47]MH_I2C_Read... [01:08:47]Read from MH i2c: E2 0E 00 72 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 13 [01:08:47]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:08:47]wFMCommunicate OK [01:08:47]SAM_PROTO_GetShiftState done [01:08:47]FM_GetShiftState done [01:08:47]req_shift_opened done [01:08:47]requested_item shift.open_date is exist - process it [01:08:47]req_shift_open_date [01:08:47]req_shift_open_date done [01:08:47]produce_requested_data done [01:08:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70068,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [01:08:47]process_action_free close_receipt [01:08:47]json_value_free [01:08:47]json_value_free done [01:08:47]process_json_proto returns [01:08:47]Send response to host [01:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70068,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [01:08:47]free response buf [01:08:47]execute_script done [01:08:47]execute_script returns [01:08:47]free content buf [01:08:47]Sock 9.Close socket [01:08:47]Sock 9.Thread stoped [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:23]accept exits with 10 [01:10:23]New connection [01:10:23]New thread 3067170148 created [01:10:23]Thread 3067026788 joined [01:10:23]Waiting for new connection... [01:10:23] Sock 10.Parse request [01:10:23]Sock 10.Check first char [01:10:23]Sock 10.First char is OK [01:10:23]request: POST /json_proto HTTP/1.0 [01:10:23]Method: POST [01:10:23]URL: /json_proto [01:10:23]Method is POST - this is cgi request [01:10:23]url: /json_proto [01:10:23]query_string will be loaded in cgi processing [01:10:23]execute_cgi json_proto POST (null) [01:10:23]execute_cgi path=json_proto method=POST [01:10:23]POST find Content-Length [01:10:23]Host: 172.17.50.3:8080 [01:10:23]Content-Length: 755 [01:10:23]Content-Type: application/json [01:10:23] [01:10:23]POST finish read [01:10:23]Found Content-Length = 755 [01:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885835", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026019", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:23]execute_script... [01:10:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885835", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026019", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:23]POST & json_proto [01:10:23]process_json_proto [01:10:23]json parsed OK: [01:10:23]protocol is kg_v1.0 [01:10:23]action value=close_receipt [01:10:23]process_action close_receipt [01:10:23]cmd_close_receipt [01:10:23]MH_GetDate [01:10:23]Write to MH i2c: F0 00 00 73 36 98 [01:10:23]Write i2c OK [01:10:23]MH_I2C_Read... [01:10:23]Read from MH i2c: F0 [01:10:23]MH_I2C_Read... [01:10:23]Read from MH i2c: F0 09 00 [01:10:23]MH_I2C_Read... [01:10:23]Read from MH i2c: F0 09 00 73 36 00 82 FB 16 67 6B 98 1E 66 22 [01:10:23]GetLastDocTimeStamp 1729559326 [01:10:23]current date 1729559426 [01:10:23]FM_GetShiftState [01:10:23]SAM_PROTO_GetShiftState [01:10:23]wFMCommunicate request_size=4 [01:10:23]MH_SAM_APDU [01:10:23]CAPDU: 80 13 01 00 [01:10:23]Write to MH i2c: E2 08 00 74 36 80 13 01 00 00 00 00 00 27 [01:10:23]Write i2c OK [01:10:23]MH_I2C_Read... [01:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:23]Read from MH i2c: E2 [01:10:23]MH_I2C_Read... [01:10:23]Read from MH i2c: E2 0E 00 [01:10:23]MH_I2C_Read... [01:10:23]Read from MH i2c: E2 0E 00 74 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 15 [01:10:23]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:10:23]wFMCommunicate OK [01:10:23]SAM_PROTO_GetShiftState done [01:10:23]FM_GetShiftState done [01:10:23]opened in 1729555832 [01:10:23]opened+sec_in_day 1729642232 [01:10:23]quantity*price = 0 [01:10:23]sum+1 = 1 [01:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 17 22.10.2024 01:10 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30026019 ФМ: 0000000000963346 ФД: 70069 ФПД: 194055206881515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70069&fm=194055206881515&tin=02508201610067®Number=0000000000156251&sum=0 [01:10:24]StoreToDocumentArchive [01:10:24]shift 195 fd 70069 [01:10:24]save to /storage/0195/doc_00070069 [01:10:24]save last doc name /storage/0195/doc_00070069 to /storage/kkm_last_doc_name [01:10:24]save OK [01:10:24]Clear old archive folders... [01:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:10:24]tlvbuf is 01133D30 [01:10:24]SAM_PROTO_ClearQueue [01:10:24]wFMCommunicate request_size=4 [01:10:24]MH_SAM_APDU [01:10:24]CAPDU: 80 09 00 00 [01:10:24]Write to MH i2c: E2 08 00 81 36 80 09 00 00 00 00 00 00 29 [01:10:24]Write i2c OK [01:10:24]MH_I2C_Read... [01:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:24]Read from MH i2c: E2 [01:10:24]MH_I2C_Read... [01:10:24]Read from MH i2c: E2 03 00 [01:10:24]MH_I2C_Read... [01:10:24]Read from MH i2c: E2 03 00 81 36 00 90 00 2B [01:10:24]RAPDU: 90 00 [01:10:24]wFMCommunicate OK [01:10:24]SAM_PROTO_ClearQueue done [01:10:24]KKMCreateOFDPacket [01:10:24]OFDProtocolAddRootSTLVToBuf [01:10:24]FM_MakeSignedData [01:10:24]FM_MakeSignedData [01:10:24]SAM_PROTO_SignData [01:10:24]wFMCommunicate request_size=4 [01:10:24]MH_SAM_APDU [01:10:24]CAPDU: 80 0D 01 02 [01:10:24]Write to MH i2c: E2 08 00 82 36 80 0D 01 02 00 00 00 00 31 [01:10:24]Write i2c OK [01:10:24]MH_I2C_Read... [01:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:24]Read from MH i2c: E2 [01:10:24]MH_I2C_Read... [01:10:24]Read from MH i2c: E2 03 00 [01:10:24]MH_I2C_Read... [01:10:24]Read from MH i2c: E2 03 00 82 36 00 90 00 2C [01:10:24]RAPDU: 90 00 [01:10:24]wFMCommunicate OK [01:10:24]wFMCommunicate request_size=255 [01:10:24]MH_SAM_APDU [01:10:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 82 FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 11 01 00 35 04 06 00 B0 [01:10:24]Write to MH i2c: E2 02 01 83 36 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 82 FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 11 01 00 35 04 06 00 B0 00 00 1F [01:10:24]Write i2c OK [01:10:24]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [01:10:25]RAPDU: 90 00 [01:10:25]wFMCommunicate OK [01:10:25]wFMCommunicate request_size=10 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 0D 02 02 05 7D FF AC 48 EB [01:10:25]Write to MH i2c: E2 0D 00 84 36 80 0D 02 02 05 00 7D FF AC 48 EB 00 00 99 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 84 36 00 90 00 2E [01:10:25]RAPDU: 90 00 [01:10:25]wFMCommunicate OK [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 0D 03 02 [01:10:25]Write to MH i2c: E2 08 00 85 36 80 0D 03 02 00 00 00 00 36 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0B 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 0B 00 85 36 00 00 31 0D B0 48 89 14 05 90 00 0F [01:10:25]RAPDU: 00 31 0D B0 48 89 14 05 90 00 [01:10:25]wFMCommunicate OK [01:10:25]SAM_PROTO_SignData done [01:10:25]FM_MakeSignedData done [01:10:25]CreateOFDProtocolMessage [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 11 00 00 [01:10:25]Write to MH i2c: E2 08 00 86 36 80 11 00 00 00 00 00 00 36 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 17 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 17 00 86 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [01:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:10:25]wFMCommunicate OK [01:10:25]CreateOFDProtocolMessage done [01:10:25]OFDSenderStorePacket 70069 [01:10:25]StoreOFDPacket docnum=70069 [01:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 4C 07 01 A7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 82 FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 11 01 00 35 04 06 00 B0 7D FF AC 48 EB 00 31 0D B0 48 89 14 05 [01:10:25]CheckFolder [01:10:25]dirname=/storage/ofd_packets [01:10:25]CheckFolder done [01:10:25]ProducePacketName [01:10:25]name=ofd_packets/00070069 [01:10:25]NVStorageSaveData ofd_packets/00070069 [01:10:25]File name is /storage/ofd_packets/00070069 [01:10:25]Write 301 bytes [01:10:25]NVStorageSaveData done [01:10:25]OFDSenderStorePacket done [01:10:25]KKMCreateOFDPacket done [01:10:25]NVStorageSaveData kkm_last_timestamp [01:10:25]File name is /storage/kkm_last_timestamp [01:10:25]Write 4 bytes [01:10:25]NVStorageSaveData done [01:10:25]ExternCall_PrintAddStr [01:10:25]wPrintStart [01:10:25]Write to MH i2c: 01 00 00 87 36 BD [01:10:25]OFD Sender: Processing packet 70069 [packets to send 18, broken 17] [01:10:25]ProducePacketName [01:10:25]name=ofd_packets/00070069 [01:10:25]OFD Sender: To server: pG, [01:10:25]CommunicateWithHost lk.salyk.kg:30040 [01:10:25]ConnectInit lk.salyk.kg [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: 01 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: 01 07 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: 01 07 00 87 36 00 00 00 00 00 FF 0F D2 [01:10:25]RasterBufferAndPrint [01:10:25]line Счет N : (1)2885835 [01:10:25]line ИНН: 02508201610067 [01:10:25]line Контрольно-Кассовый Чек [01:10:25]line ПРОДАЖА [01:10:25]line ТРК (МРК, ГНК) : 32 [01:10:25]line Товар: 2710124130 [01:10:25]line Аи-92-К-5 [01:10:25]line 30.000 * 0.00 [01:10:25]line = 0.00 [01:10:25]line НДС 12% НСП 1% [01:10:25]line > о реализуемом товаре [01:10:25]line ИТОГО: 0.00 [01:10:25]line НСП 1% : 0.00 [01:10:25]line НДС 12% : 0.00 [01:10:25]line Наличными: 0.00 [01:10:25]line Безнал.: 0.00 [01:10:25]line Место: АЗС № 85 "Партнер Нефть" [01:10:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:10:25]line СНО: Общий режим [01:10:25]line Чек 17 22.10.2024 01:10 [01:10:25]line Смена: 195 ФФД: 1.0 [01:10:25]line ЗНМ: 0300000167 [01:10:25]line РНМ: 0000000000156251 [01:10:25]line Версия ККМ: v1.0 [01:10:25]line Талоны: ТК ГПНА Online [01:10:25]line 30026019 [01:10:25]line ФМ: 0000000000963346 [01:10:25]line ФД: 70069 [01:10:25]line ФПД: 194055206881515 [01:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70069&fm=194055206881515&tin=02508201610067®Number=0000000000156251&sum=0 [01:10:25]Connected sock=9 [01:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 4C 07 01 A7 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 82 FB 16 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 11 01 00 35 04 06 00 B0 7D FF AC 48 EB 00 31 0D B0 48 89 14 05 [01:10:25]written 0, free lines is 4095 [01:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1C 42 47 00 77 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 39 36 33 33 34 36 10 04 04 00 B5 11 01 00 F4 03 04 00 24 A5 16 67 B6 04 01 00 00 3C 7F 47 27 16 60 48 74 [01:10:25]CommunicateWithHost err = 0 [01:10:25]CheckOFDResponse [01:10:25]1017 (14) - 77093643461234 [01:10:25]1041 (16) - 0000000000963346 [01:10:25]1040 (4) - 70069 [01:10:25]1012 (4) - 21.10.2024 19:01 [01:10:25]1206 (1) - 0 [01:10:25]OFD Sender: Remove packet 70069 [01:10:25]ProducePacketName [01:10:25]name=ofd_packets/00070069 [01:10:25]NVStorageDeleteData [01:10:26]Write to MH i2c: 01 00 00 B1 36 E7 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 07 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 07 00 B1 36 00 00 00 00 00 FE 0C F8 [01:10:26]RasterBufferAndPrint [01:10:26]line [01:10:26]line [01:10:26]line [01:10:26]line [01:10:26]line [01:10:26]written 0, free lines is 3332 [01:10:26]MH_Cut [01:10:26]Write to MH i2c: D1 01 00 B8 36 01 C0 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: D1 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: D1 01 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: D1 01 00 B8 36 00 BF [01:10:26]Write to MH i2c: 01 00 00 B9 36 EF [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]OFD Sender: No OFD packet to send [01:10:26]*** Cut start [01:10:26]*** Partial cut [01:10:26]*** CUTSNS_PIN = 1 [01:10:26]*** CUTSNS_PIN = 0 [01:10:27]*** Brake cut motor [01:10:27]Read from MH i2c: 01 [01:10:27]MH_I2C_Read... [01:10:27]*** Stop cut motor [01:10:27]*** Cut end [01:10:27]Read from MH i2c: 01 07 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 B9 36 00 00 00 00 00 FF 0F 04 [01:10:27]process_action close_receipt done [01:10:27]requested_data is exist [01:10:27]produce_requested_data [01:10:27]requested_item fm.sn is exist - process it [01:10:27]wFMCommunicate request_size=4 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 11 00 00 [01:10:27]Write to MH i2c: E2 08 00 BA 36 80 11 00 00 00 00 00 00 6A [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 17 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 17 00 BA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [01:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:10:27]wFMCommunicate OK [01:10:27]requested_item fd.num is exist - process it [01:10:27]SAM_PROTO_GetFieldsCounters [01:10:27]wFMCommunicate request_size=4 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 13 00 00 [01:10:27]Write to MH i2c: E2 08 00 BB 36 80 13 00 00 00 00 00 00 6D [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 62 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 62 00 BB 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [01:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:10:27]wFMCommunicate OK [01:10:27]SAM_PROTO_GetFieldsCounters done [01:10:27]requested_item shift.num is exist - process it [01:10:27]requested_item shift.opened is exist - process it [01:10:27]req_shift_opened [01:10:27]FM_GetShiftState [01:10:27]SAM_PROTO_GetShiftState [01:10:27]wFMCommunicate request_size=4 [01:10:27]MH_SAM_APDU [01:10:27]CAPDU: 80 13 01 00 [01:10:27]Write to MH i2c: E2 08 00 BC 36 80 13 01 00 00 00 00 00 6F [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:27]Read from MH i2c: E2 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 0E 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: E2 0E 00 BC 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5D [01:10:27]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:10:27]wFMCommunicate OK [01:10:27]SAM_PROTO_GetShiftState done [01:10:27]FM_GetShiftState done [01:10:27]req_shift_opened done [01:10:27]requested_item shift.open_date is exist - process it [01:10:27]req_shift_open_date [01:10:27]req_shift_open_date done [01:10:27]produce_requested_data done [01:10:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70069,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [01:10:27]process_action_free close_receipt [01:10:27]json_value_free [01:10:27]json_value_free done [01:10:27]process_json_proto returns [01:10:27]Send response to host [01:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70069,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [01:10:27]free response buf [01:10:27]execute_script done [01:10:27]execute_script returns [01:10:27]free content buf [01:10:27]Sock 10.Close socket [01:10:27]Sock 10.Thread stoped [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:03]accept exits with 7 [01:41:03]New connection [01:41:03]New thread 3067026788 created [01:41:03]Thread 3067170148 joined [01:41:03]Waiting for new connection... [01:41:03] Sock 7.Parse request [01:41:03]Sock 7.Check first char [01:41:03]Sock 7.First char is OK [01:41:03]request: POST /json_proto HTTP/1.0 [01:41:03]Method: POST [01:41:03]URL: /json_proto [01:41:03]Method is POST - this is cgi request [01:41:03]url: /json_proto [01:41:03]query_string will be loaded in cgi processing [01:41:03]execute_cgi json_proto POST (null) [01:41:03]execute_cgi path=json_proto method=POST [01:41:03]POST find Content-Length [01:41:03]Host: 172.17.50.3:8080 [01:41:03]Content-Length: 679 [01:41:03]Content-Type: application/json [01:41:03] [01:41:03]POST finish read [01:41:03]Found Content-Length = 679 [01:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885836", "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" : 66.90, "quantity" : 10.840, "sum" : 725.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:03]execute_script... [01:41: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)2885836", "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" : 66.90, "quantity" : 10.840, "sum" : 725.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:03]POST & json_proto [01:41:03]process_json_proto [01:41:03]json parsed OK: [01:41:03]protocol is kg_v1.0 [01:41:03]action value=close_receipt [01:41:03]process_action close_receipt [01:41:03]cmd_close_receipt [01:41:03]MH_GetDate [01:41:03]Write to MH i2c: F0 00 00 BD 36 E2 [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: F0 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: F0 09 00 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: F0 09 00 BD 36 00 B1 02 17 67 6B 98 1E 66 A3 [01:41:03]GetLastDocTimeStamp 1729559426 [01:41:03]current date 1729561265 [01:41:03]FM_GetShiftState [01:41:03]SAM_PROTO_GetShiftState [01:41:03]wFMCommunicate request_size=4 [01:41:03]MH_SAM_APDU [01:41:03]CAPDU: 80 13 01 00 [01:41:03]Write to MH i2c: E2 08 00 BE 36 80 13 01 00 00 00 00 00 71 [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:03]Read from MH i2c: E2 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: E2 0E 00 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: E2 0E 00 BE 36 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 5F [01:41:03]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:41:03]wFMCommunicate OK [01:41:03]SAM_PROTO_GetShiftState done [01:41:03]FM_GetShiftState done [01:41:03]opened in 1729555832 [01:41:03]opened+sec_in_day 1729642232 [01:41:03]quantity*price = 72519 [01:41:03]sum+1 = 72521 [01:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 725.00 Внесено: 770.00 СДАЧА: 45.00 НСП 1% : 6.42 НДС 12% : 77.01 Наличными: 725.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 18 22.10.2024 01:41 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70070 ФПД: 268175998982701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T014105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70070&fm=268175998982701&tin=02508201610067®Number=0000000000156251&sum=72500 [01:41:04]StoreToDocumentArchive [01:41:04]shift 195 fd 70070 [01:41:04]save to /storage/0195/doc_00070070 [01:41:04]save last doc name /storage/0195/doc_00070070 to /storage/kkm_last_doc_name [01:41:04]save OK [01:41:04]Clear old archive folders... [01:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:41:04]tlvbuf is B6DDD480 [01:41:04]SAM_PROTO_ClearQueue [01:41:04]wFMCommunicate request_size=4 [01:41:04]MH_SAM_APDU [01:41:04]CAPDU: 80 09 00 00 [01:41:04]Write to MH i2c: E2 08 00 CB 36 80 09 00 00 00 00 00 00 73 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 CB 36 00 90 00 75 [01:41:04]RAPDU: 90 00 [01:41:04]wFMCommunicate OK [01:41:04]SAM_PROTO_ClearQueue done [01:41:04]KKMCreateOFDPacket [01:41:04]OFDProtocolAddRootSTLVToBuf [01:41:04]FM_MakeSignedData [01:41:04]FM_MakeSignedData [01:41:04]SAM_PROTO_SignData [01:41:04]wFMCommunicate request_size=4 [01:41:04]MH_SAM_APDU [01:41:04]CAPDU: 80 0D 01 02 [01:41:04]Write to MH i2c: E2 08 00 CC 36 80 0D 01 02 00 00 00 00 7B [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 CC 36 00 90 00 76 [01:41:04]RAPDU: 90 00 [01:41:04]wFMCommunicate OK [01:41:04]wFMCommunicate request_size=255 [01:41:04]MH_SAM_APDU [01:41: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 58 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B1 02 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 11 01 00 35 04 06 00 F3 [01:41:04]Write to MH i2c: E2 02 01 CD 36 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 58 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B1 02 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 11 01 00 35 04 06 00 F3 00 00 B9 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 CD 36 00 90 00 77 [01:41:04]RAPDU: 90 00 [01:41:04]wFMCommunicate OK [01:41:04]wFMCommunicate request_size=10 [01:41:04]MH_SAM_APDU [01:41:04]CAPDU: 80 0D 02 02 05 E7 97 28 1A 2D [01:41:04]Write to MH i2c: E2 0D 00 CE 36 80 0D 02 02 05 00 E7 97 28 1A 2D 00 00 75 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [01:41:04]RAPDU: 90 00 [01:41:04]wFMCommunicate OK [01:41:04]wFMCommunicate request_size=4 [01:41:04]MH_SAM_APDU [01:41:04]CAPDU: 80 0D 03 02 [01:41:04]Write to MH i2c: E2 08 00 CF 36 80 0D 03 02 00 00 00 00 80 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 0B 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 0B 00 CF 36 00 82 74 51 0E D8 2B 06 95 90 00 74 [01:41:04]RAPDU: 82 74 51 0E D8 2B 06 95 90 00 [01:41:04]wFMCommunicate OK [01:41:04]SAM_PROTO_SignData done [01:41:04]FM_MakeSignedData done [01:41:04]CreateOFDProtocolMessage [01:41:04]wFMCommunicate request_size=4 [01:41:04]MH_SAM_APDU [01:41:04]CAPDU: 80 11 00 00 [01:41:04]Write to MH i2c: E2 08 00 D0 36 80 11 00 00 00 00 00 00 80 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:04]Read from MH i2c: E2 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 17 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: E2 17 00 D0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [01:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:41:04]wFMCommunicate OK [01:41:04]CreateOFDProtocolMessage done [01:41:04]OFDSenderStorePacket 70070 [01:41:04]StoreOFDPacket docnum=70070 [01:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 27 07 01 AE D6 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 58 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B1 02 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 11 01 00 35 04 06 00 F3 E7 97 28 1A 2D 82 74 51 0E D8 2B 06 95 [01:41:04]CheckFolder [01:41:04]dirname=/storage/ofd_packets [01:41:04]CheckFolder done [01:41:04]ProducePacketName [01:41:04]name=ofd_packets/00070070 [01:41:04]NVStorageSaveData ofd_packets/00070070 [01:41:04]File name is /storage/ofd_packets/00070070 [01:41:04]Write 301 bytes [01:41:04]NVStorageSaveData done [01:41:04]OFDSenderStorePacket done [01:41:04]KKMCreateOFDPacket done [01:41:04]NVStorageSaveData kkm_last_timestamp [01:41:04]File name is /storage/kkm_last_timestamp [01:41:04]Write 4 bytes [01:41:04]NVStorageSaveData done [01:41:04]ExternCall_PrintAddStr [01:41:04]wPrintStart [01:41:04]Write to MH i2c: 01 00 00 D1 36 07 [01:41:04]Write i2c OK [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: 01 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: 01 07 00 [01:41:04]MH_I2C_Read... [01:41:04]Read from MH i2c: 01 07 00 D1 36 00 00 00 00 00 FF 0F 1C [01:41:04]RasterBufferAndPrint [01:41:04]line Счет N : (1)2885836 [01:41:04]line ИНН: 02508201610067 [01:41:04]line Контрольно-Кассовый Чек [01:41:04]line ПРОДАЖА [01:41:04]line ТРК (МРК, ГНК) : 32 [01:41:04]line Товар: 2710124130 [01:41:04]line Аи-92-К-5 [01:41:04]line 10.840 * 66.90 [01:41:04]line = 725.20 [01:41:04]line НДС 12% НСП 1% [01:41:04]line > о реализуемом товаре [01:41:04]line ОКРУГЛЕНИЕ: -0.20 [01:41:04]line ИТОГО: 725.00 [01:41:04]line Внесено: 770.00 [01:41:04]line СДАЧА: 45.00 [01:41:04]line НСП 1% : 6.42 [01:41:04]line НДС 12% : 77.01 [01:41:04]line Наличными: 725.00 [01:41:04]line Безнал.: 0.00 [01:41:04]line Место: АЗС № 85 "Партнер Нефть" [01:41:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:41:04]line СНО: Общий режим [01:41:04]line Чек 18 22.10.2024 01:41 [01:41:04]line Смена: 195 ФФД: 1.0 [01:41:04]line ЗНМ: 0300000167 [01:41:04]line РНМ: 0000000000156251 [01:41:04]line Версия ККМ: v1.0 [01:41:04]line ФМ: 0000000000963346 [01:41:04]line ФД: 70070 [01:41:04]line ФПД: 268175998982701 [01:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T014105&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70070&fm=268175998982701&tin=02508201610067®Number=0000000000156251&sum=72500 [01:41:05]OFD Sender: Processing packet 70070 [packets to send 18, broken 17] [01:41:05]ProducePacketName [01:41:05]name=ofd_packets/00070070 [01:41:05]OFD Sender: To server: pG, [01:41:05]CommunicateWithHost lk.salyk.kg:30040 [01:41:05]ConnectInit lk.salyk.kg [01:41:05]written 0, free lines is 4095 [01:41:05]Connected sock=10 [01:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 27 07 01 AE D6 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 58 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 48 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B1 02 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 11 01 00 35 04 06 00 F3 E7 97 28 1A 2D 82 74 51 0E D8 2B 06 95 [01:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E9 56 47 00 B0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 11 01 00 F4 03 04 00 54 AC 16 67 B6 04 01 00 00 4A 55 99 7F 61 C2 8C 49 [01:41:05]CommunicateWithHost err = 0 [01:41:05]CheckOFDResponse [01:41:05]1017 (14) - 77093643461234 [01:41:05]1041 (16) - 0000000000963346 [01:41:05]1040 (4) - 70070 [01:41:05]1012 (4) - 21.10.2024 19:32 [01:41:05]1206 (1) - 0 [01:41:05]OFD Sender: Remove packet 70070 [01:41:05]ProducePacketName [01:41:05]name=ofd_packets/00070070 [01:41:05]NVStorageDeleteData [01:41:05]Write to MH i2c: 01 00 00 FC 36 32 [01:41:05]Write i2c OK [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: 01 [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: 01 07 00 [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: 01 07 00 FC 36 00 00 00 00 00 F3 0C 38 [01:41:05]RasterBufferAndPrint [01:41:05]line [01:41:05]line [01:41:05]line [01:41:05]line [01:41:05]line [01:41:05]written 0, free lines is 3321 [01:41:05]MH_Cut [01:41:05]Write to MH i2c: D1 01 00 03 37 01 0C [01:41:05]Write i2c OK [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: D1 [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: D1 01 00 [01:41:05]MH_I2C_Read... [01:41:05]Read from MH i2c: D1 01 00 03 37 00 0B [01:41:05]Write to MH i2c: 01 00 00 04 37 3B [01:41:05]Write i2c OK [01:41:05]MH_I2C_Read... [01:41:05]OFD Sender: No OFD packet to send [01:41:06]*** Cut start [01:41:06]*** Partial cut [01:41:06]*** CUTSNS_PIN = 1 [01:41:06]*** CUTSNS_PIN = 0 [01:41:06]*** Brake cut motor [01:41:06]Read from MH i2c: 01 [01:41:06]MH_I2C_Read... [01:41:06]*** Stop cut motor [01:41:06]*** Cut end [01:41:06]Read from MH i2c: 01 07 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [01:41:06]process_action close_receipt done [01:41:06]requested_data is exist [01:41:06]produce_requested_data [01:41:06]requested_item fm.sn is exist - process it [01:41:06]wFMCommunicate request_size=4 [01:41:06]MH_SAM_APDU [01:41:06]CAPDU: 80 11 00 00 [01:41:06]Write to MH i2c: E2 08 00 05 37 80 11 00 00 00 00 00 00 B6 [01:41:06]Write i2c OK [01:41:06]MH_I2C_Read... [01:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:06]Read from MH i2c: E2 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 17 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 17 00 05 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [01:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:41:06]wFMCommunicate OK [01:41:06]requested_item fd.num is exist - process it [01:41:06]SAM_PROTO_GetFieldsCounters [01:41:06]wFMCommunicate request_size=4 [01:41:06]MH_SAM_APDU [01:41:06]CAPDU: 80 13 00 00 [01:41:06]Write to MH i2c: E2 08 00 06 37 80 13 00 00 00 00 00 00 B9 [01:41:06]Write i2c OK [01:41:06]MH_I2C_Read... [01:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:07]Read from MH i2c: E2 [01:41:07]MH_I2C_Read... [01:41:07]Read from MH i2c: E2 62 00 [01:41:07]MH_I2C_Read... [01:41:07]Read from MH i2c: E2 62 00 06 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [01:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 11 01 00 0E 04 04 00 C3 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:41:07]wFMCommunicate OK [01:41:07]SAM_PROTO_GetFieldsCounters done [01:41:07]requested_item shift.num is exist - process it [01:41:07]requested_item shift.opened is exist - process it [01:41:07]req_shift_opened [01:41:07]FM_GetShiftState [01:41:07]SAM_PROTO_GetShiftState [01:41:07]wFMCommunicate request_size=4 [01:41:07]MH_SAM_APDU [01:41:07]CAPDU: 80 13 01 00 [01:41:07]Write to MH i2c: E2 08 00 07 37 80 13 01 00 00 00 00 00 BB [01:41:07]Write i2c OK [01:41:07]MH_I2C_Read... [01:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:07]Read from MH i2c: E2 [01:41:07]MH_I2C_Read... [01:41:07]Read from MH i2c: E2 0E 00 [01:41:07]MH_I2C_Read... [01:41:07]Read from MH i2c: E2 0E 00 07 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 A9 [01:41:07]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [01:41:07]wFMCommunicate OK [01:41:07]SAM_PROTO_GetShiftState done [01:41:07]FM_GetShiftState done [01:41:07]req_shift_opened done [01:41:07]requested_item shift.open_date is exist - process it [01:41:07]req_shift_open_date [01:41:07]req_shift_open_date done [01:41:07]produce_requested_data done [01:41:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70070,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [01:41:07]process_action_free close_receipt [01:41:07]json_value_free [01:41:07]json_value_free done [01:41:07]process_json_proto returns [01:41:07]Send response to host [01:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70070,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [01:41:07]free response buf [01:41:07]execute_script done [01:41:07]execute_script returns [01:41:07]free content buf [01:41:07]Sock 7.Close socket [01:41:07]Sock 7.Thread stoped [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]accept exits with 9 [02:13:02]New connection [02:13:02]New thread 3067170148 created [02:13:02]Thread 3067026788 joined [02:13:02]Waiting for new connection... [02:13:02] Sock 9.Parse request [02:13:02]Sock 9.Check first char [02:13:02]Sock 9.First char is OK [02:13:02]request: POST /json_proto HTTP/1.0 [02:13:02]Method: POST [02:13:02]URL: /json_proto [02:13:02]Method is POST - this is cgi request [02:13:02]url: /json_proto [02:13:02]query_string will be loaded in cgi processing [02:13:02]execute_cgi json_proto POST (null) [02:13:02]execute_cgi path=json_proto method=POST [02:13:02]POST find Content-Length [02:13:02]Host: 172.17.50.3:8080 [02:13:02]Content-Length: 978 [02:13:02]Content-Type: application/json [02:13:02] [02:13:02]POST finish read [02:13:02]Found Content-Length = 978 [02:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 64.370, "sum" : 4840.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.37 \u0441\u043E\u043C", "deposit" : 4840.00, "total" : 4840.00, "payments": [ { "type": 0, "sum" : 4840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:13:02]execute_script... [02:13: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)2885837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 64.370, "sum" : 4840.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.37 \u0441\u043E\u043C", "deposit" : 4840.00, "total" : 4840.00, "payments": [ { "type": 0, "sum" : 4840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:13:02]POST & json_proto [02:13:02]process_json_proto [02:13:02]json parsed OK: [02:13:02]protocol is kg_v1.0 [02:13:02]action value=close_receipt [02:13:02]process_action close_receipt [02:13:02]cmd_close_receipt [02:13:02]MH_GetDate [02:13:02]Write to MH i2c: F0 00 00 08 37 2E [02:13:02]Write i2c OK [02:13:02]MH_I2C_Read... [02:13:02]Read from MH i2c: F0 [02:13:02]MH_I2C_Read... [02:13:02]Read from MH i2c: F0 09 00 [02:13:02]MH_I2C_Read... [02:13:02]Read from MH i2c: F0 09 00 08 37 00 31 0A 17 67 6B 98 1E 66 77 [02:13:02]GetLastDocTimeStamp 1729561265 [02:13:02]current date 1729563185 [02:13:02]FM_GetShiftState [02:13:02]SAM_PROTO_GetShiftState [02:13:02]wFMCommunicate request_size=4 [02:13:02]MH_SAM_APDU [02:13:02]CAPDU: 80 13 01 00 [02:13:02]Write to MH i2c: E2 08 00 09 37 80 13 01 00 00 00 00 00 BD [02:13:02]Write i2c OK [02:13:02]MH_I2C_Read... [02:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:13:02]Read from MH i2c: E2 [02:13:02]MH_I2C_Read... [02:13:02]Read from MH i2c: E2 0E 00 [02:13:02]MH_I2C_Read... [02:13:02]Read from MH i2c: E2 0E 00 09 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 AB [02:13:02]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [02:13:02]wFMCommunicate OK [02:13:02]SAM_PROTO_GetShiftState done [02:13:02]FM_GetShiftState done [02:13:02]opened in 1729555832 [02:13:02]opened+sec_in_day 1729642232 [02:13:02]quantity*price = 484062 [02:13:02]sum+1 = 484063 [02:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4840.00 Внесено: 4840.00 СДАЧА: 0.00 НСП 1% : 42.84 НДС 12% : 514.05 Наличными: 4840.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 19 22.10.2024 02:13 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 64.37 сом ФМ: 0000000000963346 ФД: 70071 ФПД: 62598462383935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70071&fm=62598462383935&tin=02508201610067®Number=0000000000156251&sum=484000 [02:13:03]StoreToDocumentArchive [02:13:03]shift 195 fd 70071 [02:13:03]save to /storage/0195/doc_00070071 [02:13:03]save last doc name /storage/0195/doc_00070071 to /storage/kkm_last_doc_name [02:13:03]save OK [02:13:03]Clear old archive folders... [02:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:13:03]tlvbuf is B6F8A570 [02:13:03]SAM_PROTO_ClearQueue [02:13:03]wFMCommunicate request_size=4 [02:13:03]MH_SAM_APDU [02:13:03]CAPDU: 80 09 00 00 [02:13:03]Write to MH i2c: E2 08 00 16 37 80 09 00 00 00 00 00 00 BF [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 16 37 00 90 00 C1 [02:13:03]RAPDU: 90 00 [02:13:03]wFMCommunicate OK [02:13:03]SAM_PROTO_ClearQueue done [02:13:03]KKMCreateOFDPacket [02:13:03]OFDProtocolAddRootSTLVToBuf [02:13:03]FM_MakeSignedData [02:13:03]FM_MakeSignedData [02:13:03]SAM_PROTO_SignData [02:13:03]wFMCommunicate request_size=4 [02:13:03]MH_SAM_APDU [02:13:03]CAPDU: 80 0D 01 02 [02:13:03]Write to MH i2c: E2 08 00 17 37 80 0D 01 02 00 00 00 00 C7 [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 17 37 00 90 00 C2 [02:13:03]RAPDU: 90 00 [02:13:03]wFMCommunicate OK [02:13:03]wFMCommunicate request_size=255 [02:13:03]MH_SAM_APDU [02:13: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 FB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DE 62 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 62 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD C8 00 00 00 00 07 04 06 00 A0 62 07 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 31 0A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 11 01 00 35 04 06 00 38 EE D7 1D [02:13:03]Write to MH i2c: E2 02 01 18 37 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 FB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DE 62 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 62 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD C8 00 00 00 00 07 04 06 00 A0 62 07 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 31 0A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 11 01 00 35 04 06 00 38 EE D7 1D 00 00 34 [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 18 37 00 90 00 C3 [02:13:03]RAPDU: 90 00 [02:13:03]wFMCommunicate OK [02:13:03]wFMCommunicate request_size=7 [02:13:03]MH_SAM_APDU [02:13:03]CAPDU: 80 0D 02 02 02 27 3F [02:13:03]Write to MH i2c: E2 0A 00 19 37 80 0D 02 02 02 00 27 3F 00 00 34 [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [02:13:03]RAPDU: 90 00 [02:13:03]wFMCommunicate OK [02:13:03]wFMCommunicate request_size=4 [02:13:03]MH_SAM_APDU [02:13:03]CAPDU: 80 0D 03 02 [02:13:03]Write to MH i2c: E2 08 00 1A 37 80 0D 03 02 00 00 00 00 CC [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 0B 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 0B 00 1A 37 00 C8 80 2B 0A 59 37 01 7D 90 00 58 [02:13:03]RAPDU: C8 80 2B 0A 59 37 01 7D 90 00 [02:13:03]wFMCommunicate OK [02:13:03]SAM_PROTO_SignData done [02:13:03]FM_MakeSignedData done [02:13:03]CreateOFDProtocolMessage [02:13:03]wFMCommunicate request_size=4 [02:13:03]MH_SAM_APDU [02:13:03]CAPDU: 80 11 00 00 [02:13:03]Write to MH i2c: E2 08 00 1B 37 80 11 00 00 00 00 00 00 CC [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:13:03]Read from MH i2c: E2 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 17 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: E2 17 00 1B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [02:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:13:03]wFMCommunicate OK [02:13:03]CreateOFDProtocolMessage done [02:13:03]OFDSenderStorePacket 70071 [02:13:03]StoreOFDPacket docnum=70071 [02:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B8 E0 04 01 1E BB 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 FB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DE 62 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 62 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD C8 00 00 00 00 07 04 06 00 A0 62 07 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 31 0A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 11 01 00 35 04 06 00 38 EE D7 1D 27 3F C8 80 2B 0A 59 37 01 7D [02:13:03]CheckFolder [02:13:03]dirname=/storage/ofd_packets [02:13:03]CheckFolder done [02:13:03]ProducePacketName [02:13:03]name=ofd_packets/00070071 [02:13:03]NVStorageSaveData ofd_packets/00070071 [02:13:03]File name is /storage/ofd_packets/00070071 [02:13:03]Write 298 bytes [02:13:03]NVStorageSaveData done [02:13:03]OFDSenderStorePacket done [02:13:03]KKMCreateOFDPacket done [02:13:03]NVStorageSaveData kkm_last_timestamp [02:13:03]File name is /storage/kkm_last_timestamp [02:13:03]Write 4 bytes [02:13:03]NVStorageSaveData done [02:13:03]ExternCall_PrintAddStr [02:13:03]wPrintStart [02:13:03]Write to MH i2c: 01 00 00 1C 37 53 [02:13:03]Write i2c OK [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: 01 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: 01 07 00 [02:13:03]MH_I2C_Read... [02:13:03]Read from MH i2c: 01 07 00 1C 37 00 00 00 00 00 FF 0F 68 [02:13:03]RasterBufferAndPrint [02:13:03]line Счет N : (1)2885837 [02:13:03]line ИНН: 02508201610067 [02:13:03]line Контрольно-Кассовый Чек [02:13:03]line ПРОДАЖА [02:13:03]line ТРК (МРК, ГНК) : 51 [02:13:03]line Товар: 2710194210 [02:13:03]line ДТ-К-5 [02:13:03]line 64.370 * 75.20 [02:13:03]line = 4840.62 [02:13:03]line НДС 12% НСП 1% [02:13:03]line > о реализуемом товаре [02:13:03]line ОКРУГЛЕНИЕ: -0.62 [02:13:03]line ИТОГО: 4840.00 [02:13:03]line Внесено: 4840.00 [02:13:03]line СДАЧА: 0.00 [02:13:03]line НСП 1% : 42.84 [02:13:03]line НДС 12% : 514.05 [02:13:03]line Наличными: 4840.00 [02:13:03]line Безнал.: 0.00 [02:13:04]line Место: АЗС № 85 "Партнер Нефть" [02:13:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:13:04]line СНО: Общий режим [02:13:04]line Чек 19 22.10.2024 02:13 [02:13:04]line Смена: 195 ФФД: 1.0 [02:13:04]line ЗНМ: 0300000167 [02:13:04]line РНМ: 0000000000156251 [02:13:04]line Версия ККМ: v1.0 [02:13:04]line [02:13:04]line Дисконтная программа [02:13:04]line ДТ [02:13:04]line номер 85 [02:13:04]line сэкономлено 64.37 сом [02:13:04]line ФМ: 0000000000963346 [02:13:04]line ФД: 70071 [02:13:04]line ФПД: 62598462383935 [02:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70071&fm=62598462383935&tin=02508201610067®Number=0000000000156251&sum=484000 [02:13:04]OFD Sender: Processing packet 70071 [packets to send 18, broken 17] [02:13:04]ProducePacketName [02:13:04]name=ofd_packets/00070071 [02:13:04]OFD Sender: To server: pG, [02:13:04]CommunicateWithHost lk.salyk.kg:30040 [02:13:04]ConnectInit lk.salyk.kg [02:13:04]written 0, free lines is 4095 [02:13:04]Connected sock=10 [02:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B8 E0 04 01 1E BB 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 FB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 DE 62 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 62 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD C8 00 00 00 00 07 04 06 00 A0 62 07 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 31 0A 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 11 01 00 35 04 06 00 38 EE D7 1D 27 3F C8 80 2B 0A 59 37 01 7D [02:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A A5 47 00 FA 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 39 36 33 33 34 36 10 04 04 00 B7 11 01 00 F4 03 04 00 D3 B3 16 67 B6 04 01 00 00 F9 F5 16 04 04 B7 36 54 [02:13:04]CommunicateWithHost err = 0 [02:13:04]CheckOFDResponse [02:13:04]1017 (14) - 77093643461234 [02:13:04]1041 (16) - 0000000000963346 [02:13:04]1040 (4) - 70071 [02:13:04]1012 (4) - 21.10.2024 20:04 [02:13:04]1206 (1) - 0 [02:13:04]OFD Sender: Remove packet 70071 [02:13:04]ProducePacketName [02:13:04]name=ofd_packets/00070071 [02:13:04]NVStorageDeleteData [02:13:04]Write to MH i2c: 01 00 00 4C 37 83 [02:13:04]Write i2c OK [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: 01 [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: 01 07 00 [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: 01 07 00 4C 37 00 00 00 00 00 A3 0C 39 [02:13:04]RasterBufferAndPrint [02:13:04]line [02:13:04]line [02:13:04]line [02:13:04]line [02:13:04]line [02:13:04]written 0, free lines is 3241 [02:13:04]MH_Cut [02:13:04]Write to MH i2c: D1 01 00 53 37 01 5C [02:13:04]Write i2c OK [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: D1 [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: D1 01 00 [02:13:04]MH_I2C_Read... [02:13:04]Read from MH i2c: D1 01 00 53 37 00 5B [02:13:04]Write to MH i2c: 01 00 00 54 37 8B [02:13:04]Write i2c OK [02:13:04]MH_I2C_Read... [02:13:04]OFD Sender: No OFD packet to send [02:13:05]*** Cut start [02:13:05]*** Partial cut [02:13:05]*** CUTSNS_PIN = 1 [02:13:05]*** CUTSNS_PIN = 0 [02:13:05]*** Brake cut motor [02:13:05]Read from MH i2c: 01 [02:13:05]MH_I2C_Read... [02:13:05]*** Stop cut motor [02:13:05]*** Cut end [02:13:05]Read from MH i2c: 01 07 00 [02:13:05]MH_I2C_Read... [02:13:05]Read from MH i2c: 01 07 00 54 37 00 00 00 00 00 FF 0F A0 [02:13:05]process_action close_receipt done [02:13:05]requested_data is exist [02:13:05]produce_requested_data [02:13:05]requested_item fm.sn is exist - process it [02:13:05]wFMCommunicate request_size=4 [02:13:05]MH_SAM_APDU [02:13:05]CAPDU: 80 11 00 00 [02:13:05]Write to MH i2c: E2 08 00 55 37 80 11 00 00 00 00 00 00 06 [02:13:05]Write i2c OK [02:13:05]MH_I2C_Read... [02:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:13:06]Read from MH i2c: E2 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 17 00 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 17 00 55 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [02:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:13:06]wFMCommunicate OK [02:13:06]requested_item fd.num is exist - process it [02:13:06]SAM_PROTO_GetFieldsCounters [02:13:06]wFMCommunicate request_size=4 [02:13:06]MH_SAM_APDU [02:13:06]CAPDU: 80 13 00 00 [02:13:06]Write to MH i2c: E2 08 00 56 37 80 13 00 00 00 00 00 00 09 [02:13:06]Write i2c OK [02:13:06]MH_I2C_Read... [02:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:13:06]Read from MH i2c: E2 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 62 00 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 62 00 56 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 11 01 00 0E 04 04 00 C3 00 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 E9 [02:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 11 01 00 0E 04 04 00 C3 00 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 [02:13:06]wFMCommunicate OK [02:13:06]SAM_PROTO_GetFieldsCounters done [02:13:06]requested_item shift.num is exist - process it [02:13:06]requested_item shift.opened is exist - process it [02:13:06]req_shift_opened [02:13:06]FM_GetShiftState [02:13:06]SAM_PROTO_GetShiftState [02:13:06]wFMCommunicate request_size=4 [02:13:06]MH_SAM_APDU [02:13:06]CAPDU: 80 13 01 00 [02:13:06]Write to MH i2c: E2 08 00 57 37 80 13 01 00 00 00 00 00 0B [02:13:06]Write i2c OK [02:13:06]MH_I2C_Read... [02:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:13:06]Read from MH i2c: E2 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 0E 00 [02:13:06]MH_I2C_Read... [02:13:06]Read from MH i2c: E2 0E 00 57 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 F9 [02:13:06]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [02:13:06]wFMCommunicate OK [02:13:06]SAM_PROTO_GetShiftState done [02:13:06]FM_GetShiftState done [02:13:06]req_shift_opened done [02:13:06]requested_item shift.open_date is exist - process it [02:13:06]req_shift_open_date [02:13:06]req_shift_open_date done [02:13:06]produce_requested_data done [02:13:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70071,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [02:13:06]process_action_free close_receipt [02:13:06]json_value_free [02:13:06]json_value_free done [02:13:06]process_json_proto returns [02:13:06]Send response to host [02:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70071,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [02:13:06]free response buf [02:13:06]execute_script done [02:13:06]execute_script returns [02:13:06]free content buf [02:13:06]Sock 9.Close socket [02:13:06]Sock 9.Thread stoped [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:40]accept exits with 7 [03:04:40]New connection [03:04:40]New thread 3067026788 created [03:04:40]Thread 3067170148 joined [03:04:40]Waiting for new connection... [03:04:40] Sock 7.Parse request [03:04:40]Sock 7.Check first char [03:04:40]Sock 7.First char is OK [03:04:40]request: POST /json_proto HTTP/1.0 [03:04:40]Method: POST [03:04:40]URL: /json_proto [03:04:40]Method is POST - this is cgi request [03:04:40]url: /json_proto [03:04:40]query_string will be loaded in cgi processing [03:04:40]execute_cgi json_proto POST (null) [03:04:40]execute_cgi path=json_proto method=POST [03:04:40]POST find Content-Length [03:04:40]Host: 172.17.50.3:8080 [03:04:40]Content-Length: 689 [03:04:40]Content-Type: application/json [03:04:40] [03:04:40]POST finish read [03:04:40]Found Content-Length = 689 [03:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:40]execute_script... [03:04: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)2885838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:40]POST & json_proto [03:04:40]process_json_proto [03:04:40]json parsed OK: [03:04:40]protocol is kg_v1.0 [03:04:40]action value=close_receipt [03:04:40]process_action close_receipt [03:04:40]cmd_close_receipt [03:04:40]MH_GetDate [03:04:40]Write to MH i2c: F0 00 00 58 37 7E [03:04:40]Write i2c OK [03:04:40]MH_I2C_Read... [03:04:40]Read from MH i2c: F0 [03:04:40]MH_I2C_Read... [03:04:40]Read from MH i2c: F0 09 00 [03:04:40]MH_I2C_Read... [03:04:40]Read from MH i2c: F0 09 00 58 37 00 4B 16 17 67 6B 98 1E 66 ED [03:04:40]GetLastDocTimeStamp 1729563185 [03:04:40]current date 1729566283 [03:04:40]FM_GetShiftState [03:04:40]SAM_PROTO_GetShiftState [03:04:40]wFMCommunicate request_size=4 [03:04:40]MH_SAM_APDU [03:04:40]CAPDU: 80 13 01 00 [03:04:40]Write to MH i2c: E2 08 00 59 37 80 13 01 00 00 00 00 00 0D [03:04:40]Write i2c OK [03:04:40]MH_I2C_Read... [03:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:40]Read from MH i2c: E2 [03:04:40]MH_I2C_Read... [03:04:40]Read from MH i2c: E2 0E 00 [03:04:40]MH_I2C_Read... [03:04:40]Read from MH i2c: E2 0E 00 59 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 FB [03:04:40]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [03:04:40]wFMCommunicate OK [03:04:40]SAM_PROTO_GetShiftState done [03:04:40]FM_GetShiftState done [03:04:40]opened in 1729555832 [03:04:40]opened+sec_in_day 1729642232 [03:04:40]quantity*price = 300076 [03:04:40]sum+1 = 300077 [03:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 20 22.10.2024 03:04 Смена: 195 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 70072 ФПД: 127512749793080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030443&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70072&fm=127512749793080&tin=02508201610067®Number=0000000000156251&sum=300000 [03:04:41]StoreToDocumentArchive [03:04:41]shift 195 fd 70072 [03:04:41]save to /storage/0195/doc_00070072 [03:04:41]save last doc name /storage/0195/doc_00070072 to /storage/kkm_last_doc_name [03:04:41]save OK [03:04:41]Clear old archive folders... [03:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:04:41]tlvbuf is 01160E80 [03:04:41]SAM_PROTO_ClearQueue [03:04:41]wFMCommunicate request_size=4 [03:04:41]MH_SAM_APDU [03:04:41]CAPDU: 80 09 00 00 [03:04:41]Write to MH i2c: E2 08 00 66 37 80 09 00 00 00 00 00 00 0F [03:04:41]Write i2c OK [03:04:41]MH_I2C_Read... [03:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:41]Read from MH i2c: E2 [03:04:41]MH_I2C_Read... [03:04:41]Read from MH i2c: E2 03 00 [03:04:41]MH_I2C_Read... [03:04:41]Read from MH i2c: E2 03 00 66 37 00 90 00 11 [03:04:41]RAPDU: 90 00 [03:04:41]wFMCommunicate OK [03:04:41]SAM_PROTO_ClearQueue done [03:04:41]KKMCreateOFDPacket [03:04:41]OFDProtocolAddRootSTLVToBuf [03:04:41]FM_MakeSignedData [03:04:41]FM_MakeSignedData [03:04:41]SAM_PROTO_SignData [03:04:41]wFMCommunicate request_size=4 [03:04:41]MH_SAM_APDU [03:04:41]CAPDU: 80 0D 01 02 [03:04:41]Write to MH i2c: E2 08 00 67 37 80 0D 01 02 00 00 00 00 17 [03:04:41]Write i2c OK [03:04:41]MH_I2C_Read... [03:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:41]Read from MH i2c: E2 [03:04:41]MH_I2C_Read... [03:04:41]Read from MH i2c: E2 03 00 [03:04:41]MH_I2C_Read... [03:04:41]Read from MH i2c: E2 03 00 67 37 00 90 00 12 [03:04:41]RAPDU: 90 00 [03:04:41]wFMCommunicate OK [03:04:41]wFMCommunicate request_size=255 [03:04:41]MH_SAM_APDU [03:04:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 16 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 11 01 [03:04:41]Write to MH i2c: E2 02 01 68 37 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 16 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 11 01 00 00 CB [03:04:41]Write i2c OK [03:04:41]MH_I2C_Read... [03:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:42]Read from MH i2c: E2 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 03 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 03 00 68 37 00 90 00 13 [03:04:42]RAPDU: 90 00 [03:04:42]wFMCommunicate OK [03:04:42]wFMCommunicate request_size=16 [03:04:42]MH_SAM_APDU [03:04:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 73 F8 E0 27 DF 38 [03:04:42]Write to MH i2c: E2 13 00 69 37 80 0D 02 02 0B 00 00 35 04 06 00 73 F8 E0 27 DF 38 00 00 F8 [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:42]Read from MH i2c: E2 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 03 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 03 00 69 37 00 90 00 14 [03:04:42]RAPDU: 90 00 [03:04:42]wFMCommunicate OK [03:04:42]wFMCommunicate request_size=4 [03:04:42]MH_SAM_APDU [03:04:42]CAPDU: 80 0D 03 02 [03:04:42]Write to MH i2c: E2 08 00 6A 37 80 0D 03 02 00 00 00 00 1C [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:42]Read from MH i2c: E2 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 0B 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 0B 00 6A 37 00 80 98 7D 58 B1 19 F2 97 90 00 5D [03:04:42]RAPDU: 80 98 7D 58 B1 19 F2 97 90 00 [03:04:42]wFMCommunicate OK [03:04:42]SAM_PROTO_SignData done [03:04:42]FM_MakeSignedData done [03:04:42]CreateOFDProtocolMessage [03:04:42]wFMCommunicate request_size=4 [03:04:42]MH_SAM_APDU [03:04:42]CAPDU: 80 11 00 00 [03:04:42]Write to MH i2c: E2 08 00 6B 37 80 11 00 00 00 00 00 00 1C [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:42]Read from MH i2c: E2 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 17 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: E2 17 00 6B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [03:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:04:42]wFMCommunicate OK [03:04:42]CreateOFDProtocolMessage done [03:04:42]OFDSenderStorePacket 70072 [03:04:42]StoreOFDPacket docnum=70072 [03:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 91 D3 0D 01 AC 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 16 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 11 01 00 35 04 06 00 73 F8 E0 27 DF 38 80 98 7D 58 B1 19 F2 97 [03:04:42]CheckFolder [03:04:42]dirname=/storage/ofd_packets [03:04:42]CheckFolder done [03:04:42]ProducePacketName [03:04:42]name=ofd_packets/00070072 [03:04:42]NVStorageSaveData ofd_packets/00070072 [03:04:42]File name is /storage/ofd_packets/00070072 [03:04:42]Write 307 bytes [03:04:42]NVStorageSaveData done [03:04:42]OFDSenderStorePacket done [03:04:42]KKMCreateOFDPacket done [03:04:42]NVStorageSaveData kkm_last_timestamp [03:04:42]File name is /storage/kkm_last_timestamp [03:04:42]Write 4 bytes [03:04:42]NVStorageSaveData done [03:04:42]ExternCall_PrintAddStr [03:04:42]wPrintStart [03:04:42]Write to MH i2c: 01 00 00 6C 37 A3 [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 07 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 07 00 6C 37 00 00 00 00 00 FF 0F B8 [03:04:42]RasterBufferAndPrint [03:04:42]line Счет N : (1)2885838 [03:04:42]line ИНН: 02508201610067 [03:04:42]line Контрольно-Кассовый Чек [03:04:42]line ПРОДАЖА [03:04:42]line ТРК (МРК, ГНК) : 31 [03:04:42]line Товар: 2710194240 [03:04:42]line D-ENERGY Дт-К-2 [03:04:42]line 38.870 * 77.20 [03:04:42]line = 3000.76 [03:04:42]line НДС 12% НСП 1% [03:04:42]line > о реализуемом товаре [03:04:42]line ОКРУГЛЕНИЕ: -0.76 [03:04:42]line ИТОГО: 3000.00 [03:04:42]line Внесено: 3000.00 [03:04:42]line СДАЧА: 0.00 [03:04:42]line НСП 1% : 26.55 [03:04:42]line НДС 12% : 318.66 [03:04:42]line Наличными: 3000.00 [03:04:42]line Безнал.: 0.00 [03:04:42]line Место: АЗС № 85 "Партнер Нефть" [03:04:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:04:42]line СНО: Общий режим [03:04:42]line Чек 20 22.10.2024 03:04 [03:04:42]line Смена: 195 ФФД: 1.0 [03:04:42]line ЗНМ: 0300000167 [03:04:42]line РНМ: 0000000000156251 [03:04:42]line Версия ККМ: v1.0 [03:04:42]line ФМ: 0000000000963346 [03:04:42]line ФД: 70072 [03:04:42]line ФПД: 127512749793080 [03:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030443&type=1&operation_type=1&fn_number=0000000000963346&fd_number=70072&fm=127512749793080&tin=02508201610067®Number=0000000000156251&sum=300000 [03:04:42]OFD Sender: Processing packet 70072 [packets to send 18, broken 17] [03:04:42]ProducePacketName [03:04:42]name=ofd_packets/00070072 [03:04:42]OFD Sender: To server: pG, [03:04:42]CommunicateWithHost lk.salyk.kg:30040 [03:04:42]ConnectInit lk.salyk.kg [03:04:42]written 0, free lines is 4095 [03:04:42]Connected sock=11 [03:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 91 D3 0D 01 AC 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 16 17 67 0E 04 04 00 C3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 11 01 00 35 04 06 00 73 F8 E0 27 DF 38 80 98 7D 58 B1 19 F2 97 [03:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2E 31 47 00 A0 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 11 01 00 F4 03 04 00 ED BF 16 67 B6 04 01 00 00 E1 64 7A 04 04 B9 40 EA [03:04:42]CommunicateWithHost err = 0 [03:04:42]CheckOFDResponse [03:04:42]1017 (14) - 77093643461234 [03:04:42]1041 (16) - 0000000000963346 [03:04:42]1040 (4) - 70072 [03:04:42]1012 (4) - 21.10.2024 20:56 [03:04:42]1206 (1) - 0 [03:04:42]OFD Sender: Remove packet 70072 [03:04:42]ProducePacketName [03:04:42]name=ofd_packets/00070072 [03:04:42]NVStorageDeleteData [03:04:42]Write to MH i2c: 01 00 00 97 37 CE [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 07 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: 01 07 00 97 37 00 00 00 00 00 F8 0C D9 [03:04:42]RasterBufferAndPrint [03:04:42]line [03:04:42]line [03:04:42]line [03:04:42]line [03:04:42]line [03:04:42]written 0, free lines is 3327 [03:04:42]MH_Cut [03:04:42]Write to MH i2c: D1 01 00 9E 37 01 A7 [03:04:42]Write i2c OK [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: D1 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: D1 01 00 [03:04:42]MH_I2C_Read... [03:04:42]Read from MH i2c: D1 01 00 9E 37 00 A6 [03:04:42]Write to MH i2c: 01 00 00 9F 37 D6 [03:04:43]Write i2c OK [03:04:43]MH_I2C_Read... [03:04:43]OFD Sender: No OFD packet to send [03:04:43]*** Cut start [03:04:43]*** Partial cut [03:04:43]*** CUTSNS_PIN = 1 [03:04:43]*** CUTSNS_PIN = 0 [03:04:43]*** Brake cut motor [03:04:44]Read from MH i2c: 01 [03:04:44]MH_I2C_Read... [03:04:44]*** Stop cut motor [03:04:44]*** Cut end [03:04:44]Read from MH i2c: 01 07 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: 01 07 00 9F 37 00 00 00 00 00 FF 0F EB [03:04:44]process_action close_receipt done [03:04:44]requested_data is exist [03:04:44]produce_requested_data [03:04:44]requested_item fm.sn is exist - process it [03:04:44]wFMCommunicate request_size=4 [03:04:44]MH_SAM_APDU [03:04:44]CAPDU: 80 11 00 00 [03:04:44]Write to MH i2c: E2 08 00 A0 37 80 11 00 00 00 00 00 00 51 [03:04:44]Write i2c OK [03:04:44]MH_I2C_Read... [03:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:44]Read from MH i2c: E2 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 17 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 17 00 A0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [03:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:04:44]wFMCommunicate OK [03:04:44]requested_item fd.num is exist - process it [03:04:44]SAM_PROTO_GetFieldsCounters [03:04:44]wFMCommunicate request_size=4 [03:04:44]MH_SAM_APDU [03:04:44]CAPDU: 80 13 00 00 [03:04:44]Write to MH i2c: E2 08 00 A1 37 80 13 00 00 00 00 00 00 54 [03:04:44]Write i2c OK [03:04:44]MH_I2C_Read... [03:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:44]Read from MH i2c: E2 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 62 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 62 00 A1 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 11 01 00 0E 04 04 00 C3 00 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 38 [03:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 11 01 00 0E 04 04 00 C3 00 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:04:44]wFMCommunicate OK [03:04:44]SAM_PROTO_GetFieldsCounters done [03:04:44]requested_item shift.num is exist - process it [03:04:44]requested_item shift.opened is exist - process it [03:04:44]req_shift_opened [03:04:44]FM_GetShiftState [03:04:44]SAM_PROTO_GetShiftState [03:04:44]wFMCommunicate request_size=4 [03:04:44]MH_SAM_APDU [03:04:44]CAPDU: 80 13 01 00 [03:04:44]Write to MH i2c: E2 08 00 A2 37 80 13 01 00 00 00 00 00 56 [03:04:44]Write i2c OK [03:04:44]MH_I2C_Read... [03:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:44]Read from MH i2c: E2 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 0E 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 0E 00 A2 37 00 09 00 01 78 ED 16 67 00 00 00 00 90 00 44 [03:04:44]RAPDU: 09 00 01 78 ED 16 67 00 00 00 00 90 00 [03:04:44]wFMCommunicate OK [03:04:44]SAM_PROTO_GetShiftState done [03:04:44]FM_GetShiftState done [03:04:44]req_shift_opened done [03:04:44]requested_item shift.open_date is exist - process it [03:04:44]req_shift_open_date [03:04:44]req_shift_open_date done [03:04:44]produce_requested_data done [03:04:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":70072,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832} [03:04:44]process_action_free close_receipt [03:04:44]json_value_free [03:04:44]json_value_free done [03:04:44]process_json_proto returns [03:04:44]Send response to host [03:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":70072,"shift.num":195,"shift.opened":1,"shift.open_date":1729555832}}} [03:04:44]free response buf [03:04:44]execute_script done [03:04:44]execute_script returns [03:04:44]free content buf [03:04:44]Sock 7.Close socket [03:04:44]Sock 7.Thread stoped [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send